1 line
163 KiB
JavaScript
1 line
163 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-632a23b2"],{"0757":function(e,t,a){"use strict";a("64fb")},1337:function(e,t,a){"use strict";a.d(t,"c",(function(){return i})),a.d(t,"b",(function(){return o})),a.d(t,"d",(function(){return s})),a.d(t,"a",(function(){return r})),a.d(t,"e",(function(){return l}));const o=function(e,t,a,o,s){o||(o={}),o.cmd=a,o.sid=t,i(e,wHref,o,s)},i=function(e,t,a,o){var i=document.getElementById(e);i&&document.body.removeChild(i);var s=document.createElement("form");for(var r in s.action=t,s.target=void 0==o?"_blank":o,s.method="get",s.style.display="none",a){var l=document.createElement("textarea");l.name=r,l.value=a[r],s.appendChild(l)}s.setAttribute("id",e),document.body.appendChild(s),s.submit()},s=function(e,t,a){o("palDesigner",a,"com.actionsoft.apps.coe.pal_pl_repository_designer",{uuid:t,teamId:e})},r=function(e,t){let a=e;while(a.nodeName!=t&&"BODY"!=a.nodeName)a=a.parentNode;return a.nodeName==t?a:null},l=function(e){document.getElementsByTagName("title")[0].innerText=e}},"2faa":function(e,t,a){"use strict";a("d83c")},3231:function(e,t,a){},"4a6c":function(e,t,a){"use strict";a("c065")},"5a4b":function(e,t,a){"use strict";a("5b1a")},"5b1a":function(e,t,a){},"5d66":function(e,t,a){"use strict";var o=function(){var e=this,t=e._self._c;return t("el-dialog",{staticClass:"workspace-update",attrs:{title:e.title,visible:e.dialogVisible,"close-on-click-modal":!1,width:"450px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticStyle:{border:"1px solid #F2F2F2",padding:"0px 10px 10px 10px"}},[t("awsui-form",{ref:"ruleForm",attrs:{model:e.ruleForm,"label-position":"top",rules:e.rules}},[t("awsui-form-item",{attrs:{label:"名称",prop:"name"}},[t("awsui-input",{attrs:{placeholder:"公司名称或项目名称",maxlength:"36","validate-event":!1},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),t("awsui-form-item",{attrs:{label:"描述"}},[t("awsui-input",{attrs:{type:"textarea",placeholder:"请输入描述",maxlength:"255","show-word-limit":""},model:{value:e.ruleForm.desc,callback:function(t){e.$set(e.ruleForm,"desc",t)},expression:"ruleForm.desc"}})],1),t("awsui-form-item",{attrs:{label:"管理员",prop:"admin"}},[t("awsui-select",{attrs:{options:e.adminOptions,multiple:"",placeholder:"请选择管理员","validate-event":!1},on:{change:e.updateAdminData},model:{value:e.ruleForm.admin,callback:function(t){e.$set(e.ruleForm,"admin",t)},expression:"ruleForm.admin"}})],1),t("awsui-form-item",{attrs:{label:"分类方法"}},[t("div",[t("el-radio-group",{attrs:{fill:"#4E7FF9",size:"mini",disabled:""!=e.wsId},model:{value:e.ruleForm.type,callback:function(t){e.$set(e.ruleForm,"type",t)},expression:"ruleForm.type"}},[t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"bottom-start"}},[t("span",{attrs:{slot:"content"},slot:"content"},[e._v('二分法流程分为"核心经营流程"和"支持管理流程"')]),t("el-radio-button",{attrs:{label:"二分法"}})],1),t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"bottom-start"}},[t("span",{attrs:{slot:"content"},slot:"content"},[e._v('三分法流程分为"战略流程"、"运营流程"和"支持流程"')]),t("el-radio-button",{attrs:{label:"三分法"}})],1),t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"bottom-start"}},[t("span",{attrs:{slot:"content"},slot:"content"},[e._v("可自己定义流程结构")]),t("el-radio-button",{attrs:{label:"自定义"}})],1)],1)],1)])],1)],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{staticClass:"button-general-color",attrs:{disabled:e.buttonDisabled,type:"primary"},on:{click:e.save}},[e._v("确定")]),t("awsui-button",{on:{click:function(t){return e.cancel()}}},[e._v("取消")])],1)])},i=[],s=a("0f08"),r={name:"WorkspaceUpdate",data(){return{title:"新建资产库",buttonDisabled:!1,wsId:"",dialogVisible:!1,adminOptions:[],obj:null,ruleForm:{name:"",desc:"",admin:"",type:"二分法"},rules:{name:[{required:!0,message:"请输入资产库名称",trigger:"blur"}],admin:[{required:!0,message:"请选择管理员",trigger:"change"}]}}},mounted(){},methods:{openUpdateWsDlg(e,t,a){"create"==e?(this.title="新建资产库",this.obj=a):(this.title="修改资产库",this.wsId=t,this.obj=a),this.initData(),this.dialogVisible=!0},cancel(){this.$refs["ruleForm"].resetFields(),this.buttonDisabled=!1,this.dialogVisible=!1},handleClose(e){this.buttonDisabled=!1,this.$refs["ruleForm"].resetFields(),e()},initData(){const e=this,t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_ws_update_data_query",wsId:e.wsId}};s["a"].post(t).then((function(t){if("ok"==t.result){let a=t.data;e.ruleForm.name=a.name,e.ruleForm.type=0==a.type?"二分法":1==a.type?"三分法":"自定义",e.ruleForm.desc=a.desc,e.ruleForm.admin=a.admin,e.adminOptions=a.adminOptions}else e.$message.error(t.msg)})).catch(e=>{console.log(e)})},updateAdminData(e){this.ruleForm.admin=e},save(){const e=this,t=e.ruleForm.name,a=e.ruleForm.desc,o=e.ruleForm.admin;if(""==t)return void e.$message({message:"[名称]不允许为空",type:"warning"});if(t.length>36)return void e.$message({message:"[名称]不允许超过36个字",type:"warning"});if(a.length>255)return void e.$message({message:"[描述]不允许超过255个字符",type:"warning"});if(0==o.length)return void e.$message({message:"[管理员]不允许为空",type:"warning"});e.buttonDisabled=!0;const i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_ws_update_save",wsId:e.wsId,name:e.ruleForm.name,type:"二分法"==e.ruleForm.type?0:"三分法"==e.ruleForm.type?1:2,desc:e.ruleForm.desc,admin:e.ruleForm.admin.join(",")}};s["a"].post(i).then((function(t){"ok"==t.result?(e.$message({message:t.msg,duration:2e3,type:"success"}),e.cancel(),null!=e.obj&&e.obj.updateWorkspaceCallback()):e.$message.error(t.msg),e.buttonDisabled=!1})).catch(e=>{console.log(e)})}}},l=r,n=(a("4a6c"),a("0b56")),c=Object(n["a"])(l,o,i,!1,null,"08929cd1",null);t["a"]=c.exports},"64fb":function(e,t,a){},6822:function(e,t,a){},"86bd":function(e,t,a){},"896b":function(e,t,a){"use strict";var o=function(){var e=this,t=e._self._c;return t("el-dialog",{staticClass:"workspace-import",attrs:{title:"导入资产库",visible:e.dialogVisible,"close-on-click-modal":!1,"destroy-on-close":!0,width:"450px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t},closed:e.restoreParam}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.step1,expression:"step1"}],staticStyle:{height:"250px","text-align":"center"},attrs:{id:"step1"}},[t("div",{staticStyle:{position:"relative",top:"35%"}},[t("div",{staticStyle:{"margin-bottom":"25px"}},[t("awsui-button",{class:{"button-general-color":"local"==e.clickUploadButton,"button-general-color-reverse":"server"==e.clickUploadButton},staticStyle:{width:"130px"},attrs:{type:"local"==e.clickUploadButton?"primary":""},on:{click:function(t){return e.localImport(!0,!0)}}},[e._v("本地文件上传")])],1),t("div",[t("awsui-button",{class:{"button-general-color":"server"==e.clickUploadButton,"button-general-color-reverse":"local"==e.clickUploadButton},staticStyle:{width:"130px"},attrs:{type:"server"==e.clickUploadButton?"primary":""},on:{click:function(t){return e.serverImport(!0,!0)}}},[e._v("服务器文件导入")])],1)])]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.step2,expression:"step2"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{height:"250px"},attrs:{id:"step2"}},[t("div",{staticStyle:{"text-align":"center","padding-top":"30px"}},[t("awsui-button",{class:{"button-general-color":"local"==e.clickUploadButton,"button-general-color-reverse":"server"==e.clickUploadButton},staticStyle:{width:"130px"},attrs:{type:"local"==e.clickUploadButton?"primary":""},on:{click:function(t){return e.localImport(!1,!0)}}},[e._v("本地文件上传")]),t("awsui-button",{class:{"button-general-color":"server"==e.clickUploadButton,"button-general-color-reverse":"local"==e.clickUploadButton},staticStyle:{width:"130px"},attrs:{type:"server"==e.clickUploadButton?"primary":""},on:{click:function(t){return e.serverImport(!0,!0)}}},[e._v("服务器文件导入")])],1),t("div",{directives:[{name:"show",rawName:"v-show",value:"local"==e.source,expression:"source == 'local'"}],staticStyle:{height:"100px",margin:"10px 10px"}},[t("PALUpload",{ref:"palUpload",staticClass:"upload-demo",staticStyle:{width:"100%"},attrs:{appId:"com.actionsoft.apps.coe.pal",repositoryName:"tmp",groupValue:"Normal",fileValue:"Normal","on-preview":e.handlePreview,"on-success":e.handleSuccess,"on-remove":e.handleRemove,"on-error":e.handleError,"before-remove":e.beforeRemove,"before-upload":e.beforeUpload,limit:1,"on-exceed":e.handleExceed,accept:".bak","file-list":e.fileList}},[t("div",{staticStyle:{display:"none"}},[t("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"130px"},attrs:{id:"selectFileButton",type:"primary"}},[e._v("本地文件上传")])],1)])],1),t("div",{directives:[{name:"show",rawName:"v-show",value:"remote"==e.source,expression:"source == 'remote'"}],staticStyle:{height:"70px",margin:"40px 10px 0px 10px"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",size:"mini","no-data-text":"无资产库文件"},on:{change:e.changeServerValue},model:{value:e.serverValue,callback:function(t){e.serverValue=t},expression:"serverValue"}},e._l(e.serverOptions,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.wsIsExist,expression:"wsIsExist"}],staticStyle:{margin:"10px"}},[t("el-form",[t("el-form-item",{attrs:{label:"已存在资产库处理方法",prop:"resource"}},[t("el-radio-group",{model:{value:e.replaceType,callback:function(t){e.replaceType=t},expression:"replaceType"}},[t("el-radio",{attrs:{label:"replace"}},[e._v("替换")]),t("el-radio",{attrs:{label:"skip"}},[e._v("跳过")])],1)],1)],1)],1)]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{staticClass:"button-general-color",attrs:{disabled:e.buttonDisabled,type:"primary"},on:{click:e.save}},[e._v("确定")]),t("awsui-button",{on:{click:function(t){return e.cancel()}}},[e._v("取消")])],1)])},i=[],s=a("6c2f"),r=a("0f08"),l={name:"WorkspaceImport",components:{PALUpload:s["a"]},data(){return{buttonDisabled:!1,dialogVisible:!1,clickUploadButton:"local",step1:!0,step2:!1,source:"",wsIsExist:!1,fileList:[],serverOptions:[],serverValue:"",replaceType:"replace",wsFileName:"",loading:!1,obj:null}},methods:{openImportWsDlg(e){this.dialogVisible=!0,this.obj=e},handleClose(e){e()},restoreParam(){this.buttonDisabled=!1,this.loading=!1,this.dialogVisible=!1,this.step1=!0,this.step2=!1,this.source="",this.wsIsExist=!1,this.fileList=[],this.serverOptions=[],this.serverValue="",this.replaceType="replace",this.wsFileName=""},cancel(){this.dialogVisible=!1},changeServerValue(){const e=this;e.wsIsExist=!1,e.replaceType="replace",e.wsFileName=e.serverValue,e.loading=!0,e.buttonDisabled=!0;const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_ws_is_exist",wsFileName:e.wsFileName,source:e.source}};r["a"].post(t).then((function(t){"ok"==t.result?"exist"==t.data.message?(e.replaceType="replace",e.wsIsExist=!0):(e.replaceType="replace",e.wsIsExist=!1):e.$message.error(t.msg),e.loading=!1,e.buttonDisabled=!1})).catch(e=>{console.log(e)})},localImport(e,t){this.clickUploadButton="local",t&&(this.$refs.palUpload.clearFiles(),this.source="local",document.getElementById("selectFileButton").click()),e&&(this.step1=!1,this.step2=!0),this.wsIsExist=!1,this.replaceType="replace",this.wsFileName=""},serverImport(e){this.clickUploadButton="server";const t=this,a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_ws_remote_import_query"}};r["a"].post(a).then((function(e){"ok"==e.result?t.serverOptions=e.data.impRepsitorys:t.$message.error(e.msg)})).catch(e=>{console.log(e)}),e&&(t.step1=!1,t.step2=!0),t.serverOptions=[],t.serverValue="",t.source="remote",t.wsIsExist=!1,t.replaceType="replace",t.wsFileName=""},save(){const e=this;if(""==e.wsFileName)return void e.$message({message:"请"+("local"==e.clickUploadButton?"上传":"选择")+"需要导入的文件",type:"warning"});e.buttonDisabled=!0,e.loading=!0;const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_ws_save_import",wsFileName:e.wsFileName,replaceChoice:e.replaceType,source:e.source}};r["a"].post(t).then((function(t){"ok"==t.result?(console.log("导入资产库["+t.data.wsName+"]["+t.data.wsId+"]成功"),e.$message({message:t.msg,duration:2e3,type:"success"}),e.cancel(),null!=e.obj&&e.obj.importWorkspaceCallback()):(e.loading=!1,e.buttonDisabled=!1,e.$message.error(t.msg))})).catch(e=>{console.log(e)})},handleRemove(e,t){console.log(e,t)},handlePreview(e){console.log(e)},handleExceed(e,t){},handleError(e,t,a){},beforeUpload(e){if(e.size/1024/1024>2048)return this.$message.warning("文件过大,请联系管理员将需上传的文件放在在服务器/doccenter/com.actionsoft.apps.coe.pal/tmp/imp/repository目录下使用服务器上传方式上传"),!1},handleSuccess(e,t,a){const o=this;o.buttonDisabled=!0,o.loading=!0,o.wsFileName=t.name;const i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_ws_is_exist",wsFileName:o.wsFileName,source:o.source}};r["a"].post(i).then((function(e){"ok"==e.result?"exist"==e.data.message?(o.replaceType="replace",o.wsIsExist=!0):(o.replaceType="replace",o.wsIsExist=!1):o.$message.error(e.msg),o.buttonDisabled=!1,o.loading=!1})).catch(e=>{console.log(e)})},beforeRemove(e,t){e.status,this.wsFileName="",this.wsIsExist=!1}}},n=l,c=(a("f4b8"),a("0b56")),d=Object(c["a"])(n,o,i,!1,null,"4fcb9135",null);t["a"]=d.exports},"8a5e":function(e,t,a){},"8abc":function(e,t,a){"use strict";a("86bd")},"96e1":function(e,t,a){"use strict";a("e529")},"9a1e":function(e,t,a){},b694:function(e,t,a){"use strict";a("ff4d")},bf40:function(e,t,a){"use strict";a("e087")},c065:function(e,t,a){},c706:function(e,t,a){},cd56:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"main"},on:{click:e.clickDomEvent}},[t("el-container",[t("el-header",{staticStyle:{padding:"0px"},attrs:{id:"header",height:"56px"}},[t("Navigation",{ref:"navigation"})],1),t("el-main",{staticStyle:{position:"relative"},style:{padding:0,height:e.bodyHeight}},[t("div",{staticClass:"main"},[t("awsui-sidebar",{attrs:{visible:e.drawer,direction:e.direction,size:"100%","append-to-body":!1,"show-close":!1,withHeader:!1,"wrapper-closable":!1,modal:!1},on:{"update:visible":function(t){e.drawer=t},opened:e.openAppIframe}},[t("div",{staticStyle:{position:"relative",width:"100%",height:"100%"}},[""==e.nonAppComponent?t("div",{key:"appContent",staticStyle:{width:"100%",height:"100%"},attrs:{id:"appContent"}}):e._e(),""!=e.nonAppComponent?t("div",{key:"nonAppComponent",staticStyle:{width:"100%",height:"100%"},attrs:{id:"nonAppComponent"}},[t(e.nonAppComponent,{ref:"component",tag:"component",attrs:{wsId:e.wsId}})],1):e._e()])])],1),t("div",{staticClass:"main"},[t("awsui-sidebar",{attrs:{visible:e.cooperation.drawer,direction:e.direction,size:"100%","append-to-body":!1,"show-close":!1,withHeader:!1,"wrapper-closable":!1,modal:!1},on:{"update:visible":function(t){return e.$set(e.cooperation,"drawer",t)},opened:e.openCooperationIframe}},[t("div",{staticStyle:{position:"relative",width:"100%",height:"100%"}},[t("div",{staticStyle:{cursor:"pointer",height:"20px",width:"15px","background-color":"#F5F7FA",position:"absolute",top:"10px","line-height":"20px","vertical-align":"middle"},on:{click:e.closeCooperationDrawer}},[t("i",{staticClass:"iconfont"},[e._v("")])]),""==e.nonAppComponent?t("div",{key:"cooperationContent",staticStyle:{width:"100%",height:"100%"},attrs:{id:"cooperationContent"}}):e._e()])])],1),t("div",[t("PwdChange",{ref:"pwdChange"})],1),t("router-view",{key:e.key})],1)],1)],1)},i=[],s=function(){var e=this,t=e._self._c;return t("el-container",[t("el-header",{staticClass:"el-header",attrs:{height:"100%"}},[t("div",{staticClass:"header-row"},[t("div",{staticClass:"nav-left",staticStyle:{"min-width":"300px","text-align":"left"}},["0"==e.mainType?t("div",{staticClass:"inline-block header-font text-general-color"},[e._v("AWS PAL资产库")]):e._e(),"1"==e.mainType?t("div",{staticClass:"inline-block",attrs:{id:"ws-select"}},[t("div",{staticClass:"icon-main-div cursor-pointer",style:{"background-color":e.mainIcon.color},on:{mouseenter:function(){e.mainIcon.code="",e.mainIcon.color="#6d97ff"},mouseleave:function(){e.mainIcon.code=e.mainIconTemp.code,e.mainIcon.color=e.mainIconTemp.color},click:e.returnMainPage}},[t("i",{staticClass:"awsui-iconfont icon-i-ws",domProps:{innerHTML:e._s(e.mainIcon.code)}})]),t("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleWsCommand,"visible-change":e.changeDropDownArrow}},[t("span",{staticClass:"el-dropdown-link header-font cursor-pointer text-general-color"},[e._v(" "+e._s(e.wsLabel)),t("i",{staticClass:"awsui-iconfont",staticStyle:{"margin-left":"5px","font-size":"14px"},domProps:{innerHTML:e._s("down"==e.arrowTip?"":"")}})]),t("el-dropdown-menu",{staticClass:"navigation-dropdown-area",attrs:{slot:"dropdown"},slot:"dropdown"},[e._l(e.wsOptions,(function(a){return[t("el-dropdown-item",{staticClass:"el-dropdown-row",attrs:{command:a.value}},[t("div",{staticClass:"inline-block text-general-color",staticStyle:{height:"100%",width:"80%"}},[t("span",{staticStyle:{"font-size":"14px"}},[e._v(e._s(a.label))])]),t("div",{staticClass:"inline-block",staticStyle:{width:"20%"}},[t("i",{class:["el-icon-check","text-linker-color",{"icon-check-display":a.value!=e.wsValue}],staticStyle:{float:"right"}})])])]})),t("el-dropdown-item",{attrs:{divided:""}}),t("el-dropdown-item",{staticClass:"text-linker-color el-dropdown-row",attrs:{command:"create"}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("i",{staticClass:"iconfont icon-xinjian",staticStyle:{"font-size":"14px"}}),t("span",[e._v("新建资产库")])])]),t("el-dropdown-item",{staticClass:"text-linker-color el-dropdown-row",attrs:{command:"import"}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("i",{staticClass:"iconfont awsui-iconfont-sousuo1",staticStyle:{"font-size":"14px"}}),t("span",[e._v("导入资产库")])])]),t("el-dropdown-item",{staticClass:"text-general-color el-dropdown-row",attrs:{command:"manage"}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("i",{staticClass:"iconfont awsui-iconfont-zengjia",staticStyle:{"font-size":"14px"}}),t("span",[e._v("管理资产库")])])])],2)],1)],1):e._e(),"2"==e.mainType?t("div",{staticClass:"inline-block header-font text-general-color"},[e._v("AWS PAL小组")]):e._e(),"3"==e.mainType?t("div",{staticClass:"inline-block",attrs:{id:"team-select"}},[t("div",{staticClass:"icon-main-div cursor-pointer",style:{"background-color":e.mainIcon.color},on:{mouseenter:function(){e.mainIcon.code="",e.mainIcon.color="#6d97ff"},mouseleave:function(){e.mainIcon.code=e.mainIconTemp.code,e.mainIcon.color=e.mainIconTemp.color},click:e.returnMainPage}},[t("i",{staticClass:"awsui-iconfont icon-i-ws",domProps:{innerHTML:e._s(e.mainIcon.code)}})]),t("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleTeamCommand,"visible-change":e.changeDropDownArrow}},[t("span",{staticClass:"el-dropdown-link header-font cursor-pointer text-general-color"},[e._v(" "+e._s(e.teamLabel)),t("i",{staticClass:"awsui-iconfont",staticStyle:{"margin-left":"5px","font-size":"14px"},domProps:{innerHTML:e._s("down"==e.arrowTip?"":"")}})]),t("el-dropdown-menu",{staticClass:"navigation-dropdown-area",attrs:{slot:"dropdown"},slot:"dropdown"},[e._l(e.teamOptions,(function(a){return[t("el-dropdown-item",{staticClass:"el-dropdown-row",attrs:{command:a.value}},[t("div",{staticClass:"inline-block text-general-color",staticStyle:{height:"100%",width:"80%"}},[t("span",{staticStyle:{"font-size":"14px"}},[e._v(e._s(a.label))])]),t("div",{staticClass:"inline-block",staticStyle:{width:"20%"}},[t("i",{class:["el-icon-check","text-linker-color",{"icon-check-display":a.value!=e.teamValue}],staticStyle:{float:"right"}})])])]})),e.isManage&&e.isTeamManager||e.isTeamManager?t("el-dropdown-item",{attrs:{divided:""}}):e._e(),e.isManage&&e.isTeamManager?t("el-dropdown-item",{staticClass:"text-linker-color el-dropdown-row",attrs:{command:"create"}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("i",{staticClass:"iconfont icon-xinjian",staticStyle:{"font-size":"14px"}}),t("span",[e._v("新建小组")])])]):e._e(),e.isTeamManager?t("el-dropdown-item",{staticClass:"text-general-color el-dropdown-row",attrs:{command:"manage"}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("i",{staticClass:"iconfont awsui-iconfont-zengjia",staticStyle:{"font-size":"14px"}}),t("span",[e._v("管理小组")])])]):e._e()],2)],1)],1):e._e(),"4"==e.mainType?t("div",{staticClass:"inline-block header-font text-general-color"},[e._v("AWS PAL管理中心")]):e._e()]),t("div",{staticClass:"nav-center",staticStyle:{width:"350px"}},["1"==e.mainType||"3"==e.mainType?t("div",{staticStyle:{position:"relative"},attrs:{id:"repositoryQueryArea"},on:{click:function(t){return t.stopPropagation(),e.keepRepositoryQuery.apply(null,arguments)}}},[t("el-input",{staticStyle:{width:"350px"},attrs:{size:"small",placeholder:"搜索文件"},on:{input:e.basicQuery},model:{value:e.queryInput,callback:function(t){e.queryInput=t},expression:"queryInput"}},[t("i",{staticClass:"inline-block awsui-iconfont",attrs:{slot:"prefix"},slot:"prefix"},[e._v("")]),t("i",{staticClass:"inline-block awsui-iconfont",staticStyle:{cursor:"pointer"},attrs:{slot:"suffix"},on:{click:e.conditionQuery},slot:"suffix"},[e._v("")])]),t("RepositoryQuery",{ref:"repositoryQuery",staticStyle:{"line-height":"normal !important"},attrs:{queryInput:e.queryInput}})],1):e._e()]),t("div",{staticClass:"nav-right"},[t("ul",{staticClass:"nav-right-ul"},[t("li",[t("div",[t("el-dropdown",{ref:"userDropDownMenu",attrs:{"hide-on-click":!0,trigger:"click"},on:{command:e.handleUserCommand}},[t("span",{staticClass:"inline-block user_photo_dropdown_span cursor-pointer"},[t("img",{staticClass:"user_photo_img radius3",attrs:{src:e.userPhoto}})]),t("el-dropdown-menu",{staticClass:"text-general-color",staticStyle:{width:"200px"},attrs:{slot:"dropdown"},slot:"dropdown"},["4"!=e.mainType&&e.isManage?t("el-dropdown-item",{staticClass:"el-dropdown-row",attrs:{command:"manage"}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{"font-size":"14px"}},[e._v("管理中心")])])]):e._e(),"4"!=e.mainType&&e.isManage?t("el-dropdown-item",{attrs:{divided:""}}):e._e(),t("el-dropdown-item",{staticClass:"el-dropdown-row",attrs:{command:"bbs"}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{"font-size":"14px"}},[e._v("研习社")])])]),t("el-dropdown-item",{staticClass:"el-dropdown-row",attrs:{command:"help"}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{"font-size":"14px"}},[e._v("帮助文档")])])]),t("el-dropdown-item",{attrs:{divided:""}}),e.isChangePwd()?t("el-dropdown-item",{staticClass:"el-dropdown-row",attrs:{command:"updatePwd"}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{"font-size":"14px"}},[e._v("修改密码")])])]):e._e(),t("el-dropdown-item",{staticClass:"el-dropdown-row",attrs:{command:"logout"}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[t("span",{staticStyle:{"font-size":"14px"}},[e._v("退出登录")])])])],1)],1)],1)]),e.isSecAdminUser?e._e():["2"!=e.mainType&&"4"!=e.mainType&&"0"!=e.mainType?t("li",[t("div",{staticClass:"inline-block",staticStyle:{"line-height":"20px","vertical-align":"middle","margin-left":"10px","margin-right":"10px"}},[t("div",{staticStyle:{width:"1px",height:"20px","border-left":"1px solid #f2f2f2","margin-left":"5px","margin-right":"5px"}})])]):e._e(),"2"!=e.mainType&&"4"!=e.mainType&&"0"!=e.mainType?t("li",{directives:[{name:"show",rawName:"v-show",value:!e.showAppDetail,expression:"!showAppDetail"}]},[t("div",{attrs:{id:"appPopover"}},[t("el-popover",{ref:"appPopover",attrs:{placement:"top-start",title:"应用中心","open-delay":250,trigger:"click"}},[t("ul",{staticClass:"nav-app-list-ul"},e._l(Math.ceil(e.appList.length/5),(function(a){return t("li",{staticClass:"inline-block",staticStyle:{"vertical-align":"top"}},[e._l(e.appList.slice(5*(a-1),5*a),(function(a){return[t("div",{staticClass:"app-div general-bgcolor-hover cursor-pointer",on:{click:function(t){return e.openApp(a.appId,a.clazzName,a.name,a.icon.icon,a.icon.color)}}},[t("div",{staticClass:"inline-block app-icon-div",style:{background:a.icon.color}},[t("i",{staticClass:"awsui-iconfont",staticStyle:{"font-size":"18px",color:"#fff"},domProps:{innerHTML:e._s(a.icon.icon)}})]),t("div",{staticClass:"inline-block app-text-div"},[t("div",[t("p",{staticClass:"app-label-p-title text-general-color"},[e._v(e._s(a.name))])]),t("div",[t("p",{staticClass:"app-label-p-desc text-second-color"},[e._v(e._s(a.desc))])])])])]}))],2)})),0),t("i",{staticClass:"iconfont cursor-pointer app-icon",staticStyle:{"font-size":"18px"},attrs:{slot:"reference"},slot:"reference"},[e._v("")])])],1)]):e._e(),t("li",{directives:[{name:"show",rawName:"v-show",value:e.showAppDetail,expression:"showAppDetail"}]},[t("div",{staticStyle:{padding:"0 10px","background-color":"#EEE"}},[t("div",{staticClass:"inline-block app-icon-div",staticStyle:{width:"22px",height:"22px","line-height":"22px","vertical-align":"middle",top:"0px"},style:{background:e.currApp.bgColor}},[t("i",{staticClass:"awsui-iconfont",staticStyle:{"font-size":"14px",color:"#fff"},domProps:{innerHTML:e._s(e.currApp.icon)}})]),t("span",{staticClass:"inline-block text-general-color",staticStyle:{"font-size":"14px",height:"100%","vertical-align":"middle",margin:"0 5px"}},[e._v(e._s(e.currApp.name))]),t("i",{staticClass:"awsui-iconfont text-general-color cursor-pointer",staticStyle:{"font-size":"14px"},on:{click:function(t){return e.closeApp()}}},[e._v("")])])]),t("li",[t("div",{staticStyle:{"margin-right":"5px"}},[e.isManage&&"0"!=e.mainType&&"1"!=e.mainType?t("div",{staticClass:"quick-access-btn",on:{click:e.openManageMainPage}},[t("span",[t("i",{staticClass:"awsui-iconfont quick-access-btn-icon"},[e._v("")]),t("span",{staticClass:"quick-access-btn-text"},[e._v("访问资产库")])])]):e._e(),"0"!=e.mainType&&"1"!=e.mainType&&"4"!=e.mainType||!e.isCooperationActive?e._e():t("div",{staticClass:"quick-access-btn",staticStyle:{display:"inline-block",cursor:"pointer",color:"#999",padding:"0 5px"},on:{click:e.openCooperationPage}},[t("span",[t("i",{staticClass:"awsui-iconfont quick-access-btn-icon"},[e._v("")]),t("span",{staticClass:"quick-access-btn-text"},[e._v("访问小组")])])]),e.isPbulishActive?t("div",{staticClass:"quick-access-btn",staticStyle:{display:"inline-block",cursor:"pointer",color:"#999",padding:"0 5px"},on:{click:e.openProcessManagePortalPage}},[t("span",[t("i",{staticClass:"awsui-iconfont quick-access-btn-icon"},[e._v("")]),t("span",{staticClass:"quick-access-btn-text"},[e._v("访问发布门户")])])]):e._e()])])]],2)])]),t("WorkspaceUpdate",{ref:"workspaceUpdate"}),t("WorkspaceImport",{ref:"workspaceImport"}),t("cooperation-update",{ref:"cooperationUpdate",attrs:{visible:e.cooperation.visible,teamId:e.cooperation.teamId,title:e.cooperation.title},on:{"update:visible":function(t){return e.$set(e.cooperation,"visible",t)},cancel:function(t){e.cooperation.visible=!1},getResult:e.createCooperationCallback}})],1)],1)},r=[],l=a("5d66"),n=a("896b"),c=function(){var e=this,t=e._self._c;return t("el-container",{staticClass:"repository-query text-general-color"},[this.$store.getters.getNavigationQueryVisibleFn?t("div",{staticClass:"basic-query-div"},[t("div",{staticStyle:{margin:"0 0 0 0px","overflow-y":"auto"},style:{height:e.basicQueryAreaHeight}},[t("ul",[t("li",{staticClass:"li-general-hover-bgcolor li-general-height"},[t("div",{staticClass:"li-div-basic-query",staticStyle:{"border-bottom":"1px solid #F2F2F2"}},[t("div",{staticStyle:{margin:"0 10px",position:"relative"}},[t("div",{staticClass:"li-basic-icon-div icon-div-repository",style:{"background-color":"#4E7FF9"}},[t("i",{staticClass:"awsui-iconfont"},[t("i",{staticClass:"iconfont li-basic-icon"},[e._v("")])])]),t("div",{staticStyle:{display:"inline-block",cursor:"pointer",position:"relative",left:"40px","text-align":"left",width:"280px",height:"30px","line-height":"30px","vertical-align":"middle",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},on:{click:e.openConditionQuery}},[e._v(' 在高级搜索中查看"'),t("span",{staticClass:"text-linker-color"},[e._v(e._s(e.queryInput))]),e._v('" ')])])])]),e._l(e.basicQueryResult,(function(a,o){return[t("li",{staticClass:"li-general-hover-bgcolor li-general-height"},[t("div",{staticClass:"li-div-basic-query",staticStyle:{"border-bottom":"1px solid white"}},[t("div",{staticStyle:{margin:"0 10px",position:"relative"}},[a.folder?t("div",{staticClass:"li-basic-icon-div icon-div-repository"},[t("i",{staticClass:"awsui-iconfont"},[t("i",{staticClass:"awsui-iconfont li-basic-icon",style:{color:a.icon.color,"font-size":"32px"},domProps:{innerHTML:e._s(a.icon.code)}})])]):t("div",{staticClass:"li-basic-icon-div icon-div-repository",style:{"background-color":a.icon.color}},[t("i",{staticClass:"awsui-iconfont"},[t("i",{staticClass:"awsui-iconfont li-basic-icon",domProps:{innerHTML:e._s(a.icon.code)}})])]),t("div",{staticClass:"li-basic-title-div",domProps:{innerHTML:e._s(a.name)},on:{click:function(t){return e.positionRepository(a.id,a.versionId,a.path)}}}),a.folder?e._e():t("i",{staticClass:"iconfont text-second-color icon-open-repository",staticStyle:{float:"right",cursor:"pointer"},on:{click:function(t){return e.openRepository(a.id)}}},[e._v("")])])])])]}))],2)])]):e._e(),t("el-dialog",{attrs:{visible:this.$store.getters.getNavigationConditionQueryVisibleFn,"before-close":e.handleClose,"close-on-click-modal":!1,"destroy-on-close":!0,"show-close":!1,width:"800px"},on:{"update:visible":function(t){return e.$set(this.$store.getters,"getNavigationConditionQueryVisibleFn",t)}}},[t("div",{staticStyle:{height:"564px"}},[t("div",{staticClass:"condition-query-header",staticStyle:{"border-bottom":"1px solid #F2F2F2"}},[t("el-input",{staticStyle:{border:"0px",width:"90%"},attrs:{placeholder:"请输入关键字","prefix-icon":"el-icon-search"},on:{input:e.queryConditionTimer},model:{value:e.conditionQueryInput,callback:function(t){e.conditionQueryInput=t},expression:"conditionQueryInput"}}),t("span",{staticClass:"condition-query-clear text-second-color",style:{visibility:e.showClearButton?"visible":"hidden"},on:{click:e.clearQueryInput}},[e._v("清除")]),t("div",{staticStyle:{height:"10px",display:"inline-block","border-left":"1px solid #F2F2F2","margin-left":"5px"}}),t("button",{staticClass:"el-dialog__headerbtn",staticStyle:{float:"right"},attrs:{type:"button","aria-label":"Close"},on:{click:e.closeDlg}},[t("i",{staticClass:"el-dialog__close el-icon el-icon-close"})])],1),t("div",[t("el-tabs",{on:{"tab-click":e.handleCagegoryChange},model:{value:e.activeTabName,callback:function(t){e.activeTabName=t},expression:"activeTabName"}},e._l(e.tabData,(function(e){return t("el-tab-pane",{attrs:{label:e.label,name:e.name}})})),1)],1),t("div",[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"70%",height:"477px",float:"left","overflow-x":"hidden","overflow-y":"auto"}},[t("div",{staticStyle:{padding:"0 10px"}},[[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.conditionQueryResult,"row-style":{height:"50px"},"cell-style":{padding:"0px"},"show-header":!1}},[t("div",{attrs:{slot:"empty"},slot:"empty"},[t("div",{staticClass:"text-second-color"},[t("i",{staticClass:"iconfont icon-wushuju",staticStyle:{"font-size":"60px"}}),t("p",{staticStyle:{"line-height":"0"}},[e._v("暂无数据,请输入关键字搜索")])])]),t("el-table-column",{attrs:{prop:"icon",label:"",align:"right",width:"52px"},scopedSlots:e._u([{key:"default",fn:function(a){return[a.row.folder?t("div",{staticClass:"icon-div-condition-query"},[t("i",{staticClass:"awsui-iconfont icon-condition-query",style:{color:a.row.icon.color,"font-size":"32px"},domProps:{innerHTML:e._s(a.row.icon.code)}})]):t("div",{staticClass:"icon-div-condition-query",style:{"background-color":a.row.icon.color}},[t("i",{staticClass:"awsui-iconfont icon-condition-query",domProps:{innerHTML:e._s(a.row.icon.code)}})])]}}])}),t("el-table-column",{attrs:{prop:"name",align:"left",label:"名称"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("div",[t("p",{staticClass:"condition-query-row-name"},[t("span",{domProps:{innerHTML:e._s(a.row.name)},on:{click:function(t){return e.positionRepository(a.row.id,a.row.versionId,a.row.path)}}})]),0==a.row.shapeDataSize?t("p",{staticClass:"condition-query-row-desc text-second-color",domProps:{innerHTML:e._s(a.row.createUser+" 于"+a.row.createDate+" 创建 · "+a.row.updateUser+" 于"+a.row.updateDate+" 修改")}}):t("p",{staticClass:"condition-query-row-desc text-second-color",domProps:{innerHTML:e._s("包含 "+a.row.shapeDataStr+" "+a.row.shapeDataSize+"个节点")}})])]}}])}),t("el-table-column",{attrs:{prop:"operate",label:"操作",width:"40"},scopedSlots:e._u([{key:"default",fn:function(a){return["default"!=a.row.methodId?t("i",{staticClass:"iconfont text-second-color icon-open-repository",staticStyle:{cursor:"pointer",position:"relative",top:"2px"},on:{click:function(t){return e.openRepository(a.row.id)}}},[e._v("")]):e._e()]}}])})],1)]],2)]),t("div",{staticStyle:{width:"30%",height:"477px",float:"left","overflow-y":"auto","overflow-x":"hidden"}},[t("div",{staticStyle:{"border-left":"1px solid #F2F2F2"}},[t("div",{staticStyle:{padding:"10px"}},[t("p",{staticClass:"query-filter-item-title"},[e._v("搜索类型")]),[t("el-checkbox-group",{staticClass:"query-filter-item-checkbox-group",on:{change:e.queryConditionTimer},model:{value:e.queryTypeChecked,callback:function(t){e.queryTypeChecked=t},expression:"queryTypeChecked"}},[t("el-checkbox",{staticClass:"query-filter-item-checkbox",staticStyle:{display:"block"},attrs:{label:"file"}},[e._v("文件")]),t("el-checkbox",{staticClass:"query-filter-item-checkbox",staticStyle:{display:"block"},attrs:{label:"shape"}},[e._v("形状")])],1)],t("p",{staticClass:"query-filter-item-title"},[e._v(" 文件类型 "),e.repositoryMethodList.length>3?[e.conditionFold.method?t("i",{staticClass:"awsui-iconfont condition-query-item-fold",on:{click:function(t){e.conditionFold.method=!e.conditionFold.method}}},[e._v("")]):t("i",{staticClass:"awsui-iconfont condition-query-item-fold",on:{click:function(t){e.conditionFold.method=!e.conditionFold.method}}},[e._v("")])]:e._e()],2),e.repositoryMethodList.length>0?[t("el-checkbox-group",{staticClass:"query-filter-item-checkbox-group",on:{change:e.queryConditionTimer},model:{value:e.repositoryMethodChecked,callback:function(t){e.repositoryMethodChecked=t},expression:"repositoryMethodChecked"}},[e._l(e.repositoryMethodList,(function(a,o){return[t("el-checkbox",{directives:[{name:"show",rawName:"v-show",value:o<3||o>=3&&!e.conditionFold.method,expression:"i < 3 || (i >= 3 && !conditionFold.method)"}],staticClass:"query-filter-item-checkbox",staticStyle:{display:"block"},attrs:{label:a.id}},[e._v(e._s(a.name))])]}))],2),e.repositoryMethodList.length>3&&e.conditionFold.method?t("p",{staticStyle:{"padding-left":"10px"}},[t("i",{staticClass:"awsui-iconfont text-second-color condition-query-item-fold-more",on:{click:function(t){e.conditionFold.method=!e.conditionFold.method}}},[e._v("")])]):e._e()]:e._e(),t("p",{staticClass:"query-filter-item-title"},[e._v(" 创建人 "),e.createUserList.length>3?[e.conditionFold.createUser?t("i",{staticClass:"awsui-iconfont condition-query-item-fold",on:{click:function(t){e.conditionFold.createUser=!e.conditionFold.createUser}}},[e._v("")]):t("i",{staticClass:"awsui-iconfont condition-query-item-fold",on:{click:function(t){e.conditionFold.createUser=!e.conditionFold.createUser}}},[e._v("")])]:e._e()],2),e.createUserList.length>0?[t("el-checkbox-group",{staticClass:"query-filter-item-checkbox-group",on:{change:e.queryConditionTimer},model:{value:e.createUserChecked,callback:function(t){e.createUserChecked=t},expression:"createUserChecked"}},[e._l(e.createUserList,(function(a,o){return[t("el-checkbox",{directives:[{name:"show",rawName:"v-show",value:o<3||o>=3&&!e.conditionFold.createUser,expression:"i < 3 || (i >= 3 && !conditionFold.createUser)"}],staticClass:"query-filter-item-checkbox",staticStyle:{display:"block"},attrs:{label:a.id}},[e._v(e._s(a.name))])]}))],2),e.createUserList.length>3&&e.conditionFold.createUser?t("p",{staticStyle:{"padding-left":"10px"}},[t("i",{staticClass:"awsui-iconfont text-second-color condition-query-item-fold-more",on:{click:function(t){e.conditionFold.createUser=!e.conditionFold.createUser}}},[e._v("")])]):e._e()]:e._e(),t("p",{staticClass:"query-filter-item-title"},[e._v("修改时间")]),[t("el-radio-group",{staticClass:"query-filter-item-checkbox-group",on:{change:e.queryConditionTimer},model:{value:e.updateDateChecked,callback:function(t){e.updateDateChecked=t},expression:"updateDateChecked"}},[t("el-radio",{staticClass:"query-filter-item-checkbox",staticStyle:{display:"block"},attrs:{label:"all"}},[e._v("全部")]),t("el-radio",{staticClass:"query-filter-item-checkbox",staticStyle:{display:"block"},attrs:{label:"thirty"}},[e._v("近30天")]),t("el-radio",{staticClass:"query-filter-item-checkbox",staticStyle:{display:"block"},attrs:{label:"fifteen"}},[e._v("近15天")]),t("el-radio",{staticClass:"query-filter-item-checkbox",staticStyle:{display:"block"},attrs:{label:"seven"}},[e._v("近7天")]),t("el-radio",{staticClass:"query-filter-item-checkbox",staticStyle:{display:"block"},attrs:{label:"today"}},[e._v("今天")])],1)]],2)])])])])])],1)},d=[],p=a("1337"),u=a("0f08"),h={name:"RepositoryQuery",data(){return{conditionQueryInput:this.queryInput,showClearButton:!1,basicQueryResult:[],basicQueryAreaHeight:"0px",activeTabName:"",queryTypeChecked:["file"],repositoryMethodChecked:[],createUserChecked:[],updateDateChecked:"all",repositoryMethodList:[],createUserList:[],tabData:[],conditionQueryResult:[],conditionFold:{method:!0,createUser:!0},loading:!1,timeStamp:0,queryInterval:1e3,timer:null}},props:["queryInput"],computed:{listenNavigationConditionQueryVisibleFn(){return this.$store.getters.getNavigationConditionQueryVisibleFn}},watch:{queryInput(e,t){""!=e.trim()&&this.$store.getters.getNavigationQueryVisibleFn&&(this.basicQueryResult=[],this.queryBasicTimer())},conditionQueryInput(e,t){""!=e.trim()?this.showClearButton=!0:this.showClearButton=!1},listenNavigationConditionQueryVisibleFn:function(e,t){e&&(this.conditionQueryInput=this.queryInput,this.queryTabInfo())}},methods:{queryTabInfo(){const e=this,t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_condition_main_query",wsId:e.$store.getters.getWsIdFn,teamId:e.$store.getters.getTeamIdFn}};u["a"].post(t).then((function(t){if("ok"==t.result){const a=t.data.data,o=t.data.userData;for(let e=0;e<a.length;e++){const t=a[e];t.createUserList=JSON.parse(JSON.stringify(o))}e.tabData=a,e.$nextTick((function(){e.activeTabName="all",e.handleCagegoryChange({name:"all"})}))}else e.$message.error(t.msg)})).catch(e=>{console.log(e)})},clearQueryInput(){this.conditionQueryInput="",this.queryConditionTimer()},closeDlg(){this.conditionQueryInput="",this.showClearButton=!1,this.queryTypeChecked=["file"],this.repositoryMethodChecked=[],this.createUserChecked=[],this.updateDateChecked="all",this.repositoryMethodList=[],this.createUserList=[],this.tabData=[],this.conditionQueryResult=[],this.conditionFold.method=!0,this.conditionFold.createUser=!0,this.$store.commit("setNavigationConditionQueryVisibleFn",!1)},save(){this.closeDlg()},handleClose(e){e(),this.closeDlg()},openConditionQuery(){this.$store.commit("setNavigationQueryVisibleFn",!1),this.$store.commit("setNavigationConditionQueryVisibleFn",!0)},clearTimer(){null!=this.timer&&clearTimeout(this.timer)},queryBasicTimer(){const e=this;e.timeStamp=(new Date).getTime()+"",e.clearTimer(),e.timer=setTimeout((function(){e.queryBasicRepository()}),e.queryInterval)},queryBasicRepository(){if(this.queryInput&&""!=this.queryInput.trim()){const e=this,t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_basic_query",wsId:e.$store.getters.getWsIdFn,teamId:e.$store.getters.getTeamIdFn,name:e.queryInput.trim(),timeStamp:e.timeStamp}};u["a"].post(t).then((function(t){if(t.data.timeStamp==e.timeStamp)if(e.clearTimer(),"ok"==t.result){const a=t.data.data;for(let t=0;t<a.length;t++){const o=a[t];o.name=e.matchStyle(0,o.name,e.queryInput.trim())}e.basicQueryAreaHeight=(51+50*a.length>350?350:51+50*a.length)+"px",e.basicQueryResult=a}else e.$message.error(t.msg)})).catch(e=>{console.log(e)})}},matchStyle(e,t,a){let o=t.toLocaleLowerCase(),i=a.toLocaleLowerCase();if(e>t.length-1)return t;const s=o.indexOf(i,e);if(-1!=s){const o=t.substring(s,s+a.length),i='<span class="text-linker-color">',r="</span>";return t=t.substring(0,e)+t.substring(e).replace(o,i+o+r),e=s+a.length+i.length+r.length,this.matchStyle(e,t,a)}return t},queryConditionTimer(){const e=this;e.timeStamp=(new Date).getTime()+"",e.clearTimer(),e.loading=!0,e.timer=setTimeout((function(){e.queryConditionRepository()}),e.queryInterval)},queryConditionRepository(){const e=this;if(!e.conditionQueryInput||""==e.conditionQueryInput.trim())return e.conditionQueryResult=[],void(e.loading=!1);{if(0==e.queryTypeChecked.length||0==e.repositoryMethodChecked.length||0==e.createUserChecked.length)return e.conditionQueryResult=[],void(e.loading=!1);const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_condition_data_query",wsId:e.$store.getters.getWsIdFn,teamId:e.$store.getters.getTeamIdFn,type:JSON.stringify(e.queryTypeChecked),method:JSON.stringify(e.repositoryMethodChecked),createUser:JSON.stringify(e.createUserChecked),updateDate:e.updateDateChecked,key:e.conditionQueryInput,timeStamp:e.timeStamp}};u["a"].post(t).then((function(t){if(t.data.timeStamp==e.timeStamp)if(e.clearTimer(),"ok"==t.result){const a=t.data.data;for(let t=0;t<a.length;t++){const o=a[t];if(-1!=e.queryTypeChecked.indexOf("file")&&(o.name=e.matchStyle(0,o.name,e.conditionQueryInput)),-1!=e.queryTypeChecked.indexOf("shape")&&o.shapeDataSize>0){for(let t=0;t<o.shapeData.length;t++){const a=o.shapeData[t];o.shapeData[t]=e.matchStyle(0,a,e.conditionQueryInput)}o.shapeDataStr=o.shapeData.join("、")}}e.conditionQueryResult=a}else e.$message.error(t.msg);e.loading=!1})).catch(e=>{console.log(e)})}},handleCagegoryChange(e,t){const a=e.name;for(let o=0;o<this.tabData.length;o++){const e=this.tabData[o];if(e.name==a){this.repositoryMethodList=e.methodList,this.repositoryMethodChecked=[];for(let e=0;e<this.repositoryMethodList.length;e++)this.repositoryMethodChecked.push(this.repositoryMethodList[e].id);this.createUserList=e.createUserList,this.createUserChecked=[];for(let e=0;e<this.createUserList.length;e++)this.createUserChecked.push(this.createUserList[e].id)}}this.queryConditionTimer()},positionRepository(e,t,a){this.$router.push({path:"/Repository",query:{id:e,versionId:t,path:a,param:Math.random()}}),this.$store.getters.getNavigationQueryVisibleFn&&this.$store.commit("setNavigationQueryVisibleFn",!1),this.$store.getters.getNavigationConditionQueryVisibleFn&&this.$store.commit("setNavigationConditionQueryVisibleFn",!1)},openRepository(e){this.$store.getters.getNavigationQueryVisibleFn&&this.$store.commit("setNavigationQueryVisibleFn",!1),this.$store.getters.getNavigationConditionQueryVisibleFn&&this.$store.commit("setNavigationConditionQueryVisibleFn",!1),Object(p["d"])(this.$store.getters.getTeamIdFn,e,this.$store.state.sessionId)}}},m=h,g=(a("bf40"),a("0b56")),f=Object(g["a"])(m,c,d,!1,null,"258815a1",null),b=f.exports,w=function(){var e=this,t=e._self._c;return t("validation-observer",{ref:"newTeam"},[t("awsui-layout",{attrs:{id:"update"}},[t("awsui-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{"element-loading-text":"加载中",title:e.title,visible:e.dialogVisible,width:e.width,height:e.height,border:!1,"close-on-click-modal":!1,"before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",[t("el-steps",{attrs:{active:e.stepActive,"align-center":""}},[t("el-step",{attrs:{title:"小组信息"}}),t("el-step",{attrs:{title:"小组管理员"}}),t("el-step",{attrs:{title:"小组权限"}})],1),t("div",{staticStyle:{width:"524px",height:"260px",border:"1px solid #e9e9e9",padding:"10px 10px 10px 15px"}},[1==e.stepActive?t("div",{staticStyle:{position:"relative",padding:"12px 0"}},[t("awsui-form",{ref:"infoForm",attrs:{model:e.baseInfo.form,rules:e.baseInfo.rules,"label-width":"100px","label-position":"top"}},[e.isloaded?t("div",[t("awsui-icon-picker",{staticClass:"icon-team-div",attrs:{defaultOptions:e.iconPickerOptions,value:{icon:e.baseInfo.form.teamLogo.code,color:e.baseInfo.form.teamLogo.color}},on:{change:e.changeIcon}})],1):e._e(),t("awsui-row",[t("awsui-col",{attrs:{span:18}},[t("awsui-form-item",{attrs:{label:"名称",required:""}},[t("validation-provider",{attrs:{rules:"required|teamName_formatCheck|maxLength:36"},scopedSlots:e._u([{key:"default",fn:function({classes:a,errors:o}){return[t("awsui-input",{attrs:{placeholder:"请输入名称"},model:{value:e.baseInfo.form.teamName,callback:function(t){e.$set(e.baseInfo.form,"teamName",t)},expression:"baseInfo.form.teamName"}}),t("div",{class:a},[e._v(e._s(o[0]))])]}}],null,!1,2850441238)})],1)],1)],1),t("awsui-row",[t("awsui-col",{attrs:{span:18}},[t("awsui-form-item",{attrs:{label:"工作网络",required:""}},[t("validation-provider",{attrs:{rules:"required|teamName_formatCheck|maxLength:36"},scopedSlots:e._u([{key:"default",fn:function({classes:a,errors:o}){return[t("awsui-select",{attrs:{filterable:"","allow-create":"","default-first-option":"",placeholder:"请选择/输入工作网络",options:e.baseInfo.form.categoryOpts},on:{change:e.changeCategory},model:{value:e.baseInfo.form.category,callback:function(t){e.$set(e.baseInfo.form,"category",t)},expression:"baseInfo.form.category"}}),t("div",{class:a},[e._v(e._s(o[0]))])]}}],null,!1,2989048194)})],1)],1)],1),t("awsui-row",[t("awsui-col",{attrs:{span:24}},[t("awsui-form-item",{attrs:{label:"简介"}},[t("validation-provider",{attrs:{rules:"maxLength:255"},scopedSlots:e._u([{key:"default",fn:function({classes:a,errors:o}){return[t("awsui-input",{attrs:{type:"textarea",placeholder:"请输入简介"},model:{value:e.baseInfo.form.teamDesc,callback:function(t){e.$set(e.baseInfo.form,"teamDesc",t)},expression:"baseInfo.form.teamDesc"}}),t("div",{class:a},[e._v(e._s(o[0]))])]}}],null,!1,3063291858)})],1)],1)],1)],1)],1):e._e(),2==e.stepActive?t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.adminUserInfo.loading,expression:"adminUserInfo.loading"}]},[t("div",{staticStyle:{height:"270px",overflow:"auto"}},[t("el-tree",{key:"userTree",ref:"userTree",attrs:{props:e.adminUserInfo.treeProps,"default-checked-keys":e.adminUserInfo.value,"expand-on-click-node":!1,"highlight-current":!0,"empty-text":"","check-strictly":"","show-checkbox":!0,"node-key":"id",lazy:"",load:e.loadUserNode},on:{"node-click":e.openUserNode,"node-expand":e.expandUserNode,"node-collapse":e.closeUserNode,"check-change":e.checkedUserNode},scopedSlots:e._u([{key:"default",fn:function({node:a,data:o}){return t("span",{},[t("i",{staticClass:"awsui-iconfont tree-content-icon tree-content-icon-padding",style:{color:a.data.icon.color},domProps:{innerHTML:e._s(a.data.icon.icon)}}),t("span",[e._v(e._s(a.label))])])}}],null,!1,52448956)})],1)]):e._e(),3==e.stepActive?t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.permInfo.loading,expression:"permInfo.loading"}]},[t("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"","default-first-option":"",size:"small",placeholder:"请选择资产库"},on:{change:e.changeWs},model:{value:e.permInfo.ws.value,callback:function(t){e.$set(e.permInfo.ws,"value",t)},expression:"permInfo.ws.value"}},e._l(e.permInfo.ws.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),t("div",{staticStyle:{height:"238px",overflow:"auto"}},[""!=e.permInfo.ws.value?t("el-tree",{key:"repositoryTree",ref:"repositoryTree",attrs:{props:e.permInfo.tree.props,"default-checked-keys":e.permInfo.tree.value,"expand-on-click-node":!1,"highlight-current":!0,"empty-text":"","check-strictly":"","show-checkbox":"","node-key":"versionId",lazy:"",load:e.loadNode},on:{"node-click":e.openNode,"node-expand":e.expandNode,"node-collapse":e.closeNode,"check-change":e.checkedNode},scopedSlots:e._u([{key:"default",fn:function({node:a,data:o}){return t("span",{},[t("i",{staticClass:"awsui-iconfont tree-content-icon tree-content-icon-padding",style:{color:a.data.icon.color},domProps:{innerHTML:e._s(a.data.icon.icon)}}),t("span",[e._v(e._s(a.data.name))])])}}],null,!1,1613751043)}):e._e()],1)],1):e._e()])],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{directives:[{name:"show",rawName:"v-show",value:2==e.stepActive||3==e.stepActive,expression:"stepActive == 2 || stepActive == 3"}],staticClass:"button-general-color-reverse",on:{click:function(){e.stepActive--}}},[e._v("上一步")]),t("awsui-button",{directives:[{name:"show",rawName:"v-show",value:1==e.stepActive||2==e.stepActive,expression:"stepActive == 1 || stepActive == 2"}],staticClass:"button-general-color",attrs:{type:"primary"},on:{click:e.next}},[e._v("下一步")]),t("awsui-button",{directives:[{name:"show",rawName:"v-show",value:3==e.stepActive,expression:"stepActive == 3"}],staticClass:"button-general-color",attrs:{type:"primary"},on:{click:e.submit}},[e._v("确定")])],1)])],1)],1)},y=[],v={name:"CooperationUpdate",props:{visible:{type:Boolean,default:!1},teamId:{type:String,default:""},title:{type:String,default:"新建"}},data(){return{dialogVisible:!1,loading:!1,width:"600px",height:"350px",addressType:"user",baseInfo:{form:{teamName:"",category:"",categoryOpts:[],teamDesc:"",teamLogo:{color:"",code:""}},rules:{category:[{required:!0,message:"[工作网络]不允许为空",trigger:"blur"}],teamName:[{required:!0,message:"[名称]不允许为空",trigger:"blur"}]}},adminUserInfo:{value:[],treeProps:{label:"name",isLeaf:"leaf"},loading:!1},permInfo:{loading:!1,ws:{value:"",options:[]},tree:{props:{children:"children",label:"label",isLeaf:"leaf"},value:[]}},stepActive:1,isloaded:!1,iconPickerOptions:{type:"background",fatherWidth:70,iconFontSize:52,colorList:["#dc4f39","#ff9421","#009b52","#3383da","#009688","#6600d5","#0b0e7b","#666666","#e6e8ea"],iconfontArray:window.iconfontArray}}},mounted(){},methods:{changeCategory(e){this.baseInfo.form.category=e},initData(){const e=this;e.loading=!0;const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal.cooperation_team_create_or_update_data_query",teamId:e.teamId}};u["a"].post(t).then((function(t){if("ok"==t.result){const a=t.data;e.baseInfo.form.teamName=a.teamName,e.baseInfo.form.category=a.category,e.baseInfo.form.categoryOpts=a.categoryArr,e.baseInfo.form.teamDesc=a.teamDesc,e.baseInfo.form.teamLogo=a.teamLogo,e.isloaded=!0,e.adminUserInfo.value=a.admins,e.permInfo.ws.value=a.wsId,e.permInfo.ws.options=a.wsArr,e.permInfo.tree.value=a.repositorys}else e.$message.error(t.msg);e.loading=!1})).catch(t=>{console.log(t),e.loading=!1})},next(){const e=this;1==this.stepActive?this.$refs.newTeam.validate().then(e=>{e&&this.stepActive++}):2==this.stepActive&&(0==e.adminUserInfo.value.length&&e.$message("未选择任何管理员,保存时默认"+(""==e.teamId?"创建":"修改")+"人为管理员"),this.stepActive++)},clearAllData(){const e=this;e.baseInfo.form.teamName="",e.baseInfo.form.category="",e.baseInfo.form.teamDesc="",e.baseInfo.form.teamLogo={},e.adminUserInfo.value=[],e.permInfo.ws.value="",e.permInfo.ws.options=[],e.permInfo.tree.value=[],e.stepActive=1,e.isloaded=!1},handleClose(e){this.closeDlalog("cancel"),e()},cancel(){this.closeDlalog("cancel")},submit(){const e=this.permInfo.ws.value;""!=e?this.closeDlalog("save"):this.$message({message:"请先创建资产库再进行小组创建",type:"warning"})},closeDlalog(e){const t=this;if("save"==e){const e=t.teamId,a=t.baseInfo.form.teamName,o=t.baseInfo.form.category,i=t.baseInfo.form.teamDesc,s=t.baseInfo.form.teamLogo,r=t.adminUserInfo.value,l=t.permInfo.ws.value,n=t.permInfo.tree.value,c={teamId:e,teamName:a,category:o,teamDesc:i,teamLogo:s,admins:r,wsId:l,repositorys:n};t.loading=!0;const d={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal.cooperation_team_create_or_update_data_save",data:JSON.stringify(c)}};u["a"].post(d).then((function(e){t.loading=!1,"ok"==e.result?(t.$message({message:"保存成功",type:"success"}),t.$emit("getResult","ok"),t.dialogVisible=!1,t.clearAllData()):t.$message.error(e.msg)})).catch(e=>{console.log(e),t.loading=!1})}else t.$emit("cancel"),t.dialogVisible=!1,t.clearAllData()},openUserNode(e,t,a){},loadUserNode(e,t){const a=this;a.adminUserInfo.loading=!0;const o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_bpm_org_address_component_subjson",addressType:a.addressType,pid:"",highSecurityFilter:""}};0===e.level?o.data.parentType="":(o.data.pid=e.data.id,o.data.parentType=e.data.type),u["a"].post(o).then((function(o){const i=a.addressType.indexOf("department")>-1,s=a.addressType.indexOf("user")>-1;a.addressType.indexOf("role");for(let e=0;e<o.data.length;e++){const t=o.data[e];"company"==t.type?t.disabled=!0:(i&&"department"==t.type&&(t.disabled=!1),i||"department"!=t.type||(t.disabled=!0),s&&"user"==t.type&&(t.disabled=!1),s||"user"!=t.type||(t.disabled=!0),"user"==t.type&&(t.leaf=!0))}if(t(o.data),a.adminUserInfo.loading=!1,0==e.level&&o.data.length>0){const e=a.$refs.userTree;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)})},expandUserNode(e,t,a){},closeUserNode(e,t,a){t.childNodes=[],t.loaded=!1},checkedUserNode(e,t,a){const o=this,i=e.id;if(t){const e=o.adminUserInfo.value;-1==e.indexOf(i)&&e.push(i)}else{const e=o.adminUserInfo.value,t=[];for(let a=0;a<e.length;a++)e[a]!=i&&t.push(e[a]);o.adminUserInfo.value=t}},changeWs(e){const t=this;t.permInfo.ws.value="",t.permInfo.tree.value,t.$nextTick((function(){t.permInfo.ws.value=e}))},openNode(e,t,a){},loadNode(e,t){const a=this;a.permInfo.loading=!0;const o={url:"jd",data:{}};o.data.wsId=a.permInfo.ws.value,o.data.teamId="",o.data.cmd="com.actionsoft.apps.coe.pal_processlevel_tree_data",0===e.level?o.data.pid="":o.data.pid=e.data.id,u["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);if(t(o.data),a.permInfo.loading=!1,0==e.level&&o.data.length>0){const e=a.$refs.repositoryTree;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,a){},closeNode(e,t,a){t.childNodes=[],t.loaded=!1},checkedNode(e,t,a){const o=this,i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_publish_publishgroup_repository_data_query",wsId:o.permInfo.ws.value,pid:e.id}};u["a"].post(i).then((function(a){const i=a.data,s=e.versionId;if(t){const e=o.permInfo.tree.value;-1==e.indexOf(s)&&e.push(s);for(let t=0;t<i.length;t++)-1==e.indexOf(i[t])&&e.push(i[t]);o.$refs.repositoryTree.setCheckedKeys(e)}else{const e=o.permInfo.tree.value,t=[];for(let a=0;a<e.length;a++)e[a]!=s&&-1==i.indexOf(e[a])&&t.push(e[a]);o.permInfo.tree.value=t,o.$refs.repositoryTree.setCheckedKeys([])}})).catch(e=>{console.log(e)})},changeIcon(e){this.baseInfo.form.teamLogo.code=e.icon,this.baseInfo.form.teamLogo.color=e.color}},watch:{visible(e){this.dialogVisible=e,e&&this.initData()}}},x=v,_=(a("ea55"),Object(g["a"])(x,w,y,!1,null,"7adb2f8c",null)),C=_.exports,k={name:"Navigation",components:{WorkspaceUpdate:l["a"],WorkspaceImport:n["a"],RepositoryQuery:b,CooperationUpdate:C},data(){return{mainType:mainType,isManage:isManage,isSecAdminUser:isSecAdminUser,userPhoto:"",isPbulishActive:!1,isCooperationActive:!1,wsLabel:"",wsValue:"",wsOptions:[],teamLabel:"",teamValue:"",isTeamManager:!1,teamOptions:[],arrowTip:"down",queryInput:"",appList:[],teamAppList:{},showAppDetail:!1,currApp:{id:"",clazzName:"",name:"",icon:"",bgColor:""},mainIcon:{code:"",color:"#4E7FF9"},mainIconTemp:{code:"",color:"#4E7FF9"},cooperation:{visible:!1,teamId:"",title:"创建小组"},cooperationDrawer:{showCooperationDetail:!1}}},inject:["openAppDrawer","closeAppDrawer","openPwdConfig","logout","openCooperationDrawer","closeCooperationDrawer","saveAccessOpLog"],methods:{basicQuery(){this.closeApp(),this.closeCooperation(),""==this.queryInput.trim()?this.$store.commit("setNavigationQueryVisibleFn",!1):this.$store.commit("setNavigationQueryVisibleFn",!0)},conditionQuery(){this.closeApp(),this.closeCooperation(),this.$store.commit("setNavigationQueryVisibleFn",!1),this.$store.commit("setNavigationConditionQueryVisibleFn",!0)},keepRepositoryQuery(){},handleWsCommand(e){if(this.closeApp(),this.closeCooperation(),"create"==e)this.$refs.workspaceUpdate.openUpdateWsDlg("create","",this);else if("import"==e)this.$refs.workspaceImport.openImportWsDlg(this);else if("manage"==e)Object(p["b"])("palManage",this.$store.state.sessionId,"com.actionsoft.apps.coe.pal_user_home_page",{mainType:4},"_top");else{this.wsValue=e;for(let t=0;t<this.wsOptions.length;t++)this.wsOptions[t].value==e&&(this.wsLabel=this.wsOptions[t].label,this.$store.commit("setWsIdFn",this.wsValue),this.saveAccessOpLog("workspace"),Object(p["e"])(this.wsLabel))}},handleTeamCommand(e){if(this.closeApp(),this.closeCooperation(),"create"==e)this.cooperation.visible=!0;else if("manage"==e)this.openCooperation();else{this.teamValue=e;for(let t=0;t<this.teamOptions.length;t++)if(this.teamOptions[t].value==e){this.teamLabel=this.teamOptions[t].label;const e=this.teamValue.split("|")[0];this.$store.commit("setTeamIdFn",e),this.$store.commit("setWsIdFn",this.teamValue.split("|")[1]),this.appList=this.teamAppList[e],this.updateTeamLogo(e),this.saveAccessOpLog("cooperation"),Object(p["e"])(this.teamLabel)}}},handleUserCommand(e){this.closeApp(),this.closeCooperation(),"manage"==e?Object(p["b"])("palCooperation",this.$store.state.sessionId,"com.actionsoft.apps.coe.pal_user_home_page",{mainType:4},"_top"):"bbs"==e?Object(p["c"])("bbsLink","http://www.awspal.com/study"):"help"==e?Object(p["c"])("helpLink","http://docs.awspaas.com/coe/aws-paas-user-manual-coe-pal/index.html"):"updatePwd"==e?this.openPwdConfig():"logout"==e&&this.logout()},openApp(e,t,a,o,i){this.$refs["appPopover"].doClose(),this.currApp.id=e,this.currApp.name=a,this.currApp.clazzName=t,this.currApp.icon=o,this.currApp.bgColor=i,this.openAppDrawer(),this.showAppDetail=!0},closeApp(){this.closeAppDrawer()},openCooperation(){this.openCooperationDrawer()},closeCooperation(){this.closeCooperationDrawer()},isChangePwd(){return isSecurityPwdChange},updateWorkspaceCallback(){Object(p["b"])("palMain",this.$store.state.sessionId,"com.actionsoft.apps.coe.pal_user_home_page",{},"_top")},importWorkspaceCallback(){Object(p["b"])("palMain",this.$store.state.sessionId,"com.actionsoft.apps.coe.pal_user_home_page",{},"_top")},initParam(){const e=this,t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_nav_header_data",mainType:mainType}};u["a"].post(t).then((function(t){if("ok"==t.result){let a=t.data;if(e.userPhoto=a.userPhoto,e.isPbulishActive=a.isPbulishActive,e.isCooperationActive=a.isCooperationActive,e.appList=a.appList,e.teamAppList=a.teamAppList,e.teamLabel=a.teamLabel,e.teamValue=a.teamValue,e.teamOptions=a.teamOptions,e.wsValue=a.wsValue,e.$store.commit("setWsIdFn",e.wsValue),""!=e.teamValue){const t=e.teamValue.split("|")[0];e.$store.commit("setTeamIdFn",t),e.$store.commit("setWsIdFn",e.teamValue.split("|")[1]),e.updateTeamLogo(t)}if(e.isTeamManager=a.isTeamManager,e.wsLabel=a.wsLabel,e.wsOptions=a.wsOptions,"0"==mainType)e.$router.replace({path:"workspace"}),Object(p["e"])("AWS PAL资产库");else if("2"==mainType)e.$router.replace({name:"cooperationCreate",params:{isManage:isManage}}),Object(p["e"])("AWS PAL小组");else if("4"==mainType)e.$router.replace({path:"manage"}),Object(p["e"])("AWS PAL管理中心");else if("1"==mainType||"3"==mainType){let t=e.wsLabel;"1"==mainType?e.saveAccessOpLog("workspace"):(e.saveAccessOpLog("cooperation"),t=e.teamLabel),e.$router.replace({path:"repository"}),Object(p["e"])(t)}}})).catch(e=>{console.log(e)})},returnMainPage(){this.closeApp(),this.closeCooperation(),""==!this.queryInput&&(this.queryInput=""),this.$router.push({path:"/Repository",query:{param:Math.random()}})},changeDropDownArrow(e){this.arrowTip=e?"up":"down"},updateTeamLogo(e){const t=this;for(let a=0;a<t.teamOptions.length;a++)if(t.teamOptions[a].teamId==e){t.mainIcon.color=t.teamOptions[a].teamLogo.color,t.mainIcon.code=t.teamOptions[a].teamLogo.code,t.mainIconTemp.color=t.teamOptions[a].teamLogo.color,t.mainIconTemp.code=t.teamOptions[a].teamLogo.code;break}},createCooperationCallback(e){"ok"==e&&Object(p["b"])("palCooperation",this.$store.state.sessionId,"com.actionsoft.apps.coe.pal_user_home_page",{mainType:5},"_top")},openCooperationPage(){Object(p["b"])("palCooperation",this.$store.state.sessionId,"com.actionsoft.apps.coe.pal_user_home_page",{mainType:5},"_top")},openManageMainPage(){Object(p["b"])("palCooperation",this.$store.state.sessionId,"com.actionsoft.apps.coe.pal_user_home_page",{},"_top")},openProcessManagePortalPage(){Object(p["b"])("publishPortal",this.$store.state.sessionId,"com.actionsoft.apps.coe.pal.publisher_client_home")}},created(){this.initParam()}},I=k,S=(a("fc77"),Object(g["a"])(I,s,r,!1,null,"1fb2507b",null)),T=S.exports,F=function(){var e=this,t=e._self._c;return t("el-dialog",{staticClass:"pwd-change",attrs:{title:"修改密码",visible:e.pwdConfig,"append-to-body":!0,top:"15%",width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.pwdConfig=t}}},[t("table",{staticStyle:{width:"420px"}},[t("tbody",[t("tr",[t("td",{staticClass:"text-general-color",staticStyle:{width:"125px"}},[e._v("旧口令")]),t("td",[t("span",{staticClass:"text-important-color"},[e._v("* ")]),t("el-input",{staticStyle:{width:"240px","margin-bottom":"5px"},attrs:{size:"small",id:"pwd1",placeholder:"",name:"pwd1","auto-complete":"new-password",type:"password"},model:{value:e.pwd1,callback:function(t){e.pwd1=t},expression:"pwd1"}})],1),t("td")]),t("tr",[t("td",{staticClass:"text-general-color"},[e._v("新口令")]),t("td",[t("span",{staticClass:"text-important-color"},[e._v("* ")]),t("el-input",{staticStyle:{width:"240px","margin-bottom":"5px"},attrs:{size:"small",placeholder:"",id:"pwd2",name:"pwd2","auto-complete":"new-password",type:"password"},model:{value:e.pwd2,callback:function(t){e.pwd2=t},expression:"pwd2"}})],1),t("td")]),t("tr",[t("td",{staticClass:"text-general-color"},[e._v("确认口令")]),t("td",[t("span",{staticClass:"text-important-color"},[e._v("* ")]),t("el-input",{staticStyle:{width:"240px","margin-bottom":"5px"},attrs:{size:"small",id:"pwd3",name:"pwd3",placeholder:"","auto-complete":"new-password",type:"password"},model:{value:e.pwd3,callback:function(t){e.pwd3=t},expression:"pwd3"}})],1),t("td")])])]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{staticClass:"button-general-color",attrs:{type:"primary"},on:{click:function(t){return e.saveUserPwd()}}},[e._v("确定")]),t("awsui-button",{on:{click:function(t){return e.clearPwd(!0)}}},[e._v("取消")])],1)])},D=[],N={name:"PwdChange",data(){return{pwdConfig:!1,pwd1:"",pwd2:"",pwd3:""}},methods:{saveUserPwd(){const e=this;let t="success",a="";if(""==e.pwd1?(t="warning",a="[旧口令]不允许为空"):""==e.pwd2?(t="warning",a="[新口令]不允许为空"):""==e.pwd3?(t="warning",a="[确认口令]不允许为空"):e.pwd1==e.pwd2?(t="warning",a="新口令和旧口令不能相同"):e.pwd2!=e.pwd3?(t="warning",a="新口令和确认口令不一致"):e.pwd2.indexOf(" ")>-1?(t="warning",a="[新口令]不能包含空格"):e.pwd3.indexOf(" ")>-1&&(t="warning",a="[确认口令]不能包含空格"),"success"!=t)return e.$message({message:a,duration:2e3,type:t}),!1;if(e.validateUpdateLoginpassword(e.pwd2,"新口令"))return!1;const o={url:"jd",data:{cmd:"CLIENT_P_PERSON_CONFIG_PW_ISRIGHT",oldpwd:e.pwd1}};u["a"].post(o).then((function(t){if("-1"==t)return e.$message.error("旧口令输入错误,请重新输入"),!1;const a={url:"jd",data:{cmd:"CLIENT_P_PERSON_CONFIG_PW_SAVE",oldpwd:e.pwd1,newpwd:e.pwd2}};u["a"].post(a).then((function(t){"ok"==t.result?(e.$message({message:t.msg,type:"success"}),e.clearPwd(!0)):e.$message.error(t.msg)})).catch(e=>{console.log(e)})})).catch(e=>{console.log(e)})},validateUpdateLoginpassword(e,t){if(securityMinPwdLength>0){if(e.length<securityMinPwdLength)return this.$message({message:"["+t+"]不得少于"+securityMinPwdLength+"个字符",type:"warning"}),!0;if(e.length>securityMaxPwdLength)return this.$message({message:"["+t+"]不允许超过"+securityMaxPwdLength+"个字符",duration:2e3,type:"warning"}),!0}return isSecurityPwdComplexity,!1},checkPasswordLength(e,t){var a=jQuery("#minLength").val();return!(length2(e)<a||length2(t)<a)||($.simpleAlert("口令长度不能少于"+a+"位","error",2e3),!1)},handleClose(e){this.clearPwd(!1),e()},clearPwd(e){const t=this;t.pwd1="",t.pwd2="",t.pwd3="",e&&(t.pwdConfig=!1)}}},A=N,L=(a("dec9"),Object(g["a"])(A,F,D,!1,null,"8c1454a0",null)),O=L.exports,M=function(){var e=this,t=e._self._c;return t("el-container",{attrs:{id:"workspaceBackUp"}},[t("el-header",{staticStyle:{height:"50px"}},[t("div",{staticStyle:{margin:"10px"}},[t("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"130px"},attrs:{type:"primary"},on:{click:function(t){return e.createBackup()}}},[e._v("新建备份")])],1)]),t("el-main",[t("el-table",{ref:"workspaceBackupTable",staticStyle:{width:"100%"},attrs:{id:"workspaceBackupTable",data:e.tableData,height:e.tableHeight}},[t("el-table-column",{attrs:{prop:"time",label:"备份时间",width:"250"}}),t("el-table-column",{attrs:{prop:"user",label:"操作用户",width:"180"}}),t("el-table-column",{attrs:{prop:"remark",label:"备注","min-width":"180"}}),t("el-table-column",{attrs:{prop:"operation",label:"操作",width:"200",align:"center"},scopedSlots:e._u([{key:"default",fn:function(a){return[0!=a.row.state&&2!=a.row.state&&3!=a.row.state?t("div",[t("el-tooltip",{staticClass:"item",attrs:{content:"修改",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"awsui-iconfont",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.update(a.row.id,a.row.remark)}}},[e._v("")])]),t("el-tooltip",{staticClass:"item",attrs:{content:"恢复",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"awsui-iconfont",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.recover(a.row.id,a.row.time)}}},[e._v("")])]),t("el-tooltip",{staticClass:"item",attrs:{content:"导出",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"awsui-iconfont",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.exportBackup(a.row.id)}}},[e._v("")])]),t("el-tooltip",{staticClass:"item",attrs:{content:"删除",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"awsui-iconfont",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.deleteBackup(a.row.id,a.row.time)}}},[e._v("")])])],1):e._e(),0==a.row.state?t("div",[t("el-tooltip",{staticClass:"item",attrs:{content:"正在备份...",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"awsui-iconfont",staticStyle:{cursor:"default"}},[e._v("")])])],1):e._e(),2==a.row.state?t("div",[t("el-tooltip",{staticClass:"item",attrs:{content:"备份失败",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"awsui-iconfont",staticStyle:{cursor:"default"}},[e._v("")])]),t("el-tooltip",{staticClass:"item",attrs:{content:"删除",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"awsui-iconfont",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.deleteBackup(a.row.id,a.row.time)}}},[e._v("")])])],1):e._e(),3==a.row.state?t("div",[t("el-tooltip",{staticClass:"item",attrs:{content:"正在恢复...",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"awsui-iconfont",staticStyle:{cursor:"default"}},[e._v("")])])],1):e._e()]}}])})],1),t("el-dialog",{attrs:{title:"资产库备份",visible:e.dialogVisible,width:"30%","before-close":e.handleClose,"modal-append-to-body":!1,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticStyle:{"margin-bottom":"10px"}},[t("label",[e._v("备注")])]),t("el-input",{attrs:{type:"textarea",placeholder:"请输入备注",maxlength:"200",rows:5,"show-word-limit":""},model:{value:e.updateRemark,callback:function(t){e.updateRemark=t},expression:"updateRemark"}}),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{staticClass:"button-general-color",attrs:{disabled:!1,type:"primary"},on:{click:e.save}},[e._v("确定")]),t("awsui-button",{on:{click:e.closeDlg}},[e._v("取消")])],1)],1)],1)],1)},H=[],P={name:"WorkspaceBackup",data(){return{tableHeight:parseInt(this.$store.getters.getTopMainHeightFn)-22-50+"px",tableData:[],dialogVisible:!1,updateType:"create",updateId:"",updateRemark:"",exportProgressTimeout:"",stateInterval:""}},props:["wsId"],computed:{listenTopMainHeight(){return this.$store.getters.getTopMainHeightFn}},created(){},mounted(){const e=this;e.initData(),setTimeout((function(){e.stateInterval=setInterval((function(){e.refreshState()}),1e3)}),2e3)},methods:{initData(e){const t=this,a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_ws_backup_data_query",wsId:t.wsId}};u["a"].post(a).then((function(a){if("ok"==a.result){let o=a.data;t.tableData=o,(void 0==e||e)&&(t.$refs.workspaceBackupTable.bodyWrapper.scrollTop=0)}})).catch(e=>{console.log(e)})},createBackup(){this.updateRemark="",this.updateId="",this.updateType="create",this.dialogVisible=!0},update(e,t){this.updateRemark=t,this.updateId=e,this.updateType="update",this.dialogVisible=!0},save(){const e=this;if(""==e.updateRemark.trim())return e.$message({message:"[备注]不允许为空",type:"warning"}),!1;if("create"==e.updateType){const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_backup_add",wsId:e.wsId,remark:e.updateRemark}};u["a"].post(t).then((function(t){e.initData(),e.closeDlg()})).catch(e=>{console.log(e)})}else{const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_backup_update",id:e.updateId,remark:e.updateRemark}};u["a"].post(t).then((function(t){e.$message({message:"修改成功",type:"success"}),e.initData(),e.closeDlg()})).catch(e=>{console.log(e)})}},recover(e,t){const a=this;a.$confirm("恢复后,当前数据无法找回,请先备份当前数据!要继续恢复["+t+"]的备份吗?","提示",{confirmButtonText:"是,已经备份",cancelButtonText:"否,去备份",confirmButtonClass:"button-general-color",type:"warning"}).then(()=>{const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_backup_recover",wsId:a.wsId,id:e}};u["a"].post(t).then((function(e){a.initData(!1)})).catch(e=>{console.log(e)})}).catch(()=>{a.createBackup()})},exportBackup(e){const t=this,a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_backup_export",wsId:t.wsId,id:e}};u["a"].post(a).then((function(a){t.exportProgressTimeout=setInterval((function(){t.exportBackupProgress(e)}),2e3)})).catch(e=>{console.log(e)})},exportBackupProgress(e){const t=this,a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_backup_export_progress",wsId:t.wsId,id:e}};u["a"].post(a).then((function(a){if("finish"==a.data.progress)clearTimeout(t.exportProgressTimeout),t.exportProgressTimeout="",t.exportBackupDownload(e);else if("byhand"==a.data.progress){clearTimeout(t.exportProgressTimeout),t.exportProgressTimeout="",$.simpleAlert("close");var o=t.wsId+".bak";this.$message({showClose:!0,message:"文件过大,请联系管理员在服务器/doccenter/com.actionsoft.apps.coe.pal/tmp/exp/repository目录下获取备份文件"+o,duration:0})}})).catch(e=>{console.log(e)})},exportBackupDownload(e){const t=this,a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_backup_export_download",wsId:t.wsId,id:e}};u["a"].post(a).then((function(e){window.open(e.data.downloadUrl)})).catch(e=>{console.log(e)})},deleteBackup(e,t){const a=this;a.$confirm("确定要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",confirmButtonClass:"button-general-color",type:"warning"}).then(()=>{const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_backup_delete",wsId:a.wsId,id:e}};u["a"].post(t).then((function(t){a.$message({type:"success",message:"删除成功!"});for(let o=0;o<a.tableData.length;o++)if(a.tableData[o].id==e){a.tableData.splice(o,1);break}})).catch(e=>{console.log(e)})}).catch(()=>{})},handleClose(e){e()},closeDlg(){this.dialogVisible=!1,this.updateRemark="",this.updateType="create",this.updateId=""},refreshState(){const e=this;for(let t=0;t<e.tableData.length;t++){const a=e.tableData[t];if(0==a.state||3==a.state){const o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_backup_state",wsId:e.wsId,id:a.id}};u["a"].post(o).then((function(a){e.tableData[t].state=a.data.state,4==a.data.state&&(e.$message({message:"恢复成功",type:"success"}),setTimeout((function(){location.reload()}),1e3))})).catch(e=>{console.log(e)})}}}},watch:{listenTopMainHeight:function(e,t){this.tableHeight=parseInt(e)-22-50+"px"}},beforeDestroy:function(){clearInterval(this.stateInterval),clearInterval(this.exportProgressTimeout)}},R=P,U=(a("0757"),Object(g["a"])(R,M,H,!1,null,"f171001a",null)),q=U.exports,j=function(){var e=this,t=e._self._c;return t("awsui-layout",{attrs:{id:"repMark"}},[t("awsui-aside",{attrs:{width:"50%"}},[t("div",{staticClass:"treeWrapper"},[t("div",{staticClass:"treeHeader",style:{height:e.headerHeight}},[t("div",{staticClass:"textWrapper"},[t("span",{staticClass:"title"},[e._v("文件密级")]),-1!=e.fileUnMarkNum?t("span",{staticClass:"desc"},[e._v("共有"),t("span",{staticStyle:{color:"red"}},[e._v(e._s(e.fileUnMarkNum))]),e._v("个待标密文件")]):e._e()]),t("div",{staticClass:"button"},[t("awsui-button",{staticClass:"button-general-color",staticStyle:{height:"36px",margin:"0","font-size":"14px"},attrs:{type:"primary"},on:{click:e.quickMark}},[e._v("快速定位 ")])],1)]),t("div",{staticClass:"treeMain",style:{"padding-left":"2rem",height:e.mainHeight}},[t("el-tree",{ref:"tree",attrs:{props:e.treeProps,"expand-on-click-node":!1,"highlight-current":!0,"node-key":"id",lazy:"",load:e.loadNode},on:{"node-click":e.openNode,"node-expand":e.expandNode,"node-collapse":e.closeNode},scopedSlots:e._u([{key:"default",fn:function({node:a,data:o}){return t("span",{},[t("i",{staticClass:"awsui-iconfont tree-content-icon tree-content-icon-padding",style:{color:a.data.icon.color},domProps:{innerHTML:e._s(a.data.icon.icon)}}),t("span",{style:{"font-weight":o.id.length<36?"600":""}},[e._v(" "+e._s(a.label)+" "),o.id.length>=26&&!o.folder&&"未标密"!=o.securityLevelName?t("span",{staticClass:"font12 blue"},[e._v(" "+e._s(o.securityLevelName)+" ")]):e._e(),o.id.length>=26&&!o.folder&&"未标密"==o.securityLevelName?t("span",{staticClass:"font12 red",on:{click:function(t){return e.showMarkDialog(o,-1,"file")}}},[e._v(" "+e._s(o.securityLevelName)+" ")]):e._e(),o.id.length>=26&&!o.folder&&o.isUpfileUnmark?t("span",{staticClass:"font12 red"},[e._v(" 附件未标密 ")]):e._e()])])}}])})],1)])]),t("awsui-main",[t("div",{staticClass:"markWrapper"},[t("div",{staticClass:"treeHeader"},[t("div",{staticClass:"textWrapper"},[t("span",{staticClass:"title"},[e._v("附件密级")]),t("span",{staticClass:"desc"},[e._v(" 共有 "),t("span",{staticClass:"red"},[e._v(e._s(e.upFileUnMark.length))]),e._v(" 个待标密文件 ")])]),t("div",{staticClass:"button"},[t("awsui-button",{staticClass:"button-general-color",staticStyle:{height:"36px",margin:"0","font-size":"14px"},attrs:{type:"primary"},on:{click:e.showMark}},[e._v(" 快速定位 ")])],1)]),e.upFileTable.length<=0&&e.shapeTable.length<=0?t("div",{staticClass:"treeMain noData"},[t("div",{staticClass:"wrapper"},[t("div",{staticStyle:{"text-align":"center"}},[t("span",[t("i",{staticClass:"iconfont",staticStyle:{color:"#c2c2c2","font-size":"60px"}},[e._v(" ")])]),t("p",{staticClass:"text-general-color",staticStyle:{margin:"15px 0"}},[e._v(" 暂无未标定密级文件 ")])])])]):t("div",{staticClass:"fileWrapper"},[e.upFileTable.length>0?t("div",[t("div",{staticClass:"title font16"},[e._v("文件密级")]),t("div",{staticClass:"fileList"},[t("ul",e._l(e.upFileTable,(function(a,o){return t("li",{key:a.id,style:{cursor:-1===a.securityLevel?"pointer":"default"},on:{click:function(t){return e.showMarkDialog(a,o,"upfile")}}},[t("span",[t("i",{staticClass:"awsui-iconfont"},[e._v(" ")]),t("span",[e._v(e._s(a.fileName))]),-1===a.securityLevel?t("span",{staticClass:"font12 red ml12"},[e._v(" 未标密 ")]):t("span",{staticClass:"font12 blue ml12"},[e._v(e._s(a.securityLevel))])])])})),0)])]):e._e(),e.shapeTable.length>0?t("div",{staticClass:"mt1rem"},[t("div",{staticClass:"title font16"},[e._v("形状密级")]),t("div",{staticClass:"fileList"},[t("ul",e._l(e.shapeTable,(function(a,o){return t("li",{key:a.id,on:{click:function(t){return e.showMarkDialog(a,o,"shape")}}},[t("span",[t("i",{staticClass:"awsui-iconfont"},[e._v(" ")]),t("span",[e._v(e._s(a.fileName))]),-1===a.securityLevel?t("span",{staticClass:"font12 red ml12"},[e._v(" 未标密 ")]):t("span",{staticClass:"font12 blue ml12"},[e._v(e._s(a.securityLevel))])])])})),0)])]):e._e()])])]),t("awsui-dialog",{attrs:{title:"密级标定",visible:e.securityVisible,border:!1,"append-to-body":"",width:"500px"},on:{"update:visible":function(t){e.securityVisible=t}}},[t("div",{staticStyle:{"max-height":"500px","overflow-y":"auto"}},[t("awsui-form",{ref:"securityDialog",attrs:{"label-width":"200px",id:"securityDialog",rules:e.securityRules,model:e.securityForm}},[t("awsui-form-item",{attrs:{label:e.securityForm.name,prop:"securityLevel"}},[t("awsui-select",{staticStyle:{width:"70%"},attrs:{options:e.securityOptions},model:{value:e.securityForm.securityLevel,callback:function(t){e.$set(e.securityForm,"securityLevel",t)},expression:"securityForm.securityLevel"}})],1)],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{attrs:{type:"primary"},on:{click:e.securityMark}},[e._v("确定")]),t("awsui-button",{on:{click:function(t){e.securityVisible=!1}}},[e._v("取 消")])],1)])],1)},z=[],V={name:"RepositoryMark",data(){var e=(e,t,a)=>{void 0===t?a(new Error("请选择文件密级")):a()};return{treeProps:{value:"id",label:"name",isLeaf:"leaf"},headerHeight:"30px",securityVisible:!1,securityRules:{securityLevel:[{required:!0,trigger:"change",validator:e,type:"number"}]},securityForm:{},securityOptions:[],securityList:{},upFileTable:[],shapeTable:[],fileUnMarkNum:-1,upFileUnMark:[],pl_uuid:"",resolveFun:[],path:[],pid:""}},computed:{mainHeight(){return parseInt(this.$store.getters.getTopMainHeightFn)-parseInt(this.headerHeight)+"px"}},watch:{securityVisible(e,t){e||(this.securityForm={})}},created(){},mounted(){},methods:{loadUpfile(e){this.pl_uuid=e;const t=this,a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_upfile_load_all",pl_uuid:e,type:"file",wsId:t.$store.getters.getWsIdFn,teamId:t.$store.getters.getTeamIdFn}};u["a"].post(a).then((function(e){if("ok"==e.result){t.upFileUnMark=[],t.securityList=e.data.securityList,t.securityOptions=[],Object.keys(t.securityList).map(e=>{let a={value:e,label:t.securityList[e]};t.securityOptions.push(a)});const a=e.data.upfileList;let o=[];for(let s=0;s<a.length;s++){const i=a[s];-1==i.securityLevel&&t.upFileUnMark.push(i);const r={id:i.uuid,fileName:i.fileName,securityLevel:-1==i.securityLevel?-1:e.data.securityList[i.securityLevel]};o.push(r)}t.upFileTable=o;let i=e.data.shapeList;o=[];for(let s=0;s<i.length;s++){let a=i[s];-1==a.securityLevel&&t.upFileUnMark.push(a);const r={id:a.uuid,fileName:a.fileName,securityLevel:-1==a.securityLevel?-1:e.data.securityList[a.securityLevel]};o.push(r)}if(t.shapeTable=o,0==t.upFileUnMark.length){const e=t.$refs.tree;let a=e.getNode(t.pl_uuid);a.data.isUpfileUnmark=!1}}})).catch(e=>{console.log(e)})},quickMark(){const e=this,t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_upfile_unmark_path",wsId:e.$store.getters.getWsIdFn,teamId:e.$store.getters.getTeamIdFn}};u["a"].post(t).then((function(t){if("ok"==t.result)if(e.path=[],e.pid="",0==t.data.path.length)e.$message({message:"已全部标定密级",type:"success"});else{e.path=t.data.path;for(let t=0;t<e.path.length;t++){const a=e.$refs.tree,o=a.getNode(e.path[t]);if(null!=o){o.expand();let i=e.path.indexOf(e.path[t]);-1!=i&&(e.pid=e.path[i],e.path.splice(i,1),t--),0==e.path.length&&(a.setCurrentKey(e.pid),e.loadUpfile(e.pid),-1!=e.fileUnMarkNum&&e.showMarkDialog(o.data,-1,"file"))}}const a=e.$refs.tree,o=a.getNode(e.pid);o.expand()}})).catch(e=>{console.log(e)})},showMark(){if(this.upFileUnMark.length>0){let e=this.upFileUnMark[0],t=[];t="f"===e.type?this.upFileTable:this.shapeTable;for(let a=0;a<t.length;a++)if(e.uuid===t[a].id){"f"===e.type?this.showMarkDialog(e,a,"upfile"):this.showMarkDialog(e,a,"shape");break}}else this.$message({message:"暂无可标定密级文件",type:"success"})},showMarkDialog(e,t,a){-1===e.securityLevel&&(this.securityVisible=!0,this.securityForm.index=t,this.securityForm.name=void 0==e.fileName?e.name:e.fileName,this.securityForm.type=a,this.securityForm.node=e)},securityMark(){const e=this;let t=this.securityForm.node;this.$refs.securityDialog.validate(a=>{if(a)if("file"==this.securityForm.type){const a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_file_security_level_update",uuid:t.id,securityLevel:e.securityForm.securityLevel}};u["a"].post(a).then((function(t){if(e.securityVisible=!1,"ok"==t.result){e.loadUpfile(e.pl_uuid);let t=e.securityList[e.securityForm.securityLevel],a=e.$refs.tree.getNode(e.pl_uuid);a.data.securityLevelName=t,e.fileUnMarkNum--,e.$message({message:"密级标定成功",type:"success"})}})).catch(t=>{console.log(t),e.securityVisible=!1,e.$message.error("密级标定失败")})}else{const a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_processlevel_upfile_security_level_update",uuid:void 0==t.id?t.uuid:t.id,securityLevel:e.securityForm.securityLevel}};u["a"].post(a).then((function(t){e.securityVisible=!1,"ok"==t.result&&(e.loadUpfile(e.pl_uuid),e.$message({message:"密级标定成功",type:"success"}))})).catch(t=>{console.log(t),e.securityVisible=!1,e.$message.error("密级标定失败")})}})},openNode(e,t,a){this.loadUpfile(t.data.id)},expandNode(e,t,a){},closeNode(e,t,a){},loadNode(e,t){const a=this,o={url:"jd",data:{}};o.data.wsId=a.$store.getters.getWsIdFn,o.data.teamId=a.$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,u["a"].post(o).then((function(i){if("ok"==i.result){if(t(i.data),a.$nextTick(()=>{if(a.path.length>0){a.pid=a.path[0];const e=a.$refs.tree,t=e.getNode(a.path[0]);null!=t&&(t.expand(),a.path.splice(0,1)),0==a.path.length&&(e.setCurrentKey(a.pid),a.loadUpfile(a.pid),-1!=a.fileUnMarkNum&&a.showMarkDialog(t.data,-1,"file"))}}),0==e.level&&i.data.length>0){const e=a.$refs.tree;e.getNode(i.data[0].id).expand(),setTimeout((function(){const t=e.getNode(i.data[0].id).childNodes[0];null!=t&&t.expand()}),500)}if(i.data.length>0){let e=i.data[0];void 0!=e.isFileSecurity&&e.isFileSecurity&&-1==a.fileUnMarkNum&&a.getUnmarkFileNum(o.data.wsId,o.data.teamId)}}})).catch(e=>{console.log(e)})},getUnmarkFileNum(e,t){let a=this;const o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_file_unmark_num_query",wsId:e,teamId:t}};u["a"].post(o).then((function(e){"ok"==e.result&&(a.fileUnMarkNum=e.data.unmarkFileNum)})).catch(e=>{console.log(e),a.securityVisible=!1,a.$message.error("获取未标密文件失败")})}}},B=V,E=(a("b694"),Object(g["a"])(B,j,z,!1,null,"a3e13d60",null)),Q=E.exports,W=function(){var e=this,t=e._self._c;return t("el-container",{attrs:{id:"recycle"}},[t("el-header",{attrs:{height:e.headerHeight}},[t("el-row",{style:{"line-height":e.headerHeight}},[t("el-col",{attrs:{span:24}},[t("div",{staticStyle:{display:"inline-block",float:"left",width:"150px"}},[t("div",{staticClass:"text-general-color",staticStyle:{"padding-left":"20px","text-align":"left","vertical-align":"middle",display:"table-cell",width:"100%",height:"36px"}},[e._v(" 共有 "),t("span",{staticStyle:{color:"red"}},[e._v(e._s(e.totalCount))]),e._v(" 条数据 ")])]),t("div",{staticStyle:{display:"inline-block",float:"right",width:"220px","padding-right":"20px"}},[t("el-input",{attrs:{placeholder:"搜索","prefix-icon":"el-icon-search",size:"small",clearable:""},on:{input:e.searchProcessList},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}})],1)])],1)],1),t("el-main",[t("el-table",{ref:"table",attrs:{id:"table",data:e.tableData,size:"medium",height:e.tableHeight,"cell-class-name":e.cellClass},on:{"cell-mouse-enter":e.enterRow,"cell-mouse-leave":e.leaveRow,"selection-change":e.handleSelectionChange}},[t("el-table-column",{attrs:{type:"selection",width:"66",align:"center"}}),t("el-table-column",{attrs:{prop:"name",label:"文件名称","min-width":"250"}}),t("el-table-column",{attrs:{prop:"user",label:"操作用户",width:"200"}}),t("el-table-column",{attrs:{prop:"date",label:"删除时间",width:"170"}}),t("el-table-column",{attrs:{prop:"operate",label:"操作",width:"200",align:"center"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("div",{ref:a.row.id,staticClass:"operate-icon-display"},[t("el-tooltip",{staticClass:"item",attrs:{content:"还原",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"awsui-iconfont",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.recoverFiles(a.row.id)}}},[e._v("")])]),t("el-tooltip",{staticClass:"item",attrs:{content:"删除",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"awsui-iconfont",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.removeFiles(a.row.id)}}},[e._v("")])])],1)]}}])})],1)],1),t("el-footer",{directives:[{name:"show",rawName:"v-show",value:e.showFooter,expression:"showFooter"}],attrs:{height:e.footerHeight}},[t("div",[t("div",{staticStyle:{padding:"8px"}},[t("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"100px"},attrs:{type:"primary"},on:{click:function(t){return e.recoverFiles()}}},[e._v("还原")]),t("awsui-button",{staticClass:"button-general-color-reverse2",staticStyle:{width:"100px"},attrs:{plain:""},on:{click:function(t){return e.removeFiles()}}},[e._v("删除")]),t("awsui-button",{staticClass:"button-general-color-reverse3",staticStyle:{width:"100px"},attrs:{plain:""},on:{click:e.closeFooter}},[e._v("取消")])],1)])])],1)},J=[],K={name:"Recycle",data(){return{headerHeight:"40px",tableHeight:parseInt(this.$store.getters.getTopMainHeightFn)-40+"px",footerHeight:"45px",totalCount:0,showFooter:!1,searchInput:"",multipleSelection:[],tableData:[],totalCount:"?",currentPage:0,pageStep:0,rowHeight:45}},mounted(){0==this.currentPage&&this.searchProcessList(),this.scorllBottomEvent()},methods:{initPageCount(){const e=this,t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_recycle_header_query",wsId:this.$store.getters.getWsIdFn,teamId:this.$store.getters.getTeamIdFn,searchInput:this.searchInput?this.searchInput.trim():""}};u["a"].post(t).then((function(t){"ok"==t.result&&(e.totalCount=t.data,e.currentPage=0,e.pageStep=Math.ceil(parseInt(e.tableHeight)/e.rowHeight)+5,e.loadData())})).catch(e=>{console.log(e)})},loadData(){const e=this;if(e.currentPage<Math.ceil(e.totalCount/e.pageStep)){const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_recycle_data_query",wsId:this.$store.getters.getWsIdFn,teamId:this.$store.getters.getTeamIdFn,currentPage:e.currentPage,pageStep:e.pageStep,searchInput:this.searchInput?this.searchInput.trim():""}};u["a"].post(t).then((function(t){if("ok"==t.result){let a=t.data;for(let e=0;e<a.length;e++)a[e].rowChecked=!1;e.tableData=e.tableData.concat(a),e.currentPage++}})).catch(e=>{console.log(e)})}},searchProcessList(){this.$refs.table.bodyWrapper.scrollTop=0,this.tableData=[],this.multipleSelection=[],this.initPageCount()},initTableHeight(){this.showFooter?this.tableHeight=parseInt(this.$store.getters.getTopMainHeightFn)-parseInt(this.headerHeight)-parseInt(this.footerHeight)+"px":this.tableHeight=parseInt(this.$store.getters.getTopMainHeightFn)-parseInt(this.headerHeight)+"px"},handleSelectionChange(e){this.multipleSelection=[];for(let t=0;t<e.length;t++)this.multipleSelection.push(e[t].id);if(e.length>0){const t=[];for(let a=0;a<e.length;a++){const o=e[a];t.push(o.id)}for(let e=0;e<this.tableData.length;e++){const a=this.tableData[e].id;-1==t.indexOf(a)?(this.tableData[e].rowChecked=!1,this.hideRowCheckbox(this.$refs[a])):(this.tableData[e].rowChecked=!0,this.showRowCheckbox(this.$refs[a]))}this.showFooter=!0}else{for(let e=0;e<this.tableData.length;e++)this.tableData[e].rowChecked=!1,this.hideRowCheckbox(this.$refs[this.tableData[e].id]);this.showFooter=!1}this.initTableHeight()},cellClass(e){if(!e.row.rowChecked&&0===e.columnIndex)return"row-checkbox-hide"},hideRowCheckbox(e){const t=Object(p["a"])(e,"TR"),a=t.firstChild;a.classList.add("row-checkbox-hide")},showRowCheckbox(e){const t=Object(p["a"])(e,"TR"),a=t.firstChild;a.classList.remove("row-checkbox-hide")},enterRow(e,t,a,o){const i=Object(p["a"])(a,"TR"),s=i.firstChild;s.classList.remove("row-checkbox-hide")},leaveRow(e,t,a,o){if(e.rowChecked){const e=Object(p["a"])(a,"TR"),t=e.firstChild;t.classList.remove("row-checkbox-hide")}else{const e=Object(p["a"])(a,"TR"),t=e.firstChild;t.classList.add("row-checkbox-hide")}},closeFooter(){this.$refs.table.clearSelection()},recoverFiles(e){const t=this;t.$confirm("确定要还原吗?","提示",{confirmButtonText:"确定",confirmButtonClass:"button-general-color",cancelButtonText:"取消",type:"warning"}).then(()=>{let a=[];if(e)a.push("'"+e+"'");else for(let e=0;e<t.multipleSelection.length;e++)a.push("'"+t.multipleSelection[e]+"'");const o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_recycle_restore",removeIds:a.join(",")}};u["a"].post(o).then((function(e){"ok"==e.result?(t.$message({message:"还原成功",type:"success"}),t.searchProcessList()):t.$message(e.msg)})).catch(e=>{console.log(e)})}).catch(()=>{})},removeFiles(e){const t=this;t.$confirm("回收站中的数据删除后无法恢复,确定要删除吗?","提示",{confirmButtonText:"确定",confirmButtonClass:"button-general-color",cancelButtonText:"取消",type:"warning"}).then(()=>{let a=[];if(e)a.push("'"+e+"'");else for(let e=0;e<t.multipleSelection.length;e++)a.push("'"+t.multipleSelection[e]+"'");const o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_recycle_delete",removeIds:a.join(",")}};u["a"].post(o).then((function(e){"ok"==e.result?(t.$message({message:"删除成功",type:"success"}),t.searchProcessList()):t.$message(e.msg)})).catch(e=>{console.log(e)})}).catch(()=>{})},scorllBottomEvent(){const e=this;let t=document.querySelector(".el-table__body-wrapper");t.addEventListener("scroll",(function(){const a=t.scrollHeight-t.scrollTop-t.clientHeight;a<=0&&e.loadData()}))}},computed:{listenTopMainHeight(){return this.$store.getters.getTopMainHeightFn}},watch:{listenTopMainHeight:function(e,t){this.tableHeight=parseInt(e)-parseInt(this.headerHeight)+"px",this.searchProcessList()}}},G=K,Y=(a("fa2b"),Object(g["a"])(G,W,J,!1,null,"3db4f66f",null)),X=Y.exports,Z=function(){var e=this,t=e._self._c;return t("el-container",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"text-general-color",attrs:{id:"method"}},[t("el-header",{style:{height:e.headerHeight}},[t("el-row",{style:{height:e.headerHeight}},[t("el-col",{attrs:{span:8}},[t("div",{staticStyle:{"vertical-align":"middle"},style:{height:e.headerHeight,"line-height":e.headerHeight}},[t("span",[e._v("建模方法: ")]),t("el-dropdown",{attrs:{placement:"bottom-end"}},[t("span",{staticClass:"el-dropdown-link"},[t("span",{staticClass:"text-linker-color",staticStyle:{cursor:"pointer"}},[e._v(e._s(e.activeMethod.name))]),t("i",{staticClass:"awsui-iconfont",staticStyle:{"font-size":"12px",cursor:"pointer"}},[e._v("")])]),t("el-dropdown-menu",{staticStyle:{"min-width":"200px","max-height":"500px","overflow-y":"auto"},attrs:{slot:"dropdown"},slot:"dropdown"},[e._l(e.methodData,(function(a){return["group"==a.type?t("el-dropdown-item",{staticStyle:{"font-size":"12px",color:"#000",height:"80%"},attrs:{disabled:!0}},[t("b",[e._v(e._s(a.name))])]):t("el-dropdown-item",{nativeOn:{click:function(t){return e.changeMethod(a.id,a.name)}}},[e._v(e._s(a.name))])]})),t("el-dropdown-item",{staticClass:"text-linker-color",attrs:{divided:""},nativeOn:{click:function(t){return e.createMethod()}}},[t("i",{staticClass:"awsui-iconfont",staticStyle:{"font-size":"12px"}},[e._v("")]),e._v("新增建模方法")])],2)],1)],1)]),t("el-col",{attrs:{span:8}},[t("div",{staticStyle:{"text-align":"center","vertical-align":"middle"},style:{height:e.headerHeight,"line-height":e.headerHeight}},[t("div",{class:{"button-general-color":"methodObject"==e.activeType,"text-color-white":"methodObject"==e.activeType},staticStyle:{display:"inline-block","border-radius":"2px",padding:"0 15px",width:"70px",height:"28px","line-height":"28px","vertical-align":"middle",cursor:"pointer"},on:{click:function(t){return e.changeMethodType("methodObject")}}},[t("span",[e._v("建模对象")])]),t("div",{class:{"button-general-color":"methodAttribute"==e.activeType,"text-color-white":"methodAttribute"==e.activeType},staticStyle:{display:"inline-block","border-radius":"2px",margin:"0 20px",width:"70px",padding:"0 15px",height:"28px","line-height":"28px","vertical-align":"middle",cursor:"pointer"},on:{click:function(t){return e.changeMethodType("methodAttribute")}}},[t("span",[e._v("数据特性")])]),t("div",{class:{"button-general-color":"methodLink"==e.activeType,"text-color-white":"methodLink"==e.activeType},staticStyle:{display:"inline-block","border-radius":"2px",padding:"0 15px",width:"70px",height:"28px","line-height":"28px","vertical-align":"middle",cursor:"pointer"},on:{click:function(t){return e.changeMethodType("methodLink")}}},[t("span",[e._v("连线关系")])])])]),t("el-col",{attrs:{span:8}},["methodObject"==e.activeType?t("div",{staticStyle:{"text-align":"right","vertical-align":"middle"},style:{height:e.headerHeight,"line-height":e.headerHeight}},[t("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入形状名称进行检索","prefix-icon":"el-icon-search",size:"small",clearable:""},on:{input:function(t){return e.search()}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}})],1):e._e(),"methodAttribute"==e.activeType?t("div",{staticStyle:{"vertical-align":"middle","text-align":"right"},style:{height:e.headerHeight,"line-height":e.headerHeight}},[t("el-dropdown",{attrs:{placement:"bottom-start",trigger:"click"}},[t("span",{staticClass:"el-dropdown-link"},[t("span",{staticClass:"text-general-color",staticStyle:{cursor:"pointer"}},[e._v(e._s(e.methodAttribute.value.name))]),t("i",{staticClass:"awsui-iconfont",staticStyle:{"font-size":"12px",cursor:"pointer"}},[e._v("")])]),t("el-dropdown-menu",{staticStyle:{"min-width":"120px","max-height":"500px","overflow-y":"auto"},attrs:{slot:"dropdown"},slot:"dropdown"},[e._l(e.methodAttribute.opts,(function(a){return[t("el-dropdown-item",{staticClass:"el-dropdown-row",nativeOn:{click:function(t){return e.changeAttrScope(a)}}},[t("div",{staticStyle:{height:"100%",width:"100%","font-size":"14px"}},[e._v(e._s(a.name))])])]}))],2)],1)],1):e._e()])],1)],1),t("el-main",["methodObject"==e.activeType?t("MethodObject",{ref:"methodObject",attrs:{parentHeaderHeight:e.headerHeight,methodId:e.activeMethod.id,methodName:e.activeMethod.name,searchInput:e.searchInput}}):e._e(),"methodAttribute"==e.activeType?t("MethodAttribute",{ref:"methodObject",attrs:{parentHeaderHeight:e.headerHeight,methodId:e.activeMethod.id,methodName:e.activeMethod.name,searchInput:e.searchInput,methodDataType:e.methodAttribute.value.id}}):e._e(),"methodLink"==e.activeType?t("MethodLink",{ref:"methodLink",attrs:{parentHeaderHeight:e.headerHeight,methodId:e.activeMethod.id,methodName:e.activeMethod.name,searchInput:e.searchInput}}):e._e()],1)],1)},ee=[],te=function(){var e=this,t=e._self._c;return t("awsui-layout",{style:{height:e.mainHeight},attrs:{id:"methodAttribute"}},[t("awsui-aside",{staticClass:"attr-aside",attrs:{width:"280px"}},[t("div",{staticStyle:{height:"60px","line-height":"60px","text-align":"center"}},[t("awsui-button",{class:{"button-general-color":!e.createBtnDisabled},staticStyle:{width:"130px"},attrs:{disabled:e.createBtnDisabled,type:"primary"},on:{click:e.createAttrDefine}},[e._v("新建属性")])],1),t("div",[t("div",{staticStyle:{"border-bottom":"1px solid #F0F0F0"}})]),t("div",{style:{overflow:"auto",height:e.treeHeight}},[t("el-tree",{directives:[{name:"loading",rawName:"v-loading",value:e.tree.loading,expression:"tree.loading"}],ref:"tree",attrs:{"element-loading-text":e.tree.loadingText,data:e.tree.data,props:e.tree.props,"highlight-current":!0,"expand-on-click-node":!1,"node-key":"id","default-expanded-keys":e.tree.defaultExpandedKeys},on:{"node-click":e.handleNodeClick},scopedSlots:e._u([{key:"default",fn:function({node:a,data:o}){return t("span",{},[t("i",{staticClass:"awsui-iconfont tree-content-icon tree-content-icon-padding",style:{color:o.iconColor},domProps:{innerHTML:e._s(a.data.iconCode)}}),t("span",[e._v(e._s(a.label))]),"all"!=e.methodDataType&&"attr"==o.type?t("span",[t("i",{staticClass:"awsui-iconfont",style:{"margin-left":"3px","font-size":"13px",color:o.isUse?"#00CC00":"#DDDDDD"}},[e._v("")])]):e._e()])}}])},[e._v("' ")])],1)]),t("awsui-main",{staticStyle:{height:"100%",position:"relative"}},["all"==e.methodDataType?t("div",{key:e.key1},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{height:parseInt(e.mainHeight)-20+"px",data:e.tableData,"element-loading-text":e.loadingText,"row-style":{height:"50px"},"cell-style":{padding:"0px"}},on:{"cell-click":e.updateAttrDefine}},[t("el-table-column",{attrs:{prop:"no",label:"序号",width:"80",align:"center"}}),t("el-table-column",{attrs:{prop:"title",label:"属性名称",width:"180"}}),t("el-table-column",{attrs:{prop:"key",label:"属性代码",width:"180"}}),t("el-table-column",{attrs:{prop:"typeName",label:"属性类型",width:"180"}}),t("el-table-column",{attrs:{prop:"refName",label:"关联内容",width:"180"}}),t("el-table-column",{attrs:{prop:"groupPathName",label:"所属目录",width:"160"}}),t("el-table-column",{attrs:{prop:"value",label:"默认值",width:"120"}}),t("el-table-column",{attrs:{prop:"scopeName",label:"作用范围","min-width":"180"}}),t("el-table-column",{attrs:{prop:"readonly",label:"是否只读",width:"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("awsui-switch",{attrs:{"active-color":"#4E7FF9","inactive-color":"#E2E2E2",disabled:"relation"==a.row.type||"awsorg"==a.row.type},on:{change:function(t){return e.handleChangeReadonlyAndValid(a.row.id,a.row.title,a.row.readonly,a.row.isRequired,a.row.isValid)}},model:{value:a.row.readonly,callback:function(t){e.$set(a.row,"readonly",t)},expression:"scope.row.readonly"}})]}}],null,!1,3499774431)}),t("el-table-column",{attrs:{prop:"readonly",label:"是否必填",width:"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("awsui-switch",{attrs:{"active-color":"#4E7FF9","inactive-color":"#E2E2E2"},on:{change:function(t){return e.handleChangeReadonlyAndValid(a.row.id,a.row.title,a.row.readonly,a.row.isRequired,a.row.isValid)}},model:{value:a.row.isRequired,callback:function(t){e.$set(a.row,"isRequired",t)},expression:"scope.row.isRequired"}})]}}],null,!1,2606498229)}),t("el-table-column",{attrs:{prop:"isValid",label:"是否有效",width:"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("awsui-switch",{attrs:{"active-color":"#4E7FF9","inactive-color":"#E2E2E2"},on:{change:function(t){return e.handleChangeReadonlyAndValid(a.row.id,a.row.title,a.row.readonly,a.row.isRequired,a.row.isValid)}},model:{value:a.row.isValid,callback:function(t){e.$set(a.row,"isValid",t)},expression:"scope.row.isValid"}})]}}],null,!1,4096128202)}),t("el-table-column",{attrs:{prop:"operation",label:"操作",width:"50"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("div",{staticClass:"operate-icon-display"},[t("i",{staticClass:"el-icon-delete",staticStyle:{cursor:"pointer"},on:{click:function(t){return t.stopPropagation(),e.removeAttr(a.row.id,a.row.title)}}})])]}}],null,!1,3098370099)})],1)],1):e._e(),"file"==e.methodDataType?t("div",{key:e.key2,staticClass:"attr"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{"row-key":"id",height:parseInt(e.mainHeight)-20+"px","element-loading-text":e.loadingText,data:e.tableData,"row-style":{height:"50px"},"cell-style":{padding:"0px"}},on:{"cell-mouse-enter":e.handleAttrMouseEnter,"cell-mouse-leave":e.handleAttrMouseLeave}},[t("el-table-column",{attrs:{prop:"move",label:"",align:"center",width:"20"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("div",{staticClass:"operate-icon-display"},[t("p",{staticClass:"text-second-color"},[t("i",{staticClass:"awsui-iconfont",staticStyle:{display:"inline-block",cursor:"pointer"}},[e._v("")])])])]}}],null,!1,3152666534)}),t("el-table-column",{attrs:{prop:"no",label:"排序",width:"80",align:"center"}}),t("el-table-column",{attrs:{prop:"key",label:"属性代码",width:"180"}}),t("el-table-column",{attrs:{prop:"title",label:"属性名称(默认)",width:"180"}}),t("el-table-column",{attrs:{prop:"newTitle",label:"属性名称",width:"180"},scopedSlots:e._u([{key:"default",fn:function(a){return[a.row.isUpdate?t("awsui-input",{staticClass:"input-update-attr-name",attrs:{placeholder:"请输入新的属性名称"},on:{input:function(t){return e.updateAttrDbInfo(a.row.id,a.row.newTitle,a.row.sort)}},model:{value:a.row.newTitle,callback:function(t){e.$set(a.row,"newTitle",t)},expression:"scope.row.newTitle"}}):t("span",[e._v(e._s(a.row.newTitle))])]}}],null,!1,451367636)}),t("el-table-column",{attrs:{prop:"typeName",label:"属性类型",width:"180"}}),t("el-table-column",{attrs:{prop:"refName",label:"关联内容",width:"180"}}),t("el-table-column",{attrs:{prop:"value",label:"默认值",width:"150"}}),t("el-table-column",{attrs:{prop:"readonly",label:"只读",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.readonly?"是":"否")+" ")]}}],null,!1,2620266871)}),t("el-table-column",{attrs:{prop:"groupPathName",label:"所属目录",width:"160"}}),t("el-table-column",{attrs:{prop:"scopeName",label:"作用范围","min-width":"200"}}),"process.bpmn2"==e.methodId?t("el-table-column",{attrs:{prop:"bpmFileShow",label:"审批显示",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("awsui-switch",{attrs:{"active-color":"#4E7FF9","inactive-color":"#E2E2E2"},on:{change:function(t){return e.handleChangeBpmShow(a.row.id,a.row.title,a.row.bpmFileShow,"bpmFileShow")}},model:{value:a.row.bpmFileShow,callback:function(t){e.$set(a.row,"bpmFileShow",t)},expression:"scope.row.bpmFileShow"}})]}}],null,!1,3748162670)}):e._e()],1)],1):e._e(),"shape"==e.methodDataType?t("div",{key:e.key3,staticClass:"attr"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{"row-key":"id",height:parseInt(e.mainHeight)-20+"px","element-loading-text":e.loadingText,data:e.tableData,"row-style":{height:"50px"},"cell-style":{padding:"0px"}},on:{"cell-mouse-enter":e.handleAttrMouseEnter,"cell-mouse-leave":e.handleAttrMouseLeave}},[t("el-table-column",{attrs:{prop:"move",label:"",align:"center",width:"20"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("div",{staticClass:"operate-icon-display"},[t("p",{staticClass:"text-second-color"},[t("i",{staticClass:"awsui-iconfont",staticStyle:{display:"inline-block",cursor:"pointer"}},[e._v("")])])])]}}],null,!1,3152666534)}),t("el-table-column",{attrs:{prop:"no",label:"排序",width:"80",align:"center"}}),t("el-table-column",{attrs:{prop:"key",label:"属性代码",width:"180"}}),t("el-table-column",{attrs:{prop:"title",label:"属性名称(默认)",width:"180"}}),t("el-table-column",{attrs:{prop:"newTitle",label:"属性名称",width:"180"},scopedSlots:e._u([{key:"default",fn:function(a){return[a.row.isUpdate?t("awsui-input",{staticClass:"input-update-attr-name",attrs:{placeholder:"请输入新的属性名称"},on:{input:function(t){return e.updateAttrDbInfo(a.row.id,a.row.newTitle,a.row.sort)}},model:{value:a.row.newTitle,callback:function(t){e.$set(a.row,"newTitle",t)},expression:"scope.row.newTitle"}}):t("span",[e._v(e._s(a.row.newTitle))])]}}],null,!1,451367636)}),t("el-table-column",{attrs:{prop:"typeName",label:"属性类型",width:"180"}}),t("el-table-column",{attrs:{prop:"refName",label:"关联内容",width:"180"}}),t("el-table-column",{attrs:{prop:"value",label:"默认值",width:"120"}}),t("el-table-column",{attrs:{prop:"readonly",label:"只读",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.readonly?"是":"否")+" ")]}}],null,!1,2620266871)}),t("el-table-column",{attrs:{prop:"groupPathName",label:"所属目录",width:"160"}}),t("el-table-column",{attrs:{prop:"scopeName",label:"作用范围","min-width":"200"}}),"process.bpmn2"==e.methodId?t("el-table-column",{attrs:{prop:"bpmShapeShow",label:"审批显示",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("awsui-switch",{attrs:{"active-color":"#4E7FF9","inactive-color":"#E2E2E2"},on:{change:function(t){return e.handleChangeBpmShow(a.row.id,a.row.title,a.row.bpmShapeShow,"bpmShapeShow")}},model:{value:a.row.bpmShapeShow,callback:function(t){e.$set(a.row,"bpmShapeShow",t)},expression:"scope.row.bpmShapeShow"}})]}}],null,!1,1492585895)}):e._e()],1)],1):e._e()]),t("awsui-sidebar",{attrs:{title:e.drawer.title,"append-to-body":!1,"modal-append-to-body":!1,"destroy-on-close":!0,modal:!1,visible:e.drawer.visible,"before-close":e.handleDrawerClose},on:{"update:visible":function(t){return e.$set(e.drawer,"visible",t)}}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.drawer.loading,expression:"drawer.loading"}]},[t("div",{staticStyle:{"overflow-y":"auto",margin:"20px 0 20px 20px","padding-left":"10px"},attrs:{id:"drawerBody"}},[t("awsui-form",{ref:"attrForm",staticStyle:{"margin-right":"20px"},attrs:{model:e.attrForm,"label-position":"top",rules:e.rules}},[t("awsui-form-item",{attrs:{label:"属性代码",prop:"key"}},[t("awsui-input",{attrs:{disabled:!e.attrForm.isCreate,placeholder:"请输入属性代码,由数字、字母、下划线组成"},model:{value:e.attrForm.key,callback:function(t){e.$set(e.attrForm,"key",t)},expression:"attrForm.key"}})],1),t("awsui-form-item",{attrs:{label:"属性名称",prop:"title"}},[t("awsui-input",{attrs:{placeholder:"请输入属性名称"},model:{value:e.attrForm.title,callback:function(t){e.$set(e.attrForm,"title",t)},expression:"attrForm.title"}})],1),t("awsui-form-item",{attrs:{label:"所属目录"}},[t("awsui-select",{attrs:{options:e.attrForm.groupOpts},model:{value:e.attrForm.groupPath,callback:function(t){e.$set(e.attrForm,"groupPath",t)},expression:"attrForm.groupPath"}})],1),t("awsui-form-item",{attrs:{label:"类型"}},[t("awsui-select",{attrs:{disabled:!e.attrForm.isCreate,options:e.attrForm.typeOpts},on:{change:e.changeAttrType},model:{value:e.attrForm.type,callback:function(t){e.$set(e.attrForm,"type",t)},expression:"attrForm.type"}})],1),"table"==e.attrForm.type?[t("awsui-form-item",{attrs:{label:"表格列名1"}},[t("awsui-input",{attrs:{placeholder:"请输入列名1"},model:{value:e.attrForm.tableRef.firstColumn,callback:function(t){e.$set(e.attrForm.tableRef,"firstColumn",t)},expression:"attrForm.tableRef.firstColumn"}})],1),t("awsui-form-item",{attrs:{label:"表格列名2"}},[t("awsui-input",{attrs:{placeholder:"请输入列名2"},model:{value:e.attrForm.tableRef.secondColumn,callback:function(t){e.$set(e.attrForm.tableRef,"secondColumn",t)},expression:"attrForm.tableRef.secondColumn"}})],1)]:e._e(),t("awsui-form-item",{attrs:{label:"属性描述",prop:"desc"}},[t("awsui-input",{attrs:{placeholder:"请输入属性描述"},model:{value:e.attrForm.desc,callback:function(t){e.$set(e.attrForm,"desc",t)},expression:"attrForm.desc"}})],1),"relation"==e.attrForm.type?[t("awsui-form-item",{attrs:{label:"关联的建模方法"}},[t("awsui-select",{attrs:{options:e.attrForm.relationMethodScopeOpts,placeholder:"请选择建模分类或建模方法"},model:{value:e.attrForm.relationRef.method,callback:function(t){e.$set(e.attrForm.relationRef,"method",t)},expression:"attrForm.relationRef.method"}})],1),t("awsui-form-item",{attrs:{label:"关联范围"}},[t("awsui-select",{attrs:{options:e.attrForm.relationTypeOpts,placeholder:"请选择关联范围"},model:{value:e.attrForm.relationRef.type,callback:function(t){e.$set(e.attrForm.relationRef,"type",t)},expression:"attrForm.relationRef.type"}})],1),t("awsui-form-item",{attrs:{label:"是否多选"}},[t("awsui-select",{attrs:{options:e.attrForm.multipleOpts,placeholder:"请选择关联范围"},model:{value:e.attrForm.relationRef.multiple,callback:function(t){e.$set(e.attrForm.relationRef,"multiple",t)},expression:"attrForm.relationRef.multiple"}})],1)]:e._e(),"awsorg"==e.attrForm.type?[t("awsui-form-item",{attrs:{label:"BPM组织架构范围选择"}},[t("awsui-select",{attrs:{multiple:"",options:e.attrForm.awsorgScopeOpts,multiple:"",placeholder:"请选择组织架构范围"},model:{value:e.attrForm.awsorgRef.scope,callback:function(t){e.$set(e.attrForm.awsorgRef,"scope",t)},expression:"attrForm.awsorgRef.scope"}})],1),t("awsui-form-item",{attrs:{label:"是否多选"}},[t("awsui-select",{attrs:{options:e.attrForm.multipleOpts,placeholder:"请选择关联范围"},model:{value:e.attrForm.awsorgRef.multiple,callback:function(t){e.$set(e.attrForm.awsorgRef,"multiple",t)},expression:"attrForm.awsorgRef.multiple"}})],1)]:e._e(),"select"==e.attrForm.type?[t("awsui-form-item",{attrs:{label:"选择范围"}},[t("awsui-input",{attrs:{placeholder:"请输入选择范围,例如选项1,选项2,选项3"},model:{value:e.attrForm.ref,callback:function(t){e.$set(e.attrForm,"ref",t)},expression:"attrForm.ref"}})],1)]:e._e(),"select_m"==e.attrForm.type?[t("awsui-form-item",{attrs:{label:"选择范围"}},[t("awsui-input",{attrs:{placeholder:"请输入选择范围,例如选项1,选项2,选项3"},model:{value:e.attrForm.ref,callback:function(t){e.$set(e.attrForm,"ref",t)},expression:"attrForm.ref"}})],1)]:e._e(),"string"==e.attrForm.type||"textarea"==e.attrForm.type?[t("awsui-form-item",{attrs:{label:"默认值",prop:"value"}},[t("awsui-input",{attrs:{placeholder:"请输入属性默认值"},model:{value:e.attrForm.value,callback:function(t){e.$set(e.attrForm,"value",t)},expression:"attrForm.value"}})],1)]:e._e(),t("awsui-form-item",{attrs:{label:""}},[t("div",{staticClass:"div-button-small",style:{"border-right":"0px",cursor:e.readOnlyCursor?"not-allowed":"","background-color":e.attrForm.readonly?"#eef5fe":"",color:e.attrForm.readonly?"#4E7FF9":""},on:{click:function(t){!e.readOnlyCursor&&e.changeReadOnly()}}},[t("span",[e._v("只读")])]),t("div",{staticClass:"div-button-small",style:{"border-right":"0px","background-color":e.attrForm.isRequired?"#eef5fe":"",color:e.attrForm.isRequired?"#4E7FF9":""},on:{click:function(t){e.attrForm.isRequired=!e.attrForm.isRequired}}},[t("span",[e._v("必填")])]),t("div",{staticClass:"div-button-small",style:{"background-color":e.attrForm.isValid?"#eef5fe":"",color:e.attrForm.isValid?"#4E7FF9":""},on:{click:function(t){e.attrForm.isValid=!e.attrForm.isValid}}},[t("span",[e._v("有效")])])]),t("awsui-form-item",{attrs:{label:"作用范围"}},[t("div",{staticClass:"div-button",style:{"border-right":"0px","background-color":e.attrForm.fileScope?"#eef5fe":"",color:e.attrForm.fileScope?"#4E7FF9":""},on:{click:function(t){e.attrForm.fileScope=!e.attrForm.fileScope}}},[t("span",[e._v("文件属性")])]),t("div",{staticClass:"div-button",style:{"background-color":e.attrForm.shapeScope?"#eef5fe":"",color:e.attrForm.shapeScope?"#4E7FF9":""},on:{click:function(t){e.attrForm.shapeScope=!e.attrForm.shapeScope}}},[t("span",[e._v("形状属性")])])]),e.attrForm.shapeScope?t("awsui-form-item",{attrs:{label:"形状选择"}},[t("awsui-select",{attrs:{placeholder:"空值则等同于全选",clearable:"",multiple:"",options:e.attrForm.shapeOpts},model:{value:e.attrForm.shapeScopeValue,callback:function(t){e.$set(e.attrForm,"shapeScopeValue",t)},expression:"attrForm.shapeScopeValue"}})],1):e._e()],2)],1),t("div",{staticClass:"drawer-footer",style:{"background-color":"#F2F2F2",height:e.drawer.footerHeight}},[t("div",{staticStyle:{float:"right",position:"relative",top:"9px"},attrs:{id:"drawerFooter"}},[t("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"80px"},attrs:{size:"large",type:"primary",disabled:e.drawer.buttonDisabled},on:{click:e.saveDrawerData}},[e._v("保存")]),t("awsui-button",{staticStyle:{width:"80px"},attrs:{size:"large"},on:{click:e.closeDrawer}},[e._v("取消")])],1)])])])],1)},ae=[],oe=a("2480"),ie={name:"MethodAttribute",components:{Sortable:oe["a"]},props:{parentHeaderHeight:{type:String,default:"0px"},methodId:{type:String,default:""},methodName:{type:String,default:""},searchInput:{type:String,default:""},methodDataType:{type:String,default:"all"}},data(){return{readOnlyCursor:!1,key1:Math.random(),key2:Math.random(),key3:Math.random(),createBtnDisabled:!1,mainHeight:parseInt(this.$store.getters.getTopMainHeightFn)-parseInt(this.parentHeaderHeight)+"px",treeHeight:parseInt(this.$store.getters.getTopMainHeightFn)-parseInt(this.parentHeaderHeight)-61+"px",loading:!1,loadingText:"加载中",tree:{data:[],defaultExpandedKeys:[],props:{children:"children",label:"label"},loading:!1,loadingText:"加载中"},tableData:[],tableDataTemp:[],nodeData:null,drawer:{title:"新增属性",visible:!1,loading:!1,footerHeight:"50px",buttonDisabled:!1},attrForm:{isCreate:!0,id:"",key:"",title:"",newTitle:"",type:"",desc:"",ref:"",relationRef:{method:"",type:"",multiple:"false"},awsorgRef:{scope:[],multiple:"false"},tableRef:{firstColumn:"",secondColumn:""},value:"",readonly:!1,isRequired:!1,isValid:!0,groupPathName:"",groupPath:"",fileScope:!1,shapeScope:!1,shapeScopeValue:[],scopeName:"",sort:"",bpmFileShow:!1,bpmShapeShow:!1,typeOpts:[],relationMethodScopeOpts:[],relationTypeOpts:[],awsorgScopeOpts:[],multipleOpts:[{label:"多选",value:"true"},{label:"单选",value:"false"}],groupOpts:[],shapeOpts:[]},rules:{key:[{required:!0,message:"请输入属性代码",trigger:"blur"},{min:1,max:255,message:"长度在 255 个字符以内",trigger:"blur"}],title:[{required:!0,message:"请输入属性名称",trigger:"blur"},{min:1,max:255,message:"长度在 255 个字符以内",trigger:"blur"}],value:[{required:!1,message:"请输入属性名称",trigger:"blur"},{min:1,max:255,message:"长度在 255 个字符以内",trigger:"blur"}],desc:[{required:!0,message:"请输入属性描述",trigger:"blur"},{min:1,max:20,message:"长度在 20 个字符以内",trigger:"blur"}]}}},mounted(){document.body.ondrop=function(e){e.preventDefault(),e.stopPropagation()},this.initTreeData()},methods:{initTreeData(){const e=this;e.tree.loadingText="加载中",e.tree.loading=!0;const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_manage_method_attr_tree_data_query",methodId:e.methodId,wsId:e.$store.getters.getWsIdFn}};u["a"].post(t).then((function(t){if(e.tree.loading=!1,"ok"==t.result){t.data.length>0&&e.tree.defaultExpandedKeys.push(t.data[0].id);for(let e=0;e<t.data.length;e++)if(t.data.children)for(let a=0;a<t.data.children.length;a++)t.data[e].children[a].isUse=!1;e.tree.data=t.data,e.initTableData()}else alert("请求响应错误")})).catch(t=>{console.log(t),e.loading=!1})},initTableData(){const e=this;e.tableData=[],this.tableDataTemp=[],e.loadingText="加载中",e.loading=!0;const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_manage_method_attr_table_data_query",methodId:e.methodId,wsId:e.$store.getters.getWsIdFn,type:e.methodDataType}};u["a"].post(t).then((function(t){if(e.loading=!1,"ok"==t.result){const a=[];for(let o=0;o<t.data.length;o++)t.data[o].randomNum=Math.random(),"all"!=e.methodDataType&&(t.data[o].isUpdate=!1,t.data[o].isUse&&a.push(t.data[o].id));for(let t=0;t<e.tree.data.length;t++)if(e.tree.data[t].children)for(let o=0;o<e.tree.data[t].children.length;o++)a.indexOf(e.tree.data[t].children[o].id)>-1?e.tree.data[t].children[o].isUse=!0:e.tree.data[t].children[o].isUse=!1;e.tableDataTemp=t.data,e.search(),"all"!=e.methodDataType&&e.$nextTick((function(){e.rowDrop()}))}else alert("请求响应错误")})).catch(t=>{console.log(t),e.loading=!1})},search(){if(null==this.nodeData){const e=JSON.parse(JSON.stringify(this.tableDataTemp));for(let t=0;t<e.length;t++)e[t].no=t+1;this.tableData=e}else{const e=[];let t=1;if("group"==this.nodeData.type){for(let a=0;a<this.tableDataTemp.length;a++)if(this.tableDataTemp[a].groupPath==this.nodeData.id){const o=JSON.parse(JSON.stringify(this.tableDataTemp[a]));o.no=t++,e.push(o)}}else for(let a=0;a<this.tableDataTemp.length;a++)if(this.tableDataTemp[a].key==this.nodeData.id){const o=JSON.parse(JSON.stringify(this.tableDataTemp[a]));o.no=t++,e.push(o);break}this.tableData=e}},rowDrop(){const e=document.querySelector(".el-table__body-wrapper tbody"),t=this;oe["a"].create(e,{onEnd({newIndex:e,oldIndex:a}){if(e!=a){const o=t.tableData[a].id;let i="",s="";e-a==1?(i=t.tableData[e].id,s="bottom"):a-e==1?(i=t.tableData[e].id,s="top"):0==e?(i=t.tableData[0].id,s="top"):e==t.tableData.length-1?(i=t.tableData[t.tableData.length-1].id,s="bottom"):(i=t.tableData[e].id,s="top");let r=null;for(let e=0;e<t.tableDataTemp.length;e++)if(t.tableDataTemp[e].id==o){r=t.tableDataTemp.splice(e,1)[0];break}for(let e=0;e<t.tableDataTemp.length;e++)if(t.tableDataTemp[e].id==i){if("top"==s){t.tableDataTemp.splice(e,0,r);break}if("bottom"==s){t.tableDataTemp.splice(e+1,0,r);break}}const l=[];for(let e=0;e<t.tableDataTemp.length;e++)l.push({id:t.tableDataTemp[e].id,newTitle:t.tableDataTemp[e].newTitle});const n={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_manage_method_attr_file_and_shape_sort_update",methodId:t.methodId,wsId:t.$store.getters.getWsIdFn,type:t.methodDataType,attrs:JSON.stringify(l)}};u["a"].post(n).then((function(e){"ok"==e.result?(t.$message({message:"移动成功",type:"success"}),t.search()):t.$message.error(e.msg)})).catch(e=>{console.log(e)})}}})},clearDrawerForm(){this.attrForm={isCreate:!0,id:"",key:"",title:"",newTitle:"",type:"",desc:"",ref:"",relationRef:{method:"",type:"",multiple:"false"},awsorgRef:{scope:[],multiple:"false"},tableRef:{firstColumn:"",secondColumn:""},value:"",readonly:!1,isRequired:!1,isValid:!0,groupPathName:"",groupPath:"",fileScope:!1,shapeScope:!1,shapeScopeValue:[],scopeName:"",sort:"",bpmFileShow:!1,bpmShapeShow:!1,typeOpts:[],relationMethodScopeOpts:[],relationTypeOpts:[],awsorgScopeOpts:[],multipleOpts:[{label:"多选",value:"true"},{label:"单选",value:"false"}],groupOpts:[],shapeOpts:[]}},closeDrawer(){this.drawer.visible=!1},handleDrawerClose(e){e()},initDrawer(e){const t=this;t.drawer.buttonDisabled=!1,t.drawer.title=e,t.drawer.visible=!0,t.$nextTick((function(){t.initDrawerBodyHeight()}))},createAttrDefine(){this.clearDrawerForm();const e=this.attrForm;e.isCreate=!0,this.initDrawer("新增属性"),this.getAttrOptsParam("")},updateAttrDefine(e,t,a,o){if("readonly"==t.property||"isValid"==t.property)return!1;this.clearDrawerForm();const i=this.attrForm;i.isCreate=!1,i.id=e.id,i.key=e.key,i.title=e.title,i.newTitle=e.newTitle,i.type=e.type,i.ref=e.ref,"relation"==i.type&&(i.relationRef.method=e.relationRef.method,i.relationRef.type=e.relationRef.type,i.relationRef.multiple=e.relationRef.multiple?"true":"false"),"awsorg"==i.type&&(i.awsorgRef.scope=e.awsorgRef.scope,i.awsorgRef.multiple=e.awsorgRef.multiple?"true":"false"),"table"==i.type&&(i.tableRef.firstColumn=e.tableRef.firstColumn,i.tableRef.secondColumn=e.tableRef.secondColumn);let s=["relation","awsorg"],r=i.type;s.includes(r)?(this.readOnlyCursor=!0,i.readonly=!1):(this.readOnlyCursor=!1,i.readonly=e.readonly),i.value=e.value,i.desc=e.desc,i.isValid=e.isValid,i.isRequired=e.isRequired,i.groupPath=e.groupPath,i.groupPathName=e.groupPathName,i.bpmFileShow=e.bpmFileShow,i.bpmShapeShow=e.bpmFileShow,this.initDrawer("修改属性"),this.getAttrOptsParam(e.scope)},getAttrOptsParam(e){const t=this.attrForm,a=this;a.drawer.loading=!0;const o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_manage_method_attr_shape_option_query",methodId:a.methodId}};u["a"].post(o).then((function(o){if(a.drawer.loading=!1,"ok"==o.result){if(t.typeOpts=o.data.typeOpts,t.relationMethodScopeOpts=o.data.relationMethodScopeOpts,t.relationTypeOpts=o.data.relationTypeOpts,t.awsorgScopeOpts=o.data.awsorgScopeOpts,t.groupOpts=o.data.groupOpts,t.shapeOpts=o.data.shapeOpts,t.shapeScopeValue=[],e.indexOf("%")>-1&&(t.fileScope=!0),e.indexOf("*")>-1||e.indexOf("%")>-1&&e.indexOf(",")>-1||-1==e.indexOf("%")&&e.length>0){t.shapeScope=!0;const a=e.split(",");for(let e=0;e<t.shapeOpts.length;e++)a.indexOf(t.shapeOpts[e].value)>-1&&t.shapeScopeValue.push(t.shapeOpts[e].value)}if(t.isCreate){t.type=t.typeOpts[0].value;const e=a.$refs.tree.getCurrentNode();null==e?t.groupPath=t.groupOpts[0].value:"group"==e.type?t.groupPath=e.id:t.groupPath=a.$refs.tree.getNode(e.pid).data.id}}else alert("请求响应错误")})).catch(e=>{console.log(e),a.drawer.loading=!1})},saveDrawerData(){const e=this.attrForm,t=this;let a=[];if(e.fileScope&&a.push("%"),e.shapeScope&&(0==e.shapeScopeValue.length||e.shapeScopeValue.length==e.shapeOpts.length?a.push("*"):a=a.concat(e.shapeScopeValue)),!/^\w+$/.test(e.key))return t.$message({message:"[属性代码]请输入数字、字母、下划线的组合",type:"warning"}),!1;if(0==a.length)return t.$message({message:"[作用范围]不允许为空",type:"warning"}),!1;if("string"!=e.type&&"textarea"!=e.type&&"number"!=e.type||(e.ref=""),"boolean"==e.type&&(e.ref="是,否"),("select"==e.type||"select_m"==e.type)&&""==e.ref)return t.$message({message:"[选择范围]不允许为空",type:"warning"}),!1;if("awsorg"==e.type){if(""==e.awsorgRef.scope)return t.$message({message:"[BPM组织架构范围选择]不允许为空",type:"warning"}),!1;e.ref=e.awsorgRef,e.ref.multiple="true"==e.ref.multiple,e.ref=JSON.stringify(e.ref)}if("relation"==e.type){if(""==e.relationRef.method)return t.$message({message:"[关联的建模方法]不允许为空",type:"warning"}),!1;if(""==e.relationRef.type)return t.$message({message:"[关联范围]不允许为空",type:"warning"}),!1;e.ref=e.relationRef,e.ref.multiple="true"==e.ref.multiple,e.ref=JSON.stringify(e.ref)}if("table"==e.type){if(""==e.tableRef.firstColumn||""==e.tableRef.secondColumn)return t.$message({message:"[列名]不允许为空",type:"warning"}),!1;e.ref=e.tableRef,e.ref=JSON.stringify(e.ref)}const o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_manage_method_attr_add_or_update_save",methodId:t.methodId,isCreate:e.isCreate,key:e.key,title:e.title,type:e.type,desc:e.desc,ref:e.ref,value:e.value,readonly:e.readonly,isRequired:e.isRequired,groupPath:e.groupPath,isValid:e.isValid,bpmFileShow:e.bpmFileShow,bpmShapeShow:e.bpmShapeShow}};o.data.scope=a,this.$refs["attrForm"].validate(a=>{if(!a)return!1;t.drawer.buttonDisabled=!0,u["a"].post(o).then((function(a){if("ok"==a.result){let a="修改";e.isCreate&&(a="新增"),t.$message({message:a+"成功",type:"success"}),t.closeDrawer(),t.clearDrawerForm(),t.initTreeData()}else t.$message({message:a.msg,type:"warning"}),t.drawer.buttonDisabled=!1})).catch(e=>{console.log(e)})})},handleNodeClick(e){this.nodeData=e,this.search()},handleChangeReadonlyAndValid(e,t,a,o,i){const s=this,r={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_manage_method_attr_readonly_and_valid_update",methodId:s.methodId,key:e,readonly:a,isRequired:o,isValid:i}};u["a"].post(r).then((function(t){if("ok"==t.result){s.$message({message:"修改成功",type:"success"});for(let t=0;t<s.tableDataTemp.length;t++)if(e==s.tableDataTemp[t].id){s.tableDataTemp[t].readonly=a,s.tableDataTemp[t].isRequired=o,s.tableDataTemp[t].isValid=i,s.tableDataTemp[t].randomNum=Math.random(),s.search();break}}else s.$message({message:t.msg,type:"warning"})})).catch(e=>{console.log(e),s.drawer.loading=!1})},handleChangeBpmShow(e,t,a,o){const i=this,s={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_manage_method_attr_bpm_show_update",methodId:i.methodId,key:e,bpmShow:a,type:o}};u["a"].post(s).then((function(t){if("ok"==t.result){i.$message({message:"修改成功",type:"success"});for(let t=0;t<i.tableDataTemp.length;t++)if(e==i.tableDataTemp[t].id){"bpmFileShow"==o?i.tableDataTemp[t].bpmFileShow=a:"bpmShapeShow"==o&&(i.tableDataTemp[t].bpmShapeShow=a),i.tableDataTemp[t].randomNum=Math.random(),i.search();break}}else i.$message({message:t.msg,type:"warning"})})).catch(e=>{console.log(e),i.drawer.loading=!1})},handleAttrMouseEnter(e,t,a,o){for(let i=0;i<this.tableData.length;i++)e.id==this.tableData[i].id?this.tableData[i].isUpdate=!0:this.tableData[i].isUpdate=!1},handleAttrMouseLeave(e,t,a,o){for(let i=0;i<this.tableData.length;i++)e.id==this.tableData[i].id&&(this.tableData[i].isUpdate=!1)},updateAttrDbInfo(e,t,a){const o=this,i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_manage_method_attr_file_and_shape_update",methodId:o.methodId,wsId:o.$store.getters.getWsIdFn,type:o.methodDataType,attrId:e,newTitle:t,orderIndex:a}};u["a"].post(i).then((function(a){if("ok"==a.result){o.$message({message:"修改成功",type:"success"});for(let a=0;a<o.tableDataTemp.length;a++)e==o.tableDataTemp[a].id&&(o.tableDataTemp[a].newTitle=t)}else alert("请求响应错误")})).catch(e=>{console.log(e),o.drawer.loading=!1})},removeAttr(e,t){let a=["确定要删除吗?","注意:将一并删除该属性在所有资产库的文件属性和形状属性中的配置信息(不包含业务内容数据)"];const o=[],i=this.$createElement;for(const s in a)o.push(i("p",null,a[s]));this.$confirm("提示",{message:i("div",null,o),confirmButtonText:"确定",confirmButtonClass:"button-general-color",cancelButtonText:"取消",type:"warning"}).then(()=>{const t=this,a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_manage_method_attr_remove",methodId:t.methodId,attrId:e}};u["a"].post(a).then((function(e){"ok"==e.result?(t.$message({message:"删除成功",type:"success"}),t.initTreeData()):t.$message(e.msg)})).catch(e=>{console.log(e)})}).catch(()=>{})},changeReadOnly(){this.attrForm.readonly?this.attrForm.readonly=!1:this.attrForm.readonly=!0},changeAttrType(e){let t=["relation","awsorg"];t.includes(e)?(this.readOnlyCursor=!0,this.attrForm.readonly=!1):this.readOnlyCursor=!1,this.attrForm.ref="",this.attrForm.relationRef.value="",this.attrForm.relationRef.multiple="false",this.attrForm.relationRef.type="",this.attrForm.awsorgRef.scope=[],this.attrForm.awsorgRef.multiple="false",this.attrForm.tableRef.firstColumn="",this.attrForm.tableRef.secondColumn="",this.attrForm.value=""},initDrawerBodyHeight(){null!=document.getElementById("drawerBody")&&(document.getElementById("drawerBody").style.height=parseInt(this.mainHeight)-40+parseInt(this.parentHeaderHeight)-58-parseInt(this.drawer.footerHeight)+"px")}},computed:{listenTopMainHeight(){return this.$store.getters.getTopMainHeightFn}},watch:{listenTopMainHeight:function(e,t){this.mainHeight=parseInt(e)-parseInt(this.parentHeaderHeight)+"px",this.treeHeight=parseInt(e)-parseInt(this.parentHeaderHeight)-61+"px",this.initDrawerBodyHeight()},methodDataType:function(e,t){this.nodeData=null,this.$refs.tree&&this.$refs.tree.setCurrentKey(null),this.createBtnDisabled="all"!=e,this.initTableData()}}},se=ie,re=(a("2faa"),Object(g["a"])(se,te,ae,!1,null,"7bf8d9aa",null)),le=re.exports,ne=function(){var e=this,t=e._self._c;return t("el-container",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{id:"methodObject","element-loading-text":e.loadingText}},[t("el-main",{staticStyle:{padding:"0px 20px"}},[t("el-table",{ref:"table",attrs:{"highlight-current-row":"",height:e.tableHeight,data:e.tableData,size:"small"}},[t("el-table-column",{attrs:{prop:"no",label:"序号",width:"100",align:"center"}}),t("el-table-column",{attrs:{prop:"code",label:"代码",width:"130"}}),t("el-table-column",{attrs:{prop:"fromShapeId",label:"主动名称",width:"250"}}),t("el-table-column",{attrs:{prop:"toShapeId",label:"被动名称","min-width":"250"}}),t("el-table-column",{attrs:{prop:"outComingName",label:"连出范围",width:"200"}}),t("el-table-column",{attrs:{prop:"inComingName",label:"连入范围",width:"200"}})],1)],1)],1)},ce=[],de={name:"MethodLink",props:{parentHeaderHeight:{type:String,default:"0px"},methodId:{type:String,default:""},methodName:{type:String,default:""},searchInput:{type:String,default:""}},data(){return{loading:!1,loadingText:"加载中",tableHeight:parseInt(this.$store.getters.getTopMainHeightFn)-parseInt(this.parentHeaderHeight)+"px",tableData:[],tableTempData:[]}},mounted(){this.initData()},methods:{initData(){const e=this;e.loadingText="加载中",e.loading=!0;const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_manage_method_link_data_query",methodId:e.methodId}};u["a"].post(t).then((function(t){if(e.loading=!1,"ok"==t.result){for(let a=0;a<t.data.length;a++)t.data[a].no=a+1,e.tableTempData.push(t.data[a]);e.search(e.searchInput)}else alert("请求响应错误")})).catch(t=>{console.log(t),e.loading=!1})},handleDataNo(e){for(let t=0;t<e.length;t++)e[t].no=t+1;return e},search(e){if(e&&""!=e.trim()){const t=[];for(let a=0;a<this.tableTempData.length;a++)this.tableTempData[a].fromShapeId.indexOf(e)>-1&&t.push(this.tableTempData[a]);this.tableData=this.handleDataNo(t)}else this.tableData=this.handleDataNo(this.tableTempData)}},computed:{listenTopMainHeight(){return this.$store.getters.getTopMainHeightFn}},watch:{listenTopMainHeight:function(e,t){this.tableHeight=parseInt(e)-parseInt(this.parentHeaderHeight)+"px"}}},pe=de,ue=Object(g["a"])(pe,ne,ce,!1,null,"499e5b7f",null),he=ue.exports,me=function(){var e=this,t=e._self._c;return t("el-container",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{id:"methodObject","element-loading-text":e.loadingText}},[t("el-header",{style:{padding:"0px 20px",height:e.headerHeight}},[t("div",{staticClass:"header-div"},[t("div",{staticClass:"icon-div-repository",style:{"background-color":e.icon.color}},[t("i",{staticClass:"awsui-iconfont icon-dynamic-repository",domProps:{innerHTML:e._s(e.icon.code)}})]),t("div",{staticClass:"div-repository-title"},[t("span",{staticClass:"text-general-color"},[e._v(" "+e._s(e.methodName)+" ")]),t("p",{staticClass:"text-second-color header-method-id"},[t("b",[e._v("("+e._s(e.methodId)+")")])])]),t("div",{staticClass:"header-method-attr-config-icon"},[t("el-tooltip",{attrs:{content:"文件属性配置",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"iconfont",staticStyle:{cursor:"pointer"},on:{click:e.handleFileAttrConfig}},[e._v("")])])],1)])]),t("el-main",{staticStyle:{padding:"0px 20px"}},[t("el-table",{ref:"table",attrs:{"highlight-current-row":"",height:e.tableHeight,data:e.tableData,size:"small"},on:{"row-click":e.clickTableRow}},[t("el-table-column",{attrs:{prop:"no",label:"序号",width:"80",align:"center"}}),t("el-table-column",{attrs:{prop:"icon",label:"图标",width:"130"},scopedSlots:e._u([{key:"default",fn:function(e){return[t("img",{attrs:{src:e.row.icon}})]}}])}),t("el-table-column",{attrs:{prop:"name",label:"名称",width:"250"}}),t("el-table-column",{attrs:{prop:"id",label:"ID"}}),t("el-table-column",{attrs:{prop:"desc",label:"描述"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-input",{attrs:{placeholder:"请输入内容",size:"small",maxlength:"50"},on:{change:function(t){return e.updateMethodObjectDesc(a.row.id,a.row.desc)}},model:{value:a.row.desc,callback:function(t){e.$set(a.row,"desc",t)},expression:"scope.row.desc"}})]}}])}),t("el-table-column",{attrs:{prop:"modelName",label:"所属模型",width:"180"}}),t("el-table-column",{attrs:{prop:"modelId",label:"模型ID",width:"200"}}),t("el-table-column",{attrs:{prop:"type",label:"类型",width:"200"}}),t("el-table-column",{attrs:{prop:"operate",label:"操作",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("div",{staticClass:"operate-icon-display",staticStyle:{"text-align":"center",height:"30px","line-height":"30px"}},[t("p",{staticClass:"text-second-color"},[a.row.showShapeConfig?t("el-tooltip",{attrs:{content:"数据显示规则配置",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"iconfont",staticStyle:{display:"inline-block",cursor:"pointer","margin-right":"10px"},on:{click:function(t){return e.handleShapeAnchorConfig(a.row.id)}}},[e._v("")])]):e._e(),t("el-tooltip",{attrs:{content:"形状属性配置",placement:"bottom","hide-after":2e3}},[t("i",{staticClass:"iconfont",staticStyle:{display:"inline-block",cursor:"pointer",position:"relative","font-size":"23px",top:"3px"},on:{click:function(t){return e.handleShapeAttrConfig(a.row.id)}}},[e._v("")])])],1)])]}}])})],1)],1),t("awsui-sidebar",{attrs:{title:e.drawer.title,"append-to-body":!1,"modal-append-to-body":!1,"destroy-on-close":!0,modal:!1,visible:e.drawer.visible,"before-close":e.handleDrawerClose},on:{"update:visible":function(t){return e.$set(e.drawer,"visible",t)}}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.drawer.loading,expression:"drawer.loading"}]},[t("div",{staticStyle:{"overflow-y":"auto"},attrs:{id:"drawerBody"}},e._l(e.drawer.data,(function(a){return t("div",{staticClass:"attr-row",on:{click:function(e){a.isUse?a.isUse=!1:a.isUse=!0}}},[t("span",[e._v(e._s(a.name)),t("span",{staticClass:"text-second-color",staticStyle:{}},[e._v("("+e._s(a.id)+")")])]),a.isUse?t("i",{staticClass:"awsui-iconfont",staticStyle:{float:"right",color:"#4E7FF9"}},[e._v("")]):e._e()])})),0),t("div",{staticClass:"drawer-footer",style:{"background-color":"#F2F2F2",height:e.drawer.footerHeight}},[t("div",{staticStyle:{float:"right",position:"relative",top:"9px"},attrs:{id:"drawerFooter"}},[t("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"80px"},attrs:{size:"large",type:"primary",disabled:e.drawer.buttonDisabled},on:{click:e.saveAttrConfig}},[e._v("保存 ")]),t("awsui-button",{staticStyle:{width:"80px"},attrs:{size:"large"},on:{click:e.closeDrawer}},[e._v("取消")])],1)])])]),t("MethodShapeAnchorDlg",{ref:"methodShapeAnchorDlg",attrs:{visible:e.shapeAnchorConfig.visible,type:e.shapeAnchorConfig.type,methodId:e.shapeAnchorConfig.methodId,shapeName:e.shapeAnchorConfig.shapeName,wsId:e.shapeAnchorConfig.wsId},on:{"update:visible":function(t){return e.$set(e.shapeAnchorConfig,"visible",t)},cancel:function(t){e.shapeAnchorConfig.visible=!1},getResult:e.handleSaveShapeAnchorConfig}})],1)},ge=[],fe=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{attrs:{id:"methodShapeAnchor",title:"形状数据显示规则",visible:e.dialogVisible,"append-to-body":"","close-on-press-escape":!1,"close-on-click-modal":!1,width:"800px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticStyle:{border:"1px solid #F2F2F2",padding:"0px 10px 10px 10px"}},[t("div",{staticStyle:{height:"38px","line-height":"38px","vertical-align":"middle","border-bottom":"1px solid #e9e9e9"}},[t("span",{staticClass:"text-linker-color",staticStyle:{cursor:"pointer",position:"relative",left:"15px"},on:{click:function(t){return e.updateShapeConfig()}}},[t("i",{staticClass:"awsui-iconfont",staticStyle:{"font-size":"12px"}},[e._v("")]),e._v("添加")])]),t("div",{staticStyle:{height:"350px","overflow-y":"auto"}},[0==e.data.length?t("div",{staticClass:"text-second-color",staticStyle:{"text-align":"center",position:"relative",top:"150px"}},[t("i",{staticClass:"iconfont icon-wushuju",staticStyle:{"font-size":"60px"}}),t("p",[e._v("无数据")])]):e._e(),e._l(e.data,(function(a){return t("div",{staticClass:"row-div"},[t("el-row",{staticStyle:{height:"50px","line-height":"50px","vertical-align":"middle","border-bottom":"1px solid #e9e9e9"}},[t("el-col",{attrs:{span:8}},[t("div",[t("div",{staticStyle:{position:"absolute"}},[e._v("水平")]),"mostLeft"==a.attribute.horizontal?t("div",{staticClass:"loc loc-horizontal-icon",attrs:{"data-loc":"mostLeft"}},[t("span",{staticClass:"loc-point",staticStyle:{left:"-5px"}})]):e._e(),"left"==a.attribute.horizontal?t("div",{staticClass:"loc loc-horizontal-icon",attrs:{"data-loc":"left"}},[t("span",{staticClass:"loc-point",staticStyle:{left:"0px"}})]):e._e(),"center"==a.attribute.horizontal?t("div",{staticClass:"loc loc-horizontal-icon",attrs:{"data-loc":"center"}},[t("span",{staticClass:"loc-point",staticStyle:{left:"3px"}})]):e._e(),"right"==a.attribute.horizontal?t("div",{staticClass:"loc loc-horizontal-icon",attrs:{"data-loc":"right"}},[t("span",{staticClass:"loc-point",staticStyle:{left:"6px"}})]):e._e(),"mostRight"==a.attribute.horizontal?t("div",{staticClass:"loc loc-horizontal-icon",attrs:{"data-loc":"mostRight"}},[t("span",{staticClass:"loc-point",staticStyle:{left:"11px"}})]):e._e(),t("div",{staticStyle:{position:"absolute","margin-left":"70px"}},[e._v("垂直")]),"mostTop"==a.attribute.verity?t("div",{staticClass:"loc loc-verity-icon",attrs:{"data-loc":"mostTop"}},[t("span",{staticClass:"loc-point",staticStyle:{top:"-5px"}})]):e._e(),"top"==a.attribute.verity?t("div",{staticClass:"loc loc-verity-icon",attrs:{"data-loc":"top"}},[t("span",{staticClass:"loc-point",staticStyle:{top:"0px"}})]):e._e(),"center"==a.attribute.verity?t("div",{staticClass:"loc loc-verity-icon",attrs:{"data-loc":"center"}},[t("span",{staticClass:"loc-point",staticStyle:{top:"3px"}})]):e._e(),"bottom"==a.attribute.verity?t("div",{staticClass:"loc loc-verity-icon",attrs:{"data-loc":"bottom"}},[t("span",{staticClass:"loc-point",staticStyle:{top:"6px"}})]):e._e(),"mostBottom"==a.attribute.verity?t("div",{staticClass:"loc loc-verity-icon",attrs:{"data-loc":"mostBottom"}},[t("span",{staticClass:"loc-point",staticStyle:{top:"11px"}})]):e._e()])]),t("el-col",{attrs:{span:13}},[t("div",{staticStyle:{height:"49px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap","line-height":"49px","vertical-align":"middle"}},["text"==a.attribute.showType?[t("span",{domProps:{innerHTML:e._s(e.formatContent(a.attribute.cfgContent))}})]:e._e(),"attribute"==a.attribute.showType?[t("span",{domProps:{innerHTML:e._s("("+e.formatContent(a.attribute.attrName)+")")}})]:e._e(),"icon"==a.attribute.showType?[t("i",{staticClass:"awsui-iconfont",style:{"font-size":"30px",color:e.formatIconColor(a.attribute.iconContent)},domProps:{innerHTML:e._s(e.formatIconCode(a.attribute.iconContent))}})]:e._e()],2)]),t("el-col",{attrs:{span:3}},[t("div",{staticClass:"row-operate-icon",staticStyle:{display:"none",height:"49px","line-height":"49px","vertical-align":"middle","text-align":"right"}},[t("i",{staticClass:"awsui-iconfont",staticStyle:{cursor:"pointer","margin-right":"15px"},on:{click:function(t){return e.updateShapeConfig(a)}}},[e._v("")]),t("i",{staticClass:"awsui-iconfont",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.removeShapeConfig(a.id)}}},[e._v("")])])])],1)],1)}))],2)]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{staticClass:"button-general-color",attrs:{type:"primary"},on:{click:function(t){return e.submit()}}},[e._v("确定")]),t("awsui-button",{on:{click:function(t){return e.cancel()}}},[e._v("取消")])],1)]),t("el-dialog",{attrs:{id:"updateShapeAnchor",title:e.update.title,visible:e.update.visible,"append-to-body":"","close-on-press-escape":!1,"close-on-click-modal":!1,width:"500px","before-close":e.handleUpdateClose},on:{"update:visible":function(t){return e.$set(e.update,"visible",t)}}},[t("div",{staticStyle:{border:"1px solid #F2F2F2",padding:"0px 10px 10px 10px",height:"250px","overflow-y":"auto"}},[t("awsui-form",{ref:"form1",attrs:{model:e.update.form,"label-position":"top"}},[t("awsui-form-item",{attrs:{label:"显示位置"}},[t("awsui-row",{attrs:{gutter:15}},[t("awsui-col",{attrs:{span:3}},[t("div",{staticStyle:{"text-align":"right"}},[t("span",{staticStyle:{color:"red"}},[e._v("*")]),e._v("水平")])]),t("awsui-col",{attrs:{span:9}},[t("div",[t("el-select",{attrs:{placeholder:"水平位置",size:"mini"},model:{value:e.update.form.position.horizontal,callback:function(t){e.$set(e.update.form.position,"horizontal",t)},expression:"update.form.position.horizontal"}},e._l(e.update.form.position.horizontalOpts,(function(a){return t("el-option",{key:a.value,attrs:{label:a.label,value:a.value}},["mostLeft"==a.value?t("div",{staticClass:"update-loc update-loc-horizontal-icon",attrs:{"data-loc":"mostLeft"}},[t("span",{staticClass:"loc-point",staticStyle:{left:"-5px"}})]):e._e(),"left"==a.value?t("div",{staticClass:"update-loc update-loc-horizontal-icon",attrs:{"data-loc":"left"}},[t("span",{staticClass:"loc-point",staticStyle:{left:"0px"}})]):e._e(),"center"==a.value?t("div",{staticClass:"update-loc update-loc-horizontal-icon",attrs:{"data-loc":"center"}},[t("span",{staticClass:"loc-point",staticStyle:{left:"3px"}})]):e._e(),"right"==a.value?t("div",{staticClass:"update-loc update-loc-horizontal-icon",attrs:{"data-loc":"right"}},[t("span",{staticClass:"loc-point",staticStyle:{left:"6px"}})]):e._e(),"mostRight"==a.value?t("div",{staticClass:"update-loc update-loc-horizontal-icon",attrs:{"data-loc":"mostRight"}},[t("span",{staticClass:"loc-point",staticStyle:{left:"11px"}})]):e._e(),t("span",[e._v(e._s(a.label))])])})),1)],1)]),t("awsui-col",{attrs:{span:3}},[t("div",{staticStyle:{"text-align":"right"}},[t("span",{staticStyle:{color:"red"}},[e._v("*")]),e._v("垂直")])]),t("awsui-col",{attrs:{span:9}},[t("div",[t("el-select",{attrs:{placeholder:"垂直位置",size:"mini"},model:{value:e.update.form.position.verity,callback:function(t){e.$set(e.update.form.position,"verity",t)},expression:"update.form.position.verity"}},e._l(e.update.form.position.verityOpts,(function(a){return t("el-option",{key:a.value,attrs:{label:a.label,value:a.value}},["mostTop"==a.value?t("div",{staticClass:"update-loc update-loc-verity-icon",attrs:{"data-loc":"mostTop"}},[t("span",{staticClass:"loc-point",staticStyle:{top:"-5px"}})]):e._e(),"top"==a.value?t("div",{staticClass:"update-loc update-loc-verity-icon",attrs:{"data-loc":"top"}},[t("span",{staticClass:"loc-point",staticStyle:{top:"0px"}})]):e._e(),"center"==a.value?t("div",{staticClass:"update-loc update-loc-verity-icon",attrs:{"data-loc":"center"}},[t("span",{staticClass:"loc-point",staticStyle:{top:"3px"}})]):e._e(),"bottom"==a.value?t("div",{staticClass:"update-loc update-loc-verity-icon",attrs:{"data-loc":"bottom"}},[t("span",{staticClass:"loc-point",staticStyle:{top:"6px"}})]):e._e(),"mostBottom"==a.value?t("div",{staticClass:"update-loc update-loc-verity-icon",attrs:{"data-loc":"mostBottom"}},[t("span",{staticClass:"loc-point",staticStyle:{top:"11px"}})]):e._e(),t("span",[e._v(e._s(a.label))])])})),1)],1)])],1)],1),t("awsui-form-item",{attrs:{label:"显示方式"}},[t("awsui-select",{attrs:{options:e.update.form.showType.opts},on:{change:e.changeShowType},model:{value:e.update.form.showType.value,callback:function(t){e.$set(e.update.form.showType,"value",t)},expression:"update.form.showType.value"}})],1),t("awsui-form-item",{directives:[{name:"show",rawName:"v-show",value:"text"==e.update.form.showType.value,expression:"update.form.showType.value == 'text'"}],attrs:{label:"文本信息"}},[t("awsui-input",{attrs:{type:"textarea",placeholder:"请输入不超过200个字符的文本信息"},model:{value:e.update.form.cfgContent,callback:function(t){e.$set(e.update.form,"cfgContent",t)},expression:"update.form.cfgContent"}})],1),t("awsui-form-item",{directives:[{name:"show",rawName:"v-show",value:"attribute"==e.update.form.showType.value,expression:"update.form.showType.value == 'attribute'"}],attrs:{label:"属性选择"}},[t("el-popover",{ref:"attrPopover",attrs:{placement:"bottom",width:"413",popperClass:"methodShapeAnchorUpdateAttrPopover","visible-arrow":!1,trigger:"click"},on:{"after-enter":e.handleInitAttrTree}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.attrTreeLoading,expression:"attrTreeLoading"}],staticStyle:{height:"168px",overflow:"auto"}},[t("div",{staticStyle:{margin:"0 5px"}},[t("el-tree",{attrs:{data:e.attrTreeData,"node-key":"id","default-expand-all":"","empty-text":"请先配置形状的数据属性",props:e.attrTreeProps},on:{"node-click":e.handleNodeClick},scopedSlots:e._u([{key:"default",fn:function({node:a,data:o}){return t("span",{},[t("i",{staticClass:"awsui-iconfont tree-content-icon tree-content-icon-padding",style:{color:o.iconColor},domProps:{innerHTML:e._s(a.data.iconCode)}}),t("span",[e._v(e._s(a.label))])])}}])})],1)]),t("div",{attrs:{slot:"reference"},slot:"reference"},[t("awsui-input",{attrs:{readonly:"",placeholder:"点击选择需要在该位置显示的属性"},model:{value:e.update.form.attrName,callback:function(t){e.$set(e.update.form,"attrName",t)},expression:"update.form.attrName"}})],1)])],1),t("awsui-form-item",{directives:[{name:"show",rawName:"v-show",value:"icon"==e.update.form.showType.value,expression:"update.form.showType.value == 'icon'"}],attrs:{label:"图标选择"}},[t("el-popover",{ref:"popover",attrs:{placement:"bottom",width:"413",popperClass:"methodShapeAnchorUpdatePopover","visible-arrow":!1,trigger:"click"}},[t("div",e._l(e.update.form.iconInfo.opts,(function(a){return t("div",{staticStyle:{display:"inline-block",margin:"0 5px"}},[t("i",{staticClass:"awsui-iconfont",staticStyle:{"font-size":"30px",cursor:"pointer"},style:{color:a.color},domProps:{innerHTML:e._s(a.code)},on:{click:function(t){return e.handleSetIcon(a)}}})])})),0),t("div",{staticStyle:{height:"36px","line-height":"32px","vertical-align":"middle",width:"436px",border:"1px solid #e9e9e9"},attrs:{slot:"reference"},slot:"reference"},[t("div",{staticStyle:{display:"inline-block",position:"relative",top:"2px","margin-left":"5px"}},[t("i",{staticClass:"awsui-iconfont",style:{"font-size":"30px",color:e.update.form.iconInfo.value.color},domProps:{innerHTML:e._s(e.update.form.iconInfo.value.code)}})]),t("i",{staticClass:"el-icon-arrow-down column-arrow-down",staticStyle:{float:"right"}})])])],1)],1),t("awsui-form",{directives:[{name:"show",rawName:"v-show",value:"attribute"==e.update.form.showType.value,expression:"update.form.showType.value == 'attribute'"}],ref:"form2",attrs:{model:e.update.form}},[t("awsui-form-item",{attrs:{label:"显示属性名"}},[t("awsui-row",{attrs:{gutter:15}},[t("awsui-col",{attrs:{span:3,offset:16}},[t("div",[t("awsui-switch",{attrs:{activeColor:"#4E7FF9"},model:{value:e.update.form.isShowAttrName,callback:function(t){e.$set(e.update.form,"isShowAttrName",t)},expression:"update.form.isShowAttrName"}})],1)])],1)],1)],1)],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("awsui-button",{staticClass:"button-general-color",attrs:{type:"primary"},on:{click:e.saveUpdateShapeConfig}},[e._v("确定")]),t("awsui-button",{on:{click:function(t){e.update.visible=!1}}},[e._v("取消")])],1)])],1)},be=[],we={name:"MethodShapeAnchorDlg",props:{visible:{type:Boolean,default:!1},type:{type:String,default:""},methodId:{type:String,default:""},wsId:{type:String,default:""},shapeName:{type:String,default:""},shapeObjId:{type:String,default:""}},data(){return{dialogVisible:!1,data:[],attrTreeLoading:!1,update:{visible:!1,title:"添加",id:"",form:{position:{horizontal:"",horizontalOpts:[{label:"左外边",value:"mostLeft"},{label:"左内边",value:"left"},{label:"中间",value:"center"},{label:"右内边",value:"right"},{label:"右外边",value:"mostRight"}],verity:"",verityOpts:[{label:"上外边",value:"mostTop"},{label:"上内边",value:"top"},{label:"中间",value:"center"},{label:"下内边",value:"bottom"},{label:"下外边",value:"mostBottom"}]},showType:{value:"text",opts:[{value:"text",label:"文本信息"},{value:"attribute",label:"属性信息"},{value:"icon",label:"图标"}]},cfgContent:"",attrName:"",attrKey:"",isShowAttrName:!1,iconInfo:{value:{},opts:[{code:"",color:"#1296DB"},{code:"",color:"#EA9518"},{code:"",color:"#EA9518"},{code:"",color:"#1296DB"},{code:"",color:"#1296DB"},{code:"",color:"#EA9518"},{code:"",color:"#D81E06"},{code:"",color:"#1296DB"},{code:"",color:"#1296DB"},{code:"",color:"#707070"},{code:"",color:"#D81E06"},{code:"",color:"#00c853"},{code:"",color:"#FA8072"},{code:"",color:"#00c853"},{code:"",color:"#00c853"},{code:"",color:"#082E54"},{code:"",color:"#EA9518"},{code:"",color:"#FA8072"},{code:"",color:"#00c853"},{code:"",color:"#1296DB"},{code:"",color:"#1296DB"},{code:"",color:"#1296DB"},{code:"",color:"#1296DB"},{code:"",color:"#7AA7AA"},{code:"",color:"#7AA7AA"},{code:"",color:"#7AA7AA"},{code:"",color:"#7AA7AA"},{code:"",color:"#7AA7AA"},{code:"",color:"#7AA7AA"},{code:"",color:"#7AA7AA"},{code:"",color:"#7AA7AA"},{code:"",color:"#E9433F"},{code:"",color:"#FFAE03"},{code:"",color:"#F4EA2A"},{code:"",color:"#00C853"},{code:"",color:"#1296DB"},{code:"",color:"#082E54"},{code:"",color:"#88147F"},{code:"",color:"#7DABB1"},{code:"",color:"#707070"}]}}},attrTreeData:[],attrTreeProps:{children:"children",label:"label"}}},methods:{changeShowType(e){this.update.form.showType.value=e},initData(){if("commonShapeConfig"==this.type){const e=this,t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_manage_shape_config_query",wsId:e.wsId,methodId:e.methodId,shapeId:e.shapeName}};u["a"].post(t).then((function(t){if("ok"==t.result){for(let e=0;e<t.data.length;e++)t.data[e].attribute=JSON.parse(t.data[e].attribute);e.data=t.data}else e.$message.error(t.msg)})).catch(e=>{console.log(e)})}else this.type},formatContent(e){return e.replace(/</g,"<").replace(/>/g,">")},formatIconCode(e){return e.split("|")[0]},formatIconColor(e){return e.split("|")[1]},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={data:[],wsId:this.wsId,methodId:this.methodId,shapeId:this.shapeName};for(let t=0;t<this.data.length;t++)e.data.push(this.data[t].attribute);this.$emit("getResult",e)}else this.$emit("cancel")},removeShapeConfig(e){for(let t=0;t<this.data.length;t++)if(this.data[t].id==e){this.data.splice(t,1);break}},updateShapeConfig(e){this.clearUpdateShapeConfig(),e?(this.update.title="修改",this.update.id=e.id,this.initUpdateShapeConfigData(e.attribute)):this.update.title="添加",this.update.visible=!0},initUpdateShapeConfigData(e){if(this.update.form.showType.value=e.showType,this.update.form.position.horizontal=e.horizontal,this.update.form.position.verity=e.verity,"text"==e.showType)this.update.form.cfgContent=e.cfgContent;else if("attribute"==e.showType)this.update.form.attrName=e.attrName,this.update.form.attrKey=e.key,this.update.form.isShowAttrName=e.isShowAttrName;else if("icon"==e.showType){const t=e.iconContent.split("|");this.update.form.iconInfo.value={code:t[0],color:t[1]}}},clearUpdateShapeConfig(){this.update.id="",this.update.form.position.horizontal="",this.update.form.position.verity="",this.update.form.showType.value="text",this.update.form.cfgContent="",this.update.form.attrName="",this.update.form.attrKey="",this.update.form.isShowAttrName=!1,this.update.form.iconInfo.value={},this.attrTreeData=[]},handleUpdateClose(e){e()},handleSetIcon(e){this.update.form.iconInfo.value=e,this.$refs["popover"].doClose()},handleNodeClick(e){e.open||(this.update.form.attrName=e.label,this.update.form.attrKey=e.id,this.$refs["attrPopover"].doClose())},handleInitAttrTree(){this.attrTreeLoading=!0;const e=this,t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_manage_shape_config_attr_tree_query",wsId:e.wsId,methodId:e.methodId,shapeId:e.shapeName}};u["a"].post(t).then((function(t){e.attrTreeLoading=!1,"ok"==t.result&&(e.attrTreeData=t.data)})).catch(e=>{console.log(e)})},saveUpdateShapeConfig(){if(""==this.update.form.position.horizontal)return this.$message({message:"请选择水平位置",type:"warning"}),!1;if(""==this.update.form.position.verity)return this.$message({message:"请选择垂直位置",type:"warning"}),!1;for(let a=0;a<this.data.length;a++){const e=this.data[a].attribute;if((""!=this.update.id&&this.update.id!=this.data[a].id||""==this.update.id)&&e.horizontal==this.update.form.position.horizontal&&e.verity==this.update.form.position.verity)return this.$message({message:"此显示位置已被占用,请选择其它位置",type:"warning"}),!1}const e={};e.horizontal=this.update.form.position.horizontal,e.verity=this.update.form.position.verity;const t=this.update.form.showType.value;if(e.showType=t,"text"==t){if(""==this.update.form.cfgContent.trim())return this.$message({message:"[文本信息]不允许为空",type:"warning"}),!1;if(this.update.form.cfgContent.trim().length>=200)return this.$message({message:"[文本信息]不允许超过200个字符",type:"warning"}),!1;e.cfgContent=this.update.form.cfgContent}else if("attribute"==t){if(""==this.update.form.attrKey)return this.$message({message:"请选择属性信息",type:"warning"}),!1;e.attrName=this.update.form.attrName,e.key=this.update.form.attrKey,e.isShowAttrName=this.update.form.isShowAttrName,e.cfgContent=""}else if("icon"==t){if(!this.update.form.iconInfo.value.code||""==this.update.form.iconInfo.value.code)return this.$message({message:"请选择图标",type:"warning"}),!1;e.iconContent=this.update.form.iconInfo.value.code+"|"+this.update.form.iconInfo.value.color}if(""!=this.update.id){for(let a=0;a<this.data.length;a++)if(this.data[a].id==this.update.id){this.data[a].attribute=e;break}}else{const t={attribute:e,id:"new"+Math.random(),methodId:this.methodId,shapeId:this.shapeName,wsId:this.wsId,orderIndex:0};this.data.push(t);for(let e=0;e<this.data.length;e++)this.data[e].orderIndex=e+1}return this.update.visible=!1,!0}},watch:{visible(e){this.dialogVisible=e,e&&this.initData()}}},ye=we,ve=(a("5a4b"),a("ee3f"),Object(g["a"])(ye,fe,be,!1,null,"821aa6b2",null)),xe=ve.exports,_e={name:"MethodObject",components:{MethodShapeAnchorDlg:xe},props:{parentHeaderHeight:{type:String,default:"0px"},methodId:{type:String,default:""},methodName:{type:String,default:""},searchInput:{type:String,default:""}},data(){return{loading:!1,loadingText:"加载中",headerHeight:"45px",tableHeight:parseInt(this.$store.getters.getTopMainHeightFn)-45-parseInt(this.parentHeaderHeight)+"px",tableData:[],tableTempData:[],icon:{code:"",color:""},drawer:{title:"文件属性配置",visible:!1,loading:!1,data:[],type:"file",shapeName:"",footerHeight:"50px",buttonDisabled:!1},shapeAnchorConfig:{visible:!1,type:"commonShapeConfig",methodId:"",shapeName:"",wsId:""}}},mounted(){this.initData()},methods:{initData(){const e=this;e.loadingText="加载中",e.loading=!0;const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_manage_method_shape_definition_data_query",methodId:e.methodId}};u["a"].post(t).then((function(t){if(e.loading=!1,"ok"==t.result){for(let a=0;a<t.data.data.length;a++)t.data.data[a].no=a+1,e.tableTempData.push(t.data.data[a]);e.icon=t.data.icon,e.search(e.searchInput)}else alert("请求响应错误")})).catch(t=>{console.log(t),e.loading=!1})},handleDataNo(e){for(let t=0;t<e.length;t++)e[t].no=t+1;return e},search(e){if(e&&""!=e.trim()){const t=[];for(let a=0;a<this.tableTempData.length;a++)this.tableTempData[a].name.indexOf(e)>-1&&t.push(this.tableTempData[a]);this.tableData=this.handleDataNo(t)}else this.tableData=this.handleDataNo(this.tableTempData)},clickTableRow(e,t,a){this.$refs.table.setCurrentRow(e)},handleShapeAttrConfig(e){const t=this;t.drawer.buttonDisabled=!1,t.drawer.data=[],t.drawer.title="形状属性配置",t.drawer.type="shape",t.drawer.shapeName=e,t.drawer.visible=!0,t.$nextTick((function(){t.initDrawerBodyHeight()})),t.drawer.loading=!0;const a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_manage_method_shape_more_attr_config_query",methodId:t.methodId,shapeName:e,wsId:t.$store.getters.getWsIdFn}};u["a"].post(a).then((function(e){t.drawer.loading=!1,"ok"==e.result?t.drawer.data=e.data:alert("请求响应错误")})).catch(e=>{console.log(e),t.drawer.loading=!1})},handleFileAttrConfig(){const e=this;e.drawer.buttonDisabled=!1,e.drawer.data=[],e.drawer.title="文件属性配置",e.drawer.type="file",e.drawer.shapeName="",e.drawer.visible=!0,e.$nextTick((function(){e.initDrawerBodyHeight()})),e.drawer.loading=!0;const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_manage_method_file_more_attr_config_query",methodId:e.methodId,wsId:e.$store.getters.getWsIdFn}};u["a"].post(t).then((function(t){e.drawer.loading=!1,"ok"==t.result?e.drawer.data=t.data.moreAttr:alert("请求响应错误")})).catch(t=>{console.log(t),e.drawer.loading=!1})},saveAttrConfig(){const e=this;e.drawer.type;if(0==e.drawer.data.length)return void e.$message({message:"无相关属性进行保存",type:"warning"});e.drawer.buttonDisabled=!0,e.closeDrawer(),e.loadingText="正在更新资产库文件",e.loading=!0;const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_manage_method_more_attr_config_save",attrData:JSON.stringify(e.drawer.data),wsId:e.$store.getters.getWsIdFn,type:e.drawer.type,shapeName:e.drawer.shapeName,methodId:e.methodId}};u["a"].post(t).then((function(t){e.loading=!1,"ok"==t.result?e.$message({message:"更新成功",type:"success"}):e.$message.error(t.msg)})).catch(e=>{console.log(e)})},closeDrawer(){this.drawer.visible=!1},handleDrawerClose(e){e()},initDrawerBodyHeight(){null!=document.getElementById("drawerBody")&&(document.getElementById("drawerBody").style.height=parseInt(this.tableHeight)+parseInt(this.headerHeight)+parseInt(this.parentHeaderHeight)-58-parseInt(this.drawer.footerHeight)+"px")},handleShapeAnchorConfig(e){this.shapeAnchorConfig.wsId=this.$store.getters.getWsIdFn,this.shapeAnchorConfig.methodId=this.methodId,this.shapeAnchorConfig.shapeName=e,this.shapeAnchorConfig.visible=!0},handleSaveShapeAnchorConfig(e){const t=this,a={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_manage_shape_config_save",wsId:e.wsId,methodId:e.methodId,shapeId:e.shapeId,data:JSON.stringify(e.data)}};u["a"].post(a).then((function(e){"ok"==e.result&&(t.shapeAnchorConfig.visible=!1,t.$message({showClose:!0,message:"保存成功",type:"success"}))})).catch(e=>{console.log(e)})},updateMethodObjectDesc(e,t){const a=this,o={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_manage_method_object_desc_save",shapeName:e,desc:t,methodId:a.methodId}};u["a"].post(o).then((function(e){a.loading=!1,"ok"==e.result?a.$message({message:"更新成功",type:"success"}):a.$message.error(e.msg)})).catch(e=>{console.log(e)})}},computed:{listenTopMainHeight(){return this.$store.getters.getTopMainHeightFn}},watch:{listenTopMainHeight:function(e,t){this.tableHeight=parseInt(e)-parseInt(this.headerHeight)-parseInt(this.parentHeaderHeight)+"px",this.initDrawerBodyHeight()}}},Ce=_e,ke=(a("8abc"),Object(g["a"])(Ce,me,ge,!1,null,"398e6a76",null)),Ie=ke.exports,Se={name:"Method",components:{MethodObject:Ie,MethodLink:he,MethodAttribute:le},data(){return{loading:!0,headerHeight:"40px",activeMethod:{id:"",name:""},methodData:[],activeType:"",searchInput:"",methodAttribute:{value:{id:"all",name:"全部"},opts:[{id:"all",name:"全部"},{id:"file",name:"文件属性"},{id:"shape",name:"形状属性"}]}}},mounted(){this.initPage()},methods:{initPage(){const e=this,t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_pl_manage_method_data_query"}};u["a"].post(t).then((function(t){if(e.loading=!1,"ok"==t.result){e.methodData=t.data,e.changeMethodType("methodObject");for(let t=0;t<e.methodData.length;t++)if("group"!=e.methodData[t].type){e.changeMethod(e.methodData[t].id,e.methodData[t].name);break}}else alert("请求响应错误")})).catch(t=>{console.log(t),e.loading=!1})},changeMethod(e,t){this.searchInput="",this.activeMethod.id=e,this.activeMethod.name=t;const a=this.activeType;this.activeType="",this.methodAttribute.value=this.methodAttribute.opts[0],this.$nextTick((function(){this.activeType=a}))},changeMethodType(e){this.searchInput="",this.methodAttribute.value=this.methodAttribute.opts[0],this.activeType=e},search(){"methodObject"==this.activeType?this.$refs.methodObject.search(this.searchInput):"methodAttribute"==this.activeType?this.$refs.methodAttribute.search(""):"methodLink"==this.activeType&&this.$refs.methodLink.search("")},changeAttrScope(e){this.methodAttribute.value=e},createMethod(){this.$message("敬请期待")}},computed:{listenTopMainHeight(){return this.$store.getters.getTopMainHeightFn}},watch:{listenTopMainHeight:function(e,t){}}},Te=Se,Fe=(a("96e1"),Object(g["a"])(Te,Z,ee,!1,null,"5e1b2666",null)),De=Fe.exports,$e={name:"Main",components:{PwdChange:O,Navigation:T,WorkspaceBackup:q,Recycle:X,Method:De,Mark:Q},data(){return{bodyHeight:document.documentElement.clientHeight-56+"px",drawer:!1,direction:"rtl",nonAppComponent:"",wsId:"",cooperation:{drawer:!1,cooperationContent:""},mainTimer:null,mainTimerNum:200}},provide:function(){return{openAppDrawer:this.openAppDrawer,closeAppDrawer:this.closeAppDrawer,openPwdConfig:this.openPwdConfig,logout:this.logout,openCooperationDrawer:this.openCooperationDrawer,closeCooperationDrawer:this.closeCooperationDrawer,saveAccessOpLog:this.saveAccessOpLog}},computed:{key(){return new Date+""}},created(){},mounted(){forceChangePwd&&this.openPwdConfig(),this.$store.commit("setTopMainHeightFn",this.bodyHeight),this.resize(),document.body.ondrop=function(e){e.preventDefault(),e.stopPropagation()}},methods:{openAppDrawer(){void 0!=document.getElementById("appContent")&&(document.getElementById("appContent").innerHTML=""),this.drawer=!0},openAppIframe(){this.wsId=this.$store.getters.getWsIdFn;const e=this;let t=e.$refs.navigation;"method"==t.currApp.clazzName?(e.nonAppComponent="",e.$nextTick(()=>{e.nonAppComponent="Method"}),e.saveAccessOpLog("method")):"backup"==t.currApp.clazzName?(e.nonAppComponent="",e.$nextTick(()=>{e.nonAppComponent="WorkspaceBackup"}),e.saveAccessOpLog("backup")):"recycle"==t.currApp.clazzName?(e.nonAppComponent="",e.$nextTick(()=>{e.nonAppComponent="Recycle"}),e.saveAccessOpLog("recycle")):"mark"==t.currApp.clazzName?(e.nonAppComponent="",e.$nextTick(()=>{e.nonAppComponent="Mark"}),e.saveAccessOpLog("mark")):(e.nonAppComponent="",e.$nextTick(()=>{document.getElementById("appContent").innerHTML="";let a=wHref+"?sid="+e.$store.state.sessionId+"&wsId="+e.$store.getters.getWsIdFn+"&teamId="+e.$store.getters.getTeamIdFn+"&clazzName="+t.currApp.clazzName+"&cmd=com.actionsoft.apps.coe.pal_app_page";document.getElementById("appContent").innerHTML='<iframe id="appIframe" width="100%" height="100%" name="appIframe" style="border:0;" src="'+a+'"></iframe>'}))},closeAppDrawer(){this.nonAppComponent="",this.drawer=!1,this.$refs.navigation.showAppDetail=!1},openCooperationDrawer(){this.wsId=this.$store.getters.getWsIdFn,void 0!=document.getElementById("cooperationContent")&&(document.getElementById("cooperationContent").innerHTML=""),this.cooperation.drawer=!0},openCooperationIframe(){const e=this;let t=e.$refs.navigation;e.wsId=t.wsValue,e.cooperation.cooperationContent="",e.$nextTick(()=>{document.getElementById("cooperationContent").innerHTML="";let e=wHref+"?sid="+this.$store.state.sessionId+"&mainPage=manage&cmd=com.actionsoft.apps.coe.pal.cooperation_main";document.getElementById("cooperationContent").innerHTML='<iframe id="cooperationIframe" width="100%" height="100%" name="cooperationIframe" style="border:0;" src="'+e+'"></iframe>'})},closeCooperationDrawer(){this.cooperation.cooperationContent="",this.cooperation.drawer=!1,this.$refs.navigation.cooperationDrawer.showCooperationDetail=!1},handleClose(e){e()},openPwdConfig(){this.$refs.pwdChange.pwdConfig=!0},logout(){const e=this;e.$confirm("确定离开系统吗?","提示",{confirmButtonText:"确定",confirmButtonClass:"button-general-color",cancelButtonText:"取消",type:"warning"}).then(()=>{const t=wHref+"?sid="+e.$store.state.sessionId+"&cmd=com.actionsoft.apps.coe.pal_user_logout";window.location.replace(t)}).catch(()=>{})},resize(){const e=this;let t=null;window.onresize=()=>(()=>{t&&clearTimeout(t),t=setTimeout((function(){e.bodyHeight=document.documentElement.clientHeight-56+"px",e.$store.commit("setTopMainHeightFn",e.bodyHeight)}),400)})()},clickDomEvent(){this.$store.commit("setNavigationQueryVisibleFn",!1)},saveAccessOpLog(e){const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_access_log_save",moduleCategory:e}};u["a"].post(t).then((function(e){e.result})).catch(e=>{console.log(e)})}}},Ne=$e,Ae=(a("ed6f"),Object(g["a"])(Ne,o,i,!1,null,"0a1095dc",null));t["default"]=Ae.exports},d40e:function(e,t,a){},d83c:function(e,t,a){},dec9:function(e,t,a){"use strict";a("9a1e")},df22:function(e,t,a){},e087:function(e,t,a){},e529:function(e,t,a){},ea55:function(e,t,a){"use strict";a("c706")},ed6f:function(e,t,a){"use strict";a("6822")},ee3f:function(e,t,a){"use strict";a("3231")},f4b8:function(e,t,a){"use strict";a("d40e")},fa2b:function(e,t,a){"use strict";a("df22")},fc77:function(e,t,a){"use strict";a("8a5e")},ff4d:function(e,t,a){}}]); |