1 line
154 KiB
JavaScript
1 line
154 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-293145f2"],{"09ea":function(e,t,i){"use strict";i("c549")},1337:function(e,t,i){"use strict";i.d(t,"c",(function(){return s})),i.d(t,"b",(function(){return o})),i.d(t,"d",(function(){return a})),i.d(t,"a",(function(){return l})),i.d(t,"e",(function(){return r}));const o=function(e,t,i,o,a){o||(o={}),o.cmd=i,o.sid=t,s(e,wHref,o,a)},s=function(e,t,i,o){var s=document.getElementById(e);s&&document.body.removeChild(s);var a=document.createElement("form");for(var l in a.action=t,a.target=void 0==o?"_blank":o,a.method="get",a.style.display="none",i){var r=document.createElement("textarea");r.name=l,r.value=i[l],a.appendChild(r)}a.setAttribute("id",e),document.body.appendChild(a),a.submit()},a=function(e,t,i){o("palDesigner",i,"com.actionsoft.apps.coe.pal_pl_repository_designer",{uuid:t,teamId:e})},l=function(e,t){let i=e;while(i.nodeName!=t&&"BODY"!=i.nodeName)i=i.parentNode;return i.nodeName==t?i:null},r=function(e){document.getElementsByTagName("title")[0].innerText=e}},"19bf":function(e,t,i){},"1cb9":function(e,t,i){"use strict";i("e21c")},"2ca7":function(e,t,i){},"2d3e":function(e,t,i){"use strict";i("a4a9")},"30f5":function(e,t,i){},"3aa0":function(e,t,i){},"4cbb":function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-container",[i("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?[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{"element-loading-text":"拼命加载中"}},[i("div",{staticStyle:{height:"300px",overflow:"auto",border:"1px solid #f2f2f2"}},[i("div",{staticClass:"tree"},[i("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(t){var o=t.node;t.data;return i("span",{},[i("i",{staticClass:"awsui-iconfont tree-content-icon tree-content-icon-padding",style:{color:o.data.icon.color},domProps:{innerHTML:e._s(o.data.icon.icon)}}),i("span",[e._v(e._s(o.label))])])}}],null,!1,52448956)})],1)])])]:e._e(),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("awsui-button",{staticClass:"button-general-color",attrs:{type:"primary"},on:{click:e.submit}},[e._v("确定")]),i("awsui-button",{on:{click:e.cancel}},[e._v("取消")])],1)],2)],1)},s=[],a=i("0f08"),l={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 o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_repository_tree_component_search",addressType:i.addressType,rootDeptId:i.rootDeptId,name:e}};a["a"].post(o).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,o=i.$refs.tree,s=t.split(",");let a=1;for(let l=0;l<s.length;l++)l>0&&null!=o.getNode(s[l-1])&&(setTimeout(i._expandNode(o,s[l-1]),300*a),a++);setTimeout((function(){null!=o.getNode(e)&&o.setCurrentKey(e)}),300*a)},_expandNode(e,t){return function(){e.getNode(t).expand()}},loadNode(e,t){const i=this;i.loading=!0;const o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_bpm_org_address_component_subjson",addressType:i.addressType,pid:"",highSecurityFilter:i.highSecurityFilter}};0===e.level?(o.data.pid=i.pid,o.data.parentType=""):(o.data.pid=e.data.id,o.data.parentType=e.data.type),a["a"].post(o).then((function(o){if(i.multiple){const e=i.addressType.indexOf("department")>-1,t=i.addressType.indexOf("user")>-1,s=i.addressType.indexOf("role")>-1,a=i.addressType.indexOf("position")>-1;for(let i=0;i<o.data.length;i++){const l=o.data[i];"company"==l.type||"roleRoot"==l.type||"roleGroup"==l.type||"positionRoot"==l.type||"positionGroup"==l.type?l.disabled=!0:(e&&"department"==l.type&&(l.disabled=!1),e||"department"!=l.type||(l.disabled=!0),t&&"user"==l.type&&(l.disabled=!1),t||"user"!=l.type||(l.disabled=!0),s&&"role"==l.type&&(l.disabled=!1),s||"role"!=l.type||(l.disabled=!0),a&&"position"==l.type&&(l.disabled=!1),a||"position"!=l.type||(l.disabled=!0))}}if(t(o.data),i.loading=!1,0==e.level&&o.data.length>0){const e=i.$refs.tree;e.getNode(o.data[0].id).expand(),setTimeout((function(){const t=e.getNode(o.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}}},r=l,n=(i("b142"),i("cba8")),c=Object(n["a"])(r,o,s,!1,null,"6de64a47",null);t["a"]=c.exports},6076:function(e,t,i){"use strict";i("19bf")},"6f9be":function(e,t,i){},7304:function(e,t,i){"use strict";i("cc00")},7646:function(e,t,i){"use strict";i("30f5")},"7eb6":function(e,t,i){"use strict";i.r(t);var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-container",{style:{width:"100%",height:e.mainHeight},attrs:{id:"repository"}},[i("el-aside",{staticStyle:{overflow:"hidden","border-right":"1px solid #F2F2F2"},attrs:{width:"280px"}},[e.reFresh?i("RepositoryMain",{key:"repositoryMain",ref:"repositoryMain"}):e._e()],1),i("el-main",[i(e.mainContent,{key:Math.random(),ref:"component",tag:"component",attrs:{uuid:e.uuid,refreshTreeParentNode:e.refreshTreeParentNode,refreshTreeNode:e.refreshTreeNode,treeNode:e.treeNode}})],1)],1)},a=[],l=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-container",{staticStyle:{overflow:"hidden"},attrs:{id:"repositoryMain"}},[e.havingWritePerm?e._e():i("el-header",{attrs:{height:e.headerHeight2}}),e.havingWritePerm?i("el-header",{attrs:{height:e.headerHeight1}},[i("div",{staticStyle:{margin:"12px 0px 10px","text-align":"center"}},[e.havingWritePerm?i("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"}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.createMethodLoading,expression:"createMethodLoading"}],attrs:{"element-loading-text":"拼命加载中"}},[i("div",[i("ul",e._l(Math.ceil(e.fileMethodList.length/4),(function(t){return i("li",{staticStyle:{"margin-bottom":"7px"}},[e._l(e.fileMethodList.slice(4*(t-1),4*t),(function(t){return[i("div",{staticClass:"new-repository-item",style:{opacity:t.opacity,filter:t.filter,cursor:t.cursor},on:{click:function(i){t.clickFlag&&e.createDesigner(t.app,t.category,t.method)}}},[i("div",{staticStyle:{position:"relative",top:"9px"}},[i("div",{staticClass:"icon-div-repository",style:{"background-color":t.icon.color}},[i("i",{staticClass:"awsui-iconfont icon-dynamic-repository",domProps:{innerHTML:e._s(t.icon.code)}})]),i("div",{staticClass:"item-name text-general-color icon-text"},[i("label",{style:{cursor:t.cursor}},[e._v(e._s(t.methodName))])])])])]}))],2)})),0)]),i("div",{staticStyle:{"border-bottom":"1px solid #F2F2F2"}}),i("div",{staticStyle:{"margin-top":"7px"}},[i("ul",[i("li",[e._l(e.folderMethodList,(function(t){return[i("div",{staticClass:"new-repository-item",style:{opacity:t.opacity,filter:t.filter,cursor:t.cursor},on:{click:function(i){t.clickFlag&&e.createFolder(t.method,t.methodName)}}},[i("div",{staticStyle:{position:"relative",top:"4px"}},[i("div",{staticClass:"icon-div-repository"},[i("i",{staticClass:"awsui-iconfont icon-fixed-repository",style:{color:t.icon.color},domProps:{innerHTML:e._s(t.icon.code)}})]),i("div",{staticClass:"item-name text-general-color fixed-icon-text"},[i("label",{style:{cursor:t.cursor}},[e._v(e._s(t.methodName))])])])])]})),i("div",{staticClass:"new-repository-item",staticStyle:{cursor:"pointer"},on:{click:e.importDesigners}},[i("div",{staticStyle:{position:"relative",top:"4px"}},[i("div",{staticClass:"icon-div-repository"},[i("i",{staticClass:"iconfont text-linker-color icon-fixed-repository"},[e._v("")])]),i("div",{staticClass:"item-name text-general-color fixed-icon-text"},[i("label",{staticStyle:{cursor:"pointer"}},[e._v("导入模型")])])])])],2)])])]),i("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),e.havingWritePerm?i("div",{staticStyle:{width:"100%","border-bottom":"1px solid #F2F2F2"}}):e._e()]):e._e(),i("el-main",{staticClass:"main-tree",style:{overflow:"auto",height:e.treeHeight}},[i("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(t){var o=t.node,s=t.data;return i("span",{},[i("i",{staticClass:"awsui-iconfont tree-content-icon tree-content-icon-padding",style:{color:o.data.icon.color},domProps:{innerHTML:e._s(o.data.icon.icon)}}),i("span",{style:{"font-weight":s.id.length<36?"600":""}},[e._v(e._s(o.label))])])}}])})],1),i("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)}}},[i("div",{staticStyle:{border:"1px solid #F2F2F2",padding:"0px 10px 10px 10px"}},[i("awsui-form",{ref:"folderForm",attrs:{model:e.folderDialog.folderForm,rules:e.folderDialog.rules,"label-position":"top"}},[i("awsui-form-item",{attrs:{label:"名称",prop:"name"}},[i("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?i("awsui-form-item",{attrs:{label:"描述",prop:"desc"}},[i("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),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("awsui-button",{staticClass:"button-general-color",attrs:{type:"primary"},on:{click:function(t){return e.createFolderSave("folderForm")}}},[e._v("确定")]),i("awsui-button",{on:{click:e.clearFolderDlg}},[e._v("取消")])],1)]),i("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)}}},[i("div",{staticStyle:{border:"1px solid #F2F2F2",padding:"0px 10px 10px 10px"}},[i("awsui-form",{ref:"systemForm",attrs:{model:e.ModelsetUpDialog.systemForm,rules:e.ModelsetUpDialog.rules,"label-position":"top"}},[i("awsui-form-item",{attrs:{label:"当前选定路径"}},[i("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),i("awsui-form-item",{attrs:{label:"名称",prop:"name"}},[i("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?[i("awsui-form-item",{attrs:{label:"制度类型"}},[i("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),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("awsui-button",{staticClass:"button-general-color",attrs:{type:"primary"},on:{click:function(t){return e.createSystemSave("systemForm")}}},[e._v("确定")]),i("awsui-button",{on:{click:e.clearSystemDlg}},[e._v("取消")])],1)]),i("awsui-dialog",{attrs:{title:"密级标定",visible:e.securityVisible,border:!1,"append-to-body":"",width:"500px"},on:{"update:visible":function(t){e.securityVisible=t}}},[i("div",{staticStyle:{"max-height":"500px","overflow-y":"auto"}},e._l(e.securityFileList,(function(t){return i("awsui-form",{key:t.uuid,ref:t.uuid,refInFor:!0,attrs:{"label-width":"200px",rules:e.securityRules,model:t}},[i("awsui-form-item",{attrs:{label:t.name,prop:"securityLevel"}},[i("awsui-select",{staticStyle:{width:"70%"},attrs:{options:e.securityOptions},model:{value:t.securityLevel,callback:function(i){e.$set(t,"securityLevel",i)},expression:"file.securityLevel"}})],1)],1)})),1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("awsui-button",{attrs:{type:"primary"},on:{click:e.uploadServer}},[e._v("确定")]),i("awsui-button",{on:{click:function(t){e.securityVisible=!1}}},[e._v("取 消")])],1)]),i("RepositoryImport",{ref:"repositoryImport"})],1)},r=[],n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-container",["org"!=e.category?i("div",{key:"dialog2",staticClass:"repository-import"},[i("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}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{height:"250px"},attrs:{"element-loading-text":"请稍等"}},[i("div",{staticStyle:{"text-align":"center","padding-top":"10px"}},[i("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"130px"},attrs:{type:"primary"},on:{click:function(t){return e.openFileSelect("file")}}},[e._v("本地文件上传")])],1),i("div",{staticClass:"text-second-color",staticStyle:{"font-size":"12px","margin-top":"10px","margin-left":"15px"}},[e._v("请上传export文件,支持多个文件同时导入")]),i("div",{staticStyle:{height:"180px",margin:"10px 10px",overflow:"auto"}},[i("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}},[i("div",{staticStyle:{display:"none"}},[i("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"130px"},attrs:{name:"selectFileButton",type:"primary"}},[e._v("本地文件上传")])],1)])],1)]),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("awsui-button",{staticClass:"button-general-color",attrs:{disabled:e.buttonDisabled,type:"primary"},on:{click:e.importSave}},[e._v("确定")]),i("awsui-button",{on:{click:e.cancel}},[e._v("取消")])],1)])],1):i("div",{key:"dialog1",staticClass:"repository-import"},[i("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}}},[i("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":"请稍等"}},[i("div",{staticStyle:{position:"relative",top:"35%"}},[i("div",{staticStyle:{"margin-bottom":"25px"}},[i("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"130px"},attrs:{type:"primary"},on:{click:function(t){return e.openFileSelect("file")}}},[e._v("直接导入")])],1),i("div",[i("awsui-button",{staticClass:"button-general-color-reverse",staticStyle:{width:"130px"},on:{click:function(t){return e.openFileSelect("excel")}}},[e._v("模板导入")])],1)])]),i("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":"请稍等"}},[i("div",{staticStyle:{"text-align":"center","padding-top":"10px"}},[i("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("直接导入")]),i("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?i("div",[i("div",{staticClass:"text-second-color",staticStyle:{"font-size":"12px","margin-top":"10px","margin-left":"15px"}},[e._v('请点击"直接导入"按钮上传export文件,支持多个文件同时导入')]),i("div",{staticStyle:{height:"180px",margin:"10px 10px",overflow:"auto"}},[i("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}},[i("div",{staticStyle:{display:"none"}},[i("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"130px"},attrs:{name:"selectFileButton",type:"primary"}},[e._v("本地文件上传")])],1)])],1)]):e._e(),"excel"==e.type?i("div",[i("div",{staticStyle:{height:"200px",margin:"25px 10px 10px",overflow:"auto"}},[i("div",{staticStyle:{width:"438px",height:"80px",border:"1px solid #F2F2F2"}},[i("div",{staticStyle:{float:"left",height:"100%",width:"80px",display:"inline-block","background-color":"#F5F7FA","text-align":"center","line-height":"85px","vertical-align":"middle"}},[i("i",{staticClass:"iconfont text-second-color",staticStyle:{"font-size":"40px"}},[e._v("")])]),i("div",{staticStyle:{float:"left",height:"100%"}},[i("div",{staticStyle:{display:"inline-block",height:"100%","margin-left":"15px","margin-top":"9px"}},[i("p",{staticClass:"text-general-color"},[e._v("填写导入组织信息")]),i("p",{staticClass:"text-second-color",staticStyle:{"font-size":"12px","padding-top":"4px","padding-bottom":"4px"}},[e._v("请按照说明格式正确填写Excel文件")]),i("p",{staticClass:"text-linker-color",staticStyle:{"font-size":"12px",cursor:"pointer"},on:{click:function(t){return e.downloadOrgTemplate()}}},[e._v("下载模板")])])])]),i("div",{staticStyle:{height:"20px"}}),i("div",{staticStyle:{width:"438px",height:"80px",border:"1px solid #F2F2F2"}},[i("div",{staticStyle:{float:"left",height:"100%",width:"80px",display:"inline-block","background-color":"#F5F7FA","text-align":"center","line-height":"85px","vertical-align":"middle"}},[i("i",{staticClass:"iconfont text-second-color",staticStyle:{"font-size":"40px"}},[e._v("")])]),i("div",{staticStyle:{float:"left",height:"100%"}},[i("div",{staticStyle:{display:"inline-block",height:"100%","margin-left":"15px","margin-top":"9px"}},[i("p",{staticClass:"text-general-color"},[e._v("上传填好的组织信息文件")]),i("p",{staticClass:"text-second-color",staticStyle:{"font-size":"12px","padding-top":"4px","padding-bottom":"4px"}},[e._v("文件后缀必须为xls或xlsx(即Excel格式)")]),e.isOrgUploaded?i("p",{staticClass:"text-linker-color",staticStyle:{"font-size":"12px",cursor:"pointer"}},[i("label",{staticStyle:{display:"inline-block","max-width":"300px",overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"}},[e._v(e._s(e.orgUploadFileName))]),e._v(" "),i("i",{staticClass:"iconfont text-important-color",staticStyle:{"font-size":"12px",position:"relative",top:"-3px"},on:{click:e.removeOrgUpload}},[e._v("")])]):i("p",{staticClass:"text-linker-color",staticStyle:{"font-size":"12px",cursor:"pointer"},on:{click:e.uploadOrgExcel}},[e._v("上传文件")])])])])]),i("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}},[i("div",{staticStyle:{display:"none"}},[i("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"130px"},attrs:{name:"selectOrgFileButton",type:"primary"}},[e._v("Excel文件上传")])],1)])],1):e._e()]),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("awsui-button",{staticClass:"button-general-color",attrs:{disabled:e.buttonDisabled,type:"primary"},on:{click:e.importSave}},[e._v("确定")]),i("awsui-button",{on:{click:e.cancel}},[e._v("取消")])],1)])],1)])},c=[],d=i("6c2f"),p=i("0f08"),u={name:"RepositoryImport",components:{PALUpload:d["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 o=this;o.category=t,o.obj=e,o.parentId=i,setTimeout(()=>{o.dialogVisible=!0,o.$nextTick(()=>{"org"!=o.category&&o.openFileSelect("file")})},300)},cancel(){this.clearParam()},importSave(){const e=this,t=e.$store.getters.getWsIdFn,i=e.$store.getters.getTeamIdFn;let o="";if("file"==e.type){if(0==e.fileList.length)return void e.$message({message:"请上传需要导入的文件",type:"warning"});const o=[];for(let t=0;t<e.fileList.length;t++)o.push(e.fileList[t].name);e.buttonDisabled=!0,e.loading=!0;const s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_import",fileList:JSON.stringify(o),wsId:t,teamId:i,plCategory:e.category,parentId:e.parentId}};p["a"].post(s).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 o=i[t];e.securityFileList.push(o)}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"});o=e.orgFileList[0].name,e.loading=!0;const s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_repository_import_org",fileName:o,wsId:t,teamId:i,parentId:e.parentId}};p["a"].post(s).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 o=i[t];e.securityFileList.push(o)}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 o=this;o.fileList=[];let s={};for(let a=i.length-1;a>=0;a--){let e=i[a];s[e.name]||(o.fileList.unshift(e),s[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=""}}},h=u,m=(i("1cb9"),i("cba8")),g=Object(m["a"])(h,n,c,!1,null,"10fa5366",null),f=g.exports,y=i("1337"),v=i("430a"),b=new v["default"],w={name:"RepositoryTree",components:{RepositoryImport:f},data(){let e=(e,t,i)=>{void 0===t?i(new Error("请选择文件密级")):i()};return{dis:!1,headerHeight1:"60px",headerHeight2:"10px",treeHeight:parseInt(this.$store.getters.getTopMainHeightFn)-(this.havingWritePerm?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:{dialogVisible:!1,systemMethod:"default",systemTitle:"名称录入",systemForm:{name:"",uuid:"",parentId:"",repositoryPathData:"",method:"",systemType:"1",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,havingWritePerm:!1,havingRemovePerm:!1,havingVersionManagePerm:!1,validUserPermDataCount:0,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()},mounted(){b.$on("getisDisabled",e=>{this.dis=e})},methods:{initData(){const e=this;if(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.havingWritePerm=!1,e.havingRemovePerm=t.data.havingRemovePerm,e.havingVersionManagePerm=t.data.havingVersionManagePerm,e.initTreeHeight()})).catch(e=>{console.log(e)})}else e.havingWritePerm=!0,e.havingRemovePerm=!0,e.havingVersionManagePerm=!0;this.initTreeHeight()},queryTreeByIdAndPath(e,t,i){const o=this,s=o.$refs.tree,a=i.split(",");let l=1;for(let r=0;r<a.length;r++)r>0&&null!=s.getNode(a[r-1])&&(setTimeout(o._expandNode(s,a[r-1]),300*l),l++);setTimeout((function(){null!=s.getNode(t)&&s.setCurrentKey(t),o.openRepositoryList(e)}),300*l)},_expandNode(e,t){return function(){e.getNode(t).expand()}},openNode(e,t,i){this.closeCreatePopover(),this.openRepositoryList(t.data.currId),this.transferTreeNode(e)},loadNode(e,t){const i=this,o={url:"jd",data:{}};o.data.wsId=i.$store.getters.getWsIdFn,o.data.teamId=i.$store.getters.getTeamIdFn,o.data.cmd="com.actionsoft.apps.coe.pal_processlevel_tree_data",0===e.level?o.data.pid="":o.data.pid=e.data.id,p["a"].post(o).then((function(o){if(t(o.data),0==e.level&&o.data.length>0){const e=i.$refs.tree;e.getNode(o.data[0].id).expand(),setTimeout((function(){const t=e.getNode(o.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,o=e.$refs.tree.getCurrentNode().plMethodId,s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_create_method_list",category:i,methodId:o}};p["a"].post(s).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 o=t.data.folderMethodList;for(let e=0;e<o.length;e++){let t=o[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=o,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.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 o=t.$refs.tree.getCurrentNode(),s=o.id,a=t.$store.getters.getWsIdFn,l=t.$store.getters.getTeamIdFn,r=t.folderDialog.folderMethod,n={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_folder_create_save",wsId:a,teamId:l,method:r,parentId:s,name:e,desc:i,id:""}};p["a"].post(n).then((function(e){"ok"==e.result&&(t.refreshNode(),t.clearFolderDlg(!0),t.openRepositoryList(s))})).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}};p["a"].post(e).then((function(e){if("ok"==e.data.result){const e={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_repository_designer_updatetitle",uuid:t.ModelsetUpDialog.systemForm.uuid,title:t.ModelsetUpDialog.systemForm.name}};p["a"].post(e).then((function(e){if("ok"==e.result){const e={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(e).then((function(e){"ok"==e.result?(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)})}else t.$message.error(e.msg)})).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 o=this;if(o.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=this.ModelsetUpDialog.systemForm;e.method=i;const s=o.$refs.tree.getCurrentNode(),a=s.id,l=o.$store.getters.getWsIdFn,r=o.$store.getters.getTeamIdFn,n={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_repository_create_save",wsId:l,teamId:r,category:t,method:i,parentId:a,container:"_blank"}};p["a"].post(n).then((function(e){"ok"==e.result&&(o.ModelsetUpDialog.systemForm.repositoryPathData=e.data.repositoryPathData,o.ModelsetUpDialog.systemForm.uuid=e.data.id,o.ModelsetUpDialog.systemForm.parentId=a,o.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,o=e.$store.getters.getWsIdFn,s=e.$store.getters.getTeamIdFn;for(let a=0;a<this.securityFileList.length;a++){let t=this.securityFileList[a];const l={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_repository_create_save",wsId:o,teamId:s,category:t.category,method:t.method,parentId:i,container:"_blank",securityLevel:t.securityLevel}};p["a"].post(l).then((function(t){if("ok"==t.result){e.refreshNode(),e.openRepositoryList(i);const o=t.data.id;Object(y["d"])(e.$store.getters.getTeamIdFn,o,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?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)}}},_=w,x=(i("d2be"),Object(m["a"])(_,l,r,!1,null,"030ee468",null)),S=x.exports,D=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-container",{attrs:{id:"repositoryMainList"}},[i("el-main",{directives:[{name:"loading",rawName:"v-loading",value:e.dataLoading,expression:"dataLoading"}],style:{height:e.mainHeight},attrs:{"element-loading-text":"拼命加载中"}},[i("div",{staticStyle:{width:"100%",height:"100%",overflow:"auto",display:"inline"}},[i("div",{staticClass:"recent"},[i("el-tabs",{on:{"tab-click":e.handleRecnetOrStore},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"最近编辑",name:"recent"}}),i("el-tab-pane",{attrs:{label:"收藏文件",name:"store"}})],1)],1),i("div",{style:{margin:"12px 10px 10px 10px;",display:e.recentDisplay}},[i("div",[i("div",{staticStyle:{"margin-left":"10px"}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.recentData,"row-style":{height:"46px"},"cell-style":{padding:"0px"},"show-header":!1}},[i("el-table-column",{attrs:{width:"20px"}}),i("el-table-column",{attrs:{prop:"main",label:"名称","class-name":"row-repository-title","min-width":"300px"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.folder?i("div",{staticClass:"icon-div-repository"},[i("i",{staticClass:"awsui-iconfont icon-dynamic-repository",style:{color:t.row.icon.color,"font-size":"32px"},domProps:{innerHTML:e._s(t.row.icon.code)}})]):i("div",{staticClass:"icon-div-repository",style:{"background-color":t.row.icon.color}},[i("i",{staticClass:"awsui-iconfont icon-dynamic-repository",domProps:{innerHTML:e._s(t.row.icon.code)}})]),i("div",{staticClass:"div-repository-title"},[i("p",{staticClass:"text-general-color",staticStyle:{cursor:"pointer"},on:{click:function(i){return e.positionRepositoy(t.row.id,t.row.versionId,t.row.pathData)}}},[e._v(" "+e._s(t.row.name)+" ")])])]}}])}),i("el-table-column",{attrs:{prop:"second",label:"修改日期",width:"350"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"div-update-date"},[i("p",[e._v(" "+e._s(t.row.updateUser)+" 于 "+e._s(t.row.updateDate)+"修改 ")])])]}}])}),i("el-table-column",{attrs:{prop:"operate",label:"操作",align:"right",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"div-operate text-second-color"},[t.row.isFavorite?i("div",{staticClass:"div-cancel-favorite"},[i("el-tooltip",{attrs:{content:"取消收藏",placement:"bottom","hide-after":2e3}},[i("i",{staticClass:"iconfont",staticStyle:{cursor:"pointer",color:"#FFB800"},on:{click:function(i){return e.setFavorite("0",t.row.versionId,t.row.id)}}},[e._v("")])])],1):e._e(),t.row.isFavorite?e._e():i("div",{staticClass:"non-favorite-display div-favorite"},[i("el-tooltip",{attrs:{content:"收藏",placement:"bottom","hide-after":2e3}},[i("i",{staticClass:"iconfont icon-operate",staticStyle:{cursor:"pointer"},on:{click:function(i){return e.setFavorite("1",t.row.versionId,t.row.id)}}},[e._v("")])])],1)]),i("div",{staticClass:"div-operate text-second-color",staticStyle:{margin:"0 10px 0 15px"}},[i("div",{staticClass:"operate-icon-display"},[t.row.folder&&e.havingWritePerm?i("el-tooltip",{attrs:{placement:"bottom","hide-after":2e3}},[i("span",{attrs:{slot:"content"},slot:"content"},[e._v("修改"+e._s(t.row.methodName))]),i("i",{staticClass:"iconfont icon-operate",staticStyle:{display:"inline-block",cursor:"pointer"},on:{click:function(i){return e.openUpdateFolder(t.row.id,t.row.name,t.row.desc,t.row.methodId,t.row.methodName)}}},[e._v("")])]):e._e(),t.row.folder?e._e():i("el-tooltip",{attrs:{content:"打开模型",placement:"bottom","hide-after":2e3}},[i("i",{staticClass:"iconfont icon-operate",staticStyle:{display:"inline-block",cursor:"pointer"},on:{click:function(i){return e.openDesigner(t.row.id)}}},[e._v("")])])],1)])]}}])})],1)],1)])]),i("div",{style:{margin:"10px;","margin-top":"20px;",display:e.storeDisplay}},[i("div",[i("div",{staticStyle:{"margin-left":"10px"}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.commonData,"row-style":{height:"46px"},"cell-style":{padding:"0px"},"empty-text":"无收藏文件","show-header":!1}},[i("el-table-column",{attrs:{width:"20px"}}),i("el-table-column",{attrs:{prop:"main",label:"名称","class-name":"row-repository-title","min-width":"300px"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.folder?i("div",{staticClass:"icon-div-repository"},[i("i",{staticClass:"awsui-iconfont icon-dynamic-repository",style:{color:t.row.icon.color,"font-size":"32px"},domProps:{innerHTML:e._s(t.row.icon.code)}})]):i("div",{staticClass:"icon-div-repository",style:{"background-color":t.row.icon.color}},[i("i",{staticClass:"awsui-iconfont icon-dynamic-repository",domProps:{innerHTML:e._s(t.row.icon.code)}})]),i("div",{staticClass:"div-repository-title"},[i("p",{staticClass:"text-general-color",staticStyle:{cursor:"pointer"},on:{click:function(i){return e.positionRepositoy(t.row.id,t.row.versionId,t.row.pathData)}}},[e._v(" "+e._s(t.row.name)+" ")])])]}}])}),i("el-table-column",{attrs:{prop:"second",label:"修改日期",width:"350"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"div-update-date"},[i("p",[e._v(" "+e._s(t.row.updateUser)+" 于 "+e._s(t.row.updateDate)+"修改 ")])])]}}])}),i("el-table-column",{attrs:{prop:"operate",label:"操作",align:"right",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"div-operate text-second-color"},[t.row.isFavorite?i("div",{staticClass:"div-cancel-favorite"},[i("el-tooltip",{attrs:{content:"取消收藏",placement:"bottom","hide-after":2e3}},[i("i",{staticClass:"iconfont",staticStyle:{cursor:"pointer",color:"#FFB800"},on:{click:function(i){return e.setFavorite("0",t.row.versionId,t.row.id)}}},[e._v("")])])],1):e._e(),t.row.isFavorite?e._e():i("div",{staticClass:"non-favorite-display div-favorite"},[i("el-tooltip",{attrs:{content:"收藏",placement:"bottom","hide-after":2e3}},[i("i",{staticClass:"iconfont icon-operate",staticStyle:{cursor:"pointer"},on:{click:function(i){return e.setFavorite("1",t.row.versionId,t.row.id)}}},[e._v("")])])],1)]),i("div",{staticClass:"div-operate text-second-color",staticStyle:{margin:"0 10px 0 15px"}},[i("div",{staticClass:"operate-icon-display"},["default"==t.row.methodId&&e.havingWritePerm?i("el-tooltip",{attrs:{content:"修改文件夹",placement:"bottom","hide-after":2e3}},[i("i",{staticClass:"iconfont icon-operate",staticStyle:{display:"inline-block",cursor:"pointer"},on:{click:function(i){return e.openUpdateFolder(t.row.id,t.row.name,t.row.desc,t.row.methodId,t.row.methodName)}}},[e._v("")])]):e._e(),"default"!=t.row.methodId?i("el-tooltip",{attrs:{content:"打开模型",placement:"bottom","hide-after":2e3}},[i("i",{staticClass:"iconfont icon-operate",staticStyle:{display:"inline-block",cursor:"pointer"},on:{click:function(i){return e.openDesigner(t.row.id)}}},[e._v("")])]):e._e()],1)])]}}])})],1)],1)])])])]),i("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)}}},[i("div",{staticStyle:{border:"1px solid #F2F2F2",padding:"0px 10px 10px 10px"}},[i("awsui-form",{ref:"folderForm",attrs:{model:e.folderDialog.folderForm,rules:e.folderDialog.rules,"label-position":"top"}},[i("awsui-form-item",{attrs:{label:"名称",prop:"name"}},[i("awsui-input",{model:{value:e.folderDialog.folderForm.name,callback:function(t){e.$set(e.folderDialog.folderForm,"name",t)},expression:"folderDialog.folderForm.name"}})],1),i("awsui-form-item",{attrs:{label:"描述",prop:"desc"}},[i("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),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("awsui-button",{staticClass:"button-general-color",attrs:{type:"primary"},on:{click:function(t){return e.updateFolderSave("folderForm")}}},[e._v("确定")]),i("awsui-button",{on:{click:e.closeFolderDlg}},[e._v("取消")])],1)]),i("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)}}},[i("div",[e.customFolderDialog.dialogVisible?i("repository-info-property",{attrs:{id:e.customFolderDialog.id,repositoryRefresh:e.repositoryRefresh}}):e._e()],1)])],1)},I=[],C=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-container",[i("div",{staticStyle:{height:"500px",width:"100%",overflow:"auto"},attrs:{id:"repositoryInfoProperty"}},[e._l(e.propertyData,(function(t,o){return[i("div",{staticClass:"property-group"},[i("p",{staticStyle:{"padding-left":"5px"}},[i("b",[e._v(e._s(t.groupPathName))])])]),i("div",{staticStyle:{margin:"0 50px 0 30px"}},[e._l(t.data,(function(o,s){return["string"==o.type&&"PLNAME"==o.id?[i("div",{staticClass:"property-item"},[i("label",{staticClass:"property-label"},[e._v(e._s(o.label))]),i("div",{staticClass:"property-value"},[i("el-input",{attrs:{size:e.size,disabled:o.readonly},on:{blur:function(t){return e.saveRepositoryNameVal(o.value)}},model:{value:o.value,callback:function(t){e.$set(o,"value",t)},expression:"item.value"}})],1)])]:e._e(),"string"==o.type&&"PLNAME"!=o.id?[i("div",{staticClass:"property-item"},[i("label",{staticClass:"property-label"},[e._v(e._s(o.label))]),i("div",{staticClass:"property-value"},[i("el-input",{attrs:{size:e.size,disabled:o.readonly},on:{blur:function(t){return e.saveStringPropVal(o.id,o.value,o.attrSource)}},model:{value:o.value,callback:function(t){e.$set(o,"value",t)},expression:"item.value"}})],1)])]:e._e(),"textarea"==o.type?[i("div",{staticClass:"property-item"},[i("label",{staticClass:"property-label",staticStyle:{"vertical-align":"bottom"}},[e._v(e._s(o.label))]),i("div",{staticClass:"property-value"},[i("el-input",{attrs:{size:e.size,type:"textarea",rows:2,placeholder:"请输入内容",disabled:o.readonly},on:{blur:function(t){return e.saveStringPropVal(o.id,o.value,o.attrSource)}},model:{value:o.value,callback:function(t){e.$set(o,"value",t)},expression:"item.value"}})],1)])]:e._e(),"number"==o.type?[i("div",{staticClass:"property-item"},[i("label",{staticClass:"property-label"},[e._v(e._s(o.label))]),i("div",{staticClass:"property-value"},[i("el-input-number",{staticStyle:{width:"100%",cursor:"pointer"},attrs:{size:e.size,"controls-position":"right",step:1,disabled:o.readonly},on:{change:function(t){return e.saveNumberPropVal(o.id,o.value,o.attrSource)}},model:{value:o.value,callback:function(t){e.$set(o,"value",t)},expression:"item.value"}})],1)])]:e._e(),"boolean"==o.type?[i("div",{staticClass:"property-item"},[i("label",{staticClass:"property-label"},[e._v(e._s(o.label))]),i("div",{staticClass:"property-value"},[[i("el-select",{staticStyle:{width:"100%"},attrs:{disabled:o.readonly,clearable:"",size:e.size,placeholder:"请选择"},on:{change:function(t){return e.saveSingleSelectVal(o.id,o.value,o.attrSource)}},model:{value:o.value,callback:function(t){e.$set(o,"value",t)},expression:"item.value"}},e._l(o.options,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)]],2)])]:e._e(),"select"==o.type?[i("div",{staticClass:"property-item"},[i("label",{staticClass:"property-label"},[e._v(e._s(o.label))]),i("div",{staticClass:"property-value"},[[i("el-select",{staticStyle:{width:"100%"},attrs:{disabled:o.readonly,clearable:"",size:e.size,placeholder:"请选择"},on:{change:function(t){return e.saveSingleSelectVal(o.id,o.value,o.attrSource)}},model:{value:o.value,callback:function(t){e.$set(o,"value",t)},expression:"item.value"}},e._l(o.options,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)]],2)])]:e._e(),"select_m"==o.type?[i("div",{staticClass:"property-item"},[i("label",{staticClass:"property-label"},[e._v(e._s(o.label))]),i("div",{staticClass:"property-value"},[[i("el-select",{staticStyle:{width:"100%"},attrs:{disabled:o.readonly,size:e.size,multiple:"",placeholder:"请选择"},on:{change:function(t){return e.saveMultipleSelectVal(o.id,o.value,o.attrSource)}},model:{value:o.value,callback:function(t){e.$set(o,"value",t)},expression:"item.value"}},e._l(o.options,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)]],2)])]:e._e(),"deptAddress"==o.type?[i("div",{staticClass:"property-item"},[i("label",{staticClass:"property-label"},[e._v(e._s(o.label))]),i("div",{staticClass:"property-value"},[i("el-input",{attrs:{size:e.size,disabled:o.readonly,readonly:""},nativeOn:{click:function(i){return e.choiceBpmOrgAddressComponent(t.groupPath,o.type,o.id,o.readonly)}},model:{value:o.value,callback:function(t){e.$set(o,"value",t)},expression:"item.value"}})],1)])]:e._e(),"userAddress"==o.type?[i("div",{staticClass:"property-item"},[i("label",{staticClass:"property-label"},[e._v(e._s(o.label))]),i("div",{staticClass:"property-value"},[i("el-input",{attrs:{size:e.size,disabled:o.readonly,readonly:""},nativeOn:{click:function(i){return e.choiceBpmOrgAddressComponent(t.groupPath,o.type,o.id,o.readonly)}},model:{value:o.value,callback:function(t){e.$set(o,"value",t)},expression:"item.value"}})],1)])]:e._e(),"relationOrg"==o.type?[i("div",{staticClass:"property-item"},[i("label",{staticClass:"property-label"},[e._v(e._s(o.label))]),i("div",{staticClass:"property-value"},[i("el-input",{attrs:{size:e.size,disabled:o.readonly,readonly:""},model:{value:o.value,callback:function(t){e.$set(o,"value",t)},expression:"item.value"}})],1)])]:e._e(),"awsorg"==o.type?[i("div",{staticClass:"property-item"},[i("label",{staticClass:"property-label"},[e._v(e._s(o.label))]),i("div",{staticClass:"property-value"},[i("el-input",{attrs:{size:e.size,disabled:o.readonly,readonly:""},nativeOn:{click:function(t){return e.choiceAwsOrgComponent(o.ref,o.type,o.id,o.label,o.readonly)}},model:{value:o.value,callback:function(t){e.$set(o,"value",t)},expression:"item.value"}})],1)])]:e._e(),"relation"==o.type?[i("div",{staticClass:"property-item"},[i("label",{staticClass:"property-label"},[e._v(e._s(o.label))]),i("div",{staticClass:"property-value"},[i("el-input",{attrs:{size:e.size,disabled:o.readonly,readonly:""},nativeOn:{click:function(t){return e.choiceRelationComponent(o.ref,o.type,o.id,o.label,o.readonly,o.fileIds,o.shapeIds)}},model:{value:o.value,callback:function(t){e.$set(o,"value",t)},expression:"item.value"}})],1)])]:e._e(),"link"==o.type&&"PLNAME"!=o.id?[i("div",{staticClass:"property-item"},[i("label",{staticClass:"property-label"},[e._v(e._s(o.label))]),i("div",{staticClass:"property-value"},[i("el-input",{attrs:{size:e.size,disabled:o.readonly},on:{blur:function(t){return e.saveStringPropVal(o.id,o.value,o.attrSource)}},model:{value:o.value,callback:function(t){e.$set(o,"value",t)},expression:"item.value"}})],1)])]:e._e(),"DateTimePicker"==o.type?[i("div",{staticClass:"property-item"},[i("label",{staticClass:"property-label"},[e._v(e._s(o.label))]),i("div",{staticClass:"property-value"},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"请选择日期时间",disabled:o.readonly},on:{blur:function(t){return e.saveStringPropVal(o.id,o.value,o.attrSource)}},model:{value:o.value,callback:function(t){e.$set(o,"value",t)},expression:"item.value"}})],1)])]:e._e(),"table"==o.type?[i("div",{staticClass:"property-item"},[i("label",{staticClass:"property-label"},[e._v(e._s(o.label))]),i("div",{staticClass:"property-value"},[i("el-input",{attrs:{size:e.size,disabled:o.readonly},model:{value:o.value.name,callback:function(t){e.$set(o.value,"name",t)},expression:"item.value.name"}},[i("template",{slot:"suffix"},[i("i",{staticClass:"el-icon-s-grid",staticStyle:{"font-size":"20px","line-height":"36px"},on:{click:function(t){return e.openTableDialog(o.id,o.value,o.attrSource)}}})])],2)],1)])]:e._e()]}))],2)]}))],2),i("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}}),i("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}}),i("el-container",[e.tableDialogVisible?i("el-dialog",{attrs:{id:"tableDialog",width:"500px",visible:e.tableDialogVisible,"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}}},[i("template",{slot:"title"},[i("el-tooltip",{attrs:{placement:"top-start"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(e.dialogTableNewValue.name))]),i("el-input",{staticClass:"titleInput",model:{value:e.dialogTableNewValue.name,callback:function(t){e.$set(e.dialogTableNewValue,"name",t)},expression:"dialogTableNewValue.name"}})],1)],1),i("div",{staticStyle:{height:"300px",overflow:"auto"}},[i("table",{staticClass:"table"},[i("tr",[i("td",{staticStyle:{width:"25%"}},[i("el-tooltip",{attrs:{placement:"top-start"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(e.dialogTableNewValue.table[0].name))]),i("el-input",{staticClass:"headInput",attrs:{size:"mini"},model:{value:e.dialogTableNewValue.table[0].name,callback:function(t){e.$set(e.dialogTableNewValue.table[0],"name",t)},expression:"dialogTableNewValue.table[0].name"}})],1)],1),i("td",{staticStyle:{width:"55%"}},[i("el-tooltip",{attrs:{placement:"top-start"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(e.dialogTableNewValue.table[0].name))]),i("el-input",{staticClass:"headInput",attrs:{size:"mini"},model:{value:e.dialogTableNewValue.table[0].desc,callback:function(t){e.$set(e.dialogTableNewValue.table[0],"desc",t)},expression:"dialogTableNewValue.table[0].desc"}})],1)],1),i("td",[i("span",{staticStyle:{"font-size":"14px",color:"#909399","font-weight":"bold","font-family":"PingFangSC-Light"}},[e._v("操作")])])]),e._l(e.dialogTableNewValue.table.slice(1),(function(t){return i("tr",[i("td",[i("el-tooltip",{attrs:{placement:"top-start"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(t.name))]),i("el-input",{staticClass:"contentInput",attrs:{size:"mini"},model:{value:t.name,callback:function(i){e.$set(t,"name",i)},expression:"item.name"}})],1)],1),i("td",[i("el-tooltip",{attrs:{placement:"top-start"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(t.desc))]),i("el-input",{staticClass:"contentInput",attrs:{size:"mini"},model:{value:t.desc,callback:function(i){e.$set(t,"desc",i)},expression:"item.desc"}})],1)],1),i("td",[i("span",{staticStyle:{color:"red","text-decoration":"underline"},on:{click:function(i){return e.deleteTableTr(t.id)}}},[e._v("删除")])])])}))],2)]),i("awsui-button",{staticClass:"button-general-color",staticStyle:{"margin-top":"10px"},attrs:{type:"primary"},on:{click:e.addNewTr}},[e._v("新增")]),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("awsui-button",{staticClass:"button-general-color",attrs:{type:"primary"},on:{click:function(t){return e.confirmTableDialog()}}},[e._v("确定")]),i("awsui-button",{on:{click:e.cancelTableDialog}},[e._v("取消")])],1)],2):e._e()],1)],1)},F=[],k=i("4cbb");k["a"].install=function(e){e.component(k["a"].name,k["a"])};var T=k["a"],R=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-container",[i("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?i("div",{staticStyle:{width:"100%",height:"400px",border:"1px solid #f2f2f2"}},[i("div",{staticClass:"div-left",style:{width:"file"==e.relationType?"373px":"249px"}},[i("div",{staticStyle:{width:"100%",height:"32px"}},[i("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(t){var o=t.item;return[i("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(o.pathName))]),i("span",[e._v(e._s(o.name))])])]}}],null,!1,3987291353),model:{value:e.treeSearchKey,callback:function(t){e.treeSearchKey=t},expression:"treeSearchKey"}})],1),i("div",[i("div",{staticStyle:{height:"368px",overflow:"auto"}},[i("div",{staticStyle:{margin:"0px"}},[i("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(t){var o=t.node;t.data;return i("span",{},[i("i",{staticClass:"awsui-iconfont tree-content-icon tree-content-icon-padding",style:{color:o.data.icon.color},domProps:{innerHTML:e._s(o.data.icon.icon)}}),i("span",[e._v(e._s(o.label))])])}}],null,!1,52448956)})],1)])])]),"file"!=e.relationType?i("div",{staticClass:"div-middle"},[i("div",{staticStyle:{width:"100%",height:"32px"}},[i("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),i("div",[i("div",{staticStyle:{height:"368px",overflow:"auto"}},[i("div",{staticStyle:{margin:"0px"}},[e.multiple?[i("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(t){return i("el-checkbox",{key:t.id,staticClass:"checkbox-item",attrs:{label:t.id,disabled:t.isDisabled}},[e._v(e._s(t.name))])})),1)]:[i("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(t){return i("el-radio",{key:t.id,staticClass:"redio-item",attrs:{label:t.id,disabled:t.isDisabled}},[e._v(e._s(t.name))])})),1)]],2)])])]):e._e(),i("div",{staticClass:"div-right",style:{width:"file"==e.relationType?"373px":"249px"}},[i("div",{staticStyle:{height:"100%"}},[[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,"show-header":!1,"empty-text":"请在左侧选择数据",size:"mini",height:"400px"}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),i("el-table-column",{attrs:{prop:"address",label:"操作",width:"40"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"icon-delete-display"},[i("i",{staticClass:"iconfont",staticStyle:{cursor:"pointer"},on:{click:function(i){return e.remove(t.row.id)}}},[e._v("")])])]}}],null,!1,1353718858)})],1)]],2)])]):e._e()],i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("awsui-button",{staticClass:"button-general-color",attrs:{type:"primary"},on:{click:e.submit}},[e._v("确定")]),i("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 o=this.shapeTempData[i];if(""!=o.name){let i=(o.name+"").toLocaleLowerCase();-1!=i.indexOf(e)&&t.push(JSON.parse(JSON.stringify(o)))}}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 o={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(o).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,o=i.$refs.tree,s=t.split(",");let a=1;for(let l=0;l<s.length;l++)l>0&&null!=o.getNode(s[l-1])&&(setTimeout(i._expandNode(o,s[l-1]),300*a),a++);setTimeout((function(){null!=o.getNode(e)&&o.setCurrentKey(e)}),300*a)},_expandNode(e,t){return function(){e.getNode(t).expand()}},loadNode(e,t){const i=this,o={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?o.data.pid=i.pid:o.data.pid=e.data.id,p["a"].post(o).then((function(o){for(let e=0;e<o.data.length;e++)o.data[e].id.length<36?o.data[e].disabled=!0:""!=i.categorys&&""!=i.methods?i.methods.indexOf(o.data[e].plMethodId)>-1?o.data[e].disabled=!1:o.data[e].disabled=!0:""!=i.categorys?i.categorys.indexOf(o.data[e].plCategory)>-1?o.data[e].disabled=!1:o.data[e].disabled=!0:i.methods.indexOf(o.data[e].plMethodId)>-1?o.data[e].disabled=!1:o.data[e].disabled=!0;if(t(o.data),i.initTreeCheck(),0==e.level&&o.data.length>0){const e=i.$refs.tree;e.getNode(o.data[0].id).expand(),setTimeout((function(){const t=e.getNode(o.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,o={};o.id=e.id,o.versionId=e.versionId,o.name=e.name,o.children=[],i.push(o),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 o=!0;o=""!=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,s=[];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:o};s.push(a),t.shapeRecords[i[e].id]=a}t.shapeData=s,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 o={id:e[i].id,name:e[i].name,versionId:e[i].versionId};t.push(o)}this.tableData=t}else if("shapeAndFile"==e){const e=this.result,t=[];for(let i=0;i<e.length;i++){const o=e[i],s=o.children;if(0==s.length){const o={id:e[i].id,name:e[i].name,versionId:e[i].versionId};t.push(o)}else for(let e=0;e<s.length;e++){const i=s[e],a={id:i.shapeId,name:i.name,fileId:o.id,fileName:o.name,versionId:o.versionId};t.push(a)}}this.tableData=t}else{const e=this.result,t=[];for(let i=0;i<e.length;i++){const o=e[i],s=o.children;for(let e=0;e<s.length;e++){const i=s[e],a={id:i.shapeId,name:i.name,fileId:o.id,fileName:o.name,versionId:o.versionId};t.push(a)}}this.tableData=t}},isFileExist(e,t,i){for(let o=0;o<e.length;o++){const t=e[o];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 o=t[i];if(o.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 o=t[i];if(o.id==e){this.$refs.tree.setChecked(e,!1),t.splice(i,1);break}{let s=this.shapeRecords[e],a=t[i].children;if(s&&o.id==s.fileId)for(let o=0;o<a.length;o++)if(a[o].shapeId==e&&(a.splice(o,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,o=(t.id,t.name,t.fileId);t.fileName,t.versionId;for(let t=0;t<i.length;t++){const s=i[t];if(s.id==o){const o=s.children;for(let t=0;t<o.length;t++)if(o[t].shapeId==e){o.splice(t,1);break}if(0==o.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,o=t.fileId,s=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 l=this.result,r={};r.id=o,r.versionId=a,r.name=s,r.children=[];const n={shapeId:e,name:i};r.children.push(n),l.push(r),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 o=e[i],s=this.shapeRecords[o];if(s){const e=s.id,i=s.name,o=s.fileId,a=s.fileName,l=s.versionId;let r=!1;for(let s=0;s<t.length;s++){const a=t[s];if(a.id==o){r=!0;const t={shapeId:e,name:i};-1===a.children.findIndex(t=>t.shapeId==e)&&a.children.push(t)}}if(!r){const s={};s.id=o,s.versionId=l,s.name=a,s.children=[];const r={shapeId:e,name:i};s.children.push(r),t.push(s)}}}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 o=t.data[e],s={};s.id=o.id,s.versionId=o.versionId,s.name=o.name,s.children=[],i.push(s)}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=$,V=(i("2d3e"),Object(m["a"])(P,R,N,!1,null,"3b59fe57",null)),L=V.exports;L.install=function(e){e.component(L.name,L)};var M=L,O={name:"RepositoryInfoProperty",components:{BPMOrgAddress:T,PalRelationAddress:M},props:{id:{type:String,default:""},versionId:{type:String,default:""},repositoryRefresh:{type:Function,default:null}},data(){return{bpmOrgAddress:{visible:!1,addressType:"user",multiple:!1},palRelationAddressVisible:!1,title:"",relation:{selectFileId:"",selectShapeId:"",relationType:"shape",category:"",method:"",wsId:this.$store.getters.getWsIdFn,teamId:this.$store.getters.getTeamIdFn,multiple:!1},propertyData:[{groupPath:"basic",groupPathName:"基本属性",data:[]}],size:"medium",currPropertyId:"",currPropertyType:"",currGroup:"",currCategory:"",currMethod:"",currRelationType:"",currPropSource:"",tableDialogVisible:!1,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(e=>{e.data.forEach(e=>{"table"==e.type&&"{}"==JSON.stringify(e.value)&&(e.value={name:"未命名表单",table:[{id:"table_head",name:"命名",desc:"描述"}]})})}),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){void 0==t&&(t=""),i&&"default"==i?this.saveDefaultpropToDb(e,t):this.saveCustomPropToDb(e,t)},saveNumberPropVal(e,t,i){void 0==t&&(t=""),i&&"default"==i?this.saveDefaultpropToDb(e,t):this.saveCustomPropToDb(e,t)},saveSingleSelectVal(e,t,i){void 0==t&&(t=""),i&&"default"==i?this.saveDefaultpropToDb(e,t):this.saveCustomPropToDb(e,t)},saveMultipleSelectVal(e,t,i){t=t.join(","),i&&"default"==i?this.saveDefaultpropToDb(e,t):this.saveCustomPropToDb(e,t)},saveDefaultpropToDb(e,t){const i=this,o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_default_attr_content_save",uuid:i.id,josnKey:e,josnContent:t}};p["a"].post(o).then((function(e){"ok"==e.result?i.initData():i.$message.error(e.msg)})).catch(e=>{console.log(e)})},saveCustomPropToDb(e,t){const i=this,o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_more_attr_content_save",uuid:i.id,josnKey:e,josnContent:t}};p["a"].post(o).then((function(e){"ok"==e.result?i.initData():i.$message.error(e.msg)})).catch(e=>{console.log(e)})},choiceRelationComponent(e,t,i,o,s,a,l){if(!s){this.currPropertyId=i,this.currPropertyType=t;const s=e.method;s.indexOf(".")>-1?(this.currCategory=s.substring(0,s.indexOf(".")),this.currMethod=s):(this.currCategory=s,this.currMethod=""),this.currPropSource="custom",this.relation.multiple=!0,this.currRelationType=e.type,this.title=o,this.relation.selectFileId=a,this.relation.selectShapeId=l,this.relation.relationType=e.type,this.relation.category=this.currCategory,this.relation.method=this.currMethod,this.relation.multiple=e.multiple,this.palRelationAddressVisible=!0}},choiceBpmOrgAddressComponent(e,t,i,o){o||(this.currPropertyId=i,this.currPropertyType=t,"deptAddress"==t?(this.title="责任部门",this.bpmOrgAddress.addressType="dept",this.bpmOrgAddress.visible=!0):"userAddress"==t&&(this.title="责任人",this.bpmOrgAddress.addressType="user",this.bpmOrgAddress.visible=!0))},choiceAwsOrgComponent(e,t,i,o,s){s||(this.currPropertyId=i,this.currPropertyType=t,this.title=o,this.bpmOrgAddress.addressType=e.scope.join(","),this.bpmOrgAddress.multiple=e.multiple,this.bpmOrgAddress.visible=!0)},saveBpmOrgAddressResult(e){this.bpmOrgAddress.visible=!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){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=[],o=[],s=[];for(let t=0;t<e.length;t++)if(0==e[t].children.length)i.push(e[t].versionId),s.push(e[t].name),o.push(" ");else for(let a=0;a<e[t].children.length;a++)i.push(e[t].versionId),o.push(e[t].children[a].shapeId),s.push(e[t].children[a].name);t.relationFileId=i.join(","),t.relationShapeId=o.join(","),t.relationShapeText=s.join(",")}else{const i=[],o=[],s=[];for(let t=0;t<e.length;t++){const a=e[t],l=a.children;for(let e=0;e<l.length;e++){const t=l[e];i.push(a.id),o.push(t.shapeId),s.push(t.name)}}t.relationFileId=i.join(","),t.relationShapeId=o.join(","),t.relationShapeText=s.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)})}}},A=O,j=(i("87c3"),Object(m["a"])(A,C,F,!1,null,"411b5d04",null)),U=j.exports,H={name:"RepositoryMainList",components:{RepositoryInfoProperty:U},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()},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,o,s){"default"==o?(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="修改"+s,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 o=t.folderDialog.folderForm.id,s=t.$store.getters.getWsIdFn,a=t.$store.getters.getTeamIdFn,l="default",r={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_folder_create_save",wsId:s,teamId:a,method:l,name:e,desc:i,id:o}};p["a"].post(r).then((function(e){"ok"==e.result&&(t.initData(),t.refreshTreeParentNode&&t.refreshTreeParentNode(o),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}};p["a"].post(t).then((function(t){"ok"==t.result&&(e.defaultCategoryName=t.data.defaultCategoryName,e.recentData=t.data.recentData,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 o=[];for(let s=0;s<i.length;s++){const e=i[s].versionId;o.push(e)}this.$router.push({path:"/Repository",query:{id:e,versionId:t,path:o.join(","),param:Math.random()}})}},computed:{listenTopMainHeight(){return this.$store.getters.getTopMainHeightFn}},watch:{listenTopMainHeight:function(e,t){this.mainHeight=parseInt(e)+"px"}}},z=H,B=(i("ea48"),Object(m["a"])(z,D,I,!1,null,"70fd2b78",null)),W=B.exports,E=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-container",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("el-container",{attrs:{id:"repositoryList"}},[i("el-main",{style:{height:e.mainHeight}},[i("div",{staticStyle:{width:"100%",height:"100%",overflow:"auto",display:"inline"}},[i("div",{staticStyle:{margin:"12px 10px 10px 10px"}},[i("div",{staticStyle:{"margin-bottom":"10px","margin-left":"10px"}},[i("div",{staticStyle:{"min-width":"50%",display:"inline-block","text-overflow":"ellipsis","white-space":"nowrap",overflow:"hidden"}},[e._l(e.repositoryPathData,(function(t,o){return[o!=e.repositoryPathData.length-1?i("label",{staticStyle:{"font-size":"14px",color:"#6F91B9"}},[i("span",{staticClass:"repository-path-title",staticStyle:{cursor:"pointer"},on:{click:function(i){return e.positionRepositoryPath(t.id,t.versionId)}}},[e._v(e._s(t.name))]),i("i",{staticClass:"awsui-iconfont"},[e._v(" ")])]):e._e(),o==e.repositoryPathData.length-1?i("label",{staticStyle:{"font-size":"14px",color:"#384148"}},[i("span",{staticClass:"cur-title"},[i("span",{on:{click:e.initData}},[e._v(e._s(t.name))]),void 0!=e.mainRepository?i("div",{staticClass:"cur-title-operate",staticStyle:{width:"16px","margin-left":"10px"}},[i("div",{staticClass:"operate-icon-display"},[i("el-dropdown",{attrs:{"hide-on-click":!0,trigger:"click",placement:"bottom-end"}},[i("span",{staticClass:"el-dropdown-link"},[i("i",{staticClass:"iconfont icon-operate",staticStyle:{cursor:"pointer"}},[e._v("")])]),i("el-dropdown-menu",{staticStyle:{"min-width":"200px"},attrs:{slot:"dropdown"},slot:"dropdown"},[e.mainRepository.folder&&e.havingWritePerm?i("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)}}},[i("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[i("span",{staticStyle:{display:"inline-block",width:"20px"}}),i("span",{staticStyle:{"font-size":"12px"}},[e._v("修改"+e._s(e.mainRepository.methodName))])])]):e._e(),e.mainRepository.folder?e._e():i("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.openDesigner(e.mainRepository.id)}}},[i("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[i("span",{staticStyle:{display:"inline-block",width:"20px"}}),i("span",{staticStyle:{"font-size":"12px"}},[e._v("打开模型")])])]),"default"==e.mainRepository.methodId&&e.havingWritePerm||"default"!=e.mainRepository.methodId?i("el-dropdown-item",{attrs:{divided:""}}):e._e(),e.mainRepository.isFavorite?i("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.setFavorite("0",e.mainRepository.versionId,e.mainRepository.id)}}},[i("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[i("span",{staticStyle:{display:"inline-block",width:"20px"}},[i("i",{staticClass:"iconfont",staticStyle:{"font-size":"12px",color:"#FFB800"}},[e._v("")])]),i("span",{staticStyle:{"font-size":"12px"}},[e._v("取消收藏")])])]):i("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.setFavorite("1",e.mainRepository.versionId,e.mainRepository.id)}}},[i("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[i("span",{staticStyle:{display:"inline-block",width:"20px"}},[i("i",{staticClass:"iconfont",staticStyle:{"font-size":"12px"}},[e._v("")])]),i("span",{staticStyle:{"font-size":"12px"}},[e._v("收藏")])])]),e.havingWritePerm?i("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.moveFile(e.mainRepository.id)}}},[i("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[i("span",{staticStyle:{display:"inline-block",width:"20px"}}),i("span",{staticStyle:{"font-size":"12px"}},[e._v("移动至")])])]):e._e(),e.havingWritePerm?i("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.copyFiles(e.mainRepository.id)}}},[i("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[i("span",{staticStyle:{display:"inline-block",width:"20px"}}),i("span",{staticStyle:{"font-size":"12px"}},[e._v("创建副本")])])]):e._e(),i("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.exportFiles(e.mainRepository.id)}}},[i("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[i("span",{staticStyle:{display:"inline-block",width:"20px"}}),i("span",{staticStyle:{"font-size":"12px"}},[e._v("导出")])])]),e.havingRemovePerm?i("el-dropdown-item",{staticStyle:{height:"30px","line-height":"30px"},attrs:{divided:""},nativeOn:{click:function(t){return e.removeFiles(e.mainRepository.id)}}},[i("div",{staticClass:"text-important-color",staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[i("span",{staticStyle:{display:"inline-block",width:"20px"}},[i("i",{staticClass:"iconfont icon-lajitong1",staticStyle:{"font-size":"12px"}})]),i("span",{staticStyle:{"font-size":"12px"}},[e._v("删除模型")])])]):e._e()],1)],1)],1)]):e._e()])]):e._e()]}))],2),e.batchAppVisible&&"process"==e.uuid?i("div",{staticStyle:{float:"right",position:"relative",right:"10px",display:"inline-block"}},[null!=e.$store.getters.getTeamIdFn?i("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(),i("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("批量替换")])],1):e._e()]),i("div",[i("div",{ref:"repositorysDiv",staticStyle:{"margin-left":"10px","margin-right":"10px"}},[i("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}},[i("el-table-column",{attrs:{"class-name":"rowDropFilter el-table-column--selection",type:"selection",width:"40",align:"left"}}),i("el-table-column",{attrs:{prop:"main",label:"名称","class-name":"row-repository-title","min-width":"250px"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.folder?i("div",{staticClass:"icon-div-repository rowDropFilter"},[i("i",{staticClass:"awsui-iconfont icon-dynamic-repository",style:{color:t.row.icon.color,"font-size":"32px"},domProps:{innerHTML:e._s(t.row.icon.code)}})]):i("div",{staticClass:"icon-div-repository rowDropFilter",style:{"background-color":t.row.icon.color}},[i("i",{staticClass:"awsui-iconfont icon-dynamic-repository",domProps:{innerHTML:e._s(t.row.icon.code)}})]),i("div",{staticClass:"div-repository-title rowDropFilter"},[i("p",{staticClass:"text-general-color",staticStyle:{cursor:"pointer"},on:{click:function(i){return e.positionTableRoleRepository(t.row.id,t.row.versionId,t.row.childSize,t.row.folder)}}},[e._v(" "+e._s(t.row.name)+" ")])])]}}])}),i("el-table-column",{attrs:{prop:"second",label:"修改日期",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"div-update-date"},[i("p",[e._v(" "+e._s(t.row.updateUser)+" 于 "+e._s(t.row.updateDate)+"修改 ")])])]}}])}),i("el-table-column",{attrs:{"class-name":"rowDropFilter",prop:"operate",label:"操作",align:"right",width:"135"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticStyle:{width:"16px",display:"inline-block"}},[i("div",{staticClass:"operate-icon-display"},[t.row.folder&&e.havingWritePerm?i("el-tooltip",{attrs:{placement:"bottom","hide-after":2e3}},[i("span",{attrs:{slot:"content"},slot:"content"},[e._v("修改"+e._s(t.row.methodName))]),i("i",{staticClass:"iconfont icon-operate",staticStyle:{display:"inline-block",cursor:"pointer"},on:{click:function(i){return e.openUpdateFolder(t.row.id,t.row.name,t.row.desc,t.row.methodId,t.row.methodName)}}},[e._v("")])]):e._e(),t.row.folder?e._e():i("el-tooltip",{attrs:{content:"打开模型",placement:"bottom","hide-after":2e3}},[i("i",{staticClass:"iconfont icon-operate",staticStyle:{display:"inline-block",cursor:"pointer"},on:{click:function(i){return e.openDesigner(t.row.id)}}},[e._v("")])])],1)]),i("div",{staticStyle:{width:"16px",margin:"0 15px",display:"inline-block"}},[t.row.isFavorite?i("div",{staticStyle:{display:"inline-block"}},[i("el-tooltip",{attrs:{content:"取消收藏",placement:"bottom","hide-after":2e3}},[i("i",{staticClass:"iconfont",staticStyle:{cursor:"pointer",color:"#FFB800"},on:{click:function(i){return e.setFavorite("0",t.row.versionId,t.row.id)}}},[e._v("")])])],1):e._e(),t.row.isFavorite?e._e():i("div",{staticClass:"non-favorite-display"},[i("el-tooltip",{attrs:{content:"收藏",placement:"bottom","hide-after":2e3}},[i("i",{staticClass:"iconfont icon-operate",staticStyle:{cursor:"pointer"},on:{click:function(i){return e.setFavorite("1",t.row.versionId,t.row.id)}}},[e._v("")])])],1)]),i("div",{staticStyle:{width:"16px",display:"inline-block","margin-right":"5px"}},[i("div",{staticClass:"operate-icon-display"},[i("el-dropdown",{attrs:{"hide-on-click":!0,trigger:"click",placement:"bottom-end"}},[i("span",{staticClass:"el-dropdown-link"},[i("i",{staticClass:"iconfont icon-operate",staticStyle:{cursor:"pointer"}},[e._v("")])]),i("el-dropdown-menu",{staticStyle:{"min-width":"200px"},attrs:{slot:"dropdown"},slot:"dropdown"},[t.row.folder&&e.havingWritePerm?i("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(i){return e.openUpdateFolder(t.row.id,t.row.name,t.row.desc,t.row.methodId,t.row.methodName)}}},[i("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[i("span",{staticStyle:{display:"inline-block",width:"20px"}}),i("span",{staticStyle:{"font-size":"12px"}},[e._v("修改"+e._s(t.row.methodName))])])]):e._e(),t.row.folder?e._e():i("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(i){return e.openDesigner(t.row.id)}}},[i("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[i("span",{staticStyle:{display:"inline-block",width:"20px"}}),i("span",{staticStyle:{"font-size":"12px"}},[e._v("打开模型")])])]),"default"==t.row.methodId&&e.havingWritePerm||"default"!=t.row.methodId?i("el-dropdown-item",{attrs:{divided:""}}):e._e(),t.row.isFavorite?i("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(i){return e.setFavorite("0",t.row.versionId,t.row.id)}}},[i("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[i("span",{staticStyle:{display:"inline-block",width:"20px"}},[i("i",{staticClass:"iconfont",staticStyle:{"font-size":"12px",color:"#FFB800"}},[e._v("")])]),i("span",{staticStyle:{"font-size":"12px"}},[e._v("取消收藏")])])]):i("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(i){return e.setFavorite("1",t.row.versionId,t.row.id)}}},[i("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[i("span",{staticStyle:{display:"inline-block",width:"20px"}},[i("i",{staticClass:"iconfont",staticStyle:{"font-size":"12px"}},[e._v("")])]),i("span",{staticStyle:{"font-size":"12px"}},[e._v("收藏")])])]),e.havingWritePerm?i("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(i){return e.moveFile(t.row.id)}}},[i("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[i("span",{staticStyle:{display:"inline-block",width:"20px"}}),i("span",{staticStyle:{"font-size":"12px"}},[e._v("移动至")])])]):e._e(),e.havingWritePerm?i("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(i){return e.copyFiles(t.row.id)}}},[i("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[i("span",{staticStyle:{display:"inline-block",width:"20px"}}),i("span",{staticStyle:{"font-size":"12px"}},[e._v("创建副本")])])]):e._e(),i("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(i){return e.exportFiles(t.row.id)}}},[i("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[i("span",{staticStyle:{display:"inline-block",width:"20px"}}),i("span",{staticStyle:{"font-size":"12px"}},[e._v("导出")])])]),e.havingRemovePerm?i("el-dropdown-item",{staticStyle:{height:"30px","line-height":"30px"},attrs:{divided:""},nativeOn:{click:function(i){return e.removeFiles(t.row.id)}}},[i("div",{staticClass:"text-important-color",staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[i("span",{staticStyle:{display:"inline-block",width:"20px"}},[i("i",{staticClass:"iconfont icon-lajitong1",staticStyle:{"font-size":"12px"}})]),i("span",{staticStyle:{"font-size":"12px"}},[e._v("删除模型")])])]):e._e()],1)],1)],1)])]}}])})],1)],1)])])])]),e.isShow?i("el-aside",{style:{height:parseInt(e.mainHeight)-5+"px","background-color":"#FAFAFB",position:"relative",top:"5px"},attrs:{width:"280px"}},[i("div",{staticStyle:{"border-left":"1px solid #f2f2f2",width:"270px",height:"100%"}},[i("div",[i("div",{staticStyle:{width:"240px","min-height":"47px","margin-left":"15px","margin-right":"15px"}},[i("div",{staticStyle:{position:"relative","padding-top":"12px"}},[e.currRepositoryDetail.folder?i("div",{staticClass:"icon-div-repository-detail"},[i("i",{staticClass:"awsui-iconfont icon-repository-detail",style:{color:e.currRepositoryDetail.iconColor,"font-size":"32px"},domProps:{innerHTML:e._s(e.currRepositoryDetail.iconCode)}})]):i("div",{staticClass:"icon-div-repository-detail",style:{"background-color":e.currRepositoryDetail.iconColor}},[i("i",{staticClass:"awsui-iconfont icon-repository-detail",domProps:{innerHTML:e._s(e.currRepositoryDetail.iconCode)}})]),i("div",{staticClass:"icon-repository-detail-title"},[i("span",{staticClass:"text-general-color"},[e._v(" "+e._s(e.currRepositoryDetail.name)+" ")]),i("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)+")")])])])]),i("div",{staticStyle:{height:"140px",margin:"15px",position:"relative",overflow:"hidden"}},["image"==e.currRepositoryDetail.photoType?i("img",{staticStyle:{"border-radius":"4px",border:"1px solid #F2F2F2",width:"238px"},attrs:{src:e.currRepositoryDetail.photo,height:"138px;"}}):e._e(),"icon"==e.currRepositoryDetail.photoType?i("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"}},[i("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(),i("div",{staticClass:"repository-img-halve",style:{background:e.currRepositoryDetail.stateColor}},[i("span",[e._v(e._s(e.currRepositoryDetail.state))])])])]),i("div",[i("ul",[e.currRepositoryDetail.folder&&e.havingWritePerm?i("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)}}},[i("i",{staticClass:"iconfont icon-bianji5 aside-repository-operate-li-icon"}),i("span",[e._v("修改"+e._s(e.currRepositoryDetail.methodName))])]):e._e(),e.currRepositoryDetail.folder?e._e():i("li",{staticClass:"general-bgcolor-text-hover text-general-color aside-repository-operate-li",on:{click:function(t){return e.openDesigner(e.currRepositoryDetail.id)}}},[i("i",{staticClass:"iconfont icon-bianji5 aside-repository-operate-li-icon"}),i("span",[e._v("打开文件")])]),e.currRepositoryDetail.folder?e._e():i("li",{staticClass:"general-bgcolor-text-hover text-general-color aside-repository-operate-li",on:{click:function(t){return e.openRepositoryInfo("property")}}},[i("i",{staticClass:"iconfont icon-21file aside-repository-operate-li-icon"}),i("span",[e._v("文件属性")])]),e.currRepositoryDetail.folder?e._e():i("li",{staticClass:"general-bgcolor-text-hover text-general-color aside-repository-operate-li",on:{click:function(t){return e.openRepositoryInfo("version")}}},[i("i",{staticClass:"iconfont icon-jurassic_version aside-repository-operate-li-icon"}),i("span",[e._v("版本管理")])]),i("li",{staticClass:"general-bgcolor-text-hover text-general-color aside-repository-operate-li",on:{click:function(t){return e.openRepositoryInfo("upfile")}}},[i("i",{staticClass:"iconfont icon-wendangfujian aside-repository-operate-li-icon"}),i("span",[e._v("附件管理")])]),e.outputPrInstall&&e.onlineDocInstall&&"process"==e.category&&!e.currRepositoryDetail.folder&&"process.evc"!=e.currRepositoryDetail.methodId?i("li",{staticClass:"general-bgcolor-text-hover text-general-color aside-repository-operate-li",on:{click:function(t){return e.createOutputPr(e.currRepositoryDetail.id)}}},[i("i",{staticClass:"iconfont icon-ziliaoshouce-xianxing aside-repository-operate-li-icon"}),i("span",[e._v("流程手册")])]):e._e(),"process"==e.category&&!e.currRepositoryDetail.folder&&e.processLinkInstall?i("li",{staticClass:"general-bgcolor-text-hover text-general-color aside-repository-operate-li",on:{click:function(t){return e.eteCascadeAnalysis(e.currRepositoryDetail.id)}}},[i("i",{staticClass:"iconfont icon-liuchengguanli- aside-repository-operate-li-icon"}),i("span",[e._v("串联分析")])]):e._e(),e.currRepositoryDetail.folder?e._e():i("li",{staticClass:"general-bgcolor-text-hover text-general-color aside-repository-operate-li",on:{click:function(t){return e.downloadPng(e.currRepositoryDetail.id)}}},[i("i",{staticClass:"iconfont icon-tupian aside-repository-operate-li-icon"}),i("span",[e._v("下载图片")])]),e.currRepositoryDetail.folder?i("li",{staticClass:"general-bgcolor-text-hover text-general-color aside-repository-operate-li",on:{click:function(t){return e.exportFiles(e.currRepositoryDetail.id)}}},[i("i",{staticClass:"iconfont icon-daochu aside-repository-operate-li-icon"}),i("span",[e._v("导出"+e._s(e.currRepositoryDetail.methodName))])]):i("li",{staticClass:"general-bgcolor-text-hover text-general-color aside-repository-operate-li",on:{click:function(t){return e.exportFiles(e.currRepositoryDetail.id)}}},[i("i",{staticClass:"iconfont icon-daochu aside-repository-operate-li-icon"}),i("span",[e._v("导出文件")])]),e.havingRemovePerm?[e.currRepositoryDetail.folder?i("li",{staticClass:"general-bgcolor-text-hover text-general-color aside-repository-operate-li",on:{click:function(t){return e.removeFiles(e.currRepositoryDetail.id)}}},[i("i",{staticClass:"iconfont icon-lajitong1 aside-repository-operate-li-icon"}),i("span",[e._v("删除"+e._s(e.currRepositoryDetail.methodName))])]):i("li",{staticClass:"general-bgcolor-text-hover text-general-color aside-repository-operate-li",on:{click:function(t){return e.removeFiles(e.currRepositoryDetail.id)}}},[i("i",{staticClass:"iconfont icon-lajitong1 aside-repository-operate-li-icon"}),i("span",[e._v("删除文件")])])]:e._e()],2)])])]):e._e()],1),i("el-footer",{directives:[{name:"show",rawName:"v-show",value:e.showFooter,expression:"showFooter"}],key:"operateFooter",staticStyle:{height:"45px",padding:"0"},attrs:{id:"operateFooter"}},[i("div",{staticStyle:{"border-top":"1px solid #F2F2F2",height:"44px"}},[i("div",{staticStyle:{padding:"8px 8px 8px 34px"}},[i("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}}),e.havingWritePerm?i("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"100px","margin-left":"15px"},attrs:{type:"primary"},on:{click:e.moveFiles}},[e._v("移动至")]):e._e(),e.havingWritePerm?i("awsui-button",{staticClass:"button-general-color-reverse",staticStyle:{width:"100px"},attrs:{plain:""},on:{click:function(t){return e.copyFiles()}}},[e._v("创建副本")]):e._e(),i("awsui-button",{staticClass:"button-general-color-reverse",staticStyle:{width:"100px"},attrs:{plain:""},on:{click:function(t){return e.exportFiles()}}},[e._v("导出")]),e.havingRemovePerm?i("awsui-button",{staticClass:"button-general-color-reverse2",staticStyle:{width:"100px"},attrs:{plain:""},on:{click:function(t){return e.removeFiles()}}},[e._v("删除")]):e._e(),i("awsui-button",{staticClass:"button-general-color-reverse3",staticStyle:{width:"100px"},attrs:{plain:""},on:{click:e.closeFooter}},[e._v("取消")])],1)])]),i("el-container",[i("RepositoryInfo",{ref:"repositoryInfo"})],1),i("el-container",{attrs:{id:"repositoryListFolderDlg"}},[i("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)}}},[i("div",{staticStyle:{border:"1px solid #F2F2F2",padding:"0px 10px 10px 10px"}},[i("awsui-form",{ref:"folderForm",attrs:{model:e.folderDialog.folderForm,rules:e.folderDialog.rules,"label-position":"top"}},[i("awsui-form-item",{attrs:{label:"名称",prop:"name"}},[i("awsui-input",{model:{value:e.folderDialog.folderForm.name,callback:function(t){e.$set(e.folderDialog.folderForm,"name",t)},expression:"folderDialog.folderForm.name"}})],1),i("awsui-form-item",{attrs:{label:"描述",prop:"desc"}},[i("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),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("awsui-button",{staticClass:"button-general-color",attrs:{type:"primary"},on:{click:function(t){return e.updateFolderSave("folderForm")}}},[e._v("确定")]),i("awsui-button",{on:{click:e.closeFolderDlg}},[e._v("取消")])],1)]),i("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)}}},[i("div",[e.customFolderDialog.dialogVisible?i("repository-info-property",{attrs:{id:e.customFolderDialog.id,repositoryRefresh:e.repositoryRefresh}}):e._e()],1)])],1),i("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}}),i("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}}),i("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)},q=[],J=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-container",{attrs:{id:"repositoryInfo"}},[i("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}}},[[i("el-tabs",{on:{"tab-click":e.changeRepositoryType},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},["default"!=this.methodId?[i("el-tab-pane",{attrs:{label:"文件属性",name:"property"}}),i("el-tab-pane",{attrs:{label:"版本管理",name:"version"}})]:e._e(),i("el-tab-pane",{attrs:{label:"附件管理",name:"upfile"}})],2)],i(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.$createElement,i=e._self._c||t;return i("el-container",[i("div",{staticStyle:{height:"500px",width:"100%"},attrs:{id:"repositoryInfoVersion"}},[e.tableData.length>0?i("el-table",{staticStyle:{width:"100%"},attrs:{id:"table",data:e.tableData,"header-cell-class-name":"header-cell-row",height:"500px"}},[i("el-table-column",{attrs:{prop:"versionNo",label:"版本号",align:"center",width:"70"}}),i("el-table-column",{attrs:{prop:"name",label:"文件名称","min-width":"180"}}),i("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?[i("el-table-column",{attrs:{prop:"state",label:"PAL状态",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return i("span",{style:{color:t.row.stateColor}},[e._v(" "+e._s(t.row.state)+" ")])}}],null,!1,2272571482)}),e.isPalManage?[i("el-table-column",{attrs:{prop:"state",label:"在BPM运行",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return i("span",{},[e._v(" "+e._s(t.row.isCorrelate?"是":"否")+" ")])}}],null,!1,3455484328)})]:[i("el-table-column",{attrs:{prop:"state",label:"BPM状态",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return i("span",{style:{color:t.row.bpmStateColor}},[e._v(" "+e._s(t.row.bpmState)+" ")])}}],null,!1,2058353434)})]]:[i("el-table-column",{attrs:{prop:"state",label:"状态",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return i("span",{style:{color:t.row.stateColor}},[e._v(" "+e._s(t.row.state)+" ")])}}],null,!1,2272571482)})],e.havingVersionManagePerm&&e.tableData.length>1?i("el-table-column",{attrs:{prop:"name",label:"使用",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{staticStyle:{display:"block"},attrs:{"active-color":"#4E7FF9","inactive-color":"#E2E2E2"},on:{change:function(i){return e.changeRepositoryUseStatus(t.row.id,t.row.isUse)}},model:{value:t.row.isUse,callback:function(i){e.$set(t.row,"isUse",i)},expression:"scope.row.isUse"}})]}}],null,!1,2707523121)}):e._e(),i("el-table-column",{attrs:{prop:"address",align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.havingWritePerm?i("i",{staticClass:"iconfont icon-fuzhi operate-icon-display",staticStyle:{cursor:"pointer"},on:{click:function(i){return e.createNewVersion(t.row.id,t.row.versionNo)}}}):e._e(),!e.havingRemovePerm||e.isCorrelatebpms||t.row.isUse||t.row.isPublish||t.row.isApproval?e._e():i("i",{staticClass:"iconfont icon-lajitong1 operate-icon-display",staticStyle:{cursor:"pointer","padding-left":"5px"},on:{click:function(i){return e.deleteRepository(t.row.id,t.row.versionNo)}}})]}}],null,!1,3876784955)})],2):e._e()],1),i("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}}},[i("span",[e._v("请选择以"+e._s(e.currentVersion)+"版本为模板创建的新文件版本号:")]),i("br"),i("el-radio-group",{staticStyle:{"margin-top":"10px"},model:{value:e.isLargeIteration,callback:function(t){e.isLargeIteration=t},expression:"isLargeIteration"}},[i("el-radio",{attrs:{label:!0}},[e._v("大版本")]),i("br"),i("el-radio",{staticStyle:{"margin-top":"5px"},attrs:{label:!1}},[e._v("小版本")])],1),i("span",{attrs:{slot:"footer"},slot:"footer"},[i("awsui-button",{staticClass:"button-general-color",attrs:{type:"primary"},on:{click:e.confirmAddVersion}},[e._v("确定")]),i("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}},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}else e.$message.error(t.msg)})).catch(e=>{console.log(e)})},changeRepositoryUseStatus(e,t){const i=this;if(t){let t;for(var o in i.tableData)if(i.tableData[o].isUse&&i.tableData[o].id!=e){t=i.tableData[o].id;break}const s=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(),s.close(),i.repositoryRefresh&&t&&i.repositoryRefresh(t)):(s.close(),i.$message(e.msg))})).catch(e=>{console.log(e)})}else for(var o in i.tableData)i.tableData[o].id==e&&(i.tableData[o].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)"}),o={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(o).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("7646"),Object(m["a"])(X,G,Y,!1,null,"33ae6f47",null)),ee=Z.exports,te=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-container",[i("div",{staticStyle:{height:"500px",width:"100%"},attrs:{id:"repositoryInfoUpfile"}},[!e.havingWritePerm||e.isPublish||e.isStop||e.isApproval?e._e():i("div",{staticStyle:{height:"40px"}},[i("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start","hide-after":5e3}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("附件格式支持:"),i("br"),e._v("jpg, jpeg, gif, png, bmp, pdf, doc, docx, ppt, pptx, xls, xlsx, txt, mp3, mp4, avi, mpeg, flv, swf, wmv")]),i("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),i("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}},[i("div",{staticStyle:{display:"none"}},[i("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"130px"},attrs:{id:"selectFileButton",type:"primary"}},[e._v("Excel文件上传")])],1)])],1),i("div",{staticStyle:{height:"460px",width:"100%",overflow:"auto"}},[i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{"show-header":!1,data:e.fileTable}},[i("el-table-column",{attrs:{prop:"name",label:"名称","min-width":"300"}}),e.isHighSecurity?i("el-table-column",{attrs:{prop:"securityLevel",label:"文件密级","min-width":"50"}}):e._e(),i("el-table-column",{attrs:{prop:"operate",label:"操作",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.onlineDoc?i("el-tooltip",{attrs:{content:"预览",placement:"bottom","hide-after":2e3}},[i("i",{staticClass:"iconfont operate-icon-display",staticStyle:{cursor:"pointer"},on:{click:function(i){return e.readFile(t.row.id)}}},[e._v("")])]):e._e(),i("el-tooltip",{attrs:{content:"下载",placement:"bottom","hide-after":2e3}},[i("i",{staticClass:"iconfont operate-icon-display",staticStyle:{cursor:"pointer","padding-left":"15px"},on:{click:function(i){return e.downloadFile(t.row.url)}}},[e._v("")])]),!e.havingRemovePerm||e.isPublish||e.isStop||e.isApproval?e._e():i("el-tooltip",{attrs:{content:"删除",placement:"bottom","hide-after":2e3}},[i("i",{staticClass:"iconfont icon-lajitong1 operate-icon-display",staticStyle:{cursor:"pointer","padding-left":"15px"},on:{click:function(i){return e.deleteFile(t.row.name,t.row.id)}}})])]}}])})],1)],1),i("div",{staticStyle:{height:"25px","line-height":"25px","vertical-align":"center",margin:"30px 30px 15px 0px","border-left":"3px solid #4E7FF9"}},[i("p",{staticStyle:{"padding-left":"5px"}},[i("b",[e._v("关联附件")])])]),i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{"show-header":!1,data:e.relationFileTable}},[i("el-table-column",{attrs:{prop:"name",label:"名称","min-width":"300"}}),e.isHighSecurity?i("el-table-column",{attrs:{prop:"securityLevel",label:"文件密级","min-width":"50"}}):e._e(),i("el-table-column",{attrs:{prop:"operate",label:"操作",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tooltip",{attrs:{content:"预览",placement:"bottom","hide-after":2e3}},[i("i",{staticClass:"iconfont operate-icon-display",staticStyle:{cursor:"pointer"},on:{click:function(i){return e.readFile(t.row.id)}}},[e._v("")])]),i("el-tooltip",{attrs:{content:"下载",placement:"bottom","hide-after":2e3}},[i("i",{staticClass:"iconfont operate-icon-display",staticStyle:{cursor:"pointer","padding-left":"15px"},on:{click:function(i){return e.downloadFile(t.row.url)}}},[e._v("")])])]}}])})],1)],1)])]),i("div",[i("awsui-dialog",{attrs:{title:"密级标定",visible:e.securityVisible,border:!1,"append-to-body":"",width:"500px"},on:{"update:visible":function(t){e.securityVisible=t}}},[i("div",{staticStyle:{"max-height":"500px","overflow-y":"auto"}},e._l(e.securityFileList,(function(t){return i("awsui-form",{key:t.uid,ref:t.uid,refInFor:!0,attrs:{"label-width":"200px",id:"securityDialog",rules:e.securityRules,model:t}},[i("awsui-form-item",{attrs:{label:t.name,prop:"securityLevel"}},[i("awsui-select",{staticStyle:{width:"70%"},attrs:{options:e.securityOptions},model:{value:t.securityLevel,callback:function(i){e.$set(t,"securityLevel",i)},expression:"file.securityLevel"}})],1)],1)})),1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("awsui-button",{attrs:{type:"primary"},on:{click:e.uploadServer}},[e._v("确定")]),i("awsui-button",{on:{click:function(t){e.securityVisible=!1}}},[e._v("取 消")])],1)])],1)])},ie=[],oe={name:"RepositoryInfoUpfile",components:{PALUpload:d["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 o=[];for(let s=0;s<i.length;s++){const a=i[s],l={id:a.uuid,name:a.fileName,url:a.url,securityLevel:e.isHighSecurity?t.data.securityList[a.securityLevel]:""};o.push(l)}e.fileTable=o}})).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 o=[];for(let t=0;t<i.length;t++){const s=i[t],a={id:s.uuid,name:s.fileName,url:s.url,securityLevel:e.isHighSecurity?e.securityList[s.securityLevel]:""};o.push(a)}e.relationFileTable=o}})).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,o={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(o).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(()=>{})}}},se=oe,ae=(i("6076"),Object(m["a"])(se,te,ie,!1,null,"5fba02ef",null)),le=ae.exports,re={name:"RepositoryInfo",components:{RepositoryInfoProperty:U,RepositoryInfoVersion:ee,RepositoryInfoUpfile:le},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,o,s,a,l,r,n){this.id=t,this.versionId=i,this.type=o,this.activeName=o,this.initInfoChildType(o),this.dialogVisible=!0,this.isUse=s,this.isPublish=a,this.isStop=l,this.isApproval=r,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=re,ce=(i("a9ad"),Object(m["a"])(ne,J,K,!1,null,"0995ff66",null)),de=ce.exports,pe=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-container",[i("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?[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{"element-loading-text":"拼命加载中"}},[i("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(t){var o=t.item;return[i("el-tooltip",{staticClass:"item",attrs:{placement:"bottom-start"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(o.pathName))]),i("span",[e._v(e._s(o.name))])])]}}],null,!1,3987291353),model:{value:e.treeSearchKey,callback:function(t){e.treeSearchKey=t},expression:"treeSearchKey"}}),i("div",{staticStyle:{height:"300px",overflow:"auto",border:"1px solid #f2f2f2"}},[i("div",{staticClass:"tree"},[i("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(t){var o=t.node;t.data;return i("span",{},[i("i",{staticClass:"awsui-iconfont tree-content-icon tree-content-icon-padding",style:{color:o.data.icon.color},domProps:{innerHTML:e._s(o.data.icon.icon)}}),i("span",[e._v(e._s(o.label))])])}}],null,!1,52448956)})],1)])],1)]:e._e(),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("awsui-button",{staticClass:"button-general-color",attrs:{type:"primary"},on:{click:e.submit}},[e._v("确定")]),i("awsui-button",{on:{click:e.cancel}},[e._v("取消")])],1)],2)],1)},ue=[],he={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 o={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(o).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 o=this,s=o.$refs.tree,a=i.split(",");let l=1;for(let r=0;r<a.length;r++)r>0&&null!=s.getNode(a[r-1])&&(setTimeout(o._expandNode(s,a[r-1]),300*l),l++);setTimeout((function(){null!=s.getNode(t)&&s.setCurrentKey(t)}),300*l)},_expandNode(e,t){return function(){e.getNode(t).expand()}},loadNode(e,t){const i=this;i.loading=!0;const o={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?o.data.pid=i.pid:o.data.pid=e.data.id,p["a"].post(o).then((function(o){if(t(o.data),i.loading=!1,0==e.level&&o.data.length>0){const e=i.$refs.tree;e.getNode(o.data[0].id).expand(),setTimeout((function(){const t=e.getNode(o.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}}},me=he,ge=(i("ba8c"),Object(m["a"])(me,pe,ue,!1,null,"07ba25f0",null)),fe=ge.exports,ye=i("2480"),ve=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("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}}},[i("iframe",{staticStyle:{border:"0px",width:"100%",height:"695px"},attrs:{id:"batchCreateIframe",name:"batchCreateIframe",src:e.src}})])},be=[],we={name:"create",props:{visible:{type:Boolean,default:!1},methodCategory:{type:String,default:""}},data(){return{dialogVisible:!1,src:wHref+"?sid="+this.$store.state.sessionId+"&mainPage=create&cmd=com.actionsoft.apps.coe.pal.batch_main_page&methodCategory="+this.methodCategory+"&wsId="+this.$store.getters.getWsIdFn+"&teamId="+this.$store.getters.getTeamIdFn}},created(){const e=this;window.closeBatchCreateFn=function(t){e.closeDlalog(),e.dialogVisible=!1}},methods:{handleClose(e){this.closeDlalog(),e()},closeDlalog(){this.$emit("getResult")}},watch:{visible(e){this.dialogVisible=e}}},_e=we,xe=Object(m["a"])(_e,ve,be,!1,null,"43ccbcf0",null),Se=xe.exports,De=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("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}}},[i("iframe",{staticStyle:{border:"0px",width:"100%",height:"695px"},attrs:{id:"batchRelplaceIframe",name:"batchRelplaceIframe",src:e.src}})])},Ie=[],Ce={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}}},Fe=Ce,ke=Object(m["a"])(Fe,De,Ie,!1,null,"e4f255d0",null),Te=ke.exports,Re={name:"RepositoryList",components:{RepositoryInfoProperty:U,PALRepositoryTree:fe,RepositoryInfo:de,BatchCreate:Se,BatchReplace:Te},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}},created(){},mounted(){this.initData(),this.rowDrop()},methods:{handleCloseFolder(e){this.folderDialog.dialogVisible=!1,e()},openUpdateFolder(e,t,i,o,s){"default"==o?(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="修改"+s,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 o=t.folderDialog.folderForm.id,s=t.$store.getters.getWsIdFn,a=t.$store.getters.getTeamIdFn,l="default",r={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_folder_create_save",wsId:s,teamId:a,method:l,name:e,desc:i,id:o}};p["a"].post(r).then((function(e){"ok"==e.result&&(t.initData(),t.refreshTreeParentNode&&t.refreshTreeParentNode(o),t.closeFolderDlg())})).catch(e=>{console.log(e)})}})},initData(){const e=this;e.tableLoading=!0;const t=e.$store.getters.getWsIdFn,i=e.$store.getters.getTeamIdFn,o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_repository_child_data_query",wsId:t,teamId:i,id:e.uuid}};p["a"].post(o).then((function(t){if("ok"==t.result){"undefined"==t.data.mainRepository&&(0==t.data.mainRepository.folder?b.$emit("getisDisabled",!0):b.$emit("getisDisabled",!1));const i=t.data.repositoryPathData;if(e.repositoryPathData=i,e.isClickTreeRoot=t.data.isClickTreeRoot,e.category=t.data.category,e.moveRepository.categorys=t.data.category,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,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)})).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 o=0;o<i;o++){let i=t.tableData.indexOf(e[o]);const s=t.tbody[0].childNodes;if(void 0!=s){const e=s[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],o=t.childNodes[0];o&&o.querySelector(".el-checkbox__input")&&(o.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,o){i.parentNode.querySelector(".el-table-column--selection").querySelector(".el-checkbox__input").style.visibility="visible"},hideCheckbox(e,t,i,o){let s=i.parentNode.querySelector(".el-table-column--selection").querySelector(".el-checkbox__input");null!=s&&this.checkedRepositorys.indexOf(e)<0&&(s.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 o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_move_save",sourceData:i,targetData:JSON.stringify(e)}};if(t.isHighSecurity&&t.isFileSecurity){let i=[];for(let e=0;e<t.checkedRepositorys.length;e++){let o=t.checkedRepositorys[e];i.push(o.id)}const s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_file_permission_batch_query",uuids:JSON.stringify(i),isSub:!0}};p["a"].post(s).then((function(i){if("ok"==i.result){let s=i.data.checkArr;if(s.length<=0)t.$message.error("无密级访问权限");else{let i=[];for(let e=0;e<s.length;e++)for(let o=0;o<t.checkedRepositorys.length;o++)s[e]===t.checkedRepositorys[o].id&&i.push(t.checkedRepositorys[o]);o.data.sourceData=JSON.stringify(i),p["a"].post(o).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(o).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 o=t.uuid,s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_copy_save",targetId:o,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("无密级访问权限")):(s.data.sourceIds=JSON.stringify(a),p["a"].post(s).then((function(i){"ok"==i.result?(t.$message({message:"复制成功",type:"success"}),o==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(s).then((function(i){"ok"==i.result?(t.$message({message:"复制成功",type:"success"}),o==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 o={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("无密级访问权限")):(o.data.repositoryIds=JSON.stringify(i),p["a"].post(o).then((function(e){if(t.loading=!1,"ok"==e.result){t.$message({message:"导出完成,正在下载...",type:"success"});const i=e.data.exportTitle,o=e.data.exportCount,s=e.data.dcId,a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_export",exportTitle:i,exportCount:o,dcId:s}};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(o).then((function(e){if(t.loading=!1,"ok"==e.result){t.$message({message:"导出完成,正在下载...",type:"success"});const i=e.data.exportTitle,o=e.data.exportCount,s=e.data.dcId,a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_export",exportTitle:i,exportCount:o,dcId:s}};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=[],o=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 s={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("无密级访问权限"):(s.data.repositoryIds=JSON.stringify(i),p["a"].post(s).then((function(e){"ok"==e.result?(t.$message({message:"已放入回收站",type:"success"}),t.uuid.length<36?(t.refreshTreeNode&&t.refreshTreeNode(t.uuid),t.initData()):o==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(s).then((function(e){"ok"==e.result?(t.$message({message:"已放入回收站",type:"success"}),t.uuid.length<36?(t.refreshTreeNode&&t.refreshTreeNode(t.uuid),t.initData()):o==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 o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_file_permission_query",uuid:e}};p["a"].post(o).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,o="com.actionsoft.apps.coe.pal.processlink";let s=this;if(s.isHighSecurity&&s.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",s.$store.state.sessionId,"com.actionsoft.apps.coe.pal.processlink_ete_analysis_home",{wsId:t,teamId:i,appId:o,uuid:e}):s.$message.error(a.msg)})).catch(e=>{console.log(e),s.$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:o,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 o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_file_permission_query",uuid:e}};p["a"].post(o).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 o=0;o<this.repositoryPathData.length;o++){const t=this.repositoryPathData[o].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,o){if(0==i)return void(o?this.$message("已经到最后一级了"):this.openDesigner(e));let s=!1;const a=[];for(let l=0;l<this.repositoryPathData.length;l++){const e=this.repositoryPathData[l].versionId;if(a.push(e),e==t){s=!0;break}}s||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 l=t.$store.getters.getWsIdFn,r={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_repository_order_index_update",wsId:l,currentId:e.id,originId:a.id}};p["a"].post(r).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=Re,$e=(i("09ea"),Object(m["a"])(Ne,E,q,!1,null,"1fb1e2d8",null)),Pe=$e.exports,Ve={name:"Repository",components:{RepositoryMain:S,RepositoryMainList:W,RepositoryList:Pe},data(){return{mainHeight:parseInt(this.$store.getters.getTopMainHeightFn)+"px",mainContent:"",uuid:"",reFresh:!1,treeNode:{}}},provide:function(){return{openRepositoryList:this.openRepositoryList,transferTreeNode:this.transferTreeNode}},created(){this.getRouteParam(this.$route.query)},methods:{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()}},Le=Ve,Me=(i("7304"),Object(m["a"])(Le,s,a,!1,null,"1940ea76",null));t["default"]=Me.exports},"87c3":function(e,t,i){"use strict";i("bed4")},"9ae6":function(e,t,i){},a0b6:function(e,t,i){},a4a9:function(e,t,i){},a9ad:function(e,t,i){"use strict";i("a0b6")},b142:function(e,t,i){"use strict";i("9ae6")},ba8c:function(e,t,i){"use strict";i("6f9be")},bed4:function(e,t,i){},c549:function(e,t,i){},cc00:function(e,t,i){},d2be:function(e,t,i){"use strict";i("3aa0")},e21c:function(e,t,i){},ea48:function(e,t,i){"use strict";i("2ca7")}}]); |