gds-plus-design-vue 1.2.4 → 1.2.6
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.5eded588.js → chartbi.114d32d7.js} +23 -23
- package/lib/{chartbi.c3bc6adb.mjs → chartbi.eb4dd0af.mjs} +3601 -3565
- package/lib/gd-initial.js +15 -15
- package/lib/gd-initial.mjs +4751 -3897
- package/lib/{main.7e1495ec.js → main.03984fed.js} +1 -1
- package/lib/{main.a27e1e54.js → main.1050afb3.js} +1 -1
- package/lib/{main.b25a9b4c.mjs → main.3caa11e1.mjs} +12 -34
- package/lib/main.64122541.js +1 -0
- package/lib/{main.b4ad6d81.mjs → main.b5a3be02.mjs} +16 -13
- package/lib/main.b7d2c6ee.js +1 -0
- package/lib/{main.00e2ba37.mjs → main.c41228a0.mjs} +3 -3
- package/lib/{main.55fab1ce.mjs → main.f0045877.mjs} +7 -7
- package/lib/messages.828b6ed8.js +9 -0
- package/lib/{messages.bc3bc0e8.mjs → messages.a739f4fc.mjs} +1095 -1065
- package/lib/style.css +3 -3
- package/lib/{system.account.e82580de.js → system.account.3181bcd6.js} +1 -1
- package/lib/{system.account.868f96f9.mjs → system.account.7c6ea20c.mjs} +18 -18
- package/lib/system.config.10f57fa2.js +1 -0
- package/lib/{system.config.71615d2b.mjs → system.config.d2ad8c97.mjs} +7 -2
- package/lib/{system.datasource.009a1673.mjs → system.datasource.a77831ab.mjs} +3 -3
- package/lib/{system.datasource.523ae242.js → system.datasource.d5eea7f2.js} +1 -1
- package/lib/{system.dict.8f562e89.mjs → system.dict.cb276470.mjs} +2 -2
- package/lib/{system.dict.0111a3bc.js → system.dict.d73658f1.js} +1 -1
- package/lib/{system.duplicatechecking.f517abed.mjs → system.duplicatechecking.5c8a3eef.mjs} +15 -11
- package/lib/{system.duplicatechecking.1865e065.js → system.duplicatechecking.d24ba6ea.js} +1 -1
- package/lib/{system.email.70351605.js → system.email.4bf52f2d.js} +1 -1
- package/lib/{system.email.4c484530.mjs → system.email.db5da8d7.mjs} +2 -2
- package/lib/{system.fieldsecurity.9f9f73df.mjs → system.fieldsecurity.9d40595f.mjs} +1 -1
- package/lib/{system.fieldsecurity.d11088e3.js → system.fieldsecurity.eb217079.js} +1 -1
- package/lib/{system.file.96b3ce1e.mjs → system.file.8064c8e9.mjs} +11 -6
- package/lib/system.file.c1884db7.js +1 -0
- package/lib/{system.log.80feb1c4.mjs → system.log.2b2fc11a.mjs} +64 -81
- package/lib/system.log.389af80d.js +1 -0
- package/lib/{system.machine.52e8a4f3.mjs → system.machine.0130e762.mjs} +1 -1
- package/lib/{system.machine.6e46b7a3.js → system.machine.49fc6405.js} +1 -1
- package/lib/{system.notice.b4247147.mjs → system.notice.5f8cd020.mjs} +53 -58
- package/lib/system.notice.a89f4826.js +1 -0
- package/lib/{system.noticereceived.eef2cf6e.mjs → system.noticereceived.51b6353a.mjs} +31 -29
- package/lib/system.noticereceived.5e0773c3.js +1 -0
- package/lib/system.onlineuser.67733846.js +1 -0
- package/lib/{system.onlineuser.de5f62bf.mjs → system.onlineuser.c0a69360.mjs} +22 -15
- package/lib/{system.org.94393315.mjs → system.org.1169fe47.mjs} +3 -3
- package/lib/{system.org.d22168d6.js → system.org.ff54d620.js} +1 -1
- package/lib/{system.permissions.ccbe352d.mjs → system.permissions.cc9a9866.mjs} +3 -3
- package/lib/{system.permissions.3c5c3573.js → system.permissions.e6317c5a.js} +1 -1
- package/lib/{system.plugin.5d47e679.js → system.plugin.3467d572.js} +1 -1
- package/lib/{system.plugin.8caa5d1f.mjs → system.plugin.502a69d8.mjs} +2 -2
- package/lib/{system.pos.caaef4fc.js → system.pos.4aadf86e.js} +1 -1
- package/lib/{system.pos.e4be69c4.mjs → system.pos.8c44c029.mjs} +2 -2
- package/lib/{system.promptmanagement.e73f64a2.js → system.promptmanagement.9ba710d6.js} +1 -1
- package/lib/{system.promptmanagement.1ad89863.mjs → system.promptmanagement.d8565db4.mjs} +7 -7
- package/lib/{system.role.0323ddd5.mjs → system.role.19959d7f.mjs} +228 -175
- package/lib/system.role.890c8ca2.js +1 -0
- package/lib/{system.sumberrules.2babdd81.js → system.sumberrules.068ebe4a.js} +1 -1
- package/lib/{system.sumberrules.42965c1e.mjs → system.sumberrules.087015a4.mjs} +2 -2
- package/lib/{system.team.28168433.mjs → system.team.27cd57f7.mjs} +289 -246
- package/lib/system.team.2b28502b.js +1 -0
- package/lib/{system.teammembers.08f3ce38.mjs → system.teammembers.4056d586.mjs} +78 -40
- package/lib/system.teammembers.e3baf783.js +1 -0
- package/lib/{system.timers.040b9bce.mjs → system.timers.6f61bfe1.mjs} +2 -2
- package/lib/{system.timers.310b3710.js → system.timers.cb0a3bd0.js} +1 -1
- package/lib/{system.translation.c0068d8f.mjs → system.translation.9b88fbf2.mjs} +7 -7
- package/lib/{system.translation.a4396166.js → system.translation.f3884a0a.js} +1 -1
- package/lib/{system.user.20a5e7b4.js → system.user.3bd95871.js} +5 -5
- package/lib/{system.user.84e77277.mjs → system.user.bdf2613e.mjs} +101 -69
- package/lib/{system.useraffiliation.fb961d98.mjs → system.useraffiliation.63b6bb36.mjs} +3 -3
- package/lib/{system.useraffiliation.307e3cd7.js → system.useraffiliation.7db6e13c.js} +1 -1
- package/lib/{system.webresource.2d0ab7a6.mjs → system.webresource.c36d6792.mjs} +16 -18
- package/lib/system.webresource.ede248a8.js +1 -0
- package/lib/{system.welcome.aaac4a40.mjs → system.welcome.14785b50.mjs} +1 -1
- package/lib/{system.welcome.67d20fa4.js → system.welcome.c9eefa06.js} +1 -1
- package/locale/en_US.js +30 -5
- package/locale/id_ID.js +30 -5
- package/locale/vi_VN.js +1971 -1946
- package/locale/zh_CN.js +30 -5
- package/package.json +1 -1
- package/lib/main.9c85b10c.js +0 -1
- package/lib/main.a794f7cf.js +0 -1
- package/lib/messages.fa3d97b5.js +0 -9
- package/lib/system.config.6aae9ea6.js +0 -1
- package/lib/system.file.001a01bc.js +0 -1
- package/lib/system.log.f7afb251.js +0 -1
- package/lib/system.notice.365ddd35.js +0 -1
- package/lib/system.noticereceived.5545acf8.js +0 -1
- package/lib/system.onlineuser.fd9fdc66.js +0 -1
- package/lib/system.role.b5b55ddd.js +0 -1
- package/lib/system.team.a3527834.js +0 -1
- package/lib/system.teammembers.4b11e49b.js +0 -1
- package/lib/system.webresource.0382b6b1.js +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
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:{}};/*!
|
|
1
|
+
"use strict";const x=require("./system.notice.a89f4826.js"),w=require("./system.account.3181bcd6.js"),T=require("./chartbi.114d32d7.js"),K=require("./messages.828b6ed8.js"),F=require("./system.role.890c8ca2.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=[],D=T.normalizeComponent(O,N,P,!1,null,"117b9c7a",null,null);const B=D.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,x.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.verificationMethod",prop:"authtype",width:"160",label:"\u9A8C\u8BC1\u65B9\u5F0F",align:"left",type:"slot",slotType:"authtype",showOverflowTooltip:!0},{transKey:"gd.user.employeeID",prop:"employeeid",width:"160",label:"\u5DE5\u53F7",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:[]},{transKey:"gd.user.employeeID",prop:"employeeid",label:"\u5DE5\u53F7",effectType:"input",rules:[]},{transKey:"gd.user.verificationMethod",prop:"authtype",label:"\u9A8C\u8BC1\u65B9\u5F0F",effectType:"select",dictTypeCode:"user_auth_type",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 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}
|
|
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(p,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(p,y.key,y)}}return function(p,v,f){return v&&m(p.prototype,v),f&&m(p,f),p}}(),a=n(1),c=l(a),h=n(3),b=l(h),g=n(4),u=l(g);function l(m){return m&&m.__esModule?m:{default:m}}function d(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function _(m,p){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:m}function $(m,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);m.prototype=Object.create(p&&p.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(m,p):m.__proto__=p)}var R=function(m){$(p,m);function p(v,f){d(this,p);var y=_(this,(p.__proto__||Object.getPrototypeOf(p)).call(this));return y.resolveOptions(f),y.listenClick(v),y}return o(p,[{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 C("action",f)}},{key:"defaultTarget",value:function(f){var y=C("target",f);if(y)return document.querySelector(y)}},{key:"defaultText",value:function(f){return C("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}}]),p}(b.default);function C(m,p){var v="data-clipboard-"+m;if(!!p.hasAttribute(v))return p.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 g=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=g},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,g=c.length;b<g;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(g,u,l){if(!g&&!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(g))return c(g,u,l);if(s.nodeList(g))return h(g,u,l);if(s.string(g))return b(g,u,l);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function c(g,u,l){return g.addEventListener(u,l),{destroy:function(){g.removeEventListener(u,l)}}}function h(g,u,l){return Array.prototype.forEach.call(g,function(d){d.addEventListener(u,l)}),{destroy:function(){Array.prototype.forEach.call(g,function(d){d.removeEventListener(u,l)})}}}function b(g,u,l){return o(document.body,g,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,g,u,l){var d=c.apply(this,arguments);return h.addEventListener(g,d,l),{destroy:function(){h.removeEventListener(g,d,l)}}}function a(h,b,g,u,l){return typeof h.addEventListener=="function"?o.apply(null,arguments):typeof g=="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,g,u,l)}))}function c(h,b,g,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:
|
|
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(
|
|
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:B,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:i.authtype===null?"":String(i.authtype)}))},getOrgTree(){x.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(g=>g);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:"authtype",fn:function(r){return[t("div",{staticStyle:{cursor:"pointer"}},[t("el-tag",{style:e._f("dictColor")("user_auth_type",r.row.authtype),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("user_auth_type",r.row.authtype))+" ")])],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,"6c55aeb8",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 {
|
|
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.5f8cd020.mjs";
|
|
2
|
+
import { i as O, a as N, j as P, c as B, k as D, l as E, g as I, m as U, n as A, o as M, h as q, q as H, r as j, t as z, u as x } from "./system.account.7c6ea20c.mjs";
|
|
3
|
+
import { m as R, n as T } from "./chartbi.eb4dd0af.mjs";
|
|
4
|
+
import { t as G } from "./messages.a739f4fc.mjs";
|
|
5
|
+
import { G as Q } from "./system.role.19959d7f.mjs";
|
|
6
6
|
const V = {
|
|
7
7
|
data() {
|
|
8
8
|
return {
|
|
@@ -251,6 +251,23 @@ const ie = se.exports, ne = {
|
|
|
251
251
|
label: "\u624B\u673A",
|
|
252
252
|
align: "left"
|
|
253
253
|
},
|
|
254
|
+
{
|
|
255
|
+
transKey: "gd.user.verificationMethod",
|
|
256
|
+
prop: "authtype",
|
|
257
|
+
width: "160",
|
|
258
|
+
label: "\u9A8C\u8BC1\u65B9\u5F0F",
|
|
259
|
+
align: "left",
|
|
260
|
+
type: "slot",
|
|
261
|
+
slotType: "authtype",
|
|
262
|
+
showOverflowTooltip: !0
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
transKey: "gd.user.employeeID",
|
|
266
|
+
prop: "employeeid",
|
|
267
|
+
width: "160",
|
|
268
|
+
label: "\u5DE5\u53F7",
|
|
269
|
+
align: "left"
|
|
270
|
+
},
|
|
254
271
|
{
|
|
255
272
|
transKey: "gd.user.status",
|
|
256
273
|
prop: "statecodes",
|
|
@@ -496,6 +513,19 @@ const ie = se.exports, ne = {
|
|
|
496
513
|
dictTypeCode: "state_code",
|
|
497
514
|
selectType: "checkbox",
|
|
498
515
|
rules: []
|
|
516
|
+
}, {
|
|
517
|
+
transKey: "gd.user.employeeID",
|
|
518
|
+
prop: "employeeid",
|
|
519
|
+
label: "\u5DE5\u53F7",
|
|
520
|
+
effectType: "input",
|
|
521
|
+
rules: []
|
|
522
|
+
}, {
|
|
523
|
+
transKey: "gd.user.verificationMethod",
|
|
524
|
+
prop: "authtype",
|
|
525
|
+
label: "\u9A8C\u8BC1\u65B9\u5F0F",
|
|
526
|
+
effectType: "select",
|
|
527
|
+
dictTypeCode: "user_auth_type",
|
|
528
|
+
rules: []
|
|
499
529
|
}]
|
|
500
530
|
};
|
|
501
531
|
}
|
|
@@ -554,41 +584,41 @@ var L = { exports: {} };
|
|
|
554
584
|
} : function(m) {
|
|
555
585
|
return m && typeof Symbol == "function" && m.constructor === Symbol && m !== Symbol.prototype ? "symbol" : typeof m;
|
|
556
586
|
}, o = function() {
|
|
557
|
-
function m(
|
|
587
|
+
function m(p, v) {
|
|
558
588
|
for (var f = 0; f < v.length; f++) {
|
|
559
589
|
var y = v[f];
|
|
560
|
-
y.enumerable = y.enumerable || !1, y.configurable = !0, "value" in y && (y.writable = !0), Object.defineProperty(
|
|
590
|
+
y.enumerable = y.enumerable || !1, y.configurable = !0, "value" in y && (y.writable = !0), Object.defineProperty(p, y.key, y);
|
|
561
591
|
}
|
|
562
592
|
}
|
|
563
|
-
return function(
|
|
564
|
-
return v && m(
|
|
593
|
+
return function(p, v, f) {
|
|
594
|
+
return v && m(p.prototype, v), f && m(p, f), p;
|
|
565
595
|
};
|
|
566
|
-
}(), a = n(1), c = l(a), h = n(3), b = l(h),
|
|
596
|
+
}(), a = n(1), c = l(a), h = n(3), b = l(h), g = n(4), u = l(g);
|
|
567
597
|
function l(m) {
|
|
568
598
|
return m && m.__esModule ? m : { default: m };
|
|
569
599
|
}
|
|
570
|
-
function d(m,
|
|
571
|
-
if (!(m instanceof
|
|
600
|
+
function d(m, p) {
|
|
601
|
+
if (!(m instanceof p))
|
|
572
602
|
throw new TypeError("Cannot call a class as a function");
|
|
573
603
|
}
|
|
574
|
-
function w(m,
|
|
604
|
+
function w(m, p) {
|
|
575
605
|
if (!m)
|
|
576
606
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
577
|
-
return
|
|
607
|
+
return p && (typeof p == "object" || typeof p == "function") ? p : m;
|
|
578
608
|
}
|
|
579
|
-
function
|
|
580
|
-
if (typeof
|
|
581
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
582
|
-
m.prototype = Object.create(
|
|
609
|
+
function _(m, p) {
|
|
610
|
+
if (typeof p != "function" && p !== null)
|
|
611
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof p);
|
|
612
|
+
m.prototype = Object.create(p && p.prototype, { constructor: { value: m, enumerable: !1, writable: !0, configurable: !0 } }), p && (Object.setPrototypeOf ? Object.setPrototypeOf(m, p) : m.__proto__ = p);
|
|
583
613
|
}
|
|
584
614
|
var K = function(m) {
|
|
585
|
-
|
|
586
|
-
function
|
|
587
|
-
d(this,
|
|
588
|
-
var y = w(this, (
|
|
615
|
+
_(p, m);
|
|
616
|
+
function p(v, f) {
|
|
617
|
+
d(this, p);
|
|
618
|
+
var y = w(this, (p.__proto__ || Object.getPrototypeOf(p)).call(this));
|
|
589
619
|
return y.resolveOptions(f), y.listenClick(v), y;
|
|
590
620
|
}
|
|
591
|
-
return o(
|
|
621
|
+
return o(p, [{
|
|
592
622
|
key: "resolveOptions",
|
|
593
623
|
value: function() {
|
|
594
624
|
var f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -598,8 +628,8 @@ var L = { exports: {} };
|
|
|
598
628
|
key: "listenClick",
|
|
599
629
|
value: function(f) {
|
|
600
630
|
var y = this;
|
|
601
|
-
this.listener = (0, u.default)(f, "click", function(
|
|
602
|
-
return y.onClick(
|
|
631
|
+
this.listener = (0, u.default)(f, "click", function($) {
|
|
632
|
+
return y.onClick($);
|
|
603
633
|
});
|
|
604
634
|
}
|
|
605
635
|
}, {
|
|
@@ -640,17 +670,17 @@ var L = { exports: {} };
|
|
|
640
670
|
}], [{
|
|
641
671
|
key: "isSupported",
|
|
642
672
|
value: function() {
|
|
643
|
-
var f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["copy", "cut"], y = typeof f == "string" ? [f] : f,
|
|
673
|
+
var f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["copy", "cut"], y = typeof f == "string" ? [f] : f, $ = !!document.queryCommandSupported;
|
|
644
674
|
return y.forEach(function(F) {
|
|
645
|
-
|
|
646
|
-
}),
|
|
675
|
+
$ = $ && !!document.queryCommandSupported(F);
|
|
676
|
+
}), $;
|
|
647
677
|
}
|
|
648
|
-
}]),
|
|
678
|
+
}]), p;
|
|
649
679
|
}(b.default);
|
|
650
|
-
function k(m,
|
|
680
|
+
function k(m, p) {
|
|
651
681
|
var v = "data-clipboard-" + m;
|
|
652
|
-
if (!!
|
|
653
|
-
return
|
|
682
|
+
if (!!p.hasAttribute(v))
|
|
683
|
+
return p.getAttribute(v);
|
|
654
684
|
}
|
|
655
685
|
t.exports = K;
|
|
656
686
|
},
|
|
@@ -662,8 +692,8 @@ var L = { exports: {} };
|
|
|
662
692
|
}, o = function() {
|
|
663
693
|
function u(l, d) {
|
|
664
694
|
for (var w = 0; w < d.length; w++) {
|
|
665
|
-
var
|
|
666
|
-
|
|
695
|
+
var _ = d[w];
|
|
696
|
+
_.enumerable = _.enumerable || !1, _.configurable = !0, "value" in _ && (_.writable = !0), Object.defineProperty(l, _.key, _);
|
|
667
697
|
}
|
|
668
698
|
}
|
|
669
699
|
return function(l, d, w) {
|
|
@@ -677,7 +707,7 @@ var L = { exports: {} };
|
|
|
677
707
|
if (!(u instanceof l))
|
|
678
708
|
throw new TypeError("Cannot call a class as a function");
|
|
679
709
|
}
|
|
680
|
-
var
|
|
710
|
+
var g = function() {
|
|
681
711
|
function u(l) {
|
|
682
712
|
b(this, u), this.resolveOptions(l), this.initSelection();
|
|
683
713
|
}
|
|
@@ -699,8 +729,8 @@ var L = { exports: {} };
|
|
|
699
729
|
this.removeFake(), this.fakeHandlerCallback = function() {
|
|
700
730
|
return d.removeFake();
|
|
701
731
|
}, 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[w ? "right" : "left"] = "-9999px";
|
|
702
|
-
var
|
|
703
|
-
this.fakeElem.style.top =
|
|
732
|
+
var _ = window.pageYOffset || document.documentElement.scrollTop;
|
|
733
|
+
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();
|
|
704
734
|
}
|
|
705
735
|
}, {
|
|
706
736
|
key: "removeFake",
|
|
@@ -771,7 +801,7 @@ var L = { exports: {} };
|
|
|
771
801
|
}
|
|
772
802
|
}]), u;
|
|
773
803
|
}();
|
|
774
|
-
t.exports =
|
|
804
|
+
t.exports = g;
|
|
775
805
|
},
|
|
776
806
|
function(t, r) {
|
|
777
807
|
function n(s) {
|
|
@@ -817,7 +847,7 @@ var L = { exports: {} };
|
|
|
817
847
|
off: function(s, o) {
|
|
818
848
|
var a = this.e || (this.e = {}), c = a[s], h = [];
|
|
819
849
|
if (c && o)
|
|
820
|
-
for (var b = 0,
|
|
850
|
+
for (var b = 0, g = c.length; b < g; b++)
|
|
821
851
|
c[b].fn !== o && c[b].fn._ !== o && h.push(c[b]);
|
|
822
852
|
return h.length ? a[s] = h : delete a[s], this;
|
|
823
853
|
}
|
|
@@ -825,41 +855,41 @@ var L = { exports: {} };
|
|
|
825
855
|
},
|
|
826
856
|
function(t, r, n) {
|
|
827
857
|
var s = n(5), o = n(6);
|
|
828
|
-
function a(
|
|
829
|
-
if (!
|
|
858
|
+
function a(g, u, l) {
|
|
859
|
+
if (!g && !u && !l)
|
|
830
860
|
throw new Error("Missing required arguments");
|
|
831
861
|
if (!s.string(u))
|
|
832
862
|
throw new TypeError("Second argument must be a String");
|
|
833
863
|
if (!s.fn(l))
|
|
834
864
|
throw new TypeError("Third argument must be a Function");
|
|
835
|
-
if (s.node(
|
|
836
|
-
return c(
|
|
837
|
-
if (s.nodeList(
|
|
838
|
-
return h(
|
|
839
|
-
if (s.string(
|
|
840
|
-
return b(
|
|
865
|
+
if (s.node(g))
|
|
866
|
+
return c(g, u, l);
|
|
867
|
+
if (s.nodeList(g))
|
|
868
|
+
return h(g, u, l);
|
|
869
|
+
if (s.string(g))
|
|
870
|
+
return b(g, u, l);
|
|
841
871
|
throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");
|
|
842
872
|
}
|
|
843
|
-
function c(
|
|
844
|
-
return
|
|
873
|
+
function c(g, u, l) {
|
|
874
|
+
return g.addEventListener(u, l), {
|
|
845
875
|
destroy: function() {
|
|
846
|
-
|
|
876
|
+
g.removeEventListener(u, l);
|
|
847
877
|
}
|
|
848
878
|
};
|
|
849
879
|
}
|
|
850
|
-
function h(
|
|
851
|
-
return Array.prototype.forEach.call(
|
|
880
|
+
function h(g, u, l) {
|
|
881
|
+
return Array.prototype.forEach.call(g, function(d) {
|
|
852
882
|
d.addEventListener(u, l);
|
|
853
883
|
}), {
|
|
854
884
|
destroy: function() {
|
|
855
|
-
Array.prototype.forEach.call(
|
|
885
|
+
Array.prototype.forEach.call(g, function(d) {
|
|
856
886
|
d.removeEventListener(u, l);
|
|
857
887
|
});
|
|
858
888
|
}
|
|
859
889
|
};
|
|
860
890
|
}
|
|
861
|
-
function b(
|
|
862
|
-
return o(document.body,
|
|
891
|
+
function b(g, u, l) {
|
|
892
|
+
return o(document.body, g, u, l);
|
|
863
893
|
}
|
|
864
894
|
t.exports = a;
|
|
865
895
|
},
|
|
@@ -878,20 +908,20 @@ var L = { exports: {} };
|
|
|
878
908
|
},
|
|
879
909
|
function(t, r, n) {
|
|
880
910
|
var s = n(7);
|
|
881
|
-
function o(h, b,
|
|
911
|
+
function o(h, b, g, u, l) {
|
|
882
912
|
var d = c.apply(this, arguments);
|
|
883
|
-
return h.addEventListener(
|
|
913
|
+
return h.addEventListener(g, d, l), {
|
|
884
914
|
destroy: function() {
|
|
885
|
-
h.removeEventListener(
|
|
915
|
+
h.removeEventListener(g, d, l);
|
|
886
916
|
}
|
|
887
917
|
};
|
|
888
918
|
}
|
|
889
|
-
function a(h, b,
|
|
890
|
-
return typeof h.addEventListener == "function" ? o.apply(null, arguments) : typeof
|
|
891
|
-
return o(d, b,
|
|
919
|
+
function a(h, b, g, u, l) {
|
|
920
|
+
return typeof h.addEventListener == "function" ? o.apply(null, arguments) : typeof g == "function" ? o.bind(null, document).apply(null, arguments) : (typeof h == "string" && (h = document.querySelectorAll(h)), Array.prototype.map.call(h, function(d) {
|
|
921
|
+
return o(d, b, g, u, l);
|
|
892
922
|
}));
|
|
893
923
|
}
|
|
894
|
-
function c(h, b,
|
|
924
|
+
function c(h, b, g, u) {
|
|
895
925
|
return function(l) {
|
|
896
926
|
l.delegateTarget = s(l.target, b), l.delegateTarget && u.call(h, l);
|
|
897
927
|
};
|
|
@@ -1026,7 +1056,7 @@ const ue = {
|
|
|
1026
1056
|
value: "value"
|
|
1027
1057
|
},
|
|
1028
1058
|
defaultExpandedKeys: "",
|
|
1029
|
-
loadData: (i) =>
|
|
1059
|
+
loadData: (i) => I(Object.assign(i, this.getQueryParam)).then((e) => e.data),
|
|
1030
1060
|
disableBtn: ["\u542F\u7528", "\u505C\u7528"],
|
|
1031
1061
|
fileList: [],
|
|
1032
1062
|
needLoad: !1,
|
|
@@ -1100,7 +1130,7 @@ const ue = {
|
|
|
1100
1130
|
duration: 0,
|
|
1101
1131
|
iconClass: "el-icon-loading"
|
|
1102
1132
|
}), t = new FormData();
|
|
1103
|
-
t.append("file", i.file),
|
|
1133
|
+
t.append("file", i.file), U(t).then((r) => {
|
|
1104
1134
|
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(() => {
|
|
1105
1135
|
setTimeout(() => {
|
|
1106
1136
|
e.close();
|
|
@@ -1181,7 +1211,7 @@ const ue = {
|
|
|
1181
1211
|
{
|
|
1182
1212
|
gender: String(i.gender),
|
|
1183
1213
|
orgid: String(i.orgid),
|
|
1184
|
-
authtype: String(i.authtype)
|
|
1214
|
+
authtype: i.authtype === null ? "" : String(i.authtype)
|
|
1185
1215
|
}
|
|
1186
1216
|
)
|
|
1187
1217
|
);
|
|
@@ -1326,7 +1356,7 @@ const ue = {
|
|
|
1326
1356
|
a = a.sort(() => Math.random() - 0.5);
|
|
1327
1357
|
let c = a.join("");
|
|
1328
1358
|
for (; c.length < i; ) {
|
|
1329
|
-
const h = [s, r, t, n].filter((
|
|
1359
|
+
const h = [s, r, t, n].filter((g) => g);
|
|
1330
1360
|
if (h.length === 0)
|
|
1331
1361
|
break;
|
|
1332
1362
|
const b = h[Math.floor(Math.random() * h.length)];
|
|
@@ -1431,6 +1461,8 @@ var he = function() {
|
|
|
1431
1461
|
return [t("gd-tooltip", { attrs: { rowKey: "account", row: n, highlight: "" }, on: { click: e.editForm } })];
|
|
1432
1462
|
} }, { key: "gender", fn: function(r) {
|
|
1433
1463
|
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)];
|
|
1464
|
+
} }, { key: "authtype", fn: function(r) {
|
|
1465
|
+
return [t("div", { staticStyle: { cursor: "pointer" } }, [t("el-tag", { style: e._f("dictColor")("user_auth_type", r.row.authtype), attrs: { effect: "dark" } }, [e._v(" " + e._s(e._f("dictType")("user_auth_type", r.row.authtype)) + " ")])], 1)];
|
|
1434
1466
|
} }, { key: "statecodes", fn: function(r) {
|
|
1435
1467
|
return [t("div", { staticStyle: { cursor: "pointer" }, on: { click: function(n) {
|
|
1436
1468
|
return n.stopPropagation(), e.editStateCodes(r);
|
|
@@ -1446,17 +1478,17 @@ var he = function() {
|
|
|
1446
1478
|
} }]) })], 1), t("UserRoleForm", { ref: "userRoleForm", on: { ok: e.handleOk } }), e.institutionsShow ? t("EditInstitutions", { ref: "editInstitutions", on: { ok: e.handleOk, closed: function(r) {
|
|
1447
1479
|
e.institutionsShow = !1;
|
|
1448
1480
|
} } }) : 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);
|
|
1449
|
-
}, fe = [],
|
|
1481
|
+
}, fe = [], pe = /* @__PURE__ */ T(
|
|
1450
1482
|
ue,
|
|
1451
1483
|
he,
|
|
1452
1484
|
fe,
|
|
1453
1485
|
!1,
|
|
1454
1486
|
null,
|
|
1455
|
-
"
|
|
1487
|
+
"6c55aeb8",
|
|
1456
1488
|
null,
|
|
1457
1489
|
null
|
|
1458
1490
|
);
|
|
1459
|
-
const S =
|
|
1491
|
+
const S = pe.exports;
|
|
1460
1492
|
S.install = function(i) {
|
|
1461
1493
|
i.component(S.name, S);
|
|
1462
1494
|
};
|
|
@@ -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.5c8a3eef.mjs";
|
|
2
|
+
import { m as o, n as d } from "./chartbi.eb4dd0af.mjs";
|
|
3
|
+
import { t as h, f as K } from "./messages.a739f4fc.mjs";
|
|
4
4
|
const C = {
|
|
5
5
|
data() {
|
|
6
6
|
return {
|