(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-11810542","chunk-eabcb0f8"],{"6d02":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:4,xs:24}},[a("div",{staticClass:"head-container"}),a("div",{staticClass:"head-container",staticStyle:{"max-height":"calc(100vh - 160px)","overflow-y":"auto"}},[a("el-tree",{ref:"tree",attrs:{data:e.deptOptions,props:e.defaultProps,"check-on-click-node":!0,"expand-on-click-node":!1,"show-checkbox":"","node-key":"id","default-expand-all":"","highlight-current":"","check-strictly":!0},on:{"node-click":e.handleNodeClick},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.node;t.data;return a("span",{staticClass:"custom-tree-node"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:o.label,placement:"top-start","open-delay":500}},[a("span",[e._v(" "+e._s(o.label)+" ")])])],1)}}])})],1)]),a("el-col",{attrs:{span:20,xs:24}},[a("el-row",{staticClass:"mb8",attrs:{gutter:10}},[a("el-col",{attrs:{span:1.5}},[a("el-button",{attrs:{type:"primary",plain:"",icon:"el-icon-plus",size:"mini"},on:{click:e.addAdd}},[e._v("新建")])],1)],1),a("el-table",{staticStyle:{width:"100%",height:"calc(100%-80vh)"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"模版类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.protocolTypeCn||"-"))])]}}])}),a("el-table-column",{attrs:{label:"模版名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.protocolTemplateName||"-"))])]}}])}),a("el-table-column",{attrs:{label:"创建人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createUser||"-"))])]}}])}),a("el-table-column",{attrs:{label:"创建时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.createDate||"-"))])]}}])}),a("el-table-column",{attrs:{label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#13ce66","inactive-color":"#ff4949"},on:{change:function(a){return e.deactivate(t.row)}},model:{value:t.row.status,callback:function(a){e.$set(t.row,"status",a)},expression:"scope.row.status"}})]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"120",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){return e.editTableData(t.row)}}},[e._v(" 编辑 ")]),a("el-button",{staticStyle:{color:"red"},attrs:{type:"text",size:"mini"},on:{click:function(a){return e.delTableData(t.row)}}},[e._v(" 删除 ")])]}}])})],1)],1)],1),a("el-dialog",{attrs:{title:e.title,visible:e.dialogVisible,width:"30%","close-on-press-escape":!1,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t},close:e.closeDialog}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("el-form-item",{attrs:{label:"模板类型:",prop:"protocolName"}},[a("el-input",{attrs:{placeholder:"请输入模板类型"},model:{value:e.ruleForm.protocolName,callback:function(t){e.$set(e.ruleForm,"protocolName",t)},expression:"ruleForm.protocolName"}})],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.closeDialog}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1),a("addProtocolTypeDialog",{ref:"addTemplateDialogRef",attrs:{addProtocolTypeTitle:e.addProtocolTypeTitle,editTable:e.editTable,listInId:e.listInId,treeName:e.treeName}})],1)},l=[],r=a("c7eb"),n=a("1da1"),i=a("943d"),s=a("e91d"),c={name:"EitcErmPcIndex",components:{addProtocolTypeDialog:s["default"]},data:function(){return{tableData:[],deptOptions:[],defaultProps:{children:"childrenList",label:"protocolName"},ruleForm:{protocolName:""},editTable:{},treeName:"",rules:{protocolName:[{required:!0,message:"请输入模板类型",trigger:"blur"}]},lookFlag:!1,listInId:"",dialogVisible:!1,title:"",addProtocolTypeTitle:"",total:0}},mounted:function(){this.initProtocolTypeList()},methods:{editTableData:function(e){this.editTable=e,this.addProtocolTypeTitle="编辑",this.$refs.addTemplateDialogRef.addProtocolTypeDialog=!0},deactivate:function(e){var t=this;return Object(n["a"])(Object(r["a"])().mark((function a(){var o;return Object(r["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Object(i["Tb"])(e);case 2:if(o=a.sent,200===o.code){a.next=5;break}return a.abrupt("return",t.$message.error(o.msg));case 5:t.$message.success("编辑成功!"),t.initList();case 7:case"end":return a.stop()}}),a)})))()},delTableData:function(e){var t=this;this.$confirm("此操作将永久删除该项, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(n["a"])(Object(r["a"])().mark((function a(){var o;return Object(r["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Object(i["Sb"])(e.id);case 2:if(o=a.sent,200===o.code){a.next=5;break}return a.abrupt("return",t.$message.error(o.msg));case 5:t.initList(),t.$message({type:"success",message:"删除成功!"});case 7:case"end":return a.stop()}}),a)})))).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},initProtocolTypeList:function(){var e=this;return Object(n["a"])(Object(r["a"])().mark((function t(){var a;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(i["Vb"])();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.deptOptions=a.data,a.data.length&&(e.listInId=e.deptOptions[0].id,e.treeName=e.deptOptions[0].protocolName,e.initList());case 7:case"end":return t.stop()}}),t)})))()},initList:function(){var e=this;return Object(n["a"])(Object(r["a"])().mark((function t(){var a;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(i["Rb"])({protocolType: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.tableData=a.rows,e.total=a.total;case 7:case"end":return t.stop()}}),t)})))()},closeDialog:function(){var e;this.ruleForm.protocolName="",null===(e=this.$refs.ruleForm)||void 0===e||e.resetFields(),this.dialogVisible=!1,this.initList()},submit:function(){var e=this;this.$refs.ruleForm.validate(function(){var t=Object(n["a"])(Object(r["a"])().mark((function t(a){var o,l;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=19;break}if("新建"!==e.title){t.next=9;break}return t.next=4,Object(i["Ub"])({protocolName:e.ruleForm.protocolName});case 4:if(o=t.sent,200===o.code){t.next=7;break}return t.abrupt("return",e.$message.error(o.msg));case 7:t.next=14;break;case 9:return t.next=11,Object(i["Xb"])({protocolName:e.ruleForm.protocolName,id:e.listInId});case 11:if(l=t.sent,200===l.code){t.next=14;break}return t.abrupt("return",e.$message.error(l.msg));case 14:e.$message.success("".concat(e.title,"成功!")),e.initProtocolTypeList(),e.closeDialog(),t.next=21;break;case 19:return console.log("error submit!!"),t.abrupt("return",!1);case 21:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},handleNodeClick:function(e,t,a){this.listInId=e.id,this.treeName=e.protocolName,t&&this.$refs.tree.getCheckedNodes().length>1&&this.$refs.tree.setCheckedNodes([e]),this.initList()},addAdd:function(){if(!this.listInId)return this.$message.info("请先选择模版类型!");this.editTable={protocolTemplateName:"",status:1,protocolTemplateContent:""},this.addProtocolTypeTitle="新建",this.$refs.addTemplateDialogRef.addProtocolTypeDialog=!0},add:function(){this.title="新建",this.ruleForm.protocolName="",this.dialogVisible=!0},edit:function(){if(!this.$refs.tree.getCheckedNodes().length)return this.$message.info("请选择需要编辑的选项");this.title="编辑",this.dialogVisible=!0,this.ruleForm.protocolName=this.$refs.tree.getCheckedNodes()[0].protocolName},del:function(){var e=this;if(!this.$refs.tree.getCheckedNodes().length)return this.$message.info("请选择需要删除的选项");this.$confirm("此操作将永久删除该项, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(n["a"])(Object(r["a"])().mark((function t(){var a;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.ids=e.$refs.tree.getCheckedNodes()[0].id,t.next=3,Object(i["Wb"])({ids:e.ids});case 3:if(a=t.sent,200===a.code){t.next=6;break}return t.abrupt("return",e.$message.error(a.msg));case 6:e.$message.success("删除成功!"),e.initProtocolTypeList();case 8:case"end":return t.stop()}}),t)})))).catch((function(){}))}}},u=c,d=a("2877"),p=Object(d["a"])(u,o,l,!1,null,null,null);t["default"]=p.exports},7879:function(e,t,a){},"803d":function(e,t,a){"use strict";a("7879")},"9bb4":function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"kindeditor"},[a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.outContent,expression:"outContent"}],attrs:{id:e.id,name:"content"},domProps:{value:e.outContent},on:{input:function(t){t.target.composing||(e.outContent=t.target.value)}}})])},l=[],r=(a("a9e3"),a("c7ea"),a("8187"),a("475d"),{name:"kindeditor",data:function(){return{editor:null,outContent:this.content}},props:{content:{type:String,default:""},id:{type:String,required:!0},width:{type:String},height:{type:String},minWidth:{type:Number,default:650},minHeight:{type:Number,default:100},items:{type:Array,default:function(){return["undo","redo","|","preview","print","cut","copy","paste","plainpaste","wordpaste","|","justifyleft","justifycenter","justifyright","justifyfull","insertorderedlist","insertunorderedlist","indent","outdent","subscript","superscript","clearhtml","quickformat","selectall","|","fullscreen","/","formatblock","fontname","fontsize","|","forecolor","hilitecolor","bold","italic","underline","strikethrough","lineheight","removeformat"]}},noDisableItems:{type:Array,default:function(){return["source","fullscreen"]}},filterMode:{type:Boolean,default:!0},htmlTags:{type:Object,default:function(){return{font:["color","size","face",".background-color"],span:["style"],div:["class","align","style"],table:["class","border","cellspacing","cellpadding","width","height","align","style"],"td,th":["class","align","valign","width","height","colspan","rowspan","bgcolor","style"],a:["class","href","target","name","style"],embed:["src","width","height","type","loop","autostart","quality","style","align","allowscriptaccess","/"],img:["src","width","height","border","alt","title","align","style","/"],hr:["class","/"],br:["/"],"p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6":["align","style"],"tbody,tr,strong,b,sub,sup,em,i,u,strike":[]}}},wellFormatMode:{type:Boolean,default:!0},resizeType:{type:Number,default:2},themeType:{type:String,default:"default"},langType:{type:String,default:"zh-CN"},designMode:{type:Boolean,default:!0},fullscreenMode:{type:Boolean,default:!1},basePath:{type:String},themesPath:{type:String},pluginsPath:{type:String,default:""},langPath:{type:String},minChangeSize:{type:Number,default:5},loadStyleMode:{type:Boolean,default:!0},urlType:{type:String,default:""},newlineTag:{type:String,default:"p"},pasteType:{type:Number,default:2},dialogAlignType:{type:String,default:"page"},shadowMode:{type:Boolean,default:!0},zIndex:{type:Number,default:811213},useContextmenu:{type:Boolean,default:!0},syncType:{type:String,default:"form"},indentChar:{type:String,default:"\t"},cssPath:{type:[String,Array]},cssData:{type:String},bodyClass:{type:String,default:"ke-content"},colorTable:{type:Array},afterCreate:{type:Function},afterChange:{type:Function},afterTab:{type:Function},afterFocus:{type:Function},afterBlur:{type:Function},afterUpload:{type:Function},uploadJson:{type:String},fileManagerJson:{type:Function},allowPreviewEmoticons:{type:Boolean,default:!0},allowImageUpload:{type:Boolean,default:!0},allowFlashUpload:{type:Boolean,default:!0},allowMediaUpload:{type:Boolean,default:!0},allowFileUpload:{type:Boolean,default:!0},allowFileManager:{type:Boolean,default:!1},fontSizeTable:{type:Array,default:function(){return["9px","10px","12px","14px","16px","18px","24px","32px"]}},imageTabIndex:{type:Number,default:0},formatUploadUrl:{type:Boolean,default:!0},fullscreenShortcut:{type:Boolean,default:!1},extraFileUploadParams:{type:Array,default:function(){return[]}},filePostName:{type:String,default:"imgFile"},fillDescAfterUploadImage:{type:Boolean,default:!1},afterSelectFile:{type:Function},pagebreakHtml:{type:String,default:"