apps/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/main/js/chunk-79148172.25989b20.js

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