gds-plus-design-vue 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{chartbi.06e48153.js → chartbi.5eded588.js} +20 -20
- package/lib/{chartbi.cdd1e365.mjs → chartbi.c3bc6adb.mjs} +17 -9
- package/lib/gd-initial.js +16 -16
- package/lib/gd-initial.mjs +6428 -3567
- package/lib/main.00e2ba37.mjs +123 -0
- package/lib/main.55fab1ce.mjs +198 -0
- package/lib/main.7e1495ec.js +1 -0
- package/lib/{main.4aebe1c9.js → main.9c85b10c.js} +1 -1
- package/lib/main.a27e1e54.js +1 -0
- package/lib/{main.9801708f.js → main.a794f7cf.js} +1 -1
- package/lib/{main.a30b25d6.mjs → main.b25a9b4c.mjs} +6 -6
- package/lib/{main.eb4b260e.mjs → main.b4ad6d81.mjs} +3 -3
- package/lib/{messages.a1335b0f.mjs → messages.bc3bc0e8.mjs} +77 -77
- package/lib/{messages.30e41348.js → messages.fa3d97b5.js} +2 -2
- package/lib/style.css +2 -2
- package/lib/{system.account.20f9e450.mjs → system.account.868f96f9.mjs} +18 -18
- package/lib/{system.account.1ff630c9.js → system.account.e82580de.js} +1 -1
- package/lib/{system.config.532ab3b8.js → system.config.6aae9ea6.js} +1 -1
- package/lib/{system.config.c85c05e9.mjs → system.config.71615d2b.mjs} +2 -2
- package/lib/{system.datasource.f64a59de.mjs → system.datasource.009a1673.mjs} +2 -2
- package/lib/{system.datasource.272f1add.js → system.datasource.523ae242.js} +1 -1
- package/lib/{system.dict.a23e8cdf.js → system.dict.0111a3bc.js} +1 -1
- package/lib/{system.dict.565d69ca.mjs → system.dict.8f562e89.mjs} +2 -2
- package/lib/{system.duplicatechecking.f66790d1.js → system.duplicatechecking.1865e065.js} +1 -1
- package/lib/{system.duplicatechecking.268544dd.mjs → system.duplicatechecking.f517abed.mjs} +2 -2
- package/lib/{system.email.ada25702.mjs → system.email.4c484530.mjs} +2 -2
- package/lib/{system.email.00a93855.js → system.email.70351605.js} +1 -1
- package/lib/{system.fieldsecurity.d14384cc.mjs → system.fieldsecurity.9f9f73df.mjs} +1 -1
- package/lib/{system.fieldsecurity.ede73621.js → system.fieldsecurity.d11088e3.js} +1 -1
- package/lib/{system.file.aa567566.js → system.file.001a01bc.js} +1 -1
- package/lib/{system.file.a23b3c83.mjs → system.file.96b3ce1e.mjs} +2 -2
- package/lib/{system.log.8a9f4a4d.mjs → system.log.80feb1c4.mjs} +2 -2
- package/lib/{system.log.b3666991.js → system.log.f7afb251.js} +1 -1
- package/lib/{system.machine.fc392d7f.mjs → system.machine.52e8a4f3.mjs} +1 -1
- package/lib/{system.machine.7fa3e3d1.js → system.machine.6e46b7a3.js} +1 -1
- package/lib/system.notice.365ddd35.js +1 -0
- package/lib/{system.notice.6d0aa32c.mjs → system.notice.b4247147.mjs} +240 -224
- package/lib/{system.noticereceived.e5ef5883.js → system.noticereceived.5545acf8.js} +1 -1
- package/lib/{system.noticereceived.70963f1b.mjs → system.noticereceived.eef2cf6e.mjs} +5 -4
- package/lib/{system.onlineuser.c58fb6ce.mjs → system.onlineuser.de5f62bf.mjs} +2 -2
- package/lib/{system.onlineuser.99e4de37.js → system.onlineuser.fd9fdc66.js} +1 -1
- package/lib/{system.org.638db6d1.mjs → system.org.94393315.mjs} +3 -3
- package/lib/{system.org.56151be8.js → system.org.d22168d6.js} +1 -1
- package/lib/{system.permissions.fcd56f67.js → system.permissions.3c5c3573.js} +1 -1
- package/lib/{system.permissions.aa0cc0d6.mjs → system.permissions.ccbe352d.mjs} +3 -3
- package/lib/{system.plugin.b17efa53.js → system.plugin.5d47e679.js} +1 -1
- package/lib/{system.plugin.beb44900.mjs → system.plugin.8caa5d1f.mjs} +2 -2
- package/lib/{system.pos.e8d9c488.js → system.pos.caaef4fc.js} +1 -1
- package/lib/{system.pos.699e8dd6.mjs → system.pos.e4be69c4.mjs} +2 -2
- package/lib/{system.promptmanagement.2ce3e426.mjs → system.promptmanagement.1ad89863.mjs} +2 -2
- package/lib/{system.promptmanagement.109a07f5.js → system.promptmanagement.e73f64a2.js} +1 -1
- package/lib/{system.role.230b1445.mjs → system.role.0323ddd5.mjs} +220 -206
- package/lib/{system.role.f0d4082c.js → system.role.b5b55ddd.js} +1 -1
- package/lib/{system.sumberrules.38017ad1.js → system.sumberrules.2babdd81.js} +1 -1
- package/lib/{system.sumberrules.fa1aab86.mjs → system.sumberrules.42965c1e.mjs} +2 -2
- package/lib/{system.team.aeaede22.mjs → system.team.28168433.mjs} +80 -49
- package/lib/system.team.a3527834.js +1 -0
- package/lib/{system.teammembers.2e3309c3.mjs → system.teammembers.08f3ce38.mjs} +3 -3
- package/lib/{system.teammembers.29128f16.js → system.teammembers.4b11e49b.js} +1 -1
- package/lib/{system.timers.0ec63785.mjs → system.timers.040b9bce.mjs} +2 -2
- package/lib/{system.timers.b62568ad.js → system.timers.310b3710.js} +1 -1
- package/lib/{system.translation.887fa90d.js → system.translation.a4396166.js} +1 -1
- package/lib/{system.translation.e71455aa.mjs → system.translation.c0068d8f.mjs} +3 -3
- package/lib/{system.user.bed5f82a.js → system.user.20a5e7b4.js} +5 -5
- package/lib/{system.user.84227a85.mjs → system.user.84e77277.mjs} +53 -23
- package/lib/{system.useraffiliation.7ec0fcae.js → system.useraffiliation.307e3cd7.js} +1 -1
- package/lib/{system.useraffiliation.b3f03a33.mjs → system.useraffiliation.fb961d98.mjs} +3 -3
- package/lib/{system.webresource.f8b78dd0.js → system.webresource.0382b6b1.js} +1 -1
- package/lib/{system.webresource.e6cb9173.mjs → system.webresource.2d0ab7a6.mjs} +3 -3
- package/lib/{system.welcome.472f099b.js → system.welcome.67d20fa4.js} +1 -1
- package/lib/{system.welcome.120f4b50.mjs → system.welcome.aaac4a40.mjs} +1 -1
- package/locale/en_US.js +47 -8
- package/locale/id_ID.js +45 -7
- package/locale/vi_VN.js +45 -7
- package/locale/zh_CN.js +40 -2
- package/package.json +1 -1
- package/lib/main.05252737.mjs +0 -87
- package/lib/main.458dc0a0.js +0 -1
- package/lib/system.notice.5fb1485e.js +0 -1
- package/lib/system.team.3826e252.js +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
"use strict";const C=require("./system.notice.5fb1485e.js"),w=require("./system.account.1ff630c9.js"),T=require("./chartbi.06e48153.js"),K=require("./messages.30e41348.js"),F=require("./system.role.f0d4082c.js");const O={data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"90%",selectedRowKeys:[],allRowData:[]}},components:{RoleForm:F.GDpackage},computed:{height(){return this.screenHeight-(this.fullscreen?160:340)},...T.mapGetters(["screenHeight"])},methods:{handleSubmit(){this.confirmLoading=!0;let i=[];i=this.allRowData.filter(t=>!this.selectedRowKeys.some(r=>r===t.id));const e=i.map(t=>t.id);w.sysUserChangeRole({id:this.record.id,addRoleIdList:this.selectedRowKeys,removeRoleIdList:e}).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.closed(),this.$emit("ok")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+t.message),this.confirmLoading=!1})},open(i){this.confirmLoading=!0,this.record=i,this.visible=!0,w.sysUserOwnRole({id:i.id}).then(e=>{e.code===200&&(this.selectedRowKeys=e.data),this.$nextTick(()=>{setTimeout(()=>{this.$refs.roleForm.refresh()},0)}),this.confirmLoading=!1})},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},onSelectChange(i,e,t){this.selectedRowKeys=i,this.allRowData=t.rows},doEvent(i){const e=i.item.functionName;this[e]&&this[e]()}}};var N=function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!0,"append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(r){e.visible=r},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.btn.authorizationRole","\u6388\u6743\u89D2\u8272"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?t("RoleForm",{ref:"roleForm",attrs:{height:e.height,openMode:"components",openSelecteKeys:e.selectedRowKeys},on:{onSelectChange:e.onSelectChange}}):e._e()],1)],2)},P=[],B=T.normalizeComponent(O,N,P,!1,null,"117b9c7a",null,null);const D=B.exports;const U={data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},showForm:!1,visible:!1,confirmLoading:!1,fullscreen:!1,width:"600px",orgTree:[],ruleFormData:{orgIded:"",orgId:""},rules:{orgId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]}}},methods:{save(){let i=this;this.$confirm(this.$i18nt("gd.https.orgOldNameTip","\u7528\u6237\u6240\u5C5E\u5386\u53F2\u6570\u636E\u673A\u6784\u4F1A\u66F4\u65B0,\u662F\u5426\u786E\u8BA4\u4FEE\u6539\u7528\u6237\u6240\u5C5E\u673A\u6784?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.saveOk","\u786E\u8BA4\u4FDD\u5B58"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(e,t,r)=>{if(e!=="confirm"){r();return}r(),w.changeUserBUJob({userId:i.record.id,newBusiUnitId:this.ruleFormData.orgId}).then(n=>{n.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.closed(),this.$emit("ok")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+n.message),this.confirmLoading=!1})}})},handleSubmit(){this.confirmLoading=!0,this.$refs.ruleForm.validate(i=>{i?(this.confirmLoading=!1,this.save()):this.confirmLoading=!1})},open(i){this.confirmLoading=!0,this.record=i,this.visible=!0,this.showForm=!1,C.getOrgTree().then(e=>{const t=r=>(r=r.filter((n,s)=>(n.id===i.orgid&&(n.disabled=!0),n.children&&(n.children=t(n.children)),!0)),r);this.orgTree=t(e.data),this.ruleFormData={orgIded:i.orgid,orgId:""},this.showForm=!0,this.confirmLoading=!1,this.$nextTick(()=>{setTimeout(()=>{this.$refs.ruleForm.clearValidate()},0)})})},closed(){this.fullscreen=!1,this.visible=!1,this.$emit("closed")},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(i){const e=i.item.functionName;this[e]&&this[e]()}}};var I=function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!0,"append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(r){e.visible=r},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.btn.updateInstitutions","\u66F4\u65B0\u673A\u6784"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"130px"}},[e.showForm?t("el-form",{ref:"ruleForm",attrs:{"label-width":"110px","label-position":"top",model:e.ruleFormData,size:"mini",rules:e.rules},nativeOn:{submit:function(r){r.preventDefault()}}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.user.orgOldName","\u539F\u673A\u6784\u540D\u79F0"),prop:"orgIded"}},[t("gd-select-tree",{attrs:{filterable:!0,"tree-options":e.orgTree,"default-value":e.ruleFormData.orgIded,placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:!0},model:{value:e.ruleFormData.orgIded,callback:function(r){e.$set(e.ruleFormData,"orgIded",r)},expression:"ruleFormData.orgIded"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.user.organization","\u6240\u5C5E\u673A\u6784"),prop:"orgId"}},[t("gd-select-tree",{attrs:{filterable:!0,"tree-options":e.orgTree,placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.ruleFormData.orgId,callback:function(r){e.$set(e.ruleFormData,"orgId",r)},expression:"ruleFormData.orgId"}})],1)],1):e._e()],1)],2)},A=[],M=T.normalizeComponent(U,I,A,!1,null,"12675dc5",null,null);const q=M.exports,j={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.account",prop:"account",label:"\u8D26\u53F7",width:"220",type:"slot",slotType:"account",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.user.name",prop:"name",label:"\u59D3\u540D",width:"160",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.sex",prop:"gender",width:"120",label:"\u6027\u522B",type:"slot",slotType:"gender",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.displayName",prop:"orgname",label:"\u673A\u6784\u540D\u79F0",width:"180",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.phone",prop:"phone",width:"160",label:"\u624B\u673A",align:"left"},{transKey:"gd.user.status",prop:"statecodes",label:"\u72B6\u6001",width:"120",type:"slot",slotType:"statecodes",align:"center",dictTypeCode:"state_code",renderHeader:(i,...e)=>this.renderHeader(i,...e,{effectType:"checkbox",dictTypeCode:"state_code"})}],formColumns:[{transKey:"gd.user.account",effectType:"input",prop:"account",label:"\u8D26\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change",min:2}]},{transKey:"gd.user.name",prop:"name",effectType:"input",label:"\u59D3\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.sex",prop:"gender",effectType:"radio",label:"\u6027\u522B",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",dictTypeCode:"gender",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.birthday",prop:"birthday",effectType:"date",label:"\u751F\u65E5",placeholder:"\u8BF7\u8F93\u5165",valueFormat:"yyyy-MM-dd",placeholderTransKey:"gd.placeholder.select",rules:[]},{transKey:"gd.user.phone",effectType:"input",prop:"phone",label:"\u624B\u673A\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.email",effectType:"input",prop:"email",label:"\u90AE\u7BB1",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"},{type:"email",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u53F7!",transKey:"gd.account.emailTip"}]},{transKey:"gd.user.nickname",prop:"nickname",effectType:"input",label:"\u6635\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.user.tel",prop:"tel",effectType:"input",label:"\u7535\u8BDD",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.org.displayName",prop:"orgid",effectType:"selectTree",label:"\u6240\u5C5E\u673A\u6784",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",treeOptions:[],rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.user.PSDNeverExpire",prop:"psdneverexpire",effectType:"switch",label:"\u5BC6\u7801\u6C38\u4E0D\u8FC7\u671F",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysUser:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysUser:edit"},{displayName:"\u66F4\u65B0\u673A\u6784",functionName:"updateInstitutions",show:!0,transKey:"gd.btn.updateInstitutions",icon:"el-icon-edit",name:"sysUser:updateInstitutions"},{displayName:"\u6388\u6743\u89D2\u8272",functionName:"userRole",show:!0,transKey:"gd.btn.authorizationRole",icon:"el-icon-edit",name:"sysUser:grantRole"},{displayName:"\u91CD\u7F6E\u5BC6\u7801",functionName:"resetPwd",show:!0,transKey:"gd.btn.resetPassword",icon:"el-icon-edit",btnType:"danger",name:"sysUser:resetPwd"},{displayName:"\u542F\u7528",functionName:"enable",show:!1,transKey:"gd.btn.enable",icon:"el-icon-video-play",name:"sysUser:changeStatus"},{displayName:"\u505C\u7528",functionName:"deactivated",show:!1,btnType:"danger",icon:"el-icon-discover",transKey:"gd.btn.deactivate",name:"sysUser:changeStatus"},{displayName:"\u5BFC\u5165",functionName:"importUser",show:!0,icon:"gd-icon-daoru1",transKey:"gd.btn.import",name:"sysUser:import"},{displayName:"\u5BFC\u51FA",functionName:"exportUser",show:!0,icon:"gd-icon-daoru",transKey:"gd.btn.export",name:"sysUser:export"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.user.status",prop:"stateCodes",label:"\u72B6\u6001",effectType:"checkbox",dictTypeCode:"state_code",selectType:"checkbox",rules:[]}]}}};var E={exports:{}};/*!
|
|
1
|
+
"use strict";const C=require("./system.notice.365ddd35.js"),w=require("./system.account.e82580de.js"),T=require("./chartbi.5eded588.js"),K=require("./messages.fa3d97b5.js"),F=require("./system.role.b5b55ddd.js");const O={data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"90%",selectedRowKeys:[],allRowData:[]}},components:{RoleForm:F.GDpackage},computed:{height(){return this.screenHeight-(this.fullscreen?160:340)},...T.mapGetters(["screenHeight"])},methods:{handleSubmit(){this.confirmLoading=!0;let i=[];i=this.allRowData.filter(t=>!this.selectedRowKeys.some(r=>r===t.id));const e=i.map(t=>t.id);w.sysUserChangeRole({id:this.record.id,addRoleIdList:this.selectedRowKeys,removeRoleIdList:e}).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.closed(),this.$emit("ok")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+t.message),this.confirmLoading=!1})},open(i){this.confirmLoading=!0,this.record=i,this.visible=!0,w.sysUserOwnRole({id:i.id}).then(e=>{e.code===200&&(this.selectedRowKeys=e.data),this.$nextTick(()=>{setTimeout(()=>{this.$refs.roleForm.refresh()},0)}),this.confirmLoading=!1})},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},onSelectChange(i,e,t){this.selectedRowKeys=i,this.allRowData=t.rows},doEvent(i){const e=i.item.functionName;this[e]&&this[e]()}}};var N=function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!0,"append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(r){e.visible=r},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.btn.authorizationRole","\u6388\u6743\u89D2\u8272"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?t("RoleForm",{ref:"roleForm",attrs:{height:e.height,openMode:"components",openSelecteKeys:e.selectedRowKeys},on:{onSelectChange:e.onSelectChange}}):e._e()],1)],2)},P=[],B=T.normalizeComponent(O,N,P,!1,null,"117b9c7a",null,null);const D=B.exports;const U={data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},showForm:!1,visible:!1,confirmLoading:!1,fullscreen:!1,width:"600px",orgTree:[],ruleFormData:{orgIded:"",orgId:""},rules:{orgId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]}}},methods:{save(){let i=this;this.$confirm(this.$i18nt("gd.https.orgOldNameTip","\u7528\u6237\u6240\u5C5E\u5386\u53F2\u6570\u636E\u673A\u6784\u4F1A\u66F4\u65B0,\u662F\u5426\u786E\u8BA4\u4FEE\u6539\u7528\u6237\u6240\u5C5E\u673A\u6784?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.saveOk","\u786E\u8BA4\u4FDD\u5B58"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(e,t,r)=>{if(e!=="confirm"){r();return}r(),w.changeUserBUJob({userId:i.record.id,newBusiUnitId:this.ruleFormData.orgId}).then(n=>{n.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.closed(),this.$emit("ok")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+n.message),this.confirmLoading=!1})}})},handleSubmit(){this.confirmLoading=!0,this.$refs.ruleForm.validate(i=>{i?(this.confirmLoading=!1,this.save()):this.confirmLoading=!1})},open(i){this.confirmLoading=!0,this.record=i,this.visible=!0,this.showForm=!1,C.getOrgTree().then(e=>{const t=r=>(r=r.filter((n,s)=>(n.id===i.orgid&&(n.disabled=!0),n.children&&(n.children=t(n.children)),!0)),r);this.orgTree=t(e.data),this.ruleFormData={orgIded:i.orgid,orgId:""},this.showForm=!0,this.confirmLoading=!1,this.$nextTick(()=>{setTimeout(()=>{this.$refs.ruleForm.clearValidate()},0)})})},closed(){this.fullscreen=!1,this.visible=!1,this.$emit("closed")},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(i){const e=i.item.functionName;this[e]&&this[e]()}}};var I=function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!0,"append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(r){e.visible=r},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.btn.updateInstitutions","\u66F4\u65B0\u673A\u6784"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"130px"}},[e.showForm?t("el-form",{ref:"ruleForm",attrs:{"label-width":"110px","label-position":"top",model:e.ruleFormData,size:"mini",rules:e.rules},nativeOn:{submit:function(r){r.preventDefault()}}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.user.orgOldName","\u539F\u673A\u6784\u540D\u79F0"),prop:"orgIded"}},[t("gd-select-tree",{attrs:{filterable:!0,"tree-options":e.orgTree,"default-value":e.ruleFormData.orgIded,placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:!0},model:{value:e.ruleFormData.orgIded,callback:function(r){e.$set(e.ruleFormData,"orgIded",r)},expression:"ruleFormData.orgIded"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.user.organization","\u6240\u5C5E\u673A\u6784"),prop:"orgId"}},[t("gd-select-tree",{attrs:{filterable:!0,"tree-options":e.orgTree,placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.ruleFormData.orgId,callback:function(r){e.$set(e.ruleFormData,"orgId",r)},expression:"ruleFormData.orgId"}})],1)],1):e._e()],1)],2)},A=[],M=T.normalizeComponent(U,I,A,!1,null,"12675dc5",null,null);const q=M.exports,j={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.account",prop:"account",label:"\u8D26\u53F7",width:"220",type:"slot",slotType:"account",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.user.name",prop:"name",label:"\u59D3\u540D",width:"160",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.sex",prop:"gender",width:"120",label:"\u6027\u522B",type:"slot",slotType:"gender",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.displayName",prop:"orgname",label:"\u673A\u6784\u540D\u79F0",width:"180",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.phone",prop:"phone",width:"160",label:"\u624B\u673A",align:"left"},{transKey:"gd.user.status",prop:"statecodes",label:"\u72B6\u6001",width:"120",type:"slot",slotType:"statecodes",align:"center",dictTypeCode:"state_code",renderHeader:(i,...e)=>this.renderHeader(i,...e,{effectType:"checkbox",dictTypeCode:"state_code"})}],formColumns:[{transKey:"gd.user.account",effectType:"input",prop:"account",label:"\u8D26\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change",min:2}]},{transKey:"gd.user.name",prop:"name",effectType:"input",label:"\u59D3\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.sex",prop:"gender",effectType:"radio",label:"\u6027\u522B",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",dictTypeCode:"gender",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.birthday",prop:"birthday",effectType:"date",label:"\u751F\u65E5",placeholder:"\u8BF7\u8F93\u5165",valueFormat:"yyyy-MM-dd",placeholderTransKey:"gd.placeholder.select",rules:[]},{transKey:"gd.user.phone",effectType:"input",prop:"phone",label:"\u624B\u673A\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.email",effectType:"input",prop:"email",label:"\u90AE\u7BB1",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"},{type:"email",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u53F7!",transKey:"gd.account.emailTip"}]},{transKey:"gd.user.nickname",prop:"nickname",effectType:"input",label:"\u6635\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.user.tel",prop:"tel",effectType:"input",label:"\u7535\u8BDD",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.org.displayName",prop:"orgid",effectType:"selectTree",label:"\u6240\u5C5E\u673A\u6784",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",treeOptions:[],rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.user.PSDNeverExpire",prop:"psdneverexpire",effectType:"switch",label:"\u5BC6\u7801\u6C38\u4E0D\u8FC7\u671F",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.user.verificationMethod",prop:"authtype",effectType:"select",label:"\u9A8C\u8BC1\u65B9\u5F0F",placeholder:"\u8BF7\u9009\u62E9",dictTypeCode:"user_auth_type",placeholderTransKey:"gd.placeholder.select",treeOptions:[],rules:[]},{transKey:"gd.user.employeeID",prop:"employeeid",effectType:"input",label:"\u5DE5\u53F7",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.input",treeOptions:[],rules:[]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysUser:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysUser:edit"},{displayName:"\u66F4\u65B0\u673A\u6784",functionName:"updateInstitutions",show:!0,transKey:"gd.btn.updateInstitutions",icon:"el-icon-edit",name:"sysUser:updateInstitutions"},{displayName:"\u6388\u6743\u89D2\u8272",functionName:"userRole",show:!0,transKey:"gd.btn.authorizationRole",icon:"el-icon-edit",name:"sysUser:grantRole"},{displayName:"\u91CD\u7F6E\u5BC6\u7801",functionName:"resetPwd",show:!0,transKey:"gd.btn.resetPassword",icon:"el-icon-edit",btnType:"danger",name:"sysUser:resetPwd"},{displayName:"\u542F\u7528",functionName:"enable",show:!1,transKey:"gd.btn.enable",icon:"el-icon-video-play",name:"sysUser:changeStatus"},{displayName:"\u505C\u7528",functionName:"deactivated",show:!1,btnType:"danger",icon:"el-icon-discover",transKey:"gd.btn.deactivate",name:"sysUser:changeStatus"},{displayName:"\u5BFC\u5165",functionName:"importUser",show:!0,icon:"gd-icon-daoru1",transKey:"gd.btn.import",name:"sysUser:import"},{displayName:"\u5BFC\u51FA",functionName:"exportUser",show:!0,icon:"gd-icon-daoru",transKey:"gd.btn.export",name:"sysUser:export"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.user.status",prop:"searchStatus",label:"\u72B6\u6001",effectType:"checkbox",dictTypeCode:"state_code",selectType:"checkbox",rules:[]}]}}};var E={exports:{}};/*!
|
|
2
2
|
* clipboard.js v2.0.4
|
|
3
3
|
* https://zenorocha.github.io/clipboard.js
|
|
4
4
|
*
|
|
5
5
|
* Licensed MIT © Zeno Rocha
|
|
6
|
-
*/(function(i,e){(function(r,n){i.exports=n()})(w.commonjsGlobal,function(){return function(t){var r={};function n(s){if(r[s])return r[s].exports;var o=r[s]={i:s,l:!1,exports:{}};return t[s].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=r,n.d=function(s,o,a){n.o(s,o)||Object.defineProperty(s,o,{enumerable:!0,get:a})},n.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},n.t=function(s,o){if(o&1&&(s=n(s)),o&8||o&4&&typeof s=="object"&&s&&s.__esModule)return s;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:s}),o&2&&typeof s!="string")for(var c in s)n.d(a,c,function(h){return s[h]}.bind(null,c));return a},n.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return n.d(o,"a",o),o},n.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},n.p="",n(n.s=0)}([function(t,r,n){var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},o=function(){function m(g,v){for(var f=0;f<v.length;f++){var y=v[f];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(g,y.key,y)}}return function(g,v,f){return v&&m(g.prototype,v),f&&m(g,f),g}}(),a=n(1),c=l(a),h=n(3),b=l(h),p=n(4),u=l(p);function l(m){return m&&m.__esModule?m:{default:m}}function d(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function _(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function $(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var R=function(m){$(g,m);function g(v,f){d(this,g);var y=_(this,(g.__proto__||Object.getPrototypeOf(g)).call(this));return y.resolveOptions(f),y.listenClick(v),y}return o(g,[{key:"resolveOptions",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof f.action=="function"?f.action:this.defaultAction,this.target=typeof f.target=="function"?f.target:this.defaultTarget,this.text=typeof f.text=="function"?f.text:this.defaultText,this.container=s(f.container)==="object"?f.container:document.body}},{key:"listenClick",value:function(f){var y=this;this.listener=(0,u.default)(f,"click",function(k){return y.onClick(k)})}},{key:"onClick",value:function(f){var y=f.delegateTarget||f.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c.default({action:this.action(y),target:this.target(y),text:this.text(y),container:this.container,trigger:y,emitter:this})}},{key:"defaultAction",value:function(f){return S("action",f)}},{key:"defaultTarget",value:function(f){var y=S("target",f);if(y)return document.querySelector(y)}},{key:"defaultText",value:function(f){return S("text",f)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],y=typeof f=="string"?[f]:f,k=!!document.queryCommandSupported;return y.forEach(function(L){k=k&&!!document.queryCommandSupported(L)}),k}}]),g}(b.default);function S(m,g){var v="data-clipboard-"+m;if(!!g.hasAttribute(v))return g.getAttribute(v)}t.exports=R},function(t,r,n){var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},o=function(){function u(l,d){for(var _=0;_<d.length;_++){var $=d[_];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(l,$.key,$)}}return function(l,d,_){return d&&u(l.prototype,d),_&&u(l,_),l}}(),a=n(2),c=h(a);function h(u){return u&&u.__esModule?u:{default:u}}function b(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}var p=function(){function u(l){b(this,u),this.resolveOptions(l),this.initSelection()}return o(u,[{key:"resolveOptions",value:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=d.action,this.container=d.container,this.emitter=d.emitter,this.target=d.target,this.text=d.text,this.trigger=d.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var d=this,_=document.documentElement.getAttribute("dir")=="rtl";this.removeFake(),this.fakeHandlerCallback=function(){return d.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[_?"right":"left"]="-9999px";var $=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=$+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,c.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,c.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var d=void 0;try{d=document.execCommand(this.action)}catch{d=!1}this.handleResult(d)}},{key:"handleResult",value:function(d){this.emitter.emit(d?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"copy";if(this._action=d,this._action!=="copy"&&this._action!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(d){if(d!==void 0)if(d&&(typeof d>"u"?"undefined":s(d))==="object"&&d.nodeType===1){if(this.action==="copy"&&d.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(this.action==="cut"&&(d.hasAttribute("readonly")||d.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);this._target=d}else throw new Error('Invalid "target" value, use a valid Element')},get:function(){return this._target}}]),u}();t.exports=p},function(t,r){function n(s){var o;if(s.nodeName==="SELECT")s.focus(),o=s.value;else if(s.nodeName==="INPUT"||s.nodeName==="TEXTAREA"){var a=s.hasAttribute("readonly");a||s.setAttribute("readonly",""),s.select(),s.setSelectionRange(0,s.value.length),a||s.removeAttribute("readonly"),o=s.value}else{s.hasAttribute("contenteditable")&&s.focus();var c=window.getSelection(),h=document.createRange();h.selectNodeContents(s),c.removeAllRanges(),c.addRange(h),o=c.toString()}return o}t.exports=n},function(t,r){function n(){}n.prototype={on:function(s,o,a){var c=this.e||(this.e={});return(c[s]||(c[s]=[])).push({fn:o,ctx:a}),this},once:function(s,o,a){var c=this;function h(){c.off(s,h),o.apply(a,arguments)}return h._=o,this.on(s,h,a)},emit:function(s){var o=[].slice.call(arguments,1),a=((this.e||(this.e={}))[s]||[]).slice(),c=0,h=a.length;for(c;c<h;c++)a[c].fn.apply(a[c].ctx,o);return this},off:function(s,o){var a=this.e||(this.e={}),c=a[s],h=[];if(c&&o)for(var b=0,p=c.length;b<p;b++)c[b].fn!==o&&c[b].fn._!==o&&h.push(c[b]);return h.length?a[s]=h:delete a[s],this}},t.exports=n},function(t,r,n){var s=n(5),o=n(6);function a(p,u,l){if(!p&&!u&&!l)throw new Error("Missing required arguments");if(!s.string(u))throw new TypeError("Second argument must be a String");if(!s.fn(l))throw new TypeError("Third argument must be a Function");if(s.node(p))return c(p,u,l);if(s.nodeList(p))return h(p,u,l);if(s.string(p))return b(p,u,l);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function c(p,u,l){return p.addEventListener(u,l),{destroy:function(){p.removeEventListener(u,l)}}}function h(p,u,l){return Array.prototype.forEach.call(p,function(d){d.addEventListener(u,l)}),{destroy:function(){Array.prototype.forEach.call(p,function(d){d.removeEventListener(u,l)})}}}function b(p,u,l){return o(document.body,p,u,l)}t.exports=a},function(t,r){r.node=function(n){return n!==void 0&&n instanceof HTMLElement&&n.nodeType===1},r.nodeList=function(n){var s=Object.prototype.toString.call(n);return n!==void 0&&(s==="[object NodeList]"||s==="[object HTMLCollection]")&&"length"in n&&(n.length===0||r.node(n[0]))},r.string=function(n){return typeof n=="string"||n instanceof String},r.fn=function(n){var s=Object.prototype.toString.call(n);return s==="[object Function]"}},function(t,r,n){var s=n(7);function o(h,b,p,u,l){var d=c.apply(this,arguments);return h.addEventListener(p,d,l),{destroy:function(){h.removeEventListener(p,d,l)}}}function a(h,b,p,u,l){return typeof h.addEventListener=="function"?o.apply(null,arguments):typeof p=="function"?o.bind(null,document).apply(null,arguments):(typeof h=="string"&&(h=document.querySelectorAll(h)),Array.prototype.map.call(h,function(d){return o(d,b,p,u,l)}))}function c(h,b,p,u){return function(l){l.delegateTarget=s(l.target,b),l.delegateTarget&&u.call(h,l)}}t.exports=a},function(t,r){var n=9;if(typeof Element<"u"&&!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector}function o(a,c){for(;a&&a.nodeType!==n;){if(typeof a.matches=="function"&&a.matches(c))return a;a=a.parentNode}}t.exports=o}])})})(E);const H=w.getDefaultExportFromCjs(E.exports);const z={props:{infoData:{type:Object,required:!0},isSendEmail:{type:String,default:""}},data(){return{visible:!1,sending:!1,isSendEmailList:"",width:"520px",fullscreen:!1}},computed:{copyInfo(){return`${this.$i18nt("gd.user.account","\u8D26\u53F7")}: ${this.infoData.account}
|
|
6
|
+
*/(function(i,e){(function(r,n){i.exports=n()})(w.commonjsGlobal,function(){return function(t){var r={};function n(s){if(r[s])return r[s].exports;var o=r[s]={i:s,l:!1,exports:{}};return t[s].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=r,n.d=function(s,o,a){n.o(s,o)||Object.defineProperty(s,o,{enumerable:!0,get:a})},n.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},n.t=function(s,o){if(o&1&&(s=n(s)),o&8||o&4&&typeof s=="object"&&s&&s.__esModule)return s;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:s}),o&2&&typeof s!="string")for(var c in s)n.d(a,c,function(h){return s[h]}.bind(null,c));return a},n.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return n.d(o,"a",o),o},n.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},n.p="",n(n.s=0)}([function(t,r,n){var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},o=function(){function m(g,v){for(var f=0;f<v.length;f++){var y=v[f];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(g,y.key,y)}}return function(g,v,f){return v&&m(g.prototype,v),f&&m(g,f),g}}(),a=n(1),c=l(a),h=n(3),b=l(h),p=n(4),u=l(p);function l(m){return m&&m.__esModule?m:{default:m}}function d(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function _(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function $(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var R=function(m){$(g,m);function g(v,f){d(this,g);var y=_(this,(g.__proto__||Object.getPrototypeOf(g)).call(this));return y.resolveOptions(f),y.listenClick(v),y}return o(g,[{key:"resolveOptions",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof f.action=="function"?f.action:this.defaultAction,this.target=typeof f.target=="function"?f.target:this.defaultTarget,this.text=typeof f.text=="function"?f.text:this.defaultText,this.container=s(f.container)==="object"?f.container:document.body}},{key:"listenClick",value:function(f){var y=this;this.listener=(0,u.default)(f,"click",function(k){return y.onClick(k)})}},{key:"onClick",value:function(f){var y=f.delegateTarget||f.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c.default({action:this.action(y),target:this.target(y),text:this.text(y),container:this.container,trigger:y,emitter:this})}},{key:"defaultAction",value:function(f){return x("action",f)}},{key:"defaultTarget",value:function(f){var y=x("target",f);if(y)return document.querySelector(y)}},{key:"defaultText",value:function(f){return x("text",f)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],y=typeof f=="string"?[f]:f,k=!!document.queryCommandSupported;return y.forEach(function(L){k=k&&!!document.queryCommandSupported(L)}),k}}]),g}(b.default);function x(m,g){var v="data-clipboard-"+m;if(!!g.hasAttribute(v))return g.getAttribute(v)}t.exports=R},function(t,r,n){var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},o=function(){function u(l,d){for(var _=0;_<d.length;_++){var $=d[_];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(l,$.key,$)}}return function(l,d,_){return d&&u(l.prototype,d),_&&u(l,_),l}}(),a=n(2),c=h(a);function h(u){return u&&u.__esModule?u:{default:u}}function b(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}var p=function(){function u(l){b(this,u),this.resolveOptions(l),this.initSelection()}return o(u,[{key:"resolveOptions",value:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=d.action,this.container=d.container,this.emitter=d.emitter,this.target=d.target,this.text=d.text,this.trigger=d.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var d=this,_=document.documentElement.getAttribute("dir")=="rtl";this.removeFake(),this.fakeHandlerCallback=function(){return d.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[_?"right":"left"]="-9999px";var $=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=$+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,c.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,c.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var d=void 0;try{d=document.execCommand(this.action)}catch{d=!1}this.handleResult(d)}},{key:"handleResult",value:function(d){this.emitter.emit(d?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"copy";if(this._action=d,this._action!=="copy"&&this._action!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(d){if(d!==void 0)if(d&&(typeof d>"u"?"undefined":s(d))==="object"&&d.nodeType===1){if(this.action==="copy"&&d.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(this.action==="cut"&&(d.hasAttribute("readonly")||d.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);this._target=d}else throw new Error('Invalid "target" value, use a valid Element')},get:function(){return this._target}}]),u}();t.exports=p},function(t,r){function n(s){var o;if(s.nodeName==="SELECT")s.focus(),o=s.value;else if(s.nodeName==="INPUT"||s.nodeName==="TEXTAREA"){var a=s.hasAttribute("readonly");a||s.setAttribute("readonly",""),s.select(),s.setSelectionRange(0,s.value.length),a||s.removeAttribute("readonly"),o=s.value}else{s.hasAttribute("contenteditable")&&s.focus();var c=window.getSelection(),h=document.createRange();h.selectNodeContents(s),c.removeAllRanges(),c.addRange(h),o=c.toString()}return o}t.exports=n},function(t,r){function n(){}n.prototype={on:function(s,o,a){var c=this.e||(this.e={});return(c[s]||(c[s]=[])).push({fn:o,ctx:a}),this},once:function(s,o,a){var c=this;function h(){c.off(s,h),o.apply(a,arguments)}return h._=o,this.on(s,h,a)},emit:function(s){var o=[].slice.call(arguments,1),a=((this.e||(this.e={}))[s]||[]).slice(),c=0,h=a.length;for(c;c<h;c++)a[c].fn.apply(a[c].ctx,o);return this},off:function(s,o){var a=this.e||(this.e={}),c=a[s],h=[];if(c&&o)for(var b=0,p=c.length;b<p;b++)c[b].fn!==o&&c[b].fn._!==o&&h.push(c[b]);return h.length?a[s]=h:delete a[s],this}},t.exports=n},function(t,r,n){var s=n(5),o=n(6);function a(p,u,l){if(!p&&!u&&!l)throw new Error("Missing required arguments");if(!s.string(u))throw new TypeError("Second argument must be a String");if(!s.fn(l))throw new TypeError("Third argument must be a Function");if(s.node(p))return c(p,u,l);if(s.nodeList(p))return h(p,u,l);if(s.string(p))return b(p,u,l);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function c(p,u,l){return p.addEventListener(u,l),{destroy:function(){p.removeEventListener(u,l)}}}function h(p,u,l){return Array.prototype.forEach.call(p,function(d){d.addEventListener(u,l)}),{destroy:function(){Array.prototype.forEach.call(p,function(d){d.removeEventListener(u,l)})}}}function b(p,u,l){return o(document.body,p,u,l)}t.exports=a},function(t,r){r.node=function(n){return n!==void 0&&n instanceof HTMLElement&&n.nodeType===1},r.nodeList=function(n){var s=Object.prototype.toString.call(n);return n!==void 0&&(s==="[object NodeList]"||s==="[object HTMLCollection]")&&"length"in n&&(n.length===0||r.node(n[0]))},r.string=function(n){return typeof n=="string"||n instanceof String},r.fn=function(n){var s=Object.prototype.toString.call(n);return s==="[object Function]"}},function(t,r,n){var s=n(7);function o(h,b,p,u,l){var d=c.apply(this,arguments);return h.addEventListener(p,d,l),{destroy:function(){h.removeEventListener(p,d,l)}}}function a(h,b,p,u,l){return typeof h.addEventListener=="function"?o.apply(null,arguments):typeof p=="function"?o.bind(null,document).apply(null,arguments):(typeof h=="string"&&(h=document.querySelectorAll(h)),Array.prototype.map.call(h,function(d){return o(d,b,p,u,l)}))}function c(h,b,p,u){return function(l){l.delegateTarget=s(l.target,b),l.delegateTarget&&u.call(h,l)}}t.exports=a},function(t,r){var n=9;if(typeof Element<"u"&&!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector}function o(a,c){for(;a&&a.nodeType!==n;){if(typeof a.matches=="function"&&a.matches(c))return a;a=a.parentNode}}t.exports=o}])})})(E);const H=w.getDefaultExportFromCjs(E.exports);const z={props:{infoData:{type:Object,required:!0},isSendEmail:{type:String,default:""}},data(){return{visible:!1,sending:!1,isSendEmailList:"",width:"520px",fullscreen:!1}},computed:{copyInfo(){return`${this.$i18nt("gd.user.account","\u8D26\u53F7")}: ${this.infoData.account}
|
|
7
7
|
${this.$i18nt("gd.user.paw","\u5BC6\u7801")}: ${this.infoData.password}
|
|
8
8
|
${this.$i18nt("gd.user.name","\u59D3\u540D")}: ${this.infoData.name}
|
|
9
9
|
${this.$i18nt("gd.user.email","\u90AE\u7BB1")}: ${this.infoData.email}
|
|
10
10
|
${this.$i18nt("gd.user.phone","\u624B\u673A\u53F7")}: ${this.infoData.phone}
|
|
11
11
|
`}},methods:{open(i){this.visible=!0,this.isSendEmailList=i},colseCancel(){this.visible=!1},cmpleteUpgrade(){const i=new H(".copy-btn");i.on("success",()=>{this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.isSendEmailList!=1&&(this.visible=!1,this.$emit("sending"))}),i.on("error",()=>{this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")),this.visible=!1}),setTimeout(()=>{i.destroy()},122)},sendingEailm(){let i=this;i.sending=!0;let e={accountName:i.infoData.account,emailAddress:i.infoData.email,pcR_Type:5};w.applyResetPassword(e).then(t=>{t.success?(i.sending=!1,i.visible=!1,i.$notify({duration:8e3,type:"success",title:this.$i18nt("gd.https.resetTipSucc","\u91CD\u7F6E\u6210\u529F"),dangerouslyUseHTMLString:!0,message:`<p>${this.$i18nt("gd.https.addTip","\u5DF2\u5411\u6B64\u7528\u6237\u7684\u90AE\u7BB1\u53D1\u9001\u4E86\u4E00\u5C01\u5305\u542B\u5BC6\u7801\u91CD\u7F6E\u94FE\u63A5\u7684\u90AE\u4EF6\u3002")}</p>
|
|
12
|
-
<p>${this.$i18nt("gd.https.addTipp","\u5982\u679C\u7528\u6237\u6CA1\u6709\u6536\u5230\u90AE\u4EF6\uFF0C\u5C1D\u8BD5\u901A\u8FC7\u3010\u91CD\u7F6E\u5BC6\u7801\u3011\u53D1\u9001\u5BC6\u7801\u91CD\u7F6E\u8BF7\u6C42\u3002")}</p>`}),i.$emit("sending")):i.$message.error(i.$i18nt("gd.https.sendingErr","\u53D1\u9001\u5931\u8D25")+t.message)})}}};var G=function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!0,"append-to-body":!1,top:"80px"},on:{"update:visible":function(r){e.visible=r},closed:e.colseCancel}},[t("template",{slot:"title"},[t("div",{staticClass:"gd-dialog-head"},[t("div",{staticClass:"dialog-head-title"},[e._v(e._s(e.$i18nt("gd.user.basicInformation","\u57FA\u672C\u4FE1\u606F")))])])]),t("el-descriptions",{attrs:{title:"",column:1,size:"medium"}},[t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.user.account","\u8D26\u53F7")}},[e._v(e._s(e.infoData.account))]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.user.paw","\u5BC6\u7801")}},[e._v(e._s(e.infoData.password))]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.user.name","\u59D3\u540D")}},[e._v(e._s(e.infoData.name))]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.user.email","\u90AE\u7BB1")}},[e._v(e._s(e.infoData.email))]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.user.phone","\u624B\u673A")}},[e._v(e._s(e.infoData.phone))])],1),t("template",{slot:"footer"},[t("el-button",{staticClass:"copy-btn",staticStyle:{"margin-left":"8px"},attrs:{type:"primary","data-clipboard-action":"copy","data-clipboard-text":e.copyInfo,icon:"el-icon-document-copy"},on:{click:e.cmpleteUpgrade}},[e._v(" "+e._s(e.$i18nt("gd.btn.copy"))+" ")]),e.isSendEmail=="1"?t("el-button",{staticClass:"copy-btn",staticStyle:{"margin-left":"8px"},attrs:{type:"primary",loading:e.sending,icon:"el-icon-message"},on:{click:e.sendingEailm}},[e._v(" "+e._s(e.$i18nt("gd.email.sending"))+" ")]):e._e()],1)],2)},Q=[],V=T.normalizeComponent(z,G,Q,!1,null,"b6f77ddd",null,null);const Y=V.exports;const J={name:"GdUse",props:{height:{type:Number,default:100}},mixins:[K.tablesFilter,j],data(){return{transKey:"gd.btn.add",formLoading:!1,currentNode:null,loading:!0,orgTree:[],selectedRowKeys:[],selectedRows:[],queryParam:{},defaultProps:{children:"children",label:"title",value:"value"},defaultExpandedKeys:"",loadData:i=>w.getUserPage(Object.assign(i,this.getQueryParam)).then(e=>e.data),disableBtn:["\u542F\u7528","\u505C\u7528"],fileList:[],needLoad:!1,infoData:{},isSendEmail:"",isSendEmailed:"",institutionsShow:!1}},components:{UserRoleForm:D,EditInstitutions:q,copyInfo:Y},computed:{getQueryParam(){let i=new Map;for(let e in this.queryParam)i.set(e==="statecodes"?"searchctatus":e,this.queryParam[e]);return Object.fromEntries(i)},getFormColumns(){return this.formColumns.filter(e=>(e.prop==="orgid"&&(e.treeOptions=[...this.orgTree]),!0))},getTableButtons(){return this.tableButtons.filter(i=>(i.show=!this.disableBtn.includes(i.displayName),!0))},getHeight(){return this.height},styled(){return`height:${this.height+76}px`},...T.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{updateInstitutions(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.institutionsShow=!0,this.$nextTick(()=>{setTimeout(()=>{this.$refs.editInstitutions.open(this.selectedRows[0])},0)})},userRole(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.$refs.userRoleForm.open(this.selectedRows[0])},saveQueries(i){this.queryParam={...i},this.refresh()},handleFileUpload(i){const e=this.$message({message:this.$i18nt("gd.https.uploading","\u52A0\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"}),t=new FormData;t.append("file",i.file),w.sysUserImport(t).then(r=>{r.success?(this.$message.success(this.$i18nt("gd.https.uploadSucc","\u4E0A\u4F20\u6210\u529F")),this.refresh()):this.$message.error(this.$i18nt("gd.https.uploadFail","\u4E0A\u4F20\u5931\u8D25")+r.message),this.$nextTick(()=>{setTimeout(()=>{e.close()},200)})})},importUser(){this.fileList=[],document.querySelector(".upload-demo").click()},exportUser(){const i=this.$message({message:this.$i18nt("gd.https.exporting","\u6B63\u5728\u5BFC\u51FA\u4E2D..."),duration:0,iconClass:"el-icon-loading"});w.sysUserExport().then(e=>{this.downloadfile(e),this.$nextTick(()=>{setTimeout(()=>{i.close()},200)})}).catch(e=>{this.$nextTick(()=>{setTimeout(()=>{i.close()},200)})})},enable(){this.editStateCodes({row:this.selectedRows[0]})},deactivated(){this.editStateCodes({row:this.selectedRows[0]})},editStateCodes({column:i,row:e}){const t=e.statecodes!=1?this.$i18nt("gd.https.enableContent","\u662F\u5426\u505C\u7528\u9009\u4E2D\u6570\u636E?"):this.$i18nt("gd.https.deactivateContent","\u662F\u5426\u542F\u7528\u9009\u4E2D\u6570\u636E?"),r=e.statecodes!=1?this.$i18nt("gd.https.enableOk","\u786E\u8BA4\u505C\u7528"):this.$i18nt("gd.https.deactivateOk","\u786E\u8BA4\u542F\u7528");this.$confirm(t,this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:r,cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(n,s,o)=>{if(n!=="confirm"){o();return}s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,w.sysUserChangeStatus({id:e.id,stateCodes:e.statecodes==1?0:1}).then(a=>{o(),a.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+a.message),s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0})}})},refresh(){this.$refs.table.refresh()},editForm(i){this.transKey="gd.btn.edit",this.$refs.editForm.open(Object.assign({...i},{gender:String(i.gender),orgid:String(i.orgid)}))},getOrgTree(){C.getOrgTree({}).then(i=>{if(i.code===200){const e=t=>(t=t.filter((r,n)=>(r.value=String(r.value),r.children&&r.children.length>0&&(r.children=e(r.children)),!0)),t);this.orgTree=e(i.data)}this.loading=!1})},handleNodeClick(i){this.queryParam.orgId===i.id?(delete this.queryParam.orgId,this.$nextTick(()=>{setTimeout(()=>{this.$refs.tree.setCurrentKey(null)},0)})):this.queryParam=Object.assign({...this.queryParam},{orgId:i.id}),this.refresh()},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,e,t)=>{this.delHand(i,e,t)}})},delHand(i,e,t){if(i!=="confirm"){t();return}let r=[];this.selectedRows.forEach(n=>{let s=sysOrgDelete(n).then(o=>o);r.push(s)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(r).then(n=>{t();const s=n.filter(o=>!o.success);s.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+s[0].message),this.handleOk(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},add(){this.transKey="gd.btn.add",this.$refs.editForm.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},async sbumit({data:i,record:e,btn:t},r,n){this.formLoading=!0;let s=e?w.sysUserEdit:w.sysUserAdd;if(!e){let o=await this.getUsrePassword();Object.assign(i,{password:o,confirm:o})}s(i).then(o=>{this.isSendEmailed="",o.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),n(),this.handleOk(),this.infoData=i,this.sendEmail(e,i)):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+o.message),this.formLoading=!1})},sendEmail(i,e){i||(this.isSendEmail==1&&this.$notify({type:"success",title:this.$i18nt("gd.https.sendingSucc","\u53D1\u9001\u6210\u529F"),dangerouslyUseHTMLString:!0,message:`<p>${this.$i18nt("gd.https.addTip","\u5DF2\u5411\u6B64\u7528\u6237\u7684\u90AE\u7BB1\u53D1\u9001\u4E86\u4E00\u5C01\u5305\u542B\u5BC6\u7801\u91CD\u7F6E\u94FE\u63A5\u7684\u90AE\u4EF6\u3002")}</p>
|
|
13
|
-
<p>${this.$i18nt("gd.https.addTipp","\u5982\u679C\u7528\u6237\u6CA1\u6709\u6536\u5230\u90AE\u4EF6\uFF0C\u5C1D\u8BD5\u901A\u8FC7\u3010\u91CD\u7F6E\u5BC6\u7801\u3011\u53D1\u9001\u5BC6\u7801\u91CD\u7F6E\u8BF7\u6C42\u3002")}</p>`}),w.getConfigInfoByCode({code:"GDS_NewUser_DisplayAccount"}).then(t=>{t.code==200&&t.data.value=="1"&&setTimeout(()=>{this.$refs.copyInfo.open(this.copyRule)},1200)}))},handleOk(){this.getOrgTree(),this.$refs.table.refresh()},onSelectChange(i,e){if(this.selectedRowKeys=i,this.selectedRows=e,i.length===0){this.disableBtn=["\u542F\u7528","\u505C\u7528"];return}if(e.length>1){this.disableBtn=["\u542F\u7528","\u505C\u7528"];return}let t=[],r=e.filter(s=>s.statecodes==1),n=e.filter(s=>s.statecodes==0);r.length==e.length?t=["\u542F\u7528"]:n.length==e.length&&(t=["\u505C\u7528"]),this.disableBtn=t},downloadfile(i){var e=new Blob([i.data],{type:"application/octet-stream;charset=UTF-8"}),t=i.headers["content-disposition"];const s=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(t)[1].replace(/['"]/g,"");var o=document.createElement("a"),a=window.URL.createObjectURL(e),c=/^["](.*)["]$/g;o.style.display="none",o.href=a,o.download=decodeURI(s.replace(c,"$1")),document.body.appendChild(o),o.click(),document.body.removeChild(o),window.URL.revokeObjectURL(a)},getUsrePassword(){return w.getPasswordRules({}).then(i=>{if(i.success)return this.combinationRule=i.data.combinationrule.value,this.copyRule=i.data.copyrule.value,this.lengthRule=i.data.lengthrule.value,this.isSendEmail=i.data.issendemail.value,this.mathPasword(this.lengthRule,this.combinationRule)})},getRandomChar(i){return i?i[Math.floor(Math.random()*i.length)]:""},mathPasword(i,e){let t=(e.includes("AL"),"abcdefghijklmnopqrstuvwxyz"),r=(e.includes("AL"),"ABCDEFGHIJKLMNOPQRSTUVWXYZ"),n=(e.includes("NU"),"0123456789"),s=(e.includes("SC"),"!@#$%&*^"),o="",a=[];if(s&&(a.push(this.getRandomChar(s)),a.push(this.getRandomChar(s))),r&&(a.push(this.getRandomChar(r)),a.push(this.getRandomChar(r))),t&&(a.push(this.getRandomChar(t)),a.push(this.getRandomChar(t))),n&&(a.push(this.getRandomChar(n)),a.push(this.getRandomChar(n))),a.length===0)return console.error("\u6CA1\u6709\u53EF\u7528\u7684\u5B57\u7B26\u96C6\u6765\u751F\u6210\u5BC6\u7801\uFF0C\u8BF7\u68C0\u67E5 combinationRule \u53C2\u6570"),"";a=a.sort(()=>Math.random()-.5);let c=a.join("");for(;c.length<i;){const h=[s,r,t,n].filter(p=>p);if(h.length===0)break;const b=h[Math.floor(Math.random()*h.length)];c+=this.getRandomChar(b)}return o=c.substring(0,i),o},resetPwd(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91"));return}this.$confirm(this.$i18nt("gd.https.resetPwdContent","\u662F\u5426\u91CD\u7F6E\u5BC6\u7801?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.resetPwdOk","\u7ACB\u5373\u91CD\u7F6E"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,e,t)=>{this.resetPwdHand(i,e,t)}})},async resetPwdHand(i,e,t){const r=await this.getUsrePassword();let n=this;if(i!=="confirm"){t();return}e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1;let s,o={};n.isSendEmail==1&&n.copyRule==1
|
|
14
|
-
<p>${this.$i18nt("gd.https.addTipp","\u5982\u679C\u7528\u6237\u6CA1\u6709\u6536\u5230\u90AE\u4EF6\uFF0C\u5C1D\u8BD5\u901A\u8FC7\u3010\u91CD\u7F6E\u5BC6\u7801\u3011\u53D1\u9001\u5BC6\u7801\u91CD\u7F6E\u8BF7\u6C42\u3002")}</p>`}):n.$message.success(n.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),n.copyRule==1?(n.infoData=c,setTimeout(()=>{n.$refs.copyInfo.open(n.isSendEmail)},500)):n.refresh()}else n.$message.error(n.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+a.message);e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},sending(){this.refresh()},doEvent(i){let e=i.item.functionName;this[e]&&this[e]()}},created(){this.getOrgTree()}};var W=function(){var e=this,t=e._self._c;return t("div",{staticClass:"gd-page-view",staticStyle:{display:"flex",background:"rgb(245, 245, 245)"}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"page-view-tree",style:e.styled},[t("el-tree",{ref:"tree",attrs:{data:e.orgTree,props:e.defaultProps,"node-key":"id","current-node-key":e.defaultExpandedKeys,"default-expand-all":"","highlight-current":"","expand-on-click-node":!1},on:{"node-click":e.handleNodeClick}})],1),t("div",{staticClass:"page-view-list"},[t("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"account",fn:function({column:r,row:n}){return[t("gd-tooltip",{attrs:{rowKey:"account",row:n,highlight:""},on:{click:e.editForm}})]}},{key:"gender",fn:function(r){return[t("div",{staticStyle:{cursor:"pointer"}},[t("el-tag",{style:e._f("dictColor")("gender",r.row.gender),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("gender",r.row.gender))+" ")])],1)]}},{key:"statecodes",fn:function(r){return[t("div",{staticStyle:{cursor:"pointer"},on:{click:function(n){return n.stopPropagation(),e.editStateCodes(r)}}},[r.row.statecodes==1?t("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):t("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"18px",color:"#999"}})])]}},{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operator"},[t("div",{staticClass:"gd-table-operatorl",staticStyle:{width:"270px"}},[t("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.user.keywordTip","\u8BF7\u8F93\u5165\u59D3\u540D\u3001\u8D26\u53F7\u3001\u624B\u673A\u53F7\u5173\u952E\u8BCD"),clearable:""},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.searchValue,callback:function(r){e.$set(e.queryParam,"searchValue",r)},expression:"queryParam.searchValue"}}),t("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[t("i",{staticClass:"el-input__icon el-icon-search"})])],1),t("div",{staticClass:"gd-table-operatorr"},[t("gd-btn-list",{attrs:{sysViewButtons:e.getTableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:r,visible:n}){return[t("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.height,queryParam:e.queryParam,colse:r,visible:n},on:{save:e.saveQueries}})]}}])})],1),t("UserRoleForm",{ref:"userRoleForm",on:{ok:e.handleOk}}),e.institutionsShow?t("EditInstitutions",{ref:"editInstitutions",on:{ok:e.handleOk,closed:function(r){e.institutionsShow=!1}}}):e._e(),t("copyInfo",{ref:"copyInfo",attrs:{infoData:e.infoData,isSendEmail:e.isSendEmailed},on:{sending:e.sending}}),t("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode,inline:!0,width:"1000px",needLoad:e.needLoad},on:{sbumit:e.sbumit}}),t("div",{staticStyle:{position:"fixed",left:"-20000px",top:"-2000px"}},[t("el-upload",{ref:"upload",attrs:{"http-request":e.handleFileUpload,"file-list":e.fileList,action:""}},[t("el-button",{ref:"uploadDemo",staticClass:"upload-demo",attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[e._v(" "+e._s(e.$i18nt("gd.user.selectFile","\u9009\u53D6\u6587\u4EF6"))+" ")])],1)],1)],1)},X=[],Z=T.normalizeComponent(J,W,X,!1,null,"
|
|
12
|
+
<p>${this.$i18nt("gd.https.addTipp","\u5982\u679C\u7528\u6237\u6CA1\u6709\u6536\u5230\u90AE\u4EF6\uFF0C\u5C1D\u8BD5\u901A\u8FC7\u3010\u91CD\u7F6E\u5BC6\u7801\u3011\u53D1\u9001\u5BC6\u7801\u91CD\u7F6E\u8BF7\u6C42\u3002")}</p>`}),i.$emit("sending")):i.$message.error(i.$i18nt("gd.https.sendingErr","\u53D1\u9001\u5931\u8D25")+t.message)})}}};var G=function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!0,"append-to-body":!1,top:"80px"},on:{"update:visible":function(r){e.visible=r},closed:e.colseCancel}},[t("template",{slot:"title"},[t("div",{staticClass:"gd-dialog-head"},[t("div",{staticClass:"dialog-head-title"},[e._v(e._s(e.$i18nt("gd.user.basicInformation","\u57FA\u672C\u4FE1\u606F")))])])]),t("el-descriptions",{attrs:{title:"",column:1,size:"medium"}},[t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.user.account","\u8D26\u53F7")}},[e._v(e._s(e.infoData.account))]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.user.paw","\u5BC6\u7801")}},[e._v(e._s(e.infoData.password))]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.user.name","\u59D3\u540D")}},[e._v(e._s(e.infoData.name))]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.user.email","\u90AE\u7BB1")}},[e._v(e._s(e.infoData.email))]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.user.phone","\u624B\u673A")}},[e._v(e._s(e.infoData.phone))])],1),t("template",{slot:"footer"},[t("el-button",{staticClass:"copy-btn",staticStyle:{"margin-left":"8px"},attrs:{type:"primary","data-clipboard-action":"copy","data-clipboard-text":e.copyInfo,icon:"el-icon-document-copy"},on:{click:e.cmpleteUpgrade}},[e._v(" "+e._s(e.$i18nt("gd.btn.copy"))+" ")]),e.isSendEmail=="1"?t("el-button",{staticClass:"copy-btn",staticStyle:{"margin-left":"8px"},attrs:{type:"primary",loading:e.sending,icon:"el-icon-message"},on:{click:e.sendingEailm}},[e._v(" "+e._s(e.$i18nt("gd.email.sending"))+" ")]):e._e()],1)],2)},Q=[],V=T.normalizeComponent(z,G,Q,!1,null,"b6f77ddd",null,null);const Y=V.exports;const J={name:"GdUse",props:{height:{type:Number,default:100}},mixins:[K.tablesFilter,j],data(){return{transKey:"gd.btn.add",formLoading:!1,currentNode:null,loading:!0,orgTree:[],selectedRowKeys:[],selectedRows:[],queryParam:{},defaultProps:{children:"children",label:"title",value:"value"},defaultExpandedKeys:"",loadData:i=>w.getUserPage(Object.assign(i,this.getQueryParam)).then(e=>e.data),disableBtn:["\u542F\u7528","\u505C\u7528"],fileList:[],needLoad:!1,infoData:{},isSendEmail:"",isSendEmailed:"",institutionsShow:!1}},components:{UserRoleForm:D,EditInstitutions:q,copyInfo:Y},computed:{getQueryParam(){let i=new Map;for(let e in this.queryParam)i.set(e==="statecodes"?"searchctatus":e,this.queryParam[e]);return Object.fromEntries(i)},getFormColumns(){return this.formColumns.filter(e=>(e.prop==="orgid"&&(e.treeOptions=[...this.orgTree]),!0))},getTableButtons(){return this.tableButtons.filter(i=>(i.show=!this.disableBtn.includes(i.displayName),!0))},getHeight(){return this.height},styled(){return`height:${this.height+76}px`},...T.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{updateInstitutions(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.institutionsShow=!0,this.$nextTick(()=>{setTimeout(()=>{this.$refs.editInstitutions.open(this.selectedRows[0])},0)})},userRole(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.$refs.userRoleForm.open(this.selectedRows[0])},saveQueries(i){this.queryParam={...i},this.refresh()},handleFileUpload(i){const e=this.$message({message:this.$i18nt("gd.https.uploading","\u52A0\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"}),t=new FormData;t.append("file",i.file),w.sysUserImport(t).then(r=>{r.success?(this.$message.success(this.$i18nt("gd.https.uploadSucc","\u4E0A\u4F20\u6210\u529F")),this.refresh()):this.$message.error(this.$i18nt("gd.https.uploadFail","\u4E0A\u4F20\u5931\u8D25")+r.message),this.$nextTick(()=>{setTimeout(()=>{e.close()},200)})})},importUser(){this.fileList=[],document.querySelector(".upload-demo").click()},exportUser(){const i=this.$message({message:this.$i18nt("gd.https.exporting","\u6B63\u5728\u5BFC\u51FA\u4E2D..."),duration:0,iconClass:"el-icon-loading"});w.sysUserExport().then(e=>{this.downloadfile(e),this.$nextTick(()=>{setTimeout(()=>{i.close()},200)})}).catch(e=>{this.$nextTick(()=>{setTimeout(()=>{i.close()},200)})})},enable(){this.editStateCodes({row:this.selectedRows[0]})},deactivated(){this.editStateCodes({row:this.selectedRows[0]})},editStateCodes({column:i,row:e}){const t=e.statecodes!=1?this.$i18nt("gd.https.enableContent","\u662F\u5426\u505C\u7528\u9009\u4E2D\u6570\u636E?"):this.$i18nt("gd.https.deactivateContent","\u662F\u5426\u542F\u7528\u9009\u4E2D\u6570\u636E?"),r=e.statecodes!=1?this.$i18nt("gd.https.enableOk","\u786E\u8BA4\u505C\u7528"):this.$i18nt("gd.https.deactivateOk","\u786E\u8BA4\u542F\u7528");this.$confirm(t,this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:r,cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(n,s,o)=>{if(n!=="confirm"){o();return}s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,w.sysUserChangeStatus({id:e.id,stateCodes:e.statecodes==1?0:1}).then(a=>{o(),a.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+a.message),s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0})}})},refresh(){this.$refs.table.refresh()},editForm(i){this.transKey="gd.btn.edit",this.$refs.editForm.open(Object.assign({...i},{gender:String(i.gender),orgid:String(i.orgid),authtype:String(i.authtype)}))},getOrgTree(){C.getOrgTree({}).then(i=>{if(i.code===200){const e=t=>(t=t.filter((r,n)=>(r.value=String(r.value),r.children&&r.children.length>0&&(r.children=e(r.children)),!0)),t);this.orgTree=e(i.data)}this.loading=!1})},handleNodeClick(i){this.queryParam.orgId===i.id?(delete this.queryParam.orgId,this.$nextTick(()=>{setTimeout(()=>{this.$refs.tree.setCurrentKey(null)},0)})):this.queryParam=Object.assign({...this.queryParam},{orgId:i.id}),this.refresh()},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,e,t)=>{this.delHand(i,e,t)}})},delHand(i,e,t){if(i!=="confirm"){t();return}let r=[];this.selectedRows.forEach(n=>{let s=sysOrgDelete(n).then(o=>o);r.push(s)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(r).then(n=>{t();const s=n.filter(o=>!o.success);s.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+s[0].message),this.handleOk(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},add(){this.transKey="gd.btn.add",this.$refs.editForm.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},async sbumit({data:i,record:e,btn:t},r,n){this.formLoading=!0;let s=e?w.sysUserEdit:w.sysUserAdd;if(!e){let o=await this.getUsrePassword();Object.assign(i,{password:o,confirm:o})}s(i).then(o=>{this.isSendEmailed="",o.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),n(),this.handleOk(),this.infoData=i,this.sendEmail(e,i)):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+o.message),this.formLoading=!1})},sendEmail(i,e){i||(this.isSendEmail==1&&this.$notify({type:"success",title:this.$i18nt("gd.https.sendingSucc","\u53D1\u9001\u6210\u529F"),dangerouslyUseHTMLString:!0,message:`<p>${this.$i18nt("gd.https.addTip","\u5DF2\u5411\u6B64\u7528\u6237\u7684\u90AE\u7BB1\u53D1\u9001\u4E86\u4E00\u5C01\u5305\u542B\u5BC6\u7801\u91CD\u7F6E\u94FE\u63A5\u7684\u90AE\u4EF6\u3002")}</p>
|
|
13
|
+
<p>${this.$i18nt("gd.https.addTipp","\u5982\u679C\u7528\u6237\u6CA1\u6709\u6536\u5230\u90AE\u4EF6\uFF0C\u5C1D\u8BD5\u901A\u8FC7\u3010\u91CD\u7F6E\u5BC6\u7801\u3011\u53D1\u9001\u5BC6\u7801\u91CD\u7F6E\u8BF7\u6C42\u3002")}</p>`}),w.getConfigInfoByCode({code:"GDS_NewUser_DisplayAccount"}).then(t=>{t.code==200&&t.data.value=="1"&&setTimeout(()=>{this.$refs.copyInfo.open(this.copyRule)},1200)}))},handleOk(){this.getOrgTree(),this.$refs.table.refresh()},onSelectChange(i,e){if(this.selectedRowKeys=i,this.selectedRows=e,i.length===0){this.disableBtn=["\u542F\u7528","\u505C\u7528"];return}if(e.length>1){this.disableBtn=["\u542F\u7528","\u505C\u7528"];return}let t=[],r=e.filter(s=>s.statecodes==1),n=e.filter(s=>s.statecodes==0);r.length==e.length?t=["\u542F\u7528"]:n.length==e.length&&(t=["\u505C\u7528"]),this.disableBtn=t},downloadfile(i){var e=new Blob([i.data],{type:"application/octet-stream;charset=UTF-8"}),t=i.headers["content-disposition"];const s=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(t)[1].replace(/['"]/g,"");var o=document.createElement("a"),a=window.URL.createObjectURL(e),c=/^["](.*)["]$/g;o.style.display="none",o.href=a,o.download=decodeURI(s.replace(c,"$1")),document.body.appendChild(o),o.click(),document.body.removeChild(o),window.URL.revokeObjectURL(a)},getUsrePassword(){return w.getPasswordRules({}).then(i=>{if(i.success)return this.combinationRule=i.data.combinationrule.value,this.copyRule=i.data.copyrule.value,this.lengthRule=i.data.lengthrule.value,this.isSendEmail=i.data.issendemail.value,this.mathPasword(this.lengthRule,this.combinationRule)})},getRandomChar(i){return i?i[Math.floor(Math.random()*i.length)]:""},mathPasword(i,e){let t=(e.includes("AL"),"abcdefghijklmnopqrstuvwxyz"),r=(e.includes("AL"),"ABCDEFGHIJKLMNOPQRSTUVWXYZ"),n=(e.includes("NU"),"0123456789"),s=(e.includes("SC"),"!@#$%&*^"),o="",a=[];if(s&&(a.push(this.getRandomChar(s)),a.push(this.getRandomChar(s))),r&&(a.push(this.getRandomChar(r)),a.push(this.getRandomChar(r))),t&&(a.push(this.getRandomChar(t)),a.push(this.getRandomChar(t))),n&&(a.push(this.getRandomChar(n)),a.push(this.getRandomChar(n))),a.length===0)return console.error("\u6CA1\u6709\u53EF\u7528\u7684\u5B57\u7B26\u96C6\u6765\u751F\u6210\u5BC6\u7801\uFF0C\u8BF7\u68C0\u67E5 combinationRule \u53C2\u6570"),"";a=a.sort(()=>Math.random()-.5);let c=a.join("");for(;c.length<i;){const h=[s,r,t,n].filter(p=>p);if(h.length===0)break;const b=h[Math.floor(Math.random()*h.length)];c+=this.getRandomChar(b)}return o=c.substring(0,i),o},resetPwd(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91"));return}this.$confirm(this.$i18nt("gd.https.resetPwdContent","\u662F\u5426\u91CD\u7F6E\u5BC6\u7801?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.resetPwdOk","\u7ACB\u5373\u91CD\u7F6E"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,e,t)=>{this.resetPwdHand(i,e,t)}})},async resetPwdHand(i,e,t){const r=await this.getUsrePassword();let n=this;if(i!=="confirm"){t();return}e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1;let s,o={};if(n.isSendEmail==1&&n.copyRule==1)o={id:n.selectedRows[0].id,newPassword:r},s=w.sysUserResetPwd;else if(n.isSendEmail==1)o={accountName:n.selectedRows[0].account,emailAddress:n.selectedRows[0].email,pcR_Type:5},s=w.applyResetPassword;else if(n.copyRule==1)o={id:n.selectedRows[0].id,newPassword:r},s=w.sysUserResetPwd;else{this.$message.error(this.$i18nt("gd.https.resetFailure","\u91CD\u7F6E\u6210\u529F")),t();return}s(o).then(a=>{if(n.isSendEmailed=n.isSendEmail,t(),a.success){let c={account:n.selectedRows[0].account,password:r,name:n.selectedRows[0].name,email:n.selectedRows[0].email,phone:n.selectedRows[0].phone};n.isSendEmail==1&&n.copyRule==0?n.$notify({duration:8e3,type:"success",title:this.$i18nt("gd.https.resetTipSucc","\u91CD\u7F6E\u6210\u529F"),dangerouslyUseHTMLString:!0,message:`<p>${this.$i18nt("gd.https.addTip","\u5DF2\u5411\u6B64\u7528\u6237\u7684\u90AE\u7BB1\u53D1\u9001\u4E86\u4E00\u5C01\u5305\u542B\u5BC6\u7801\u91CD\u7F6E\u94FE\u63A5\u7684\u90AE\u4EF6\u3002")}</p>
|
|
14
|
+
<p>${this.$i18nt("gd.https.addTipp","\u5982\u679C\u7528\u6237\u6CA1\u6709\u6536\u5230\u90AE\u4EF6\uFF0C\u5C1D\u8BD5\u901A\u8FC7\u3010\u91CD\u7F6E\u5BC6\u7801\u3011\u53D1\u9001\u5BC6\u7801\u91CD\u7F6E\u8BF7\u6C42\u3002")}</p>`}):n.$message.success(n.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),n.copyRule==1?(n.infoData=c,setTimeout(()=>{n.$refs.copyInfo.open(n.isSendEmail)},500)):n.refresh()}else n.$message.error(n.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+a.message);e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},sending(){this.refresh()},doEvent(i){let e=i.item.functionName;this[e]&&this[e]()}},created(){this.getOrgTree()}};var W=function(){var e=this,t=e._self._c;return t("div",{staticClass:"gd-page-view",staticStyle:{display:"flex",background:"rgb(245, 245, 245)"}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"page-view-tree",style:e.styled},[t("el-tree",{ref:"tree",attrs:{data:e.orgTree,props:e.defaultProps,"node-key":"id","current-node-key":e.defaultExpandedKeys,"default-expand-all":"","highlight-current":"","expand-on-click-node":!1},on:{"node-click":e.handleNodeClick}})],1),t("div",{staticClass:"page-view-list"},[t("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"account",fn:function({column:r,row:n}){return[t("gd-tooltip",{attrs:{rowKey:"account",row:n,highlight:""},on:{click:e.editForm}})]}},{key:"gender",fn:function(r){return[t("div",{staticStyle:{cursor:"pointer"}},[t("el-tag",{style:e._f("dictColor")("gender",r.row.gender),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("gender",r.row.gender))+" ")])],1)]}},{key:"statecodes",fn:function(r){return[t("div",{staticStyle:{cursor:"pointer"},on:{click:function(n){return n.stopPropagation(),e.editStateCodes(r)}}},[r.row.statecodes==1?t("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):t("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"18px",color:"#999"}})])]}},{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operator"},[t("div",{staticClass:"gd-table-operatorl",staticStyle:{width:"270px"}},[t("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.user.keywordTip","\u8BF7\u8F93\u5165\u59D3\u540D\u3001\u8D26\u53F7\u3001\u624B\u673A\u53F7\u5173\u952E\u8BCD"),clearable:""},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.searchValue,callback:function(r){e.$set(e.queryParam,"searchValue",r)},expression:"queryParam.searchValue"}}),t("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[t("i",{staticClass:"el-input__icon el-icon-search"})])],1),t("div",{staticClass:"gd-table-operatorr"},[t("gd-btn-list",{attrs:{sysViewButtons:e.getTableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:r,visible:n}){return[t("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.height,queryParam:e.queryParam,colse:r,visible:n},on:{save:e.saveQueries}})]}}])})],1),t("UserRoleForm",{ref:"userRoleForm",on:{ok:e.handleOk}}),e.institutionsShow?t("EditInstitutions",{ref:"editInstitutions",on:{ok:e.handleOk,closed:function(r){e.institutionsShow=!1}}}):e._e(),t("copyInfo",{ref:"copyInfo",attrs:{infoData:e.infoData,isSendEmail:e.isSendEmailed},on:{sending:e.sending}}),t("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode,inline:!0,width:"1000px",needLoad:e.needLoad},on:{sbumit:e.sbumit}}),t("div",{staticStyle:{position:"fixed",left:"-20000px",top:"-2000px"}},[t("el-upload",{ref:"upload",attrs:{"http-request":e.handleFileUpload,"file-list":e.fileList,action:""}},[t("el-button",{ref:"uploadDemo",staticClass:"upload-demo",attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[e._v(" "+e._s(e.$i18nt("gd.user.selectFile","\u9009\u53D6\u6587\u4EF6"))+" ")])],1)],1)],1)},X=[],Z=T.normalizeComponent(J,W,X,!1,null,"0c9b0d8b",null,null);const S=Z.exports;S.install=function(i){i.component(S.name,S)};exports.GDpackage=S;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as C } from "./system.notice.
|
|
2
|
-
import { h as O, a as N, i as P, c as B, j as D, k as E, g as U, l as I, m as A, n as M, f as q, o as H, q as j, r as z, t as
|
|
3
|
-
import { m as R, n as T } from "./chartbi.
|
|
4
|
-
import { t as G } from "./messages.
|
|
5
|
-
import { G as Q } from "./system.role.
|
|
1
|
+
import { a as C } from "./system.notice.b4247147.mjs";
|
|
2
|
+
import { h as O, a as N, i as P, c as B, j as D, k as E, g as U, l as I, m as A, n as M, f as q, o as H, q as j, r as z, t as x } from "./system.account.868f96f9.mjs";
|
|
3
|
+
import { m as R, n as T } from "./chartbi.c3bc6adb.mjs";
|
|
4
|
+
import { t as G } from "./messages.bc3bc0e8.mjs";
|
|
5
|
+
import { G as Q } from "./system.role.0323ddd5.mjs";
|
|
6
6
|
const V = {
|
|
7
7
|
data() {
|
|
8
8
|
return {
|
|
@@ -384,6 +384,25 @@ const ie = se.exports, ne = {
|
|
|
384
384
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
385
385
|
placeholderTransKey: "gd.placeholder.input",
|
|
386
386
|
rules: []
|
|
387
|
+
}, {
|
|
388
|
+
transKey: "gd.user.verificationMethod",
|
|
389
|
+
prop: "authtype",
|
|
390
|
+
effectType: "select",
|
|
391
|
+
label: "\u9A8C\u8BC1\u65B9\u5F0F",
|
|
392
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
393
|
+
dictTypeCode: "user_auth_type",
|
|
394
|
+
placeholderTransKey: "gd.placeholder.select",
|
|
395
|
+
treeOptions: [],
|
|
396
|
+
rules: []
|
|
397
|
+
}, {
|
|
398
|
+
transKey: "gd.user.employeeID",
|
|
399
|
+
prop: "employeeid",
|
|
400
|
+
effectType: "input",
|
|
401
|
+
label: "\u5DE5\u53F7",
|
|
402
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
403
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
404
|
+
treeOptions: [],
|
|
405
|
+
rules: []
|
|
387
406
|
}],
|
|
388
407
|
tableButtons: [
|
|
389
408
|
{
|
|
@@ -471,7 +490,7 @@ const ie = se.exports, ne = {
|
|
|
471
490
|
}],
|
|
472
491
|
tableQueries: [{
|
|
473
492
|
transKey: "gd.user.status",
|
|
474
|
-
prop: "
|
|
493
|
+
prop: "searchStatus",
|
|
475
494
|
label: "\u72B6\u6001",
|
|
476
495
|
effectType: "checkbox",
|
|
477
496
|
dictTypeCode: "state_code",
|
|
@@ -1161,7 +1180,8 @@ const ue = {
|
|
|
1161
1180
|
},
|
|
1162
1181
|
{
|
|
1163
1182
|
gender: String(i.gender),
|
|
1164
|
-
orgid: String(i.orgid)
|
|
1183
|
+
orgid: String(i.orgid),
|
|
1184
|
+
authtype: String(i.authtype)
|
|
1165
1185
|
}
|
|
1166
1186
|
)
|
|
1167
1187
|
);
|
|
@@ -1349,17 +1369,27 @@ const ue = {
|
|
|
1349
1369
|
}
|
|
1350
1370
|
e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1;
|
|
1351
1371
|
let s, o = {};
|
|
1352
|
-
n.isSendEmail == 1 && n.copyRule == 1
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1372
|
+
if (n.isSendEmail == 1 && n.copyRule == 1)
|
|
1373
|
+
o = {
|
|
1374
|
+
id: n.selectedRows[0].id,
|
|
1375
|
+
newPassword: r
|
|
1376
|
+
}, s = x;
|
|
1377
|
+
else if (n.isSendEmail == 1)
|
|
1378
|
+
o = {
|
|
1379
|
+
accountName: n.selectedRows[0].account,
|
|
1380
|
+
emailAddress: n.selectedRows[0].email,
|
|
1381
|
+
pcR_Type: 5
|
|
1382
|
+
}, s = E;
|
|
1383
|
+
else if (n.copyRule == 1)
|
|
1384
|
+
o = {
|
|
1385
|
+
id: n.selectedRows[0].id,
|
|
1386
|
+
newPassword: r
|
|
1387
|
+
}, s = x;
|
|
1388
|
+
else {
|
|
1389
|
+
this.$message.error(this.$i18nt("gd.https.resetFailure", "\u91CD\u7F6E\u6210\u529F")), t();
|
|
1390
|
+
return;
|
|
1391
|
+
}
|
|
1392
|
+
s(o).then((a) => {
|
|
1363
1393
|
if (n.isSendEmailed = n.isSendEmail, t(), a.success) {
|
|
1364
1394
|
let c = {
|
|
1365
1395
|
account: n.selectedRows[0].account,
|
|
@@ -1422,14 +1452,14 @@ var he = function() {
|
|
|
1422
1452
|
fe,
|
|
1423
1453
|
!1,
|
|
1424
1454
|
null,
|
|
1425
|
-
"
|
|
1455
|
+
"0c9b0d8b",
|
|
1426
1456
|
null,
|
|
1427
1457
|
null
|
|
1428
1458
|
);
|
|
1429
|
-
const
|
|
1430
|
-
|
|
1431
|
-
i.component(
|
|
1459
|
+
const S = ge.exports;
|
|
1460
|
+
S.install = function(i) {
|
|
1461
|
+
i.component(S.name, S);
|
|
1432
1462
|
};
|
|
1433
1463
|
export {
|
|
1434
|
-
|
|
1464
|
+
S as G
|
|
1435
1465
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const l=require("./system.duplicatechecking.f66790d1.js"),o=require("./chartbi.06e48153.js"),u=require("./messages.30e41348.js"),h={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.form.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0}],formColumns:[{transKey:"gd.form.roleName",effectType:"input",prop:"name",label:"\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.ownershipValue.ownershipValue",prop:"affiliationValue",effectType:"input",label:"\u6240\u5C5E\u503C",placeholder:"\u8BF7\u8F93\u5165",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysAffiliation:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysAffiliation:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysAffiliation:delete"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.form.name",prop:"name",label:"\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.ownershipValue.ownershipValue",prop:"affiliationValue",label:"\u6240\u5C5E\u503C",effectType:"input",rules:[]}]}}};const f={name:"GdUserRole",props:{height:{type:Number,default:100},openSelecteKeys:{type:Array,default:()=>[]},useraffiliationname:{type:String,default:""},openMode:{type:String,default:"page"}},mixins:[u.tablesFilter],data(){return{transKey:"gd.btn.add",formLoading:!1,currentNode:null,loading:!0,orgTree:[],selectedRowKeys:[],selectedRows:[],queryParam:{},defaultProps:{children:"children",label:"title",value:"value"},defaultExpandedKeys:"",loadData:t=>(this.queryParam={userAffiliationId:this.openSelecteKeys[0]},l.getbyUserAffiliationId(this.queryParam).then(e=>(e.data.length>0&&this.getRowId(e.data),console.log(this.disabledRowId),e.data.forEach(s=>{s.useraffiliationname=this.useraffiliationname}),{pageno:1,pagesize:1e3,rows:e.data}))),disableBtn:[],fileList:[],needLoad:!1,infoData:{},isSendEmail:"",isSendEmailed:"",tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.userAffiliation.name",prop:"username",label:"\u7528\u6237(\u59D3\u540D)",align:"left",type:"slot",slotType:"username",showOverflowTooltip:!0},{transKey:"gd.userAffiliation.userOwnershipName",prop:"useraffiliationname",label:"\u7528\u6237\u6240\u5C5E\u540D\u79F0",align:"left",showOverflowTooltip:!0}],formColumnsuser:[{transKey:"gd.user.account",effectType:"input",prop:"account",label:"\u8D26\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change",min:2}]},{transKey:"gd.user.name",prop:"name",effectType:"input",label:"\u59D3\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.sex",prop:"gender",effectType:"radio",label:"\u6027\u522B",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",dictTypeCode:"gender",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.birthday",prop:"birthday",effectType:"date",label:"\u751F\u65E5",placeholder:"\u8BF7\u8F93\u5165",valueFormat:"yyyy-MM-dd",placeholderTransKey:"gd.placeholder.select",rules:[]},{transKey:"gd.user.phone",effectType:"input",prop:"phone",label:"\u624B\u673A\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.email",effectType:"input",prop:"email",label:"\u90AE\u7BB1",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"},{type:"email",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u53F7!",transKey:"gd.account.emailTip"}]},{transKey:"gd.user.nickname",prop:"nickname",effectType:"input",label:"\u6635\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.user.tel",prop:"tel",effectType:"input",label:"\u7535\u8BDD",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.org.displayName",prop:"orgid",effectType:"selectTree",label:"\u6240\u5C5E\u673A\u6784",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",treeOptions:[],rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.user.PSDNeverExpire",prop:"psdneverexpire",effectType:"switch",label:"\u5BC6\u7801\u6C38\u4E0D\u8FC7\u671F",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysRole:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysRole:delete"}],disabledRowId:[],sysCodeGenName:"sys_user"}},components:{},computed:{initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},getQueryParam(){let t=new Map;for(let e in this.queryParam)t.set(e==="statecodes"?"searchctatus":e,this.queryParam[e]);return Object.fromEntries(t)},getFormColumns(){return this.formColumnsuser.filter(e=>(e.prop==="orgid"&&(e.treeOptions=[...this.orgTree]),!0))},getTableButtons(){return this.tableButtons.filter(t=>(t.show=!this.disableBtn.includes(t.displayName),!0))},getHeight(){return this.height},styled(){return`height:${this.height+76}px`},...o.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{getRowId(t){let e=[];t.filter(s=>!this.disabledRowId.includes(s.userid)).forEach(s=>{e.push(s.userid)}),this.disabledRowId=this.disabledRowId.concat(e)},saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},handleOk(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},lookupSeled(t){if(t.fkData.length===0){this.$refs.engineSearch.closed();return}this.$refs.engineSearch.confirmLoading=!0,l.sysUserAffiliationAddRelation({userAffiliationId:this.openSelecteKeys[0],userIdList:t.data}).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$refs.engineSearch.closed(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+e.message),this.$refs.engineSearch.confirmLoading=!1})},add(){this.$refs.engineSearch.open({fkEntityName:this.sysCodeGenName,val:[],effectType:"participants",isRelevance:!0})},del(){let t=this;if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(e,s,i)=>{if(e!=="confirm"){i();return}s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,l.sysUserAffiliationDeleteRelation({userAffiliationId:t.openSelecteKeys[0],userIdList:JSON.parse(JSON.stringify(t.selectedRows)).map(a=>a.userid)}).then(a=>{a.success?(t.$message.success(t.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),t.disabledRowId=t.disabledRowId.filter(n=>!t.selectedRows.filter(d=>d.userid===n)[0]),s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0,i(),t.refresh()):t.$message.error(t.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+a.message)})}})}},created(){}};var p=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view",staticStyle:{display:"flex",background:"rgb(245, 245, 245)"}},[s("div",{staticClass:"page-view-list"},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,showPagination:!1,selectedRowKeys:e.selectedRowKeys,height:e.height,initialLoading:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"username",fn:function({column:i,row:a}){return[s("span",{staticStyle:{cursor:"pointer"}},[e._v(" "+e._s(a.username)+" ")])]}}])}),s("gd-search",{ref:"engineSearch",attrs:{appendToBody:!0,disabledRowId:e.disabledRowId},on:{lookupSeled:e.lookupSeled}})],1)])},g=[],m=o.normalizeComponent(f,p,g,!1,null,"65ef2965",null,null);const y=m.exports;const b={data(){return{buttons:[],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"90%",selectedRowKeys:[]}},components:{UserRelation:y},computed:{height(){return this.screenHeight-(this.fullscreen?160:340)},...o.mapGetters(["screenHeight"])},methods:{handleSubmit(){this.closed()},open(t){this.record=t,this.visible=!0,this.selectedRowKeys=[t.id],this.useraffiliationname=t.affiliationvalue,this.$nextTick(()=>{setTimeout(()=>{this.$refs.userForm.refresh()},0)})},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},onSelectChange(t){this.selectedRowKeys=t},doEvent(t){const e=t.item.functionName;this[e]&&this[e]()}}};var w=function(){var e=this,s=e._self._c;return s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!1,"append-to-body":!0,top:"80px","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:e.$i18nt("gd.user.userAuthorization","\u6388\u6743\u7528\u6237"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?s("UserRelation",{ref:"userForm",attrs:{height:e.height,openMode:"components",openSelecteKeys:e.selectedRowKeys,useraffiliationname:e.useraffiliationname},on:{onSelectChange:e.onSelectChange}}):e._e()],1)],2)},v=[],_=o.normalizeComponent(b,w,v,!1,null,"f6bdfd51",null,null);const $=_.exports;const K={data(){return{sys_UseraffiliationtypeId:"",transKey:"gd.btn.add",formLoading:!1,formButtons:[{displayName:"\u786E\u5B9A",functionName:"formhandleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],belongslist:[],formColumns:[{transKey:"gd.form.name",prop:"name",effectType:"input",label:"\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.ownershipValue.ownershipValue",prop:"affiliationValue",effectType:"input",label:"\u6240\u5C5E\u503C",placeholder:"\u8BF7\u8F93\u5165",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]}],confirmLoading:!0,title:"",sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],type:1,fullScreen:!1,width:"1000px",ruleFormData:{name:""},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},visible:!1,queryParam:{},loadData:t=>(this.queryParam={Sys_UseraffiliationtypeId:this.sys_UseraffiliationtypeId},l.getUserAffiliation(Object.assign(t,this.queryParam)).then(e=>(e.data.rows.forEach(s=>{s.typename=this.ruleFormData.name}),e.data))),openMode:"page",selectedRowKeys:[],selectedRows:[],tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.duplicatechecking.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.ownershipValue.ownershipValue",prop:"affiliationvalue",label:"\u6240\u5C5E\u503C",align:"left",showOverflowTooltip:!0}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysAffiliation:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysAffiliation:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysAffiliation:delete"},{displayName:"\u6388\u6743\u7528\u6237",functionName:"userRelationship",show:!0,transKey:"gd.user.userAuthorization",icon:"el-icon-setting",name:"sysAffiliation:belongingMenu"}]}},components:{UserRelationAdd:$},computed:{getFormColumns(){return this.formColumns.filter(t=>!0)},getHeight(){const t=this.fullScreen?230:410;return this.screenHeight-t},initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},...o.mapGetters(["screenHeight","tableLists","tableSize","tablePageSize","labelPosition","formMode"])},methods:{userRelationship(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.$refs.userrelationadd.open(this.selectedRows[0])},lookup(t,e){const s=t[e.prop];this.$refs.viewSearch.open({fkEntityName:"DataSource",effectType:e.effectType,val:s||""})},async searchDataSource(t){this.formLoading=!0,this.belongslist=[],this.belongslist=await this.getbelongslist(),this.formLoading=!1},fkSearch(t){const e=`${t}Loading`;t==="name"&&!this[e]&&this.searchDataSource("")},getbelongslist(){return l.getSysUserAffiliationType().then(t=>{if(t.code===200)return t.data.rows})},getDataSource(t){let e={name:t,fkEntityName:this.fkEntityName};return u.baseFkList(e).then(s=>s.data.map(i=>(i.id=String(i.id),i)))},okFilter(t){this.filterList={...t}},toggleFullscreen(){this.fullScreen=!this.fullScreen},getDictionary(t){return this.$options.filters.dictData(t)},selectRules(t){},getList(t,e){},init(t){this.fullScreen=!1,this.confirmLoading=!1,this.visible=!0,this.type=t?2:1,this.title=t?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add"),this.sys_UseraffiliationtypeId=t?t.id:"",this.selectedRowKeys=[],this.selectedRows=[],this.$nextTick(()=>{setTimeout(()=>{this.type===2&&this.refresh(),this.ruleFormData={name:t?t.name:""},this.$refs.ruleForm.resetFields()},0)})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(a=>{let n=l.sysUserAffiliationDelete(a).then(r=>r);i.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(a=>{const n=a.filter(r=>!r.success);n.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n[0].message),s(),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},add(t){this.transKey="gd.btn.add",this.$refs.editFormref.open(null),this.$refs.editFormref.setData({nametype:this.ruleFormData.name})},edit(t){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},editForm(t){this.transKey="gd.btn.edit",this.$refs.editFormref.open(t),this.$refs.editFormref.setData({nametype:this.ruleFormData.name}),this.$refs.editFormref.setData({affiliationValue:t.affiliationvalue})},formhandleSubmit(){console.log("\u6240\u5C5E\u503C\u7684\u65B0\u589E\u4FDD\u5B58")},handleSubmit(){this.$refs.ruleForm.validate(t=>{if(t){const e={...this.ruleFormData};this.sub(e)}})},sub(t){this.formLoading=!0;let e=this.type==1?l.sysUserAffiliationTypeAdd:l.sysUserAffiliationTypeEdit;const s=this.type==1?t:Object.assign({values:t,id:this.sys_UseraffiliationtypeId});e(s).then(i=>{i.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.handleCancel(),this.$emit("ok")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+i.message),this.formLoading=!1})},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.tabledisabled=!1},doEvent(t){let e=t.item.functionName;this[e]()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("onSelectChange",t,e)},removeRow(t){let e=this;this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(s,i,a)=>{if(s!=="confirm"){a();return}e.$message.success(e.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),a()}})},sbumit({data:t,record:e,btn:s},i,a){this.formLoading=!0;let n=e?l.sysUserAffiliationEdit:l.sysUserAffiliationAdd;delete t.nametype;const r=e?Object.assign({affiliationValue:t.affiliationValue,sys_UseraffiliationtypeId:this.sys_UseraffiliationtypeId,id:t.id}):Object.assign(t,{sys_UseraffiliationtypeId:this.sys_UseraffiliationtypeId});n(r).then(d=>{d.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+d.message),this.formLoading=!1})},refresh(){this.$refs.table&&this.$refs.table.refresh()}}};var C=function(){var e=this,s=e._self._c;return s("div",[s("el-dialog",{class:e.fullScreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullScreen,width:e.width,visible:e.visible,footer:null,top:"80px","append-to-body":"","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.handleCancel}},[s("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullScreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0,closed:"handleCancel"},on:{changeEvent:e.doEvent},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[s("div",{staticClass:"setting-navs",class:e.fullScreen?"modal-bodyq":"modal-body"},[s("el-form",{ref:"ruleForm",attrs:{model:e.ruleFormData,rules:e.rules,"label-width":"120px"},nativeOn:{submit:function(i){i.preventDefault()}}},[s("el-row",{staticStyle:{"margin-left":"-12px","margin-right":"-12px"},attrs:{gutter:48}},[s("el-col",{attrs:{span:12}},[s("el-form-item",{staticClass:"form_name",staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.duplicatechecking.name","\u540D\u79F0"),prop:"name"}},[s("el-input",{attrs:{disabled:e.type==2,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.name,callback:function(i){e.$set(e.ruleFormData,"name",i)},expression:"ruleFormData.name"}})],1)],1)],1)],1),e.type==2?[s("el-divider"),s("div",{staticClass:"setting-conter"},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,selectedKeep:e.selectedKeep,initialLoading:e.initialLoading},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""},on:{click:e.editForm}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"operator-list"},[s("div",{staticClass:"clearfix"},[s("span",[e._v(e._s(e.$i18nt("gd.userAffiliation.userownershipValue","\u7528\u6237\u6240\u5C5E\u503C")))])]),s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])])]},proxy:!0}],null,!1,3417440761)})],1)]:e._e()],2)])],1),s("gd-edit-form",{ref:"editFormref",attrs:{formItemWidth:"100%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode},on:{sbumit:e.sbumit}}),s("UserRelationAdd",{ref:"userrelationadd",on:{ok:e.refresh}})],1)},S=[],T=o.normalizeComponent(K,C,S,!1,null,"d0f142ed",null,null);const R=T.exports;const k={name:"GdUserAffiliation",props:{height:{type:Number,default:100},openMode:{type:String,default:"page"},openSelecteKeys:{type:Array,default:()=>[]}},mixins:[u.tablesFilter,h],data(){return{loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{},record:{},loadData:t=>(this.selectedKeep&&(this.selectedRowKeys=[...this.openSelecteKeys]),l.getSysUserAffiliationType(Object.assign(t,this.queryParam)).then(e=>e.data))}},components:{editForm:R},computed:{initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},getHeight(){return this.height},...o.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},editForm(t){this.$refs.editForm.init(t)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(a=>{let n=l.sysUserAffiliationTypeDelete(a).then(r=>r);i.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(a=>{const n=a.filter(r=>!r.success);n.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n[0].message),s(),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},add(){this.$refs.editForm.init(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},handleOk(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("onSelectChange",t,e)},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var L=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0,selectedKeep:e.selectedKeep,initialLoading:e.initialLoading},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""},on:{click:e.editForm}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl"},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.form.name","\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(i){e.$set(e.queryParam,"name",i)},expression:"queryParam.name"}}),s("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[e.openMode==="page"?s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}}):e._e()],1)])]},proxy:!0},{key:"filtering",fn:function({colse:i,visible:a}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:i,visible:a},on:{save:e.saveQueries}})]}}])})],1),s("editForm",{ref:"editForm",attrs:{table:e.record},on:{ok:e.handleOk}})],1)},B=[],F=o.normalizeComponent(k,L,B,!1,null,"3966b20c",null,null);const c=F.exports;c.install=function(t){t.component(c.name,c)};exports.GDpackage=c;
|
|
1
|
+
"use strict";const l=require("./system.duplicatechecking.1865e065.js"),o=require("./chartbi.5eded588.js"),u=require("./messages.fa3d97b5.js"),h={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.form.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0}],formColumns:[{transKey:"gd.form.roleName",effectType:"input",prop:"name",label:"\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.ownershipValue.ownershipValue",prop:"affiliationValue",effectType:"input",label:"\u6240\u5C5E\u503C",placeholder:"\u8BF7\u8F93\u5165",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysAffiliation:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysAffiliation:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysAffiliation:delete"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.form.name",prop:"name",label:"\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.ownershipValue.ownershipValue",prop:"affiliationValue",label:"\u6240\u5C5E\u503C",effectType:"input",rules:[]}]}}};const f={name:"GdUserRole",props:{height:{type:Number,default:100},openSelecteKeys:{type:Array,default:()=>[]},useraffiliationname:{type:String,default:""},openMode:{type:String,default:"page"}},mixins:[u.tablesFilter],data(){return{transKey:"gd.btn.add",formLoading:!1,currentNode:null,loading:!0,orgTree:[],selectedRowKeys:[],selectedRows:[],queryParam:{},defaultProps:{children:"children",label:"title",value:"value"},defaultExpandedKeys:"",loadData:t=>(this.queryParam={userAffiliationId:this.openSelecteKeys[0]},l.getbyUserAffiliationId(this.queryParam).then(e=>(e.data.length>0&&this.getRowId(e.data),console.log(this.disabledRowId),e.data.forEach(s=>{s.useraffiliationname=this.useraffiliationname}),{pageno:1,pagesize:1e3,rows:e.data}))),disableBtn:[],fileList:[],needLoad:!1,infoData:{},isSendEmail:"",isSendEmailed:"",tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.userAffiliation.name",prop:"username",label:"\u7528\u6237(\u59D3\u540D)",align:"left",type:"slot",slotType:"username",showOverflowTooltip:!0},{transKey:"gd.userAffiliation.userOwnershipName",prop:"useraffiliationname",label:"\u7528\u6237\u6240\u5C5E\u540D\u79F0",align:"left",showOverflowTooltip:!0}],formColumnsuser:[{transKey:"gd.user.account",effectType:"input",prop:"account",label:"\u8D26\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change",min:2}]},{transKey:"gd.user.name",prop:"name",effectType:"input",label:"\u59D3\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.sex",prop:"gender",effectType:"radio",label:"\u6027\u522B",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",dictTypeCode:"gender",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.birthday",prop:"birthday",effectType:"date",label:"\u751F\u65E5",placeholder:"\u8BF7\u8F93\u5165",valueFormat:"yyyy-MM-dd",placeholderTransKey:"gd.placeholder.select",rules:[]},{transKey:"gd.user.phone",effectType:"input",prop:"phone",label:"\u624B\u673A\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.email",effectType:"input",prop:"email",label:"\u90AE\u7BB1",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"},{type:"email",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u53F7!",transKey:"gd.account.emailTip"}]},{transKey:"gd.user.nickname",prop:"nickname",effectType:"input",label:"\u6635\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.user.tel",prop:"tel",effectType:"input",label:"\u7535\u8BDD",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.org.displayName",prop:"orgid",effectType:"selectTree",label:"\u6240\u5C5E\u673A\u6784",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",treeOptions:[],rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.user.PSDNeverExpire",prop:"psdneverexpire",effectType:"switch",label:"\u5BC6\u7801\u6C38\u4E0D\u8FC7\u671F",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysRole:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysRole:delete"}],disabledRowId:[],sysCodeGenName:"sys_user"}},components:{},computed:{initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},getQueryParam(){let t=new Map;for(let e in this.queryParam)t.set(e==="statecodes"?"searchctatus":e,this.queryParam[e]);return Object.fromEntries(t)},getFormColumns(){return this.formColumnsuser.filter(e=>(e.prop==="orgid"&&(e.treeOptions=[...this.orgTree]),!0))},getTableButtons(){return this.tableButtons.filter(t=>(t.show=!this.disableBtn.includes(t.displayName),!0))},getHeight(){return this.height},styled(){return`height:${this.height+76}px`},...o.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{getRowId(t){let e=[];t.filter(s=>!this.disabledRowId.includes(s.userid)).forEach(s=>{e.push(s.userid)}),this.disabledRowId=this.disabledRowId.concat(e)},saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},handleOk(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},lookupSeled(t){if(t.fkData.length===0){this.$refs.engineSearch.closed();return}this.$refs.engineSearch.confirmLoading=!0,l.sysUserAffiliationAddRelation({userAffiliationId:this.openSelecteKeys[0],userIdList:t.data}).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$refs.engineSearch.closed(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+e.message),this.$refs.engineSearch.confirmLoading=!1})},add(){this.$refs.engineSearch.open({fkEntityName:this.sysCodeGenName,val:[],effectType:"participants",isRelevance:!0})},del(){let t=this;if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(e,s,i)=>{if(e!=="confirm"){i();return}s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,l.sysUserAffiliationDeleteRelation({userAffiliationId:t.openSelecteKeys[0],userIdList:JSON.parse(JSON.stringify(t.selectedRows)).map(a=>a.userid)}).then(a=>{a.success?(t.$message.success(t.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),t.disabledRowId=t.disabledRowId.filter(n=>!t.selectedRows.filter(d=>d.userid===n)[0]),s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0,i(),t.refresh()):t.$message.error(t.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+a.message)})}})}},created(){}};var p=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view",staticStyle:{display:"flex",background:"rgb(245, 245, 245)"}},[s("div",{staticClass:"page-view-list"},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,showPagination:!1,selectedRowKeys:e.selectedRowKeys,height:e.height,initialLoading:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"username",fn:function({column:i,row:a}){return[s("span",{staticStyle:{cursor:"pointer"}},[e._v(" "+e._s(a.username)+" ")])]}}])}),s("gd-search",{ref:"engineSearch",attrs:{appendToBody:!0,disabledRowId:e.disabledRowId},on:{lookupSeled:e.lookupSeled}})],1)])},g=[],m=o.normalizeComponent(f,p,g,!1,null,"65ef2965",null,null);const y=m.exports;const b={data(){return{buttons:[],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"90%",selectedRowKeys:[]}},components:{UserRelation:y},computed:{height(){return this.screenHeight-(this.fullscreen?160:340)},...o.mapGetters(["screenHeight"])},methods:{handleSubmit(){this.closed()},open(t){this.record=t,this.visible=!0,this.selectedRowKeys=[t.id],this.useraffiliationname=t.affiliationvalue,this.$nextTick(()=>{setTimeout(()=>{this.$refs.userForm.refresh()},0)})},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},onSelectChange(t){this.selectedRowKeys=t},doEvent(t){const e=t.item.functionName;this[e]&&this[e]()}}};var w=function(){var e=this,s=e._self._c;return s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!1,"append-to-body":!0,top:"80px","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:e.$i18nt("gd.user.userAuthorization","\u6388\u6743\u7528\u6237"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?s("UserRelation",{ref:"userForm",attrs:{height:e.height,openMode:"components",openSelecteKeys:e.selectedRowKeys,useraffiliationname:e.useraffiliationname},on:{onSelectChange:e.onSelectChange}}):e._e()],1)],2)},v=[],_=o.normalizeComponent(b,w,v,!1,null,"f6bdfd51",null,null);const $=_.exports;const K={data(){return{sys_UseraffiliationtypeId:"",transKey:"gd.btn.add",formLoading:!1,formButtons:[{displayName:"\u786E\u5B9A",functionName:"formhandleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],belongslist:[],formColumns:[{transKey:"gd.form.name",prop:"name",effectType:"input",label:"\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.ownershipValue.ownershipValue",prop:"affiliationValue",effectType:"input",label:"\u6240\u5C5E\u503C",placeholder:"\u8BF7\u8F93\u5165",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]}],confirmLoading:!0,title:"",sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],type:1,fullScreen:!1,width:"1000px",ruleFormData:{name:""},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},visible:!1,queryParam:{},loadData:t=>(this.queryParam={Sys_UseraffiliationtypeId:this.sys_UseraffiliationtypeId},l.getUserAffiliation(Object.assign(t,this.queryParam)).then(e=>(e.data.rows.forEach(s=>{s.typename=this.ruleFormData.name}),e.data))),openMode:"page",selectedRowKeys:[],selectedRows:[],tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.duplicatechecking.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.ownershipValue.ownershipValue",prop:"affiliationvalue",label:"\u6240\u5C5E\u503C",align:"left",showOverflowTooltip:!0}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysAffiliation:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysAffiliation:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysAffiliation:delete"},{displayName:"\u6388\u6743\u7528\u6237",functionName:"userRelationship",show:!0,transKey:"gd.user.userAuthorization",icon:"el-icon-setting",name:"sysAffiliation:belongingMenu"}]}},components:{UserRelationAdd:$},computed:{getFormColumns(){return this.formColumns.filter(t=>!0)},getHeight(){const t=this.fullScreen?230:410;return this.screenHeight-t},initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},...o.mapGetters(["screenHeight","tableLists","tableSize","tablePageSize","labelPosition","formMode"])},methods:{userRelationship(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.$refs.userrelationadd.open(this.selectedRows[0])},lookup(t,e){const s=t[e.prop];this.$refs.viewSearch.open({fkEntityName:"DataSource",effectType:e.effectType,val:s||""})},async searchDataSource(t){this.formLoading=!0,this.belongslist=[],this.belongslist=await this.getbelongslist(),this.formLoading=!1},fkSearch(t){const e=`${t}Loading`;t==="name"&&!this[e]&&this.searchDataSource("")},getbelongslist(){return l.getSysUserAffiliationType().then(t=>{if(t.code===200)return t.data.rows})},getDataSource(t){let e={name:t,fkEntityName:this.fkEntityName};return u.baseFkList(e).then(s=>s.data.map(i=>(i.id=String(i.id),i)))},okFilter(t){this.filterList={...t}},toggleFullscreen(){this.fullScreen=!this.fullScreen},getDictionary(t){return this.$options.filters.dictData(t)},selectRules(t){},getList(t,e){},init(t){this.fullScreen=!1,this.confirmLoading=!1,this.visible=!0,this.type=t?2:1,this.title=t?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add"),this.sys_UseraffiliationtypeId=t?t.id:"",this.selectedRowKeys=[],this.selectedRows=[],this.$nextTick(()=>{setTimeout(()=>{this.type===2&&this.refresh(),this.ruleFormData={name:t?t.name:""},this.$refs.ruleForm.resetFields()},0)})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(a=>{let n=l.sysUserAffiliationDelete(a).then(r=>r);i.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(a=>{const n=a.filter(r=>!r.success);n.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n[0].message),s(),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},add(t){this.transKey="gd.btn.add",this.$refs.editFormref.open(null),this.$refs.editFormref.setData({nametype:this.ruleFormData.name})},edit(t){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},editForm(t){this.transKey="gd.btn.edit",this.$refs.editFormref.open(t),this.$refs.editFormref.setData({nametype:this.ruleFormData.name}),this.$refs.editFormref.setData({affiliationValue:t.affiliationvalue})},formhandleSubmit(){console.log("\u6240\u5C5E\u503C\u7684\u65B0\u589E\u4FDD\u5B58")},handleSubmit(){this.$refs.ruleForm.validate(t=>{if(t){const e={...this.ruleFormData};this.sub(e)}})},sub(t){this.formLoading=!0;let e=this.type==1?l.sysUserAffiliationTypeAdd:l.sysUserAffiliationTypeEdit;const s=this.type==1?t:Object.assign({values:t,id:this.sys_UseraffiliationtypeId});e(s).then(i=>{i.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.handleCancel(),this.$emit("ok")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+i.message),this.formLoading=!1})},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.tabledisabled=!1},doEvent(t){let e=t.item.functionName;this[e]()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("onSelectChange",t,e)},removeRow(t){let e=this;this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(s,i,a)=>{if(s!=="confirm"){a();return}e.$message.success(e.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),a()}})},sbumit({data:t,record:e,btn:s},i,a){this.formLoading=!0;let n=e?l.sysUserAffiliationEdit:l.sysUserAffiliationAdd;delete t.nametype;const r=e?Object.assign({affiliationValue:t.affiliationValue,sys_UseraffiliationtypeId:this.sys_UseraffiliationtypeId,id:t.id}):Object.assign(t,{sys_UseraffiliationtypeId:this.sys_UseraffiliationtypeId});n(r).then(d=>{d.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+d.message),this.formLoading=!1})},refresh(){this.$refs.table&&this.$refs.table.refresh()}}};var C=function(){var e=this,s=e._self._c;return s("div",[s("el-dialog",{class:e.fullScreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullScreen,width:e.width,visible:e.visible,footer:null,top:"80px","append-to-body":"","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.handleCancel}},[s("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullScreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0,closed:"handleCancel"},on:{changeEvent:e.doEvent},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[s("div",{staticClass:"setting-navs",class:e.fullScreen?"modal-bodyq":"modal-body"},[s("el-form",{ref:"ruleForm",attrs:{model:e.ruleFormData,rules:e.rules,"label-width":"120px"},nativeOn:{submit:function(i){i.preventDefault()}}},[s("el-row",{staticStyle:{"margin-left":"-12px","margin-right":"-12px"},attrs:{gutter:48}},[s("el-col",{attrs:{span:12}},[s("el-form-item",{staticClass:"form_name",staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.duplicatechecking.name","\u540D\u79F0"),prop:"name"}},[s("el-input",{attrs:{disabled:e.type==2,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.name,callback:function(i){e.$set(e.ruleFormData,"name",i)},expression:"ruleFormData.name"}})],1)],1)],1)],1),e.type==2?[s("el-divider"),s("div",{staticClass:"setting-conter"},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,selectedKeep:e.selectedKeep,initialLoading:e.initialLoading},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""},on:{click:e.editForm}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"operator-list"},[s("div",{staticClass:"clearfix"},[s("span",[e._v(e._s(e.$i18nt("gd.userAffiliation.userownershipValue","\u7528\u6237\u6240\u5C5E\u503C")))])]),s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])])]},proxy:!0}],null,!1,3417440761)})],1)]:e._e()],2)])],1),s("gd-edit-form",{ref:"editFormref",attrs:{formItemWidth:"100%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode},on:{sbumit:e.sbumit}}),s("UserRelationAdd",{ref:"userrelationadd",on:{ok:e.refresh}})],1)},S=[],T=o.normalizeComponent(K,C,S,!1,null,"d0f142ed",null,null);const R=T.exports;const k={name:"GdUserAffiliation",props:{height:{type:Number,default:100},openMode:{type:String,default:"page"},openSelecteKeys:{type:Array,default:()=>[]}},mixins:[u.tablesFilter,h],data(){return{loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{},record:{},loadData:t=>(this.selectedKeep&&(this.selectedRowKeys=[...this.openSelecteKeys]),l.getSysUserAffiliationType(Object.assign(t,this.queryParam)).then(e=>e.data))}},components:{editForm:R},computed:{initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},getHeight(){return this.height},...o.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},editForm(t){this.$refs.editForm.init(t)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(a=>{let n=l.sysUserAffiliationTypeDelete(a).then(r=>r);i.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(a=>{const n=a.filter(r=>!r.success);n.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n[0].message),s(),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},add(){this.$refs.editForm.init(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},handleOk(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("onSelectChange",t,e)},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var L=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0,selectedKeep:e.selectedKeep,initialLoading:e.initialLoading},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""},on:{click:e.editForm}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl"},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.form.name","\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(i){e.$set(e.queryParam,"name",i)},expression:"queryParam.name"}}),s("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[e.openMode==="page"?s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}}):e._e()],1)])]},proxy:!0},{key:"filtering",fn:function({colse:i,visible:a}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:i,visible:a},on:{save:e.saveQueries}})]}}])})],1),s("editForm",{ref:"editForm",attrs:{table:e.record},on:{ok:e.handleOk}})],1)},B=[],F=o.normalizeComponent(k,L,B,!1,null,"3966b20c",null,null);const c=F.exports;c.install=function(t){t.component(c.name,c)};exports.GDpackage=c;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as f, s as p, a as g, b as m, c as u, d as y, e as b, f as w, h as v, i as _, j as $ } from "./system.duplicatechecking.
|
|
2
|
-
import { m as o, n as d } from "./chartbi.
|
|
3
|
-
import { t as h, f as K } from "./messages.
|
|
1
|
+
import { g as f, s as p, a as g, b as m, c as u, d as y, e as b, f as w, h as v, i as _, j as $ } from "./system.duplicatechecking.f517abed.mjs";
|
|
2
|
+
import { m as o, n as d } from "./chartbi.c3bc6adb.mjs";
|
|
3
|
+
import { t as h, f as K } from "./messages.bc3bc0e8.mjs";
|
|
4
4
|
const C = {
|
|
5
5
|
data() {
|
|
6
6
|
return {
|