1 line
206 KiB
JavaScript
1 line
206 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f58d5bde"],{"02ab":function(e,t,s){"use strict";s("8d13")},1337:function(e,t,s){"use strict";s.d(t,"c",(function(){return o})),s.d(t,"b",(function(){return i})),s.d(t,"d",(function(){return a})),s.d(t,"a",(function(){return r})),s.d(t,"e",(function(){return l}));const i=function(e,t,s,i,a){i||(i={}),i.cmd=s,i.sid=t,o(e,wHref,i,a)},o=function(e,t,s,i){var o=document.getElementById(e);o&&document.body.removeChild(o);var a=document.createElement("form");for(var r in a.action=t,a.target=void 0==i?"_blank":i,a.method="get",a.style.display="none",s){var l=document.createElement("textarea");l.name=r,l.value=s[r],a.appendChild(l)}a.setAttribute("id",e),document.body.appendChild(a),a.submit()},a=function(e,t,s){i("palDesigner",s,"com.actionsoft.apps.coe.pal_pl_repository_designer",{uuid:t,teamId:e})},r=function(e,t){let s=e;while(s.nodeName!=t&&"BODY"!=s.nodeName)s=s.parentNode;return s.nodeName==t?s:null},l=function(e){document.getElementsByTagName("title")[0].innerText=e}},"1c92":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAABz1JREFUeF7t3G2SEzcQgOHhZnCyhJOFm5FyiGFZ1rbU0/PV/aQq/0ay9baeDIEtPi3+UUCBhwU+aaOAAo8LAOJ2KPCkACCuhwKAuAMKxAp4g8S6WdWkACBNBu2YsQKAxLpZ1aQAIE0G7ZixAoDEulnVpAAgTQbtmLECgMS6WdWkACBNBu2YsQKAxLpZ1aQAIE0G7ZixAoDEulnVpAAgTQbtmLECgMS6WdWkACBNBu2YsQKAxLpZ1aQAIE0G7ZixAoDEulnVpAAgTQbtmLECgMS6WdWkACBNBu2YsQKAxLpZ1aQAIE0G7ZixAoDEulnVpAAgTQbtmLECgMS6WdWkACBNBu2YsQKAxLpZ1aQAIE0G7ZixAoDEulnVpAAgTQbtmLECgMS6WdWkACBNBu2YsQKAxLpZ1aQAIE0G7ZixAoDEulnVpAAgTQbtmLECgMS6WdWkACBNBu2YsQKAxLpZ1aQAIE0G7ZixAp2A/LUsy9dYJqu6FugC5Ibj7///vRKSf5Zl+bwsS5c5nc5hh/B3HPf4NyhXQHLHcf/eHWYFyM4F3uO4CpL3OCDZ+eJ0CP4Ix9mRPMLRYWYHMXj8sVVf269wnBXJKxyQ7EyoIpBRHGdDMooDkh2RVAMyi+MsSGZxQLITkkpAojiORhLFAckOSCoB+Z7Qa+/fAr79GccNyNp/Ks1xbYvU9ZXCrn2DHPUmyfrelWaZesnXbFYtatZl2/tNkvW9q81zzd1OWVsxaNZlgyTlil17k4pAbhOB5Nr38jTfvioQSPyAYwqyykAggWQ1kupAIIFkFZIOQCCBJIykCxBIIAkh6QQEEkimkXQDAgkkU0g6AoEEkmEkXYFAAskQks5AIIHkJZLuQCCB5CkSQH7k8bNbL/9b2vMBQH7NHZKeBrxBJuYOyUSsDo96g/w5ZUg63PzBMwLycShIBi9Q9ccAeTxhSKrf/oHzAfI8EiQDl6jyI4C8ni4krxuVfQKQsdFCMtap3FOAjI8UkvFWZZ4EZG6UkMz1uvzTgMyPEJL5ZpddAUhsdJDEul1uFSDxkUESb3eZlYCsGxUk6/qdfjUg60cEyfqGp90BkJzRQJLT8XS7AJI3EkjyWp5mJ0ByRwFJbs/DdwMkfwSQ5Dc9bEdAtkkPyTZdd98VkO2SQ7Jd2912BmTb1JBs23fz3QHZPLG/Umj7xNt9AiDbtX27szfJPp3TPwWQ9KQPN4Rkv9ZpnwRIWsqhjSAZynSehwDZfxaQ7N88/ImAhNOtWgjJqnz7LQZkv9bvPwmS49oPfzIgw6nSH8wC8mVZlm/p3+7xhhnf+/Z9v+78vUOJAAllW70o45LdvgQcq0fxfANANg78wfZw7PvGWzVhQFblm14Mx4Vw3KYLyPQdDy+A42I4AAnf9emFcFwQByDT9zy0AI6L4gAkdN+nFsFxYRyATN316YfhuDgOQKbv/PACOArgAGT4vk89CEcRHIBM3fuhh+EohAOQoTs//BAcxXAAMnz3Xz4IR0EcgLy890MPwFEUByBD9//pQ3AUxgHIOiBwFMcBSBwIHA1wABIDAkcTHIDMA4GjEQ5A5oDA0QwHIONA4GiIA5AxIHA0xQHIayBwNMYByHMgcDTHAchjIHDA8d/t8Lea/IkEDjh+3gpAfgcCBxy/3QhAfuWAA44/fj0ByI8kcMDx4f+RAgLHJf6W9de/I7/NE92BeHN4czyV1RkIHHC8fO10BQIHHC9xdP1zEDjgGMLREQgccAzj6AYEDjimcHQCAgcc0zi6AIEDjhCODkDggCOMozoQOOBYhaMyEDjgWI2jKhA44EjBUREIHHCk4agGBA44UnFUA/I9oc6XZd9LloH627IsfmQ9YfgfbVHphxXXXra9cdznsQY2HBvBuG9bCcjtTFEkR+FYgwSOjXFU+yXWPdcskqNxRJDAsQOOqkBm3iRnwTGDBI6dcFQGMoLkbDhGkMCxI47qQJ4hOSuOZ0jg2BlHByAfITk7jo+QwHEAji5A3iK5Co63SOA4CEcnILezft75DwGzxnrV7511/kP3qfbnIIfG9OH1CgBSb6ZOlFgAkMSYtqpXAJB6M3WixAKAJMa0Vb0CgNSbqRMlFgAkMaat6hUApN5MnSixACCJMW1VrwAg9WbqRIkFAEmMaat6BQCpN1MnSiwASGJMW9UrAEi9mTpRYgFAEmPaql4BQOrN1IkSCwCSGNNW9QoAUm+mTpRYAJDEmLaqVwCQejN1osQCgCTGtFW9AoDUm6kTJRYAJDGmreoVAKTeTJ0osQAgiTFtVa8AIPVm6kSJBQBJjGmregUAqTdTJ0osAEhiTFvVKwBIvZk6UWIBQBJj2qpeAUDqzdSJEgsAkhjTVvUKAFJvpk6UWACQxJi2qlcAkHozdaLEAoAkxrRVvQKA1JupEyUWACQxpq3qFQCk3kydKLEAIIkxbVWvACD1ZupEiQUASYxpq3oFAKk3UydKLABIYkxb1SvwL3Xjs9jKQ0L9AAAAAElFTkSuQmCC"},"1d6e":function(e,t,s){"use strict";s("ca1d")},"30d1":function(e,t,s){"use strict";s("592e")},3903:function(e,t,s){},"41ce":function(e,t,s){"use strict";s("e454")},4534:function(e,t,s){},"490e":function(e,t,s){"use strict";s("3903")},"4cbb":function(e,t,s){"use strict";var i=function(){var e=this,t=e._self._c;return t("el-container",[t("el-dialog",{attrs:{id:"bpmOrgAddress",title:e.title,visible:e.dialogVisible,"destroy-on-close":!0,width:e.width,"modal-append-to-body":!1,"append-to-body":!0,"close-on-click-modal":!1,"before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[e.refresh?[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{"element-loading-text":"拼命加载中"}},[t("div",{staticStyle:{height:"300px",overflow:"auto",border:"1px solid #f2f2f2"}},[t("div",{staticClass:"tree"},[t("el-tree",{ref:"tree",attrs:{props:e.treeProps,"show-checkbox":e.multiple,"expand-on-click-node":!1,"check-strictly":!0,"highlight-current":!0,"node-key":"id",lazy:"",load:e.loadNode},on:{"node-click":e.openNode,"node-expand":e.expandNode,"node-collapse":e.closeNode},scopedSlots:e._u([{key:"default",fn:function({node:s,data:i}){return t("span",{},[t("i",{staticClass:"awsui-iconfont tree-content-icon tree-content-icon-padding",style:{color:s.data.icon.color},domProps:{innerHTML:e._s(s.data.icon.icon)}}),t("span",[e._v(e._s(s.label))])])}}],null,!1,52448956)})],1)])])]:e._e(),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{staticClass:"button-general-color",attrs:{type:"primary"},on:{click:e.submit}},[e._v("确定")]),t("awsui-button",{on:{click:e.cancel}},[e._v("取消")])],1)],2)],1)},o=[],a=s("0f08"),r={name:"BpmOrgAddress",props:{visible:{type:Boolean,default:!1},addressType:{type:String,default:"department"},multiple:{type:Boolean,default:!1},rootDeptId:{type:String,default:""},highSecurityFilter:{type:String,default:""},title:{type:String,default:""},selected:{type:Object,default:function(){return{department:[],user:[],role:[],position:[]}}}},data(){return{refresh:!1,dialogVisible:!1,loading:!1,searchKey:"",treeSearchKey:"",timeout:null,pid:"",width:"500px",treeProps:{label:"name",isLeaf:"leaf"}}},methods:{handleClose(e){this.closeDlalog("cancel"),e()},cancel(){this.closeDlalog("cancel"),this.dialogVisible=!1},submit(){this.closeDlalog("save"),this.dialogVisible=!1},closeDlalog(e){if("save"==e){let e=[];if(this.multiple)e=this.$refs.tree.getCheckedNodes();else{const t=this.$refs.tree.getCurrentNode();null!=t&&e.push(t)}this.$emit("getResult",JSON.parse(JSON.stringify(e)))}else this.$emit("cancel")},handleNodeClick(e){},openNode(e,t,s){},treeSearchSelect(e){this.queryTreeByIdAndPath(e.id,e.path)},treeSearch(e,t){const s=this;if(void 0!=e&&""!=e.trim()){const i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_repository_tree_component_search",addressType:s.addressType,rootDeptId:s.rootDeptId,name:e}};a["a"].post(i).then((function(e){"ok"==e.result&&e.data.length>0?(clearTimeout(s.timeout),s.timeout=setTimeout(()=>{t(e.data)},3e3*Math.random())):clearTimeout(s.timeout)})).catch(e=>{console.log(e)})}else clearTimeout(s.timeout)},queryTreeByIdAndPath(e,t){const s=this,i=s.$refs.tree,o=t.split(",");let a=1;for(let r=0;r<o.length;r++)r>0&&null!=i.getNode(o[r-1])&&(setTimeout(s._expandNode(i,o[r-1]),300*a),a++);setTimeout((function(){null!=i.getNode(e)&&i.setCurrentKey(e)}),300*a)},_expandNode(e,t){return function(){e.getNode(t).expand()}},loadNode(e,t){const s=this;s.loading=!0;const i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_bpm_org_address_component_subjson",addressType:s.addressType,pid:"",highSecurityFilter:s.highSecurityFilter}};0===e.level?(i.data.pid=s.pid,i.data.parentType=""):(i.data.pid=e.data.id,i.data.parentType=e.data.type),a["a"].post(i).then((function(i){if(s.multiple){const e=s.addressType.indexOf("department")>-1,t=s.addressType.indexOf("user")>-1,o=s.addressType.indexOf("role")>-1,a=s.addressType.indexOf("position")>-1;for(let s=0;s<i.data.length;s++){const r=i.data[s];"company"==r.type||"roleRoot"==r.type||"roleGroup"==r.type||"positionRoot"==r.type||"positionGroup"==r.type?r.disabled=!0:(e&&"department"==r.type&&(r.disabled=!1),e||"department"!=r.type||(r.disabled=!0),t&&"user"==r.type&&(r.disabled=!1),t||"user"!=r.type||(r.disabled=!0),o&&"role"==r.type&&(r.disabled=!1),o||"role"!=r.type||(r.disabled=!0),a&&"position"==r.type&&(r.disabled=!1),a||"position"!=r.type||(r.disabled=!0))}}if(t(i.data),s.loading=!1,0==e.level&&i.data.length>0){const e=s.$refs.tree;e.getNode(i.data[0].id).expand(),setTimeout((function(){const t=e.getNode(i.data[0].id).childNodes[0];null!=t&&t.expand()}),500)}})).catch(e=>{console.log(e)})},expandNode(e,t,s){},closeNode(e,t,s){t.childNodes=[],t.loaded=!1},refreshNode(e){if(void 0==e){const e=this.$refs.tree.getCurrentNode();if(null!=e){void 0!=this.$refs.tree.store.nodesMap[e.id]&&(this.$refs.tree.store.nodesMap[e.id].expanded=!1);const t=this.$refs.tree.getNode(e.id);this.closeNode(null,t,null),t.expand()}}else{void 0!=this.$refs.tree.store.nodesMap[e]&&(this.$refs.tree.store.nodesMap[e].expanded=!1);const t=this.$refs.tree.getNode(e);null!=t&&(this.closeNode(null,t,null),t.expand())}}},watch:{visible(e){this.dialogVisible=e,e?(this.addressType.indexOf("department")>0&&(this.pid=this.rootDeptId),this.refresh=!0):this.refresh=!1}}},l=r,n=(s("30d1"),s("0b56")),d=Object(n["a"])(l,i,o,!1,null,"6de64a47",null);t["a"]=d.exports},"52ee":function(e,t,s){"use strict";s("60d7")},"592e":function(e,t,s){},"60d7":function(e,t,s){},"67bd":function(e,t,s){"use strict";s("4534")},7834:function(e,t,s){},"7bb4":function(e,t,s){"use strict";s("828d")},"7eb6":function(e,t,s){"use strict";s.r(t);var i=function(){var e=this,t=e._self._c;return t("el-container",{style:{width:"100%",height:e.mainHeight},attrs:{id:"repository"}},[t("el-aside",{staticStyle:{overflow:"hidden","border-right":"1px solid #F2F2F2"},attrs:{width:"300px"}},[e.reFresh&&e.conditionReFresh?t("RepositoryMain",{key:"repositoryMain",ref:"repositoryMain",attrs:{"condition-data":e.conditionData}}):e._e()],1),t("el-main",[e.conditionReFresh?t(e.mainContent,{key:Math.random(),ref:"component",tag:"component",attrs:{uuid:e.uuid,refreshTreeParentNode:e.refreshTreeParentNode,refreshTreeNode:e.refreshTreeNode,treeNode:e.treeNode}}):e._e()],1)],1)},a=[],r=function(){var e=this,t=e._self._c;return t("el-container",{staticStyle:{overflow:"hidden"},attrs:{id:"repositoryMain"}},[!e.havingWritePerm||e.havingCreatePerm?t("el-header",{attrs:{height:e.headerHeight2}}):e._e(),e.havingWritePerm||e.havingCreatePerm?t("el-header",{attrs:{height:e.headerHeight1}},[t("div",{staticStyle:{margin:"12px 0px 10px","text-align":"center"}},[e.havingWritePerm||e.havingCreatePerm?t("el-popover",{attrs:{placement:"bottom",width:"280",trigger:"click","visible-arrow":!1},on:{show:e.showCreateEvent},model:{value:e.createDesignerVisible,callback:function(t){e.createDesignerVisible=t},expression:"createDesignerVisible"}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.createMethodLoading,expression:"createMethodLoading"}],attrs:{"element-loading-text":"拼命加载中"}},[t("div",[t("ul",e._l(Math.ceil(e.fileMethodList.length/4),(function(s){return t("li",{staticStyle:{"margin-bottom":"7px"}},[e._l(e.fileMethodList.slice(4*(s-1),4*s),(function(s){return[t("div",{staticClass:"new-repository-item",style:{opacity:s.opacity,filter:s.filter,cursor:s.cursor},on:{click:function(t){s.clickFlag&&e.createDesigner(s.app,s.category,s.method)}}},[t("div",{staticStyle:{position:"relative",top:"9px"}},[t("div",{staticClass:"icon-div-repository",style:{"background-color":s.icon.color},attrs:{title:s.methodName}},[t("i",{staticClass:"awsui-iconfont icon-dynamic-repository",domProps:{innerHTML:e._s(s.icon.code)}})]),t("div",{staticClass:"item-name text-general-color icon-text"},[t("label",{style:{cursor:s.cursor}},[e._v(e._s(s.methodName))])])])])]}))],2)})),0)]),t("div",{staticStyle:{"border-bottom":"1px solid #F2F2F2"}}),t("div",{staticStyle:{"margin-top":"7px"}},[t("ul",[t("li",[e._l(e.folderMethodList,(function(s){return[t("div",{staticClass:"new-repository-item",style:{opacity:s.opacity,filter:s.filter,cursor:s.cursor},on:{click:function(t){s.clickFlag&&e.createFolder(s.method,s.methodName)}}},[t("div",{staticStyle:{position:"relative",top:"4px"}},[t("div",{staticClass:"icon-div-repository"},[t("i",{staticClass:"awsui-iconfont icon-fixed-repository",style:{color:s.icon.color},domProps:{innerHTML:e._s(s.icon.code)}})]),t("div",{staticClass:"item-name text-general-color fixed-icon-text"},[t("label",{style:{cursor:s.cursor}},[e._v(e._s(s.methodName))])])])])]}))],2)])])]),t("awsui-button",{class:{"button-general-color":!e.dis},staticStyle:{width:"100%",height:"36px",margin:"0","font-size":"14px"},attrs:{slot:"reference",type:"primary",disabled:e.dis},slot:"reference"},[e._v("新建 ")])],1):e._e()],1),t("div",{staticClass:"condition-box",staticStyle:{"margin-bottom":"10px",display:"flex","justify-content":"space-evenly"}},[t("el-popover",{attrs:{placement:"bottom",width:"310",trigger:"click"}},[t("template",{slot:"default"},[t("div",{staticClass:"create-user-box"},[t("el-input",{staticClass:"input-with-select",attrs:{size:"mini",placeholder:"请输入用户名"},model:{value:e.searchUserName,callback:function(t){e.searchUserName=t},expression:"searchUserName"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.searchUserNameText},slot:"append"})],1),t("div",{staticStyle:{margin:"6px 0"}},[t("el-checkbox",{on:{change:e.handleCheckCurrentUserChange},model:{value:e.currentUserCheck,callback:function(t){e.currentUserCheck=t},expression:"currentUserCheck"}},[t("div",{staticStyle:{"font-weight":"600"}},[t("span",[e._v(e._s(e.currentUser.userName))]),t("span",{staticStyle:{"margin-left":"15px"}},[e._v("(当前用户)")])])])],1),t("el-divider"),t("div",{staticStyle:{margin:"4px 0"}},[t("el-checkbox",{attrs:{indeterminate:e.userIndeterminate},on:{change:e.handleCheckAllUserChange},model:{value:e.userCheckAll,callback:function(t){e.userCheckAll=t},expression:"userCheckAll"}},[t("span",{staticStyle:{"font-weight":"600"}},[e._v("全部")])])],1),t("div",{staticStyle:{overflow:"auto",height:"88px"}},[t("el-checkbox-group",{on:{change:e.handleCheckedUserChange},model:{value:e.checkCreateUserIds,callback:function(t){e.checkCreateUserIds=t},expression:"checkCreateUserIds"}},e._l(e.createUserList,(function(s){return t("el-checkbox",{key:s.userId,attrs:{label:s.userId}},[t("div",{staticStyle:{display:"inline-flex","justify-content":"space-between",width:"280px","font-weight":"600"}},[t("span",[e._v(e._s(s.userName))]),t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:s.deptName,placement:"bottom"}},[t("span",{staticStyle:{"margin-left":"55px"}},[e._v(e._s(s.deptNameView))])])],1)])})),1)],1)],1)]),t("div",{staticStyle:{cursor:"pointer"},attrs:{slot:"reference"},slot:"reference"},[t("span",{staticStyle:{"font-size":"12px",color:"rgb(147,147,153)","margin-right":"8px"}},[e._v("创建人")]),t("span",{staticStyle:{color:"rgb(147,147,153)"}},[t("i",{staticClass:"el-icon-arrow-down"})])])],2),t("el-divider",{attrs:{direction:"vertical"}}),t("el-popover",{attrs:{placement:"bottom",width:"300",trigger:"click"}},[t("template",{slot:"default"},[t("div",{staticClass:"org-box"},[t("el-input",{staticClass:"input-with-select",attrs:{size:"mini",placeholder:"请输入组织"},model:{value:e.searchOrgName,callback:function(t){e.searchOrgName=t},expression:"searchOrgName"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.searchOrgNameFun},slot:"append"})],1),t("div",{staticStyle:{margin:"6px 0"}},[t("el-checkbox",{on:{change:e.handleCheckCurrentUserDeptChange},model:{value:e.currentUserDeptCheck,callback:function(t){e.currentUserDeptCheck=t},expression:"currentUserDeptCheck"}},[t("div",{staticStyle:{"font-weight":"600"}},[t("span",[e._v(e._s(e.currentUser.userName))]),t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.currentUser.deptName,placement:"bottom"}},[t("span",{staticStyle:{"margin-left":"110px"}},[e._v("("+e._s(e.currentUser.deptNameView)+")")])])],1)])],1),t("el-divider"),t("div",{staticStyle:{overflow:"auto",height:"305px"}},[t("el-tree",{ref:"orgTree",attrs:{props:e.treeProps,"show-checkbox":e.multiple,"expand-on-click-node":!1,"check-strictly":!0,"highlight-current":!0,"filter-node-method":e.filterNode,"default-expanded-keys":e.expandKeys,"node-key":"id",lazy:"",load:e.loadNodeOrg},on:{"node-collapse":e.closeNodeOrg,"check-change":e.orgCheckChange},scopedSlots:e._u([{key:"default",fn:function({node:s,data:i}){return t("span",{},[t("i",{staticClass:"awsui-iconfont tree-content-icon tree-content-icon-padding",style:{color:s.data.icon.color},domProps:{innerHTML:e._s(s.data.icon.icon)}}),t("span",[e._v(e._s(s.label))])])}}],null,!1,52448956)})],1)],1)]),t("div",{staticStyle:{cursor:"pointer"},attrs:{slot:"reference"},slot:"reference"},[t("span",{staticStyle:{"font-size":"12px",color:"rgb(147,147,153)","margin-right":"8px"}},[e._v("组织机构")]),t("span",{staticStyle:{color:"rgb(147,147,153)"}},[t("i",{staticClass:"el-icon-arrow-down"})])])],2),t("el-divider",{attrs:{direction:"vertical"}}),t("el-popover",{attrs:{placement:"bottom-end",width:"200",trigger:"click"}},[t("template",{slot:"default"},[t("div",{staticClass:"methodId-box"},[t("el-input",{staticClass:"input-with-select",attrs:{size:"mini",placeholder:"请输入文件类型"},model:{value:e.methodIdText,callback:function(t){e.methodIdText=t},expression:"methodIdText"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.searchMethodIdText},slot:"append"})],1),t("div",{staticStyle:{margin:"6px 0"}},[t("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全部类型")])],1),t("el-divider"),t("el-checkbox-group",{on:{change:e.handleCheckedMethodIdChange},model:{value:e.checkMethodIds,callback:function(t){e.checkMethodIds=t},expression:"checkMethodIds"}},e._l(e.methodIds,(function(s){return t("el-checkbox",{key:s.methodId,attrs:{label:s.methodId}},[e._v(e._s(s.name))])})),1)],1)]),t("div",{staticStyle:{cursor:"pointer"},attrs:{slot:"reference"},slot:"reference"},[t("span",{staticStyle:{"font-size":"12px",color:"rgb(147,147,153)","margin-right":"8px"}},[e._v("文件类型")]),t("span",{staticStyle:{color:"rgb(147,147,153)"}},[t("i",{staticClass:"el-icon-arrow-down"})])])],2),t("el-divider",{attrs:{direction:"vertical"}}),t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"筛选条件清空",placement:"bottom"}},[t("span",{staticStyle:{cursor:"pointer",color:"rgb(147, 147, 153)","font-size":"15px"},on:{click:e.clearConditionData}},[t("i",{staticClass:"el-icon-refresh-right"})])])],1),e.havingWritePerm||e.havingCreatePerm?t("div",{staticStyle:{width:"100%","border-bottom":"1px solid #F2F2F2"}}):e._e()]):e._e(),t("el-main",{staticClass:"main-tree",style:{overflow:"auto",height:e.treeHeight}},[t("el-tree",{ref:"tree",attrs:{props:e.treeProps,"expand-on-click-node":!1,"highlight-current":!0,"node-key":"id",lazy:"",load:e.loadNode},on:{"node-click":e.openNode,"node-expand":e.expandNode,"node-collapse":e.closeNode},scopedSlots:e._u([{key:"default",fn:function({node:s,data:i}){return t("span",{},[t("i",{staticClass:"awsui-iconfont tree-content-icon tree-content-icon-padding",style:{color:s.data.icon.color},domProps:{innerHTML:e._s(s.data.icon.icon)}}),t("span",{style:{"font-weight":i.id.length<36?"600":""}},[e._v(e._s(s.label))])])}}])})],1),t("el-dialog",{attrs:{title:e.folderDialog.folderTitle,visible:e.folderDialog.dialogVisible,"modal-append-queryTreeByIdAndPathto-body":!1,"close-on-click-modal":!1,"close-on-press-escape":!0,"before-close":e.handleCloseFolder,width:"600px"},on:{"update:visible":function(t){return e.$set(e.folderDialog,"dialogVisible",t)}}},[t("div",{staticStyle:{border:"1px solid #F2F2F2",padding:"0px 10px 10px 10px"}},[t("awsui-form",{ref:"folderForm",attrs:{model:e.folderDialog.folderForm,rules:e.folderDialog.rules,"label-position":"top"}},[t("awsui-form-item",{attrs:{label:"名称",prop:"name"}},[t("awsui-input",{model:{value:e.folderDialog.folderForm.name,callback:function(t){e.$set(e.folderDialog.folderForm,"name",t)},expression:"folderDialog.folderForm.name"}})],1),"default"==e.folderDialog.folderMethod?t("awsui-form-item",{attrs:{label:"描述",prop:"desc"}},[t("awsui-input",{attrs:{type:"textarea"},model:{value:e.folderDialog.folderForm.desc,callback:function(t){e.$set(e.folderDialog.folderForm,"desc",t)},expression:"folderDialog.folderForm.desc"}})],1):e._e()],1)],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{staticClass:"button-general-color",attrs:{type:"primary"},on:{click:function(t){return e.createFolderSave("folderForm")}}},[e._v("确定")]),t("awsui-button",{on:{click:e.clearFolderDlg}},[e._v("取消")])],1)]),t("el-dialog",{attrs:{title:e.ModelsetUpDialog.systemTitle,visible:e.ModelsetUpDialog.dialogVisible,"modal-append-queryTreeByIdAndPathto-body":!1,"close-on-click-modal":!1,"close-on-press-escape":!0,"before-close":e.handleCloseSystem,width:"600px"},on:{"update:visible":function(t){return e.$set(e.ModelsetUpDialog,"dialogVisible",t)}}},[t("div",{staticStyle:{border:"1px solid #F2F2F2",padding:"0px 10px 10px 10px"}},[t("awsui-form",{ref:"systemForm",attrs:{model:e.ModelsetUpDialog.systemForm,rules:e.ModelsetUpDialog.rules,"label-position":"top"}},[t("awsui-form-item",{attrs:{label:"当前选定路径"}},[t("awsui-input",{attrs:{disabled:""},model:{value:e.ModelsetUpDialog.systemForm.repositoryPathData,callback:function(t){e.$set(e.ModelsetUpDialog.systemForm,"repositoryPathData",t)},expression:"ModelsetUpDialog.systemForm.repositoryPathData"}})],1),t("awsui-form-item",{attrs:{label:"名称",prop:"name"}},[t("awsui-input",{model:{value:e.ModelsetUpDialog.systemForm.name,callback:function(t){e.$set(e.ModelsetUpDialog.systemForm,"name",t)},expression:"ModelsetUpDialog.systemForm.name"}})],1),"control.policy"==e.ModelsetUpDialog.systemForm.method?[t("awsui-form-item",{attrs:{label:"制度类型"}},[t("awsui-select",{attrs:{options:e.ModelsetUpDialog.systemForm.SystemTypeOptions,placeholder:"请选择制度类型"},model:{value:e.ModelsetUpDialog.systemForm.systemType,callback:function(t){e.$set(e.ModelsetUpDialog.systemForm,"systemType",t)},expression:"ModelsetUpDialog.systemForm.systemType"}})],1)]:e._e()],2)],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{staticClass:"button-general-color",attrs:{type:"primary",loading:e.isLoading},on:{click:function(t){return e.createSystemSave("systemForm")}}},[e._v("确定")]),t("awsui-button",{on:{click:e.clearSystemDlg}},[e._v("取消")])],1)]),t("awsui-dialog",{attrs:{title:"密级标定",visible:e.securityVisible,border:!1,"append-to-body":"",width:"500px"},on:{"update:visible":function(t){e.securityVisible=t}}},[t("div",{staticStyle:{"max-height":"500px","overflow-y":"auto"}},e._l(e.securityFileList,(function(s){return t("awsui-form",{key:s.uuid,ref:s.uuid,refInFor:!0,attrs:{"label-width":"200px",rules:e.securityRules,model:s}},[t("awsui-form-item",{attrs:{label:s.name,prop:"securityLevel"}},[t("awsui-select",{staticStyle:{width:"70%"},attrs:{options:e.securityOptions},model:{value:s.securityLevel,callback:function(t){e.$set(s,"securityLevel",t)},expression:"file.securityLevel"}})],1)],1)})),1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{attrs:{type:"primary"},on:{click:e.uploadServer}},[e._v("确定")]),t("awsui-button",{on:{click:function(t){e.securityVisible=!1}}},[e._v("取 消")])],1)]),t("RepositoryImport",{ref:"repositoryImport"})],1)},l=[],n=function(){var e=this,t=e._self._c;return t("el-container",["org"!=e.category?t("div",{key:"dialog2",staticClass:"repository-import"},[t("el-dialog",{attrs:{title:"导入模型",visible:e.dialogVisible,width:"500px","close-on-click-modal":!1,"before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{height:"250px"},attrs:{"element-loading-text":"请稍等"}},[t("div",{staticStyle:{"text-align":"center","padding-top":"10px"}},[t("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"130px"},attrs:{type:"primary"},on:{click:function(t){return e.openFileSelect("file")}}},[e._v("本地文件上传")])],1),t("div",{staticClass:"text-second-color",staticStyle:{"font-size":"12px","margin-top":"10px","margin-left":"15px"}},[e._v("请上传export文件,支持多个文件同时导入")]),t("div",{staticStyle:{height:"180px",margin:"10px 10px",overflow:"auto"}},[t("PALUpload",{ref:"palUpload",staticClass:"upload-demo",staticStyle:{width:"100%"},attrs:{appId:"com.actionsoft.apps.coe.pal",repositoryName:"tmp",groupValue:"_import",fileValue:"Normal",multiple:!0,"on-preview":e.handlePreview,"on-success":e.handleSuccess,"on-remove":e.handleRemove,"on-error":e.handleError,"before-remove":e.beforeRemove,"before-upload":e.beforeUpload,"on-exceed":e.handleExceed,"on-progress":e.handleProgress,accept:".export","file-list":e.fileList}},[t("div",{staticStyle:{display:"none"}},[t("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"130px"},attrs:{name:"selectFileButton",type:"primary"}},[e._v("本地文件上传")])],1)])],1)]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{staticClass:"button-general-color",attrs:{disabled:e.buttonDisabled,type:"primary"},on:{click:e.importSave}},[e._v("确定")]),t("awsui-button",{on:{click:e.cancel}},[e._v("取消")])],1)])],1):t("div",{key:"dialog1",staticClass:"repository-import"},[t("el-dialog",{attrs:{title:"导入组织模型",visible:e.dialogVisible,"close-on-click-modal":!1,width:"500px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.step1,expression:"step1"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{height:"250px","text-align":"center"},attrs:{id:"step1","element-loading-text":"请稍等"}},[t("div",{staticStyle:{position:"relative",top:"35%"}},[t("div",{staticStyle:{"margin-bottom":"25px"}},[t("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"130px"},attrs:{type:"primary"},on:{click:function(t){return e.openFileSelect("file")}}},[e._v("直接导入")])],1),t("div",[t("awsui-button",{staticClass:"button-general-color-reverse",staticStyle:{width:"130px"},on:{click:function(t){return e.openFileSelect("excel")}}},[e._v("模板导入")])],1)])]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.step2,expression:"step2"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{height:"250px"},attrs:{id:"step2","element-loading-text":"请稍等"}},[t("div",{staticStyle:{"text-align":"center","padding-top":"10px"}},[t("awsui-button",{class:{"button-general-color":"file"==e.type,"button-general-color-reverse":"excel"==e.type},staticStyle:{width:"130px"},attrs:{type:"file"==e.type?"primary":""},on:{click:function(t){return e.openFileSelect("file")}}},[e._v("直接导入")]),t("awsui-button",{class:{"button-general-color":"excel"==e.type,"button-general-color-reverse":"file"==e.type},staticStyle:{width:"130px"},attrs:{type:"excel"==e.type?"primary":""},on:{click:function(t){return e.openFileSelect("excel")}}},[e._v("模板导入")])],1),"file"==e.type?t("div",[t("div",{staticClass:"text-second-color",staticStyle:{"font-size":"12px","margin-top":"10px","margin-left":"15px"}},[e._v('请点击"直接导入"按钮上传export文件,支持多个文件同时导入')]),t("div",{staticStyle:{height:"180px",margin:"10px 10px",overflow:"auto"}},[t("PALUpload",{ref:"palUpload",staticClass:"upload-demo",staticStyle:{width:"100%"},attrs:{appId:"com.actionsoft.apps.coe.pal",repositoryName:"tmp",groupValue:"_import",fileValue:"Normal",multiple:!0,"on-preview":e.handlePreview,"on-success":e.handleSuccess,"on-remove":e.handleRemove,"on-error":e.handleError,"before-remove":e.beforeRemove,"before-upload":e.beforeUpload,"on-exceed":e.handleExceed,"on-progress":e.handleProgress,accept:".export","file-list":e.fileList}},[t("div",{staticStyle:{display:"none"}},[t("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"130px"},attrs:{name:"selectFileButton",type:"primary"}},[e._v("本地文件上传")])],1)])],1)]):e._e(),"excel"==e.type?t("div",[t("div",{staticStyle:{height:"200px",margin:"25px 10px 10px",overflow:"auto"}},[t("div",{staticStyle:{width:"438px",height:"80px",border:"1px solid #F2F2F2"}},[t("div",{staticStyle:{float:"left",height:"100%",width:"80px",display:"inline-block","background-color":"#F5F7FA","text-align":"center","line-height":"85px","vertical-align":"middle"}},[t("i",{staticClass:"iconfont text-second-color",staticStyle:{"font-size":"40px"}},[e._v("")])]),t("div",{staticStyle:{float:"left",height:"100%"}},[t("div",{staticStyle:{display:"inline-block",height:"100%","margin-left":"15px","margin-top":"9px"}},[t("p",{staticClass:"text-general-color"},[e._v("填写导入组织信息")]),t("p",{staticClass:"text-second-color",staticStyle:{"font-size":"12px","padding-top":"4px","padding-bottom":"4px"}},[e._v("请按照说明格式正确填写Excel文件")]),t("p",{staticClass:"text-linker-color",staticStyle:{"font-size":"12px",cursor:"pointer"},on:{click:function(t){return e.downloadOrgTemplate()}}},[e._v("下载模板")])])])]),t("div",{staticStyle:{height:"20px"}}),t("div",{staticStyle:{width:"438px",height:"80px",border:"1px solid #F2F2F2"}},[t("div",{staticStyle:{float:"left",height:"100%",width:"80px",display:"inline-block","background-color":"#F5F7FA","text-align":"center","line-height":"85px","vertical-align":"middle"}},[t("i",{staticClass:"iconfont text-second-color",staticStyle:{"font-size":"40px"}},[e._v("")])]),t("div",{staticStyle:{float:"left",height:"100%"}},[t("div",{staticStyle:{display:"inline-block",height:"100%","margin-left":"15px","margin-top":"9px"}},[t("p",{staticClass:"text-general-color"},[e._v("上传填好的组织信息文件")]),t("p",{staticClass:"text-second-color",staticStyle:{"font-size":"12px","padding-top":"4px","padding-bottom":"4px"}},[e._v("文件后缀必须为xls或xlsx(即Excel格式)")]),e.isOrgUploaded?t("p",{staticClass:"text-linker-color",staticStyle:{"font-size":"12px",cursor:"pointer"}},[t("label",{staticStyle:{display:"inline-block","max-width":"300px",overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"}},[e._v(e._s(e.orgUploadFileName))]),e._v(" "),t("i",{staticClass:"iconfont text-important-color",staticStyle:{"font-size":"12px",position:"relative",top:"-3px"},on:{click:e.removeOrgUpload}},[e._v("")])]):t("p",{staticClass:"text-linker-color",staticStyle:{"font-size":"12px",cursor:"pointer"},on:{click:e.uploadOrgExcel}},[e._v("上传文件")])])])])]),t("PALUpload",{ref:"orgUpload",staticClass:"upload-demo",staticStyle:{width:"100%"},attrs:{appId:"com.actionsoft.apps.coe.pal",repositoryName:"tmp",groupValue:"_import",fileValue:"Normal",limit:1,"show-file-list":!1,"on-success":e.handleOrgUploadSuccess,accept:".xls,.xlsx","file-list":e.orgFileList}},[t("div",{staticStyle:{display:"none"}},[t("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"130px"},attrs:{name:"selectOrgFileButton",type:"primary"}},[e._v("Excel文件上传")])],1)])],1):e._e()]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{staticClass:"button-general-color",attrs:{disabled:e.buttonDisabled,type:"primary"},on:{click:e.importSave}},[e._v("确定")]),t("awsui-button",{on:{click:e.cancel}},[e._v("取消")])],1)])],1)])},d=[],c=s("6c2f"),p=s("0f08"),h={name:"RepositoryImport",components:{PALUpload:c["a"]},data(){return{dialogVisible:!1,buttonDisabled:!1,category:"",obj:null,fileList:[],step1:!0,step2:!1,type:"file",orgFileList:[],isOrgUploaded:!1,orgUploadFileName:"",parentId:"",loading:!1}},inject:["getIsHighSecurity","setSecurityVisible","securityFileList","setSecurityType"],computed:{isHighSecurity(){return this.getIsHighSecurity()}},methods:{clearParam(){this.category="",this.obj=null,this.fileList=[],this.orgFileList=[],this.buttonDisabled=!1,this.dialogVisible=!1,this.step1=!0,this.step2=!1,this.type="",this.isOrgUploaded=!1,this.orgUploadFileName="",this.parentId="",this.loading=!1,this.$refs.palUpload&&this.$refs.palUpload.clearFiles(),this.$refs.orgUpload&&this.$refs.orgUpload.clearFiles()},openImportRepositoryDlg(e,t,s){const i=this;i.category=t,i.obj=e,i.parentId=s,setTimeout(()=>{i.dialogVisible=!0,i.$nextTick(()=>{"org"!=i.category&&i.openFileSelect("file")})},300)},cancel(){this.clearParam()},importSave(){const e=this,t=e.$store.getters.getWsIdFn,s=e.$store.getters.getTeamIdFn;let i="";if("file"==e.type){if(0==e.fileList.length)return void e.$message({message:"请上传需要导入的文件",type:"warning"});const i=[];for(let t=0;t<e.fileList.length;t++)i.push(e.fileList[t].name);e.buttonDisabled=!0,e.loading=!0;const o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_import",fileList:JSON.stringify(i),wsId:t,teamId:s,plCategory:e.category,parentId:e.parentId}};p["a"].post(o).then((function(t){if("ok"==t.result){if(e.isHighSecurity){let s=t.data.data.securityBindList;if(void 0!=s&&s.length>0){for(let t=0;t<s.length;t++){let i=s[t];e.securityFileList.push(i)}e.setSecurityType("import"),e.setSecurityVisible(!0)}}else e.$message({message:"导入成功",type:"success"});e.obj.refreshNode(),e.obj.openRepositoryList(e.parentId),e.cancel()}else e.$message.error(t.msg),e.buttonDisabled=!1,e.loading=!1})).catch(e=>{console.log(e)})}else if("org"==e.category&&"excel"==e.type){if(0==e.orgFileList.length)return void e.$message({message:"请上传需要导入的组织文件",type:"warning"});i=e.orgFileList[0].name,e.loading=!0;const o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_repository_import_org",fileName:i,wsId:t,teamId:s,parentId:e.parentId}};p["a"].post(o).then((function(t){if("ok"==t.result){if(e.isHighSecurity){let s=t.data.securityBindList;if(void 0!=s&&s.length>0){for(let t=0;t<s.length;t++){let i=s[t];e.securityFileList.push(i)}e.setSecurityType("import"),e.setSecurityVisible(!0)}}else e.$message({message:"导入成功",type:"success"});e.obj.refreshNode(),e.obj.openRepositoryList(e.parentId),e.cancel()}else e.$message.error(t.msg),e.buttonDisabled=!1,e.loading=!1})).catch(e=>{console.log(e)})}},handleClose(e){this.clearParam(),e()},handleRemove(e,t){this.fileList=t},handlePreview(e){console.log(e)},handleExceed(e,t){},handleError(e,t,s){},beforeUpload(e){},handleProgress(e,t,s){},handleSuccess(e,t,s){const i=this;i.fileList=[];let o={};for(let a=s.length-1;a>=0;a--){let e=s[a];o[e.name]||(i.fileList.unshift(e),o[e.name]=!0)}},beforeRemove(e,t){e.status},openFileSelect(e){this.type=e,"org"!=this.category?this.$nextTick(()=>{document.getElementsByName("selectFileButton")[0].click()}):"file"==e?(this.step1=!1,this.step2=!0,this.$nextTick(()=>{document.getElementsByName("selectFileButton")[0].click()})):(this.type=e,this.step1=!1,this.step2=!0)},downloadOrgTemplate(){const e=this,t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_repository_import_org_template",category:e.category}};p["a"].post(t).then((function(e){window.open(e.url)})).catch(e=>{console.log(e)})},uploadOrgExcel(){this.$refs.orgUpload&&this.$refs.orgUpload.clearFiles(),document.getElementsByName("selectOrgFileButton")[0].click()},handleOrgUploadSuccess(e,t,s){this.orgFileList=[],this.orgFileList.push(t),this.orgUploadFileName=t.name,this.isOrgUploaded=!0},removeOrgUpload(){this.isOrgUploaded=!1,this.orgFileList=[],this.orgUploadFileName=""}}},u=h,g=(s("ffad"),s("0b56")),m=Object(g["a"])(u,n,d,!1,null,"10fa5366",null),f=m.exports,y=s("1337"),v=s("64d8"),b=new v["default"],w={name:"RepositoryTree",components:{RepositoryImport:f},props:{conditionData:{type:Object,default:null}},data(){let e=(e,t,s)=>{void 0===t?s(new Error("请选择文件密级")):s()};return{treeNode:null,treeResolve:null,expandKeys:[],tempNodeArr:[],isLoading:!1,multiple:!0,currentUserCheck:!1,currentUser:"",searchUserName:"",createUserOptions:[],createUserList:[],checkCreateUserIds:[],userCheckAll:!1,userIndeterminate:!1,conditionBoxVisible1:!1,conditionBoxVisible2:!0,conditionBoxVisible3:!1,methodIdText:"",methodIdOptions:[],methodIds:[],checkMethodIds:[],checkAll:!1,isIndeterminate:!1,addressType:"department",searchOrgName:"",checkOrgIds:[],currentUserDeptCheck:!1,dis:!1,headerHeight1:"88px",headerHeight2:"10px",treeHeight:parseInt(this.$store.getters.getTopMainHeightFn)-(this.havingWritePerm||this.havingCreatePerm?parseInt(this.headerHeight1):parseInt(this.headerHeight2))+"px",fileMethodList:[],folderMethodList:[],createDesignerVisible:!1,folderDialog:{dialogVisible:!1,folderMethod:"default",folderTitle:"新建文件夹",folderForm:{name:"",desc:""},rules:{name:[{required:!0,message:"必填",trigger:"blur"},{min:1,max:120,message:"长度在 1 到 120 个字符",trigger:"blur"}],securityLevel:[{required:!0,trigger:"change",validator:e,type:"number"}],desc:[{min:0,max:2550,message:"长度在 255 个字符以内",trigger:"blur"}]}},ModelsetUpDialog:{loading:!1,dialogVisible:!1,systemMethod:"default",systemTitle:"模型新建",systemForm:{name:"",uuid:"",parentId:"",repositoryPathData:"",method:"",systemType:"1",category:"",SystemTypeOptions:[{label:"制度",value:"1"},{label:"操作指导",value:"2"}]},rules:{name:[{required:!0,message:"必填",trigger:"blur"},{min:1,max:120,message:"长度在 1 到 120 个字符",trigger:"blur"}]}},treeProps:{label:"name",isLeaf:"leaf"},createMethodLoading:!1,systemMethodLoading:!0,havingWritePerm:!1,havingRemovePerm:!1,havingVersionManagePerm:!1,validUserPermDataCount:0,isOlderVersion:!0,havingCreatePerm:!1,havingBatchPerm:!1,isHighSecurity:!1,securityList:{},securityVisible:!1,securityFileList:[],securityOptions:[],securityRules:{securityLevel:[{required:!0,trigger:"change",validator:e,type:"number"}]},securityType:""}},inject:["openRepositoryList","transferTreeNode"],provide:function(){return{getIsHighSecurity:this.getIsHighSecurity,setSecurityVisible:this.setSecurityVisible,securityFileList:this.securityFileList,setSecurityType:this.setSecurityType,SystemTypeList:this.SystemTypeList}},created(){this.initData(),this.resolveConditionData()},mounted(){b.$on("getisDisabled",e=>{this.dis=e})},methods:{clearConditionData(){this.checkCreateUserIds=[],this.currentUserCheck=!1,this.$store.commit("setCreateUsers",this.checkCreateUserIds),this.checkMethodIds=[],this.isIndeterminate=!1,this.userIndeterminate=!1,this.checkAll=!1,this.$store.commit("setMethodIds",this.checkMethodIds),this.checkOrgIds=[],this.currentUserDeptCheck=!1,this.$refs.orgTree.setCheckedKeys(this.checkOrgIds),this.$store.commit("setOrgIds",this.checkOrgIds),this.$store.getters.getPageFunction["repositoryMainList_initData"](),this.refreshNode("control"),this.refreshNode("process")},filterNode(e,t){if(!e)return!0;let s=[];return e.forEach(e=>{if(-1!==e.data.pathIdList.indexOf(t.id)){let e=this.$refs.orgTree.getNode(t.id);e&&this.tempNodeArr.push(e)}e.data.pathIdList.forEach(e=>{-1===s.indexOf(e)&&s.push(e)})}),-1!==s.indexOf(t.id)},searchOrgNameFun(){let e=this;if(e.searchOrgName){const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_search_org_tree_node",orgName:e.searchOrgName}};p["a"].post(t).then(t=>{let s=[...t.data];s.length?e.searchParentOrgIdFun(s,e.searchOrgName):e.$message({type:"warning",message:"查询的部门不存在,请检查输入的部门名称"})}).catch(e=>{console.log(e)})}else{var t;e.treeNode.childNodes=[],e.loadNodeOrg(e.treeNode,e.treeResolve),e.expandKeys=[],null!==(t=e.tempNodeArr)&&void 0!==t&&t.length&&(e.tempNodeArr.forEach(t=>{e.$refs.orgTree.remove(t)}),e.tempNodeArr.length=0)}},searchParentOrgIdFun(e,t){let s=this;const i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_search_org_tree_parent_node",orgId:e}};p["a"].post(i).then(t=>{s.expandKeys=[...t.data],setTimeout(()=>{let t=[];e.forEach(e=>{let i=s.$refs.orgTree.getNode(e);t.push(i),s.tempNodeArr.push(i)}),s.$refs.orgTree.filter(t)},500)}).catch(e=>{console.log(e)})},handleCheckCurrentUserDeptChange(e){let t=[];if(t=[...this.checkOrgIds],e)t.push(this.currentUser.deptId);else{let e=t.indexOf(this.currentUser.deptId);-1!==e&&t.splice(e,1)}this.$refs.orgTree.setCheckedKeys(t),this.$store.commit("setOrgIds",t),this.$store.getters.getPageFunction["repositoryMainList_initData"](),this.refreshNode("control"),this.refreshNode("process")},orgCheckChange(e,t,s){let i=this.$refs.orgTree.getNode(e.id);t?(i.expanded&&(i.expanded=!1,i.loaded=!1),-1===this.checkOrgIds.indexOf(e.id)&&this.checkOrgIds.push(e.id),this.currentUser.deptId===e.id&&(this.currentUserDeptCheck=!0)):(i.expanded=!1,i.isLeaf=!1,i.loaded=!1,-1!==this.checkOrgIds.indexOf(e.id)&&this.checkOrgIds.splice(this.checkOrgIds.indexOf(e.id),1),this.currentUser.deptId===e.id&&(this.currentUserDeptCheck=!1)),this.$refs.orgTree.setCheckedKeys(this.checkOrgIds),this.$store.commit("setOrgIds",this.checkOrgIds),this.$store.getters.getPageFunction["repositoryMainList_initData"](),this.refreshNode("control"),this.refreshNode("process")},loadNodeOrg(e,t){const s=this;s.loading=!0;const i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_bpm_org_address_component_subjson",addressType:"department",pid:"",highSecurityFilter:"",parentType:""}};0===e.level?(i.data.pid="",i.data.parentType="",s.treeNode=e,s.treeResolve=t):(i.data.pid=e.data.id,i.data.parentType=e.data.type),e.level>0&&-1!==s.checkOrgIds.indexOf(e.data.id)&&e.checked?t([]):p["a"].post(i).then((function(i){if(s.multiple){const e=s.addressType.indexOf("department")>-1,t=s.addressType.indexOf("user")>-1,o=s.addressType.indexOf("role")>-1,a=s.addressType.indexOf("position")>-1;for(let s=0;s<i.data.length;s++){const r=i.data[s];"company"==r.type||"roleRoot"==r.type||"roleGroup"==r.type||"positionRoot"==r.type||"positionGroup"==r.type?r.disabled=!0:(e&&"department"==r.type&&(r.disabled=!1),e||"department"!=r.type||(r.disabled=!0),t&&"user"==r.type&&(r.disabled=!1),t||"user"!=r.type||(r.disabled=!0),o&&"role"==r.type&&(r.disabled=!1),o||"role"!=r.type||(r.disabled=!0),a&&"position"==r.type&&(r.disabled=!1),a||"position"!=r.type||(r.disabled=!0))}}if(t(i.data),s.loading=!1,0==e.level&&i.data.length>0){const e=s.$refs.orgTree;e.getNode(i.data[0].id).expand(),setTimeout((function(){const t=e.getNode(i.data[0].id).childNodes[0];null!=t&&t.expand()}),500)}})).catch(e=>{console.log(e)})},closeNodeOrg(e,t,s){t.childNodes=[],t.loaded=!1},handleCheckCurrentUserChange(e){let t=[];if(t=[...this.checkCreateUserIds],e)t.push(this.currentUser.userId);else{let e=t.indexOf(this.currentUser.userId);-1!==e&&t.splice(e,1)}this.$store.commit("setCreateUsers",t),this.$store.getters.getPageFunction["repositoryMainList_initData"](),this.refreshNode("control"),this.refreshNode("process")},handleCheckAllUserChange(e){let t=[];e?(this.createUserList.forEach(e=>t.push(e.userId)),this.checkCreateUserIds=t):this.checkCreateUserIds=t,this.currentUserCheck&&t.push(this.currentUser.userId),this.$store.commit("setCreateUsers",t),this.userIndeterminate=!1,this.$store.getters.getPageFunction["repositoryMainList_initData"](),this.refreshNode("control"),this.refreshNode("process")},handleCheckedUserChange(e){let t=e.length;this.userCheckAll=t===this.createUserList.length,this.userIndeterminate=t>0&&t<this.createUserList.length;let s=[];this.currentUserCheck?(s.push(this.currentUser.userId),e.forEach(e=>{s.push(e)})):s=[...e],this.$store.commit("setCreateUsers",s),this.$store.getters.getPageFunction["repositoryMainList_initData"](),this.refreshNode("control"),this.refreshNode("process")},searchUserNameText(){this.createUserList=[],this.searchUserName?this.createUserOptions.forEach(e=>{-1!==e.userName.indexOf(this.searchUserName)&&this.createUserList.push(e)}):this.createUserList=this.createUserOptions},handleCheckAllChange(e){let t=[];e?(this.methodIds.forEach(e=>t.push(e.methodId)),this.checkMethodIds=t):this.checkMethodIds=t,this.$store.commit("setMethodIds",t),this.isIndeterminate=!1,this.$store.getters.getPageFunction["repositoryMainList_initData"](),this.refreshNode("control"),this.refreshNode("process")},handleCheckedMethodIdChange(e){let t=e.length;this.checkAll=t===this.methodIds.length,this.isIndeterminate=t>0&&t<this.methodIds.length,this.$store.commit("setMethodIds",[...e]),this.$store.getters.getPageFunction["repositoryMainList_initData"](),this.refreshNode("control"),this.refreshNode("process")},searchMethodIdText(){this.methodIds=[],this.methodIdText?this.methodIdOptions.forEach(e=>{-1!==e.name.indexOf(this.methodIdText)&&this.methodIds.push(e)}):this.methodIds=this.methodIdOptions},resolveConditionData(){const e=this;if(e.methodIdOptions=e.conditionData.methodIds,e.methodIds=e.methodIdOptions,e.currentUser=e.conditionData.currentUser,e.currentUser.deptNameView=e.currentUser.deptName,e.currentUser.deptName.length>8&&(e.currentUser.deptNameView=`${e.currentUser.deptName.substring(0,4)}***${e.currentUser.deptName.substring(e.currentUser.deptName.length-4)}`),e.conditionData.createUsers.forEach(e=>{e.deptNameView=e.deptName,e.deptName.length>8&&(e.deptNameView=`${e.deptName.substring(0,4)}***${e.deptName.substring(e.deptName.length-4)}`)}),e.createUserOptions=e.conditionData.createUsers,e.createUserList=e.createUserOptions,e.conditionData.historyCondition){let t=e.conditionData.historyCondition.methodIds.length,s=e.conditionData.historyCondition.createUsers.length,i=e.conditionData.historyCondition.createUsers.indexOf(e.currentUser.userId);-1!==i?(s-=1,e.currentUserCheck=!0):e.currentUserCheck=!1,e.checkAll=t===e.methodIds.length,e.userCheckAll=s===e.createUserList.length,e.isIndeterminate=t>0&&t<e.methodIds.length,e.userIndeterminate=s>0&&s<e.createUserList.length,e.checkCreateUserIds=[],e.conditionData.historyCondition.createUsers.forEach(t=>{t!==e.currentUser.userId&&e.checkCreateUserIds.push(t)}),e.checkMethodIds=[...e.conditionData.historyCondition.methodIds],e.checkOrgIds=[...e.conditionData.historyCondition.orgIds];let o=e.conditionData.historyCondition.orgIds.indexOf(e.currentUser.deptId);e.currentUserDeptCheck=-1!==o,e.$nextTick(()=>{e.$refs.orgTree&&e.$refs.orgTree.setCheckedKeys(e.checkOrgIds)})}},initData(){const e=this;if(e.loadingText="加载中",e.loading=!0,e.$store.getters.getTeamIdFn&&""!=e.$store.getters.getTeamIdFn){const t={url:"jd",data:{wsId:e.$store.getters.getWsIdFn,teamId:e.$store.getters.getTeamIdFn,cmd:"com.actionsoft.apps.coe.pal_user_perm_query"}};p["a"].post(t).then((function(t){e.validUserPermDataCount=t.data.validUserPermDataCount,e.validUserPermDataCount>0?(e.havingWritePerm=t.data.havingWritePerm,e.havingCreatePerm=t.data.havingCreatePerm):(e.havingWritePerm=!1,e.havingCreatePerm=!1),e.havingRemovePerm=t.data.havingRemovePerm,e.havingVersionManagePerm=t.data.havingVersionManagePerm,e.havingBatchPerm=t.data.havingBatchPerm,e.isOlderVersion=t.data.isOlderVersion,e.initTreeHeight()})).catch(e=>{console.log(e)})}else e.havingWritePerm=!0,e.havingRemovePerm=!0,e.havingVersionManagePerm=!0;this.initTreeHeight()},queryTreeByIdAndPath(e,t,s){const i=this,o=i.$refs.tree,a=s.split(",");let r=1;for(let l=0;l<a.length;l++)l>0&&null!=o.getNode(a[l-1])&&(setTimeout(i._expandNode(o,a[l-1]),300*r),r++);setTimeout((function(){null!=o.getNode(t)&&o.setCurrentKey(t),i.openRepositoryList(e)}),300*r)},_expandNode(e,t){return function(){e.getNode(t).expand()}},openNode(e,t,s){0==e.folder?Object(y["d"])(this.$store.getters.getTeamIdFn,t.data.currId,this.$store.state.sessionId):(this.closeCreatePopover(),this.openRepositoryList(t.data.currId),this.transferTreeNode(e))},loadNode(e,t){const s=this,i={url:"jd",data:{}};i.data.wsId=s.$store.getters.getWsIdFn,i.data.teamId=s.$store.getters.getTeamIdFn,i.data.createUsers=JSON.stringify(s.$store.getters.getCreateUsers),i.data.orgIds=JSON.stringify(s.$store.getters.getOrgIds),i.data.methodIds=JSON.stringify(s.$store.getters.getMethodIds),i.data.cmd="com.actionsoft.apps.coe.pal_processlevel_tree_data",0===e.level?i.data.pid="":i.data.pid=e.data.id,p["a"].post(i).then((function(i){if(t(i.data),0==e.level&&i.data.length>0){const e=s.$refs.tree;e.getNode(i.data[0].id).expand(),setTimeout((function(){const t=e.getNode(i.data[0].id).childNodes[0];null!=t&&t.expand()}),500)}})).catch(e=>{console.log(e),s.tableLoading=!1})},expandNode(e,t,s){},closeNode(e,t,s){t.childNodes=[],t.loaded=!1},refreshNode(e){if(void 0==e){const e=this.$refs.tree.getCurrentNode();if(null!=e){void 0!=this.$refs.tree.store.nodesMap[e.id]&&(this.$refs.tree.store.nodesMap[e.id].expanded=!1);const t=this.$refs.tree.getNode(e.id);this.closeNode(null,t,null),t.expand()}}else{void 0!=this.$refs.tree.store.nodesMap[e]&&(this.$refs.tree.store.nodesMap[e].expanded=!1);const t=this.$refs.tree.getNode(e);null!=t&&(this.closeNode(null,t,null),t.expand(),this.openNode(t.data,t,null))}},refreshParentNode(e){let t=null;t=void 0==e?this.$refs.tree.getCurrentNode():this.$refs.tree.getNode(e),null!=t&&(t=this.$refs.tree.getNode(t.data.pid),this.refreshNode(t.data.id))},showCreateEvent(){const e=this,t=e.$refs.tree.getCurrentNode();if(null==t)return e.closeCreatePopover(),void e.$message({message:"请选择新建文件位置",type:"warning"});e.createMethodLoading=!0;const s=e.$refs.tree.getCurrentNode().plCategory,i=e.$refs.tree.getCurrentNode().plMethodId,o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_create_method_list",category:s,methodId:i}};p["a"].post(o).then((function(t){if("ok"==t.result){const s=t.data.fileMethodList;for(let e=0;e<s.length;e++){let t=s[e];t.havingCreatePerm?(t.opacity=1,t.filter="alpha(opacity=100)",t.clickFlag=!0,t.cursor="pointer"):(t.opacity=.4,t.filter="alpha(opacity=40)",t.clickFlag=!1,t.cursor="default")}e.fileMethodList=s;const i=t.data.folderMethodList;for(let e=0;e<i.length;e++){let t=i[e];t.havingCreatePerm?(t.opacity=1,t.filter="alpha(opacity=100)",t.clickFlag=!0,t.cursor="pointer"):(t.opacity=.4,t.filter="alpha(opacity=40)",t.clickFlag=!1,t.cursor="default")}e.folderMethodList=i,void 0!=t.data.isHighSecurity&&(e.isHighSecurity=t.data.isHighSecurity,e.securityList=t.data.securityList,e.securityOptions=[],Object.keys(e.securityList).map(t=>{let s={value:t,label:e.securityList[t]};e.securityOptions.push(s)}))}e.createMethodLoading=!1})).catch(e=>{console.log(e)})},createFolder(e,t){this.folderDialog.folderMethod=e,this.folderDialog.folderTitle="新建"+t,this.folderDialog.dialogVisible=!0,this.closeCreatePopover()},clearFolderDlg(e){this.$refs["folderForm"].resetFields(),e&&(this.folderDialog.dialogVisible=!1)},clearSystemDlg(e){this.isLoading=!1,this.$refs["systemForm"].resetFields(),e&&(this.ModelsetUpDialog.dialogVisible=!1)},handleCloseFolder(e){this.clearFolderDlg(!1),e()},handleCloseSystem(e){this.clearSystemDlg(!1),e()},createModelsetUp(e){this.ModelsetUpDialog.systemMethod=e,this.ModelsetUpDialog.systemForm.method=e,this.ModelsetUpDialog.systemTitle="新建模型",this.ModelsetUpDialog.dialogVisible=!0,this.closeCreatePopover()},createFolderSave(e){const t=this;t.$refs[e].validate(e=>{if(!e)return console.log("error submit!!"),!1;{const e=t.folderDialog.folderForm.name,s=t.folderDialog.folderForm.desc;if(s.length>255)return void t.$message({message:"[描述]不允许超过255个字符",type:"warning"});const i=t.$refs.tree.getCurrentNode(),o=i.id,a=t.$store.getters.getWsIdFn,r=t.$store.getters.getTeamIdFn,l=t.folderDialog.folderMethod,n={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_folder_create_save",wsId:a,teamId:r,method:l,parentId:o,name:e,desc:s,id:""}};p["a"].post(n).then((function(e){"ok"==e.result&&(t.refreshNode(),t.clearFolderDlg(!0),t.openRepositoryList(o))})).catch(e=>{console.log(e)})}})},createSystemSave(e){const t=this;t.$refs[e].validate(e=>{if(!e)return console.log("error submit!!"),!1;{const e=t.ModelsetUpDialog.systemForm.name;var s=new RegExp(/\s+/g);if(s.test(e))return void t.$message({message:"[名称]不允许包含空格",type:"warning"});const i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_repository_designer_checkname",title:t.ModelsetUpDialog.systemForm.name,method:t.ModelsetUpDialog.systemForm.method,uuid:t.ModelsetUpDialog.systemForm.uuid}};p["a"].post(i).then((function(e){if("ok"==e.data.result){t.isLoading=!0;const e=t.$refs.tree.getCurrentNode(),s=e.id,i=t.$store.getters.getWsIdFn,o=t.$store.getters.getTeamIdFn,a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_repository_create_save_Designer",wsId:i,teamId:o,category:t.ModelsetUpDialog.systemForm.category,method:t.ModelsetUpDialog.systemForm.method,parentId:s,container:"_blank",name:t.ModelsetUpDialog.systemForm.name}};p["a"].post(a).then((function(e){if("ok"==e.result)if(t.ModelsetUpDialog.systemForm.uuid=e.data.id,t.ModelsetUpDialog.systemForm.parentId=s,"control.policy"==t.ModelsetUpDialog.systemForm.method){const e={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_repository_designer_CreateSystemModelBySelectType",wsId:i,title:t.ModelsetUpDialog.systemForm.name,type:t.ModelsetUpDialog.systemForm.systemType,method:t.ModelsetUpDialog.systemForm.method,uuid:t.ModelsetUpDialog.systemForm.uuid,parentId:t.ModelsetUpDialog.systemForm.parentId}};p["a"].post(e).then((function(e){"ok"==e.result?(t.isLoading=!1,t.ModelsetUpDialog.dialogVisible=!1,t.openRepositoryList(t.ModelsetUpDialog.systemForm.parentId),Object(y["d"])(t.$store.getters.getTeamIdFn,t.ModelsetUpDialog.systemForm.uuid,t.$store.state.sessionId),t.$refs["systemForm"].resetFields(),t.refreshNode("control"),t.refreshNode("process")):t.$message.error(e.msg)})).catch(e=>{console.log(e)})}else t.isLoading=!1,t.refreshNode("control"),t.refreshNode("process"),t.ModelsetUpDialog.dialogVisible=!1,t.openRepositoryList(t.ModelsetUpDialog.systemForm.parentId),Object(y["d"])(t.$store.getters.getTeamIdFn,t.ModelsetUpDialog.systemForm.uuid,t.$store.state.sessionId),t.$refs["systemForm"].resetFields()})).catch(e=>{console.log(e)})}else t.$message({message:t.ModelsetUpDialog.systemForm.name+"名称重复,请重新输入!!!",type:"warning"})})).catch(e=>{console.log(e)})}})},createDesigner(e,t,s){const i=this;if(i.closeCreatePopover(),this.isHighSecurity){let e={uuid:1,name:"未命名文件",category:t,method:s};this.securityFileList.push(e),this.securityType="create",this.securityVisible=!0}else{const e=i.$refs.tree.getCurrentNode(),o=e.id,a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.getArchitecturePath",parentId:o}};p["a"].post(a).then((function(e){i.ModelsetUpDialog.systemForm.category=t,i.ModelsetUpDialog.systemForm.repositoryPathData=e.data.repositoryPathData,i.ModelsetUpDialog.systemForm.parentId=o,i.createModelsetUp(s)})).catch(e=>{console.log(e)})}},uploadServer(){this.validateFlag=!0;for(let e=0;e<this.securityFileList.length;e++){let t=this.securityFileList[e];this.$refs[t.uuid][0].validate(e=>{if(!e)return this.validateFlag=!1,!1})}if(this.validateFlag){if("import"===this.securityType){const e={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_file_security_level_batch_update",fileList:JSON.stringify(this.securityFileList)}};p["a"].post(e).then((function(e){"ok"==e.result&&(that.refreshNode(),that.openRepositoryList(parentId),that.$message({message:"导入成功",type:"success"}))})).catch(e=>{console.log(e)})}else{const e=this,t=e.$refs.tree.getCurrentNode(),s=t.id,i=e.$store.getters.getWsIdFn,o=e.$store.getters.getTeamIdFn;for(let a=0;a<this.securityFileList.length;a++){let t=this.securityFileList[a];const r={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_repository_create_save",wsId:i,teamId:o,category:t.category,method:t.method,parentId:s,container:"_blank",securityLevel:t.securityLevel}};p["a"].post(r).then((function(t){if("ok"==t.result){e.refreshNode(),e.openRepositoryList(s);const i=t.data.id;Object(y["d"])(e.$store.getters.getTeamIdFn,i,e.$store.state.sessionId)}})).catch(e=>{console.log(e)})}}this.securityVisible=!1}},importDesigners(){this.closeCreatePopover(),this.$refs.repositoryImport.openImportRepositoryDlg(this,this.$refs.tree.getCurrentNode().plCategory,this.$refs.tree.getCurrentNode().id)},closeCreatePopover(){this.createDesignerVisible=!1},reload(){},initTreeHeight(){this.treeHeight=parseInt(this.$store.getters.getTopMainHeightFn)-(this.havingWritePerm||this.havingCreatePerm?parseInt(this.headerHeight1):parseInt(this.headerHeight2))+"px"},getIsHighSecurity(){return this.isHighSecurity},setSecurityVisible(e){this.securityVisible=e},setSecurityType(e){this.securityType=e}},computed:{listenTopMainHeight(){return this.$store.getters.getTopMainHeightFn}},watch:{listenTopMainHeight:function(e,t){this.initTreeHeight()},securityVisible(e,t){e||this.securityFileList.splice(0,this.securityFileList.length)},searchOrgName(e,t){var s;e||(this.treeNode.childNodes=[],this.loadNodeOrg(this.treeNode,this.treeResolve),this.expandKeys=[],null!==(s=this.tempNodeArr)&&void 0!==s&&s.length&&(this.tempNodeArr.forEach(e=>{this.$refs.orgTree.remove(e)}),this.tempNodeArr.length=0))}}},x=w,C=(s("80ce"),Object(g["a"])(x,r,l,!1,null,"1d76cb38",null)),_=C.exports,I=function(){var e=this,t=e._self._c;return t("el-container",{attrs:{id:"repositoryMainList"}},[t("el-main",{directives:[{name:"loading",rawName:"v-loading",value:e.dataLoading,expression:"dataLoading"}],style:{height:e.mainHeight},attrs:{"element-loading-text":"拼命加载中"}},[t("div",{staticStyle:{width:"100%",height:"100%",overflow:"auto",display:"inline"}},[t("div",{staticClass:"recent"},[t("el-tabs",{on:{"tab-click":e.handleRecnetOrStore},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:"最近编辑",name:"recent"}}),t("el-tab-pane",{attrs:{label:"收藏文件",name:"store"}})],1)],1),t("div",{style:{margin:"12px 10px 10px 10px;",display:e.recentDisplay}},[t("div",[t("div",{staticStyle:{"margin-left":"10px"}},[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.recentData,"row-style":{height:"46px"},"cell-style":{padding:"0px"},"show-header":!1}},[t("el-table-column",{attrs:{width:"20px"}}),t("el-table-column",{attrs:{prop:"main",label:"名称","class-name":"row-repository-title","min-width":"300px"},scopedSlots:e._u([{key:"default",fn:function(s){return[s.row.folder?t("div",{staticClass:"icon-div-repository"},[t("i",{staticClass:"awsui-iconfont icon-dynamic-repository",style:{color:s.row.icon.color,"font-size":"32px"},domProps:{innerHTML:e._s(s.row.icon.code)}})]):t("div",{staticClass:"icon-div-repository",style:{"background-color":s.row.icon.color}},[t("i",{staticClass:"awsui-iconfont icon-dynamic-repository",domProps:{innerHTML:e._s(s.row.icon.code)}})]),t("div",{staticClass:"div-repository-title"},[t("p",{staticClass:"text-general-color",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.positionRepositoy(s.row.id,s.row.versionId,s.row.pathData)}}},[e._v(" "+e._s(s.row.name)+" "),t("span",{staticStyle:{color:"#909399","margin-left":"12px"}},[e._v("( "+e._s(s.row.versionStatus.versionNo)+" )")])])])]}}])}),t("el-table-column",{attrs:{prop:"second",label:"修改日期",width:"350"},scopedSlots:e._u([{key:"default",fn:function(s){return"default"!=s.row.methodId&&"process.framework"!=s.row.methodId?[t("div",{staticClass:"div-update-date"},[t("p",[e._v(" "+e._s(s.row.updateUser)+" 于 "+e._s(s.row.updateDate)+"修改 "),t("span",{staticStyle:{"margin-left":"12px","font-size":"13px"},style:{color:s.row.versionStatus.stateColor}},[e._v("( "+e._s(s.row.versionStatus.state)+" )")])])])]:void 0}}],null,!0)}),t("el-table-column",{attrs:{prop:"operate",label:"操作",align:"right",width:"100"},scopedSlots:e._u([{key:"default",fn:function(s){return[t("div",{staticClass:"div-operate text-second-color"},[s.row.isFavorite?t("div",{staticClass:"div-cancel-favorite"},[t("el-tooltip",{attrs:{content:"取消收藏",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"iconfont",staticStyle:{cursor:"pointer",color:"#FFB800"},on:{click:function(t){return e.setFavorite("0",s.row.versionId,s.row.id)}}},[e._v("")])])],1):e._e(),s.row.isFavorite?e._e():t("div",{staticClass:"non-favorite-display div-favorite"},[t("el-tooltip",{attrs:{content:"收藏",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"iconfont icon-operate",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.setFavorite("1",s.row.versionId,s.row.id)}}},[e._v("")])])],1)]),t("div",{staticClass:"div-operate text-second-color",staticStyle:{margin:"0 10px 0 15px"}},[t("div",{staticClass:"operate-icon-display"},[s.row.folder&&e.havingWritePerm?t("el-tooltip",{attrs:{placement:"bottom","hide-after":2e3}},[t("span",{attrs:{slot:"content"},slot:"content"},[e._v("修改"+e._s(s.row.methodName))]),t("i",{staticClass:"iconfont icon-operate",staticStyle:{display:"inline-block",cursor:"pointer"},on:{click:function(t){return e.openUpdateFolder(s.row.id,s.row.name,s.row.desc,s.row.methodId,s.row.methodName)}}},[e._v("")])]):e._e(),s.row.folder?e._e():t("el-tooltip",{attrs:{content:"打开模型",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"iconfont icon-operate",staticStyle:{display:"inline-block",cursor:"pointer"},on:{click:function(t){return e.openDesigner(s.row.id)}}},[e._v("")])])],1)])]}}])})],1)],1)])]),t("div",{style:{margin:"10px;","margin-top":"20px;",display:e.storeDisplay}},[t("div",[t("div",{staticStyle:{"margin-left":"10px"}},[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.commonData,"row-style":{height:"46px"},"cell-style":{padding:"0px"},"empty-text":"无收藏文件","show-header":!1}},[t("el-table-column",{attrs:{width:"20px"}}),t("el-table-column",{attrs:{prop:"main",label:"名称","class-name":"row-repository-title","min-width":"300px"},scopedSlots:e._u([{key:"default",fn:function(s){return[s.row.folder?t("div",{staticClass:"icon-div-repository"},[t("i",{staticClass:"awsui-iconfont icon-dynamic-repository",style:{color:s.row.icon.color,"font-size":"32px"},domProps:{innerHTML:e._s(s.row.icon.code)}})]):t("div",{staticClass:"icon-div-repository",style:{"background-color":s.row.icon.color}},[t("i",{staticClass:"awsui-iconfont icon-dynamic-repository",domProps:{innerHTML:e._s(s.row.icon.code)}})]),t("div",{staticClass:"div-repository-title"},[t("p",{staticClass:"text-general-color",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.positionRepositoy(s.row.id,s.row.versionId,s.row.pathData)}}},[e._v(" "+e._s(s.row.name)+" "),t("span",{staticStyle:{color:"#909399","margin-left":"12px"}},[e._v("( "+e._s(s.row.versionStatus.versionNo)+" )")])])])]}}])}),t("el-table-column",{attrs:{prop:"second",label:"修改日期",width:"350"},scopedSlots:e._u([{key:"default",fn:function(s){return[t("div",{staticClass:"div-update-date"},[t("p",[e._v(" "+e._s(s.row.updateUser)+" 于 "+e._s(s.row.updateDate)+"修改 "),t("span",{staticStyle:{"margin-left":"12px","font-size":"13px"},style:{color:s.row.versionStatus.stateColor}},[e._v("( "+e._s(s.row.versionStatus.state)+" )")])])])]}}])}),t("el-table-column",{attrs:{prop:"operate",label:"操作",align:"right",width:"100"},scopedSlots:e._u([{key:"default",fn:function(s){return[t("div",{staticClass:"div-operate text-second-color"},[s.row.isFavorite?t("div",{staticClass:"div-cancel-favorite"},[t("el-tooltip",{attrs:{content:"取消收藏",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"iconfont",staticStyle:{cursor:"pointer",color:"#FFB800"},on:{click:function(t){return e.setFavorite("0",s.row.versionId,s.row.id)}}},[e._v("")])])],1):e._e(),s.row.isFavorite?e._e():t("div",{staticClass:"non-favorite-display div-favorite"},[t("el-tooltip",{attrs:{content:"收藏",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"iconfont icon-operate",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.setFavorite("1",s.row.versionId,s.row.id)}}},[e._v("")])])],1)]),t("div",{staticClass:"div-operate text-second-color",staticStyle:{margin:"0 10px 0 15px"}},[t("div",{staticClass:"operate-icon-display"},["default"==s.row.methodId&&e.havingWritePerm?t("el-tooltip",{attrs:{content:"修改文件夹",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"iconfont icon-operate",staticStyle:{display:"inline-block",cursor:"pointer"},on:{click:function(t){return e.openUpdateFolder(s.row.id,s.row.name,s.row.desc,s.row.methodId,s.row.methodName)}}},[e._v("")])]):e._e(),"default"!=s.row.methodId?t("el-tooltip",{attrs:{content:"打开模型",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"iconfont icon-operate",staticStyle:{display:"inline-block",cursor:"pointer"},on:{click:function(t){return e.openDesigner(s.row.id)}}},[e._v("")])]):e._e()],1)])]}}])})],1)],1)])])])]),t("el-dialog",{attrs:{title:"修改文件夹",visible:e.folderDialog.dialogVisible,"modal-append-to-body":!1,"close-on-click-modal":!1,"close-on-press-escape":!0,"before-close":e.handleCloseFolder,width:"600px"},on:{"update:visible":function(t){return e.$set(e.folderDialog,"dialogVisible",t)}}},[t("div",{staticStyle:{border:"1px solid #F2F2F2",padding:"0px 10px 10px 10px"}},[t("awsui-form",{ref:"folderForm",attrs:{model:e.folderDialog.folderForm,rules:e.folderDialog.rules,"label-position":"top"}},[t("awsui-form-item",{attrs:{label:"名称",prop:"name"}},[t("awsui-input",{model:{value:e.folderDialog.folderForm.name,callback:function(t){e.$set(e.folderDialog.folderForm,"name",t)},expression:"folderDialog.folderForm.name"}})],1),t("awsui-form-item",{attrs:{label:"描述",prop:"desc"}},[t("awsui-input",{attrs:{type:"textarea"},model:{value:e.folderDialog.folderForm.desc,callback:function(t){e.$set(e.folderDialog.folderForm,"desc",t)},expression:"folderDialog.folderForm.desc"}})],1)],1)],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{staticClass:"button-general-color",attrs:{type:"primary"},on:{click:function(t){return e.updateFolderSave("folderForm")}}},[e._v("确定")]),t("awsui-button",{on:{click:e.closeFolderDlg}},[e._v("取消")])],1)]),t("awsui-dialog",{attrs:{title:e.customFolderDialog.title,visible:e.customFolderDialog.dialogVisible,"modal-append-to-body":!1,"close-on-click-modal":!1,"close-on-press-escape":!0,border:!1,width:"800px"},on:{"update:visible":function(t){return e.$set(e.customFolderDialog,"dialogVisible",t)}}},[t("div",[e.customFolderDialog.dialogVisible?t("repository-info-property",{attrs:{id:e.customFolderDialog.id,repositoryRefresh:e.repositoryRefresh}}):e._e()],1)])],1)},S=[],k=function(){var e=this,t=e._self._c;return t("el-container",[t("div",{staticStyle:{height:"500px",width:"100%",overflow:"auto"},attrs:{id:"repositoryInfoProperty"}},[e._l(e.propertyData,(function(s,i){return[t("div",{staticClass:"property-group"},[t("p",{staticStyle:{"padding-left":"5px"}},[t("b",[e._v(e._s(s.groupPathName))])])]),t("div",{staticStyle:{margin:"0 50px 0 30px"}},[e._l(s.data,(function(i,o){return["string"==i.type&&"PLNAME"==i.id?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[e._v(e._s(i.label))]),t("div",{staticClass:"property-value"},[t("el-input",{attrs:{size:e.size,disabled:i.readonly},on:{blur:function(t){return e.saveRepositoryNameVal(i.value)}},model:{value:i.value,callback:function(t){e.$set(i,"value",t)},expression:"item.value"}})],1)])]:e._e(),"string"==i.type&&"PLNAME"!=i.id?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[void 0!==i.isRequired&&i.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(i.label))]),t("div",{staticClass:"property-value"},[t("el-input",{attrs:{size:e.size,disabled:i.readonly},on:{blur:function(t){return e.saveStringPropVal(i.id,i.value,i.attrSource,i)}},model:{value:i.value,callback:function(t){e.$set(i,"value",t)},expression:"item.value"}})],1)])]:e._e(),"textarea"==i.type?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label",staticStyle:{"vertical-align":"bottom"}},[void 0!==i.isRequired&&i.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(i.label))]),t("div",{staticClass:"property-value"},[t("el-input",{attrs:{size:e.size,type:"textarea",rows:2,placeholder:"请输入内容",disabled:i.readonly},on:{blur:function(t){return e.saveStringPropVal(i.id,i.value,i.attrSource,i)}},model:{value:i.value,callback:function(t){e.$set(i,"value",t)},expression:"item.value"}})],1)])]:e._e(),"number"==i.type?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[void 0!==i.isRequired&&i.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(i.label))]),t("div",{staticClass:"property-value"},[t("el-input-number",{staticStyle:{width:"100%",cursor:"pointer"},attrs:{size:e.size,"controls-position":"right",step:1,disabled:i.readonly},on:{change:function(t){return e.saveNumberPropVal(i.id,i.value,i.attrSource,i)}},model:{value:i.value,callback:function(t){e.$set(i,"value",t)},expression:"item.value"}})],1)])]:e._e(),"boolean"==i.type?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[void 0!==i.isRequired&&i.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(i.label))]),t("div",{staticClass:"property-value"},[[t("el-select",{staticStyle:{width:"100%"},attrs:{disabled:i.readonly,clearable:"",size:e.size,placeholder:"请选择"},on:{change:function(t){return e.saveSingleSelectVal(i.id,i.value,i.attrSource,i)}},model:{value:i.value,callback:function(t){e.$set(i,"value",t)},expression:"item.value"}},e._l(i.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)]],2)])]:e._e(),"select"==i.type?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[void 0!==i.isRequired&&i.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(i.label))]),t("div",{staticClass:"property-value"},[[t("el-select",{staticStyle:{width:"100%"},attrs:{disabled:i.readonly,clearable:"",size:e.size,placeholder:"请选择"},on:{change:function(t){return e.saveSingleSelectVal(i.id,i.value,i.attrSource,i)}},model:{value:i.value,callback:function(t){e.$set(i,"value",t)},expression:"item.value"}},e._l(i.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)]],2)])]:e._e(),"select_m"==i.type?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[void 0!==i.isRequired&&i.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(i.label))]),t("div",{staticClass:"property-value"},[[t("el-select",{staticStyle:{width:"100%"},attrs:{disabled:i.readonly,size:e.size,multiple:"",placeholder:"请选择"},on:{change:function(t){return e.saveMultipleSelectVal(i.id,i.value,i.attrSource,i)}},model:{value:i.value,callback:function(t){e.$set(i,"value",t)},expression:"item.value"}},e._l(i.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)]],2)])]:e._e(),"deptAddress"==i.type?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[void 0!==i.isRequired&&i.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(i.label))]),t("div",{staticClass:"property-value"},[t("el-input",{attrs:{size:e.size,disabled:i.readonly,readonly:""},nativeOn:{click:function(t){return e.choiceBpmOrgAddressComponent(s.groupPath,i.type,i.id,i.readonly,i.isRequired,i.label)}},model:{value:i.value,callback:function(t){e.$set(i,"value",t)},expression:"item.value"}})],1)])]:e._e(),"userAddress"==i.type?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[void 0!==i.isRequired&&i.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(i.label))]),t("div",{staticClass:"property-value"},[t("el-input",{attrs:{size:e.size,disabled:i.readonly,readonly:""},nativeOn:{click:function(t){return e.choiceBpmOrgAddressComponent(s.groupPath,i.type,i.id,i.readonly,i.isRequired,i.label)}},model:{value:i.value,callback:function(t){e.$set(i,"value",t)},expression:"item.value"}})],1)])]:e._e(),"relationOrg"==i.type?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[void 0!==i.isRequired&&i.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(i.label))]),t("div",{staticClass:"property-value"},[t("el-input",{attrs:{size:e.size,disabled:i.readonly,readonly:""},model:{value:i.value,callback:function(t){e.$set(i,"value",t)},expression:"item.value"}})],1)])]:e._e(),"awsorg"==i.type?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[void 0!==i.isRequired&&i.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(i.label))]),t("div",{staticClass:"property-value"},[t("el-input",{attrs:{size:e.size,disabled:i.readonly,readonly:""},nativeOn:{click:function(t){return e.choiceAwsOrgComponent(i.ref,i.type,i.id,i.label,i.readonly,i.isRequired)}},model:{value:i.value,callback:function(t){e.$set(i,"value",t)},expression:"item.value"}})],1)])]:e._e(),"relation"==i.type?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[void 0!==i.isRequired&&i.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(i.label))]),t("div",{staticClass:"property-value"},[t("el-input",{attrs:{size:e.size,disabled:i.readonly,readonly:""},nativeOn:{click:function(t){return e.choiceRelationComponent(i.ref,i.type,i.id,i.label,i.readonly,i.fileIds,i.shapeIds,i.isRequired)}},model:{value:i.value,callback:function(t){e.$set(i,"value",t)},expression:"item.value"}})],1)])]:e._e(),"link"==i.type&&"PLNAME"!=i.id?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[void 0!==i.isRequired&&i.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(i.label))]),t("div",{staticClass:"property-value"},[t("el-input",{attrs:{size:e.size,disabled:i.readonly},on:{blur:function(t){return e.saveStringPropVal(i.id,i.value,i.attrSource,i)}},model:{value:i.value,callback:function(t){e.$set(i,"value",t)},expression:"item.value"}})],1)])]:e._e(),"DateTimePicker"==i.type?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[void 0!==i.isRequired&&i.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(i.label))]),t("div",{staticClass:"property-value"},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"请选择日期",disabled:i.readonly},on:{blur:function(t){return e.saveStringPropVal(i.id,i.value,i.attrSource,i)}},model:{value:i.value,callback:function(t){e.$set(i,"value",t)},expression:"item.value"}})],1)])]:e._e(),"table"==i.type?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[void 0!==i.isRequired&&i.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(i.label))]),t("div",{staticClass:"property-value"},[t("el-input",{attrs:{size:e.size,disabled:i.readonly,readonly:""},model:{value:e.dialogTableInput,callback:function(t){e.dialogTableInput=t},expression:"dialogTableInput"}},[t("template",{slot:"suffix"},[t("i",{staticClass:"el-icon-s-grid",staticStyle:{"font-size":"20px","line-height":"36px"},on:{click:function(t){return e.openTableDialog(i.id,i.value,i.attrSource)}}})])],2)],1)])]:e._e()]}))],2)]}))],2),t("BPMOrgAddress",{ref:"palAwsOrgAddress",attrs:{visible:e.bpmOrgAddress.visible,addressType:e.bpmOrgAddress.addressType,multiple:"",title:e.title,multiple:e.bpmOrgAddress.multiple},on:{"update:visible":function(t){return e.$set(e.bpmOrgAddress,"visible",t)},cancel:function(t){e.bpmOrgAddress.visible=!1},getResult:e.saveBpmOrgAddressResult}}),t("pal-relation-address",{ref:"palRelationAddress",attrs:{visible:e.palRelationAddressVisible,title:e.title,selectFileId:e.relation.selectFileId,selectShapeId:e.relation.selectShapeId,relationType:e.relation.relationType,categorys:e.relation.category,methods:e.relation.method,wsId:e.relation.wsId,teamId:e.relation.teamId,multiple:e.relation.multiple},on:{"update:visible":function(t){e.palRelationAddressVisible=t},cancel:function(t){e.palRelationAddressVisible=!1},getResult:e.saveRelationResult}}),t("el-container",[e.tableDialogVisible?t("el-dialog",{attrs:{id:"tableDialog",width:"500px",visible:e.tableDialogVisible,title:e.dialogTableNewValue.name,"modal-append-to-body":!0,"close-on-click-modal":!1,"append-to-body":!0,"show-close":!1,"destroy-on-close":""},on:{"update:visible":function(t){e.tableDialogVisible=t}}},[t("div",{staticStyle:{height:"300px",overflow:"auto"}},[t("table",{staticClass:"table"},[t("tr",[t("td",{staticStyle:{width:"25%"}},[t("span",{staticClass:"tableHead"},[e._v(e._s(e.dialogTableNewValue.table[0].name))])]),t("td",{staticStyle:{width:"55%"}},[t("span",{staticClass:"tableHead"},[e._v(e._s(e.dialogTableNewValue.table[0].desc))])]),t("td",[t("span",{staticStyle:{"font-size":"14px",color:"#909399","font-weight":"bold","font-family":"PingFangSC-Light"}},[e._v("操作")])])]),e._l(e.dialogTableNewValue.table.slice(1),(function(s){return t("tr",{key:s.id},[t("td",[t("el-tooltip",{attrs:{placement:"top-start"}},[t("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(s.name))]),t("el-input",{staticClass:"contentInput",attrs:{size:"mini"},model:{value:s.name,callback:function(t){e.$set(s,"name",t)},expression:"item.name"}})],1)],1),t("td",[t("el-tooltip",{attrs:{placement:"top-start"}},[t("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(s.desc))]),t("el-input",{staticClass:"contentInput",attrs:{size:"mini"},model:{value:s.desc,callback:function(t){e.$set(s,"desc",t)},expression:"item.desc"}})],1)],1),t("td",[t("span",{staticStyle:{color:"red","text-decoration":"underline"},on:{click:function(t){return e.deleteTableTr(s.id)}}},[e._v("删除")])])])}))],2)]),t("awsui-button",{staticClass:"button-general-color",staticStyle:{"margin-top":"10px"},attrs:{type:"primary"},on:{click:e.addNewTr}},[e._v("新增")]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{staticClass:"button-general-color",attrs:{type:"primary"},on:{click:function(t){return e.confirmTableDialog()}}},[e._v("确定")]),t("awsui-button",{on:{click:e.cancelTableDialog}},[e._v("取消")])],1)],1):e._e()],1)],1)},D=[],F=s("4cbb");F["a"].install=function(e){e.component(F["a"].name,F["a"])};var P=F["a"],N=function(){var e=this,t=e._self._c;return t("el-container",[t("el-dialog",{attrs:{id:"palRelationAddress",title:e.title,visible:e.dialogVisible,width:"800px","modal-append-to-body":!1,"destroy-on-close":!0,"append-to-body":!0,"close-on-click-modal":!1,"before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[[e.dialogVisible?t("div",{staticStyle:{width:"100%",height:"400px",border:"1px solid #f2f2f2"}},[t("div",{staticClass:"div-left",style:{width:"file"==e.relationType?"373px":"249px"}},[t("div",{staticStyle:{width:"100%",height:"32px"}},[t("el-autocomplete",{style:{width:"file"==e.relationType?"373px":"249px"},attrs:{size:"small","fetch-suggestions":e.treeSearch,"suffix-icon":"el-icon-search",placeholder:"快速查询","trigger-on-focus":!1},on:{select:e.treeSearchSelect},scopedSlots:e._u([{key:"default",fn:function({item:s}){return[t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start"}},[t("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(s.pathName))]),t("span",[e._v(e._s(s.name))])])]}}],null,!1,3987291353),model:{value:e.treeSearchKey,callback:function(t){e.treeSearchKey=t},expression:"treeSearchKey"}})],1),t("div",[t("div",{staticStyle:{height:"368px",overflow:"auto"}},[t("div",{staticStyle:{margin:"0px"}},[t("el-tree",{ref:"tree",attrs:{"empty-text":"无数据","expand-on-click-node":!1,props:e.treeProps,"show-checkbox":e.isTreeCheckbox,"check-strictly":!0,"highlight-current":!0,"node-key":"id",lazy:"",load:e.loadNode},on:{"node-expand":e.expandNode,"node-collapse":e.closeNode,"check-change":e.handleNodeCheckChange,"node-click":e.handleNodeClick},scopedSlots:e._u([{key:"default",fn:function({node:s,data:i}){return t("span",{},[t("i",{staticClass:"awsui-iconfont tree-content-icon tree-content-icon-padding",style:{color:s.data.icon.color},domProps:{innerHTML:e._s(s.data.icon.icon)}}),t("span",[e._v(e._s(s.label))])])}}],null,!1,52448956)})],1)])])]),"file"!=e.relationType?t("div",{staticClass:"div-middle"},[t("div",{staticStyle:{width:"100%",height:"32px"}},[t("el-input",{attrs:{size:"small",placeholder:"快速查询","suffix-icon":"el-icon-search",width:"249px"},on:{input:e.shapeSearch},model:{value:e.shapeSearchKey,callback:function(t){e.shapeSearchKey=t},expression:"shapeSearchKey"}})],1),t("div",[t("div",{staticStyle:{height:"368px",overflow:"auto"}},[t("div",{staticStyle:{margin:"0px"}},[e.multiple?[t("el-checkbox-group",{staticStyle:{margin:"5px 0px 5px 5px"},on:{change:e.handleChangeCheckShape},model:{value:e.shapeChecked,callback:function(t){e.shapeChecked=t},expression:"shapeChecked"}},e._l(e.shapeData,(function(s){return t("el-checkbox",{key:s.id,staticClass:"checkbox-item",attrs:{label:s.id,disabled:s.isDisabled}},[e._v(e._s(s.name))])})),1)]:[t("el-radio-group",{staticStyle:{margin:"5px 0px 5px 5px"},on:{change:e.handleChangeRadioShape},model:{value:e.shapeSelected,callback:function(t){e.shapeSelected=t},expression:"shapeSelected"}},e._l(e.shapeData,(function(s){return t("el-radio",{key:s.id,staticClass:"redio-item",attrs:{label:s.id,disabled:s.isDisabled}},[e._v(e._s(s.name))])})),1)]],2)])])]):e._e(),t("div",{staticClass:"div-right",style:{width:"file"==e.relationType?"373px":"249px"}},[t("div",{staticStyle:{height:"100%"}},[[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,"show-header":!1,"empty-text":"请在左侧选择数据",size:"mini",height:"400px"}},[t("el-table-column",{attrs:{prop:"name",label:"名称"}}),t("el-table-column",{attrs:{prop:"address",label:"操作",width:"40"},scopedSlots:e._u([{key:"default",fn:function(s){return[t("div",{staticClass:"icon-delete-display"},[t("i",{staticClass:"iconfont",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.remove(s.row.id)}}},[e._v("")])])]}}],null,!1,1353718858)})],1)]],2)])]):e._e()],t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{staticClass:"button-general-color",attrs:{type:"primary"},on:{click:e.submit}},[e._v("确定")]),t("awsui-button",{on:{click:e.cancel}},[e._v("取消")])],1)],2)],1)},T=[],A={name:"PalRelationAddress",props:{visible:{type:Boolean,default:!1},relationType:{type:String,default:"shape"},multiple:{type:Boolean,default:!1},title:{type:String,default:""},selectFileId:{type:String,default:""},selectShapeId:{type:String,default:""},wsId:{type:String,default:"",required:!0},teamId:{type:String,default:""},categorys:{type:String,default:""},methods:{type:String,default:""},rootId:{type:String,default:""}},data(){return{dialogVisible:!1,pid:"",shapeSearchKey:"",shapeChecked:[],shapeSelected:"",shapeRecords:{},treeProps:{label:"name",isLeaf:"leaf"},tableData:[],shapeData:[],shapeTempData:[],treeSearchKey:"",timeout:null,result:[]}},created(){},computed:{isTreeCheckbox(){return!("file"!=this.relationType||!this.multiple)||"shapeAndFile"==this.relationType}},methods:{clearAllParam(){this.pid="",this.shapeSearchKey="",this.shapeChecked=[],this.shapeSelected="",this.shapeRecords={},this.tableData=[],this.shapeData=[],this.shapeTempData=[],this.treeSearchKey="",this.timeout=null,this.result=[]},shapeSearch(){if(this.shapeSearchKey&&""!=this.shapeSearchKey.trim()){const e=this.shapeSearchKey.trim().toLocaleLowerCase(),t=[];for(let s=0;s<this.shapeTempData.length;s++){const i=this.shapeTempData[s];if(""!=i.name){let s=(i.name+"").toLocaleLowerCase();-1!=s.indexOf(e)&&t.push(JSON.parse(JSON.stringify(i)))}}this.shapeData=t}else this.shapeData=JSON.parse(JSON.stringify(this.shapeTempData))},treeSearchSelect(e){this.queryTreeByIdAndPath(e.id,e.path)},treeSearch(e,t){const s=this;if(void 0!=e&&""!=e.trim()){const i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_repository_tree_component_search",wsId:s.wsId,teamId:s.teamId,categorys:s.categorys,rootId:s.rootId,name:e}};p["a"].post(i).then((function(e){"ok"==e.result&&e.data.length>0?(clearTimeout(s.timeout),s.timeout=setTimeout(()=>{t(e.data)},3e3*Math.random())):clearTimeout(s.timeout)})).catch(e=>{console.log(e)})}else clearTimeout(s.timeout)},queryTreeByIdAndPath(e,t){const s=this,i=s.$refs.tree,o=t.split(",");let a=1;for(let r=0;r<o.length;r++)r>0&&null!=i.getNode(o[r-1])&&(setTimeout(s._expandNode(i,o[r-1]),300*a),a++);setTimeout((function(){null!=i.getNode(e)&&i.setCurrentKey(e)}),300*a)},_expandNode(e,t){return function(){e.getNode(t).expand()}},loadNode(e,t){const s=this,i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_repository_tree_component_subjson",wsId:s.wsId,teamId:s.teamId,categorys:s.categorys,pid:""}};0===e.level?i.data.pid=s.pid:i.data.pid=e.data.id,p["a"].post(i).then((function(i){for(let e=0;e<i.data.length;e++)i.data[e].id.length<36?i.data[e].disabled=!0:""!=s.categorys&&""!=s.methods?s.methods.indexOf(i.data[e].plMethodId)>-1?i.data[e].disabled=!1:i.data[e].disabled=!0:""!=s.categorys?s.categorys.indexOf(i.data[e].plCategory)>-1?i.data[e].disabled=!1:i.data[e].disabled=!0:s.methods.indexOf(i.data[e].plMethodId)>-1?i.data[e].disabled=!1:i.data[e].disabled=!0;if(t(i.data),s.initTreeCheck(),0==e.level&&i.data.length>0){const e=s.$refs.tree;e.getNode(i.data[0].id).expand(),setTimeout((function(){const t=e.getNode(i.data[0].id).childNodes[0];null!=t&&t.expand()}),500)}})).catch(e=>{console.log(e)})},expandNode(e,t,s){},closeNode(e,t,s){t.childNodes=[],t.loaded=!1},initTreeCheck(){const e=this.relationType;if("file"==e)if(this.multiple){const e=this.result,t=this.$refs.tree;for(let s=0;s<e.length;s++)null!=t.getNode(e[s].id)&&t.setChecked(e[s].id,!0)}else{const e=this.result,t=this.$refs.tree;for(let s=0;s<e.length;s++)null!=t.getNode(e[s].id)&&t.setCurrentKey(e[s].id)}else if("shapeAndFile"==e){const e=this.result,t=this.$refs.tree;for(let s=0;s<e.length;s++)0==e[s].children.length&&null!=t.getNode(e[s].id)&&t.setChecked(e[s].id,!0)}},handleNodeCheckChange(e,t){if("file"==this.relationType||"shapeAndFile"==this.relationType&&this.multiple)if(t){const t=this.result;if(!this.isFileExist(t,e.id,e.versionId)){const s={};s.id=e.id,s.versionId=e.versionId,s.name=e.name,s.children=[],t.push(s),this.initTableData()}}else this.remove(e.id);else if(t){const t=this.result;this.shapeSelected="";for(let e=0;e<t.length;e++)if(0==t[e].children.length)this.remove(t[e].id);else{let s=t[e].children;for(let e=0;e<s.length;e++)this.remove(s[e].shapeId)}if(!this.isFileExist(t,e.id,e.versionId)){const s={};s.id=e.id,s.versionId=e.versionId,s.name=e.name,s.children=[],t.push(s),this.initTableData()}}else this.remove(e.id)},handleClose(e){this.closeDlalog("cancel"),e()},cancel(){this.closeDlalog("cancel"),this.dialogVisible=!1},submit(){this.closeDlalog("save"),this.dialogVisible=!1},closeDlalog(e){if("save"==e){const e=JSON.parse(JSON.stringify(this.result));if("file"==this.relationType)for(let t=0;t<e.length;t++)delete e[t].children;this.$emit("getResult",e)}else this.$emit("cancel");this.clearAllParam()},handleNodeClick(e){const t=this,s=this.relationType;if("file"==s){if(!this.multiple){if(""!=t.categorys&&""!=t.methods){if(-1==t.methods.indexOf(e.plMethodId))return void t.$message({message:"不支持关联的模型",type:"warning"})}else if(""!=t.categorys){if(-1==t.categorys.indexOf(e.plCategory))return void t.$message({message:"不支持关联的模型",type:"warning"})}else if(-1==t.methods.indexOf(e.plMethodId))return void t.$message({message:"不支持关联的模型",type:"warning"});this.result=[];const s=this.result,i={};i.id=e.id,i.versionId=e.versionId,i.name=e.name,i.children=[],s.push(i),this.initTableData()}}else{const t=this;t.shapeSearchKey="";const s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_repository_tree_component_shapejson",id:e.id}};let i=!0;i=""!=t.categorys&&""!=t.methods?!(t.methods.indexOf(e.plMethodId)>-1):""!=t.categorys?!(t.categorys.indexOf(e.plCategory)>-1):!(t.methods.indexOf(e.plMethodId)>-1),p["a"].post(s).then((function(e){if("ok"==e.result){const s=e.data.list,o=[];for(let e=0;e<s.length;e++){const a={id:s[e].id,name:s[e].name,fileId:s[e].fileId,fileName:s[e].fileName,versionId:s[e].versionId,isDisabled:i};o.push(a),t.shapeRecords[s[e].id]=a}t.shapeData=o,t.shapeTempData=JSON.parse(JSON.stringify(t.shapeData))}})).catch(e=>{console.log(e)})}},initTableData(){const e=this.relationType;if("file"==e){const e=this.result,t=[];for(let s=0;s<e.length;s++){const i={id:e[s].id,name:e[s].name,versionId:e[s].versionId};t.push(i)}this.tableData=t}else if("shapeAndFile"==e){const e=this.result,t=[];for(let s=0;s<e.length;s++){const i=e[s],o=i.children;if(0==o.length){const i={id:e[s].id,name:e[s].name,versionId:e[s].versionId};t.push(i)}else for(let e=0;e<o.length;e++){const s=o[e],a={id:s.shapeId,name:s.name,fileId:i.id,fileName:i.name,versionId:i.versionId};t.push(a)}}this.tableData=t}else{const e=this.result,t=[];for(let s=0;s<e.length;s++){const i=e[s],o=i.children;for(let e=0;e<o.length;e++){const s=o[e],a={id:s.shapeId,name:s.name,fileId:i.id,fileName:i.name,versionId:i.versionId};t.push(a)}}this.tableData=t}},isFileExist(e,t,s){for(let i=0;i<e.length;i++){const t=e[i];if(t.versionId==s)return!0}return!1},remove(e){const t=this.relationType;if("file"==t){const t=this.result;for(let s=0;s<t.length;s++){const i=t[s];if(i.id==e){t.splice(s,1),this.multiple?this.$refs.tree.setChecked(e,!1):this.$refs.tree.setCurrentKey(null);break}}}else if("shapeAndFile"==t){const t=this.result;for(let s=0;s<t.length;s++){const i=t[s];if(i.id==e){this.$refs.tree.setChecked(e,!1),t.splice(s,1);break}{let o=this.shapeRecords[e],a=t[s].children;if(o&&i.id==o.fileId)for(let i=0;i<a.length;i++)if(a[i].shapeId==e&&(a.splice(i,1),0==a.length&&t.splice(s,1)),this.multiple){for(let t=0;t<this.shapeChecked.length;t++)if(this.shapeChecked[t]==e){this.shapeChecked.splice(t,1);break}}else this.shapeSelected=""}}}else if(this.multiple){const t=this.shapeRecords[e];if(t){const s=this.result,i=(t.id,t.name,t.fileId);t.fileName,t.versionId;for(let t=0;t<s.length;t++){const o=s[t];if(o.id==i){const i=o.children;for(let t=0;t<i.length;t++)if(i[t].shapeId==e){i.splice(t,1);break}if(0==i.length){s.splice(t,1);break}}}}for(let s=0;s<this.shapeChecked.length;s++)if(this.shapeChecked[s]==e){this.shapeChecked.splice(s,1);break}}else this.result=[],this.shapeSelected="";this.initTableData()},handleChangeRadioShape(e){const t=this.shapeRecords[e];if(t){const e=t.id,s=t.name,i=t.fileId,o=t.fileName,a=t.versionId;if("shapeAndFile"==this.relationType)for(let t=0;t<this.result.length;t++)0==this.result[t].children.length&&this.remove(this.result[t].id);this.result=[];const r=this.result,l={};l.id=i,l.versionId=a,l.name=o,l.children=[];const n={shapeId:e,name:s};l.children.push(n),r.push(l),this.initTableData()}},handleChangeCheckShape(e){if("shapeAndFile"==this.relationType)for(let s=0;s<this.result.length;s++)this.result[s].children.length>0&&this.result.splice(s,1);else this.result=[];const t=this.result;for(let s=0;s<e.length;s++){const i=e[s],o=this.shapeRecords[i];if(o){const e=o.id,s=o.name,i=o.fileId,a=o.fileName,r=o.versionId;let l=!1;for(let o=0;o<t.length;o++){const a=t[o];if(a.id==i){l=!0;const t={shapeId:e,name:s};-1===a.children.findIndex(t=>t.shapeId==e)&&a.children.push(t)}}if(!l){const o={};o.id=i,o.versionId=r,o.name=a,o.children=[];const l={shapeId:e,name:s};o.children.push(l),t.push(o)}}}this.initTableData()},initData(){const e=this;if("file"==e.relationType){if(""!=e.selectFileId){const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_repository_tree_component_file_query",versionIds:e.selectFileId}};p["a"].post(t).then((function(t){if("ok"==t.result){const s=[];for(let e=0;e<t.data.length;e++){const i=t.data[e],o={};o.id=i.id,o.versionId=i.versionId,o.name=i.name,o.children=[],s.push(o)}e.result=s,e.initTableData()}})).catch(e=>{console.log(e)})}}else if(""!=e.selectFileId&&""!=e.selectShapeId){const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_repository_tree_component_file_shape_query",fileIds:e.selectFileId,shapeIds:e.selectShapeId}};p["a"].post(t).then((function(t){if("ok"==t.result&&t.data.data.length>0){if(e.shapeRecords=t.data.shapes,e.multiple){e.result=t.data.data;for(let t=0;t<e.result.length;t++){const s=e.result[t].children;for(let t=0;t<s.length;t++)e.shapeChecked.push(s[t].shapeId)}}else{e.result=t.data.data;for(let t=0;t<e.result.length;t++){const s=e.result[t].children;for(let t=0;t<s.length;t++)e.shapeSelected=s[t].shapeId}}e.initTableData()}})).catch(e=>{console.log(e)})}}},watch:{visible(e){this.dialogVisible=e,e&&(this.clearAllParam(),this.pid=this.rootId,this.initData())}}},R=A,$=(s("7bb4"),Object(g["a"])(R,N,T,!1,null,"3b59fe57",null)),O=$.exports;O.install=function(e){e.component(O.name,O)};var M=O,V={name:"RepositoryInfoProperty",components:{BPMOrgAddress:P,PalRelationAddress:M},props:{id:{type:String,default:""},versionId:{type:String,default:""},repositoryRefresh:{type:Function,default:null}},data(){return{bpmOrgAddress:{visible:!1,addressType:"user",multiple:!1,isRequired:!1},palRelationAddressVisible:!1,title:"",relation:{selectFileId:"",selectShapeId:"",relationType:"shape",category:"",method:"",wsId:this.$store.getters.getWsIdFn,teamId:this.$store.getters.getTeamIdFn,multiple:!1,isRequired:!1},propertyData:[{groupPath:"basic",groupPathName:"基本属性",data:[]}],size:"medium",currPropertyId:"",currPropertyType:"",currPropertyLabel:"",currGroup:"",currCategory:"",currMethod:"",currRelationType:"",currPropSource:"",tableDialogVisible:!1,dialogTableInput:"请输入",dialogTableId:"",dialogTableOldValue:{},dialogTableNewValue:{name:"",table:[{id:"",name:"",desc:""}]},dialogTableAttrSource:void 0}},created(){this.initData()},methods:{initData(){const e=this,t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_property_data_query",id:e.id,wsId:e.$store.getters.getWsIdFn,teamId:e.$store.getters.getTeamIdFn}};p["a"].post(t).then((function(t){if("ok"==t.result){let s=t.data.propertyData;s.forEach(t=>{t.data.forEach(t=>{if("table"==t.type&&"{}"==JSON.stringify(t.value)){let e=JSON.parse(t.ref);t.value={name:t.label,table:[{id:"table_head",name:e.firstColumn,desc:e.secondColumn}]}}if("table"==t.type&&"{}"!==JSON.stringify(t.value)){e.dialogTableInput=t.value.table.length>1?"请查看":"请输入";let s=JSON.parse(t.ref);t.value.table[0]={id:"table_head",name:s.firstColumn,desc:s.secondColumn}}})}),e.propertyData=s}else e.$message.error(t.msg)})).catch(e=>{console.log(e)})},openTableDialog(e,t,s){this.tableDialogVisible=!0,this.dialogTableId=e,this.dialogTableOldValue=JSON.parse(JSON.stringify(t)),this.dialogTableNewValue=t,this.dialogTableAttrSource=s},addNewTr(){this.dialogTableNewValue.table.push({id:Date.now().toString(36),name:"",desc:""})},deleteTableTr(e){let t=this.dialogTableNewValue.table.findIndex(t=>t.id==e);this.dialogTableNewValue.table.splice(t,1)},confirmTableDialog(){this.dialogTableAttrSource&&"default"==this.dialogTableAttrSource?this.saveDefaultpropToDb(this.dialogTableId,JSON.stringify(this.dialogTableNewValue)):this.saveCustomPropToDb(this.dialogTableId,JSON.stringify(this.dialogTableNewValue)),this.tableDialogVisible=!1},cancelTableDialog(){this.dialogTableAttrSource&&"default"==this.dialogTableAttrSource?this.saveDefaultpropToDb(this.dialogTableId,JSON.stringify(this.dialogTableOldValue)):this.saveCustomPropToDb(this.dialogTableId,JSON.stringify(this.dialogTableOldValue)),this.tableDialogVisible=!1},saveStringPropVal(e,t,s,i){if(void 0==t&&(t=""),void 0!==i.isRequired&&i.isRequired&&""==t)return this.$message({message:`[${i.label}]不允许为空`,type:"warning"}),!1;s&&"default"==s?this.saveDefaultpropToDb(e,t):this.saveCustomPropToDb(e,t)},saveNumberPropVal(e,t,s,i){if(void 0==t&&(t=""),void 0!==i.isRequired&&i.isRequired&&""==t)return this.$message({message:`[${i.label}]不允许为空`,type:"warning"}),!1;s&&"default"==s?this.saveDefaultpropToDb(e,t):this.saveCustomPropToDb(e,t)},saveSingleSelectVal(e,t,s,i){if(void 0==t&&(t=""),void 0!==i.isRequired&&i.isRequired&&""==t)return this.$message({message:`[${i.label}]不允许为空`,type:"warning"}),!1;s&&"default"==s?this.saveDefaultpropToDb(e,t):this.saveCustomPropToDb(e,t)},saveMultipleSelectVal(e,t,s,i){if(void 0!==i.isRequired&&i.isRequired&&""==t)return this.$message({message:`[${i.label}]不允许为空`,type:"warning"}),!1;t=t.join(","),s&&"default"==s?this.saveDefaultpropToDb(e,t):this.saveCustomPropToDb(e,t)},saveDefaultpropToDb(e,t){const s=this,i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_default_attr_content_save",uuid:s.id,josnKey:e,josnContent:t}};p["a"].post(i).then((function(e){"ok"==e.result?s.initData():s.$message.error(e.msg)})).catch(e=>{console.log(e)})},saveCustomPropToDb(e,t){const s=this,i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_more_attr_content_save",uuid:s.id,josnKey:e,josnContent:t}};p["a"].post(i).then((function(e){"ok"==e.result?s.initData():s.$message.error(e.msg)})).catch(e=>{console.log(e)})},choiceRelationComponent(e,t,s,i,o,a,r,l){if(!o){this.currPropertyId=s,this.currPropertyType=t,this.currPropertyLabel=i;const o=e.method;o.indexOf(".")>-1?(this.currCategory=o.substring(0,o.indexOf(".")),this.currMethod=o):(this.currCategory=o,this.currMethod=""),this.currPropSource="custom",this.relation.multiple=!0,this.currRelationType=e.type,this.title=i,this.relation.selectFileId=a,this.relation.selectShapeId=r,this.relation.relationType=e.type,this.relation.category=this.currCategory,this.relation.method=this.currMethod,this.relation.multiple=e.multiple,this.relation.isRequired=l,this.palRelationAddressVisible=!0}},choiceBpmOrgAddressComponent(e,t,s,i,o,a){i||(this.currPropertyId=s,this.currPropertyType=t,this.currPropertyLabel=a,"deptAddress"==t?(this.title="责任部门",this.bpmOrgAddress.addressType="dept",this.bpmOrgAddress.visible=!0,this.bpmOrgAddress.isRequired=o):"userAddress"==t&&(this.title="责任人",this.bpmOrgAddress.addressType="user",this.bpmOrgAddress.visible=!0,this.bpmOrgAddress.isRequired=o))},choiceAwsOrgComponent(e,t,s,i,o,a){o||(this.currPropertyId=s,this.currPropertyType=t,this.currPropertyLabel=i,this.title=i,this.bpmOrgAddress.addressType=e.scope.join(","),this.bpmOrgAddress.multiple=e.multiple,this.bpmOrgAddress.visible=!0,this.bpmOrgAddress.isRequired=a)},saveBpmOrgAddressResult(e){if(this.bpmOrgAddress.visible=!1,this.bpmOrgAddress.isRequired&&0==e.length)return this.$message({message:`[${this.currPropertyLabel}]不允许为空`,type:"warning"}),!1;const t=[];for(let s=0;s<e.length;s++)t.push({name:e[s].name,id:e[s].id,type:e[s].type});this.saveCustomPropToDb(this.currPropertyId,JSON.stringify(t))},saveRelationResult(e){if(this.relation.isRequired&&0==e.length)return this.$message({message:`[${this.currPropertyLabel}]不允许为空`,type:"warning"}),!1;const t={fileId:this.id,shapeId:"",shapeText:"",attrId:this.currPropertyId,relationFileId:"",relationShapeId:"",relationShapeText:"",groupPath:this.currGroup},s=this.currRelationType;if("file"==s){const s=[];for(let t=0;t<e.length;t++)s.push(e[t].versionId);t.relationFileId=s.join(",")}else if("shapeAndFile"==s){let s=[],i=[],o=[];for(let t=0;t<e.length;t++)if(0==e[t].children.length)s.push(e[t].versionId),o.push(e[t].name),i.push(" ");else for(let a=0;a<e[t].children.length;a++)s.push(e[t].versionId),i.push(e[t].children[a].shapeId),o.push(e[t].children[a].name);t.relationFileId=s.join(","),t.relationShapeId=i.join(","),t.relationShapeText=o.join(",")}else{const s=[],i=[],o=[];for(let t=0;t<e.length;t++){const a=e[t],r=a.children;for(let e=0;e<r.length;e++){const t=r[e];s.push(a.id),i.push(t.shapeId),o.push(t.name)}}t.relationFileId=s.join(","),t.relationShapeId=i.join(","),t.relationShapeText=o.join(",")}"default"==this.currPropSource?this.saveDefaultpropToDb(this.currPropertyId,JSON.stringify(t)):this.saveCustomPropToDb(this.currPropertyId,JSON.stringify(t)),this.palRelationAddressVisible=!1},saveRepositoryNameVal(e){const t=this,s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_repository_designer_updatetitle",uuid:t.id,title:e}};p["a"].post(s).then((function(e){"ok"==e.result?(t.initData(),t.repositoryRefresh&&t.id&&t.repositoryRefresh(t.id)):t.$message.error(e.msg)})).catch(e=>{console.log(e)})}}},L=V,U=(s("02ab"),Object(g["a"])(L,k,D,!1,null,"367ed48e",null)),B=U.exports,j={name:"RepositoryMainList",components:{RepositoryInfoProperty:B},props:{refreshTreeParentNode:{type:Function,default:null}},data(){return{mainHeight:parseInt(this.$store.getters.getTopMainHeightFn)+"px",dataLoading:!1,defaultCategoryName:"",recentData:[],commonData:[],crrentUserId:"",havingWritePerm:!1,folderDialog:{dialogVisible:!1,folderForm:{id:"",name:"",desc:""},rules:{name:[{required:!0,message:"请输入名称",trigger:"blur"},{min:1,max:120,message:"长度在 1 到 120 个字符",trigger:"blur"}]}},customFolderDialog:{dialogVisible:!1,title:"",id:""},activeName:"recent",recentDisplay:"block",storeDisplay:"none"}},created(){this.initData(),this.initParam();let e=this;this.$nextTick(()=>{let t={};for(const s in e)if("initData"===s){let i="repositoryMainList_initData";t[i]=e[s];break}this.$store.commit("setPageFunction",t)})},methods:{initParam(){const e=this,t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_nav_header_data",mainType:mainType}};p["a"].post(t).then((function(t){if("ok"==t.result){let s=t.data;e.crrentUserId=s.crrentUserId}})).catch(e=>{console.log(e)})},handleRecnetOrStore(e,t){this.switchTabCard(e.name)},switchTabCard(e){"recent"==e?(this.recentDisplay="block",this.storeDisplay="none"):"store"==e&&(this.recentDisplay="none",this.storeDisplay="block")},handleCloseFolder(e){this.folderDialog.dialogVisible=!1,e()},openUpdateFolder(e,t,s,i,o){"default"==i?(this.folderDialog.folderForm.name=t,this.folderDialog.folderForm.desc=s,this.folderDialog.folderForm.id=e,this.folderDialog.dialogVisible=!0):(this.customFolderDialog.id=e,this.customFolderDialog.title="修改"+o,this.customFolderDialog.dialogVisible=!0)},closeFolderDlg(){this.folderDialog.dialogVisible=!1,this.folderDialog.folderForm.name="",this.folderDialog.folderForm.desc="",this.folderDialog.folderForm.id=""},updateFolderSave(e){const t=this;t.$refs[e].validate(e=>{if(!e)return console.log("error submit!!"),!1;{const e=t.folderDialog.folderForm.name,s=t.folderDialog.folderForm.desc;if(s.length>255)return void t.$message({message:"[描述]不允许超过255个字符",type:"warning"});const i=t.folderDialog.folderForm.id,o=t.$store.getters.getWsIdFn,a=t.$store.getters.getTeamIdFn,r="default",l={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_folder_create_save",wsId:o,teamId:a,method:r,name:e,desc:s,id:i}};p["a"].post(l).then((function(e){"ok"==e.result&&(t.initData(),t.refreshTreeParentNode&&t.refreshTreeParentNode(i),t.closeFolderDlg())})).catch(e=>{console.log(e)})}})},initData(){const e=this;e.dataLoading=!0;const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_recent_and_favorite_data_query",wsId:e.$store.getters.getWsIdFn,teamId:e.$store.getters.getTeamIdFn,createUsers:JSON.stringify(e.$store.getters.getCreateUsers),orgIds:JSON.stringify(e.$store.getters.getOrgIds),methodIds:JSON.stringify(e.$store.getters.getMethodIds)}};p["a"].post(t).then((function(t){if("ok"==t.result){e.defaultCategoryName=t.data.defaultCategoryName;for(let e=0;e<t.data.recentData.length;e++)t.data.recentData[e].versionStatus.isApproval?(t.data.recentData[e].versionStatus.stateColor="#1AA477",t.data.recentData[e].versionStatus.state="审批中"):t.data.recentData[e].versionStatus.isStop?(t.data.recentData[e].versionStatus.stateColor="#D9001B",t.data.recentData[e].versionStatus.state="已停用"):t.data.recentData[e].versionStatus.isPublish?(t.data.recentData[e].versionStatus.stateColor="#1AA477",t.data.recentData[e].versionStatus.state="已发布"):(t.data.recentData[e].versionStatus.isUse,t.data.recentData[e].versionStatus.stateColor="#4E7FF9",t.data.recentData[e].versionStatus.state="设计中");e.recentData=t.data.recentData;for(let e=0;e<t.data.commonData.length;e++)t.data.commonData[e].versionStatus.isApproval?(t.data.commonData[e].versionStatus.stateColor="#1AA477",t.data.commonData[e].versionStatus.state="审批中"):t.data.commonData[e].versionStatus.isStop?(t.data.commonData[e].versionStatus.stateColor="#D9001B",t.data.commonData[e].versionStatus.state="已停用"):t.data.commonData[e].versionStatus.isPublish?(t.data.commonData[e].versionStatus.stateColor="#1AA477",t.data.commonData[e].versionStatus.state="已发布"):(t.data.commonData[e].versionStatus.isUse,t.data.commonData[e].versionStatus.stateColor="#4E7FF9",t.data.commonData[e].versionStatus.state="设计中");e.commonData=t.data.commonData,e.havingWritePerm=t.data.havingWritePerm,e.dataLoading=!1}})).catch(t=>{console.log(t),e.dataLoading=!1})},openDesigner(e){Object(y["d"])(this.$store.getters.getTeamIdFn,e,this.$store.state.sessionId)},setFavorite(e,t,s){if("0"==e){const e=this,s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_favorite_cancel",wsId:e.$store.getters.getWsIdFn,teamId:e.$store.getters.getTeamIdFn,versionId:t}};p["a"].post(s).then((function(t){"ok"==t.result&&e.initData()})).catch(e=>{console.log(e)})}else{const e=this,s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_favorite_save",wsId:e.$store.getters.getWsIdFn,teamId:e.$store.getters.getTeamIdFn,versionId:t}};p["a"].post(s).then((function(t){"ok"==t.result&&e.initData()})).catch(e=>{console.log(e)})}},repositoryRefresh(e){this.refreshTreeParentNode&&this.refreshTreeParentNode(e),this.initData()},positionRepositoy(e,t,s){const i=[];for(let o=0;o<s.length;o++){const e=s[o].versionId;i.push(e)}this.$router.push({path:"/Repository",query:{id:e,versionId:t,path:i.join(","),param:Math.random()}})}},computed:{listenTopMainHeight(){return this.$store.getters.getTopMainHeightFn}},watch:{listenTopMainHeight:function(e,t){this.mainHeight=parseInt(e)+"px"}}},H=j,z=(s("52ee"),Object(g["a"])(H,I,S,!1,null,"2165b959",null)),E=z.exports,q=function(){var e=this,t=e._self._c;return t("el-container",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[t("el-container",{attrs:{id:"repositoryList"}},[t("el-main",{style:{height:e.mainHeight}},[t("div",{staticStyle:{width:"100%",height:"100%",overflow:"auto",display:"inline"}},[t("div",{staticStyle:{margin:"12px 10px 10px 10px"}},[t("div",{staticStyle:{"margin-bottom":"10px","margin-left":"10px"}},[t("div",{staticStyle:{"min-width":"50%",display:"inline-block","text-overflow":"ellipsis","white-space":"nowrap",overflow:"hidden"}},[e._l(e.repositoryPathData,(function(s,i){return[i!=e.repositoryPathData.length-1?t("label",{staticStyle:{"font-size":"14px",color:"#6F91B9"}},[t("span",{staticClass:"repository-path-title",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.positionRepositoryPath(s.id,s.versionId)}}},[e._v(e._s(s.name))]),t("i",{staticClass:"awsui-iconfont"},[e._v(" ")])]):e._e(),i==e.repositoryPathData.length-1?t("label",{staticStyle:{"font-size":"14px",color:"#384148"}},[t("span",{staticClass:"cur-title"},[t("span",{on:{click:e.initData}},[e._v(e._s(s.name))]),void 0!=e.mainRepository?t("div",{staticClass:"cur-title-operate",staticStyle:{width:"16px","margin-left":"10px"}},[t("div",{staticClass:"operate-icon-display"},[t("el-dropdown",{attrs:{"hide-on-click":!0,trigger:"click",placement:"bottom-end"}},[t("span",{staticClass:"el-dropdown-link"},[t("i",{staticClass:"iconfont icon-operate",staticStyle:{cursor:"pointer"}},[e._v("")])]),t("el-dropdown-menu",{staticStyle:{"min-width":"200px"},attrs:{slot:"dropdown"},slot:"dropdown"},[e.mainRepository.folder&&(e.isOlderVersion?e.havingWritePerm:e.mainRepository.havingWritePerm)?t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.openUpdateFolder(e.mainRepository.id,e.mainRepository.name,e.mainRepository.desc,e.mainRepository.methodId,e.mainRepository.methodName)}}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{display:"inline-block",width:"20px"}}),t("span",{staticStyle:{"font-size":"12px"}},[e._v("修改"+e._s(e.mainRepository.methodName))])])]):e._e(),e.mainRepository.folder?e._e():t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.openDesigner(e.mainRepository.id)}}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{display:"inline-block",width:"20px"}}),t("span",{staticStyle:{"font-size":"12px"}},[e._v("打开模型")])])]),"default"==e.mainRepository.methodId&&(e.isOlderVersion?e.havingWritePerm:e.mainRepository.havingWritePerm)||"default"!=e.mainRepository.methodId?t("el-dropdown-item",{attrs:{divided:""}}):e._e(),e.mainRepository.isFavorite?t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.setFavorite("0",e.mainRepository.versionId,e.mainRepository.id)}}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{display:"inline-block",width:"20px"}},[t("i",{staticClass:"iconfont",staticStyle:{"font-size":"12px",color:"#FFB800"}},[e._v("")])]),t("span",{staticStyle:{"font-size":"12px"}},[e._v("取消收藏")])])]):t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.setFavorite("1",e.mainRepository.versionId,e.mainRepository.id)}}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{display:"inline-block",width:"20px"}},[t("i",{staticClass:"iconfont",staticStyle:{"font-size":"12px"}},[e._v("")])]),t("span",{staticStyle:{"font-size":"12px"}},[e._v("收藏")])])]),(e.isOlderVersion?e.havingWritePerm:e.mainRepository.havingWritePerm)?t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.moveFile(e.mainRepository.id)}}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{display:"inline-block",width:"20px"}}),t("span",{staticStyle:{"font-size":"12px"}},[e._v("移动至")])])]):e._e(),(e.isOlderVersion?e.havingWritePerm:e.mainRepository.havingWritePerm)?t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.copyFiles(e.mainRepository.id)}}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{display:"inline-block",width:"20px"}}),t("span",{staticStyle:{"font-size":"12px"}},[e._v("创建副本")])])]):e._e(),t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.exportFiles(e.mainRepository.id)}}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{display:"inline-block",width:"20px"}}),t("span",{staticStyle:{"font-size":"12px"}},[e._v("导出")])])]),t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.openRepositoryInfoById("version",e.mainRepository)}}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{display:"inline-block",width:"20px"}}),t("span",{staticStyle:{"font-size":"12px"}},[e._v("版本管理")])])]),(e.isOlderVersion?e.havingWritePerm:e.mainRepository.havingWritePerm)?t("el-dropdown-item",{staticStyle:{height:"30px","line-height":"30px"},attrs:{divided:""},nativeOn:{click:function(t){return e.removeFiles(e.mainRepository.id)}}},[t("div",{staticClass:"text-important-color",staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{display:"inline-block",width:"20px"}},[t("i",{staticClass:"iconfont icon-lajitong1",staticStyle:{"font-size":"12px"}})]),t("span",{staticStyle:{"font-size":"12px"}},[e._v("删除模型")])])]):e._e()],1)],1)],1)]):e._e()])]):e._e()]}))],2),e.uuid.length<36?t("div",{staticStyle:{float:"right",position:"relative",right:"10px",display:"inline-block"}},[e.subProcess.appInstall?t("awsui-button",{staticClass:"button-general-color-reverse",on:{click:function(t){e.subProcess.visible=!0}}},[e._v("生成端到端流程图")]):e._e(),e.batchAppVisible&&null!=e.$store.getters.getTeamIdFn?t("awsui-button",{staticClass:"button-general-color-reverse",staticStyle:{width:"100px",margin:"0","border-bottom-right-radius":"0px","border-top-right-radius":"0px"},attrs:{id:"batchCreateButton","visit-type":""},on:{click:e.batchCreateFn}},[e._v("批量创建")]):e._e(),e.batchAppVisible&&null!=e.$store.getters.getTeamIdFn?t("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"100px",margin:"0","border-bottom-left-radius":"0px","border-top-left-radius":"0px"},attrs:{id:"batchReplaceButton",type:"primary"},on:{click:e.batchReplaceFn}},[e._v("批量替换")]):e._e()],1):e._e()]),t("div",[t("div",{ref:"repositorysDiv",staticStyle:{"margin-left":"10px","margin-right":"10px"}},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableLoading,expression:"tableLoading"}],ref:"table",staticStyle:{width:"100%"},attrs:{"row-style":{height:"46px"},"cell-style":{padding:"0px"},"element-loading-text":"拼命加载中",data:e.tableData,"show-header":!1,"highlight-current-row":"","cell-class-name":e.hideCheckBoxCell},on:{"cell-mouse-enter":e.showCheckbox,"cell-mouse-leave":e.hideCheckbox,"row-click":e.clickTableRow,"selection-change":e.handlecheckedRepositorysChange}},[t("el-table-column",{attrs:{"class-name":"rowDropFilter el-table-column--selection",type:"selection",width:"40",align:"left"}}),t("el-table-column",{attrs:{prop:"main",label:"名称","class-name":"row-repository-title","min-width":"250px"},scopedSlots:e._u([{key:"default",fn:function(s){return[s.row.folder?t("div",{staticClass:"icon-div-repository rowDropFilter"},[t("i",{staticClass:"awsui-iconfont icon-dynamic-repository",style:{color:s.row.icon.color,"font-size":"32px"},domProps:{innerHTML:e._s(s.row.icon.code)}})]):t("div",{staticClass:"icon-div-repository rowDropFilter",style:{"background-color":s.row.icon.color}},[t("i",{staticClass:"awsui-iconfont icon-dynamic-repository",domProps:{innerHTML:e._s(s.row.icon.code)}})]),t("div",{staticClass:"div-repository-title rowDropFilter"},[t("p",{staticClass:"text-general-color",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.positionTableRoleRepository(s.row.id,s.row.versionId,s.row.childSize,s.row.folder)}}},[e._v(" "+e._s(s.row.name)+" "),t("span",{staticStyle:{color:"#909399","margin-left":"12px"}},[e._v("( "+e._s(s.row.versionStatus.versionNo)+" )")])])])]}}])}),t("el-table-column",{attrs:{prop:"second",label:"修改日期",width:"300"},scopedSlots:e._u([{key:"default",fn:function(s){return"default"!=s.row.methodId&&"process.framework"!=s.row.methodId?[t("div",{staticClass:"div-update-date"},[t("p",[e._v(" "+e._s(s.row.updateUser)+" 于 "+e._s(s.row.updateDate)+"修改 "),t("span",{staticStyle:{"margin-left":"12px","font-size":"13px"},style:{color:s.row.versionStatus.stateColor}},[e._v("( "+e._s(s.row.versionStatus.state)+" )")])])])]:void 0}}],null,!0)}),t("el-table-column",{attrs:{"class-name":"rowDropFilter",prop:"operate",label:"操作",align:"right",width:"135"},scopedSlots:e._u([{key:"default",fn:function(s){return[t("div",{staticStyle:{width:"16px",display:"inline-block"}},[t("div",{staticClass:"operate-icon-display"},[s.row.folder&&(e.isOlderVersion?e.havingWritePerm:s.row.havingWritePerm)?t("el-tooltip",{attrs:{placement:"bottom","hide-after":2e3}},[t("span",{attrs:{slot:"content"},slot:"content"},[e._v("修改"+e._s(s.row.methodName))]),t("i",{staticClass:"iconfont icon-operate",staticStyle:{display:"inline-block",cursor:"pointer"},on:{click:function(t){return e.openUpdateFolder(s.row.id,s.row.name,s.row.desc,s.row.methodId,s.row.methodName)}}},[e._v("")])]):e._e(),s.row.folder?e._e():t("el-tooltip",{attrs:{content:"打开模型",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"iconfont icon-operate",staticStyle:{display:"inline-block",cursor:"pointer"},on:{click:function(t){return e.openDesigner(s.row.id)}}},[e._v("")])])],1)]),t("div",{staticStyle:{width:"16px",margin:"0 15px",display:"inline-block"}},[s.row.isFavorite?t("div",{staticStyle:{display:"inline-block"}},[t("el-tooltip",{attrs:{content:"取消收藏",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"iconfont",staticStyle:{cursor:"pointer",color:"#FFB800"},on:{click:function(t){return e.setFavorite("0",s.row.versionId,s.row.id)}}},[e._v("")])])],1):e._e(),s.row.isFavorite?e._e():t("div",{staticClass:"non-favorite-display"},[t("el-tooltip",{attrs:{content:"收藏",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"iconfont icon-operate",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.setFavorite("1",s.row.versionId,s.row.id)}}},[e._v("")])])],1)]),t("div",{staticStyle:{width:"16px",display:"inline-block","margin-right":"5px"}},[t("div",{staticClass:"operate-icon-display"},[t("el-dropdown",{attrs:{"hide-on-click":!0,trigger:"click",placement:"bottom-end"}},[t("span",{staticClass:"el-dropdown-link"},[t("i",{staticClass:"iconfont icon-operate",staticStyle:{cursor:"pointer"}},[e._v("")])]),t("el-dropdown-menu",{staticStyle:{"min-width":"200px"},attrs:{slot:"dropdown"},slot:"dropdown"},[s.row.folder&&(e.isOlderVersion?e.havingWritePerm:s.row.havingWritePerm)?t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.openUpdateFolder(s.row.id,s.row.name,s.row.desc,s.row.methodId,s.row.methodName)}}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{display:"inline-block",width:"20px"}}),t("span",{staticStyle:{"font-size":"12px"}},[e._v("修改"+e._s(s.row.methodName))])])]):e._e(),s.row.folder?e._e():t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.openDesigner(s.row.id)}}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{display:"inline-block",width:"20px"}}),t("span",{staticStyle:{"font-size":"12px"}},[e._v("打开模型")])])]),"default"==s.row.methodId&&(e.isOlderVersion?e.havingWritePerm:s.row.havingWritePerm)||"default"!=s.row.methodId?t("el-dropdown-item",{attrs:{divided:""}}):e._e(),s.row.isFavorite?t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.setFavorite("0",s.row.versionId,s.row.id)}}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{display:"inline-block",width:"20px"}},[t("i",{staticClass:"iconfont",staticStyle:{"font-size":"12px",color:"#FFB800"}},[e._v("")])]),t("span",{staticStyle:{"font-size":"12px"}},[e._v("取消收藏")])])]):t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.setFavorite("1",s.row.versionId,s.row.id)}}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{display:"inline-block",width:"20px"}},[t("i",{staticClass:"iconfont",staticStyle:{"font-size":"12px"}},[e._v("")])]),t("span",{staticStyle:{"font-size":"12px"}},[e._v("收藏")])])]),(e.isOlderVersion?e.havingWritePerm:s.row.havingWritePerm)?t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.moveFile(s.row.id)}}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{display:"inline-block",width:"20px"}}),t("span",{staticStyle:{"font-size":"12px"}},[e._v("移动至")])])]):e._e(),(e.isOlderVersion?e.havingWritePerm:s.row.havingWritePerm)?t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.copyFiles(s.row.id)}}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{display:"inline-block",width:"20px"}}),t("span",{staticStyle:{"font-size":"12px"}},[e._v("创建副本")])])]):e._e(),t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.exportFiles(s.row.id)}}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{display:"inline-block",width:"20px"}}),t("span",{staticStyle:{"font-size":"12px"}},[e._v("导出")])])]),t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.openRepositoryInfo("version")}}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{display:"inline-block",width:"20px"}}),t("span",{staticStyle:{"font-size":"12px"}},[e._v("版本管理")])])]),e.modelConvertInstall&&"process.epc"==s.row.methodId?t("el-dropdown-item",{nativeOn:{click:function(t){return e.openModelConvertDialog(s.row.id,s.row.methodId,"single")}}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{display:"inline-block",width:"20px"}}),t("span",{staticStyle:{"font-size":"12px"}},[e._v("模型转换")])])]):e._e(),!e.subProcess.appInstall||"process.epc"!==s.row.methodId&&"process.flowchart"!==s.row.methodId?e._e():t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.openSubProcessFn(s.row)}}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{display:"inline-block",width:"20px"}}),t("span",{staticStyle:{"font-size":"12px"}},[e._v("生成端到端流程图")])])]),(e.isOlderVersion?e.havingWritePerm:s.row.havingWritePerm)?t("el-dropdown-item",{staticStyle:{height:"30px","line-height":"30px"},attrs:{divided:""},nativeOn:{click:function(t){return e.removeFiles(s.row.id)}}},[t("div",{staticClass:"text-important-color",staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{display:"inline-block",width:"20px"}},[t("i",{staticClass:"iconfont icon-lajitong1",staticStyle:{"font-size":"12px"}})]),t("span",{staticStyle:{"font-size":"12px"}},[e._v("删除模型")])])]):e._e()],1)],1)],1)])]}}])})],1)],1)])])])]),e.isShow?t("el-aside",{style:{width:e.newwidth,height:parseInt(e.mainHeight)-5+"px","background-color":"#FAFAFB",position:"relative",top:"5px"},attrs:{width:"280px"}},[t("div",{on:{click:function(t){return e.newwidthbind()}}},[t("img",{staticStyle:{"border-radius":"4px",border:"1px solid #F2F2F2",width:"20px"},attrs:{src:e.imgPath}}),e._v(" "+e._s(e.newtitle)+" ")]),0==e.newwidthtrue?t("div",{staticStyle:{"border-left":"1px solid #f2f2f2",height:"100%"}},[t("div",[t("div",{staticStyle:{"min-height":"47px","margin-left":"15px","margin-right":"15px"}},[t("div",{staticStyle:{position:"relative","padding-top":"12px"}},[e.currRepositoryDetail.folder?t("div",{staticClass:"icon-div-repository-detail"},[t("i",{staticClass:"awsui-iconfont icon-repository-detail",style:{color:e.currRepositoryDetail.iconColor,"font-size":"32px"},domProps:{innerHTML:e._s(e.currRepositoryDetail.iconCode)}})]):t("div",{staticClass:"icon-div-repository-detail",style:{"background-color":e.currRepositoryDetail.iconColor}},[t("i",{staticClass:"awsui-iconfont icon-repository-detail",domProps:{innerHTML:e._s(e.currRepositoryDetail.iconCode)}})]),t("div",{staticClass:"icon-repository-detail-title"},[t("span",{staticClass:"text-general-color"},[e._v(" "+e._s(e.currRepositoryDetail.name)+" ")]),t("span",{staticClass:"text-second-color",staticStyle:{display:"inline-block","font-size":"12px","-webkit-transform":"scale(0.9)"}},[e._v("(v"+e._s(e.currRepositoryDetail.version)+")")])])])]),t("div",{staticStyle:{height:"140px",margin:"15px",position:"relative",overflow:"hidden"}},["image"==e.currRepositoryDetail.photoType?t("img",{staticStyle:{"border-radius":"4px",border:"1px solid #F2F2F2",width:"238px"},attrs:{src:e.currRepositoryDetail.photo,height:"138px;"}}):e._e(),"icon"==e.currRepositoryDetail.photoType?t("div",{staticStyle:{"background-color":"#fff","border-radius":"4px",border:"1px solid #F2F2F2",width:"238px",height:"138px","text-align":"center","line-height":"138px","vertical-align":"middle"}},[t("i",{staticClass:"awsui-iconfont text-second-color",style:{color:e.currRepositoryDetail.folder?e.currRepositoryDetail.iconColor:"#909399","font-size":"60px"},domProps:{innerHTML:e._s(e.currRepositoryDetail.photo)}})]):e._e(),t("div",{staticClass:"repository-img-halve",style:{background:e.currRepositoryDetail.stateColor}},[t("span",[e._v(e._s(e.currRepositoryDetail.state))])])])]),t("div",[t("ul",[e.currRepositoryDetail.folder&&(e.isOlderVersion?e.havingWritePerm:e.filePerm.havingWritePerm)&&"admin"==e.crrentUserId?t("li",{staticClass:"general-bgcolor-text-hover text-general-color aside-repository-operate-li",on:{click:function(t){return e.openUpdateFolder(e.currRepositoryDetail.id,e.currRepositoryDetail.name,e.currRepositoryDetail.desc,e.currRepositoryDetail.methodId,e.currRepositoryDetail.methodName)}}},[t("i",{staticClass:"iconfont icon-bianji5 aside-repository-operate-li-icon"}),t("span",[e._v("修改"+e._s(e.currRepositoryDetail.methodName))])]):e._e(),e.currRepositoryDetail.folder?e._e():t("li",{staticClass:"general-bgcolor-text-hover text-general-color aside-repository-operate-li",on:{click:function(t){return e.openDesigner(e.currRepositoryDetail.id)}}},[t("i",{staticClass:"iconfont icon-bianji5 aside-repository-operate-li-icon"}),t("span",[e._v("打开文件")])]),e.currRepositoryDetail.folder?e._e():t("li",{staticClass:"general-bgcolor-text-hover text-general-color aside-repository-operate-li",on:{click:function(t){return e.openRepositoryInfo("property")}}},[t("i",{staticClass:"iconfont icon-21file aside-repository-operate-li-icon"}),t("span",[e._v("文件属性")])]),e.currRepositoryDetail.folder?e._e():t("li",{staticClass:"general-bgcolor-text-hover text-general-color aside-repository-operate-li",on:{click:function(t){return e.openRepositoryInfo("version")}}},[t("i",{staticClass:"iconfont icon-jurassic_version aside-repository-operate-li-icon"}),t("span",[e._v("版本管理")])]),"admin"==e.crrentUserId?t("li",{staticClass:"general-bgcolor-text-hover text-general-color aside-repository-operate-li",on:{click:function(t){return e.openRepositoryInfo("upfile")}}},[t("i",{staticClass:"iconfont icon-wendangfujian aside-repository-operate-li-icon"}),t("span",[e._v("附件管理")])]):e._e(),e.outputPrInstall&&e.onlineDocInstall&&"process"==e.category&&!e.currRepositoryDetail.folder&&"process.evc"!=e.currRepositoryDetail.methodId?t("li",{staticClass:"general-bgcolor-text-hover text-general-color aside-repository-operate-li",on:{click:function(t){return e.createOutputPr(e.currRepositoryDetail.id)}}},[t("i",{staticClass:"iconfont icon-ziliaoshouce-xianxing aside-repository-operate-li-icon"}),t("span",[e._v("流程手册")])]):e._e(),"process"==e.category&&!e.currRepositoryDetail.folder&&e.processLinkInstall?t("li",{staticClass:"general-bgcolor-text-hover text-general-color aside-repository-operate-li",on:{click:function(t){return e.eteCascadeAnalysis(e.currRepositoryDetail.id)}}},[t("i",{staticClass:"iconfont icon-liuchengguanli- aside-repository-operate-li-icon"}),t("span",[e._v("串联分析")])]):e._e(),e.currRepositoryDetail.folder?e._e():t("li",{staticClass:"general-bgcolor-text-hover text-general-color aside-repository-operate-li",on:{click:function(t){return e.downloadPng(e.currRepositoryDetail.id)}}},[t("i",{staticClass:"iconfont icon-tupian aside-repository-operate-li-icon"}),t("span",[e._v("下载图片")])]),e.currRepositoryDetail.folder?e._e():t("li",{staticClass:"general-bgcolor-text-hover text-general-color aside-repository-operate-li",on:{click:function(t){return e.exportFiles(e.currRepositoryDetail.id)}}},[t("i",{staticClass:"iconfont icon-daochu aside-repository-operate-li-icon"}),t("span",[e._v("导出文件")])]),"admin"==e.crrentUserId?t("li",{staticClass:"general-bgcolor-text-hover text-general-color aside-repository-operate-li",on:{click:function(t){return e.exportFiles(e.currRepositoryDetail.id)}}},[t("i",{staticClass:"iconfont icon-daochu aside-repository-operate-li-icon"}),t("span",[e._v("导出"+e._s(e.currRepositoryDetail.methodName))])]):e._e(),(e.isOlderVersion?e.havingRemovePerm:e.filePerm.havingRemovePerm)?[e.currRepositoryDetail.folder?e._e():t("li",{staticClass:"general-bgcolor-text-hover text-general-color aside-repository-operate-li",on:{click:function(t){return e.removeFiles(e.currRepositoryDetail.id)}}},[t("i",{staticClass:"iconfont icon-lajitong1 aside-repository-operate-li-icon"}),t("span",[e._v("删除文件")])]),"admin"==e.crrentUserId?t("li",{staticClass:"general-bgcolor-text-hover text-general-color aside-repository-operate-li",on:{click:function(t){return e.removeFiles(e.currRepositoryDetail.id)}}},[t("i",{staticClass:"iconfont icon-lajitong1 aside-repository-operate-li-icon"}),t("span",[e._v("删除"+e._s(e.currRepositoryDetail.methodName))])]):e._e()]:e._e()],2)])]):e._e()]):e._e()],1),t("el-footer",{directives:[{name:"show",rawName:"v-show",value:e.showFooter,expression:"showFooter"}],key:"operateFooter",staticStyle:{height:"45px",padding:"0"},attrs:{id:"operateFooter"}},[t("div",{staticStyle:{"border-top":"1px solid #F2F2F2",height:"44px"}},[t("div",{staticStyle:{padding:"8px 8px 8px 34px"}},[t("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}}),!e.isOlderVersion||e.havingWritePerm?t("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"100px","margin-left":"15px"},attrs:{type:"primary"},on:{click:e.moveFiles}},[e._v("移动至")]):e._e(),!e.isOlderVersion||e.havingWritePerm?t("awsui-button",{staticClass:"button-general-color-reverse",staticStyle:{width:"100px"},attrs:{plain:""},on:{click:function(t){return e.copyFiles()}}},[e._v("创建副本")]):e._e(),e.modelConvertInstall&&e.modelConvertDialog.footerBtnVisible?t("awsui-button",{staticClass:"button-general-color-reverse",staticStyle:{width:"100px"},attrs:{plain:""},on:{click:function(t){return e.openModelConvertDialog("","","batch")}}},[e._v("模型转换")]):e._e(),t("awsui-button",{staticClass:"button-general-color-reverse",staticStyle:{width:"100px"},attrs:{plain:""},on:{click:function(t){return e.exportFiles()}}},[e._v("导出")]),e.subProcess.appInstall&&e.subProcess.footerBtnVisible?t("awsui-button",{staticClass:"button-general-color-reverse",attrs:{plain:""},on:{click:function(t){return e.openSubProcessFn(null)}}},[e._v("生成端到端流程图")]):e._e(),(e.isOlderVersion?e.havingRemovePerm:"itsystem"!=e.category)?t("awsui-button",{staticClass:"button-general-color-reverse2",staticStyle:{width:"100px"},attrs:{plain:""},on:{click:function(t){return e.removeFiles()}}},[e._v("删除")]):e._e(),t("awsui-button",{staticClass:"button-general-color-reverse3",staticStyle:{width:"100px"},attrs:{plain:""},on:{click:e.closeFooter}},[e._v("取消")])],1)])]),t("el-container",[t("RepositoryInfo",{ref:"repositoryInfo"})],1),t("el-container",{attrs:{id:"repositoryListFolderDlg"}},[t("el-dialog",{attrs:{title:"修改文件夹",visible:e.folderDialog.dialogVisible,"modal-append-to-body":!1,"close-on-click-modal":!1,"close-on-press-escape":!0,"before-close":e.handleCloseFolder,width:"600px"},on:{"update:visible":function(t){return e.$set(e.folderDialog,"dialogVisible",t)}}},[t("div",{staticStyle:{border:"1px solid #F2F2F2",padding:"0px 10px 10px 10px"}},[t("awsui-form",{ref:"folderForm",attrs:{model:e.folderDialog.folderForm,rules:e.folderDialog.rules,"label-position":"top"}},[t("awsui-form-item",{attrs:{label:"名称",prop:"name"}},[t("awsui-input",{model:{value:e.folderDialog.folderForm.name,callback:function(t){e.$set(e.folderDialog.folderForm,"name",t)},expression:"folderDialog.folderForm.name"}})],1),t("awsui-form-item",{attrs:{label:"描述",prop:"desc"}},[t("awsui-input",{attrs:{type:"textarea"},model:{value:e.folderDialog.folderForm.desc,callback:function(t){e.$set(e.folderDialog.folderForm,"desc",t)},expression:"folderDialog.folderForm.desc"}})],1)],1)],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{staticClass:"button-general-color",attrs:{type:"primary"},on:{click:function(t){return e.updateFolderSave("folderForm")}}},[e._v("确定")]),t("awsui-button",{on:{click:e.closeFolderDlg}},[e._v("取消")])],1)]),t("awsui-dialog",{attrs:{title:e.customFolderDialog.title,visible:e.customFolderDialog.dialogVisible,"modal-append-to-body":!1,"close-on-click-modal":!1,"close-on-press-escape":!0,border:!1,width:"800px"},on:{"update:visible":function(t){return e.$set(e.customFolderDialog,"dialogVisible",t)}}},[t("div",[e.customFolderDialog.dialogVisible?t("repository-info-property",{attrs:{id:e.customFolderDialog.id,repositoryRefresh:e.repositoryRefresh}}):e._e()],1)])],1),t("PALRepositoryTree",{ref:"moveRepository",attrs:{visible:e.moveRepository.visible,wsId:e.moveRepository.wsId,teamId:e.moveRepository.teamId,categorys:e.moveRepository.categorys,multiple:!1,title:e.moveRepository.title},on:{"update:visible":function(t){return e.$set(e.moveRepository,"visible",t)},cancel:function(t){e.moveRepository.visible=!1},getResult:e.saveMoveRepositoryResult}}),t("batch-create",{ref:"batchCreate",attrs:{visible:e.batchCreate.visible,methodCategory:e.uuid},on:{"update:visible":function(t){return e.$set(e.batchCreate,"visible",t)},getResult:e.closeBatchCreateFn}}),t("batch-replace",{ref:e.batchReplace,attrs:{visible:e.batchReplace.visible,methodCategory:e.uuid},on:{"update:visible":function(t){return e.$set(e.batchReplace,"visible",t)},getResult:e.closeBatchReplaceFn}}),t("sub-process",{ref:"subProcessRef",attrs:{visible:e.subProcess.visible,"default-tags":e.subProcess.tags},on:{"update:visible":function(t){return e.$set(e.subProcess,"visible",t)},getResult:e.closeSubProcessFn}}),t("el-dialog",{attrs:{"custom-class":"model-convert-dialog",width:"30%","close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,visible:e.modelConvertDialog.visible,title:e.modelConvertDialog.title},on:{"update:visible":function(t){return e.$set(e.modelConvertDialog,"visible",t)}}},[e.modelConvertDialog.isSameName?t("div",[t("span",{domProps:{innerHTML:e._s(e.modelConvertDialog.content)}})]):t("div",{staticClass:"model-convert-dialog-body"},[t("div",[e._v("请选择要转换的模型类型:")]),t("el-radio-group",{model:{value:e.modelConvertDialog.checkTargetMethod,callback:function(t){e.$set(e.modelConvertDialog,"checkTargetMethod",t)},expression:"modelConvertDialog.checkTargetMethod"}},e._l(e.modelConvertDialog.targetMethodArr,(function(s){return t("el-radio",{key:s.value,attrs:{disabled:s.disabled,label:s.value}},[e._v(" "+e._s(s.text)+" ")])})),1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:e.clearModelConvertDialog}},[e._v("取 消")]),e.modelConvertDialog.isSameName?t("el-button",{attrs:{size:"small",type:"primary",loading:e.modelConvertDialog.loading},on:{click:function(t){return e.convertFn(e.modelConvertDialog.type)}}},[e._v("转 换")]):t("el-button",{attrs:{size:"small",type:"primary",loading:e.modelConvertDialog.loading},on:{click:e.modelConvertFn}},[e._v("转 换")])],1)])],1)},Q=[],W=function(){var e=this,t=e._self._c;return t("el-container",{attrs:{id:"repositoryInfo"}},[t("awsui-dialog",{attrs:{border:!1,visible:e.dialogVisible,width:"800px","close-on-click-modal":!1,"before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[[t("el-tabs",{on:{"tab-click":e.changeRepositoryType},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},["default"!=this.methodId?[t("el-tab-pane",{attrs:{label:"文件属性",name:"property"}}),t("el-tab-pane",{attrs:{label:"版本管理",name:"version"}})]:e._e(),t("el-tab-pane",{attrs:{label:"附件管理",name:"upfile"}})],2)],t(e.repositoryInfoType,{ref:"component",tag:"component",attrs:{id:e.id,versionId:e.versionId,isUse:e.isUse,isPublish:e.isPublish,isStop:e.isStop,isApproval:e.isApproval,repositoryRefresh:e.repositoryRefresh}})],2)],1)},J=[],K=function(){var e=this,t=e._self._c;return t("el-container",[t("div",{staticStyle:{height:"500px",width:"100%"},attrs:{id:"repositoryInfoVersion"}},[e.tableData.length>0?t("el-table",{staticStyle:{width:"100%"},attrs:{id:"table",data:e.tableData,"header-cell-class-name":"header-cell-row",height:"500px"}},[t("el-table-column",{attrs:{prop:"versionNo",label:"版本号",align:"center",width:"70"}}),t("el-table-column",{attrs:{prop:"name",label:"文件名称","min-width":"180"}}),t("el-table-column",{attrs:{prop:"address",align:"center",label:"创建信息","min-width":"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.createUser)+"/"+e._s(t.row.createDate)+" ")]}}],null,!1,811821338)}),e.isCorrelatebpms?[t("el-table-column",{attrs:{prop:"state",label:"PAL状态",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(s){return t("span",{style:{color:s.row.stateColor}},[e._v(" "+e._s(s.row.state)+" ")])}}],null,!1,2272571482)}),e.isPalManage?[t("el-table-column",{attrs:{prop:"state",label:"在BPM运行",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(s){return t("span",{},[e._v(" "+e._s(s.row.isCorrelate?"是":"否")+" ")])}}],null,!1,3455484328)})]:[t("el-table-column",{attrs:{prop:"state",label:"BPM状态",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(s){return t("span",{style:{color:s.row.bpmStateColor}},[e._v(" "+e._s(s.row.bpmState)+" ")])}}],null,!1,2058353434)})]]:[t("el-table-column",{attrs:{prop:"state",label:"状态",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(s){return t("span",{style:{color:s.row.stateColor}},[e._v(" "+e._s(s.row.state)+" ")])}}],null,!1,2272571482)})],(e.isOlderVersion?e.havingVersionManagePerm:e.filePerm.havingVersionManagePerm)&&e.tableData.length>1?t("el-table-column",{attrs:{prop:"name",label:"使用",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(s){return[t("el-switch",{staticStyle:{display:"block"},attrs:{"active-color":"#4E7FF9","inactive-color":"#E2E2E2"},on:{change:function(t){return e.changeRepositoryUseStatus(s.row.id,s.row.isUse)}},model:{value:s.row.isUse,callback:function(t){e.$set(s.row,"isUse",t)},expression:"scope.row.isUse"}})]}}],null,!1,2707523121)}):e._e(),t("el-table-column",{attrs:{prop:"address",align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(s){return[(e.isOlderVersion?e.havingWritePerm:e.filePerm.havingWritePerm)?t("i",{staticClass:"iconfont icon-fuzhi operate-icon-display",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.createNewVersion(s.row.id,s.row.versionNo)}}}):e._e(),!(e.isOlderVersion?e.havingRemovePerm:e.filePerm.havingRemovePerm)||e.isCorrelatebpms||s.row.isUse||s.row.isPublish||s.row.isApproval?e._e():t("i",{staticClass:"iconfont icon-lajitong1 operate-icon-display",staticStyle:{cursor:"pointer","padding-left":"5px"},on:{click:function(t){return e.deleteRepository(s.row.id,s.row.versionNo)}}})]}}],null,!1,2895283361)})],2):e._e()],1),t("el-dialog",{attrs:{id:"addNewVersionDialog",title:"提示",width:"500px",visible:e.addNewVersionVisible,top:"45vh","modal-append-to-body":!0,"close-on-click-modal":!1,"append-to-body":!0,"destroy-on-close":""},on:{"update:visible":function(t){e.addNewVersionVisible=t}}},[t("span",[e._v("请选择以"+e._s(e.currentVersion)+"版本为模板创建的新文件版本号:")]),t("br"),t("el-radio-group",{staticStyle:{"margin-top":"10px"},model:{value:e.isLargeIteration,callback:function(t){e.isLargeIteration=t},expression:"isLargeIteration"}},[t("el-radio",{attrs:{label:!0}},[e._v(e._s(e.largeVersion))]),t("br"),t("el-radio",{staticStyle:{"margin-top":"5px"},attrs:{label:!1}},[e._v(e._s(e.smallVersion))])],1),t("span",{attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{staticClass:"button-general-color",attrs:{type:"primary"},on:{click:e.confirmAddVersion}},[e._v("确定")]),t("awsui-button",{on:{click:e.cancelAddVersion}},[e._v("取消")])],1)],1)],1)},Z=[],G={name:"RepositoryInfoVersion",props:{id:{type:String,default:""},versionId:{type:String,default:""},repositoryRefresh:{type:Function,default:null}},data(){return{userId:"",tableData:[],isCorrelatebpms:!1,processDefId:"",isPalManage:!1,havingWritePerm:!1,havingRemovePerm:!1,havingVersionManagePerm:!1,addNewVersionVisible:!1,currentVersion:"",largeVersion:"",smallVersion:"",currentId:"",isLargeIteration:!0,isOlderVersion:!0,filePerm:{havingRemovePerm:!1,havingVersionManagePerm:!1,havingWritePerm:!1}}},created(){this.userId=this.id,this.initData()},methods:{initData(){const e=this,t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_repository_designer_version_manager_data",id:e.userId,wsId:e.$store.getters.getWsIdFn,teamId:e.$store.getters.getTeamIdFn}};p["a"].post(t).then((function(t){if("ok"==t.result){e.isCorrelatebpms=t.data.isCorrelatebpms,e.processDefId=t.data.processDefId,e.isPalManage=t.data.isPalManage,e.havingWritePerm=t.data.havingWritePerm,e.havingRemovePerm=t.data.havingRemovePerm,e.havingVersionManagePerm=t.data.havingVersionManagePerm;for(let e=0;e<t.data.tableData.length;e++)t.data.tableData[e].isApproval?(t.data.tableData[e].stateColor="#1AA477",t.data.tableData[e].state="审批中",t.data.tableData[e].stateCode="approval"):t.data.tableData[e].isStop?(t.data.tableData[e].stateColor="#D9001B",t.data.tableData[e].state="已停用",t.data.tableData[e].stateCode="stop"):t.data.tableData[e].isPublish?(t.data.tableData[e].stateColor="#1AA477",t.data.tableData[e].state="已发布",t.data.tableData[e].stateCode="publish"):t.data.tableData[e].isUse?(t.data.tableData[e].stateColor="#4E7FF9",t.data.tableData[e].state="设计中",t.data.tableData[e].stateCode="use"):(t.data.tableData[e].stateColor="",t.data.tableData[e].state="设计",t.data.tableData[e].stateCode="designer");e.tableData=t.data.tableData,e.isOlderVersion=t.data.isOlderVersion,e.filePerm.havingWritePerm=t.data.havingWritePerm,e.filePerm.havingRemovePerm=t.data.havingRemovePerm,e.filePerm.havingVersionManagePerm=t.data.havingVersionManagePerm}else e.$message.error(t.msg)})).catch(e=>{console.log(e)})},changeRepositoryUseStatus(e,t){const s=this;if(t){let t;for(var i in s.tableData)if(s.tableData[i].isUse&&s.tableData[i].id!=e){t=s.tableData[i].id;break}const o=s.$loading({lock:!0,text:"正在切换更新版本...",spinner:"el-icon-loading",background:"hsla(0,0%,100%,.9)"}),a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_repository_designer_version_manager_use",id:e,wsId:s.$store.getters.getWsIdFn,teamId:s.$store.getters.getTeamIdFn}};p["a"].post(a).then((function(e){"ok"==e.result?(s.$message({message:"切换成功",type:"success"}),s.userId=e.data.id,s.initData(),o.close(),s.repositoryRefresh&&t&&s.repositoryRefresh(t)):(o.close(),s.$message(e.msg))})).catch(e=>{console.log(e)})}else for(var i in s.tableData)s.tableData[i].id==e&&(s.tableData[i].isUse=!0)},createNewVersion(e,t){let s,i,o=[],a=[],r=[];s=parseInt(t.match(/\d+\.\d+/g)[0]),this.tableData.forEach(e=>{o.push(e.versionNo.match(/\d+\.\d+/g)[0].split("."))}),o.forEach(e=>{a.push(parseInt(e[0])),e[0]==s&&r.push(parseInt(e[1]))}),i=Math.max(...r)+1,this.largeVersion="V"+(Math.max(...a)+1).toFixed(1),this.smallVersion="V"+s+"."+i,this.addNewVersionVisible=!0,this.currentVersion=t,this.currentId=e},confirmAddVersion(){const e=this.$loading({lock:!0,text:"正在创建新版本...",spinner:"el-icon-loading",background:"hsla(0,0%,100%,.9)"}),t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_repository_designer_version_manager_create",id:this.currentId,wsId:this.$store.getters.getWsIdFn,teamId:this.$store.getters.getTeamIdFn,isLargeIteration:this.isLargeIteration}};p["a"].post(t).then(t=>{"ok"==t.result?(this.$message({message:"创建成功",type:"success"}),this.initData(),e.close(),this.isLargeIteration=!0,this.addNewVersionVisible=!1):(e.close(),this.$message(t.msg))}).catch(e=>{console.log(e)})},cancelAddVersion(){this.isLargeIteration=!0,this.addNewVersionVisible=!1},deleteRepository(e,t){const s=this;s.$confirm("确定要删除吗?","提示",{confirmButtonText:"确定",confirmButtonClass:"button-general-color",cancelButtonText:"取消",type:"warning"}).then(()=>{const t=s.$loading({lock:!0,text:"正在放入回收站...",spinner:"el-icon-loading",background:"hsla(0,0%,100%,.9)"}),i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_repository_designer_version_manager_delete",id:e,wsId:s.$store.getters.getWsIdFn,teamId:s.$store.getters.getTeamIdFn}};p["a"].post(i).then((function(e){"ok"==e.result?(s.$message({message:"已放入回收站",type:"success"}),s.initData(),t.close()):(t.close(),s.$message(e.msg))})).catch(e=>{console.log(e)})}).catch(()=>{})}}},Y=G,X=(s("41ce"),Object(g["a"])(Y,K,Z,!1,null,"1b41c496",null)),ee=X.exports,te=function(){var e=this,t=e._self._c;return t("el-container",[t("div",{staticStyle:{height:"500px",width:"100%"},attrs:{id:"repositoryInfoUpfile"}},[!e.havingWritePerm||e.isPublish||e.isStop||e.isApproval?e._e():t("div",{staticStyle:{height:"40px"}},[t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","hide-after":5e3}},[t("div",{attrs:{slot:"content"},slot:"content"},[e._v("附件格式支持:"),t("br"),e._v("jpg, jpeg, gif, png, bmp, pdf, doc, docx, ppt, pptx, xls, xlsx, txt, mp3, mp4, avi, mpeg, flv, swf, wmv")]),t("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"130px"},attrs:{type:"primary",disabled:e.isPublish||e.isStop||e.isApproval},on:{click:function(t){return e.openFileSelect()}}},[e._v("上传附件")])],1),t("PALUpload",{ref:"orgUpload",staticClass:"upload-demo",staticStyle:{width:"100%"},attrs:{appId:"com.actionsoft.apps.coe.pal",repositoryName:e.repositoryName,multiple:!0,groupValue:e.groupValue,fileValue:e.id,"show-file-list":!1,"on-success":e.uploadSuccess,"before-upload":e.beforeUpload,accept:".jpg,.jpeg,.gif,.png,.bmp,.pdf,.doc,.docx,.ppt,.pptx,.xls,.xlsx,.txt,.mp3,.mp4,.avi,.mpeg,.flv,.swf,.wmv","file-list":e.fileList}},[t("div",{staticStyle:{display:"none"}},[t("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"130px"},attrs:{id:"selectFileButton",type:"primary"}},[e._v("Excel文件上传")])],1)])],1),t("div",{staticStyle:{height:"460px",width:"100%",overflow:"auto"}},[t("div",[t("el-table",{staticStyle:{width:"100%"},attrs:{"show-header":!1,data:e.fileTable}},[t("el-table-column",{attrs:{prop:"name",label:"名称","min-width":"300"}}),e.isHighSecurity?t("el-table-column",{attrs:{prop:"securityLevel",label:"文件密级","min-width":"50"}}):e._e(),t("el-table-column",{attrs:{prop:"operate",label:"操作",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(s){return[e.onlineDoc?t("el-tooltip",{attrs:{content:"预览",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"iconfont operate-icon-display",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.readFile(s.row.id)}}},[e._v("")])]):e._e(),t("el-tooltip",{attrs:{content:"下载",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"iconfont operate-icon-display",staticStyle:{cursor:"pointer","padding-left":"15px"},on:{click:function(t){return e.downloadFile(s.row.url)}}},[e._v("")])]),!e.havingRemovePerm||e.isPublish||e.isStop||e.isApproval?e._e():t("el-tooltip",{attrs:{content:"删除",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"iconfont icon-lajitong1 operate-icon-display",staticStyle:{cursor:"pointer","padding-left":"15px"},on:{click:function(t){return e.deleteFile(s.row.name,s.row.id)}}})])]}}])})],1)],1),t("div",{staticStyle:{height:"25px","line-height":"25px","vertical-align":"center",margin:"30px 30px 15px 0px","border-left":"3px solid #4E7FF9"}},[t("p",{staticStyle:{"padding-left":"5px"}},[t("b",[e._v("关联附件")])])]),t("div",[t("el-table",{staticStyle:{width:"100%"},attrs:{"show-header":!1,data:e.relationFileTable}},[t("el-table-column",{attrs:{prop:"name",label:"名称","min-width":"300"}}),e.isHighSecurity?t("el-table-column",{attrs:{prop:"securityLevel",label:"文件密级","min-width":"50"}}):e._e(),t("el-table-column",{attrs:{prop:"operate",label:"操作",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(s){return[t("el-tooltip",{attrs:{content:"预览",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"iconfont operate-icon-display",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.readFile(s.row.id)}}},[e._v("")])]),t("el-tooltip",{attrs:{content:"下载",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"iconfont operate-icon-display",staticStyle:{cursor:"pointer","padding-left":"15px"},on:{click:function(t){return e.downloadFile(s.row.url)}}},[e._v("")])])]}}])})],1)],1)])]),t("div",[t("awsui-dialog",{attrs:{title:"密级标定",visible:e.securityVisible,border:!1,"append-to-body":"",width:"500px"},on:{"update:visible":function(t){e.securityVisible=t}}},[t("div",{staticStyle:{"max-height":"500px","overflow-y":"auto"}},e._l(e.securityFileList,(function(s){return t("awsui-form",{key:s.uid,ref:s.uid,refInFor:!0,attrs:{"label-width":"200px",id:"securityDialog",rules:e.securityRules,model:s}},[t("awsui-form-item",{attrs:{label:s.name,prop:"securityLevel"}},[t("awsui-select",{staticStyle:{width:"70%"},attrs:{options:e.securityOptions},model:{value:s.securityLevel,callback:function(t){e.$set(s,"securityLevel",t)},expression:"file.securityLevel"}})],1)],1)})),1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{attrs:{type:"primary"},on:{click:e.uploadServer}},[e._v("确定")]),t("awsui-button",{on:{click:function(t){e.securityVisible=!1}}},[e._v("取 消")])],1)])],1)])},se=[],ie={name:"RepositoryInfoUpfile",components:{PALUpload:c["a"]},props:["id","versionId","isUse","isPublish","isStop","isApproval"],data(){var e=(e,t,s)=>{void 0===t?s(new Error("请选择文件密级")):s()};return{fileTable:[],relationFileTable:[],fileList:[],groupValue:"file",onlineDoc:!0,havingWritePerm:!1,havingRemovePerm:!1,havingVersionManagePerm:!1,isHighSecurity:!1,isFileSecurity:!1,securityList:{},repositoryName:"COE_Upfile",securityVisible:!1,securityFileList:[],securityOptions:[],securityRules:{securityLevel:[{required:!0,trigger:"change",validator:e,type:"number"}]},validateFlag:!0}},created(){this.initData(),this.initRelationData()},watch:{securityVisible(e,t){e||this.securityFileList.splice(0,this.securityFileList.length)}},methods:{initData(){const e=this,t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_upfile_load",pl_uuid:e.id,type:"file",wsId:e.$store.getters.getWsIdFn,teamId:e.$store.getters.getTeamIdFn}};p["a"].post(t).then((function(t){if("ok"==t.result){e.havingWritePerm=t.data.havingWritePerm,e.havingRemovePerm=t.data.havingRemovePerm,e.havingVersionManagePerm=t.data.havingVersionManagePerm,e.isHighSecurity=t.data.isHighSecurity,e.isFileSecurity=t.data.isFileSecurity,e.securityList=t.data.securityList,t.data.isHighSecurity&&(e.repositoryName="tmp");const s=t.data.list;let i=[];for(let o=0;o<s.length;o++){const a=s[o],r={id:a.uuid,name:a.fileName,url:a.url,securityLevel:e.isHighSecurity?t.data.securityList[a.securityLevel]:""};i.push(r)}e.fileTable=i}})).catch(e=>{console.log(e)})},initRelationData(){const e=this,t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_relation_upfile_load",pl_uuid:e.id,type:"file"}};p["a"].post(t).then((function(t){if("ok"==t.result){e.isHighSecurity=t.data.isHighSecurity,e.securityList=t.data.securityList,t.data.isHighSecurity&&(e.repositoryName="tmp");const s=t.data.list;let i=[];for(let t=0;t<s.length;t++){const o=s[t],a={id:o.uuid,name:o.fileName,url:o.url,securityLevel:e.isHighSecurity?e.securityList[o.securityLevel]:""};i.push(a)}e.relationFileTable=i}})).catch(e=>{console.log(e)})},openFileSelect(){let e=this;if(e.isHighSecurity&&e.isFileSecurity){const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_file_permission_query",uuid:e.id}};p["a"].post(t).then((function(t){"ok"==t.result?document.getElementById("selectFileButton").click():e.$message.error(t.msg)})).catch(t=>{console.log(t),e.$message.error(t.msg)})}else document.getElementById("selectFileButton").click()},uploadSuccess(e,t,s){if(this.isHighSecurity)this.securityVisible||(this.securityVisible=!0),0==this.securityOptions.length&&Object.keys(this.securityList).map(e=>{let t={value:e,label:this.securityList[e]};this.securityOptions.push(t)}),this.securityFileList.push(t);else{const e=this,s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_upfile_add",pl_uuid:e.id,shape_uuid:"",type:"file",fileName:t.name,download:1}};p["a"].post(s).then((function(s){"ok"==s.result?(e.$message({message:"["+t.name+"]上传成功",type:"success"}),e.initData()):e.$message.error("["+t.name+"]上传失败")})).catch(e=>{console.log(e)})}},uploadServer(){this.validateFlag=!0;for(let e=0;e<this.securityFileList.length;e++){let t=this.securityFileList[e];this.$refs[t.uid][0].validate(e=>{if(!e)return this.validateFlag=!1,!1})}if(this.validateFlag){for(let e=0;e<this.securityFileList.length;e++){let t=this.securityFileList[e];const s=this,i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_upfile_add",pl_uuid:s.id,shape_uuid:"",type:"file",fileName:t.name,download:1,securityLevel:void 0==t.securityLevel?"":t.securityLevel}};p["a"].post(i).then((function(e){"ok"==e.result?(s.$message({message:"["+t.name+"]上传成功",type:"success"}),s.initData()):s.$message.error("["+t.name+"]上传失败")})).catch(e=>{console.log(e)})}this.securityVisible=!1}},beforeUpload(e){if(e.size>524288e3)return this.$message({message:"文件["+e.name+"]不允许大于500M,上传失败",type:"warning"}),!1;for(let t=0;t<this.fileTable.length;t++){const s=this.fileTable[t];if(s.name==e.name)return this.$message({message:"文件["+e.name+"]已存在,不允许重复上传",type:"warning"}),!1}},readFile(e){const t=this,s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_upfile_read",uuid:e}};p["a"].post(s).then((function(e){"ok"==e.result?window.open(e.data.url):t.$message.error(e.msg)})).catch(e=>{console.log(e)})},downloadFile(e){window.open(e)},deleteFile(e,t){this.$confirm("确定要删除吗?","提示",{confirmButtonText:"确定",confirmButtonClass:"button-general-color",cancelButtonText:"取消",type:"warning"}).then(()=>{const e=this,s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_upfile_del",uuid:t}};p["a"].post(s).then((function(t){"ok"==t.result?(e.$message({message:"删除成功",type:"success"}),e.initData()):e.$message.error("删除失败")})).catch(e=>{console.log(e)})}).catch(()=>{})}}},oe=ie,ae=(s("490e"),Object(g["a"])(oe,te,se,!1,null,"312f912b",null)),re=ae.exports,le={name:"RepositoryInfo",components:{RepositoryInfoProperty:B,RepositoryInfoVersion:ee,RepositoryInfoUpfile:re},data(){return{dialogVisible:!1,id:"",versionId:"",type:"",activeName:"",repositoryInfoType:"",isUse:!1,isPublish:!1,isStop:!1,isApproval:!1,methodId:"",parent:void 0}},methods:{clearParam(){this.dialogVisible=!1,this.id="",this.versionId="",this.type="",this.repositoryInfoType="",this.isUse=!1,this.isPublish=!1,this.isStop=!1,this.isApproval=!1,this.methodId="",this.parent=void 0},openRepositoryInfoDlg(e,t,s,i,o,a,r,l,n){this.id=t,this.versionId=s,this.type=i,this.activeName=i,this.initInfoChildType(i),this.dialogVisible=!0,this.isUse=o,this.isPublish=a,this.isStop=r,this.isApproval=l,this.methodId=n,this.parent=e},initInfoChildType(e){this.repositoryInfoType="property"==e?"RepositoryInfoProperty":"version"==e?"RepositoryInfoVersion":"upfile"==e?"RepositoryInfoUpfile":""},repositoryRefresh(e){this.parent&&(this.parent.refreshTreeParentNode&&this.parent.refreshTreeParentNode(e),this.parent.initData())},handleClose(e){this.clearParam(),e()},changeRepositoryType(e,t){this.initInfoChildType(e.name)}}},ne=le,de=(s("8005"),Object(g["a"])(ne,W,J,!1,null,"0995ff66",null)),ce=de.exports,pe=function(){var e=this,t=e._self._c;return t("el-container",[t("el-dialog",{attrs:{id:"palRepositoryTree",title:e.title,visible:e.dialogVisible,"destroy-on-close":!0,width:e.width,"modal-append-to-body":!1,"append-to-body":!0,"close-on-click-modal":!1,"before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[e.refresh?[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{"element-loading-text":"拼命加载中"}},[t("el-autocomplete",{staticStyle:{width:"100%"},attrs:{size:"small","fetch-suggestions":e.treeSearch,"suffix-icon":"el-icon-search",placeholder:"快速查询","trigger-on-focus":!1},on:{select:e.treeSearchSelect},scopedSlots:e._u([{key:"default",fn:function({item:s}){return[t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start"}},[t("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(s.pathName))]),t("span",[e._v(e._s(s.name))])])]}}],null,!1,3987291353),model:{value:e.treeSearchKey,callback:function(t){e.treeSearchKey=t},expression:"treeSearchKey"}}),t("div",{staticStyle:{height:"300px",overflow:"auto",border:"1px solid #f2f2f2"}},[t("div",{staticClass:"tree"},[t("el-tree",{ref:"tree",attrs:{props:e.treeProps,"expand-on-click-node":!1,"highlight-current":!0,"show-checkbox":e.multiple,"node-key":"id",lazy:"",load:e.loadNode},on:{"node-click":e.openNode,"node-expand":e.expandNode,"node-collapse":e.closeNode},scopedSlots:e._u([{key:"default",fn:function({node:s,data:i}){return t("span",{},[t("i",{staticClass:"awsui-iconfont tree-content-icon tree-content-icon-padding",style:{color:s.data.icon.color},domProps:{innerHTML:e._s(s.data.icon.icon)}}),t("span",[e._v(e._s(s.label))])])}}],null,!1,52448956)})],1)])],1)]:e._e(),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{staticClass:"button-general-color",attrs:{type:"primary"},on:{click:e.submit}},[e._v("确定")]),t("awsui-button",{on:{click:e.cancel}},[e._v("取消")])],1)],2)],1)},he=[],ue={name:"PALRepositoryTree",props:{visible:{type:Boolean,default:!1},wsId:{type:String,default:"",required:!0},teamId:{type:String,default:""},categorys:{type:String,default:""},rootId:{type:String,default:""},multiple:{type:Boolean,default:!1},title:{type:String,default:"请选择"},selected:{type:Array,default:function(){return[]}}},data(){return{refresh:!1,dialogVisible:!1,loading:!1,searchKey:"",treeSearchKey:"",timeout:null,pid:"",width:"500px",treeProps:{label:"name",isLeaf:"leaf"}}},methods:{handleClose(e){this.closeDlalog("cancel"),e()},cancel(){this.closeDlalog("cancel"),this.dialogVisible=!1},submit(){this.closeDlalog("save"),this.dialogVisible=!1},closeDlalog(e){if("save"==e){let e=[];if(this.checkbox)e=this.$refs.tree.getCheckedNodes();else{const t=this.$refs.tree.getCurrentNode();null!=t&&e.push(t)}this.$emit("getResult",e)}else this.$emit("cancel")},handleNodeClick(e){console.log(e)},openNode(e,t,s){},treeSearchSelect(e){this.queryTreeByIdAndPath(e.id,e.versionId,e.path)},treeSearch(e,t){const s=this;if(void 0!=e&&""!=e.trim()){const i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_repository_tree_component_search",wsId:s.wsId,teamId:s.teamId,categorys:s.categorys,rootId:s.rootId,name:e}};p["a"].post(i).then((function(e){"ok"==e.result&&e.data.length>0?(clearTimeout(s.timeout),s.timeout=setTimeout(()=>{t(e.data)},3e3*Math.random())):clearTimeout(s.timeout)})).catch(e=>{console.log(e)})}else clearTimeout(s.timeout)},queryTreeByIdAndPath(e,t,s){const i=this,o=i.$refs.tree,a=s.split(",");let r=1;for(let l=0;l<a.length;l++)l>0&&null!=o.getNode(a[l-1])&&(setTimeout(i._expandNode(o,a[l-1]),300*r),r++);setTimeout((function(){null!=o.getNode(t)&&o.setCurrentKey(t)}),300*r)},_expandNode(e,t){return function(){e.getNode(t).expand()}},loadNode(e,t){const s=this;s.loading=!0;const i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_repository_tree_component_subjson",wsId:s.wsId,teamId:s.teamId,categorys:s.categorys,pid:""}};0===e.level?i.data.pid=s.pid:i.data.pid=e.data.id,p["a"].post(i).then((function(i){if(t(i.data),s.loading=!1,0==e.level&&i.data.length>0){const e=s.$refs.tree;e.getNode(i.data[0].id).expand(),setTimeout((function(){const t=e.getNode(i.data[0].id).childNodes[0];null!=t&&t.expand()}),500)}})).catch(e=>{console.log(e)})},expandNode(e,t,s){},closeNode(e,t,s){t.childNodes=[],t.loaded=!1},refreshNode(e){if(void 0==e){const e=this.$refs.tree.getCurrentNode();if(null!=e){void 0!=this.$refs.tree.store.nodesMap[e.id]&&(this.$refs.tree.store.nodesMap[e.id].expanded=!1);const t=this.$refs.tree.getNode(e.id);this.closeNode(null,t,null),t.expand()}}else{void 0!=this.$refs.tree.store.nodesMap[e]&&(this.$refs.tree.store.nodesMap[e].expanded=!1);const t=this.$refs.tree.getNode(e);null!=t&&(this.closeNode(null,t,null),t.expand())}}},watch:{visible(e){this.dialogVisible=e,e?(this.pid=this.rootId,this.refresh=!0):this.refresh=!1}}},ge=ue,me=(s("1d6e"),Object(g["a"])(ge,pe,he,!1,null,"07ba25f0",null)),fe=me.exports,ye=s("2480"),ve=function(){var e=this,t=e._self._c;return t("awsui-dialog",{attrs:{title:"批量创建",height:"700px",width:"900px",visible:e.dialogVisible,border:!1,"before-close":e.handleClose,"destroy-on-close":!0},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("iframe",{staticStyle:{border:"0px",width:"100%",height:"695px"},attrs:{id:"batchCreateIframe",name:"batchCreateIframe",src:e.src}})])},be=[],we={name:"create",props:{visible:{type:Boolean,default:!1},methodCategory:{type:String,default:""}},data(){return{dialogVisible:!1,src:wHref+"?sid="+this.$store.state.sessionId+"&mainPage=create&cmd=com.actionsoft.apps.coe.pal.batch_main_page&methodCategory="+this.methodCategory+"&wsId="+this.$store.getters.getWsIdFn+"&teamId="+this.$store.getters.getTeamIdFn}},created(){const e=this;window.closeBatchCreateFn=function(t){e.closeDlalog(),e.dialogVisible=!1}},methods:{handleClose(e){this.closeDlalog(),e()},closeDlalog(){this.$emit("getResult")}},watch:{visible(e){this.dialogVisible=e}}},xe=we,Ce=Object(g["a"])(xe,ve,be,!1,null,"43ccbcf0",null),_e=Ce.exports,Ie=function(){var e=this,t=e._self._c;return t("awsui-dialog",{attrs:{title:"批量替换",height:"700px",width:"900px",visible:e.dialogVisible,border:!1,"before-close":e.handleClose,"destroy-on-close":!0},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("iframe",{staticStyle:{border:"0px",width:"100%",height:"695px"},attrs:{id:"batchRelplaceIframe",name:"batchRelplaceIframe",src:e.src}})])},Se=[],ke={name:"replace",props:{visible:{type:Boolean,default:!1},methodCategory:{type:String,default:""}},data(){return{dialogVisible:!1,src:wHref+"?sid="+this.$store.state.sessionId+"&mainPage=replace&cmd=com.actionsoft.apps.coe.pal.batch_main_page&methodCategory="+this.methodCategory+"&wsId="+this.$store.getters.getWsIdFn+"&teamId="+this.$store.getters.getTeamIdFn}},created(){const e=this;window.closeBatchReplaceFn=function(t){e.closeDlalog(),e.dialogVisible=!1}},methods:{handleClose(e){this.closeDlalog(),e()},closeDlalog(){this.$emit("getResult")}},watch:{visible(e){this.dialogVisible=e}}},De=ke,Fe=Object(g["a"])(De,Ie,Se,!1,null,"e4f255d0",null),Pe=Fe.exports,Ne=function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"生成端到端流程图",height:"350px",width:"800px",visible:e.dialogVisible,border:!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"sub-process-dialog-content",staticStyle:{margin:"25px 25px"}},[t("el-form",{attrs:{"label-width":"95px","label-position":"left"}},[t("el-form-item",{attrs:{label:"位置",required:""}},[t("el-input",{attrs:{disabled:"",size:"small"},model:{value:e.subProcessForm.position.label,callback:function(t){e.$set(e.subProcessForm.position,"label",t)},expression:"subProcessForm.position.label"}},[t("template",{slot:"append"},[t("el-popover",{ref:"positionPopover",attrs:{placement:"bottom",trigger:"click",width:"600"},on:{show:e.positionPopoverShowEvent,hide:e.positionPopoverHideEvent}},[t("div",{staticStyle:{height:"200px",overflow:"auto"}},[e.subProcessForm.position.showTree?t("el-tree",{ref:"positionTree",attrs:{"node-key":"id",lazy:"","highlight-current":!0,"expand-on-click-node":!1,load:e.loadPositionTreeNode,props:e.treeProps},on:{"node-collapse":e.closePositionNode,"node-click":e.positionTreeNodeClickEvent},scopedSlots:e._u([{key:"default",fn:function({node:s,data:i}){return t("span",{},[t("i",{staticClass:"awsui-iconfont tree-content-icon tree-content-icon-padding",style:{color:s.data.icon.color},domProps:{innerHTML:e._s(s.data.icon.icon)}}),t("span",{style:{"font-weight":i.id.length<36?"600":""}},[e._v(e._s(s.label))])])}}],null,!1,3199791539)}):e._e()],1),t("span",{staticStyle:{cursor:"pointer"},attrs:{slot:"reference"},slot:"reference"},[t("i",{staticClass:"awsui-iconfont"},[e._v("")])])])],1)],2)],1),t("el-form-item",{attrs:{label:"子流程选择",required:""}},[t("el-popover",{ref:"subProcessPopover",attrs:{placement:"bottom",trigger:"click",width:"600"}},[t("div",{staticClass:"sub-process-tree-box",staticStyle:{height:"300px",overflow:"auto"}},[t("el-input",{attrs:{size:"small",placeholder:"输入关键字进行过滤"},model:{value:e.processTreeNodeFilterText,callback:function(t){e.processTreeNodeFilterText=t},expression:"processTreeNodeFilterText"}}),t("el-tree",{ref:"subProcessModelTree",attrs:{"node-key":"id",lazy:"","show-checkbox":"",load:e.loadModelTreeNode,"default-checked-keys":e.subProcessForm.defaultProcessCheckedKeys,"filter-node-method":e.filterProcessTreeNode,props:e.treeProps},on:{"node-collapse":e.closeSubProcessNode,check:e.modeTreeNodeCheck},scopedSlots:e._u([{key:"default",fn:function({node:s,data:i}){return t("span",{},[t("i",{staticClass:"awsui-iconfont tree-content-icon tree-content-icon-padding",style:{color:s.data.icon.color},domProps:{innerHTML:e._s(s.data.icon.icon)}}),t("span",{style:{"font-weight":i.id.length<36?"600":""}},[e._v(e._s(s.label))])])}}])})],1),t("div",{staticStyle:{width:"100%",height:"65px",border:"1px solid #dcdfe6",cursor:"pointer",display:"inline-flex","align-items":"center","flex-wrap":"wrap",overflow:"auto"},attrs:{slot:"reference"},slot:"reference"},[t("div",e._l(e.subProcessForm.processTags,(function(s){return t("el-tag",{key:s.value,staticStyle:{margin:"5px"}},[e._v(e._s(s.label))])})),1)])])],1),t("el-form-item",{attrs:{label:"级别",required:""}},[t("el-radio-group",{model:{value:e.subProcessForm.level,callback:function(t){e.$set(e.subProcessForm,"level",t)},expression:"subProcessForm.level"}},e._l(e.subProcessForm.levelOpts,(function(s){return t("el-radio",{key:s.value,attrs:{label:s.value}},[e._v(e._s(s.label))])})),1)],1),t("el-form-item",{attrs:{label:"排布方式",required:""}},[t("el-radio-group",{model:{value:e.subProcessForm.direction,callback:function(t){e.$set(e.subProcessForm,"direction",t)},expression:"subProcessForm.direction"}},e._l(e.subProcessForm.directionOpts,(function(s){return t("el-radio",{key:s.value,attrs:{label:s.value}},[e._v(e._s(s.label))])})),1)],1),t("el-form-item",{attrs:{label:"模型名称",required:""}},[t("el-input",{attrs:{size:"small"},model:{value:e.subProcessForm.modelName,callback:function(t){e.$set(e.subProcessForm,"modelName",t)},expression:"subProcessForm.modelName"}})],1)],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确定")]),t("awsui-button",{on:{click:e.close}},[e._v("取 消")])],1),t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingPre,expression:"loadingPre"}],attrs:{visible:e.generatePreHandleData.independentDlgVisible,width:"700px","show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,"append-to-body":""},on:{"update:visible":function(t){return e.$set(e.generatePreHandleData,"independentDlgVisible",t)}}},[t("div",[e.generatePreHandleData.independentNodeVos.length?t("div",[t("div",{staticStyle:{width:"100%",height:"125px",display:"inline-flex","flex-wrap":"wrap",overflow:"auto",border:"1px solid #efefef"}},e._l(e.generatePreHandleData.independentNodeVos,(function(s){return t("el-tag",{key:s.id,staticStyle:{margin:"5px"}},[e._v(e._s(s.name))])})),1),t("p",{staticStyle:{margin:"10px 0","text-indent":"2em"}},[t("span",{staticStyle:{color:"red"}},[e._v("*")]),e._v(" 以上的子流程,既不存在上游流程也不存在下游流程,同时也不是其它流程的上游流程或下游流程。 因此,如果想继续生成总图并同时保留以上子流程的话,请取消本次操作,并为以上子流程补充上游流程或下游流程。 如果想继续生成总图且不想保留以上子流程的话,请选择跳过。 ")])]):e._e(),e.generatePreHandleData.leadAndRearNotInRange.length?t("div",[t("div",{staticStyle:{width:"100%",height:"125px",display:"inline-flex","flex-wrap":"wrap",overflow:"auto",border:"1px solid #efefef"}},e._l(e.generatePreHandleData.leadAndRearNotInRange,(function(s){return t("el-tag",{key:s.id,staticStyle:{margin:"5px"}},[t("span",{staticStyle:{color:"#e65e20"}},[e._v(e._s(s.name))]),t("span",[e._v("为("+e._s(s.relationName)+")的"+e._s(s.typeName))])])})),1),t("p",{staticStyle:{margin:"10px 0","text-indent":"2em"}},[t("span",{staticStyle:{color:"red"}},[e._v("*")]),e._v(" 以上标红的子流程,是括号中流程的上游流程或者下游流程,但是其不在勾选的子流程范围之内。 因此,如果想继续生成总图并想在生成的总图中有所体现的话,请取消本次操作,并勾选以上子流程。 如果想继续生成总图的话,请选择跳过,但是在生成的总图中并不会体现。 ")])]):e._e()]),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{attrs:{type:"primary"},on:{click:e.jumpOverIndependent}},[e._v("跳过")]),t("awsui-button",{on:{click:e.closeGeneratePreDlg}},[e._v("取 消")])],1)])],1)},Te=[],Ae={name:"SubProcess",props:{visible:{type:Boolean,default:!1},defaultTags:{type:Array,default:null}},data(){return{dialogVisible:!1,subProcessForm:{position:{path:"",label:"",showTree:!1,locationId:""},processList:[],processTags:[],defaultProcessCheckedKeys:[],showProcessTree:!1,direction:"vertically",directionOpts:[{value:"vertically",label:"纵向排布"},{value:"horizontal",label:"横向排布"}],modelName:"",popoverVisible:!1,level:"process",levelOpts:[{value:"process",label:"流程级别"},{value:"activity",label:"活动级别"}]},treeProps:{label:"name",isLeaf:"leaf"},processTreeNodeFilterText:"",generatePreHandleData:{independentDlgVisible:!1,independentNodeVos:[],leadAndRearNotInRange:[]},loading:!1,loadingPre:!1}},methods:{filterProcessTreeNode(e,t){return!e||-1!==t.name.indexOf(e)},initData(){const e={url:"jd",data:{cmd:"com.actionsoft.apps.coe.method.process.subprocess.init_data"}};p["a"].post(e).then(e=>{"ok"===e.result?(this.subProcessForm.position.label=e.data.dirRootName,this.subProcessForm.position.path=e.data.dirRootPath,this.subProcessForm.position.locationId=e.data.locationId):"error"===e.result&&(this.$message({type:"error",message:e.msg}),this.$emit("getResult"))}).catch(e=>{console.log(e)})},close(){this.$emit("getResult"),this.clearData(),this.$refs.subProcessModelTree&&this.$refs.subProcessModelTree.setCheckedKeys([])},closeGeneratePreDlg(){this.generatePreHandleData.independentDlgVisible=!1,this.generatePreHandleData.independentNodeVos=[],this.generatePreHandleData.leadAndRearNotInRange=[]},closeAdapter(e){this.close(),e()},clearData(){this.dialogVisible=!1,this.subProcessForm.processTags=[],this.subProcessForm.processList=[],this.subProcessForm.modelName="",this.subProcessForm.popoverVisible=!1,this.subProcessForm.position.label="",this.subProcessForm.position.showTree=!1,this.subProcessForm.position.locationId="",this.subProcessForm.defaultProcessCheckedKeys=[],this.subProcessForm.showProcessTree=!1},submit(){this.generatePreHandle()},jumpOverIndependent(){let e=[];this.generatePreHandleData.independentNodeVos.forEach(t=>{e.push(t.id)}),this.generateSubProcessModel(e)},generatePreHandle(){this.loadingPre=!0;const e={url:"jd",data:{cmd:"com.actionsoft.apps.coe.method.process.subprocess.independent_node_pre_handle",processIdJsonArr:JSON.stringify(this.subProcessForm.processList)}};p["a"].post(e).then(e=>{"ok"==e.result?(this.loadingPre=!1,e.data.independentNodeVos.length||e.data.leadAndRearNotInRange.length?(this.generatePreHandleData.independentDlgVisible=!0,this.generatePreHandleData.independentNodeVos=e.data.independentNodeVos,this.generatePreHandleData.leadAndRearNotInRange=e.data.leadAndRearNotInRange):this.generateSubProcessModel([])):"error"==e.result&&this.$message({type:"error",message:e.msg})}).catch(e=>{console.log(e)})},generateSubProcessModel(e){if(!this.subProcessForm.processList.length)return void this.$message({type:"warning",message:"请选择子流程"});if(!this.subProcessForm.modelName)return void this.$message({type:"warning",message:"请填写模型名称"});this.loading=!0,this.generatePreHandleData.independentDlgVisible=!1;const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.method.process.subprocess.generator_end_to_end_model",processIdJsonArr:JSON.stringify(this.subProcessForm.processList),locationId:this.subProcessForm.position.locationId,direction:this.subProcessForm.direction,level:this.subProcessForm.level,modelName:this.subProcessForm.modelName,excludeProcessIdArr:JSON.stringify(e)}};p["a"].post(t).then(e=>{"ok"==e.result?(this.close(),this.closeGeneratePreDlg(),this.loading=!1,this.$message({type:"success",message:"总图生成成功"})):"error"===e.result&&this.$message({type:"error",message:e.msg})}).catch(e=>{console.log(e)})},loadModelTreeNode(e,t){const s=this,i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.method.process.subprocess.find_tree_node",wsId:s.$store.getters.getWsIdFn,teamId:s.$store.getters.getTeamIdFn,createUsers:JSON.stringify(s.$store.getters.getCreateUsers),orgIds:JSON.stringify(s.$store.getters.getOrgIds),methodIds:JSON.stringify(s.$store.getters.getMethodIds),pid:""}};0!==e.level&&(i.data.pid=e.data.id),p["a"].post(i).then(e=>{if("ok"===e.result){t(e.data);const i=s.$refs.subProcessModelTree;e.data.length&&(i.getNode(e.data[0].id).expand(),setTimeout(()=>{let t=i.getNode(e.data[0].id).childNodes[0];null!=t&&t.expand()},500))}}).catch(e=>{console.log(e)})},modeTreeNodeCheck(e,t){const s=this;if(!t.checkedKeys.length)return s.subProcessForm.processTags=[],s.subProcessForm.defaultProcessCheckedKeys=[],void(s.subProcessForm.processList=[]);const i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.method.process.subprocess.find_tree_child_node_all",nodeKeyJsonArr:JSON.stringify(t.checkedKeys)}};p["a"].post(i).then(e=>{"ok"===e.result&&(s.subProcessForm.processTags=[],s.subProcessForm.defaultProcessCheckedKeys=[],s.subProcessForm.processList=[],s.subProcessForm.processTags=e.data,s.subProcessForm.processTags.forEach(e=>{s.subProcessForm.processList.push(e.value),s.subProcessForm.defaultProcessCheckedKeys.push(e.value)}))}).catch(e=>{s.$message({type:"error",message:e.msg})})},closeSubProcessNode(e,t,s){t.childNodes=[],t.loaded=!1},loadPositionTreeNode(e,t){const s=this,i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.method.process.subprocess.construct_position_tree",wsId:s.$store.getters.getWsIdFn,teamId:s.$store.getters.getTeamIdFn,pid:""}};0!==e.level&&(i.data.pid=e.data.id),p["a"].post(i).then(e=>{if("ok"===e.result){t(e.data);const i=s.$refs.positionTree;e.data.length&&(i.getNode(e.data[0].id).expand(),setTimeout(()=>{let t=i.getNode(e.data[0].id).childNodes[0];null!=t&&t.expand()},500))}}).catch(e=>{console.log(e)})},closePositionNode(e,t,s){t.childNodes=[],t.loaded=!1},positionTreeNodeClickEvent(e,t,s){if(t.data.id===this.subProcessForm.position.path.split("/")[0])return;let i=null,o=[],a=[];for(let r=0;r<t.level;r++)null==i?(o.push(t.data.id),a.push(t.data.name),i=t):(i=i.parent,o.push(i.data.id),a.push(i.data.name));this.subProcessForm.position.label=a.reverse().join("/"),this.subProcessForm.position.path=o.reverse().join("/"),this.subProcessForm.position.locationId=t.data.id,this.$refs.positionPopover.doClose()},processPopoverShowEvent(){this.subProcessForm.showProcessTree=!0},processPopoverHideEvent(){this.subProcessForm.showProcessTree=!1},positionPopoverShowEvent(){this.subProcessForm.position.showTree=!0},positionPopoverHideEvent(){this.subProcessForm.position.showTree=!1}},watch:{visible(e){this.dialogVisible=e,e&&(null!=this.defaultTags&&(this.subProcessForm.processTags=[...this.defaultTags],this.defaultTags.forEach(e=>{this.subProcessForm.processList.push(e.value),this.subProcessForm.defaultProcessCheckedKeys.push(e.value)}),console.log("this.subProcessForm.processList",this.subProcessForm.processList)),this.initData())},processTreeNodeFilterText(e){this.$refs.subProcessModelTree.filter(e)}}},Re=Ae,$e=(s("edb3"),Object(g["a"])(Re,Ne,Te,!1,null,"7901bd90",null)),Oe=$e.exports,Me={name:"RepositoryList",components:{SubProcess:Oe,RepositoryInfoProperty:B,PALRepositoryTree:fe,RepositoryInfo:ce,BatchCreate:_e,BatchReplace:Pe},props:{uuid:{type:String,default:""},refreshTreeParentNode:{type:Function,default:null},refreshTreeNode:{type:Function,default:null},treeNode:{type:Object,default:null}},data(){return{loading:!1,newwidth:"280px",newwidthtrue:!1,newtitle:"收起",mainHeight:parseInt(this.$store.getters.getTopMainHeightFn)-(this.showFooter?45:0)+"px",tableLoading:!1,showFooter:!1,repositoryPathData:[],isShow:!0,category:"",batchAppVisible:!1,batchDlg:"",tableData:[],mainRepository:{},isClickTreeRoot:!1,processLinkInstall:!1,outputPrInstall:!1,onlineDocInstall:!1,modelConvertInstall:!1,havingWritePerm:!1,havingRemovePerm:!1,havingVersionManagePerm:!1,imgPath:s("1c92"),crrentUserId:"",currRepositoryDetail:{name:"",id:"",desc:"",versionId:"",version:"",iconCode:"",iconColor:"",state:"",stateColor:"",isUse:!1,isPublish:!1,isApproval:!1,isStop:!1,photoType:"icon",photo:"",methodId:"",methodName:"",folder:!0,rowIndex:0},checkAll:!1,checkedRepositorys:[],singleSelectedRepository:{},isIndeterminate:!1,folderDialog:{dialogVisible:!1,folderForm:{id:"",name:"",desc:""},rules:{name:[{required:!0,message:"请输入名称",trigger:"blur"},{min:1,max:120,message:"长度在 1 到 120 个字符",trigger:"blur"}]}},customFolderDialog:{dialogVisible:!1,title:"",id:""},moveRepository:{visible:!1,title:"移动到",wsId:this.$store.getters.getWsIdFn,teamId:this.$store.getters.getTeamIdFn,categorys:"",type:"batch"},batchCreate:{visible:!1},batchReplace:{visible:!1},subProcess:{visible:!1,appInstall:!1,tags:[],footerBtnVisible:!1},isFileSecurity:!1,isHighSecurity:!1,isOlderVersion:!0,havingCreatePerm:!1,havingBatchPerm:!1,filePerm:{havingRemovePerm:!1,havingVersionManagePerm:!1,havingWritePerm:!1},modelConvertDialog:{visible:!1,title:"",isSameName:!1,duplicateName:!1,checkTargetMethod:"",targetMethodArr:[{value:"process.flowchart",text:"FlowChart",disabled:!1},{value:"process.bpmn2",text:"BPMN",disabled:!1}],repositoryId:"",sourceMethod:"",content:"",repositoryIds:[],type:"",loading:!1,footerBtnVisible:!1}}},created(){this.initParam()},mounted(){this.initData(),this.rowDrop();let e=this;this.$nextTick(()=>{let t={};for(const s in e)if("initData"===s){let i="repositoryList_initData";t[i]=e[s];break}this.$store.commit("setPageFunction",t)})},methods:{initParam(){const e=this,t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_nav_header_data",mainType:mainType}};p["a"].post(t).then((function(t){if("ok"==t.result){let s=t.data;e.crrentUserId=s.crrentUserId}})).catch(e=>{console.log(e)})},openModelConvertDialog(e,t,s){let i=this;i.modelConvertDialog.visible=!0,i.modelConvertDialog.title="选择转换类型",i.modelConvertDialog.repositoryId=e,i.modelConvertDialog.sourceMethod=t,i.modelConvertDialog.type=s},clearModelConvertDialog(){let e=this;e.modelConvertDialog.visible=!1,e.modelConvertDialog.title="",e.modelConvertDialog.repositoryId="",e.modelConvertDialog.checkTargetMethod="",e.modelConvertDialog.isSameName=!1,e.modelConvertDialog.sourceMethod="",e.modelConvertDialog.content="",e.modelConvertDialog.repositoryIds=[],e.modelConvertDialog.type="",e.modelConvertDialog.loading=!1},convertFn(e){let t=this;t.modelConvertDialog.loading=!0;const s={url:"jd",data:{}};"single"===e?(s.data.cmd="com.actionsoft.apps.coe.pal.handle_epc_to_flowchart",s.data.repositoryId=t.modelConvertDialog.repositoryId,s.data.targetMethod=t.modelConvertDialog.checkTargetMethod,s.data.sourceMethod=t.modelConvertDialog.sourceMethod,s.data.duplicateName=t.modelConvertDialog.duplicateName):"batch"===e&&(s.data.cmd="com.actionsoft.apps.coe.pal.handle_epc_to_flowchart_batch",s.data.repositoryIds=JSON.stringify(t.modelConvertDialog.repositoryIds),s.data.targetMethod=t.modelConvertDialog.checkTargetMethod,s.data.sourceMethod="process.epc",s.data.duplicateName=t.modelConvertDialog.duplicateName),p["a"].post(s).then((function(e){"ok"==e.result&&(t.$message({type:"success",message:"转换成功"}),t.initData(),t.modelConvertDialog.loading=!1,t.clearModelConvertDialog())})).catch(e=>{console.log(e)})},modelConvertFn(){let e=this;if(!e.modelConvertDialog.checkTargetMethod)return void e.$message({type:"warning",message:"请选择转换类型"});e.modelConvertDialog.loading=!0;const t={url:"jd",data:{targetMethod:e.modelConvertDialog.checkTargetMethod}};"single"===e.modelConvertDialog.type?(t.data.cmd="com.actionsoft.apps.coe.pal.check_repository_name_exist",t.data.repositoryId=e.modelConvertDialog.repositoryId):"batch"===e.modelConvertDialog.type&&(t.data.cmd="com.actionsoft.apps.coe.pal.check_repository_name_exist_batch",t.data.repositoryIds=JSON.stringify(e.modelConvertDialog.repositoryIds)),p["a"].post(t).then((function(t){if("ok"==t.result)if(e.modelConvertDialog.loading=!1,t.data.duplicateName){if(e.modelConvertDialog.title="提示",e.modelConvertDialog.isSameName=!0,"single"===e.modelConvertDialog.type)e.modelConvertDialog.content=`文件【${t.data.repositoryName}】已经存在,是否继续转换生成新的副本`;else if("batch"===e.modelConvertDialog.type){let s=t.data.repositoryNames,i="文件<br/>";s.forEach(e=>{i+=`【${e}】<br/>`}),i+="已经存在,是否继续转换生成新的副本",e.modelConvertDialog.content=i}e.modelConvertDialog.duplicateName=t.data.duplicateName}else e.convertFn(e.modelConvertDialog.type)})).catch(e=>{console.log(e)})},newwidthbind(){0==this.newwidthtrue?(this.newwidthtrue=!0,this.newwidth="28px",this.newtitle="展开",this.imgPath=s("e4d1")):(this.newwidthtrue=!1,this.newwidth="280px",this.newtitle="收起",this.imgPath=s("1c92"))},handleCloseFolder(e){this.folderDialog.dialogVisible=!1,e()},openUpdateFolder(e,t,s,i,o){"default"==i?(this.folderDialog.folderForm.name=t,this.folderDialog.folderForm.desc=s,this.folderDialog.folderForm.id=e,this.folderDialog.dialogVisible=!0):(this.customFolderDialog.id=e,this.customFolderDialog.title="修改"+o,this.customFolderDialog.dialogVisible=!0)},closeFolderDlg(){this.folderDialog.dialogVisible=!1,this.folderDialog.folderForm.name="",this.folderDialog.folderForm.desc="",this.folderDialog.folderForm.id=""},updateFolderSave(e){const t=this;t.$refs[e].validate(e=>{if(!e)return console.log("error submit!!"),!1;{const e=t.folderDialog.folderForm.name,s=t.folderDialog.folderForm.desc;if(s.length>255)return void t.$message({message:"[描述]不允许超过255个字符",type:"warning"});const i=t.folderDialog.folderForm.id,o=t.$store.getters.getWsIdFn,a=t.$store.getters.getTeamIdFn,r="default",l={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_folder_create_save",wsId:o,teamId:a,method:r,name:e,desc:s,id:i}};p["a"].post(l).then((function(e){"ok"==e.result&&(t.initData(),t.refreshTreeParentNode&&t.refreshTreeParentNode(i),t.closeFolderDlg())})).catch(e=>{console.log(e)})}})},initData(){const e=this;e.tableLoading=!0;const t=e.$store.getters.getWsIdFn,i=e.$store.getters.getTeamIdFn,o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_repository_child_data_query",wsId:t,teamId:i,id:e.uuid,createUsers:JSON.stringify(e.$store.getters.getCreateUsers),orgIds:JSON.stringify(e.$store.getters.getOrgIds),methodIds:JSON.stringify(e.$store.getters.getMethodIds)}};p["a"].post(o).then((function(t){if("ok"==t.result){void 0!=t.data.mainRepository&&0==t.data.mainRepository.folder?b.$emit("getisDisabled",!0):b.$emit("getisDisabled",!1);const i=t.data.repositoryPathData;e.repositoryPathData=i,e.isClickTreeRoot=t.data.isClickTreeRoot,e.category=t.data.category,e.moveRepository.categorys=t.data.category;for(let e=0;e<t.data.tableData.length;e++)t.data.tableData[e].versionStatus.isApproval?(t.data.tableData[e].versionStatus.stateColor="#1AA477",t.data.tableData[e].versionStatus.state="审批中",t.data.tableData[e].versionStatus.stateCode="approval"):t.data.tableData[e].versionStatus.isStop?(t.data.tableData[e].versionStatus.stateColor="#D9001B",t.data.tableData[e].versionStatus.state="已停用",t.data.tableData[e].versionStatus.stateCode="stop"):t.data.tableData[e].versionStatus.isPublish?(t.data.tableData[e].versionStatus.stateColor="#1AA477",t.data.tableData[e].versionStatus.state="已发布",t.data.tableData[e].versionStatus.stateCode="publish"):t.data.tableData[e].versionStatus.isUse?(t.data.tableData[e].versionStatus.stateColor="#4E7FF9",t.data.tableData[e].versionStatus.state="设计中",t.data.tableData[e].versionStatus.stateCode="use"):(t.data.tableData[e].versionStatus.stateColor="#4E7FF9",t.data.tableData[e].versionStatus.state="设计中",t.data.tableData[e].versionStatus.stateCode="designer");if(e.tableData=t.data.tableData,e.mainRepository=t.data.mainRepository,e.tableLoading=!1,e.processLinkInstall=t.data.processLinkInstall,e.outputPrInstall=t.data.outputPrInstall,e.onlineDocInstall=t.data.onlineDocInstall,e.modelConvertInstall=t.data.modelConvertInstall,e.havingWritePerm=t.data.havingWritePerm,e.havingRemovePerm=t.data.havingRemovePerm,e.havingVersionManagePerm=t.data.havingVersionManagePerm,e.batchAppVisible=t.data.batchAppVisible,e.subProcess.appInstall=t.data.subProcessAppVisible,e.batchDlg=t.data.batchDlg,e.isHighSecurity=t.data.isHighSecurity,e.isFileSecurity=t.data.isFileSecurity,e.isOlderVersion=t.data.isOlderVersion,e.havingBatchPerm=t.data.havingBatchPerm,e.havingCreatePerm=t.data.havingCreatePerm,0==e.tableData.length)e.isShow=!1;else if(void 0!=t.data.mainRepository){let s={id:t.data.mainRepository.id};e.loadRepositoryDetail(s)}else e.setCurrentRow(e.tableData[0]);e.imgPath=s("1c92")}})).catch(t=>{console.log(t),e.tableLoading=!1})},setCurrentRow(e){this.clickTableRow(e,null,null)},clickTableRow(e,t,s){this.$refs.table.setCurrentRow(e),this.loadRepositoryDetail(e)},loadRepositoryDetail(e){if(!e)return;const t=this,s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_repository_detail_data_query",wsId:t.$store.getters.getWsIdFn,teamId:t.$store.getters.getTeamIdFn,id:e.id}};p["a"].post(s).then((function(s){"ok"==s.result&&(t.currRepositoryDetail.name=s.data.name,t.currRepositoryDetail.id=s.data.id,t.currRepositoryDetail.desc=s.data.desc,t.currRepositoryDetail.version=s.data.version,t.currRepositoryDetail.iconCode=s.data.iconCode,t.currRepositoryDetail.iconColor=s.data.iconColor,t.currRepositoryDetail.isPublish=s.data.isPublish,t.currRepositoryDetail.isUse=s.data.isUse,t.currRepositoryDetail.isApproval=s.data.isApproval,t.currRepositoryDetail.isStop=s.data.isStop,t.currRepositoryDetail.photoType=s.data.photoType,t.currRepositoryDetail.photo=s.data.photo,t.currRepositoryDetail.methodId=s.data.methodId,t.currRepositoryDetail.methodName=s.data.methodName,t.currRepositoryDetail.folder=s.data.folder,t.currRepositoryDetail.isApproval?(t.currRepositoryDetail.stateColor="#1AA477",t.currRepositoryDetail.state="审批中"):t.currRepositoryDetail.isStop?(t.currRepositoryDetail.stateColor="#D9001B",t.currRepositoryDetail.state="已停用"):t.currRepositoryDetail.isPublish?(t.currRepositoryDetail.stateColor="#1AA477",t.currRepositoryDetail.state="已发布"):t.currRepositoryDetail.isUse&&(t.currRepositoryDetail.stateColor="#4E7FF9",t.currRepositoryDetail.state="设计中"),t.currRepositoryDetail.rowIndex=e.index,t.filePerm.havingRemovePerm=s.data.havingRemovePerm,t.filePerm.havingVersionManagePerm=s.data.havingVersionManagePerm,t.filePerm.havingWritePerm=s.data.havingWritePerm)})).catch(e=>{console.log(e)})},openDesigner(e){let t=this;if(t.isHighSecurity&&t.isFileSecurity){const s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_file_permission_query",uuid:e}};p["a"].post(s).then((function(s){"ok"==s.result?Object(y["d"])(t.$store.getters.getTeamIdFn,e,t.$store.state.sessionId):t.$message.error(s.msg)})).catch(e=>{console.log(e),t.$message.error(e.msg)})}else Object(y["d"])(this.$store.getters.getTeamIdFn,e,this.$store.state.sessionId)},setFavorite(e,t,s){if("0"==e){const e=this,s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_favorite_cancel",wsId:e.$store.getters.getWsIdFn,teamId:e.$store.getters.getTeamIdFn,versionId:t}};p["a"].post(s).then((function(t){"ok"==t.result&&e.initData()})).catch(e=>{console.log(e)})}else{const e=this,s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_favorite_save",wsId:e.$store.getters.getWsIdFn,teamId:e.$store.getters.getTeamIdFn,versionId:t}};p["a"].post(s).then((function(t){"ok"==t.result&&e.initData()})).catch(e=>{console.log(e)})}},handleCheckAllChange(e){e?(this.$refs.table.clearSelection(),this.tableData.forEach(e=>{this.$refs.table.toggleRowSelection(e)})):this.$refs.table.clearSelection(),this.isIndeterminate=!1},handlecheckedRepositorysChange(e){const t=this;t.checkedRepositorys=e;let s=e.length;if(t.modelConvertDialog.repositoryIds=[],t.subProcess.tags=[],s>0){let i=!1,o=!1;e.forEach(e=>{-1===t.modelConvertDialog.repositoryIds.indexOf(e.id)&&t.modelConvertDialog.repositoryIds.push(e.id),"process.epc"!==e.methodId&&(i=!0),"process.epc"!==e.methodId&&"process.flowchart"!==e.methodId&&(o=!0);let s={value:e.id,label:e.name};t.subProcess.tags.push(s)}),o?(t.subProcess.footerBtnVisible=!1,t.subProcess.tags=[]):t.subProcess.footerBtnVisible=!0,t.modelConvertDialog.footerBtnVisible=!i,t.showFooter=!0;for(let a=0;a<s;a++){let s=t.tableData.indexOf(e[a]);const i=t.tbody[0].childNodes;if(void 0!=i){const e=i[s],t=e.childNodes[0];t&&t.querySelector(".el-checkbox__input")&&(t.querySelector(".el-checkbox__input").style.visibility="visible")}}}else{t.showFooter=!1,t.subProcess.tags=[];for(let e=0;e<t.tableData.length;e++){const s=t.tbody[0].childNodes;if(void 0!=s){const t=s[e],i=t.childNodes[0];i&&i.querySelector(".el-checkbox__input")&&(i.querySelector(".el-checkbox__input").style.visibility="hidden")}}}t.refreshMainHeight(),t.checkAll=s===t.tableData.length,t.isIndeterminate=s>0&&s<t.tableData.length},closeFooter(){this.handleCheckAllChange(!1),this.showFooter=!1,this.refreshMainHeight()},refreshMainHeight(){this.mainHeight=parseInt(this.$store.getters.getTopMainHeightFn)-(this.showFooter?45:0)+"px"},hideCheckBoxCell(e){return"hideCheckBoxCell"},showCheckbox(e,t,s,i){s.parentNode.querySelector(".el-table-column--selection").querySelector(".el-checkbox__input").style.visibility="visible"},hideCheckbox(e,t,s,i){let o=s.parentNode.querySelector(".el-table-column--selection").querySelector(".el-checkbox__input");null!=o&&this.checkedRepositorys.indexOf(e)<0&&(o.style.visibility="hidden")},moveFile(e){this.moveRepository.type="single";for(let t=0;t<this.tableData.length;t++)if(this.tableData[t].id==e){this.singleSelectedRepository=this.tableData[t];break}void 0!=this.singleSelectedRepository.id&&null!=this.singleSelectedRepository.id||(this.singleSelectedRepository=this.mainRepository),1!=this.singleSelectedRepository.folder||"admin"==this.crrentUserId?1!=this.singleSelectedRepository.isPublish||"admin"==this.crrentUserId?this.moveRepository.visible=!0:this.$message({message:"当前文件已处于发布状态,不可进行移动文件操作!!",type:"warning"}):this.$message({message:"文件夹不可进行移动操作!!",type:"warning"})},moveFiles(){if(this.moveRepository.type="batch",0!=this.checkedRepositorys.length){for(let e=0;e<this.checkedRepositorys.length;e++){if(1==this.checkedRepositorys[e].folder&&"admin"!=this.crrentUserId)return void this.$message({message:"文件夹不可进行移动操作!!",type:"warning"});if(""!=this.checkedRepositorys[e].versionStatus&&1==this.checkedRepositorys[e].versionStatus.isPublish&&"admin"!=this.crrentUserId)return void this.$message({message:"当前文件已处于发布状态,不可进行移动文件操作!!",type:"warning"})}this.moveRepository.visible=!0}else this.$message({message:"请选择移入的目标文件",type:"warning"})},saveMoveRepositoryResult(e){if(0==e.length)return void this.$message({message:"未选择要移入的目标文件,移动操作被取消",type:"warning"});this.moveRepository.visible=!1;const t=this;t.tableLoading=!0;let s=JSON.stringify(t.checkedRepositorys);if("single"==this.moveRepository.type){let e=[];e.push(t.singleSelectedRepository),s=JSON.stringify(e)}const i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_move_save",teamId:t.$store.getters.getTeamIdFn,sourceData:s,targetData:JSON.stringify(e)}};if(t.isHighSecurity&&t.isFileSecurity){let s=[];for(let e=0;e<t.checkedRepositorys.length;e++){let i=t.checkedRepositorys[e];s.push(i.id)}const o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_file_permission_batch_query",uuids:JSON.stringify(s),isSub:!0}};p["a"].post(o).then((function(s){if("ok"==s.result){let o=s.data.checkArr;if(o.length<=0)t.$message.error("无密级访问权限");else{let s=[];for(let e=0;e<o.length;e++)for(let i=0;i<t.checkedRepositorys.length;i++)o[e]===t.checkedRepositorys[i].id&&s.push(t.checkedRepositorys[i]);i.data.sourceData=JSON.stringify(s),p["a"].post(i).then((function(s){t.tableLoading=!1,"ok"==s.result?(t.$message({message:"移动成功",type:"success"}),t.refreshTreeNode&&t.refreshTreeNode(e[0].pid),t.refreshTreeParentNode&&t.refreshTreeParentNode(t.uuid),t.initData()):t.$message({message:s.msg,type:"warning"})})).catch(e=>{console.log(e)})}}else t.$message(s.msg)})).catch(e=>{console.log(e),t.$message.error(e.msg)})}else p["a"].post(i).then((function(s){t.tableLoading=!1,"ok"==s.result?(t.$message({message:"移动成功",type:"success"}),t.refreshTreeNode&&t.refreshTreeNode(e[0].pid),t.refreshTreeParentNode&&t.refreshTreeParentNode(t.uuid),t.initData()):t.$message({message:s.msg,type:"warning"})})).catch(e=>{console.log(e)})},copyFiles(e){const t=this;t.tableLoading=!0;let s=[];if(e)s.push(e);else{let e=t.checkedRepositorys;for(let t=0;t<e.length;t++)s.push(e[t].id)}const i=t.uuid,o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_copy_save",targetId:i,sourceIds:JSON.stringify(s),wsId:t.$store.getters.getWsIdFn,teamId:t.$store.getters.getTeamIdFn}};if(t.isHighSecurity&&t.isFileSecurity){const a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_file_permission_batch_query",uuids:JSON.stringify(s),isSub:!0}};p["a"].post(a).then((function(s){if("ok"==s.result){let a=s.data.checkArr;a.length<=0?(t.tableLoading=!1,t.$message.error("无密级访问权限")):(o.data.sourceIds=JSON.stringify(a),p["a"].post(o).then((function(s){"ok"==s.result?(t.$message({message:"复制成功",type:"success"}),i==e?t.refreshTreeParentNode&&t.refreshTreeParentNode(t.uuid):t.refreshTreeNode&&t.refreshTreeNode(t.uuid),t.initData(),t.tableLoading=!1):(t.tableLoading=!1,t.$message(s.msg))})).catch(e=>{console.log(e)}))}else t.tableLoading=!1,t.$message(s.msg)})).catch(e=>{console.log(e),t.$message.error(e.msg)})}else p["a"].post(o).then((function(s){"ok"==s.result?(t.$message({message:"复制成功",type:"success"}),i==e?t.refreshTreeParentNode&&t.refreshTreeParentNode(t.uuid):t.refreshTreeNode&&t.refreshTreeNode(t.uuid),t.initData(),t.tableLoading=!1):(t.tableLoading=!1,t.$message(s.msg))})).catch(e=>{console.log(e)})},exportFiles(e){const t=this;t.loading=!0;let s=[];if(e)s.push(e);else{let e=t.checkedRepositorys;for(let t=0;t<e.length;t++)s.push(e[t].id)}const i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_export_handle",repositoryIds:JSON.stringify(s)}};if(t.isHighSecurity&&t.isFileSecurity){const e={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_file_permission_batch_query",uuids:JSON.stringify(s),isSub:!1}};p["a"].post(e).then((function(e){if("ok"==e.result){let s=e.data.checkArr;s.length<=0?(t.loading=!1,t.$message.error("无密级访问权限")):(i.data.repositoryIds=JSON.stringify(s),p["a"].post(i).then((function(e){if(t.loading=!1,"ok"==e.result){t.$message({message:"导出完成,正在下载...",type:"success"});const s=e.data.exportTitle,i=e.data.exportCount,o=e.data.dcId,a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_export",exportTitle:s,exportCount:i,dcId:o}};p["a"].post(a).then((function(e){"ok"==e.result?window.open(e.data.downLoadUrl):t.$message(e.msg)})).catch(e=>{console.log(e)})}else t.$message(e.msg)})).catch(e=>{console.log(e)}))}else t.tableLoading=!1,t.$message(e.msg)})).catch(e=>{console.log(e),t.$message.error(e.msg)})}else p["a"].post(i).then((function(e){if(t.loading=!1,"ok"==e.result){t.$message({message:"导出完成,正在下载...",type:"success"});const s=e.data.exportTitle,i=e.data.exportCount,o=e.data.dcId,a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_export",exportTitle:s,exportCount:i,dcId:o}};p["a"].post(a).then((function(e){"ok"==e.result?window.open(e.data.downLoadUrl):t.$message(e.msg)})).catch(e=>{console.log(e)})}else t.$message(e.msg)})).catch(e=>{console.log(e)})},removeFiles(e){this.$confirm("确定要删除吗?","提示",{confirmButtonText:"确定",confirmButtonClass:"button-general-color",cancelButtonText:"取消",type:"warning"}).then(()=>{const t=this;let s=[],i=e;if(e)s.push(e);else{let e=t.checkedRepositorys;for(let t=0;t<e.length;t++)s.push(e[t].id)}const o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_remove",repositoryIds:JSON.stringify(s),wsId:t.$store.getters.getWsIdFn,teamId:t.$store.getters.getTeamIdFn}};if(t.isHighSecurity&&t.isFileSecurity){const e={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_file_permission_batch_query",uuids:JSON.stringify(s),isSub:!0}};p["a"].post(e).then((function(e){if("ok"==e.result){let s=e.data.checkArr;s.length<=0?t.$message.error("无密级访问权限"):(o.data.repositoryIds=JSON.stringify(s),p["a"].post(o).then((function(e){"ok"==e.result?(t.$message({message:"已放入回收站",type:"success"}),t.uuid.length<36?(t.refreshTreeNode&&t.refreshTreeNode(t.uuid),t.initData()):i==t.mainRepository.id?t.refreshTreeParentNode(t.uuid):(t.refreshTreeNode&&t.refreshTreeNode(t.uuid),t.initData())):t.$message(e.msg)})).catch(e=>{console.log(e)}))}else t.tableLoading=!1,t.$message(e.msg)})).catch(e=>{console.log(e),t.$message.error(e.msg)})}else p["a"].post(o).then((function(e){"ok"==e.result?(t.$message({message:"已放入回收站",type:"success"}),t.uuid.length<36?(t.refreshTreeNode&&t.refreshTreeNode(t.uuid),t.initData()):i==t.mainRepository.id?t.refreshTreeParentNode(t.uuid):(t.refreshTreeNode&&t.refreshTreeNode(t.uuid),t.initData())):t.$message(e.msg)})).catch(e=>{console.log(e)})}).catch(()=>{})},downloadPng(e){const t=this;t.loading=!0;const s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_repository_download_png",uuid:e,type:"image"}};if(t.isHighSecurity&&t.isFileSecurity){const i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_file_permission_query",uuid:e}};p["a"].post(i).then((function(e){"ok"==e.result?p["a"].post(s).then((function(e){t.loading=!1,"ok"==e.result?""==e.data.url?t.$message({message:"检测到尚未进行作图,下载被取消",type:"warning"}):(t.$message({message:"创建图片完成,正在下载...",type:"success"}),window.open(e.data.url)):t.$message(e.msg)})).catch(e=>{console.log(e)}):(t.loading=!1,t.$message.error(e.msg))})).catch(e=>{console.log(e),t.loading=!1,t.$message.error(e.msg)})}else p["a"].post(s).then((function(e){t.loading=!1,"ok"==e.result?""==e.data.url?t.$message({message:"检测到尚未进行作图,下载被取消",type:"warning"}):(t.$message({message:"创建图片完成,正在下载...",type:"success"}),window.open(e.data.url)):t.$message(e.msg)})).catch(e=>{console.log(e)})},eteCascadeAnalysis(e){const t=this.$store.getters.getWsIdFn,s=this.$store.getters.getTeamIdFn,i="com.actionsoft.apps.coe.pal.processlink";let o=this;if(o.isHighSecurity&&o.isFileSecurity){const a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_file_permission_query",uuid:e}};p["a"].post(a).then((function(a){"ok"==a.result?Object(y["b"])("cascadeAnalysis",o.$store.state.sessionId,"com.actionsoft.apps.coe.pal.processlink_ete_analysis_home",{wsId:t,teamId:s,appId:i,uuid:e}):o.$message.error(a.msg)})).catch(e=>{console.log(e),o.$message.error(e.msg)})}else Object(y["b"])("cascadeAnalysis",this.$store.state.sessionId,"com.actionsoft.apps.coe.pal.processlink_ete_analysis_home",{wsId:t,teamId:s,appId:i,uuid:e})},createOutputPr(e){const t=this,s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_outputreport_output_process_create",wsId:t.$store.getters.getWsIdFn,teamId:t.$store.getters.getTeamIdFn,fileId:e}};if(t.isHighSecurity&&t.isFileSecurity){const i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_file_permission_query",uuid:e}};p["a"].post(i).then((function(e){"ok"==e.result?p["a"].post(s).then((function(e){if("ok"==e.result){const t=e.data.taskId;setTimeout((function(){const e={url:"jd",data:{taskId:t,cmd:"com.actionsoft.apps.coe.pal_outputreport_output_process_preview"}};p["a"].post(e).then((function(e){"ok"==e.result&&window.open(e.data.url)})).catch(e=>{console.log(e)})}),2e3)}})).catch(e=>{console.log(e)}):t.$message.error(e.msg)})).catch(e=>{console.log(e),t.$message.error(e.msg)})}else p["a"].post(s).then((function(e){if("ok"==e.result){const t=e.data.taskId;setTimeout((function(){const e={url:"jd",data:{taskId:t,cmd:"com.actionsoft.apps.coe.pal_outputreport_output_process_preview"}};p["a"].post(e).then((function(e){"ok"==e.result&&window.open(e.data.url)})).catch(e=>{console.log(e)})}),2e3)}})).catch(e=>{console.log(e)})},openRepositoryInfo(e){let t=this;if(t.isHighSecurity&&t.isFileSecurity){const s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_file_permission_query",uuid:t.currRepositoryDetail.id}};p["a"].post(s).then((function(s){"ok"==s.result?t.$refs.repositoryInfo.openRepositoryInfoDlg(t,t.currRepositoryDetail.id,t.currRepositoryDetail.version,e,t.currRepositoryDetail.isUse,t.currRepositoryDetail.isPublish,t.currRepositoryDetail.isStop,t.currRepositoryDetail.isApproval,t.currRepositoryDetail.methodId):t.$message.error(s.msg)})).catch(e=>{console.log(e),t.$message.error(e.msg)})}else this.$refs.repositoryInfo.openRepositoryInfoDlg(this,this.currRepositoryDetail.id,this.currRepositoryDetail.version,e,this.currRepositoryDetail.isUse,this.currRepositoryDetail.isPublish,this.currRepositoryDetail.isStop,this.currRepositoryDetail.isApproval,this.currRepositoryDetail.methodId)},openRepositoryInfoById(e,t){let s=this;if(s.isHighSecurity&&s.isFileSecurity){const i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_file_permission_query",uuid:t.id}};p["a"].post(i).then((function(i){"ok"==i.result?s.$refs.repositoryInfo.openRepositoryInfoDlg(s,t.id,t.version,e,t.isUse,t.isPublish,t.isStop,t.isApproval,t.methodId):s.$message.error(i.msg)})).catch(e=>{console.log(e),s.$message.error(e.msg)})}else this.$refs.repositoryInfo.openRepositoryInfoDlg(this,t.id,t.version,e,t.isUse,t.isPublish,t.isStop,t.isApproval,t.methodId)},positionRepositoryPath(e,t){const s=[];for(let i=0;i<this.repositoryPathData.length;i++){const t=this.repositoryPathData[i].versionId;if(s.push(t),t==e)break}this.$router.push({path:"/Repository",query:{id:e,versionId:t,path:s.join(","),param:Math.random()}})},positionTableRoleRepository(e,t,s,i){if(0==s)return void(i?this.$message("已经到最后一级了"):this.openDesigner(e));let o=!1;const a=[];for(let r=0;r<this.repositoryPathData.length;r++){const e=this.repositoryPathData[r].versionId;if(a.push(e),e==t){o=!0;break}}o||a.push(t),this.$router.push({path:"/Repository",query:{id:e,versionId:t,path:a.join(","),param:Math.random()}})},repositoryRefresh(e){this.refreshTreeParentNode&&this.refreshTreeParentNode(e),this.initData()},rowDrop(){const e=document.querySelector(".el-table__body-wrapper tbody");let t=this;ye["a"].create(e,{animation:1e3,direction:"vertical",forceFallback:!0,filter:".rowDropFilter",onEnd:function(e){let s=e.oldIndex,i=e.newIndex;if(s!=i){let e=t.tableData[s],a=t.tableData[i];const r=t.$store.getters.getWsIdFn,l={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_repository_order_index_update",wsId:r,currentId:e.id,originId:a.id}};p["a"].post(l).then(e=>{t.refreshTreeNode&&t.refreshTreeNode(t.uuid),e.data.updateFlag?t.$message({message:e.data.desc,type:"success"}):t.$message({showClose:!1,message:e.data.desc,type:"error"})}).catch(e=>{t.$message({showClose:!1,message:"服务调用失败",type:"error"}),o})}}})},batchCreateFn(){this.batchCreate.visible=!0},closeBatchCreateFn(){this.batchCreate.visible=!1},batchReplaceFn(){this.batchReplace.visible=!0},closeBatchReplaceFn(){this.batchReplace.visible=!1},closeSubProcessFn(){this.subProcess.visible=!1},openSubProcessFn(e){if(this.subProcess.visible=!0,e){let t={value:e.versionId,label:e.name};this.subProcess.tags.push(t)}}},computed:{tbody(){return this.$refs.repositorysDiv.querySelector(".el-table__body-wrapper").querySelector(".el-table__body").getElementsByTagName("tbody")},listenTopMainHeight(){return this.$store.getters.getTopMainHeightFn}},watch:{listenTopMainHeight:function(e,t){this.mainHeight=parseInt(e)-(this.showFooter?45:0)+"px"}}},Ve=Me,Le=(s("67bd"),Object(g["a"])(Ve,q,Q,!1,null,"0a092c08",null)),Ue=Le.exports,Be={name:"Repository",components:{RepositoryMain:_,RepositoryMainList:E,RepositoryList:Ue},data(){return{mainHeight:parseInt(this.$store.getters.getTopMainHeightFn)+"px",mainContent:"",uuid:"",reFresh:!1,conditionReFresh:!1,treeNode:{},conditionData:{}}},provide:function(){return{openRepositoryList:this.openRepositoryList,transferTreeNode:this.transferTreeNode}},created(){this.getRouteParam(this.$route.query);let e=this;setTimeout(()=>{e.initConditionData()},300)},methods:{initConditionData(){const e=this,t={url:"jd",data:{wsId:e.$store.getters.getWsIdFn,teamId:e.$store.getters.getTeamIdFn,cmd:"com.actionsoft.apps.coe.pal_condition_data_query"}};p["a"].post(t).then((function(t){if("ok"===t.result){if(e.conditionData=t.data,e.conditionData.historyCondition){let t=[...e.conditionData.historyCondition.createUsers];e.$store.commit("setCreateUsers",t);let s=[...e.conditionData.historyCondition.orgIds];e.$store.commit("setOrgIds",s);let i=[...e.conditionData.historyCondition.methodIds];e.$store.commit("setMethodIds",i)}e.conditionReFresh=!0}else e.$message({message:t.msg,type:"warning"})})).catch(e=>{console.log(e)})},getRouteParam(e){"{}"!=JSON.stringify(e)&&e.id?this.$refs.repositoryMain.queryTreeByIdAndPath(e.id,e.versionId,e.path):(this.reFresh=!1,this.mainContent="",this.$nextTick(()=>{this.reFresh=!0,this.mainContent="RepositoryMainList"}))},openRepositoryList(e){this.mainContent="",this.uuid=e,this.mainContent="RepositoryList"},transferTreeNode(e){this.treeNode=e},refreshTreeParentNode(e){this.$refs.repositoryMain.refreshParentNode(e)},refreshTreeNode(e){this.$refs.repositoryMain.refreshNode(e)}},computed:{listenTopMainHeight(){return this.$store.getters.getTopMainHeightFn},listenWsId(){return this.$store.getters.getWsIdFn},listenTeamId(){return this.$store.getters.getTeamIdFn}},watch:{$route:function(e,t){this.conditionReFresh=!1,this.$nextTick(()=>{this.initConditionData()})},listenTopMainHeight:function(e,t){this.mainHeight=parseInt(e)+"px"},listenWsId:function(e,t){this.reFresh=!1,this.mainContent="",this.conditionReFresh=!1,this.$nextTick(()=>{this.reFresh=!0,this.mainContent="RepositoryMainList",this.initConditionData()})},listenTeamId:function(e,t){this.reFresh=!1,this.mainContent="",this.conditionReFresh=!1,this.$nextTick(()=>{this.reFresh=!0,this.mainContent="RepositoryMainList",this.initConditionData()})}},beforeRouteUpdate(e,t,s){this.getRouteParam(e.query),s()}},je=Be,He=(s("f23a"),Object(g["a"])(je,i,a,!1,null,"6ca8c8ea",null));t["default"]=He.exports},8005:function(e,t,s){"use strict";s("cf12")},"80ce":function(e,t,s){"use strict";s("7834")},"828d":function(e,t,s){},"8d13":function(e,t,s){},ca1d:function(e,t,s){},cdfb:function(e,t,s){},cf12:function(e,t,s){},e454:function(e,t,s){},e475:function(e,t,s){},e4d1:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAABx5JREFUeF7t3WF21EYQhVGxs7Ayw8rC0nIGjiHYHo+q1NJI/S6/VbL6K90M2BzyZfFLAQXuFviijQIK3C8AiLdDgU8KAOL1UAAQ74ACvQI+QXrdTIUUACRk0Y7ZKwBIr5upkAKAhCzaMXsFAOl1MxVSAJCQRTtmrwAgvW6mQgoAErJox+wVAKTXzVRIAUBCFu2YvQKA9LqZCikASMiiHbNXAJBeN1MhBQAJWbRj9goA0utmKqQAICGLdsxeAUB63UyFFAAkZNGO2SsASK+bqZACgIQs2jF7BQDpdTMVUgCQkEU7Zq8AIL1upkIKABKyaMfsFQCk181USAFAQhbtmL0CgPS6mQopAEjIoh2zVwCQXjdTIQUACVm0Y/YKANLrZiqkACAhi3bMXgFAet1MhRQAJGTRjtkrAEivm6mQAoCELNoxewUA6XUzFVIAkJBFO2avACC9bqZCCgASsmjH7BUApNdt1NQ/y7L8GHWzA+/zsizL9wO/3tO+FCBPS7/ccPy7LMu3i71sNxy3Z77ac7c2DUgr2+ahVxyvN7rKy/aK42rP3V4YIO107cG3OK7ysr3FcZXnbi/qNgjIpnzl4Xs4zv6y3cNx9ucuL+jtACCbE66+wSMcZ33ZHuE463OvXsxnFwIyJOPDm6zFcbaXbS2Osz33w4WsvQCQtaX611VxnOVlq+I4y3P3N/XBJCBDc767WRfHs1+2Lo5nP/fwbQIyPOnvG27F8Xqjo3e0FceznnuXTR4df5dDnPCmo3B8Pfgn7aNwHP3cu70CgIxPC8c1//rMh28CIGOBwDERjturAcg4IHBMhgMQOPyZ48E74BNkOxKfHBN+ckz1rbjt73j7DnBMjMNvsdoufg7CMTkOQPpA4AjAAUgPCBwhOACpA4EjCAcgNSBwhOEAZD0QOAJxALIOCByhOAB5DASOYByAfA4EjnAcgNwHAgccP98OfxfrPRI44Pj9VgDyNxA44PjrjQDkTw444Hj3+wlAfiWBA44P/0QKCBzT/AMLj79rX78iHYhPDp8cn6pJBgIHHA8/UlKBwAHHQxypPweBA45VOBKBwAHHahxpQOCAo4QjCQgccJRxpACBA44WjgQgcMDRxjE7EDjg2IRjZiBwwLEZx6xA4IBjCI4ZgcABxzAcswGBA46hOGYCAgccw3HMAgQOOHbBMQMQOODYDcfVgcABx644rgwEDjh2x3FVIHDAcQiOKwKBA47DcFwNCBxwHIrjSkDggONwHIlAvi3L8v3A0i/Lsty+5tZfqf+4xtZum+evFH7Upwgkm1+bnBtcCchtK5DkvJunOOnVgEDif1lxKJwrAoEEksOQXBUIJJAcguTKQCCBZHckVwcCCSS7IpkBCCSQ7IZkFiCQQLILkpmAQALJcCSzAYEEkqFIZgQCCSTDkMwKBBJIhiCZGQgkkGxGMjsQSCDZhCQBCCSQtJGkAIEEkhaSJCCQQFJGkgYEEkhKSBKBQALJaiSpQCCBZBWSZCCQQPIQSToQSCD5FAkgv/L411Ie/rc08wJA/uwdkkwDPkEKe4ekECvhUp8g77cMScKbv/KMgHwcCpKVL9DslwFyf8OQzP72rzgfIJ9HgmTFSzTzJYA83i4kjxtNewUg61YLybpO010FyPqVQrK+1TRXAlJbJSS1Xpe/GpD6CiGpN7vsBCC91UHS63a5KUD6K4Ok3+4yk4BsWxUk2/qdfhqQ7SuCZHvD094BkDGrgWRMx9PdBZBxK4FkXMvT3AmQsauAZGzPp98NkPErgGR806fdEZB90kOyT9fD7wrIfslHITl6Ry/LsnwbkOXo5x7wyO9vMcUhdikz5qZbkdxe1O9jHqV0l61Ivi7L8qP0FU96MSD7L6aL5Fk4Xot0kUyD4xYCkP2B3L5CFcmzcXSRTIUDkGNwvH6VtUjOgqOKZDocgBwLZM0nydlwrEUyJQ5AjgfyGZKz4niEZFocgDwHyEdIzo7jHpKpcQDyPCD/R3IVHG+RTI8DkOcCeUVyxZ8X3L7hcMXnLm/ct3nLyQwkFQAkadvOWi4ASDmZgaQCgCRt21nLBQApJzOQVACQpG07a7kAIOVkBpIKAJK0bWctFwCknMxAUgFAkrbtrOUCgJSTGUgqAEjStp21XACQcjIDSQUASdq2s5YLAFJOZiCpACBJ23bWcgFAyskMJBUAJGnbzlouAEg5mYGkAoAkbdtZywUAKSczkFQAkKRtO2u5ACDlZAaSCgCStG1nLRcApJzMQFIBQJK27azlAoCUkxlIKgBI0radtVwAkHIyA0kFAEnatrOWCwBSTmYgqQAgSdt21nIBQMrJDCQVACRp285aLgBIOZmBpAKAJG3bWcsFACknM5BUAJCkbTtruQAg5WQGkgoAkrRtZy0XAKSczEBSAUCStu2s5QKAlJMZSCoASNK2nbVcAJByMgNJBf4DYg2D2LFGu3cAAAAASUVORK5CYII="},ea16:function(e,t,s){},edb3:function(e,t,s){"use strict";s("cdfb")},f23a:function(e,t,s){"use strict";s("e475")},ffad:function(e,t,s){"use strict";s("ea16")}}]); |