chunk-64f2e9f0.2f68be5c.js 2.9 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-64f2e9f0"],{2210:function(e,t,a){"use strict";a("83d9")},"83d9":function(e,t,a){},f0aa:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.addTemplateDialogVisible?a("el-dialog",{attrs:{title:"新建",visible:e.addTemplateDialogVisible,width:"700px","close-on-press-escape":!1,"close-on-click-modal":!1},on:{"update:visible":function(t){e.addTemplateDialogVisible=t},close:e.cancel}},[a("el-row",{staticStyle:{"margin-bottom":"15px"}},[a("el-col",{attrs:{span:24}},[a("span",{staticStyle:{width:"130px",display:"inline-block","text-align":"right"}},[e._v(" 所属目录: ")]),e._v(" "+e._s(e.treeName)+" ")])],1),a("el-row",{staticStyle:{"margin-bottom":"15px"}},[a("el-col",{staticStyle:{display:"flex","align-items":"center"},attrs:{span:24}},[a("span",{staticStyle:{width:"130px",display:"inline-block","text-align":"right"}},[e._v(" 预约项目名称: ")]),a("el-input",{staticStyle:{width:"300px"},attrs:{type:"textarea",placeholder:"请输入预约项目名称"},model:{value:e.appointmentName,callback:function(t){e.appointmentName=t},expression:"appointmentName"}})],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1):e._e()],1)},n=[],s=a("c7eb"),r=a("1da1"),l=(a("4de4"),a("d3b7"),a("943d")),c={name:"EitcErmPcAddTemplateDialog",props:{listInId:{type:String,default:""},treeName:{type:String,default:""}},data:function(){return{addTemplateDialogVisible:!1,diagnosisTypeTemplateList:[],appointmentName:""}},mounted:function(){this.initSysUserSexerm_diagnosis_type_template_name()},methods:{initSysUserSexerm_diagnosis_type_template_name:function(){var e=this;return Object(r["a"])(Object(s["a"])().mark((function t(){var a;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(l["kc"])();case 2:if(a=t.sent,200===a.code){t.next=5;break}return t.abrupt("return",e.$message.error(a.msg));case 5:e.diagnosisTypeTemplateList=a.data.filter((function(e){return e.templateExample,e}));case 6:case"end":return t.stop()}}),t)})))()},cancel:function(){this.addTemplateDialogVisible=!1,this.initSysUserSexerm_diagnosis_type_template_name()},submit:function(){var e=this;return Object(r["a"])(Object(s["a"])().mark((function t(){var a;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(l["d"])({appointmentName:e.appointmentName,type:2,parentId:e.listInId});case 2:if(a=t.sent,200===a.code){t.next=5;break}return t.abrupt("return",e.$message.error(a.msg));case 5:e.$message.success("新建成功!"),e.$parent.initList(),e.addTemplateDialogVisible=!1;case 8:case"end":return t.stop()}}),t)})))()}}},o=c,p=(a("2210"),a("2877")),d=Object(p["a"])(o,i,n,!1,null,"5753db08",null);t["default"]=d.exports}}]);