ludc
2025-01-16 5203081b68e3a8dc139d1807b2f8774e4a00a82a
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b82b750c","chunk-2d0e6678","chunk-2d0e6678","chunk-2d0e6678","chunk-2d0e6678"],{9935:function(t,e,i){"use strict";e["a"]={border:!0,height:"auto",index:!0,indexFixed:!1,dialogDrag:!0,searchShow:!0,searchIcon:!0,selection:!0,selectionFixed:!1,stripe:!0,headerAlign:"center",align:"center",emptyText:"暂无内容",tip:!1}},d030:function(t,e,i){"use strict";i("d7f1")},d7f1:function(t,e,i){},f436:function(t,e,i){"use strict";i.r(e);i("7f7f");var a=function(){var t=this,e=t._self._c;return e("el-container",{directives:[{name:"loading",rawName:"v-loading",value:t.createViewLoading,expression:"createViewLoading"}]},[e("el-aside",[e("basic-container",[e("div",{ref:"TreeBox",staticStyle:{height:"calc(100vh - 154px)"}},[e("div",{staticStyle:{height:"calc(100vh - 190px)"}},[e("avue-tree",{attrs:{data:t.treeData,option:t.treeOption},on:{"node-click":t.nodeClick},scopedSlots:t._u([{key:"default",fn:function(i){var a=i.node;i.data;return e("span",{staticClass:"el-tree-node__label"},[e("span",[e("i",{staticClass:"el-icon-s-promotion"}),t._v("\n              "+t._s((a||{}).label)+"\n          ")])])}}])})],1)])])],1),e("el-main",[e("basic-container",[e("div",[t.permissionList.addBtn?e("el-button",{attrs:{icon:"el-icon-plus",plain:"",size:"small",type:"primary"},on:{click:t.addClickHandler}},[t._v("创建")]):t._e(),t.permissionList.editBtn?e("el-button",{attrs:{icon:"el-icon-edit",plain:"",size:"small",type:"primary"},on:{click:t.editClickHandler}},[t._v("修改")]):t._e(),t.permissionList.delBtn?e("el-button",{attrs:{icon:"el-icon-delete",plain:"",size:"small",type:"danger"},on:{click:t.deleteClickHandler}},[t._v("删除")]):t._e(),t.permissionList.importBtn?e("el-button",{attrs:{icon:"el-icon-upload2",plain:"",size:"small",type:"primary"},on:{click:t.upLoadClickHandler}},[t._v("导入")]):t._e(),t.permissionList.exportBtn?e("el-button",{attrs:{icon:"el-icon-download",plain:"",size:"small",type:"primary"},on:{click:t.exportClickHandler}},[t._v("导出")]):t._e(),t.permissionList.createViewBtn?e("el-button",{attrs:{icon:"el-icon-circle-plus-outline",plain:"",size:"small",type:"primary"},on:{click:t.createViewClickHandler}},[t._v("创建视图")]):t._e(),t.permissionList.consistencyCheckBtn?e("el-button",{attrs:{icon:"el-icon-menu",plain:"",size:"small",type:"primary"},on:{click:t.checkClickHandler}},[t._v("一致性检查")]):t._e()],1),e("el-descriptions",{staticClass:"margin-top",staticStyle:{margin:"10px 0 20px"},attrs:{column:2,border:"",size:"medium"}},[e("el-descriptions-item",{attrs:{contentStyle:t.descriptionOption.contentStyle,labelStyle:t.descriptionOption.labelStyle}},[e("template",{slot:"label"},[e("i",{class:t.icons.id}),t._v("\n            名称\n          ")]),t._v("\n          "+t._s(t.nodeRow.name)+"\n        ")],2),e("el-descriptions-item",{attrs:{contentStyle:t.descriptionOption.contentStyle,labelStyle:t.descriptionOption.labelStyle}},[e("template",{slot:"label"},[e("i",{class:t.icons.name}),t._v("\n            标签\n          ")]),t._v("\n          "+t._s(t.nodeRow.tag)+"\n        ")],2),e("el-descriptions-item",{attrs:{contentStyle:t.descriptionOption.contentStyle,labelStyle:t.descriptionOption.labelStyle}},[e("template",{slot:"label"},[e("i",{class:t.icons.tableName}),t._v("\n            实现类\n          ")]),t.nodeRow.implClass?e("el-tooltip",{staticClass:"item",attrs:{content:t.nodeRow.implClass,effect:"dark",placement:"top-start"}},[e("el-tag",{staticStyle:{"max-width":"100%",overflow:"hidden",display:"block"}},[t._v(t._s(t.nodeRow.implClass))])],1):t._e()],2),e("el-descriptions-item",{attrs:{contentStyle:t.descriptionOption.contentStyle,labelStyle:t.descriptionOption.labelStyle}},[e("template",{slot:"label"},[e("i",{class:t.icons.domain}),t._v("\n            形状\n          ")]),t.nodeRow.shape?e("el-tag",[t._v("\n            "+t._s(t.nodeRow.shape)+"\n          ")]):t._e()],2),e("el-descriptions-item",{attrs:{span:2,contentStyle:t.descriptionOption.contentStyle,labelStyle:t.descriptionOption.labelStyle}},[e("template",{slot:"label"},[e("i",{class:t.icons.desc}),t._v("\n            描述\n          ")]),t._v("\n          "+t._s(t.nodeRow.description)+"\n        ")],2),e("el-descriptions-item",{attrs:{span:2,contentStyle:"word-break:break-all;",labelStyle:t.descriptionOption.labelStyle}},[e("template",{slot:"label"},[e("i",{class:t.icons.from}),t._v("From端类型\n          ")]),t._l(t.nodeRow.btmItemsFrom,(function(i){return e("span",[e("el-tag",{staticStyle:{margin:"2px 5px 2px 0"},attrs:{effect:"plain"}},[t._v("\n                  "+t._s(i)+"\n              ")])],1)}))],2),e("el-descriptions-item",{attrs:{contentStyle:t.descriptionOption.contentStyle,labelStyle:t.descriptionOption.labelStyle}},[e("template",{slot:"label"},[e("i",{class:t.icons.from}),t._v("\n            Form端主类型\n          ")]),t.nodeRow.primitivesFrom?e("el-tag",{attrs:{effect:"plain"}},[t._v("\n            "+t._s("请选择"===t.nodeRow.primitivesFrom?t.nodeRow.btmItemsFrom[0]:t.nodeRow.primitivesFrom)+"\n          ")]):t._e()],2),e("el-descriptions-item",{attrs:{contentStyle:t.descriptionOption.contentStyle,labelStyle:t.descriptionOption.labelStyle}},[e("template",{slot:"label"},[e("i",{class:t.icons.from}),t._v("\n            From端对应关系\n          ")]),t.nodeRow.relationFrom?e("el-tag",{attrs:{effect:"plain"}},[t._v(t._s(t.nodeRow.relationFrom))]):t._e()],2),e("el-descriptions-item",{attrs:{span:2,contentStyle:"word-break:break-all;",labelStyle:t.descriptionOption.labelStyle}},[e("template",{slot:"label"},[e("i",{class:t.icons.to}),t._v("\n            To端类型\n          ")]),t._l(t.nodeRow.btmItemsTo,(function(i){return e("span",[e("el-tag",{staticStyle:{margin:"2px 5px 2px 0"},attrs:{effect:"plain"}},[t._v("\n                "+t._s(i)+"\n               ")])],1)}))],2),e("el-descriptions-item",{attrs:{contentStyle:t.descriptionOption.contentStyle,labelStyle:t.descriptionOption.labelStyle}},[e("template",{slot:"label"},[e("i",{class:t.icons.to}),t._v("\n            To端主类型\n          ")]),t.nodeRow.primitivesTo?e("el-tag",{attrs:{effect:"plain"}},[t._v("\n            "+t._s("请选择"===t.nodeRow.primitivesTo?t.nodeRow.btmItemsTo[0]:t.nodeRow.primitivesTo)+"\n          ")]):t._e()],2),e("el-descriptions-item",{attrs:{contentStyle:t.descriptionOption.contentStyle,labelStyle:t.descriptionOption.labelStyle}},[e("template",{slot:"label"},[e("i",{class:t.icons.to}),t._v("\n            To端对应关系\n          ")]),t.nodeRow.relationTo?e("el-tag",{attrs:{effect:"plain"}},[t._v(t._s(t.nodeRow.relationTo))]):t._e()],2)],1),e("div",{staticStyle:{position:"relative"}},[e("h3",{staticStyle:{margin:"0",position:"absolute",top:"0","z-index":"1000"}},[t._v("属性列表")]),e("avue-crud",{attrs:{data:t.tableData,option:t.tableOption}})],1)],1)],1),e("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],staticClass:"avue-dialog",attrs:{title:"add"===t.title?"创建":"修改",visible:t.visible,"append-to-body":"true",width:"70%"},on:{"update:visible":function(e){t.visible=e},close:t.addDialogClose}},[e("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,"label-width":"85px",size:"small"}},[e("div",{staticClass:"dialogForm"},[e("div",{staticClass:"leftForm"},[e("el-form-item",{attrs:{label:"名称:",prop:"name"}},[e("el-input",{attrs:{readOnly:"edit"===t.title},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),e("el-form-item",{attrs:{label:"标签:"}},[e("el-input",{model:{value:t.form.tag,callback:function(e){t.$set(t.form,"tag",e)},expression:"form.tag"}})],1),e("el-form-item",{attrs:{label:"实现类:"}},[e("el-input",{model:{value:t.form.implClass,callback:function(e){t.$set(t.form,"implClass",e)},expression:"form.implClass"}})],1),e("el-form-item",{attrs:{label:"形状"}},[e("el-input",{model:{value:t.form.shape,callback:function(e){t.$set(t.form,"shape",e)},expression:"form.shape"}})],1),e("el-form-item",{attrs:{label:"描述"}},[e("el-input",{attrs:{rows:3,type:"textarea"},model:{value:t.form.description,callback:function(e){t.$set(t.form,"description",e)},expression:"form.description"}})],1)],1),e("div",{staticClass:"centerForm"},[e("el-form-item",{staticStyle:{"margin-bottom":"5px"},attrs:{"label-width":"110px"}},[e("div",{attrs:{slot:"label"},slot:"label"},[e("span",[t._v("Form端类型:")]),e("el-button",{staticStyle:{"margin-right":"10px"},attrs:{plain:"",size:"mini",type:"success"},on:{click:function(e){return t.FormItemReferChange("form")}}},[t._v("添加")])],1),e("div",{staticStyle:{height:"190px",border:"1px solid #EBEEF5","overflow-y":"auto"}},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.bizFormData,"show-header":!1,size:"mini"}},[e("el-table-column",{attrs:{align:"center",prop:"name"}}),e("el-table-column",{attrs:{fixed:"right",label:"操作",width:"60"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("el-button",{staticStyle:{color:"#F56C6C"},attrs:{size:"mini",type:"text"},nativeOn:{click:function(e){return e.preventDefault(),t.bizTypeDeleteRow("form",i.$index)}}},[t._v("\n                      移除\n                    ")])]}}])})],1)],1)]),e("el-form-item",{staticStyle:{"margin-bottom":"5px"},attrs:{label:"对应关系:","label-width":"110px"}},[e("el-radio",{attrs:{label:"N"},model:{value:t.form.relationFrom,callback:function(e){t.$set(t.form,"relationFrom",e)},expression:"form.relationFrom"}},[t._v("N")]),e("el-radio",{attrs:{label:"1"},model:{value:t.form.relationFrom,callback:function(e){t.$set(t.form,"relationFrom",e)},expression:"form.relationFrom"}},[t._v("1")])],1),e("el-form-item",{attrs:{label:"主类型:","label-width":"110px"}},[e("el-select",{model:{value:t.form.primitivesFrom,callback:function(e){t.$set(t.form,"primitivesFrom",e)},expression:"form.primitivesFrom"}},t._l(t.bizFormData,(function(t,i){return e("el-option",{key:i,attrs:{label:t.name,value:t.name}})})),1)],1)],1),e("div",{staticClass:"rightForm"},[e("el-form-item",{staticStyle:{"margin-bottom":"5px"},attrs:{"label-width":"100px"}},[e("div",{attrs:{slot:"label"},slot:"label"},[e("span",[t._v("To端类型:")]),e("el-button",{staticStyle:{"margin-right":"10px"},attrs:{plain:"",size:"mini",type:"success"},on:{click:function(e){return t.FormItemReferChange("to")}}},[t._v("添加")])],1),e("div",{staticStyle:{height:"190px",border:"1px solid #EBEEF5","overflow-y":"auto"}},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.bizToData,"show-header":!1,size:"mini"}},[e("el-table-column",{attrs:{align:"center",prop:"name"}}),e("el-table-column",{attrs:{fixed:"right",label:"操作",width:"60"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("el-button",{staticStyle:{color:"#F56C6C"},attrs:{size:"mini",type:"text"},nativeOn:{click:function(e){return e.preventDefault(),t.bizTypeDeleteRow("to",i.$index)}}},[t._v("\n                      移除\n                    ")])]}}])})],1)],1)]),e("el-form-item",{staticStyle:{"margin-bottom":"5px"},attrs:{label:"对应关系:","label-width":"110px"}},[e("el-radio",{attrs:{label:"N"},model:{value:t.form.relationTo,callback:function(e){t.$set(t.form,"relationTo",e)},expression:"form.relationTo"}},[t._v("N")]),e("el-radio",{attrs:{label:"1"},model:{value:t.form.relationTo,callback:function(e){t.$set(t.form,"relationTo",e)},expression:"form.relationTo"}},[t._v("1")])],1),e("el-form-item",{attrs:{label:"主类型:","label-width":"110px"}},[e("el-select",{model:{value:t.form.primitivesTo,callback:function(e){t.$set(t.form,"primitivesTo",e)},expression:"form.primitivesTo"}},t._l(t.bizToData,(function(t,i){return e("el-option",{key:i,attrs:{label:t.name,value:t.name}})})),1)],1)],1)])]),e("div",{staticClass:"bottomForm",staticStyle:{"margin-top":"10px"}},[e("avue-crud",{attrs:{size:"mini",data:t.dialogBottomData,option:t.dialogBottomOption},on:{"row-del":t.dialogBottomAttrDel},scopedSlots:t._u([{key:"menuLeft",fn:function(i){return[e("h3",{staticStyle:{display:"inline-block","margin-right":"20px","margin-bottom":"10px"}},[t._v("属性池列表")]),e("el-button",{attrs:{icon:"el-icon-plus",plain:"",size:"mini",type:"primary"},on:{click:t.dialogAddClickHandler}},[t._v("增 加\n          ")])]}}])})],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary"},on:{click:t.addDialogSavaHandler}},[t._v("确 定")]),e("el-button",{on:{click:t.addDialogClose}},[t._v("取 消")])],1),e("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],staticClass:"avue-dialog",attrs:{visible:t.attrPollDialogVisible,"append-to-body":"true",title:"属性池",width:"60%"},on:{"update:visible":function(e){t.attrPollDialogVisible=e},close:t.dialogAttrClose}},[e("avue-crud",{key:t.dialogAttrReload,ref:"dialogAttrCrud",attrs:{data:t.dialogAttrData,option:t.dialogAttrOption,page:t.attrPage,"table-loading":t.dialogAttrLoading},on:{"update:page":function(e){t.attrPage=e},"selection-change":t.dialogAttrSelectChange,"row-click":t.dialogAttrRowClickHandler,"size-change":t.attrSizeChange,"current-change":t.attrCurrentChange,"search-change":t.attrHandleSearch,"search-reset":t.attrHandleReset}}),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary"},on:{click:t.dialogAttrAddClickHandler}},[t._v("确 定")]),e("el-button",{on:{click:t.dialogAttrClose}},[t._v("取 消")])],1)],1)],1),e("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],staticClass:"avue-dialog",attrs:{visible:t.conCheckVisible,"append-to-body":"true",title:"一致性检查",width:"60%"},on:{"update:visible":function(e){t.conCheckVisible=e}}},[e("avue-crud",{attrs:{data:t.conCheckData,option:t.conCheckOption,"table-loading":t.conCheckLoading}}),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.conCheckVisible=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.repairClickHandler}},[t._v("修 复")])],1)],1),e("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],staticClass:"avue-dialog",attrs:{title:"form"===t.bizTypeTitle?"Form端类型":"To端类型",visible:t.bizTypeVisible,"append-to-body":"true",width:"70%"},on:{"update:visible":function(e){t.bizTypeVisible=e}}},[e("avue-crud",{key:t.bizTypeReload,ref:"bizTypeCrud",attrs:{data:t.bizTypeData,option:t.bizTypeOption,"table-loading":t.bizTypeLoading},on:{"search-change":t.bizTypeHandleSearch,"search-reset":t.bizTypeHandleReset,"selection-change":t.bizTypeSelection,"row-click":t.bizTypeRowClick}}),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.bizTypeVisible=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.bizTypeAddHandler}},[t._v("确 定")])],1)],1),e("upload-file",{ref:"upload",attrs:{fileType:t.upFileType,fileUrl:t.fileUrl,tipList:t.tipList,title:"导入"},on:{updata:t.getTreeList}})],1)},o=[],n=(i("8e6e"),i("456d"),i("28a5"),i("f559"),i("3835")),l=(i("ffc1"),i("ac6a"),i("ade3")),r=i("a645"),s=i("9935"),c=i("a73d"),d=i("d9a3"),p=i("5880");function m(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function u(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?m(Object(i),!0).forEach((function(e){Object(l["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):m(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var b={name:"index",data:function(){return{tipList:["导入链接名称不可为空且链接类型名称只能为英文字母","导入的文件包括属性、业务类型、生命周期等文件","上传的文件为压缩文件,且压缩格式仅能为zip格式"],upFileType:["zip"],fileUrl:"api/linkTypeController/impData",title:"",bizTypeReload:null,bizToData:[],bizFormData:[],bizTypeList:[],bizTypeLoading:!1,bizTypeData:[],bizTypeOption:u(u({},s["a"]),{},{menu:!1,addBtn:!1,index:!1,refreshBtn:!1,highlightCurrentRow:!0,searchMenuSpan:8,searchLabelWidth:100,calcHeight:30,header:!1,column:[{label:"业务类型名",prop:"name",sortable:!0,search:!0},{label:"标签",prop:"label",sortable:!0},{label:"父类",prop:"fName",sortable:!0},{label:"版本规则",prop:"revRuleName",sortable:!0},{label:"生命周期",prop:"lifeCycle",sortable:!0}]}),bizTypeVisible:!1,bizTypeTitle:"",conDefaultCheckData:[],conCheckLoading:!1,conCheckOption:u(u({},s["a"]),{},{menu:!1,addBtn:!1,index:!1,selection:!1,refreshBtn:!1,header:!1,column:[{label:"类型名",prop:"id"},{label:"操作",prop:"methods"},{label:"状态",prop:"status"}]}),conCheckData:[],conCheckVisible:!1,attrPage:{currentPage:1,pageSize:30,total:0,pageSizes:[30,50,100,200]},searchAttrParams:{},dialogAttrReload:Math.random(),dialogAttrSelectList:[],dialogAttrLoading:!1,dialogAttrData:[],dialogAttrOption:u(u({},s["a"]),{},{calcHeight:-60,addBtn:!1,menu:!1,refreshBtn:!1,index:!1,highlightCurrentRow:!0,height:450,searchMenuSpan:8,header:!1,selectable:function(t){return t.selectable},column:[{label:"属性名",prop:"id",sortable:!0,search:!0,width:260},{label:"属性类型",prop:"attributeDataType",sortable:!0,width:150},{label:"初始值",prop:"defaultValue",sortable:!0,width:200},{label:"说明",prop:"description",sortable:!0,overHidden:!0}]}),attrPollDialogVisible:!1,createViewLoading:!1,checkVisible:!1,rules:{name:[{required:!0,message:"请输入名称",trigger:"blur"}]},form:{name:"",tag:"",implClass:"",shape:"",description:"",btmItemsFrom:"",relationFrom:"N",primitivesFrom:"",btmItemsTo:"",relationTo:"N",primitivesTo:"",attributes:[]},dialogBottomOption:u(u({},s["a"]),{},{editBtn:!1,refreshBtn:!1,selection:!1,height:220,menuWidth:100,addBtn:!1,gridBtn:!1,columnBtn:!1,column:[{label:"属性名",prop:"id",sortable:!0,width:260},{label:"属性类型",prop:"attributeDataType",sortable:!0,width:150},{label:"初始值",prop:"defaultValue",sortable:!0,width:200},{label:"说明",prop:"description",overHidden:!0}]}),dialogBottomData:[],visible:!1,treeOption:{height:"auto",defaultExpandAll:!1,menu:!1,addBtn:!1,props:{label:"name",value:"name",children:"children"}},treeData:[],tableData:[],tableOption:u(u({},s["a"]),{},{editBtn:!1,refreshBtn:!1,selection:!1,addBtn:!1,menu:!1,calcHeight:-30,column:[{label:"属性名",prop:"id",sortable:!0,width:260},{label:"属性类型",prop:"attributeDataType",sortable:!0,width:150},{label:"初始值",prop:"defaultValue",sortable:!0,width:200},{label:"说明",prop:"description",overHidden:!0}]}),nodeRow:{},descriptionOption:{labelStyle:"text-align:center;width:120px",contentStyle:"width:240px;text-align:center;word-break:break-all;"},icons:{id:"el-icon-finished",name:"el-icon-tickets",tableName:"el-icon-date",domain:"el-icon-connection",from:"el-icon-sort-down",to:"el-icon-sort-up",main:"el-icon-warning-outline",desc:"el-icon-chat-line-square"},bizLastIndex:null,attrLastIndex:null}},created:function(){this.getTreeList()},computed:u(u({},Object(p["mapGetters"])(["permission"])),{},{permissionList:function(){return{addBtn:this.vaildData(this.permission[this.$route.query.id].ADD,!1),delBtn:this.vaildData(this.permission[this.$route.query.id].DELETE,!1),editBtn:this.vaildData(this.permission[this.$route.query.id].EDIT,!1),exportBtn:this.vaildData(this.permission[this.$route.query.id].EXPORT,!1),importBtn:this.vaildData(this.permission[this.$route.query.id].IMPORT,!1),consistencyCheckBtn:this.vaildData(this.permission[this.$route.query.id].consistencyCheck,!1),createViewBtn:this.vaildData(this.permission[this.$route.query.id].createView,!1)}}}),methods:{getTreeList:function(){var t=this;Object(r["gridLink"])().then((function(e){var i=e.data.data;t.treeData=i,t.tableLoading=!1}))},upLoadClickHandler:function(){this.$refs.upload.visible=!0},nodeClick:function(t){console.log(t),this.nodeRow=t,this.getAttrPollData(t)},getAttrPollData:function(t){var e=this,i=t.attributes.join(",");Object(r["getByAttributeNames"])({attrNames:i}).then((function(t){200===t.data.code&&(e.tableData=t.data.data)}))},deleteClickHandler:function(){var t=this;d["a"].isEmptyObject(this.nodeRow)?this.$message.error("请至少选择一条数据"):this.$confirm("您确定要删除所选择的数据吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(r["deleteLink"])(t.nodeRow).then((function(e){200===e.data.code&&(t.$message.success("删除成功"),t.getTreeList())}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},addClickHandler:function(){this.visible=!0,this.title="add"},editClickHandler:function(){var t=this;if(this.title="edit",d["a"].isEmptyObject(this.nodeRow))this.$message.error("请至少选择一条数据");else{if(this.form=u({},this.nodeRow),console.log(this.nodeRow),this.bizFormData=this.form.btmItemsFrom.length>0&&this.form.btmItemsFrom.map((function(t){return{name:t}})),this.bizToData=this.form.btmItemsTo.length>0&&this.form.btmItemsTo.map((function(t){return{name:t}})),this.form.attributes.length>0){var e=this.form.attributes.join(",");Object(r["getByAttributeNames"])({attrNames:e}).then((function(e){200===e.data.code&&(t.dialogBottomData=e.data.data)}))}this.visible=!0}},checkClickHandler:function(){var t=this;Object(r["checkLinkType"])().then((function(e){if(e&&e.data&&e.data.data){if(t.conCheckVisible=!0,t.conCheckLoading=!0,200===e.data.code){var i=e.data.data;t.conDefaultCheckData=i,t.conCheckLoading=!1;var a=[];i.forEach((function(e){Object.entries(e.btmCheckMap).forEach((function(t){var e=Object(n["a"])(t,2),i=e[0],o=e[1];o.forEach((function(t){var e=t.startsWith("F_")?"移除form端业务类型":"移除to端业务类型",o=t.split("_")[1];a.push({id:i,methods:"".concat(e,":").concat(o),status:"未修复"})}))})),Object.entries(e.dbCheckMap).forEach((function(e){var i=Object(n["a"])(e,2),o=i[0],l=i[1],r=l.split("(");r[0].startsWith("_ADD")?a.push({id:o,methods:"增加列("+r[0].slice(0,-1)+")",status:"未修复"}):r[0].startsWith("_CREATE")?a.push({id:o,methods:"创建表("+r[0].slice(0,-1)+")",status:"未修复"}):r[0].startsWith("_DROP")?a.push({id:o,methods:"移除列("+r[0].slice(0,-1)+")",status:"未修复"}):t.$message.error("不支持的 dbCheckMap 类型: "+l)}))})),t.conCheckData=a}}else t.$message.success(e.data.msg)})).catch((function(e){t.$message.error(e)}))},repairClickHandler:function(){var t=this,e=this.conDefaultCheckData[0];Object(r["repairTable"])(e).then((function(e){d["a"].isEmptyObject(e.data.obj[0])?(t.$message.success("修复成功"),t.conCheckData=[]):t.$message.error("修复失败,请重新尝试!"),t.conCheckVisible=!1}))},createViewClickHandler:function(){var t=this;this.createViewLoading=!0,Object(r["createView"])().then((function(e){200===e.data.code&&(t.createViewLoading=!1,t.$message.success(e.data.obj))})).catch((function(e){t.createViewLoading=!1}))},dialogAddClickHandler:function(){this.dialogAttrLoading=!0,this.attrPollDialogVisible=!0,this.dialogAttrReload=Math.random(),this.getAttrDialogDta()},getAttrDialogDta:function(){var t=this;Object(c["gridAttribute"])(this.attrPage.currentPage,this.attrPage.pageSize,this.searchAttrParams).then((function(e){var i=e.data.data.map((function(e){return e.selectable=!t.dialogBottomData.some((function(t){return t.id===e.id})),e}));t.dialogAttrData=i,t.attrPage.total=e.data.total,t.dialogAttrLoading=!1})).catch((function(e){t.$message.error(e)}))},dialogAttrSelectChange:function(t){this.dialogAttrSelectList=t},dialogAttrRowClickHandler:function(t){var e=this;t.selectable&&d["a"].rowClickHandler(t,this.$refs.dialogAttrCrud,this.attrLastIndex,(function(t){e.attrLastIndex=t}),(function(){e.selectList=[]}))},dialogAttrClose:function(){this.attrPollDialogVisible=!1,this.searchAttrParams={}},resetForm:function(){var t={name:"",tag:"",implClass:"",shape:"",description:"",btmItemsFrom:"",relationFrom:"N",primitivesFrom:"",btmItemsTo:"",relationTo:"N",primitivesTo:""};this.form=t,this.$refs.form.resetFields(),this.bizFormData=[],this.bizToData=[],this.dialogBottomData=[]},dialogAttrAddClickHandler:function(){var t=this;this.dialogAttrSelectList.forEach((function(e){t.dialogBottomData.push({id:e.id,attributeDataType:e.attributeDataType,defaultValue:e.defaultValue,description:e.description})})),this.attrPollDialogVisible=!1},attrSizeChange:function(t){this.attrPage.pageSize=t,this.getAttrDialogDta()},attrCurrentChange:function(t){this.attrPage.currentPage=t,this.getAttrDialogDta()},attrHandleSearch:function(t,e){d["a"].isEmptyObject(t)?this.searchAttrParams={}:this.searchAttrParams={"conditionMap[id]":"*"+t.id+"*"},this.getAttrDialogDta(),e()},attrHandleReset:function(){this.searchAttrParams={},this.getAttrDialogDta()},dialogBottomAttrDel:function(t,e){this.dialogBottomData.splice(e,1)},addDialogClose:function(){this.visible=!1,this.dialogBottomData=[],this.resetForm()},FormItemReferChange:function(t){this.bizTypeTitle=t,this.bizTypeLoading=!0,this.getBizTypeHandler(),this.bizTypeVisible=!0,this.bizTypeReload=Math.random()},getBizTypeHandler:function(t){var e=this;Object(r["getBizTypes"])(t).then((function(t){if(200===t.data.code){var i=t.data.data;e.bizTypeData=i,e.bizTypeLoading=!1}}))},bizTypeSelection:function(t){this.bizTypeList=t},bizTypeRowClick:function(t){var e=this;d["a"].rowClickHandler(t,this.$refs.bizTypeCrud,this.bizLastIndex,(function(t){e.bizLastIndex=t}),(function(){e.selectList=[]}))},bizTypeAddHandler:function(){var t=this;if(0!==this.bizTypeList.length){this.bizTypeList.map((function(t){return{name:t.name}}));var e,i="form"===this.bizTypeTitle?"bizFormData":"bizToData",a=!1,o=[];if(this.bizTypeList.forEach((function(e){var n=t[i].some((function(t){return t.name===e.name}));n?a=!0:o.push({name:e.name})})),a)this.$message.error("请检查是否有添加重复项!");else(e=this[i]).push.apply(e,o),this.bizTypeVisible=!1}else this.$message.error("请至少选择一条数据")},bizTypeHandleSearch:function(t,e){console.log(t);var i={btmName:t.name};this.getBizTypeHandler(i),e()},bizTypeHandleReset:function(){this.getBizTypeHandler()},bizTypeDeleteRow:function(t,e){var i="form"===t?"bizFormData":"bizToData",a="form"===t?"primitivesFrom":"primitivesTo";this[i].splice(e,1),0===this[i].length&&(this.form[a]="")},addDialogSavaHandler:function(){var t=this;this.bizFormData.length<=0||this.bizToData.length<=0?this.$message.error("form端业务类型和to端类型均不能为空!"):this.$refs.form.validate((function(e){if(!e)return!1;t.form.btmItemsFrom=t.bizFormData.map((function(t){return t.name})),t.form.btmItemsTo=t.bizToData.map((function(t){return t.name})),t.form.attributes=t.dialogBottomData.map((function(t){return t.id}));var i="add"===t.title;Object(r["addAndEditLink"])(i,t.form).then((function(e){200===e.data.code&&(t.visible=!1,t.$message.success(e.data.msg),t.resetForm(),t.getTreeList())}))}))},exportClickHandler:function(){var t=this;if(d["a"].isEmptyObject(this.nodeRow))this.$message.error("请至少选择一条数据");else{var e=this.nodeRow.name;Object(r["expData"])({name:e}).then((function(e){d["a"].downloadFileByBlobHandler(e),t.$message.success("导出成功")})).catch((function(e){t.$message.error(e)}))}}}},h=b,f=(i("d030"),i("2877")),g=Object(f["a"])(h,a,o,!1,null,"11795e9b",null);e["default"]=g.exports}}]);