apps/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/main/js/chunk-74e54d3e.dc71229f.js

1 line
173 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-74e54d3e"],{"0216":function(e,t,i){},"0757":function(e,t,i){},1337:function(e,t,i){"use strict";i.d(t,"c",(function(){return o})),i.d(t,"b",(function(){return s})),i.d(t,"d",(function(){return a})),i.d(t,"a",(function(){return r})),i.d(t,"e",(function(){return l}));const s=function(e,t,i,s,a){s||(s={}),s.cmd=i,s.sid=t,o(e,wHref,s,a)},o=function(e,t,i,s){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==s?"_blank":s,a.method="get",a.style.display="none",i){var l=document.createElement("textarea");l.name=r,l.value=i[r],a.appendChild(l)}a.setAttribute("id",e),document.body.appendChild(a),a.submit()},a=function(e,t,i){s("palDesigner",i,"com.actionsoft.apps.coe.pal_pl_repository_designer",{uuid:t,teamId:e})},r=function(e,t){let i=e;while(i.nodeName!=t&&"BODY"!=i.nodeName)i=i.parentNode;return i.nodeName==t?i:null},l=function(e){document.getElementsByTagName("title")[0].innerText=e}},"157a":function(e,t,i){},"1d6e":function(e,t,i){"use strict";i("e5a0")},"30d1":function(e,t,i){"use strict";i("7071")},"46d1":function(e,t,i){},"4cbb":function(e,t,i){"use strict";var s=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:i,data:s}){return t("span",{},[t("i",{staticClass:"awsui-iconfont tree-content-icon tree-content-icon-padding",style:{color:i.data.icon.color},domProps:{innerHTML:e._s(i.data.icon.icon)}}),t("span",[e._v(e._s(i.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=i("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,i){},treeSearchSelect(e){this.queryTreeByIdAndPath(e.id,e.path)},treeSearch(e,t){const i=this;if(void 0!=e&&""!=e.trim()){const s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_repository_tree_component_search",addressType:i.addressType,rootDeptId:i.rootDeptId,name:e}};a["a"].post(s).then((function(e){"ok"==e.result&&e.data.length>0?(clearTimeout(i.timeout),i.timeout=setTimeout(()=>{t(e.data)},3e3*Math.random())):clearTimeout(i.timeout)})).catch(e=>{console.log(e)})}else clearTimeout(i.timeout)},queryTreeByIdAndPath(e,t){const i=this,s=i.$refs.tree,o=t.split(",");let a=1;for(let r=0;r<o.length;r++)r>0&&null!=s.getNode(o[r-1])&&(setTimeout(i._expandNode(s,o[r-1]),300*a),a++);setTimeout((function(){null!=s.getNode(e)&&s.setCurrentKey(e)}),300*a)},_expandNode(e,t){return function(){e.getNode(t).expand()}},loadNode(e,t){const i=this;i.loading=!0;const s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_bpm_org_address_component_subjson",addressType:i.addressType,pid:"",highSecurityFilter:i.highSecurityFilter}};0===e.level?(s.data.pid=i.pid,s.data.parentType=""):(s.data.pid=e.data.id,s.data.parentType=e.data.type),a["a"].post(s).then((function(s){if(i.multiple){const e=i.addressType.indexOf("department")>-1,t=i.addressType.indexOf("user")>-1,o=i.addressType.indexOf("role")>-1,a=i.addressType.indexOf("position")>-1;for(let i=0;i<s.data.length;i++){const r=s.data[i];"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(s.data),i.loading=!1,0==e.level&&s.data.length>0){const e=i.$refs.tree;e.getNode(s.data[0].id).expand(),setTimeout((function(){const t=e.getNode(s.data[0].id).childNodes[0];null!=t&&t.expand()}),500)}})).catch(e=>{console.log(e)})},expandNode(e,t,i){},closeNode(e,t,i){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=(i("30d1"),i("2877")),d=Object(n["a"])(l,s,o,!1,null,"6de64a47",null);t["a"]=d.exports},"4fb3":function(e,t,i){"use strict";i("daf5")},5116:function(e,t,i){"use strict";i("46d1")},"657b":function(e,t,i){},"67de":function(e,t,i){"use strict";i("657b")},7071:function(e,t,i){},"717f":function(e,t,i){},7688:function(e,t,i){},"7bb4":function(e,t,i){"use strict";i("7688")},"7eb6":function(e,t,i){"use strict";i.r(t);var s=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:"280px"}},[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(i){return t("li",{staticStyle:{"margin-bottom":"7px"}},[e._l(e.fileMethodList.slice(4*(i-1),4*i),(function(i){return[t("div",{staticClass:"new-repository-item",style:{opacity:i.opacity,filter:i.filter,cursor:i.cursor},on:{click:function(t){i.clickFlag&&e.createDesigner(i.app,i.category,i.method)}}},[t("div",{staticStyle:{position:"relative",top:"9px"}},[t("div",{staticClass:"icon-div-repository",style:{"background-color":i.icon.color}},[t("i",{staticClass:"awsui-iconfont icon-dynamic-repository",domProps:{innerHTML:e._s(i.icon.code)}})]),t("div",{staticClass:"item-name text-general-color icon-text"},[t("label",{style:{cursor:i.cursor}},[e._v(e._s(i.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(i){return[t("div",{staticClass:"new-repository-item",style:{opacity:i.opacity,filter:i.filter,cursor:i.cursor},on:{click:function(t){i.clickFlag&&e.createFolder(i.method,i.methodName)}}},[t("div",{staticStyle:{position:"relative",top:"4px"}},[t("div",{staticClass:"icon-div-repository"},[t("i",{staticClass:"awsui-iconfont icon-fixed-repository",style:{color:i.icon.color},domProps:{innerHTML:e._s(i.icon.code)}})]),t("div",{staticClass:"item-name text-general-color fixed-icon-text"},[t("label",{style:{cursor:i.cursor}},[e._v(e._s(i.methodName))])])])])]})),t("div",{staticClass:"new-repository-item",staticStyle:{cursor:"pointer"},on:{click:e.importDesigners}},[t("div",{staticStyle:{position:"relative",top:"4px"}},[t("div",{staticClass:"icon-div-repository"},[t("i",{staticClass:"iconfont text-linker-color icon-fixed-repository"},[e._v("")])]),t("div",{staticClass:"item-name text-general-color fixed-icon-text"},[t("label",{staticStyle:{cursor:"pointer"}},[e._v("导入模型")])])])])],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:"hover"}},[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("el-checkbox-group",{on:{change:e.handleCheckedUserChange},model:{value:e.checkCreateUserIds,callback:function(t){e.checkCreateUserIds=t},expression:"checkCreateUserIds"}},e._l(e.createUserList,(function(i){return t("el-checkbox",{key:i.userId,attrs:{label:i.userId}},[t("div",{staticStyle:{display:"inline-flex","justify-content":"space-between",width:"280px","font-weight":"600"}},[t("span",[e._v(e._s(i.userName))]),t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:i.deptName,placement:"bottom"}},[t("span",{staticStyle:{"margin-left":"55px"}},[e._v(e._s(i.deptNameView))])])],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:"hover"}},[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("span",{staticStyle:{"margin-left":"145px"}},[e._v("("+e._s(e.currentUser.deptName)+")")])])])],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,"node-key":"id",lazy:"",load:e.loadNodeOrg},on:{"node-collapse":e.closeNodeOrg,"check-change":e.orgCheckChange},scopedSlots:e._u([{key:"default",fn:function({node:i,data:s}){return t("span",{},[t("i",{staticClass:"awsui-iconfont tree-content-icon tree-content-icon-padding",style:{color:i.data.icon.color},domProps:{innerHTML:e._s(i.data.icon.icon)}}),t("span",[e._v(e._s(i.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:"hover"}},[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(i){return t("el-checkbox",{key:i.methodId,attrs:{label:i.methodId}},[e._v(e._s(i.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)],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:i,data:s}){return t("span",{},[t("i",{staticClass:"awsui-iconfont tree-content-icon tree-content-icon-padding",style:{color:i.data.icon.color},domProps:{innerHTML:e._s(i.data.icon.icon)}}),t("span",{style:{"font-weight":s.id.length<36?"600":""}},[e._v(e._s(i.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",disabled:e.isDisabled},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(i){return t("awsui-form",{key:i.uuid,ref:i.uuid,refInFor:!0,attrs:{"label-width":"200px",rules:e.securityRules,model:i}},[t("awsui-form-item",{attrs:{label:i.name,prop:"securityLevel"}},[t("awsui-select",{staticStyle:{width:"70%"},attrs:{options:e.securityOptions},model:{value:i.securityLevel,callback:function(t){e.$set(i,"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=i("6c2f"),p=i("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,i){const s=this;s.category=t,s.obj=e,s.parentId=i,setTimeout(()=>{s.dialogVisible=!0,s.$nextTick(()=>{"org"!=s.category&&s.openFileSelect("file")})},300)},cancel(){this.clearParam()},importSave(){const e=this,t=e.$store.getters.getWsIdFn,i=e.$store.getters.getTeamIdFn;let s="";if("file"==e.type){if(0==e.fileList.length)return void e.$message({message:"请上传需要导入的文件",type:"warning"});const s=[];for(let t=0;t<e.fileList.length;t++)s.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(s),wsId:t,teamId:i,plCategory:e.category,parentId:e.parentId}};p["a"].post(o).then((function(t){if("ok"==t.result){if(e.isHighSecurity){let i=t.data.data.securityBindList;if(void 0!=i&&i.length>0){for(let t=0;t<i.length;t++){let s=i[t];e.securityFileList.push(s)}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"});s=e.orgFileList[0].name,e.loading=!0;const o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_repository_import_org",fileName:s,wsId:t,teamId:i,parentId:e.parentId}};p["a"].post(o).then((function(t){if("ok"==t.result){if(e.isHighSecurity){let i=t.data.securityBindList;if(void 0!=i&&i.length>0){for(let t=0;t<i.length;t++){let s=i[t];e.securityFileList.push(s)}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,i){},beforeUpload(e){},handleProgress(e,t,i){},handleSuccess(e,t,i){const s=this;s.fileList=[];let o={};for(let a=i.length-1;a>=0;a--){let e=i[a];o[e.name]||(s.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,i){this.orgFileList=[],this.orgFileList.push(t),this.orgUploadFileName=t.name,this.isOrgUploaded=!0},removeOrgUpload(){this.isOrgUploaded=!1,this.orgFileList=[],this.orgUploadFileName=""}}},u=h,g=(i("ffad"),i("2877")),m=Object(g["a"])(u,n,d,!1,null,"10fa5366",null),f=m.exports,y=i("1337"),v=i("2b0e"),b=new v["default"],_={name:"RepositoryTree",components:{RepositoryImport:f},props:{conditionData:{type:Object,default:null}},data(){let e=(e,t,i)=>{void 0===t?i(new Error("请选择文件密级")):i()};return{isDisabled:!1,multiple:!0,currentUserCheck:!0,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:!0,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:{filterNode(e,t){return!e||-1!==t.name.indexOf(e)},searchOrgNameFun(){this.$refs.orgTree.filter(this.searchOrgName)},handleCheckCurrentUserDeptChange(e){let t=[];t=[...this.checkOrgIds],e&&t.push(this.currentUser.deptId),this.$refs.orgTree.setCheckedKeys(t),this.$store.commit("setOrgIds",t),this.$store.getters.getPageFunction["repositoryMainList_initData"](),this.refreshNode("process")},orgCheckChange(e,t,i){let s=this.$refs.orgTree.getNode(e.id);t?(s.expanded&&(s.expanded=!1,s.loaded=!1),-1===this.checkOrgIds.indexOf(e.id)&&this.checkOrgIds.push(e.id)):(s.expanded=!1,s.isLeaf=!1,s.loaded=!1,-1!==this.checkOrgIds.indexOf(e.id)&&this.checkOrgIds.splice(this.checkOrgIds.indexOf(e.id),1)),this.$refs.orgTree.setCheckedKeys(this.checkOrgIds),this.$store.commit("setOrgIds",this.checkOrgIds),this.$store.getters.getPageFunction["repositoryMainList_initData"](),this.refreshNode("process")},loadNodeOrg(e,t){const i=this;i.loading=!0;const s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_bpm_org_address_component_subjson",addressType:"department",pid:"",highSecurityFilter:"",parentType:""}};0===e.level?(s.data.pid="",s.data.parentType=""):(s.data.pid=e.data.id,s.data.parentType=e.data.type),e.level>0&&-1!==i.checkOrgIds.indexOf(e.data.id)&&e.checked?t([]):p["a"].post(s).then((function(s){if(i.multiple){const e=i.addressType.indexOf("department")>-1,t=i.addressType.indexOf("user")>-1,o=i.addressType.indexOf("role")>-1,a=i.addressType.indexOf("position")>-1;for(let i=0;i<s.data.length;i++){const r=s.data[i];"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(s.data),i.loading=!1,0==e.level&&s.data.length>0){const e=i.$refs.orgTree;e.getNode(s.data[0].id).expand(),setTimeout((function(){const t=e.getNode(s.data[0].id).childNodes[0];null!=t&&t.expand()}),500)}})).catch(e=>{console.log(e)})},closeNodeOrg(e,t,i){t.childNodes=[],t.loaded=!1},handleCheckCurrentUserChange(e){let t=[];t=[...this.checkCreateUserIds],e&&t.push(this.currentUser.userId),this.$store.commit("setCreateUsers",t),this.$store.getters.getPageFunction["repositoryMainList_initData"](),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("process")},handleCheckedUserChange(e){let t=e.length;this.userCheckAll=t===this.createUserList.length,this.userIndeterminate=t>0&&t<this.createUserList.length;let i=[];this.currentUserCheck?(i.push(this.currentUser.userId),e.forEach(e=>{i.push(e)})):i=[...e],this.$store.commit("setCreateUsers",i),this.$store.getters.getPageFunction["repositoryMainList_initData"](),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()},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("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;e.methodIdOptions=e.conditionData.methodIds,e.methodIds=e.methodIdOptions,e.currentUser=e.conditionData.currentUser,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;let t=e.conditionData.historyCondition.methodIds.length,i=e.conditionData.historyCondition.createUsers.length,s=e.conditionData.historyCondition.createUsers.indexOf(e.currentUser.userId);-1!==s?(i-=1,e.currentUserCheck=!0):e.currentUserCheck=!1,e.checkAll=t===e.methodIds.length,e.userCheckAll=i===e.createUserList.length,e.isIndeterminate=t>0&&t<e.methodIds.length,e.userIndeterminate=i>0&&i<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,i){const s=this,o=s.$refs.tree,a=i.split(",");let r=1;for(let l=0;l<a.length;l++)l>0&&null!=o.getNode(a[l-1])&&(setTimeout(s._expandNode(o,a[l-1]),300*r),r++);setTimeout((function(){null!=o.getNode(t)&&o.setCurrentKey(t),s.openRepositoryList(e)}),300*r)},_expandNode(e,t){return function(){e.getNode(t).expand()}},openNode(e,t,i){0==e.folder?Object(y["d"])(this.$store.getters.getTeamIdFn,t.data.id,this.$store.state.sessionId):(this.closeCreatePopover(),this.openRepositoryList(t.data.currId),this.transferTreeNode(e))},loadNode(e,t){const i=this,s={url:"jd",data:{}};s.data.wsId=i.$store.getters.getWsIdFn,s.data.teamId=i.$store.getters.getTeamIdFn,s.data.createUsers=JSON.stringify(i.$store.getters.getCreateUsers),s.data.orgIds=JSON.stringify(i.$store.getters.getOrgIds),s.data.methodIds=JSON.stringify(i.$store.getters.getMethodIds),s.data.cmd="com.actionsoft.apps.coe.pal_processlevel_tree_data",0===e.level?s.data.pid="":s.data.pid=e.data.id,p["a"].post(s).then((function(s){if(t(s.data),0==e.level&&s.data.length>0){const e=i.$refs.tree;e.getNode(s.data[0].id).expand(),setTimeout((function(){const t=e.getNode(s.data[0].id).childNodes[0];null!=t&&t.expand()}),500)}})).catch(e=>{console.log(e),i.tableLoading=!1})},expandNode(e,t,i){},closeNode(e,t,i){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 i=e.$refs.tree.getCurrentNode().plCategory,s=e.$refs.tree.getCurrentNode().plMethodId,o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_create_method_list",category:i,methodId:s}};p["a"].post(o).then((function(t){if("ok"==t.result){const i=t.data.fileMethodList;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.fileMethodList=i;const s=t.data.folderMethodList;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.folderMethodList=s,void 0!=t.data.isHighSecurity&&(e.isHighSecurity=t.data.isHighSecurity,e.securityList=t.data.securityList,e.securityOptions=[],Object.keys(e.securityList).map(t=>{let i={value:t,label:e.securityList[t]};e.securityOptions.push(i)}))}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.$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,i=t.folderDialog.folderForm.desc;if(i.length>255)return void t.$message({message:"[描述]不允许超过255个字符",type:"warning"});const s=t.$refs.tree.getCurrentNode(),o=s.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:i,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={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_repository_designer_checkname",title:t.ModelsetUpDialog.systemForm.name,method:t.ModelsetUpDialog.systemForm.method}};p["a"].post(e).then((function(e){if("ok"==e.data.result){t.isDisabled=!0;const e=t.$refs.tree.getCurrentNode(),i=e.id,s=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:s,teamId:o,category:t.ModelsetUpDialog.systemForm.category,method:t.ModelsetUpDialog.systemForm.method,parentId:i,container:"_blank",name:t.ModelsetUpDialog.systemForm.name}};p["a"].post(a).then((function(e){if("ok"==e.result){t.ModelsetUpDialog.systemForm.uuid=e.data.id,t.ModelsetUpDialog.systemForm.parentId=i;const s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_repository_designer_CreateSystemModelBySelectType",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(s).then((function(e){"ok"==e.result?(t.isDisabled=!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.$message.error(e.msg)})).catch(e=>{console.log(e)})}})).catch(e=>{console.log(e)})}else t.$message({message:t.ModelsetUpDialog.systemForm.name+"名称重复,请重新输入!!!",type:"warning"})})).catch(e=>{console.log(e)})}})},createDesigner(e,t,i){const s=this;if(s.closeCreatePopover(),this.isHighSecurity){let e={uuid:1,name:"未命名文件",category:t,method:i};this.securityFileList.push(e),this.securityType="create",this.securityVisible=!0}else{const e=s.$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){s.ModelsetUpDialog.systemForm.category=t,s.ModelsetUpDialog.systemForm.repositoryPathData=e.data.repositoryPathData,s.ModelsetUpDialog.systemForm.parentId=o,s.createModelsetUp(i)})).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(),i=t.id,s=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:s,teamId:o,category:t.category,method:t.method,parentId:i,container:"_blank",securityLevel:t.securityLevel}};p["a"].post(r).then((function(t){if("ok"==t.result){e.refreshNode(),e.openRepositoryList(i);const s=t.data.id;Object(y["d"])(e.$store.getters.getTeamIdFn,s,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)}}},x=_,w=(i("4fb3"),Object(g["a"])(x,r,l,!1,null,"ddf1b86c",null)),S=w.exports,C=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(i){return[i.row.folder?t("div",{staticClass:"icon-div-repository"},[t("i",{staticClass:"awsui-iconfont icon-dynamic-repository",style:{color:i.row.icon.color,"font-size":"32px"},domProps:{innerHTML:e._s(i.row.icon.code)}})]):t("div",{staticClass:"icon-div-repository",style:{"background-color":i.row.icon.color}},[t("i",{staticClass:"awsui-iconfont icon-dynamic-repository",domProps:{innerHTML:e._s(i.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(i.row.id,i.row.versionId,i.row.pathData)}}},[e._v(" "+e._s(i.row.name)+" "),t("span",{staticStyle:{color:"#909399","margin-left":"12px"}},[e._v("( "+e._s(i.row.versionStatus.versionNo)+" )")])])])]}}])}),t("el-table-column",{attrs:{prop:"second",label:"修改日期",width:"350"},scopedSlots:e._u([{key:"default",fn:function(i){return[t("div",{staticClass:"div-update-date"},[t("p",[e._v(" "+e._s(i.row.updateUser)+" 于 "+e._s(i.row.updateDate)+"修改 "),t("span",{staticStyle:{"margin-left":"12px","font-size":"13px"},style:{color:i.row.versionStatus.stateColor}},[e._v("( "+e._s(i.row.versionStatus.state)+" )")])])])]}}])}),t("el-table-column",{attrs:{prop:"operate",label:"操作",align:"right",width:"100"},scopedSlots:e._u([{key:"default",fn:function(i){return[t("div",{staticClass:"div-operate text-second-color"},[i.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",i.row.versionId,i.row.id)}}},[e._v("")])])],1):e._e(),i.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",i.row.versionId,i.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"},[i.row.folder&&e.havingWritePerm?t("el-tooltip",{attrs:{placement:"bottom","hide-after":2e3}},[t("span",{attrs:{slot:"content"},slot:"content"},[e._v("修改"+e._s(i.row.methodName))]),t("i",{staticClass:"iconfont icon-operate",staticStyle:{display:"inline-block",cursor:"pointer"},on:{click:function(t){return e.openUpdateFolder(i.row.id,i.row.name,i.row.desc,i.row.methodId,i.row.methodName)}}},[e._v("")])]):e._e(),i.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(i.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(i){return[i.row.folder?t("div",{staticClass:"icon-div-repository"},[t("i",{staticClass:"awsui-iconfont icon-dynamic-repository",style:{color:i.row.icon.color,"font-size":"32px"},domProps:{innerHTML:e._s(i.row.icon.code)}})]):t("div",{staticClass:"icon-div-repository",style:{"background-color":i.row.icon.color}},[t("i",{staticClass:"awsui-iconfont icon-dynamic-repository",domProps:{innerHTML:e._s(i.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(i.row.id,i.row.versionId,i.row.pathData)}}},[e._v(" "+e._s(i.row.name)+" "),t("span",{staticStyle:{color:"#909399","margin-left":"12px"}},[e._v("( "+e._s(i.row.versionStatus.versionNo)+" )")])])])]}}])}),t("el-table-column",{attrs:{prop:"second",label:"修改日期",width:"350"},scopedSlots:e._u([{key:"default",fn:function(i){return[t("div",{staticClass:"div-update-date"},[t("p",[e._v(" "+e._s(i.row.updateUser)+" 于 "+e._s(i.row.updateDate)+"修改 "),t("span",{staticStyle:{"margin-left":"12px","font-size":"13px"},style:{color:i.row.versionStatus.stateColor}},[e._v("( "+e._s(i.row.versionStatus.state)+" )")])])])]}}])}),t("el-table-column",{attrs:{prop:"operate",label:"操作",align:"right",width:"100"},scopedSlots:e._u([{key:"default",fn:function(i){return[t("div",{staticClass:"div-operate text-second-color"},[i.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",i.row.versionId,i.row.id)}}},[e._v("")])])],1):e._e(),i.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",i.row.versionId,i.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"==i.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(i.row.id,i.row.name,i.row.desc,i.row.methodId,i.row.methodName)}}},[e._v("")])]):e._e(),"default"!=i.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(i.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)},I=[],D=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(i,s){return[t("div",{staticClass:"property-group"},[t("p",{staticStyle:{"padding-left":"5px"}},[t("b",[e._v(e._s(i.groupPathName))])])]),t("div",{staticStyle:{margin:"0 50px 0 30px"}},[e._l(i.data,(function(s,o){return["string"==s.type&&"PLNAME"==s.id?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[e._v(e._s(s.label))]),t("div",{staticClass:"property-value"},[t("el-input",{attrs:{size:e.size,disabled:s.readonly},on:{blur:function(t){return e.saveRepositoryNameVal(s.value)}},model:{value:s.value,callback:function(t){e.$set(s,"value",t)},expression:"item.value"}})],1)])]:e._e(),"string"==s.type&&"PLNAME"!=s.id?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[void 0!==s.isRequired&&s.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(s.label))]),t("div",{staticClass:"property-value"},[t("el-input",{attrs:{size:e.size,disabled:s.readonly},on:{blur:function(t){return e.saveStringPropVal(s.id,s.value,s.attrSource,s)}},model:{value:s.value,callback:function(t){e.$set(s,"value",t)},expression:"item.value"}})],1)])]:e._e(),"textarea"==s.type?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label",staticStyle:{"vertical-align":"bottom"}},[void 0!==s.isRequired&&s.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(s.label))]),t("div",{staticClass:"property-value"},[t("el-input",{attrs:{size:e.size,type:"textarea",rows:2,placeholder:"请输入内容",disabled:s.readonly},on:{blur:function(t){return e.saveStringPropVal(s.id,s.value,s.attrSource,s)}},model:{value:s.value,callback:function(t){e.$set(s,"value",t)},expression:"item.value"}})],1)])]:e._e(),"number"==s.type?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[void 0!==s.isRequired&&s.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(s.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:s.readonly},on:{change:function(t){return e.saveNumberPropVal(s.id,s.value,s.attrSource,s)}},model:{value:s.value,callback:function(t){e.$set(s,"value",t)},expression:"item.value"}})],1)])]:e._e(),"boolean"==s.type?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[void 0!==s.isRequired&&s.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(s.label))]),t("div",{staticClass:"property-value"},[[t("el-select",{staticStyle:{width:"100%"},attrs:{disabled:s.readonly,clearable:"",size:e.size,placeholder:"请选择"},on:{change:function(t){return e.saveSingleSelectVal(s.id,s.value,s.attrSource,s)}},model:{value:s.value,callback:function(t){e.$set(s,"value",t)},expression:"item.value"}},e._l(s.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)]],2)])]:e._e(),"select"==s.type?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[void 0!==s.isRequired&&s.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(s.label))]),t("div",{staticClass:"property-value"},[[t("el-select",{staticStyle:{width:"100%"},attrs:{disabled:s.readonly,clearable:"",size:e.size,placeholder:"请选择"},on:{change:function(t){return e.saveSingleSelectVal(s.id,s.value,s.attrSource,s)}},model:{value:s.value,callback:function(t){e.$set(s,"value",t)},expression:"item.value"}},e._l(s.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)]],2)])]:e._e(),"select_m"==s.type?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[void 0!==s.isRequired&&s.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(s.label))]),t("div",{staticClass:"property-value"},[[t("el-select",{staticStyle:{width:"100%"},attrs:{disabled:s.readonly,size:e.size,multiple:"",placeholder:"请选择"},on:{change:function(t){return e.saveMultipleSelectVal(s.id,s.value,s.attrSource,s)}},model:{value:s.value,callback:function(t){e.$set(s,"value",t)},expression:"item.value"}},e._l(s.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)]],2)])]:e._e(),"deptAddress"==s.type?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[void 0!==s.isRequired&&s.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(s.label))]),t("div",{staticClass:"property-value"},[t("el-input",{attrs:{size:e.size,disabled:s.readonly,readonly:""},nativeOn:{click:function(t){return e.choiceBpmOrgAddressComponent(i.groupPath,s.type,s.id,s.readonly,s.isRequired,s.label)}},model:{value:s.value,callback:function(t){e.$set(s,"value",t)},expression:"item.value"}})],1)])]:e._e(),"userAddress"==s.type?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[void 0!==s.isRequired&&s.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(s.label))]),t("div",{staticClass:"property-value"},[t("el-input",{attrs:{size:e.size,disabled:s.readonly,readonly:""},nativeOn:{click:function(t){return e.choiceBpmOrgAddressComponent(i.groupPath,s.type,s.id,s.readonly,s.isRequired,s.label)}},model:{value:s.value,callback:function(t){e.$set(s,"value",t)},expression:"item.value"}})],1)])]:e._e(),"relationOrg"==s.type?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[void 0!==s.isRequired&&s.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(s.label))]),t("div",{staticClass:"property-value"},[t("el-input",{attrs:{size:e.size,disabled:s.readonly,readonly:""},model:{value:s.value,callback:function(t){e.$set(s,"value",t)},expression:"item.value"}})],1)])]:e._e(),"awsorg"==s.type?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[void 0!==s.isRequired&&s.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(s.label))]),t("div",{staticClass:"property-value"},[t("el-input",{attrs:{size:e.size,disabled:s.readonly,readonly:""},nativeOn:{click:function(t){return e.choiceAwsOrgComponent(s.ref,s.type,s.id,s.label,s.readonly,s.isRequired)}},model:{value:s.value,callback:function(t){e.$set(s,"value",t)},expression:"item.value"}})],1)])]:e._e(),"relation"==s.type?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[void 0!==s.isRequired&&s.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(s.label))]),t("div",{staticClass:"property-value"},[t("el-input",{attrs:{size:e.size,disabled:s.readonly,readonly:""},nativeOn:{click:function(t){return e.choiceRelationComponent(s.ref,s.type,s.id,s.label,s.readonly,s.fileIds,s.shapeIds,s.isRequired)}},model:{value:s.value,callback:function(t){e.$set(s,"value",t)},expression:"item.value"}})],1)])]:e._e(),"link"==s.type&&"PLNAME"!=s.id?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[void 0!==s.isRequired&&s.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(s.label))]),t("div",{staticClass:"property-value"},[t("el-input",{attrs:{size:e.size,disabled:s.readonly},on:{blur:function(t){return e.saveStringPropVal(s.id,s.value,s.attrSource,s)}},model:{value:s.value,callback:function(t){e.$set(s,"value",t)},expression:"item.value"}})],1)])]:e._e(),"DateTimePicker"==s.type?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[void 0!==s.isRequired&&s.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(s.label))]),t("div",{staticClass:"property-value"},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"请选择日期时间",disabled:s.readonly},on:{blur:function(t){return e.saveStringPropVal(s.id,s.value,s.attrSource,s)}},model:{value:s.value,callback:function(t){e.$set(s,"value",t)},expression:"item.value"}})],1)])]:e._e(),"table"==s.type?[t("div",{staticClass:"property-item"},[t("label",{staticClass:"property-label"},[void 0!==s.isRequired&&s.isRequired?t("span",{staticClass:"required"}):e._e(),e._v(e._s(s.label))]),t("div",{staticClass:"property-value"},[t("el-input",{attrs:{size:e.size,disabled:s.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(s.id,s.value,s.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(i){return t("tr",{key:i.id},[t("td",[t("el-tooltip",{attrs:{placement:"top-start"}},[t("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(i.name))]),t("el-input",{staticClass:"contentInput",attrs:{size:"mini"},model:{value:i.name,callback:function(t){e.$set(i,"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(i.desc))]),t("el-input",{staticClass:"contentInput",attrs:{size:"mini"},model:{value:i.desc,callback:function(t){e.$set(i,"desc",t)},expression:"item.desc"}})],1)],1),t("td",[t("span",{staticStyle:{color:"red","text-decoration":"underline"},on:{click:function(t){return e.deleteTableTr(i.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)},k=[],F=i("4cbb");F["a"].install=function(e){e.component(F["a"].name,F["a"])};var R=F["a"],T=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:i}){return[t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start"}},[t("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(i.pathName))]),t("span",[e._v(e._s(i.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:i,data:s}){return t("span",{},[t("i",{staticClass:"awsui-iconfont tree-content-icon tree-content-icon-padding",style:{color:i.data.icon.color},domProps:{innerHTML:e._s(i.data.icon.icon)}}),t("span",[e._v(e._s(i.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(i){return t("el-checkbox",{key:i.id,staticClass:"checkbox-item",attrs:{label:i.id,disabled:i.isDisabled}},[e._v(e._s(i.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(i){return t("el-radio",{key:i.id,staticClass:"redio-item",attrs:{label:i.id,disabled:i.isDisabled}},[e._v(e._s(i.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(i){return[t("div",{staticClass:"icon-delete-display"},[t("i",{staticClass:"iconfont",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.remove(i.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)},N=[],$={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 i=0;i<this.shapeTempData.length;i++){const s=this.shapeTempData[i];if(""!=s.name){let i=(s.name+"").toLocaleLowerCase();-1!=i.indexOf(e)&&t.push(JSON.parse(JSON.stringify(s)))}}this.shapeData=t}else this.shapeData=JSON.parse(JSON.stringify(this.shapeTempData))},treeSearchSelect(e){this.queryTreeByIdAndPath(e.id,e.path)},treeSearch(e,t){const i=this;if(void 0!=e&&""!=e.trim()){const s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_repository_tree_component_search",wsId:i.wsId,teamId:i.teamId,categorys:i.categorys,rootId:i.rootId,name:e}};p["a"].post(s).then((function(e){"ok"==e.result&&e.data.length>0?(clearTimeout(i.timeout),i.timeout=setTimeout(()=>{t(e.data)},3e3*Math.random())):clearTimeout(i.timeout)})).catch(e=>{console.log(e)})}else clearTimeout(i.timeout)},queryTreeByIdAndPath(e,t){const i=this,s=i.$refs.tree,o=t.split(",");let a=1;for(let r=0;r<o.length;r++)r>0&&null!=s.getNode(o[r-1])&&(setTimeout(i._expandNode(s,o[r-1]),300*a),a++);setTimeout((function(){null!=s.getNode(e)&&s.setCurrentKey(e)}),300*a)},_expandNode(e,t){return function(){e.getNode(t).expand()}},loadNode(e,t){const i=this,s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_repository_tree_component_subjson",wsId:i.wsId,teamId:i.teamId,categorys:i.categorys,pid:""}};0===e.level?s.data.pid=i.pid:s.data.pid=e.data.id,p["a"].post(s).then((function(s){for(let e=0;e<s.data.length;e++)s.data[e].id.length<36?s.data[e].disabled=!0:""!=i.categorys&&""!=i.methods?i.methods.indexOf(s.data[e].plMethodId)>-1?s.data[e].disabled=!1:s.data[e].disabled=!0:""!=i.categorys?i.categorys.indexOf(s.data[e].plCategory)>-1?s.data[e].disabled=!1:s.data[e].disabled=!0:i.methods.indexOf(s.data[e].plMethodId)>-1?s.data[e].disabled=!1:s.data[e].disabled=!0;if(t(s.data),i.initTreeCheck(),0==e.level&&s.data.length>0){const e=i.$refs.tree;e.getNode(s.data[0].id).expand(),setTimeout((function(){const t=e.getNode(s.data[0].id).childNodes[0];null!=t&&t.expand()}),500)}})).catch(e=>{console.log(e)})},expandNode(e,t,i){},closeNode(e,t,i){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 i=0;i<e.length;i++)null!=t.getNode(e[i].id)&&t.setChecked(e[i].id,!0)}else{const e=this.result,t=this.$refs.tree;for(let i=0;i<e.length;i++)null!=t.getNode(e[i].id)&&t.setCurrentKey(e[i].id)}else if("shapeAndFile"==e){const e=this.result,t=this.$refs.tree;for(let i=0;i<e.length;i++)0==e[i].children.length&&null!=t.getNode(e[i].id)&&t.setChecked(e[i].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 i={};i.id=e.id,i.versionId=e.versionId,i.name=e.name,i.children=[],t.push(i),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 i=t[e].children;for(let e=0;e<i.length;e++)this.remove(i[e].shapeId)}if(!this.isFileExist(t,e.id,e.versionId)){const i={};i.id=e.id,i.versionId=e.versionId,i.name=e.name,i.children=[],t.push(i),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,i=this.relationType;if("file"==i){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 i=this.result,s={};s.id=e.id,s.versionId=e.versionId,s.name=e.name,s.children=[],i.push(s),this.initTableData()}}else{const t=this;t.shapeSearchKey="";const i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_repository_tree_component_shapejson",id:e.id}};let s=!0;s=""!=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(i).then((function(e){if("ok"==e.result){const i=e.data.list,o=[];for(let e=0;e<i.length;e++){const a={id:i[e].id,name:i[e].name,fileId:i[e].fileId,fileName:i[e].fileName,versionId:i[e].versionId,isDisabled:s};o.push(a),t.shapeRecords[i[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 i=0;i<e.length;i++){const s={id:e[i].id,name:e[i].name,versionId:e[i].versionId};t.push(s)}this.tableData=t}else if("shapeAndFile"==e){const e=this.result,t=[];for(let i=0;i<e.length;i++){const s=e[i],o=s.children;if(0==o.length){const s={id:e[i].id,name:e[i].name,versionId:e[i].versionId};t.push(s)}else for(let e=0;e<o.length;e++){const i=o[e],a={id:i.shapeId,name:i.name,fileId:s.id,fileName:s.name,versionId:s.versionId};t.push(a)}}this.tableData=t}else{const e=this.result,t=[];for(let i=0;i<e.length;i++){const s=e[i],o=s.children;for(let e=0;e<o.length;e++){const i=o[e],a={id:i.shapeId,name:i.name,fileId:s.id,fileName:s.name,versionId:s.versionId};t.push(a)}}this.tableData=t}},isFileExist(e,t,i){for(let s=0;s<e.length;s++){const t=e[s];if(t.versionId==i)return!0}return!1},remove(e){const t=this.relationType;if("file"==t){const t=this.result;for(let i=0;i<t.length;i++){const s=t[i];if(s.id==e){t.splice(i,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 i=0;i<t.length;i++){const s=t[i];if(s.id==e){this.$refs.tree.setChecked(e,!1),t.splice(i,1);break}{let o=this.shapeRecords[e],a=t[i].children;if(o&&s.id==o.fileId)for(let s=0;s<a.length;s++)if(a[s].shapeId==e&&(a.splice(s,1),0==a.length&&t.splice(i,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 i=this.result,s=(t.id,t.name,t.fileId);t.fileName,t.versionId;for(let t=0;t<i.length;t++){const o=i[t];if(o.id==s){const s=o.children;for(let t=0;t<s.length;t++)if(s[t].shapeId==e){s.splice(t,1);break}if(0==s.length){i.splice(t,1);break}}}}for(let i=0;i<this.shapeChecked.length;i++)if(this.shapeChecked[i]==e){this.shapeChecked.splice(i,1);break}}else this.result=[],this.shapeSelected="";this.initTableData()},handleChangeRadioShape(e){const t=this.shapeRecords[e];if(t){const e=t.id,i=t.name,s=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=s,l.versionId=a,l.name=o,l.children=[];const n={shapeId:e,name:i};l.children.push(n),r.push(l),this.initTableData()}},handleChangeCheckShape(e){if("shapeAndFile"==this.relationType)for(let i=0;i<this.result.length;i++)this.result[i].children.length>0&&this.result.splice(i,1);else this.result=[];const t=this.result;for(let i=0;i<e.length;i++){const s=e[i],o=this.shapeRecords[s];if(o){const e=o.id,i=o.name,s=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==s){l=!0;const t={shapeId:e,name:i};-1===a.children.findIndex(t=>t.shapeId==e)&&a.children.push(t)}}if(!l){const o={};o.id=s,o.versionId=r,o.name=a,o.children=[];const l={shapeId:e,name:i};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 i=[];for(let e=0;e<t.data.length;e++){const s=t.data[e],o={};o.id=s.id,o.versionId=s.versionId,o.name=s.name,o.children=[],i.push(o)}e.result=i,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 i=e.result[t].children;for(let t=0;t<i.length;t++)e.shapeChecked.push(i[t].shapeId)}}else{e.result=t.data.data;for(let t=0;t<e.result.length;t++){const i=e.result[t].children;for(let t=0;t<i.length;t++)e.shapeSelected=i[t].shapeId}}e.initTableData()}})).catch(e=>{console.log(e)})}}},watch:{visible(e){this.dialogVisible=e,e&&(this.clearAllParam(),this.pid=this.rootId,this.initData())}}},P=$,O=(i("7bb4"),Object(g["a"])(P,T,N,!1,null,"3b59fe57",null)),V=O.exports;V.install=function(e){e.component(V.name,V)};var L=V,M={name:"RepositoryInfoProperty",components:{BPMOrgAddress:R,PalRelationAddress:L},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 i=t.data.propertyData;i.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 i=JSON.parse(t.ref);t.value.table[0]={id:"table_head",name:i.firstColumn,desc:i.secondColumn}}})}),e.propertyData=i}else e.$message.error(t.msg)})).catch(e=>{console.log(e)})},openTableDialog(e,t,i){this.tableDialogVisible=!0,this.dialogTableId=e,this.dialogTableOldValue=JSON.parse(JSON.stringify(t)),this.dialogTableNewValue=t,this.dialogTableAttrSource=i},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,i,s){if(void 0==t&&(t=""),void 0!==s.isRequired&&s.isRequired&&""==t)return this.$message({message:`[${s.label}]不允许为空`,type:"warning"}),!1;i&&"default"==i?this.saveDefaultpropToDb(e,t):this.saveCustomPropToDb(e,t)},saveNumberPropVal(e,t,i,s){if(void 0==t&&(t=""),void 0!==s.isRequired&&s.isRequired&&""==t)return this.$message({message:`[${s.label}]不允许为空`,type:"warning"}),!1;i&&"default"==i?this.saveDefaultpropToDb(e,t):this.saveCustomPropToDb(e,t)},saveSingleSelectVal(e,t,i,s){if(void 0==t&&(t=""),void 0!==s.isRequired&&s.isRequired&&""==t)return this.$message({message:`[${s.label}]不允许为空`,type:"warning"}),!1;i&&"default"==i?this.saveDefaultpropToDb(e,t):this.saveCustomPropToDb(e,t)},saveMultipleSelectVal(e,t,i,s){if(void 0!==s.isRequired&&s.isRequired&&""==t)return this.$message({message:`[${s.label}]不允许为空`,type:"warning"}),!1;t=t.join(","),i&&"default"==i?this.saveDefaultpropToDb(e,t):this.saveCustomPropToDb(e,t)},saveDefaultpropToDb(e,t){const i=this,s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_default_attr_content_save",uuid:i.id,josnKey:e,josnContent:t}};p["a"].post(s).then((function(e){"ok"==e.result?i.initData():i.$message.error(e.msg)})).catch(e=>{console.log(e)})},saveCustomPropToDb(e,t){const i=this,s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_more_attr_content_save",uuid:i.id,josnKey:e,josnContent:t}};p["a"].post(s).then((function(e){"ok"==e.result?i.initData():i.$message.error(e.msg)})).catch(e=>{console.log(e)})},choiceRelationComponent(e,t,i,s,o,a,r,l){if(!o){this.currPropertyId=i,this.currPropertyType=t,this.currPropertyLabel=s;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=s,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,i,s,o,a){s||(this.currPropertyId=i,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,i,s,o,a){o||(this.currPropertyId=i,this.currPropertyType=t,this.currPropertyLabel=s,this.title=s,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 i=0;i<e.length;i++)t.push({name:e[i].name,id:e[i].id,type:e[i].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},i=this.currRelationType;if("file"==i){const i=[];for(let t=0;t<e.length;t++)i.push(e[t].versionId);t.relationFileId=i.join(",")}else if("shapeAndFile"==i){let i=[],s=[],o=[];for(let t=0;t<e.length;t++)if(0==e[t].children.length)i.push(e[t].versionId),o.push(e[t].name),s.push(" ");else for(let a=0;a<e[t].children.length;a++)i.push(e[t].versionId),s.push(e[t].children[a].shapeId),o.push(e[t].children[a].name);t.relationFileId=i.join(","),t.relationShapeId=s.join(","),t.relationShapeText=o.join(",")}else{const i=[],s=[],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];i.push(a.id),s.push(t.shapeId),o.push(t.name)}}t.relationFileId=i.join(","),t.relationShapeId=s.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,i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_repository_designer_updatetitle",uuid:t.id,title:e}};p["a"].post(i).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)})}}},U=M,A=(i("bc48"),Object(g["a"])(U,D,k,!1,null,"04e03046",null)),j=A.exports,q={name:"RepositoryMainList",components:{RepositoryInfoProperty:j},props:{refreshTreeParentNode:{type:Function,default:null}},data(){return{mainHeight:parseInt(this.$store.getters.getTopMainHeightFn)+"px",dataLoading:!1,defaultCategoryName:"",recentData:[],commonData:[],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();let e=this;this.$nextTick(()=>{let t={};for(const i in e)if("initData"===i){let s="repositoryMainList_initData";t[s]=e[i];break}this.$store.commit("setPageFunction",t)})},methods:{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,i,s,o){"default"==s?(this.folderDialog.folderForm.name=t,this.folderDialog.folderForm.desc=i,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,i=t.folderDialog.folderForm.desc;if(i.length>255)return void t.$message({message:"[描述]不允许超过255个字符",type:"warning"});const s=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:i,id:s}};p["a"].post(l).then((function(e){"ok"==e.result&&(t.initData(),t.refreshTreeParentNode&&t.refreshTreeParentNode(s),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,i){if("0"==e){const e=this,i={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(i).then((function(t){"ok"==t.result&&e.initData()})).catch(e=>{console.log(e)})}else{const e=this,i={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(i).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,i){const s=[];for(let o=0;o<i.length;o++){const e=i[o].versionId;s.push(e)}this.$router.push({path:"/Repository",query:{id:e,versionId:t,path:s.join(","),param:Math.random()}})}},computed:{listenTopMainHeight(){return this.$store.getters.getTopMainHeightFn}},watch:{listenTopMainHeight:function(e,t){this.mainHeight=parseInt(e)+"px"}}},z=q,H=(i("5116"),Object(g["a"])(z,C,I,!1,null,"01f9f3b0",null)),B=H.exports,W=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(i,s){return[s!=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(i.id,i.versionId)}}},[e._v(e._s(i.name))]),t("i",{staticClass:"awsui-iconfont"},[e._v("  ")])]):e._e(),s==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(i.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.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.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.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.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("导出")])])]),(e.isOlderVersion?e.havingRemovePerm:e.filePerm.havingRemovePerm)?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.batchAppVisible&&e.uuid.length<36?t("div",{staticStyle:{float:"right",position:"relative",right:"10px",display:"inline-block"}},[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(),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(i){return[i.row.folder?t("div",{staticClass:"icon-div-repository rowDropFilter"},[t("i",{staticClass:"awsui-iconfont icon-dynamic-repository",style:{color:i.row.icon.color,"font-size":"32px"},domProps:{innerHTML:e._s(i.row.icon.code)}})]):t("div",{staticClass:"icon-div-repository rowDropFilter",style:{"background-color":i.row.icon.color}},[t("i",{staticClass:"awsui-iconfont icon-dynamic-repository",domProps:{innerHTML:e._s(i.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(i.row.id,i.row.versionId,i.row.childSize,i.row.folder)}}},[e._v(" "+e._s(i.row.name)+" "),t("span",{staticStyle:{color:"#909399","margin-left":"12px"}},[e._v("( "+e._s(i.row.versionStatus.versionNo)+" )")])])])]}}])}),t("el-table-column",{attrs:{prop:"second",label:"修改日期",width:"300"},scopedSlots:e._u([{key:"default",fn:function(i){return[t("div",{staticClass:"div-update-date"},[t("p",[e._v(" "+e._s(i.row.updateUser)+" 于 "+e._s(i.row.updateDate)+"修改 "),t("span",{staticStyle:{"margin-left":"12px","font-size":"13px"},style:{color:i.row.versionStatus.stateColor}},[e._v("( "+e._s(i.row.versionStatus.state)+" )")])])])]}}])}),t("el-table-column",{attrs:{"class-name":"rowDropFilter",prop:"operate",label:"操作",align:"right",width:"135"},scopedSlots:e._u([{key:"default",fn:function(i){return[t("div",{staticStyle:{width:"16px",display:"inline-block"}},[t("div",{staticClass:"operate-icon-display"},[i.row.folder&&e.havingWritePerm?t("el-tooltip",{attrs:{placement:"bottom","hide-after":2e3}},[t("span",{attrs:{slot:"content"},slot:"content"},[e._v("修改"+e._s(i.row.methodName))]),t("i",{staticClass:"iconfont icon-operate",staticStyle:{display:"inline-block",cursor:"pointer"},on:{click:function(t){return e.openUpdateFolder(i.row.id,i.row.name,i.row.desc,i.row.methodId,i.row.methodName)}}},[e._v("")])]):e._e(),i.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(i.row.id)}}},[e._v("")])])],1)]),t("div",{staticStyle:{width:"16px",margin:"0 15px",display:"inline-block"}},[i.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",i.row.versionId,i.row.id)}}},[e._v("")])])],1):e._e(),i.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",i.row.versionId,i.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"},[i.row.folder&&e.havingWritePerm?t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.openUpdateFolder(i.row.id,i.row.name,i.row.desc,i.row.methodId,i.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(i.row.methodName))])])]):e._e(),i.row.folder?e._e():t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.openDesigner(i.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"==i.row.methodId&&e.havingWritePerm||"default"!=i.row.methodId?t("el-dropdown-item",{attrs:{divided:""}}):e._e(),i.row.isFavorite?t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.setFavorite("0",i.row.versionId,i.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",i.row.versionId,i.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.havingWritePerm?t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.moveFile(i.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.havingWritePerm?t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.copyFiles(i.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(i.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.isOlderVersion?e.havingRemovePerm:e.filePerm.havingRemovePerm)?t("el-dropdown-item",{staticStyle:{height:"30px","line-height":"30px"},attrs:{divided:""},nativeOn:{click:function(t){return e.removeFiles(i.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:{height:parseInt(e.mainHeight)-5+"px","background-color":"#FAFAFB",position:"relative",top:"5px"},attrs:{width:"280px"}},[t("div",{staticStyle:{"border-left":"1px solid #f2f2f2",width:"270px",height:"100%"}},[t("div",[t("div",{staticStyle:{width:"240px","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)?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("版本管理")])]),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.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?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))])]):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.isOlderVersion?e.havingRemovePerm:e.filePerm.havingRemovePerm)?[e.currRepositoryDetail.folder?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))])]):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._e()],2)])])]):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(),t("awsui-button",{staticClass:"button-general-color-reverse",staticStyle:{width:"100px"},attrs:{plain:""},on:{click:function(t){return e.exportFiles()}}},[e._v("导出")]),!e.isOlderVersion||e.havingRemovePerm?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}})],1)},E=[],J=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)},K=[],G=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(i){return t("span",{style:{color:i.row.stateColor}},[e._v(" "+e._s(i.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(i){return t("span",{},[e._v(" "+e._s(i.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(i){return t("span",{style:{color:i.row.bpmStateColor}},[e._v(" "+e._s(i.row.bpmState)+" ")])}}],null,!1,2058353434)})]]:[t("el-table-column",{attrs:{prop:"state",label:"状态",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(i){return t("span",{style:{color:i.row.stateColor}},[e._v(" "+e._s(i.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(i){return[t("el-switch",{staticStyle:{display:"block"},attrs:{"active-color":"#4E7FF9","inactive-color":"#E2E2E2"},on:{change:function(t){return e.changeRepositoryUseStatus(i.row.id,i.row.isUse)}},model:{value:i.row.isUse,callback:function(t){e.$set(i.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(i){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(i.row.id,i.row.versionNo)}}}):e._e(),!(e.isOlderVersion?e.havingRemovePerm:e.filePerm.havingRemovePerm)||e.isCorrelatebpms||i.row.isUse||i.row.isPublish||i.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(i.row.id,i.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("大版本")]),t("br"),t("el-radio",{staticStyle:{"margin-top":"5px"},attrs:{label:!1}},[e._v("小版本")])],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)},Y=[],Q={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:"",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 i=this;if(t){let t;for(var s in i.tableData)if(i.tableData[s].isUse&&i.tableData[s].id!=e){t=i.tableData[s].id;break}const o=i.$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:i.$store.getters.getWsIdFn,teamId:i.$store.getters.getTeamIdFn}};p["a"].post(a).then((function(e){"ok"==e.result?(i.$message({message:"切换成功",type:"success"}),i.userId=e.data.id,i.initData(),o.close(),i.repositoryRefresh&&t&&i.repositoryRefresh(t)):(o.close(),i.$message(e.msg))})).catch(e=>{console.log(e)})}else for(var s in i.tableData)i.tableData[s].id==e&&(i.tableData[s].isUse=!0)},createNewVersion(e,t){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 i=this;i.$confirm("确定要删除吗?","提示",{confirmButtonText:"确定",confirmButtonClass:"button-general-color",cancelButtonText:"取消",type:"warning"}).then(()=>{const t=i.$loading({lock:!0,text:"正在放入回收站...",spinner:"el-icon-loading",background:"hsla(0,0%,100%,.9)"}),s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_repository_designer_version_manager_delete",id:e,wsId:i.$store.getters.getWsIdFn,teamId:i.$store.getters.getTeamIdFn}};p["a"].post(s).then((function(e){"ok"==e.result?(i.$message({message:"已放入回收站",type:"success"}),i.initData(),t.close()):(t.close(),i.$message(e.msg))})).catch(e=>{console.log(e)})}).catch(()=>{})}}},X=Q,Z=(i("67de"),Object(g["a"])(X,G,Y,!1,null,"59d477d1",null)),ee=Z.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(i){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(i.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(i.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(i.row.name,i.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(i){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(i.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(i.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(i){return t("awsui-form",{key:i.uid,ref:i.uid,refInFor:!0,attrs:{"label-width":"200px",id:"securityDialog",rules:e.securityRules,model:i}},[t("awsui-form-item",{attrs:{label:i.name,prop:"securityLevel"}},[t("awsui-select",{staticStyle:{width:"70%"},attrs:{options:e.securityOptions},model:{value:i.securityLevel,callback:function(t){e.$set(i,"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)])},ie=[],se={name:"RepositoryInfoUpfile",components:{PALUpload:c["a"]},props:["id","versionId","isUse","isPublish","isStop","isApproval"],data(){var e=(e,t,i)=>{void 0===t?i(new Error("请选择文件密级")):i()};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 i=t.data.list;let s=[];for(let o=0;o<i.length;o++){const a=i[o],r={id:a.uuid,name:a.fileName,url:a.url,securityLevel:e.isHighSecurity?t.data.securityList[a.securityLevel]:""};s.push(r)}e.fileTable=s}})).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 i=t.data.list;let s=[];for(let t=0;t<i.length;t++){const o=i[t],a={id:o.uuid,name:o.fileName,url:o.url,securityLevel:e.isHighSecurity?e.securityList[o.securityLevel]:""};s.push(a)}e.relationFileTable=s}})).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,i){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,i={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(i).then((function(i){"ok"==i.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 i=this,s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_upfile_add",pl_uuid:i.id,shape_uuid:"",type:"file",fileName:t.name,download:1,securityLevel:void 0==t.securityLevel?"":t.securityLevel}};p["a"].post(s).then((function(e){"ok"==e.result?(i.$message({message:"["+t.name+"]上传成功",type:"success"}),i.initData()):i.$message.error("["+t.name+"]上传失败")})).catch(e=>{console.log(e)})}this.securityVisible=!1}},beforeUpload(e){if(e.size>268435456)return this.$message({message:"文件["+e.name+"]不允许大于256M上传失败",type:"warning"}),!1;for(let t=0;t<this.fileTable.length;t++){const i=this.fileTable[t];if(i.name==e.name)return this.$message({message:"文件["+e.name+"]已存在,不允许重复上传",type:"warning"}),!1}},readFile(e){const t=this,i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_upfile_read",uuid:e}};p["a"].post(i).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,i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_upfile_del",uuid:t}};p["a"].post(i).then((function(t){"ok"==t.result?(e.$message({message:"删除成功",type:"success"}),e.initData()):e.$message.error("删除失败")})).catch(e=>{console.log(e)})}).catch(()=>{})}}},oe=se,ae=(i("ab63"),Object(g["a"])(oe,te,ie,!1,null,"5fba02ef",null)),re=ae.exports,le={name:"RepositoryInfo",components:{RepositoryInfoProperty:j,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,i,s,o,a,r,l,n){this.id=t,this.versionId=i,this.type=s,this.activeName=s,this.initInfoChildType(s),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=(i("8005"),Object(g["a"])(ne,J,K,!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:i}){return[t("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start"}},[t("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(i.pathName))]),t("span",[e._v(e._s(i.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:i,data:s}){return t("span",{},[t("i",{staticClass:"awsui-iconfont tree-content-icon tree-content-icon-padding",style:{color:i.data.icon.color},domProps:{innerHTML:e._s(i.data.icon.icon)}}),t("span",[e._v(e._s(i.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,i){},treeSearchSelect(e){this.queryTreeByIdAndPath(e.id,e.versionId,e.path)},treeSearch(e,t){const i=this;if(void 0!=e&&""!=e.trim()){const s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_repository_tree_component_search",wsId:i.wsId,teamId:i.teamId,categorys:i.categorys,rootId:i.rootId,name:e}};p["a"].post(s).then((function(e){"ok"==e.result&&e.data.length>0?(clearTimeout(i.timeout),i.timeout=setTimeout(()=>{t(e.data)},3e3*Math.random())):clearTimeout(i.timeout)})).catch(e=>{console.log(e)})}else clearTimeout(i.timeout)},queryTreeByIdAndPath(e,t,i){const s=this,o=s.$refs.tree,a=i.split(",");let r=1;for(let l=0;l<a.length;l++)l>0&&null!=o.getNode(a[l-1])&&(setTimeout(s._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 i=this;i.loading=!0;const s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_repository_tree_component_subjson",wsId:i.wsId,teamId:i.teamId,categorys:i.categorys,pid:""}};0===e.level?s.data.pid=i.pid:s.data.pid=e.data.id,p["a"].post(s).then((function(s){if(t(s.data),i.loading=!1,0==e.level&&s.data.length>0){const e=i.$refs.tree;e.getNode(s.data[0].id).expand(),setTimeout((function(){const t=e.getNode(s.data[0].id).childNodes[0];null!=t&&t.expand()}),500)}})).catch(e=>{console.log(e)})},expandNode(e,t,i){},closeNode(e,t,i){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=(i("1d6e"),Object(g["a"])(ge,pe,he,!1,null,"07ba25f0",null)),fe=me.exports,ye=i("aa47"),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=[],_e={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=_e,we=Object(g["a"])(xe,ve,be,!1,null,"43ccbcf0",null),Se=we.exports,Ce=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}})])},Ie=[],De={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}}},ke=De,Fe=Object(g["a"])(ke,Ce,Ie,!1,null,"e4f255d0",null),Re=Fe.exports,Te={name:"RepositoryList",components:{RepositoryInfoProperty:j,PALRepositoryTree:fe,RepositoryInfo:ce,BatchCreate:Se,BatchReplace:Re},props:{uuid:{type:String,default:""},refreshTreeParentNode:{type:Function,default:null},refreshTreeNode:{type:Function,default:null},treeNode:{type:Object,default:null}},data(){return{loading:!1,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,havingWritePerm:!1,havingRemovePerm:!1,havingVersionManagePerm:!1,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},isFileSecurity:!1,isHighSecurity:!1,isOlderVersion:!0,havingCreatePerm:!1,havingBatchPerm:!1,filePerm:{havingRemovePerm:!1,havingVersionManagePerm:!1,havingWritePerm:!1}}},created(){},mounted(){this.initData(),this.rowDrop();let e=this;this.$nextTick(()=>{let t={};for(const i in e)if("initData"===i){let s="repositoryList_initData";t[s]=e[i];break}this.$store.commit("setPageFunction",t)})},methods:{handleCloseFolder(e){this.folderDialog.dialogVisible=!1,e()},openUpdateFolder(e,t,i,s,o){"default"==s?(this.folderDialog.folderForm.name=t,this.folderDialog.folderForm.desc=i,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,i=t.folderDialog.folderForm.desc;if(i.length>255)return void t.$message({message:"[描述]不允许超过255个字符",type:"warning"});const s=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:i,id:s}};p["a"].post(l).then((function(e){"ok"==e.result&&(t.initData(),t.refreshTreeParentNode&&t.refreshTreeParentNode(s),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,s={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(s).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.havingWritePerm=t.data.havingWritePerm,e.havingRemovePerm=t.data.havingRemovePerm,e.havingVersionManagePerm=t.data.havingVersionManagePerm,e.batchAppVisible=t.data.batchAppVisible,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 i={id:t.data.mainRepository.id};e.loadRepositoryDetail(i)}else e.setCurrentRow(e.tableData[0])}})).catch(t=>{console.log(t),e.tableLoading=!1})},setCurrentRow(e){this.clickTableRow(e,null,null)},clickTableRow(e,t,i){this.$refs.table.setCurrentRow(e),this.loadRepositoryDetail(e)},loadRepositoryDetail(e){if(!e)return;const t=this,i={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(i).then((function(i){"ok"==i.result&&(t.currRepositoryDetail.name=i.data.name,t.currRepositoryDetail.id=i.data.id,t.currRepositoryDetail.desc=i.data.desc,t.currRepositoryDetail.version=i.data.version,t.currRepositoryDetail.iconCode=i.data.iconCode,t.currRepositoryDetail.iconColor=i.data.iconColor,t.currRepositoryDetail.isPublish=i.data.isPublish,t.currRepositoryDetail.isUse=i.data.isUse,t.currRepositoryDetail.isApproval=i.data.isApproval,t.currRepositoryDetail.isStop=i.data.isStop,t.currRepositoryDetail.photoType=i.data.photoType,t.currRepositoryDetail.photo=i.data.photo,t.currRepositoryDetail.methodId=i.data.methodId,t.currRepositoryDetail.methodName=i.data.methodName,t.currRepositoryDetail.folder=i.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=i.data.havingRemovePerm,t.filePerm.havingVersionManagePerm=i.data.havingVersionManagePerm,t.filePerm.havingWritePerm=i.data.havingWritePerm)})).catch(e=>{console.log(e)})},openDesigner(e){let t=this;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(i){"ok"==i.result?Object(y["d"])(t.$store.getters.getTeamIdFn,e,t.$store.state.sessionId):t.$message.error(i.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,i){if("0"==e){const e=this,i={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(i).then((function(t){"ok"==t.result&&e.initData()})).catch(e=>{console.log(e)})}else{const e=this,i={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(i).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 i=e.length;if(i>0){t.showFooter=!0;for(let s=0;s<i;s++){let i=t.tableData.indexOf(e[s]);const o=t.tbody[0].childNodes;if(void 0!=o){const e=o[i],t=e.childNodes[0];t&&t.querySelector(".el-checkbox__input")&&(t.querySelector(".el-checkbox__input").style.visibility="visible")}}}else{t.showFooter=!1;for(let e=0;e<t.tableData.length;e++){const i=t.tbody[0].childNodes;if(void 0!=i){const t=i[e],s=t.childNodes[0];s&&s.querySelector(".el-checkbox__input")&&(s.querySelector(".el-checkbox__input").style.visibility="hidden")}}}t.refreshMainHeight(),t.checkAll=i===t.tableData.length,t.isIndeterminate=i>0&&i<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,i,s){i.parentNode.querySelector(".el-table-column--selection").querySelector(".el-checkbox__input").style.visibility="visible"},hideCheckbox(e,t,i,s){let o=i.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}console.log(this.singleSelectedRepository),void 0!=this.singleSelectedRepository.id&&null!=this.singleSelectedRepository.id||(this.singleSelectedRepository=this.mainRepository),this.moveRepository.visible=!0},moveFiles(){this.moveRepository.type="batch",0!=this.checkedRepositorys.length?this.moveRepository.visible=!0: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;let i=JSON.stringify(t.checkedRepositorys);if("single"==this.moveRepository.type){let e=[];e.push(t.singleSelectedRepository),i=JSON.stringify(e)}const s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_move_save",teamId:t.$store.getters.getTeamIdFn,sourceData:i,targetData:JSON.stringify(e)}};if(t.isHighSecurity&&t.isFileSecurity){let i=[];for(let e=0;e<t.checkedRepositorys.length;e++){let s=t.checkedRepositorys[e];i.push(s.id)}const o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_file_permission_batch_query",uuids:JSON.stringify(i),isSub:!0}};p["a"].post(o).then((function(i){if("ok"==i.result){let o=i.data.checkArr;if(o.length<=0)t.$message.error("无密级访问权限");else{let i=[];for(let e=0;e<o.length;e++)for(let s=0;s<t.checkedRepositorys.length;s++)o[e]===t.checkedRepositorys[s].id&&i.push(t.checkedRepositorys[s]);s.data.sourceData=JSON.stringify(i),p["a"].post(s).then((function(i){"ok"==i.result?(t.$message({message:"移动成功",type:"success"}),t.refreshTreeNode&&t.refreshTreeNode(e[0].pid),t.refreshTreeParentNode&&t.refreshTreeParentNode(t.uuid),t.initData()):t.$message({message:i.msg,type:"warning"})})).catch(e=>{console.log(e)})}}else t.$message(i.msg)})).catch(e=>{console.log(e),t.$message.error(e.msg)})}else p["a"].post(s).then((function(i){"ok"==i.result?(t.$message({message:"移动成功",type:"success"}),t.refreshTreeNode&&t.refreshTreeNode(e[0].pid),t.refreshTreeParentNode&&t.refreshTreeParentNode(t.uuid),t.initData()):t.$message({message:i.msg,type:"warning"})})).catch(e=>{console.log(e)})},copyFiles(e){const t=this;t.tableLoading=!0;let i=[];if(e)i.push(e);else{let e=t.checkedRepositorys;for(let t=0;t<e.length;t++)i.push(e[t].id)}const s=t.uuid,o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_copy_save",targetId:s,sourceIds:JSON.stringify(i),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(i),isSub:!0}};p["a"].post(a).then((function(i){if("ok"==i.result){let a=i.data.checkArr;a.length<=0?(t.tableLoading=!1,t.$message.error("无密级访问权限")):(o.data.sourceIds=JSON.stringify(a),p["a"].post(o).then((function(i){"ok"==i.result?(t.$message({message:"复制成功",type:"success"}),s==e?t.refreshTreeParentNode&&t.refreshTreeParentNode(t.uuid):t.refreshTreeNode&&t.refreshTreeNode(t.uuid),t.initData(),t.tableLoading=!1):(t.tableLoading=!1,t.$message(i.msg))})).catch(e=>{console.log(e)}))}else t.tableLoading=!1,t.$message(i.msg)})).catch(e=>{console.log(e),t.$message.error(e.msg)})}else p["a"].post(o).then((function(i){"ok"==i.result?(t.$message({message:"复制成功",type:"success"}),s==e?t.refreshTreeParentNode&&t.refreshTreeParentNode(t.uuid):t.refreshTreeNode&&t.refreshTreeNode(t.uuid),t.initData(),t.tableLoading=!1):(t.tableLoading=!1,t.$message(i.msg))})).catch(e=>{console.log(e)})},exportFiles(e){const t=this;t.loading=!0;let i=[];if(e)i.push(e);else{let e=t.checkedRepositorys;for(let t=0;t<e.length;t++)i.push(e[t].id)}const s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_export_handle",repositoryIds:JSON.stringify(i)}};if(t.isHighSecurity&&t.isFileSecurity){const e={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_file_permission_batch_query",uuids:JSON.stringify(i),isSub:!1}};p["a"].post(e).then((function(e){if("ok"==e.result){let i=e.data.checkArr;i.length<=0?(t.loading=!1,t.$message.error("无密级访问权限")):(s.data.repositoryIds=JSON.stringify(i),p["a"].post(s).then((function(e){if(t.loading=!1,"ok"==e.result){t.$message({message:"导出完成,正在下载...",type:"success"});const i=e.data.exportTitle,s=e.data.exportCount,o=e.data.dcId,a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_export",exportTitle:i,exportCount:s,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(s).then((function(e){if(t.loading=!1,"ok"==e.result){t.$message({message:"导出完成,正在下载...",type:"success"});const i=e.data.exportTitle,s=e.data.exportCount,o=e.data.dcId,a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_export",exportTitle:i,exportCount:s,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 i=[],s=e;if(e)i.push(e);else{let e=t.checkedRepositorys;for(let t=0;t<e.length;t++)i.push(e[t].id)}const o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_remove",repositoryIds:JSON.stringify(i),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(i),isSub:!0}};p["a"].post(e).then((function(e){if("ok"==e.result){let i=e.data.checkArr;i.length<=0?t.$message.error("无密级访问权限"):(o.data.repositoryIds=JSON.stringify(i),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()):s==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()):s==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 i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_repository_download_png",uuid:e,type:"image"}};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(e){"ok"==e.result?p["a"].post(i).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(i).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,i=this.$store.getters.getTeamIdFn,s="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:i,appId:s,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:i,appId:s,uuid:e})},createOutputPr(e){const t=this,i={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 s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_file_permission_query",uuid:e}};p["a"].post(s).then((function(e){"ok"==e.result?p["a"].post(i).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(i).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 i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_file_permission_query",uuid:t.currRepositoryDetail.id}};p["a"].post(i).then((function(i){"ok"==i.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(i.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)},positionRepositoryPath(e,t){const i=[];for(let s=0;s<this.repositoryPathData.length;s++){const t=this.repositoryPathData[s].versionId;if(i.push(t),t==e)break}this.$router.push({path:"/Repository",query:{id:e,versionId:t,path:i.join(","),param:Math.random()}})},positionTableRoleRepository(e,t,i,s){if(0==i)return void(s?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 i=e.oldIndex,s=e.newIndex;if(i!=s){let e=t.tableData[i],a=t.tableData[s];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}},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"}}},Ne=Te,$e=(i("a0bb"),Object(g["a"])(Ne,W,E,!1,null,"3c7adb3e",null)),Pe=$e.exports,Oe={name:"Repository",components:{RepositoryMain:S,RepositoryMainList:B,RepositoryList:Pe},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),setTimeout(()=>{this.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){e.conditionData=t.data;let i=[...e.conditionData.historyCondition.createUsers];e.$store.commit("setCreateUsers",i);let s=[...e.conditionData.historyCondition.orgIds];e.$store.commit("setOrgIds",s);let o=[...e.conditionData.historyCondition.methodIds];e.$store.commit("setMethodIds",o),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:{listenTopMainHeight:function(e,t){this.mainHeight=parseInt(e)+"px"},listenWsId:function(e,t){this.reFresh=!1,this.mainContent="",this.$nextTick(()=>{this.reFresh=!0,this.mainContent="RepositoryMainList"})},listenTeamId:function(e,t){this.reFresh=!1,this.mainContent="",this.$nextTick(()=>{this.reFresh=!0,this.mainContent="RepositoryMainList"})}},beforeRouteUpdate(e,t,i){this.getRouteParam(e.query),i()}},Ve=Oe,Le=(i("9a3f"),Object(g["a"])(Ve,s,a,!1,null,"0e1ed926",null));t["default"]=Le.exports},8005:function(e,t,i){"use strict";i("c077")},"9a3f":function(e,t,i){"use strict";i("0757")},a0bb:function(e,t,i){"use strict";i("717f")},ab63:function(e,t,i){"use strict";i("157a")},bbc6:function(e,t,i){},bc48:function(e,t,i){"use strict";i("0216")},c077:function(e,t,i){},daf5:function(e,t,i){},e5a0:function(e,t,i){},ffad:function(e,t,i){"use strict";i("bbc6")}}]);