yili-apps/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/main/js/chunk-0ba0316e.a3ac659b.js
mrs_12345@163.com b7e99befe1 vue打包提交
2022-06-28 15:21:50 +08:00

1 line
21 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

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

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

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0ba0316e"],{"318a":function(e,t,a){"use strict";a("fc2e")},"4cbb":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-container",[a("el-dialog",{attrs:{id:"bpmOrgAddress",title:e.title,visible:e.dialogVisible,"destroy-on-close":!0,width:e.width,"modal-append-to-body":!1,"append-to-body":!0,"close-on-click-modal":!1,"before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[e.refresh?[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{"element-loading-text":"拼命加载中"}},[a("div",{staticStyle:{height:"300px",overflow:"auto",border:"1px solid #f2f2f2"}},[a("div",{staticClass:"tree"},[a("el-tree",{ref:"tree",attrs:{props:e.treeProps,"show-checkbox":e.multiple,"expand-on-click-node":!1,"check-strictly":!0,"highlight-current":!0,"node-key":"id",lazy:"",load:e.loadNode},on:{"node-click":e.openNode,"node-expand":e.expandNode,"node-collapse":e.closeNode},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.node;t.data;return a("span",{},[a("i",{staticClass:"awsui-iconfont tree-content-icon tree-content-icon-padding",style:{color:i.data.icon.color},domProps:{innerHTML:e._s(i.data.icon.icon)}}),a("span",[e._v(e._s(i.label))])])}}],null,!1,52448956)})],1)])])]:e._e(),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("awsui-button",{staticClass:"button-general-color",attrs:{type:"primary"},on:{click:e.submit}},[e._v("确定")]),a("awsui-button",{on:{click:e.cancel}},[e._v("取消")])],1)],2)],1)},s=[],r=a("0f08"),n={name:"BpmOrgAddress",props:{visible:{type:Boolean,default:!1},addressType:{type:String,default:"department"},multiple:{type:Boolean,default:!1},rootDeptId:{type:String,default:""},highSecurityFilter:{type:String,default:""},title:{type:String,default:""},selected:{type:Object,default:function(){return{department:[],user:[],role:[],position:[]}}}},data(){return{refresh:!1,dialogVisible:!1,loading:!1,searchKey:"",treeSearchKey:"",timeout:null,pid:"",width:"500px",treeProps:{label:"name",isLeaf:"leaf"}}},methods:{handleClose(e){this.closeDlalog("cancel"),e()},cancel(){this.closeDlalog("cancel"),this.dialogVisible=!1},submit(){this.closeDlalog("save"),this.dialogVisible=!1},closeDlalog(e){if("save"==e){let e=[];if(this.multiple)e=this.$refs.tree.getCheckedNodes();else{const t=this.$refs.tree.getCurrentNode();null!=t&&e.push(t)}this.$emit("getResult",JSON.parse(JSON.stringify(e)))}else this.$emit("cancel")},handleNodeClick(e){},openNode(e,t,a){},treeSearchSelect(e){this.queryTreeByIdAndPath(e.id,e.path)},treeSearch(e,t){const a=this;if(void 0!=e&&""!=e.trim()){const i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_repository_tree_component_search",addressType:a.addressType,rootDeptId:a.rootDeptId,name:e}};r["a"].post(i).then((function(e){"ok"==e.result&&e.data.length>0?(clearTimeout(a.timeout),a.timeout=setTimeout(()=>{t(e.data)},3e3*Math.random())):clearTimeout(a.timeout)})).catch(e=>{console.log(e)})}else clearTimeout(a.timeout)},queryTreeByIdAndPath(e,t){const a=this,i=a.$refs.tree,s=t.split(",");let r=1;for(let n=0;n<s.length;n++)n>0&&null!=i.getNode(s[n-1])&&(setTimeout(a._expandNode(i,s[n-1]),300*r),r++);setTimeout((function(){null!=i.getNode(e)&&i.setCurrentKey(e)}),300*r)},_expandNode(e,t){return function(){e.getNode(t).expand()}},loadNode(e,t){const a=this;a.loading=!0;const i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_bpm_org_address_component_subjson",addressType:a.addressType,pid:"",highSecurityFilter:a.highSecurityFilter}};0===e.level?(i.data.pid=a.pid,i.data.parentType=""):(i.data.pid=e.data.id,i.data.parentType=e.data.type),r["a"].post(i).then((function(i){if(a.multiple){const e=a.addressType.indexOf("department")>-1,t=a.addressType.indexOf("user")>-1,s=a.addressType.indexOf("role")>-1,r=a.addressType.indexOf("position")>-1;for(let a=0;a<i.data.length;a++){const n=i.data[a];"company"==n.type||"roleRoot"==n.type||"roleGroup"==n.type||"positionRoot"==n.type||"positionGroup"==n.type?n.disabled=!0:(e&&"department"==n.type&&(n.disabled=!1),e||"department"!=n.type||(n.disabled=!0),t&&"user"==n.type&&(n.disabled=!1),t||"user"!=n.type||(n.disabled=!0),s&&"role"==n.type&&(n.disabled=!1),s||"role"!=n.type||(n.disabled=!0),r&&"position"==n.type&&(n.disabled=!1),r||"position"!=n.type||(n.disabled=!0))}}if(t(i.data),a.loading=!1,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)}})).catch(e=>{console.log(e)})},expandNode(e,t,a){},closeNode(e,t,a){t.childNodes=[],t.loaded=!1},refreshNode(e){if(void 0==e){const e=this.$refs.tree.getCurrentNode();if(null!=e){void 0!=this.$refs.tree.store.nodesMap[e.id]&&(this.$refs.tree.store.nodesMap[e.id].expanded=!1);const t=this.$refs.tree.getNode(e.id);this.closeNode(null,t,null),t.expand()}}else{void 0!=this.$refs.tree.store.nodesMap[e]&&(this.$refs.tree.store.nodesMap[e].expanded=!1);const t=this.$refs.tree.getNode(e);null!=t&&(this.closeNode(null,t,null),t.expand())}}},watch:{visible(e){this.dialogVisible=e,e?(this.addressType.indexOf("department")>0&&(this.pid=this.rootDeptId),this.refresh=!0):this.refresh=!1}}},o=n,l=(a("b142"),a("cba8")),d=Object(l["a"])(o,i,s,!1,null,"6de64a47",null);t["a"]=d.exports},9419:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-container",{staticStyle:{width:"100%"},attrs:{id:"user"}},[a("el-header",{attrs:{height:e.headerHeight}},[a("el-col",{staticStyle:{position:"relative",top:"10px"},attrs:{span:24}},[a("div",{staticStyle:{display:"inline-block",float:"left"}},[a("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"100px"},attrs:{type:"primary"},on:{click:e.addUser}},[e._v("添加用户")])],1),a("div",{staticStyle:{display:"inline-block",float:"right",width:"320px","padding-right":"20px"}},[a("el-input",{attrs:{placeholder:"搜索","prefix-icon":"el-icon-search",size:"small",clearable:""},on:{input:e.searchUser},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}})],1)])],1),a("el-main",{style:{height:e.mainHeight}},[a("div",{staticClass:"text-general-color category-title"},[a("p",{staticStyle:{"padding-left":"5px"},domProps:{innerHTML:e._s("管理用户("+e.data1.length+"")}})]),a("div",{directives:[{name:"show",rawName:"v-show",value:0==e.data1.length,expression:"data1.length == 0"}],staticStyle:{height:"200px"}}),e._l(e.data1,(function(t){return[a("div",{staticStyle:{display:"inline","margin-right":"40px"},on:{mouseenter:function(a){return e.enter(t.id,"0")},mouseleave:function(a){return e.leave(t.id,"0")}}},[a("el-card",{staticStyle:{width:"300px",display:"inline-block","margin-top":"15px"},attrs:{shadow:"hover"}},[a("div",{staticStyle:{display:"inline-block",width:"15px","margin-left":"5px",height:"20px","line-height":"20px","vertical-align":"middle"}},[a("div",{style:{display:t.showCheckBox||t.checked?"inline-block":"none"}},[a("el-checkbox",{on:{change:function(a){return e.handleCheckChange(t.id,"0")}},model:{value:t.checked,callback:function(a){e.$set(t,"checked",a)},expression:"item.checked"}})],1)]),a("div",{staticStyle:{display:"inline",width:"30px",margin:"0 15px"}},[a("img",{staticClass:"user_photo_img radius3",attrs:{src:t.userPhoto}})]),a("div",{staticClass:"text-over-hidden",staticStyle:{display:"inline-block",width:"220px",height:"20px","line-height":"20px","vertical-align":"middle"}},[a("span",{staticClass:"text-general-color",domProps:{innerHTML:e._s(t.name)}}),e._v("    "),a("span",{staticClass:"text-second-color",staticStyle:{"font-size":"12px","-webkit-transform":"scale(0.9)"}},[e._v(e._s(t.role))])])])],1)]})),a("div",{staticClass:"text-general-color category-title"},[a("p",{staticStyle:{"padding-left":"5px"},domProps:{innerHTML:e._s("梳理用户("+e.data2.length+"")}})]),e._l(e.data2,(function(t){return[a("div",{staticStyle:{display:"inline","margin-right":"40px"},on:{mouseenter:function(a){return e.enter(t.id,"1")},mouseleave:function(a){return e.leave(t.id,"1")}}},[a("el-card",{staticStyle:{width:"300px",display:"inline-block","margin-top":"15px"},attrs:{shadow:"hover"}},[a("div",{staticStyle:{display:"inline-block",width:"15px","margin-left":"5px",height:"20px","line-height":"20px","vertical-align":"middle"}},[a("div",{style:{display:t.showCheckBox||t.checked?"inline-block":"none"}},[a("el-checkbox",{on:{change:function(a){return e.handleCheckChange(t.id,"0")}},model:{value:t.checked,callback:function(a){e.$set(t,"checked",a)},expression:"item.checked"}})],1)]),a("div",{staticStyle:{display:"inline",width:"30px",margin:"0 15px"}},[a("img",{staticClass:"user_photo_img radius3",attrs:{src:t.userPhoto}})]),a("div",{staticClass:"text-over-hidden",staticStyle:{display:"inline-block",width:"220px",height:"20px","line-height":"20px","vertical-align":"middle"}},[a("span",{staticClass:"text-general-color",domProps:{innerHTML:e._s(t.name)}}),e._v("    "),a("span",{staticClass:"text-second-color",staticStyle:{"font-size":"12px","-webkit-transform":"scale(0.9)"}},[e._v(e._s(t.role))])])])],1)]}))],2),a("el-footer",{directives:[{name:"show",rawName:"v-show",value:e.showFooter,expression:"showFooter"}],attrs:{height:e.footerHeight}},[a("div",{staticStyle:{"border-top":"1px solid #F2F2F2",height:"44px"}},[a("div",{staticStyle:{padding:"8px","margin-left":"20px"}},[a("el-checkbox",{staticStyle:{"margin-right":"10px"},attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}}),a("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"100px"},attrs:{type:"primary"},on:{click:function(t){return e.changeRole()}}},[e._v("变更角色")]),a("awsui-button",{staticClass:"button-general-color-reverse2",staticStyle:{width:"100px"},attrs:{plain:""},on:{click:function(t){return e.removeUsers()}}},[e._v("删除用户")]),a("awsui-button",{staticClass:"button-general-color-reverse3",staticStyle:{width:"100px"},attrs:{plain:""},on:{click:e.closeFooter}},[e._v("取消")])],1)])]),a("el-drawer",{ref:"drawer",attrs:{id:"drawer",title:"添加用户",visible:e.drawerVisible,"custom-class":"text-general-color","destroy-on-close":!0,wrapperClosable:!1,size:"700px",direction:"rtl","before-close":e.handleDrawerClose},on:{"update:visible":function(t){e.drawerVisible=t},opened:e.handleOpenedDrawer}},[a("div",{staticStyle:{width:"100%",height:"100%","border-top":"1px solid #F2F2F2"},attrs:{id:"drawerDiv"}},[a("div",{style:{height:e.drawerMainHeight,overflow:"auto",margin:"10px 20px"}},[a("div",{staticClass:"text-general-color category-title"},[a("p",{staticStyle:{"padding-left":"5px"}},[e._v("管理用户")])]),a("el-input",{attrs:{size:"medium",readonly:"",placeholder:"请选择"},nativeOn:{click:function(t){return e.choiceBpmOrgUser("0")}}}),a("p",{staticStyle:{margin:"10px 0"},domProps:{innerHTML:e._s("已选择("+e.drawerData1.length+"")}}),a("div",[e._l(e.drawerData1,(function(t){return[a("div",{staticClass:"row",attrs:{name:t.id}},[a("div",{staticClass:"text-over-hidden",staticStyle:{display:"inline-block",width:"88%"}},[a("span",[e._v(e._s(t.name))])]),a("div",{staticClass:"operate-icon-display",staticStyle:{position:"relative",top:"-6px"}},[a("i",{staticClass:"awsui-iconfont",staticStyle:{display:"inline-block",cursor:"pointer"},on:{click:function(a){return e.removeDrawerUser(t.id,"0")}}},[e._v("")])])])]}))],2),a("div",{staticClass:"text-general-color category-title"},[a("p",{staticStyle:{"padding-left":"5px"}},[e._v("梳理用户")])]),a("el-input",{attrs:{size:"medium",readonly:"",placeholder:"请选择"},nativeOn:{click:function(t){return e.choiceBpmOrgUser("1")}}}),a("p",{staticStyle:{margin:"10px 0"},domProps:{innerHTML:e._s("已选择("+e.drawerData2.length+"")}}),a("div",[e._l(e.drawerData2,(function(t){return[a("div",{staticClass:"row",attrs:{name:t.id}},[a("div",{staticClass:"text-over-hidden",staticStyle:{display:"inline-block",width:"88%"}},[a("span",[e._v(e._s(t.name))])]),a("div",{staticClass:"operate-icon-display",staticStyle:{position:"relative",top:"-6px"}},[a("i",{staticClass:"awsui-iconfont",staticStyle:{display:"inline-block",cursor:"pointer"},on:{click:function(a){return e.removeDrawerUser(t.id,"1")}}},[e._v("")])])])]}))],2)],1),a("div",{style:{height:e.drawerFooterHeight,visibility:"hidden","background-color":"#F5F7FA"},attrs:{id:"drawerFooter"}},[a("div",{staticStyle:{"margin-top":"10px","margin-right":"5px",float:"right"}},[a("awsui-button",{staticClass:"button-general-color",staticStyle:{width:"100px"},attrs:{type:"primary"},on:{click:e.saveDrawer}},[e._v("保存")]),a("awsui-button",{staticClass:"button-general-color-reverse3",staticStyle:{width:"100px"},attrs:{plain:""},on:{click:e.closeDrawer}},[e._v("取消")])],1)])])]),a("BPMOrgAddress",{ref:"bpmOrgAddress",attrs:{visible:e.bpmOrg.visible,addressType:e.bpmOrg.addressType,highSecurityFilter:e.bpmOrg.highSecurityFilter,multiple:!0,title:e.bpmOrg.title},on:{"update:visible":function(t){return e.$set(e.bpmOrg,"visible",t)},cancel:function(t){e.bpmOrg.visible=!1},getResult:e.saveBpmOrgCompnentResult}})],1)},s=[],r=a("0f08"),n=a("4cbb"),o={name:"User",components:{BPMOrgAddress:n["a"]},data(){return{headerHeight:"50px",footerHeight:"45px",mainHeight:parseInt(this.$store.getters.getTopMainHeightFn)-50-(this.showFooter?45:0)+"px",searchInput:"",isIndeterminate:!0,checkAll:!1,showFooter:!1,data1:[],dataTemp1:[],data2:[],dataTemp2:[],drawerVisible:!1,drawerMainHeight:"0px",drawerFooterHeight:"50px",drawerData1:[],drawerData2:[],bpmOrg:{visible:!1,addressType:"user",title:"选择用户",highSecurityFilter:"sysAdmin,auditor",source:"0"}}},mounted(){this.initData()},methods:{initData(){const e=this,t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_user_data_query"}};r["a"].post(t).then((function(t){if("ok"==t.result){const a=t.data.data1;for(let e=0;e<a.length;e++)a[e].checked=!1,a[e].showCheckBox=!1;const i=t.data.data2;for(let e=0;e<i.length;e++)i[e].checked=!1,i[e].showCheckBox=!1;e.data1=a,e.data2=i,e.dataTemp1=JSON.parse(JSON.stringify(e.data1)),e.dataTemp2=JSON.parse(JSON.stringify(e.data2))}else e.$message(t.msg)})).catch(e=>{console.log(e)})},enter(e,t){if("0"==t)for(let a=0;a<this.data1.length;a++)if(this.data1[a].id==e){this.data1[a].showCheckBox=!0;break}if("1"==t)for(let a=0;a<this.data2.length;a++)if(this.data2[a].id==e){this.data2[a].showCheckBox=!0;break}},leave(e,t){if("0"==t)for(let a=0;a<this.data1.length;a++)if(this.data1[a].id==e){this.data1[a].showCheckBox=!1;break}if("1"==t)for(let a=0;a<this.data2.length;a++)if(this.data2[a].id==e){this.data2[a].showCheckBox=!1;break}},handleCheckChange(e){const t=this;let a=0;for(let i=0;i<t.data1.length;i++){const e=t.data1[i];e.checked&&a++}for(let i=0;i<t.data2.length;i++){const e=t.data2[i];e.checked&&a++}t.isIndeterminate=a>0&&a<t.data1.length+t.data2.length,t.checkAll=a==t.data1.length+t.data2.length,t.showFooter=a>0},handleCheckAllChange(e){if(e){for(let e=0;e<this.data1.length;e++)this.data1[e].checked=!0;for(let e=0;e<this.data2.length;e++)this.data2[e].checked=!0}else{for(let e=0;e<this.data1.length;e++)this.data1[e].checked=!1;for(let e=0;e<this.data2.length;e++)this.data2[e].checked=!1;this.showFooter=!1}this.isIndeterminate=!1},changeRole(){const e=[];for(let s=0;s<this.data1.length;s++)this.data1[s].checked&&e.push(this.data1[s].id);for(let s=0;s<this.data2.length;s++)this.data2[s].checked&&e.push(this.data2[s].id);if(0==e.length)return void this.$message({message:"请选择需要变更角色的用户",type:"warning"});var t=this.getSecAdminUsers(e);if(t[0].length>0)return void this.$message({message:"三员模式下安全保密员用户"+t[1].join("、")+"不允许变更",type:"warning"});if(e.indexOf("admin")>-1)return void this.$message({message:"admin管理员用户不允许变更",type:"warning"});const a=this,i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_user_role_change",userIds:e.join(",")}};r["a"].post(i).then((function(e){if("ok"==e.result){if(e.data.isExit)return void a.$message({message:"变更成功,即将退出系统",type:"warning",onClose:function(){const e=wHref+"?sid="+a.$store.state.sessionId+"&cmd=com.actionsoft.apps.coe.pal_user_logout";window.location.replace(e)}});a.$message({message:"变更成功",type:"success"}),a.closeFooter(),a.initData()}else a.$message(e.msg)})).catch(e=>{console.log(e)})},removeUsers(){const e=[];for(let i=0;i<this.data1.length;i++)this.data1[i].checked&&e.push(this.data1[i].id);for(let i=0;i<this.data2.length;i++)this.data2[i].checked&&e.push(this.data2[i].id);if(0==e.length)return void this.$message({message:"请选择需要删除的用户",type:"warning"});var t=this.getSecAdminUsers(e);if(t[0].length>0)return void this.$message({message:"三员模式下安全保密员用户"+t[1].join("、")+"不允许删除",type:"warning"});if(e.indexOf("admin")>-1)return void this.$message({message:"admin管理员用户不允许删除",type:"warning"});const a=this;a.$confirm("确定要删除吗?","提示",{confirmButtonText:"确定",confirmButtonClass:"button-general-color",cancelButtonText:"取消",type:"warning"}).then(()=>{const t={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_user_remove",userIds:e.join(",")}};r["a"].post(t).then((function(e){"ok"==e.result?(a.$message({message:"删除成功",type:"success"}),a.closeFooter(),a.initData()):a.$message(e.msg)})).catch(e=>{console.log(e)})}).catch(()=>{})},closeFooter(){this.handleCheckAllChange(!1)},searchUser(){if(this.closeFooter(),this.searchInput&&""!=this.searchInput.trim()){const e=[];for(let a=0;a<this.dataTemp1.length;a++)if(this.dataTemp1[a].name.indexOf(this.searchInput)>-1){const t=JSON.parse(JSON.stringify(this.dataTemp1[a]));t.name=t.name.replace(new RegExp(this.searchInput,"g"),'<span style="color: #4E7FF9">'+this.searchInput+"</span>"),e.push(t)}this.data1=e;const t=[];for(let a=0;a<this.dataTemp2.length;a++)if(this.dataTemp2[a].name.indexOf(this.searchInput)>-1){const e=JSON.parse(JSON.stringify(this.dataTemp2[a]));e.name=e.name.replace(new RegExp(this.searchInput,"g"),'<span style="color: #4E7FF9">'+this.searchInput+"</span>"),t.push(e)}this.data2=t}else this.data1=this.dataTemp1,this.data2=this.dataTemp2},addUser(){this.drawerVisible=!0},handleDrawerClose(e){e()},handleOpenedDrawer(){this.drawerMainHeight=document.getElementById("drawer").offsetHeight-parseInt(this.drawerFooterHeight)-64-20+"px",document.getElementById("drawerFooter").style.visibility="visible",this.drawerData1=JSON.parse(JSON.stringify(this.dataTemp1)),this.drawerData2=JSON.parse(JSON.stringify(this.dataTemp2))},removeDrawerUser(e,t){if("0"==t&&"admin"==e)return void this.$message({message:"admin管理员用户不允许删除",type:"warning"});if("0"==t){var a=this.getSecAdminUsers([e]);if(a[0].length>0)return void this.$message({message:"三员模式下安全保密员用户["+a[1].join("、")+"]不允许删除",type:"warning"})}const i=this;i.$confirm("确定要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{let a=[];"0"==t?a=this.drawerData1:"1"==t&&(a=this.drawerData2);for(let t=0;t<a.length;t++)if(e==a[t].id){a.splice(t,1);break}}).catch(()=>{})},saveDrawer(){const e=[],t=[];for(let s=0;s<this.drawerData1.length;s++)e.push(this.drawerData1[s].id);for(let s=0;s<this.drawerData2.length;s++)if(t.push(this.drawerData2[s].id),e.indexOf(this.drawerData2[s].id)>-1)return void this.$message({message:"用户["+this.drawerData2[s].name+"]不能同时设置为管理员和普通用户",type:"warning"});const a=this,i={url:"jd",data:{cmd:"com.actionsoft.apps.coe.pal_user_save",managerUsers:e.join(","),generalUsers:t.join(",")}};r["a"].post(i).then((function(e){"ok"==e.result?(a.$message({message:"保存成功",type:"success"}),a.closeDrawer(),a.showFooter=!1,a.initData()):"warning"==e.result?a.$message({message:e.msg,type:"warning"}):a.$message.error(e.msg)})).catch(e=>{console.log(e)})},closeDrawer(){this.$refs.drawer.closeDrawer()},choiceBpmOrgUser(e){this.bpmOrg.source=e,this.bpmOrg.visible=!0},saveBpmOrgCompnentResult(e){this.bpmOrg.visible=!1;let t=[];t="0"==this.bpmOrg.source?this.drawerData1:this.drawerData2;const a=[];for(let i=0;i<t.length;i++)for(let s=0;s<e.length;s++)t[i].id==e[s].id&&a.push(t[i].id);for(let i=0;i<e.length;i++)a.indexOf(e[i].id)<0&&t.push(e[i])},getSecAdminUsers(e){let t=[[],[]];for(let a=0;a<this.dataTemp1.length;a++)this.dataTemp1[a].isSecAdminUser&&e.indexOf(this.dataTemp1[a].id)>-1&&(t[0].push(this.dataTemp1[a].id),t[1].push(this.dataTemp1[a].name));for(let a=0;a<this.dataTemp2.length;a++)this.dataTemp2[a].isSecAdminUser&&e.indexOf(this.dataTemp2[a].id)>-1&&(t[0].push(this.dataTemp2[a].id),t[1].push(this.dataTemp2[a].name));return t}},computed:{listenTopMainHeight(){return this.$store.getters.getTopMainHeightFn}},watch:{listenTopMainHeight:function(e,t){this.mainHeight=parseInt(this.$store.getters.getTopMainHeightFn)-50-(this.showFooter?45:0)+"px",this.drawerVisible&&(this.drawerMainHeight=document.getElementById("drawer").offsetHeight-parseInt(this.drawerFooterHeight)-64-20+"px")}}},l=o,d=(a("318a"),a("cba8")),c=Object(d["a"])(l,i,s,!1,null,"189b73c4",null);t["default"]=c.exports},"9ae6":function(e,t,a){},b142:function(e,t,a){"use strict";a("9ae6")},fc2e:function(e,t,a){}}]);