gds-plus-design-vue 1.2.2 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/lib/{chartbi.06e48153.js → chartbi.5eded588.js} +20 -20
  2. package/lib/{chartbi.cdd1e365.mjs → chartbi.c3bc6adb.mjs} +17 -9
  3. package/lib/gd-initial.js +17 -15
  4. package/lib/gd-initial.mjs +27181 -19838
  5. package/lib/main.00e2ba37.mjs +123 -0
  6. package/lib/main.55fab1ce.mjs +198 -0
  7. package/lib/main.7e1495ec.js +1 -0
  8. package/lib/{main.2415a49a.js → main.9c85b10c.js} +1 -1
  9. package/lib/main.a27e1e54.js +1 -0
  10. package/lib/main.a794f7cf.js +1 -0
  11. package/lib/{main.b2d0a309.mjs → main.b25a9b4c.mjs} +15 -15
  12. package/lib/{main.2cddfbbd.mjs → main.b4ad6d81.mjs} +3 -3
  13. package/lib/{messages.d8abe18d.mjs → messages.bc3bc0e8.mjs} +187 -172
  14. package/lib/{messages.2fff74f3.js → messages.fa3d97b5.js} +5 -5
  15. package/lib/style.css +2 -2
  16. package/lib/{system.account.9bc40d08.mjs → system.account.868f96f9.mjs} +26 -26
  17. package/lib/{system.account.8ea53681.js → system.account.e82580de.js} +1 -1
  18. package/lib/{system.config.c6e30213.js → system.config.6aae9ea6.js} +1 -1
  19. package/lib/{system.config.8223d495.mjs → system.config.71615d2b.mjs} +2 -2
  20. package/lib/{system.datasource.57233650.mjs → system.datasource.009a1673.mjs} +2 -2
  21. package/lib/{system.datasource.fd6a4e76.js → system.datasource.523ae242.js} +1 -1
  22. package/lib/{system.dict.a24f33b0.js → system.dict.0111a3bc.js} +1 -1
  23. package/lib/{system.dict.8f95218b.mjs → system.dict.8f562e89.mjs} +4 -4
  24. package/lib/{system.duplicatechecking.39293985.js → system.duplicatechecking.1865e065.js} +1 -1
  25. package/lib/{system.duplicatechecking.6b706948.mjs → system.duplicatechecking.f517abed.mjs} +2 -2
  26. package/lib/{system.email.dae988be.mjs → system.email.4c484530.mjs} +2 -2
  27. package/lib/{system.email.a2d9a307.js → system.email.70351605.js} +1 -1
  28. package/lib/{system.fieldsecurity.02627a7a.mjs → system.fieldsecurity.9f9f73df.mjs} +127 -79
  29. package/lib/system.fieldsecurity.d11088e3.js +1 -0
  30. package/lib/system.file.001a01bc.js +1 -0
  31. package/lib/{system.file.0fa095a9.mjs → system.file.96b3ce1e.mjs} +4 -4
  32. package/lib/{system.log.acb64505.mjs → system.log.80feb1c4.mjs} +2 -2
  33. package/lib/{system.log.c07ae5db.js → system.log.f7afb251.js} +1 -1
  34. package/lib/{system.machine.fc392d7f.mjs → system.machine.52e8a4f3.mjs} +1 -1
  35. package/lib/{system.machine.7fa3e3d1.js → system.machine.6e46b7a3.js} +1 -1
  36. package/lib/system.notice.365ddd35.js +1 -0
  37. package/lib/system.notice.b4247147.mjs +1690 -0
  38. package/lib/system.noticereceived.5545acf8.js +1 -0
  39. package/lib/{system.noticereceived.1aa70b65.mjs → system.noticereceived.eef2cf6e.mjs} +33 -24
  40. package/lib/{system.onlineuser.3d848a32.mjs → system.onlineuser.de5f62bf.mjs} +2 -2
  41. package/lib/{system.onlineuser.1c428d05.js → system.onlineuser.fd9fdc66.js} +1 -1
  42. package/lib/{system.org.fcf96d1e.mjs → system.org.94393315.mjs} +17 -68
  43. package/lib/system.org.d22168d6.js +1 -0
  44. package/lib/{system.permissions.a1a9505c.js → system.permissions.3c5c3573.js} +1 -1
  45. package/lib/{system.permissions.23f5b097.mjs → system.permissions.ccbe352d.mjs} +3 -3
  46. package/lib/{system.plugin.b6de4673.js → system.plugin.5d47e679.js} +1 -1
  47. package/lib/{system.plugin.e37f9dbc.mjs → system.plugin.8caa5d1f.mjs} +2 -2
  48. package/lib/{system.pos.a4fb19b0.js → system.pos.caaef4fc.js} +1 -1
  49. package/lib/{system.pos.1a01fc97.mjs → system.pos.e4be69c4.mjs} +2 -2
  50. package/lib/{system.promptmanagement.36a65c51.mjs → system.promptmanagement.1ad89863.mjs} +2 -2
  51. package/lib/{system.promptmanagement.290958b1.js → system.promptmanagement.e73f64a2.js} +1 -1
  52. package/lib/system.role.0323ddd5.mjs +2048 -0
  53. package/lib/system.role.b5b55ddd.js +1 -0
  54. package/lib/{system.sumberrules.dd6299e8.js → system.sumberrules.2babdd81.js} +1 -1
  55. package/lib/{system.sumberrules.cdef9308.mjs → system.sumberrules.42965c1e.mjs} +2 -2
  56. package/lib/{system.team.ee652fe4.mjs → system.team.28168433.mjs} +80 -49
  57. package/lib/system.team.a3527834.js +1 -0
  58. package/lib/{system.teammembers.26a2ba81.mjs → system.teammembers.08f3ce38.mjs} +3 -3
  59. package/lib/{system.teammembers.4a3dc336.js → system.teammembers.4b11e49b.js} +1 -1
  60. package/lib/{system.timers.4efa8a7d.mjs → system.timers.040b9bce.mjs} +2 -2
  61. package/lib/{system.timers.b9424204.js → system.timers.310b3710.js} +1 -1
  62. package/lib/{system.translation.21d2fd8b.js → system.translation.a4396166.js} +1 -1
  63. package/lib/{system.translation.0a9399b4.mjs → system.translation.c0068d8f.mjs} +3 -3
  64. package/lib/{system.user.d48a08db.js → system.user.20a5e7b4.js} +5 -5
  65. package/lib/{system.user.4fcfdf99.mjs → system.user.84e77277.mjs} +53 -23
  66. package/lib/{system.useraffiliation.a59ce45b.js → system.useraffiliation.307e3cd7.js} +1 -1
  67. package/lib/{system.useraffiliation.fb002239.mjs → system.useraffiliation.fb961d98.mjs} +3 -3
  68. package/lib/{system.webresource.3366cc29.js → system.webresource.0382b6b1.js} +1 -1
  69. package/lib/{system.webresource.4df01c92.mjs → system.webresource.2d0ab7a6.mjs} +3 -3
  70. package/lib/{system.welcome.472f099b.js → system.welcome.67d20fa4.js} +1 -1
  71. package/lib/{system.welcome.120f4b50.mjs → system.welcome.aaac4a40.mjs} +1 -1
  72. package/locale/en_US.js +109 -20
  73. package/locale/id_ID.js +107 -19
  74. package/locale/vi_VN.js +107 -19
  75. package/locale/zh_CN.js +106 -18
  76. package/package.json +1 -1
  77. package/lib/main.4c447fc3.js +0 -1
  78. package/lib/main.86fe06d4.mjs +0 -87
  79. package/lib/main.d091d06d.js +0 -1
  80. package/lib/system.fieldsecurity.a0cec24d.js +0 -1
  81. package/lib/system.file.d695ab37.js +0 -1
  82. package/lib/system.notice.5ae50bd4.mjs +0 -641
  83. package/lib/system.notice.f18578ae.js +0 -1
  84. package/lib/system.noticereceived.bfa98a9b.js +0 -1
  85. package/lib/system.org.5bb36f9c.js +0 -1
  86. package/lib/system.role.68de93ef.mjs +0 -1543
  87. package/lib/system.role.88100f66.js +0 -1
  88. package/lib/system.team.53d64006.js +0 -1
@@ -1 +1 @@
1
- "use strict";const n=require("./system.promptmanagement.290958b1.js"),o=require("./chartbi.06e48153.js"),u=require("./messages.2fff74f3.js");const h={props:{openPermissions:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0},tmtype:{type:String,default:""}},data(){return{visible:!1,mockData:[],targetKeys:[],translationDetail:{name:"",langs:[]},confirmLoading:!0,title:"",sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],type:1,addData:null,fullScreen:!1,width:"800px",errInit:null,ruleFormData:{defaulttext:"",name:"",langs:"",type:"3",hintcatalogid:""},rules:{defaulttext:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]}}},computed:{},methods:{toggleFullscreen(){this.fullScreen=!this.fullScreen},changeText(e){let t=[...this.translationDetail.langs];t.map(s=>(s.description=s.languagecode.replace(/-/g,"_")==="zh_CN"?e:s.description,s)),this.translationDetail.langs=[...t]},changeLanguage(e,t){t.languagecode.replace(/-/g,"_")==="zh_CN"&&(this.ruleFormData.defaulttext=e)},init(e){this.fullScreen=!1,this.visible=!0,this.type=e?2:1,this.title=e?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add"),this.openPermissions&&(this.sysViewButtons=this.sysViewButtons.map(t=>(t.name=e?"sysTranslation:edit":"sysTranslation:add",t))),e?(this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData.defaulttext=e.defaulttext,this.ruleFormData.id=e.id,this.ruleFormData.name=e.name,this.ruleFormData.hintcatalogid=e.hintcatalogid,this.ruleFormData.type=e.type.toString()},0)}),this.sysTranslationDetail(e.id)):(this.getAllLanguage(),this.tmtype==="translationManagement"&&(this.ruleFormData.type="2"))},editInit(e){if(this.confirmLoading=!0,this.title=this.$i18nt("gd.https.edit"),this.visible=!0,this.openPermissions&&(this.sysViewButtons=this.sysViewButtons.map(t=>(t.name="sysTranslation:edit",t))),!e||e.key===""){this.init(null);return}n.sysTranslationPage({name:e.key}).then(t=>{if(t.code==200){let s=t.data.rows[0],a=e.list.filter(i=>i.code.replace(/-/g,"_")==="zh_CN")[0];s!==void 0&&s.defaulttext===""&&(s=Object.assign(s,{defaulttext:a.val})),s!==void 0?this.init(s):(this.ruleFormData=Object.assign(this.ruleFormData,{defaulttext:e.list[0]?e.list[0].val:"",name:e.key}),this.addData=e.list.length>0?{langs:e.list}:null,this.init(null),this.errInit=e.key,this.$emit("err",e.transKey),this.$message.error(this.$i18nt("gd.translation.errTip","\u6570\u636E\u9519\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u6DFB\u52A0\uFF01")))}})},addInit(e){if(e===""){this.init(null);return}let t=JSON.parse(e);this.addData=t,this.init(null),this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData.defaulttext=t.langs[0].val,this.ruleFormData.name=this.errInit?this.errInit:t.name},0)})},add(e){this.confirmLoading=!0,delete e.id,n.sysTranslationAdd(e).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.$emit("ok",e),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25: ")+t.message)}).finally(t=>{this.confirmLoading=!1})},edit(e){this.confirmLoading=!0,n.sysTranslationEdit(e).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")),this.$emit("ok",e),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25: ")+t.message)}).finally(t=>{this.confirmLoading=!1})},getAllLanguage(){this.confirmLoading=!0,n.GetAllLanguage().then(e=>{let t=e.data;this.addData&&t.map(s=>{let a=this.addData.langs.filter(i=>i.code==s.languagecode)[0];return s.languagecode=s.languagecode.replace(/-/g,"_"),s.description=a===void 0?"":a.val,s}),this.translationDetail.langs=t,this.confirmLoading=!1})},sysTranslationDetail(e){this.confirmLoading=!0,n.sysTranslationDetail({id:e}).then(t=>{let s=t.data&&t.data.langs?t.data.langs:[];s.map(a=>(a.languagecode=a.languagecode.replace(/-/g,"_"),a)),this.translationDetail=Object.assign(t.data,{langs:s}),this.confirmLoading=!1})},filterOption(e,t){return t.description.indexOf(e)>-1},handleChange(e,t,s){this.targetKeys=e},handleSubmit(){this.$refs.ruleForm.validate(e=>{if(e){const t={...this.ruleFormData,langs:this.translationDetail.langs||[],name:this.ruleFormData.name||this.translationDetail.name};this.type==1?this.add(t):this.edit(t)}})},getDictionary(e){return this.$options.filters.dictData(e)},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.$refs.ruleForm.resetFields(),this.ruleFormData={defaulttext:"",name:"",langs:"",id:"",type:"",hintcatalogid:""},this.translationDetail={name:"",langs:[]},this.addData=null,this.errInit=null,this.$emit("closed")},doEvent(e){let t=e.item.functionName;this[t]&&this[t]()}}};var m=function(){var t=this,s=t._self._c;return s("el-dialog",{class:t.fullScreen?"gd-dialog":"gd-dialog gd-dialog-fangda",attrs:{width:t.width,visible:t.visible,fullscreen:t.fullScreen,footer:null,top:"80px","modal-append-to-body":t.modalAppendToBody,"append-to-body":t.appendToBody,"show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.handleCancel}},[s("gd-modal-title",{attrs:{slot:"title",title:t.title,fullscreen:t.fullScreen,buttons:t.sysViewButtons,confirmLoading:t.confirmLoading,showClose:!0,closed:"handleCancel"},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[s("div",{class:t.fullScreen?"modal-bodyq":"modal-body"},[s("el-form",{ref:"ruleForm",attrs:{rules:t.rules,model:t.ruleFormData,"label-width":"160px"},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{prop:"defaulttext"},scopedSlots:t._u([{key:"label",fn:function(){return[t._v(" "+t._s(t.$i18nt("gd.translation.value"))+"\xA0 "),s("el-tooltip",{attrs:{content:t.$i18nt("gd.translation.valueTip"),placement:"top"}},[s("i",{staticClass:"el-icon-question"})])]},proxy:!0}])},[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.type!=1},on:{input:t.changeText},model:{value:t.ruleFormData.defaulttext,callback:function(a){t.$set(t.ruleFormData,"defaulttext",a)},expression:"ruleFormData.defaulttext"}})],1),s("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{prop:"name"},scopedSlots:t._u([{key:"label",fn:function(){return[t._v(" "+t._s(t.$i18nt("gd.translation.key"))+"\xA0 "),s("el-tooltip",{attrs:{content:t.$i18nt("gd.translation.keyTip"),placement:"top"}},[s("i",{staticClass:"el-icon-question"})])]},proxy:!0}])},[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.type!=1},model:{value:t.ruleFormData.name,callback:function(a){t.$set(t.ruleFormData,"name",a)},expression:"ruleFormData.name"}})],1),t.tmtype==="translationManagement"?s("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{prop:"type"},scopedSlots:t._u([{key:"label",fn:function(){return[t._v(t._s(t.$i18nt("gd.translation.type"))+"\xA0")]},proxy:!0}],null,!1,1857044530)},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"","collapse-tags":""},model:{value:t.ruleFormData.type,callback:function(a){t.$set(t.ruleFormData,"type",a)},expression:"ruleFormData.type"}},t._l(t.getDictionary("translation_type"),function(a){return s("el-option",{key:a.code,attrs:{label:t.$i18nt(`Dynamics.${a.transkey}`,a.name),value:a.code}},[s("span",[t._v(t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.name)))])])}),1)],1):t._e(),s("el-divider",{attrs:{dashed:""}}),t._l(this.translationDetail.langs,function(a){return[s("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:a.languagename}},[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),type:"textarea",autosize:""},on:{input:function(i){return t.changeLanguage(i,a)}},model:{value:a.description,callback:function(i){t.$set(a,"description",i)},expression:"item.description"}})],1)]})],2)],1)])],1)},g=[],p=o.normalizeComponent(h,m,g,!1,null,"98493209",null,null);const c=p.exports;const f={data(){return{visible:!1,solutionId:"",sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"save",icon:"el-icon-document-checked"}],confirmLoading:!1,type:1,record:{},advanced:!1,fullScreen:!1,width:"800px",fileList:[]}},computed:{title(){return this.$i18nt("gd.web.selectFile")}},methods:{handleRemove(e){const t=this.fileList.indexOf(e),s=this.fileList.slice();s.splice(t,1),this.fileList=s},beforeUpload(e){return this.fileList=[e],!1},toggleFullscreen(){this.fullScreen=!this.fullScreen},open(e){this.fileList=[],this.fullScreen=!1,this.visible=!0},handleSubmit(){this.confirmLoading=!0;let e=new FormData;e.append("file",this.fileList[0]),u.sysFileUpload(e).then(t=>{t.code==200?this.translationImport(t):(this.confirmLoading=!1,this.$message.error(t.message))}).catch(t=>{this.$message.error("\u670D\u52A1\u5668\u9519\u8BEF\uFF0C\u8BF7\u91CD\u8BD5"),this.confirmLoading=!1})},translationImport(e){let t={fileId:e.data};n.sysTranslationImport(t).then(s=>{this.confirmLoading=!1,s.success?(this.closed(),this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$emit("ok")):this.$message.error(s.message)})},closed(){this.selectedRowKeys=[],this.visible=!1},doEvent(e){let t=e.item.functionName;this[t]&&this[t]()}}};var y=function(){var t=this,s=t._self._c;return s("el-dialog",{class:t.fullScreen?"gd-dialog":"gd-dialog gd-dialog-fangda",attrs:{width:t.width,visible:t.visible,fullscreen:t.fullScreen,footer:null,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},cancel:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.title,confirmLoading:t.confirmLoading,visible:t.visible,fullscreen:t.fullScreen,buttons:t.sysViewButtons,showClose:!0},on:{changeEvent:t.doEvent}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[s("div",{class:t.fullScreen?"modal-bodyq":"modal-body"},[s("el-alert",{staticStyle:{"margin-bottom":"12px"},attrs:{title:t.$i18nt("gd.translation.importTip","\u9009\u62E9\u8981\u5BFC\u5165\u7684(.xlsx)\u6587\u4EF6"),type:"info","show-icon":"",closable:!1}}),s("el-row",{staticStyle:{"margin-left":"-12px","margin-right":"-12px"},attrs:{gutter:48}},[s("el-col",{attrs:{md:20,sm:24}},[s("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:"","file-list":t.fileList,remove:t.handleRemove,"before-upload":t.beforeUpload,accept:".xlsx"}},[s("el-button",{attrs:{id:"upload"}},[s("i",{staticClass:"el-icon-upload2"}),t._v(" "+t._s(t.$i18nt("gd.web.selectFile","\u9009\u62E9\u6587\u4EF6"))+" ")])],1)],1)],1)],1)])],2)},_=[],b=o.normalizeComponent(f,y,_,!1,null,"4232173a",null,null);const $=b.exports;const v={props:{height:{type:Number,default:100}},name:"GdTranslationList",components:{editForm:c,timport:$},data(){return{sysViewButtons:[{displayName:"\u521D\u59CB\u5316\u7FFB\u8BD1",functionName:"initialize",show:!0,transKey:"gd.translation.initialize",icon:"el-icon-refresh",btnType:"danger",name:"sysTranslation:initialize"},{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysTranslation:add"},{displayName:"\u7F16\u8F91",functionName:"editForm",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysTranslation:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysTranslation:delete"},{displayName:"\u5BFC\u5165",functionName:"transimport",show:!0,transKey:"gd.btn.import",icon:"gd-icon-daoru1",name:"sysTranslation:import"},{displayName:"\u5BFC\u51FA",functionName:"transexport",show:!0,transKey:"gd.btn.export",icon:"gd-icon-daoru",name:"sysTranslation:export"},{displayName:"\u53D1\u5E03",functionName:"release",show:!0,transKey:"gd.btn.release",icon:"gd-icon-fabu1",btnType:"danger",name:"sysTranslation:release"}],advanced:!1,queryParam:{},columns:[{type:"selection",width:"60",fixed:!0},{label:"\u7FFB\u8BD1\u503C(value)",prop:"defaulttext",align:"left",type:"slot",slotType:"defaulttext",transKey:"gd.translation.value",width:"260"},{label:"\u5BF9\u5E94\u503C(key)",prop:"name",transKey:"gd.translation.key",align:"left",width:"360"},{label:"\u7C7B\u578B",prop:"type",type:"slot",slotType:"type",align:"left",transKey:"gd.translation.type",width:"160"},{label:"\u72B6\u6001",prop:"statecodes",type:"slot",slotType:"statecodes",align:"left",transKey:"gd.translation.stateCodes",width:"160"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createdtime",align:"center",transKey:"gd.web.creationTime",width:"160"}],loadData:e=>n.sysTranslationPage(Object.assign(e,this.queryParam)).then(t=>t.data),selectedRowKeys:[],selectedRows:[],state:!1,quickQuery:!0,seeQuerys:!1}},computed:{stylew(){return this.seeQuerys?"width: calc(100% - 356px);":""},y(){let e=this.getBntnShow?0:38,t=this.quickQuery?4:0;return this.screenHeight-232-t+e},getBntnShow(){let e=this.sysViewButtons.filter(t=>t.name&&this.$hasPerm(t.name));return this.crumbsState?!0:e.length>0},getBootTrans(){return this.$bootTrans==null?!1:this.$bootTrans},getHeight(){return this.height},...o.mapGetters(["tableSize","tablePageSize","screenHeight","multiTab","crumbsState"])},methods:{changeWid(e){this.seeQuerys=e},reset(){this.queryParam={}},query(){this.$refs.table.refresh(!0)},release(){let e=this;this.$confirm(this.$i18nt("gd.https.releaseContent","\u786E\u8BA4\u53D1\u5E03?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.releaseOk","\u7ACB\u5373\u53D1\u5E03"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,s,a)=>{a(),t==="confirm"&&(s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,n.deployTranslation().then(i=>{a(),s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0,i.success?(e.$message.success(e.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),e.handleOk()):e.$message.error(e.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+i.message)}).catch(i=>{e.$message.error(e.$i18nt("gd.error.error")+i.message)}))}})},getPopupContainer(e){return e.parentElement},cache(){this.formLoading=!0,n.sysTranslationCache().then(e=>{e.success?this.$message.success(this.$i18nt("gd.https.operateSucc")):this.$message.error(this.$i18nt("gd.https.operateFail")+e.message),this.formLoading=!1})},transexport(){if(this.state)return;this.state=!0;const e=this.$message({message:this.$i18nt("gd.login.exporting","\u6B63\u5728\u5BFC\u51FA\u4E2D..."),duration:0,iconClass:"el-icon-loading"});n.sysTranslationExport({}).then(t=>{this.exportWay(t,e)}).catch(t=>{e.close(),this.$message.error("err!")})},exportWay(e,t){if(e){const s=new Blob([e.data],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),a=URL.createObjectURL(s),i=document.createElement("a");i.style.display="none",i.href=a;let d=new Date().getTime();i.download=`translation${d}`,i.click(),URL.revokeObjectURL(i.href),setTimeout(()=>{this.state=!1,t.close()},1e3)}else t.close(),setTimeout(()=>{this.statu=!1},1e3),this.$nextTick(()=>{setTimeout(()=>{this.$message.error(e.message)},0)})},transimport(){this.$refs.timport.open()},add(){this.$refs.editForm.init(null)},editForm(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne"));return}this.$refs.editForm.init(this.selectedRows[0])},del(){let e=this;if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip"));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\u8BA4\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,s,a)=>{if(a(),t==="confirm")return new Promise((i,d)=>{n.sysTranslationDelete({ids:e.selectedRowKeys.join(",")}).then(l=>{l.success?(e.$message.success(e.$i18nt("gd.https.delSucc")),e.handleOk()):e.$message.error(e.$i18nt("gd.https.delFail")+l.message),i()}).catch(l=>{e.$message.error(e.$i18nt("gd.error.error")+l.message)})}).catch(()=>console.log("Oops errors!"))}})},initialize(){let e=this;this.$confirm(this.$i18nt("gd.https.initializeTip","\u662F\u5426\u521D\u59CB\u5316\u7FFB\u8BD1?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.translation.initializeOk","\u7ACB\u5373\u521D\u59CB\u5316"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,s,a)=>{if(a(),t==="confirm")return new Promise((i,d)=>{n.sysTranslationInit({}).then(l=>{l.success?(e.$message.success(e.$i18nt("gd.https.operateSucc")),e.handleOk()):e.$message.error(e.$i18nt("gd.https.operateFail")+l.message),i()}).catch(l=>{e.$message.error(e.$i18nt("gd.error.error")+l.message)})}).catch(()=>console.log("Oops errors!"))}})},handleOk(){this.$refs.table.refresh()},getDictionary(e){return this.$options.filters.dictData(e)},dictSwitch(e,t){let s=this.$options.filters.dictData(t).filter(a=>a.code==e)[0];return s!=null&&s.colour?s.colour:""},onSelectChange(e,t){this.selectedRowKeys=e,this.selectedRows=t},doEvent(e){let t=e.item.functionName;this[t]()}}};var w=function(){var t=this,s=t._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list"},[s("gd-tables",{ref:"table",attrs:{height:t.getHeight,columns:t.columns,dataSource:t.loadData,selectedRowKeys:t.selectedRowKeys,size:t.tableSize,pageSize:t.tablePageSize,filtering:!1},on:{onChange:t.onSelectChange},scopedSlots:t._u([t.quickQuery?{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl",staticStyle:{width:"300px","margin-right":"12px"}},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:t.$i18nt("gd.translation.value"),clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.query.apply(null,arguments)}},model:{value:t.queryParam.description,callback:function(a){t.$set(t.queryParam,"description",a)},expression:"queryParam.description"}}),s("div",{staticClass:"table-operator-search",on:{click:t.query}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorl",staticStyle:{width:"300px"}},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:t.$i18nt("gd.translation.key"),clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.query.apply(null,arguments)}},model:{value:t.queryParam.name,callback:function(a){t.$set(t.queryParam,"name",a)},expression:"queryParam.name"}}),s("div",{staticClass:"table-operator-search",on:{click:t.query}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:t.sysViewButtons},on:{functionName:t.doEvent}})],1)])]},proxy:!0}:null,{key:"defaulttext",fn:function({row:a}){return[s("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:function(i){return t.$refs.editForm.init(a)}}},[t._v(" "+t._s(a.defaulttext)+" ")])]}},{key:"type",fn:function(a){return[t.dictSwitch(a.row.type,"translation_type")?s("el-tag",{attrs:{color:t.dictSwitch(a.row.type,"translation_type")}},[t._v(" "+t._s(t._f("dictType")("translation_type",a.row.type))+" ")]):s("span",[t._v(t._s(t._f("dictType")("translation_type",a.row.type)))])]}},{key:"statecodes",fn:function(a){return[t.dictSwitch(a.row.statecodes,"state_code")?s("el-tag",{attrs:{effect:"dark",color:t.dictSwitch(a.row.statecodes,"state_code")}},[t._v(" "+t._s(t._f("dictType")("state_code",a.row.statecodes))+" ")]):s("span",[t._v(t._s(t._f("dictType")("state_code",a.row.statecodes)))])]}}],null,!0)})],1),s("editForm",{ref:"editForm",attrs:{tmtype:"translationManagement",openPermissions:!0},on:{ok:t.handleOk}}),s("timport",{ref:"timport",on:{ok:t.handleOk}})],1)},x=[],k=o.normalizeComponent(v,w,x,!1,null,"fe7e203c",null,null);const r=k.exports;r.install=function(e){e.component(r.name,r)};exports.GDpackage=r;exports.editForm=c;
1
+ "use strict";const n=require("./system.promptmanagement.e73f64a2.js"),o=require("./chartbi.5eded588.js"),u=require("./messages.fa3d97b5.js");const h={props:{openPermissions:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0},tmtype:{type:String,default:""}},data(){return{visible:!1,mockData:[],targetKeys:[],translationDetail:{name:"",langs:[]},confirmLoading:!0,title:"",sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],type:1,addData:null,fullScreen:!1,width:"800px",errInit:null,ruleFormData:{defaulttext:"",name:"",langs:"",type:"3",hintcatalogid:""},rules:{defaulttext:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]}}},computed:{},methods:{toggleFullscreen(){this.fullScreen=!this.fullScreen},changeText(e){let t=[...this.translationDetail.langs];t.map(s=>(s.description=s.languagecode.replace(/-/g,"_")==="zh_CN"?e:s.description,s)),this.translationDetail.langs=[...t]},changeLanguage(e,t){t.languagecode.replace(/-/g,"_")==="zh_CN"&&(this.ruleFormData.defaulttext=e)},init(e){this.fullScreen=!1,this.visible=!0,this.type=e?2:1,this.title=e?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add"),this.openPermissions&&(this.sysViewButtons=this.sysViewButtons.map(t=>(t.name=e?"sysTranslation:edit":"sysTranslation:add",t))),e?(this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData.defaulttext=e.defaulttext,this.ruleFormData.id=e.id,this.ruleFormData.name=e.name,this.ruleFormData.hintcatalogid=e.hintcatalogid,this.ruleFormData.type=e.type.toString()},0)}),this.sysTranslationDetail(e.id)):(this.getAllLanguage(),this.tmtype==="translationManagement"&&(this.ruleFormData.type="2"))},editInit(e){if(this.confirmLoading=!0,this.title=this.$i18nt("gd.https.edit"),this.visible=!0,this.openPermissions&&(this.sysViewButtons=this.sysViewButtons.map(t=>(t.name="sysTranslation:edit",t))),!e||e.key===""){this.init(null);return}n.sysTranslationPage({name:e.key}).then(t=>{if(t.code==200){let s=t.data.rows[0],a=e.list.filter(i=>i.code.replace(/-/g,"_")==="zh_CN")[0];s!==void 0&&s.defaulttext===""&&(s=Object.assign(s,{defaulttext:a.val})),s!==void 0?this.init(s):(this.ruleFormData=Object.assign(this.ruleFormData,{defaulttext:e.list[0]?e.list[0].val:"",name:e.key}),this.addData=e.list.length>0?{langs:e.list}:null,this.init(null),this.errInit=e.key,this.$emit("err",e.transKey),this.$message.error(this.$i18nt("gd.translation.errTip","\u6570\u636E\u9519\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u6DFB\u52A0\uFF01")))}})},addInit(e){if(e===""){this.init(null);return}let t=JSON.parse(e);this.addData=t,this.init(null),this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData.defaulttext=t.langs[0].val,this.ruleFormData.name=this.errInit?this.errInit:t.name},0)})},add(e){this.confirmLoading=!0,delete e.id,n.sysTranslationAdd(e).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.$emit("ok",e),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25: ")+t.message)}).finally(t=>{this.confirmLoading=!1})},edit(e){this.confirmLoading=!0,n.sysTranslationEdit(e).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")),this.$emit("ok",e),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25: ")+t.message)}).finally(t=>{this.confirmLoading=!1})},getAllLanguage(){this.confirmLoading=!0,n.GetAllLanguage().then(e=>{let t=e.data;this.addData&&t.map(s=>{let a=this.addData.langs.filter(i=>i.code==s.languagecode)[0];return s.languagecode=s.languagecode.replace(/-/g,"_"),s.description=a===void 0?"":a.val,s}),this.translationDetail.langs=t,this.confirmLoading=!1})},sysTranslationDetail(e){this.confirmLoading=!0,n.sysTranslationDetail({id:e}).then(t=>{let s=t.data&&t.data.langs?t.data.langs:[];s.map(a=>(a.languagecode=a.languagecode.replace(/-/g,"_"),a)),this.translationDetail=Object.assign(t.data,{langs:s}),this.confirmLoading=!1})},filterOption(e,t){return t.description.indexOf(e)>-1},handleChange(e,t,s){this.targetKeys=e},handleSubmit(){this.$refs.ruleForm.validate(e=>{if(e){const t={...this.ruleFormData,langs:this.translationDetail.langs||[],name:this.ruleFormData.name||this.translationDetail.name};this.type==1?this.add(t):this.edit(t)}})},getDictionary(e){return this.$options.filters.dictData(e)},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.$refs.ruleForm.resetFields(),this.ruleFormData={defaulttext:"",name:"",langs:"",id:"",type:"",hintcatalogid:""},this.translationDetail={name:"",langs:[]},this.addData=null,this.errInit=null,this.$emit("closed")},doEvent(e){let t=e.item.functionName;this[t]&&this[t]()}}};var m=function(){var t=this,s=t._self._c;return s("el-dialog",{class:t.fullScreen?"gd-dialog":"gd-dialog gd-dialog-fangda",attrs:{width:t.width,visible:t.visible,fullscreen:t.fullScreen,footer:null,top:"80px","modal-append-to-body":t.modalAppendToBody,"append-to-body":t.appendToBody,"show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.handleCancel}},[s("gd-modal-title",{attrs:{slot:"title",title:t.title,fullscreen:t.fullScreen,buttons:t.sysViewButtons,confirmLoading:t.confirmLoading,showClose:!0,closed:"handleCancel"},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[s("div",{class:t.fullScreen?"modal-bodyq":"modal-body"},[s("el-form",{ref:"ruleForm",attrs:{rules:t.rules,model:t.ruleFormData,"label-width":"160px"},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{prop:"defaulttext"},scopedSlots:t._u([{key:"label",fn:function(){return[t._v(" "+t._s(t.$i18nt("gd.translation.value"))+"\xA0 "),s("el-tooltip",{attrs:{content:t.$i18nt("gd.translation.valueTip"),placement:"top"}},[s("i",{staticClass:"el-icon-question"})])]},proxy:!0}])},[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.type!=1},on:{input:t.changeText},model:{value:t.ruleFormData.defaulttext,callback:function(a){t.$set(t.ruleFormData,"defaulttext",a)},expression:"ruleFormData.defaulttext"}})],1),s("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{prop:"name"},scopedSlots:t._u([{key:"label",fn:function(){return[t._v(" "+t._s(t.$i18nt("gd.translation.key"))+"\xA0 "),s("el-tooltip",{attrs:{content:t.$i18nt("gd.translation.keyTip"),placement:"top"}},[s("i",{staticClass:"el-icon-question"})])]},proxy:!0}])},[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.type!=1},model:{value:t.ruleFormData.name,callback:function(a){t.$set(t.ruleFormData,"name",a)},expression:"ruleFormData.name"}})],1),t.tmtype==="translationManagement"?s("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{prop:"type"},scopedSlots:t._u([{key:"label",fn:function(){return[t._v(t._s(t.$i18nt("gd.translation.type"))+"\xA0")]},proxy:!0}],null,!1,1857044530)},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"","collapse-tags":""},model:{value:t.ruleFormData.type,callback:function(a){t.$set(t.ruleFormData,"type",a)},expression:"ruleFormData.type"}},t._l(t.getDictionary("translation_type"),function(a){return s("el-option",{key:a.code,attrs:{label:t.$i18nt(`Dynamics.${a.transkey}`,a.name),value:a.code}},[s("span",[t._v(t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.name)))])])}),1)],1):t._e(),s("el-divider",{attrs:{dashed:""}}),t._l(this.translationDetail.langs,function(a){return[s("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:a.languagename}},[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),type:"textarea",autosize:""},on:{input:function(i){return t.changeLanguage(i,a)}},model:{value:a.description,callback:function(i){t.$set(a,"description",i)},expression:"item.description"}})],1)]})],2)],1)])],1)},g=[],p=o.normalizeComponent(h,m,g,!1,null,"98493209",null,null);const c=p.exports;const f={data(){return{visible:!1,solutionId:"",sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"save",icon:"el-icon-document-checked"}],confirmLoading:!1,type:1,record:{},advanced:!1,fullScreen:!1,width:"800px",fileList:[]}},computed:{title(){return this.$i18nt("gd.web.selectFile")}},methods:{handleRemove(e){const t=this.fileList.indexOf(e),s=this.fileList.slice();s.splice(t,1),this.fileList=s},beforeUpload(e){return this.fileList=[e],!1},toggleFullscreen(){this.fullScreen=!this.fullScreen},open(e){this.fileList=[],this.fullScreen=!1,this.visible=!0},handleSubmit(){this.confirmLoading=!0;let e=new FormData;e.append("file",this.fileList[0]),u.sysFileUpload(e).then(t=>{t.code==200?this.translationImport(t):(this.confirmLoading=!1,this.$message.error(t.message))}).catch(t=>{this.$message.error("\u670D\u52A1\u5668\u9519\u8BEF\uFF0C\u8BF7\u91CD\u8BD5"),this.confirmLoading=!1})},translationImport(e){let t={fileId:e.data};n.sysTranslationImport(t).then(s=>{this.confirmLoading=!1,s.success?(this.closed(),this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$emit("ok")):this.$message.error(s.message)})},closed(){this.selectedRowKeys=[],this.visible=!1},doEvent(e){let t=e.item.functionName;this[t]&&this[t]()}}};var y=function(){var t=this,s=t._self._c;return s("el-dialog",{class:t.fullScreen?"gd-dialog":"gd-dialog gd-dialog-fangda",attrs:{width:t.width,visible:t.visible,fullscreen:t.fullScreen,footer:null,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},cancel:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.title,confirmLoading:t.confirmLoading,visible:t.visible,fullscreen:t.fullScreen,buttons:t.sysViewButtons,showClose:!0},on:{changeEvent:t.doEvent}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[s("div",{class:t.fullScreen?"modal-bodyq":"modal-body"},[s("el-alert",{staticStyle:{"margin-bottom":"12px"},attrs:{title:t.$i18nt("gd.translation.importTip","\u9009\u62E9\u8981\u5BFC\u5165\u7684(.xlsx)\u6587\u4EF6"),type:"info","show-icon":"",closable:!1}}),s("el-row",{staticStyle:{"margin-left":"-12px","margin-right":"-12px"},attrs:{gutter:48}},[s("el-col",{attrs:{md:20,sm:24}},[s("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:"","file-list":t.fileList,remove:t.handleRemove,"before-upload":t.beforeUpload,accept:".xlsx"}},[s("el-button",{attrs:{id:"upload"}},[s("i",{staticClass:"el-icon-upload2"}),t._v(" "+t._s(t.$i18nt("gd.web.selectFile","\u9009\u62E9\u6587\u4EF6"))+" ")])],1)],1)],1)],1)])],2)},_=[],b=o.normalizeComponent(f,y,_,!1,null,"4232173a",null,null);const $=b.exports;const v={props:{height:{type:Number,default:100}},name:"GdTranslationList",components:{editForm:c,timport:$},data(){return{sysViewButtons:[{displayName:"\u521D\u59CB\u5316\u7FFB\u8BD1",functionName:"initialize",show:!0,transKey:"gd.translation.initialize",icon:"el-icon-refresh",btnType:"danger",name:"sysTranslation:initialize"},{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysTranslation:add"},{displayName:"\u7F16\u8F91",functionName:"editForm",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysTranslation:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysTranslation:delete"},{displayName:"\u5BFC\u5165",functionName:"transimport",show:!0,transKey:"gd.btn.import",icon:"gd-icon-daoru1",name:"sysTranslation:import"},{displayName:"\u5BFC\u51FA",functionName:"transexport",show:!0,transKey:"gd.btn.export",icon:"gd-icon-daoru",name:"sysTranslation:export"},{displayName:"\u53D1\u5E03",functionName:"release",show:!0,transKey:"gd.btn.release",icon:"gd-icon-fabu1",btnType:"danger",name:"sysTranslation:release"}],advanced:!1,queryParam:{},columns:[{type:"selection",width:"60",fixed:!0},{label:"\u7FFB\u8BD1\u503C(value)",prop:"defaulttext",align:"left",type:"slot",slotType:"defaulttext",transKey:"gd.translation.value",width:"260"},{label:"\u5BF9\u5E94\u503C(key)",prop:"name",transKey:"gd.translation.key",align:"left",width:"360"},{label:"\u7C7B\u578B",prop:"type",type:"slot",slotType:"type",align:"left",transKey:"gd.translation.type",width:"160"},{label:"\u72B6\u6001",prop:"statecodes",type:"slot",slotType:"statecodes",align:"left",transKey:"gd.translation.stateCodes",width:"160"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createdtime",align:"center",transKey:"gd.web.creationTime",width:"160"}],loadData:e=>n.sysTranslationPage(Object.assign(e,this.queryParam)).then(t=>t.data),selectedRowKeys:[],selectedRows:[],state:!1,quickQuery:!0,seeQuerys:!1}},computed:{stylew(){return this.seeQuerys?"width: calc(100% - 356px);":""},y(){let e=this.getBntnShow?0:38,t=this.quickQuery?4:0;return this.screenHeight-232-t+e},getBntnShow(){let e=this.sysViewButtons.filter(t=>t.name&&this.$hasPerm(t.name));return this.crumbsState?!0:e.length>0},getBootTrans(){return this.$bootTrans==null?!1:this.$bootTrans},getHeight(){return this.height},...o.mapGetters(["tableSize","tablePageSize","screenHeight","multiTab","crumbsState"])},methods:{changeWid(e){this.seeQuerys=e},reset(){this.queryParam={}},query(){this.$refs.table.refresh(!0)},release(){let e=this;this.$confirm(this.$i18nt("gd.https.releaseContent","\u786E\u8BA4\u53D1\u5E03?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.releaseOk","\u7ACB\u5373\u53D1\u5E03"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,s,a)=>{a(),t==="confirm"&&(s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,n.deployTranslation().then(i=>{a(),s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0,i.success?(e.$message.success(e.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),e.handleOk()):e.$message.error(e.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+i.message)}).catch(i=>{e.$message.error(e.$i18nt("gd.error.error")+i.message)}))}})},getPopupContainer(e){return e.parentElement},cache(){this.formLoading=!0,n.sysTranslationCache().then(e=>{e.success?this.$message.success(this.$i18nt("gd.https.operateSucc")):this.$message.error(this.$i18nt("gd.https.operateFail")+e.message),this.formLoading=!1})},transexport(){if(this.state)return;this.state=!0;const e=this.$message({message:this.$i18nt("gd.login.exporting","\u6B63\u5728\u5BFC\u51FA\u4E2D..."),duration:0,iconClass:"el-icon-loading"});n.sysTranslationExport({}).then(t=>{this.exportWay(t,e)}).catch(t=>{e.close(),this.$message.error("err!")})},exportWay(e,t){if(e){const s=new Blob([e.data],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),a=URL.createObjectURL(s),i=document.createElement("a");i.style.display="none",i.href=a;let d=new Date().getTime();i.download=`translation${d}`,i.click(),URL.revokeObjectURL(i.href),setTimeout(()=>{this.state=!1,t.close()},1e3)}else t.close(),setTimeout(()=>{this.statu=!1},1e3),this.$nextTick(()=>{setTimeout(()=>{this.$message.error(e.message)},0)})},transimport(){this.$refs.timport.open()},add(){this.$refs.editForm.init(null)},editForm(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne"));return}this.$refs.editForm.init(this.selectedRows[0])},del(){let e=this;if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip"));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\u8BA4\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,s,a)=>{if(a(),t==="confirm")return new Promise((i,d)=>{n.sysTranslationDelete({ids:e.selectedRowKeys.join(",")}).then(l=>{l.success?(e.$message.success(e.$i18nt("gd.https.delSucc")),e.handleOk()):e.$message.error(e.$i18nt("gd.https.delFail")+l.message),i()}).catch(l=>{e.$message.error(e.$i18nt("gd.error.error")+l.message)})}).catch(()=>console.log("Oops errors!"))}})},initialize(){let e=this;this.$confirm(this.$i18nt("gd.https.initializeTip","\u662F\u5426\u521D\u59CB\u5316\u7FFB\u8BD1?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.translation.initializeOk","\u7ACB\u5373\u521D\u59CB\u5316"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,s,a)=>{if(a(),t==="confirm")return new Promise((i,d)=>{n.sysTranslationInit({}).then(l=>{l.success?(e.$message.success(e.$i18nt("gd.https.operateSucc")),e.handleOk()):e.$message.error(e.$i18nt("gd.https.operateFail")+l.message),i()}).catch(l=>{e.$message.error(e.$i18nt("gd.error.error")+l.message)})}).catch(()=>console.log("Oops errors!"))}})},handleOk(){this.$refs.table.refresh()},getDictionary(e){return this.$options.filters.dictData(e)},dictSwitch(e,t){let s=this.$options.filters.dictData(t).filter(a=>a.code==e)[0];return s!=null&&s.colour?s.colour:""},onSelectChange(e,t){this.selectedRowKeys=e,this.selectedRows=t},doEvent(e){let t=e.item.functionName;this[t]()}}};var w=function(){var t=this,s=t._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list"},[s("gd-tables",{ref:"table",attrs:{height:t.getHeight,columns:t.columns,dataSource:t.loadData,selectedRowKeys:t.selectedRowKeys,size:t.tableSize,pageSize:t.tablePageSize,filtering:!1},on:{onChange:t.onSelectChange},scopedSlots:t._u([t.quickQuery?{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl",staticStyle:{width:"300px","margin-right":"12px"}},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:t.$i18nt("gd.translation.value"),clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.query.apply(null,arguments)}},model:{value:t.queryParam.description,callback:function(a){t.$set(t.queryParam,"description",a)},expression:"queryParam.description"}}),s("div",{staticClass:"table-operator-search",on:{click:t.query}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorl",staticStyle:{width:"300px"}},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:t.$i18nt("gd.translation.key"),clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.query.apply(null,arguments)}},model:{value:t.queryParam.name,callback:function(a){t.$set(t.queryParam,"name",a)},expression:"queryParam.name"}}),s("div",{staticClass:"table-operator-search",on:{click:t.query}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:t.sysViewButtons},on:{functionName:t.doEvent}})],1)])]},proxy:!0}:null,{key:"defaulttext",fn:function({row:a}){return[s("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:function(i){return t.$refs.editForm.init(a)}}},[t._v(" "+t._s(a.defaulttext)+" ")])]}},{key:"type",fn:function(a){return[t.dictSwitch(a.row.type,"translation_type")?s("el-tag",{attrs:{color:t.dictSwitch(a.row.type,"translation_type")}},[t._v(" "+t._s(t._f("dictType")("translation_type",a.row.type))+" ")]):s("span",[t._v(t._s(t._f("dictType")("translation_type",a.row.type)))])]}},{key:"statecodes",fn:function(a){return[t.dictSwitch(a.row.statecodes,"state_code")?s("el-tag",{attrs:{effect:"dark",color:t.dictSwitch(a.row.statecodes,"state_code")}},[t._v(" "+t._s(t._f("dictType")("state_code",a.row.statecodes))+" ")]):s("span",[t._v(t._s(t._f("dictType")("state_code",a.row.statecodes)))])]}}],null,!0)})],1),s("editForm",{ref:"editForm",attrs:{tmtype:"translationManagement",openPermissions:!0},on:{ok:t.handleOk}}),s("timport",{ref:"timport",on:{ok:t.handleOk}})],1)},x=[],k=o.normalizeComponent(v,w,x,!1,null,"fe7e203c",null,null);const r=k.exports;r.install=function(e){e.component(r.name,r)};exports.GDpackage=r;exports.editForm=c;
@@ -1,6 +1,6 @@
1
- import { s as d, a as c, b as u, G as h, c as m, d as g, e as p, f, g as y, h as _, i as b } from "./system.promptmanagement.36a65c51.mjs";
2
- import { n as r, m as $ } from "./chartbi.cdd1e365.mjs";
3
- import { m as v } from "./messages.d8abe18d.mjs";
1
+ import { s as d, a as c, b as u, G as h, c as m, d as g, e as p, f, g as y, h as _, i as b } from "./system.promptmanagement.1ad89863.mjs";
2
+ import { n as r, m as $ } from "./chartbi.c3bc6adb.mjs";
3
+ import { p as v } from "./messages.bc3bc0e8.mjs";
4
4
  const w = {
5
5
  props: {
6
6
  openPermissions: {
@@ -1,14 +1,14 @@
1
- "use strict";const C=require("./system.org.5bb36f9c.js"),w=require("./system.account.8ea53681.js"),T=require("./chartbi.06e48153.js"),K=require("./messages.2fff74f3.js"),F=require("./system.role.88100f66.js");const O={data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"90%",selectedRowKeys:[],allRowData:[]}},components:{RoleForm:F.GDpackage},computed:{height(){return this.screenHeight-(this.fullscreen?160:340)},...T.mapGetters(["screenHeight"])},methods:{handleSubmit(){this.confirmLoading=!0;let i=[];i=this.allRowData.filter(t=>!this.selectedRowKeys.some(r=>r===t.id));const e=i.map(t=>t.id);w.sysUserChangeRole({id:this.record.id,addRoleIdList:this.selectedRowKeys,removeRoleIdList:e}).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.closed(),this.$emit("ok")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+t.message),this.confirmLoading=!1})},open(i){this.confirmLoading=!0,this.record=i,this.visible=!0,w.sysUserOwnRole({id:i.id}).then(e=>{e.code===200&&(this.selectedRowKeys=e.data),this.$nextTick(()=>{setTimeout(()=>{this.$refs.roleForm.refresh()},0)}),this.confirmLoading=!1})},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},onSelectChange(i,e,t){this.selectedRowKeys=i,this.allRowData=t.rows},doEvent(i){const e=i.item.functionName;this[e]&&this[e]()}}};var N=function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!0,"append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(r){e.visible=r},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.btn.authorizationRole","\u6388\u6743\u89D2\u8272"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?t("RoleForm",{ref:"roleForm",attrs:{height:e.height,openMode:"components",openSelecteKeys:e.selectedRowKeys},on:{onSelectChange:e.onSelectChange}}):e._e()],1)],2)},P=[],B=T.normalizeComponent(O,N,P,!1,null,"117b9c7a",null,null);const D=B.exports;const U={data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},showForm:!1,visible:!1,confirmLoading:!1,fullscreen:!1,width:"600px",orgTree:[],ruleFormData:{orgIded:"",orgId:""},rules:{orgId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]}}},methods:{save(){let i=this;this.$confirm(this.$i18nt("gd.https.orgOldNameTip","\u7528\u6237\u6240\u5C5E\u5386\u53F2\u6570\u636E\u673A\u6784\u4F1A\u66F4\u65B0,\u662F\u5426\u786E\u8BA4\u4FEE\u6539\u7528\u6237\u6240\u5C5E\u673A\u6784?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.saveOk","\u786E\u8BA4\u4FDD\u5B58"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(e,t,r)=>{if(e!=="confirm"){r();return}r(),w.changeUserBUJob({userId:i.record.id,newBusiUnitId:this.ruleFormData.orgId}).then(n=>{n.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.closed(),this.$emit("ok")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+n.message),this.confirmLoading=!1})}})},handleSubmit(){this.confirmLoading=!0,this.$refs.ruleForm.validate(i=>{i?(this.confirmLoading=!1,this.save()):this.confirmLoading=!1})},open(i){this.confirmLoading=!0,this.record=i,this.visible=!0,this.showForm=!1,C.getOrgTree().then(e=>{const t=r=>(r=r.filter((n,s)=>(n.id===i.orgid&&(n.disabled=!0),n.children&&(n.children=t(n.children)),!0)),r);this.orgTree=t(e.data),this.ruleFormData={orgIded:i.orgid,orgId:""},this.showForm=!0,this.confirmLoading=!1,this.$nextTick(()=>{setTimeout(()=>{this.$refs.ruleForm.clearValidate()},0)})})},closed(){this.fullscreen=!1,this.visible=!1,this.$emit("closed")},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(i){const e=i.item.functionName;this[e]&&this[e]()}}};var I=function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!0,"append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(r){e.visible=r},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.btn.updateInstitutions","\u66F4\u65B0\u673A\u6784"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"130px"}},[e.showForm?t("el-form",{ref:"ruleForm",attrs:{"label-width":"110px","label-position":"top",model:e.ruleFormData,size:"mini",rules:e.rules},nativeOn:{submit:function(r){r.preventDefault()}}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.user.orgOldName","\u539F\u673A\u6784\u540D\u79F0"),prop:"orgIded"}},[t("gd-select-tree",{attrs:{filterable:!0,"tree-options":e.orgTree,"default-value":e.ruleFormData.orgIded,placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:!0},model:{value:e.ruleFormData.orgIded,callback:function(r){e.$set(e.ruleFormData,"orgIded",r)},expression:"ruleFormData.orgIded"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.user.organization","\u6240\u5C5E\u673A\u6784"),prop:"orgId"}},[t("gd-select-tree",{attrs:{filterable:!0,"tree-options":e.orgTree,placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.ruleFormData.orgId,callback:function(r){e.$set(e.ruleFormData,"orgId",r)},expression:"ruleFormData.orgId"}})],1)],1):e._e()],1)],2)},A=[],M=T.normalizeComponent(U,I,A,!1,null,"12675dc5",null,null);const q=M.exports,j={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.account",prop:"account",label:"\u8D26\u53F7",width:"220",type:"slot",slotType:"account",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.user.name",prop:"name",label:"\u59D3\u540D",width:"160",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.sex",prop:"gender",width:"120",label:"\u6027\u522B",type:"slot",slotType:"gender",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.displayName",prop:"orgname",label:"\u673A\u6784\u540D\u79F0",width:"180",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.phone",prop:"phone",width:"160",label:"\u624B\u673A",align:"left"},{transKey:"gd.user.status",prop:"statecodes",label:"\u72B6\u6001",width:"120",type:"slot",slotType:"statecodes",align:"center",dictTypeCode:"state_code",renderHeader:(i,...e)=>this.renderHeader(i,...e,{effectType:"checkbox",dictTypeCode:"state_code"})}],formColumns:[{transKey:"gd.user.account",effectType:"input",prop:"account",label:"\u8D26\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change",min:2}]},{transKey:"gd.user.name",prop:"name",effectType:"input",label:"\u59D3\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.sex",prop:"gender",effectType:"radio",label:"\u6027\u522B",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",dictTypeCode:"gender",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.birthday",prop:"birthday",effectType:"date",label:"\u751F\u65E5",placeholder:"\u8BF7\u8F93\u5165",valueFormat:"yyyy-MM-dd",placeholderTransKey:"gd.placeholder.select",rules:[]},{transKey:"gd.user.phone",effectType:"input",prop:"phone",label:"\u624B\u673A\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.email",effectType:"input",prop:"email",label:"\u90AE\u7BB1",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"},{type:"email",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u53F7!",transKey:"gd.account.emailTip"}]},{transKey:"gd.user.nickname",prop:"nickname",effectType:"input",label:"\u6635\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.user.tel",prop:"tel",effectType:"input",label:"\u7535\u8BDD",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.org.displayName",prop:"orgid",effectType:"selectTree",label:"\u6240\u5C5E\u673A\u6784",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",treeOptions:[],rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.user.PSDNeverExpire",prop:"psdneverexpire",effectType:"switch",label:"\u5BC6\u7801\u6C38\u4E0D\u8FC7\u671F",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysUser:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysUser:edit"},{displayName:"\u66F4\u65B0\u673A\u6784",functionName:"updateInstitutions",show:!0,transKey:"gd.btn.updateInstitutions",icon:"el-icon-edit",name:"sysUser:updateInstitutions"},{displayName:"\u6388\u6743\u89D2\u8272",functionName:"userRole",show:!0,transKey:"gd.btn.authorizationRole",icon:"el-icon-edit",name:"sysUser:grantRole"},{displayName:"\u91CD\u7F6E\u5BC6\u7801",functionName:"resetPwd",show:!0,transKey:"gd.btn.resetPassword",icon:"el-icon-edit",btnType:"danger",name:"sysUser:resetPwd"},{displayName:"\u542F\u7528",functionName:"enable",show:!1,transKey:"gd.btn.enable",icon:"el-icon-video-play",name:"sysUser:changeStatus"},{displayName:"\u505C\u7528",functionName:"deactivated",show:!1,btnType:"danger",icon:"el-icon-discover",transKey:"gd.btn.deactivate",name:"sysUser:changeStatus"},{displayName:"\u5BFC\u5165",functionName:"importUser",show:!0,icon:"gd-icon-daoru1",transKey:"gd.btn.import",name:"sysUser:import"},{displayName:"\u5BFC\u51FA",functionName:"exportUser",show:!0,icon:"gd-icon-daoru",transKey:"gd.btn.export",name:"sysUser:export"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.user.status",prop:"stateCodes",label:"\u72B6\u6001",effectType:"checkbox",dictTypeCode:"state_code",selectType:"checkbox",rules:[]}]}}};var E={exports:{}};/*!
1
+ "use strict";const C=require("./system.notice.365ddd35.js"),w=require("./system.account.e82580de.js"),T=require("./chartbi.5eded588.js"),K=require("./messages.fa3d97b5.js"),F=require("./system.role.b5b55ddd.js");const O={data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"90%",selectedRowKeys:[],allRowData:[]}},components:{RoleForm:F.GDpackage},computed:{height(){return this.screenHeight-(this.fullscreen?160:340)},...T.mapGetters(["screenHeight"])},methods:{handleSubmit(){this.confirmLoading=!0;let i=[];i=this.allRowData.filter(t=>!this.selectedRowKeys.some(r=>r===t.id));const e=i.map(t=>t.id);w.sysUserChangeRole({id:this.record.id,addRoleIdList:this.selectedRowKeys,removeRoleIdList:e}).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.closed(),this.$emit("ok")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+t.message),this.confirmLoading=!1})},open(i){this.confirmLoading=!0,this.record=i,this.visible=!0,w.sysUserOwnRole({id:i.id}).then(e=>{e.code===200&&(this.selectedRowKeys=e.data),this.$nextTick(()=>{setTimeout(()=>{this.$refs.roleForm.refresh()},0)}),this.confirmLoading=!1})},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},onSelectChange(i,e,t){this.selectedRowKeys=i,this.allRowData=t.rows},doEvent(i){const e=i.item.functionName;this[e]&&this[e]()}}};var N=function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!0,"append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(r){e.visible=r},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.btn.authorizationRole","\u6388\u6743\u89D2\u8272"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?t("RoleForm",{ref:"roleForm",attrs:{height:e.height,openMode:"components",openSelecteKeys:e.selectedRowKeys},on:{onSelectChange:e.onSelectChange}}):e._e()],1)],2)},P=[],B=T.normalizeComponent(O,N,P,!1,null,"117b9c7a",null,null);const D=B.exports;const U={data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},showForm:!1,visible:!1,confirmLoading:!1,fullscreen:!1,width:"600px",orgTree:[],ruleFormData:{orgIded:"",orgId:""},rules:{orgId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]}}},methods:{save(){let i=this;this.$confirm(this.$i18nt("gd.https.orgOldNameTip","\u7528\u6237\u6240\u5C5E\u5386\u53F2\u6570\u636E\u673A\u6784\u4F1A\u66F4\u65B0,\u662F\u5426\u786E\u8BA4\u4FEE\u6539\u7528\u6237\u6240\u5C5E\u673A\u6784?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.saveOk","\u786E\u8BA4\u4FDD\u5B58"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(e,t,r)=>{if(e!=="confirm"){r();return}r(),w.changeUserBUJob({userId:i.record.id,newBusiUnitId:this.ruleFormData.orgId}).then(n=>{n.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.closed(),this.$emit("ok")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+n.message),this.confirmLoading=!1})}})},handleSubmit(){this.confirmLoading=!0,this.$refs.ruleForm.validate(i=>{i?(this.confirmLoading=!1,this.save()):this.confirmLoading=!1})},open(i){this.confirmLoading=!0,this.record=i,this.visible=!0,this.showForm=!1,C.getOrgTree().then(e=>{const t=r=>(r=r.filter((n,s)=>(n.id===i.orgid&&(n.disabled=!0),n.children&&(n.children=t(n.children)),!0)),r);this.orgTree=t(e.data),this.ruleFormData={orgIded:i.orgid,orgId:""},this.showForm=!0,this.confirmLoading=!1,this.$nextTick(()=>{setTimeout(()=>{this.$refs.ruleForm.clearValidate()},0)})})},closed(){this.fullscreen=!1,this.visible=!1,this.$emit("closed")},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(i){const e=i.item.functionName;this[e]&&this[e]()}}};var I=function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!0,"append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(r){e.visible=r},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.btn.updateInstitutions","\u66F4\u65B0\u673A\u6784"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"130px"}},[e.showForm?t("el-form",{ref:"ruleForm",attrs:{"label-width":"110px","label-position":"top",model:e.ruleFormData,size:"mini",rules:e.rules},nativeOn:{submit:function(r){r.preventDefault()}}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.user.orgOldName","\u539F\u673A\u6784\u540D\u79F0"),prop:"orgIded"}},[t("gd-select-tree",{attrs:{filterable:!0,"tree-options":e.orgTree,"default-value":e.ruleFormData.orgIded,placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:!0},model:{value:e.ruleFormData.orgIded,callback:function(r){e.$set(e.ruleFormData,"orgIded",r)},expression:"ruleFormData.orgIded"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.user.organization","\u6240\u5C5E\u673A\u6784"),prop:"orgId"}},[t("gd-select-tree",{attrs:{filterable:!0,"tree-options":e.orgTree,placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.ruleFormData.orgId,callback:function(r){e.$set(e.ruleFormData,"orgId",r)},expression:"ruleFormData.orgId"}})],1)],1):e._e()],1)],2)},A=[],M=T.normalizeComponent(U,I,A,!1,null,"12675dc5",null,null);const q=M.exports,j={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.account",prop:"account",label:"\u8D26\u53F7",width:"220",type:"slot",slotType:"account",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.user.name",prop:"name",label:"\u59D3\u540D",width:"160",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.sex",prop:"gender",width:"120",label:"\u6027\u522B",type:"slot",slotType:"gender",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.displayName",prop:"orgname",label:"\u673A\u6784\u540D\u79F0",width:"180",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.phone",prop:"phone",width:"160",label:"\u624B\u673A",align:"left"},{transKey:"gd.user.status",prop:"statecodes",label:"\u72B6\u6001",width:"120",type:"slot",slotType:"statecodes",align:"center",dictTypeCode:"state_code",renderHeader:(i,...e)=>this.renderHeader(i,...e,{effectType:"checkbox",dictTypeCode:"state_code"})}],formColumns:[{transKey:"gd.user.account",effectType:"input",prop:"account",label:"\u8D26\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change",min:2}]},{transKey:"gd.user.name",prop:"name",effectType:"input",label:"\u59D3\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.sex",prop:"gender",effectType:"radio",label:"\u6027\u522B",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",dictTypeCode:"gender",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.birthday",prop:"birthday",effectType:"date",label:"\u751F\u65E5",placeholder:"\u8BF7\u8F93\u5165",valueFormat:"yyyy-MM-dd",placeholderTransKey:"gd.placeholder.select",rules:[]},{transKey:"gd.user.phone",effectType:"input",prop:"phone",label:"\u624B\u673A\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.email",effectType:"input",prop:"email",label:"\u90AE\u7BB1",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"},{type:"email",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u53F7!",transKey:"gd.account.emailTip"}]},{transKey:"gd.user.nickname",prop:"nickname",effectType:"input",label:"\u6635\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.user.tel",prop:"tel",effectType:"input",label:"\u7535\u8BDD",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.org.displayName",prop:"orgid",effectType:"selectTree",label:"\u6240\u5C5E\u673A\u6784",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",treeOptions:[],rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.user.PSDNeverExpire",prop:"psdneverexpire",effectType:"switch",label:"\u5BC6\u7801\u6C38\u4E0D\u8FC7\u671F",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.user.verificationMethod",prop:"authtype",effectType:"select",label:"\u9A8C\u8BC1\u65B9\u5F0F",placeholder:"\u8BF7\u9009\u62E9",dictTypeCode:"user_auth_type",placeholderTransKey:"gd.placeholder.select",treeOptions:[],rules:[]},{transKey:"gd.user.employeeID",prop:"employeeid",effectType:"input",label:"\u5DE5\u53F7",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.input",treeOptions:[],rules:[]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysUser:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysUser:edit"},{displayName:"\u66F4\u65B0\u673A\u6784",functionName:"updateInstitutions",show:!0,transKey:"gd.btn.updateInstitutions",icon:"el-icon-edit",name:"sysUser:updateInstitutions"},{displayName:"\u6388\u6743\u89D2\u8272",functionName:"userRole",show:!0,transKey:"gd.btn.authorizationRole",icon:"el-icon-edit",name:"sysUser:grantRole"},{displayName:"\u91CD\u7F6E\u5BC6\u7801",functionName:"resetPwd",show:!0,transKey:"gd.btn.resetPassword",icon:"el-icon-edit",btnType:"danger",name:"sysUser:resetPwd"},{displayName:"\u542F\u7528",functionName:"enable",show:!1,transKey:"gd.btn.enable",icon:"el-icon-video-play",name:"sysUser:changeStatus"},{displayName:"\u505C\u7528",functionName:"deactivated",show:!1,btnType:"danger",icon:"el-icon-discover",transKey:"gd.btn.deactivate",name:"sysUser:changeStatus"},{displayName:"\u5BFC\u5165",functionName:"importUser",show:!0,icon:"gd-icon-daoru1",transKey:"gd.btn.import",name:"sysUser:import"},{displayName:"\u5BFC\u51FA",functionName:"exportUser",show:!0,icon:"gd-icon-daoru",transKey:"gd.btn.export",name:"sysUser:export"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.user.status",prop:"searchStatus",label:"\u72B6\u6001",effectType:"checkbox",dictTypeCode:"state_code",selectType:"checkbox",rules:[]}]}}};var E={exports:{}};/*!
2
2
  * clipboard.js v2.0.4
3
3
  * https://zenorocha.github.io/clipboard.js
4
4
  *
5
5
  * Licensed MIT © Zeno Rocha
6
- */(function(i,e){(function(r,n){i.exports=n()})(w.commonjsGlobal,function(){return function(t){var r={};function n(s){if(r[s])return r[s].exports;var o=r[s]={i:s,l:!1,exports:{}};return t[s].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=r,n.d=function(s,o,a){n.o(s,o)||Object.defineProperty(s,o,{enumerable:!0,get:a})},n.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},n.t=function(s,o){if(o&1&&(s=n(s)),o&8||o&4&&typeof s=="object"&&s&&s.__esModule)return s;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:s}),o&2&&typeof s!="string")for(var c in s)n.d(a,c,function(h){return s[h]}.bind(null,c));return a},n.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return n.d(o,"a",o),o},n.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},n.p="",n(n.s=0)}([function(t,r,n){var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},o=function(){function m(g,v){for(var f=0;f<v.length;f++){var y=v[f];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(g,y.key,y)}}return function(g,v,f){return v&&m(g.prototype,v),f&&m(g,f),g}}(),a=n(1),c=l(a),h=n(3),b=l(h),p=n(4),u=l(p);function l(m){return m&&m.__esModule?m:{default:m}}function d(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function _(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function $(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var R=function(m){$(g,m);function g(v,f){d(this,g);var y=_(this,(g.__proto__||Object.getPrototypeOf(g)).call(this));return y.resolveOptions(f),y.listenClick(v),y}return o(g,[{key:"resolveOptions",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof f.action=="function"?f.action:this.defaultAction,this.target=typeof f.target=="function"?f.target:this.defaultTarget,this.text=typeof f.text=="function"?f.text:this.defaultText,this.container=s(f.container)==="object"?f.container:document.body}},{key:"listenClick",value:function(f){var y=this;this.listener=(0,u.default)(f,"click",function(k){return y.onClick(k)})}},{key:"onClick",value:function(f){var y=f.delegateTarget||f.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c.default({action:this.action(y),target:this.target(y),text:this.text(y),container:this.container,trigger:y,emitter:this})}},{key:"defaultAction",value:function(f){return S("action",f)}},{key:"defaultTarget",value:function(f){var y=S("target",f);if(y)return document.querySelector(y)}},{key:"defaultText",value:function(f){return S("text",f)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],y=typeof f=="string"?[f]:f,k=!!document.queryCommandSupported;return y.forEach(function(L){k=k&&!!document.queryCommandSupported(L)}),k}}]),g}(b.default);function S(m,g){var v="data-clipboard-"+m;if(!!g.hasAttribute(v))return g.getAttribute(v)}t.exports=R},function(t,r,n){var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},o=function(){function u(l,d){for(var _=0;_<d.length;_++){var $=d[_];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(l,$.key,$)}}return function(l,d,_){return d&&u(l.prototype,d),_&&u(l,_),l}}(),a=n(2),c=h(a);function h(u){return u&&u.__esModule?u:{default:u}}function b(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}var p=function(){function u(l){b(this,u),this.resolveOptions(l),this.initSelection()}return o(u,[{key:"resolveOptions",value:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=d.action,this.container=d.container,this.emitter=d.emitter,this.target=d.target,this.text=d.text,this.trigger=d.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var d=this,_=document.documentElement.getAttribute("dir")=="rtl";this.removeFake(),this.fakeHandlerCallback=function(){return d.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[_?"right":"left"]="-9999px";var $=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=$+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,c.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,c.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var d=void 0;try{d=document.execCommand(this.action)}catch{d=!1}this.handleResult(d)}},{key:"handleResult",value:function(d){this.emitter.emit(d?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"copy";if(this._action=d,this._action!=="copy"&&this._action!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(d){if(d!==void 0)if(d&&(typeof d>"u"?"undefined":s(d))==="object"&&d.nodeType===1){if(this.action==="copy"&&d.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(this.action==="cut"&&(d.hasAttribute("readonly")||d.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);this._target=d}else throw new Error('Invalid "target" value, use a valid Element')},get:function(){return this._target}}]),u}();t.exports=p},function(t,r){function n(s){var o;if(s.nodeName==="SELECT")s.focus(),o=s.value;else if(s.nodeName==="INPUT"||s.nodeName==="TEXTAREA"){var a=s.hasAttribute("readonly");a||s.setAttribute("readonly",""),s.select(),s.setSelectionRange(0,s.value.length),a||s.removeAttribute("readonly"),o=s.value}else{s.hasAttribute("contenteditable")&&s.focus();var c=window.getSelection(),h=document.createRange();h.selectNodeContents(s),c.removeAllRanges(),c.addRange(h),o=c.toString()}return o}t.exports=n},function(t,r){function n(){}n.prototype={on:function(s,o,a){var c=this.e||(this.e={});return(c[s]||(c[s]=[])).push({fn:o,ctx:a}),this},once:function(s,o,a){var c=this;function h(){c.off(s,h),o.apply(a,arguments)}return h._=o,this.on(s,h,a)},emit:function(s){var o=[].slice.call(arguments,1),a=((this.e||(this.e={}))[s]||[]).slice(),c=0,h=a.length;for(c;c<h;c++)a[c].fn.apply(a[c].ctx,o);return this},off:function(s,o){var a=this.e||(this.e={}),c=a[s],h=[];if(c&&o)for(var b=0,p=c.length;b<p;b++)c[b].fn!==o&&c[b].fn._!==o&&h.push(c[b]);return h.length?a[s]=h:delete a[s],this}},t.exports=n},function(t,r,n){var s=n(5),o=n(6);function a(p,u,l){if(!p&&!u&&!l)throw new Error("Missing required arguments");if(!s.string(u))throw new TypeError("Second argument must be a String");if(!s.fn(l))throw new TypeError("Third argument must be a Function");if(s.node(p))return c(p,u,l);if(s.nodeList(p))return h(p,u,l);if(s.string(p))return b(p,u,l);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function c(p,u,l){return p.addEventListener(u,l),{destroy:function(){p.removeEventListener(u,l)}}}function h(p,u,l){return Array.prototype.forEach.call(p,function(d){d.addEventListener(u,l)}),{destroy:function(){Array.prototype.forEach.call(p,function(d){d.removeEventListener(u,l)})}}}function b(p,u,l){return o(document.body,p,u,l)}t.exports=a},function(t,r){r.node=function(n){return n!==void 0&&n instanceof HTMLElement&&n.nodeType===1},r.nodeList=function(n){var s=Object.prototype.toString.call(n);return n!==void 0&&(s==="[object NodeList]"||s==="[object HTMLCollection]")&&"length"in n&&(n.length===0||r.node(n[0]))},r.string=function(n){return typeof n=="string"||n instanceof String},r.fn=function(n){var s=Object.prototype.toString.call(n);return s==="[object Function]"}},function(t,r,n){var s=n(7);function o(h,b,p,u,l){var d=c.apply(this,arguments);return h.addEventListener(p,d,l),{destroy:function(){h.removeEventListener(p,d,l)}}}function a(h,b,p,u,l){return typeof h.addEventListener=="function"?o.apply(null,arguments):typeof p=="function"?o.bind(null,document).apply(null,arguments):(typeof h=="string"&&(h=document.querySelectorAll(h)),Array.prototype.map.call(h,function(d){return o(d,b,p,u,l)}))}function c(h,b,p,u){return function(l){l.delegateTarget=s(l.target,b),l.delegateTarget&&u.call(h,l)}}t.exports=a},function(t,r){var n=9;if(typeof Element<"u"&&!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector}function o(a,c){for(;a&&a.nodeType!==n;){if(typeof a.matches=="function"&&a.matches(c))return a;a=a.parentNode}}t.exports=o}])})})(E);const H=w.getDefaultExportFromCjs(E.exports);const z={props:{infoData:{type:Object,required:!0},isSendEmail:{type:String,default:""}},data(){return{visible:!1,sending:!1,isSendEmailList:"",width:"520px",fullscreen:!1}},computed:{copyInfo(){return`${this.$i18nt("gd.user.account","\u8D26\u53F7")}: ${this.infoData.account}
6
+ */(function(i,e){(function(r,n){i.exports=n()})(w.commonjsGlobal,function(){return function(t){var r={};function n(s){if(r[s])return r[s].exports;var o=r[s]={i:s,l:!1,exports:{}};return t[s].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=r,n.d=function(s,o,a){n.o(s,o)||Object.defineProperty(s,o,{enumerable:!0,get:a})},n.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},n.t=function(s,o){if(o&1&&(s=n(s)),o&8||o&4&&typeof s=="object"&&s&&s.__esModule)return s;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:s}),o&2&&typeof s!="string")for(var c in s)n.d(a,c,function(h){return s[h]}.bind(null,c));return a},n.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return n.d(o,"a",o),o},n.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},n.p="",n(n.s=0)}([function(t,r,n){var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},o=function(){function m(g,v){for(var f=0;f<v.length;f++){var y=v[f];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(g,y.key,y)}}return function(g,v,f){return v&&m(g.prototype,v),f&&m(g,f),g}}(),a=n(1),c=l(a),h=n(3),b=l(h),p=n(4),u=l(p);function l(m){return m&&m.__esModule?m:{default:m}}function d(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function _(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function $(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var R=function(m){$(g,m);function g(v,f){d(this,g);var y=_(this,(g.__proto__||Object.getPrototypeOf(g)).call(this));return y.resolveOptions(f),y.listenClick(v),y}return o(g,[{key:"resolveOptions",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof f.action=="function"?f.action:this.defaultAction,this.target=typeof f.target=="function"?f.target:this.defaultTarget,this.text=typeof f.text=="function"?f.text:this.defaultText,this.container=s(f.container)==="object"?f.container:document.body}},{key:"listenClick",value:function(f){var y=this;this.listener=(0,u.default)(f,"click",function(k){return y.onClick(k)})}},{key:"onClick",value:function(f){var y=f.delegateTarget||f.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c.default({action:this.action(y),target:this.target(y),text:this.text(y),container:this.container,trigger:y,emitter:this})}},{key:"defaultAction",value:function(f){return x("action",f)}},{key:"defaultTarget",value:function(f){var y=x("target",f);if(y)return document.querySelector(y)}},{key:"defaultText",value:function(f){return x("text",f)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],y=typeof f=="string"?[f]:f,k=!!document.queryCommandSupported;return y.forEach(function(L){k=k&&!!document.queryCommandSupported(L)}),k}}]),g}(b.default);function x(m,g){var v="data-clipboard-"+m;if(!!g.hasAttribute(v))return g.getAttribute(v)}t.exports=R},function(t,r,n){var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},o=function(){function u(l,d){for(var _=0;_<d.length;_++){var $=d[_];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(l,$.key,$)}}return function(l,d,_){return d&&u(l.prototype,d),_&&u(l,_),l}}(),a=n(2),c=h(a);function h(u){return u&&u.__esModule?u:{default:u}}function b(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}var p=function(){function u(l){b(this,u),this.resolveOptions(l),this.initSelection()}return o(u,[{key:"resolveOptions",value:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=d.action,this.container=d.container,this.emitter=d.emitter,this.target=d.target,this.text=d.text,this.trigger=d.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var d=this,_=document.documentElement.getAttribute("dir")=="rtl";this.removeFake(),this.fakeHandlerCallback=function(){return d.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[_?"right":"left"]="-9999px";var $=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=$+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,c.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,c.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var d=void 0;try{d=document.execCommand(this.action)}catch{d=!1}this.handleResult(d)}},{key:"handleResult",value:function(d){this.emitter.emit(d?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"copy";if(this._action=d,this._action!=="copy"&&this._action!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(d){if(d!==void 0)if(d&&(typeof d>"u"?"undefined":s(d))==="object"&&d.nodeType===1){if(this.action==="copy"&&d.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(this.action==="cut"&&(d.hasAttribute("readonly")||d.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);this._target=d}else throw new Error('Invalid "target" value, use a valid Element')},get:function(){return this._target}}]),u}();t.exports=p},function(t,r){function n(s){var o;if(s.nodeName==="SELECT")s.focus(),o=s.value;else if(s.nodeName==="INPUT"||s.nodeName==="TEXTAREA"){var a=s.hasAttribute("readonly");a||s.setAttribute("readonly",""),s.select(),s.setSelectionRange(0,s.value.length),a||s.removeAttribute("readonly"),o=s.value}else{s.hasAttribute("contenteditable")&&s.focus();var c=window.getSelection(),h=document.createRange();h.selectNodeContents(s),c.removeAllRanges(),c.addRange(h),o=c.toString()}return o}t.exports=n},function(t,r){function n(){}n.prototype={on:function(s,o,a){var c=this.e||(this.e={});return(c[s]||(c[s]=[])).push({fn:o,ctx:a}),this},once:function(s,o,a){var c=this;function h(){c.off(s,h),o.apply(a,arguments)}return h._=o,this.on(s,h,a)},emit:function(s){var o=[].slice.call(arguments,1),a=((this.e||(this.e={}))[s]||[]).slice(),c=0,h=a.length;for(c;c<h;c++)a[c].fn.apply(a[c].ctx,o);return this},off:function(s,o){var a=this.e||(this.e={}),c=a[s],h=[];if(c&&o)for(var b=0,p=c.length;b<p;b++)c[b].fn!==o&&c[b].fn._!==o&&h.push(c[b]);return h.length?a[s]=h:delete a[s],this}},t.exports=n},function(t,r,n){var s=n(5),o=n(6);function a(p,u,l){if(!p&&!u&&!l)throw new Error("Missing required arguments");if(!s.string(u))throw new TypeError("Second argument must be a String");if(!s.fn(l))throw new TypeError("Third argument must be a Function");if(s.node(p))return c(p,u,l);if(s.nodeList(p))return h(p,u,l);if(s.string(p))return b(p,u,l);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function c(p,u,l){return p.addEventListener(u,l),{destroy:function(){p.removeEventListener(u,l)}}}function h(p,u,l){return Array.prototype.forEach.call(p,function(d){d.addEventListener(u,l)}),{destroy:function(){Array.prototype.forEach.call(p,function(d){d.removeEventListener(u,l)})}}}function b(p,u,l){return o(document.body,p,u,l)}t.exports=a},function(t,r){r.node=function(n){return n!==void 0&&n instanceof HTMLElement&&n.nodeType===1},r.nodeList=function(n){var s=Object.prototype.toString.call(n);return n!==void 0&&(s==="[object NodeList]"||s==="[object HTMLCollection]")&&"length"in n&&(n.length===0||r.node(n[0]))},r.string=function(n){return typeof n=="string"||n instanceof String},r.fn=function(n){var s=Object.prototype.toString.call(n);return s==="[object Function]"}},function(t,r,n){var s=n(7);function o(h,b,p,u,l){var d=c.apply(this,arguments);return h.addEventListener(p,d,l),{destroy:function(){h.removeEventListener(p,d,l)}}}function a(h,b,p,u,l){return typeof h.addEventListener=="function"?o.apply(null,arguments):typeof p=="function"?o.bind(null,document).apply(null,arguments):(typeof h=="string"&&(h=document.querySelectorAll(h)),Array.prototype.map.call(h,function(d){return o(d,b,p,u,l)}))}function c(h,b,p,u){return function(l){l.delegateTarget=s(l.target,b),l.delegateTarget&&u.call(h,l)}}t.exports=a},function(t,r){var n=9;if(typeof Element<"u"&&!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector}function o(a,c){for(;a&&a.nodeType!==n;){if(typeof a.matches=="function"&&a.matches(c))return a;a=a.parentNode}}t.exports=o}])})})(E);const H=w.getDefaultExportFromCjs(E.exports);const z={props:{infoData:{type:Object,required:!0},isSendEmail:{type:String,default:""}},data(){return{visible:!1,sending:!1,isSendEmailList:"",width:"520px",fullscreen:!1}},computed:{copyInfo(){return`${this.$i18nt("gd.user.account","\u8D26\u53F7")}: ${this.infoData.account}
7
7
  ${this.$i18nt("gd.user.paw","\u5BC6\u7801")}: ${this.infoData.password}
8
8
  ${this.$i18nt("gd.user.name","\u59D3\u540D")}: ${this.infoData.name}
9
9
  ${this.$i18nt("gd.user.email","\u90AE\u7BB1")}: ${this.infoData.email}
10
10
  ${this.$i18nt("gd.user.phone","\u624B\u673A\u53F7")}: ${this.infoData.phone}
11
11
  `}},methods:{open(i){this.visible=!0,this.isSendEmailList=i},colseCancel(){this.visible=!1},cmpleteUpgrade(){const i=new H(".copy-btn");i.on("success",()=>{this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.isSendEmailList!=1&&(this.visible=!1,this.$emit("sending"))}),i.on("error",()=>{this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")),this.visible=!1}),setTimeout(()=>{i.destroy()},122)},sendingEailm(){let i=this;i.sending=!0;let e={accountName:i.infoData.account,emailAddress:i.infoData.email,pcR_Type:5};w.applyResetPassword(e).then(t=>{t.success?(i.sending=!1,i.visible=!1,i.$notify({duration:8e3,type:"success",title:this.$i18nt("gd.https.resetTipSucc","\u91CD\u7F6E\u6210\u529F"),dangerouslyUseHTMLString:!0,message:`<p>${this.$i18nt("gd.https.addTip","\u5DF2\u5411\u6B64\u7528\u6237\u7684\u90AE\u7BB1\u53D1\u9001\u4E86\u4E00\u5C01\u5305\u542B\u5BC6\u7801\u91CD\u7F6E\u94FE\u63A5\u7684\u90AE\u4EF6\u3002")}</p>
12
- <p>${this.$i18nt("gd.https.addTipp","\u5982\u679C\u7528\u6237\u6CA1\u6709\u6536\u5230\u90AE\u4EF6\uFF0C\u5C1D\u8BD5\u901A\u8FC7\u3010\u91CD\u7F6E\u5BC6\u7801\u3011\u53D1\u9001\u5BC6\u7801\u91CD\u7F6E\u8BF7\u6C42\u3002")}</p>`}),i.$emit("sending")):i.$message.error(i.$i18nt("gd.https.sendingErr","\u53D1\u9001\u5931\u8D25")+t.message)})}}};var G=function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!0,"append-to-body":!1,top:"80px"},on:{"update:visible":function(r){e.visible=r},closed:e.colseCancel}},[t("template",{slot:"title"},[t("div",{staticClass:"gd-dialog-head"},[t("div",{staticClass:"dialog-head-title"},[e._v(e._s(e.$i18nt("gd.user.basicInformation","\u57FA\u672C\u4FE1\u606F")))])])]),t("el-descriptions",{attrs:{title:"",column:1,size:"medium"}},[t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.user.account","\u8D26\u53F7")}},[e._v(e._s(e.infoData.account))]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.user.paw","\u5BC6\u7801")}},[e._v(e._s(e.infoData.password))]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.user.name","\u59D3\u540D")}},[e._v(e._s(e.infoData.name))]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.user.email","\u90AE\u7BB1")}},[e._v(e._s(e.infoData.email))]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.user.phone","\u624B\u673A")}},[e._v(e._s(e.infoData.phone))])],1),t("template",{slot:"footer"},[t("el-button",{staticClass:"copy-btn",staticStyle:{"margin-left":"8px"},attrs:{type:"primary","data-clipboard-action":"copy","data-clipboard-text":e.copyInfo,icon:"el-icon-document-copy"},on:{click:e.cmpleteUpgrade}},[e._v(" "+e._s(e.$i18nt("gd.btn.copy"))+" ")]),e.isSendEmail=="1"?t("el-button",{staticClass:"copy-btn",staticStyle:{"margin-left":"8px"},attrs:{type:"primary",loading:e.sending,icon:"el-icon-message"},on:{click:e.sendingEailm}},[e._v(" "+e._s(e.$i18nt("gd.email.sending"))+" ")]):e._e()],1)],2)},Q=[],V=T.normalizeComponent(z,G,Q,!1,null,"b6f77ddd",null,null);const Y=V.exports;const J={name:"GdUse",props:{height:{type:Number,default:100}},mixins:[K.tablesFilter,j],data(){return{transKey:"gd.btn.add",formLoading:!1,currentNode:null,loading:!0,orgTree:[],selectedRowKeys:[],selectedRows:[],queryParam:{},defaultProps:{children:"children",label:"title",value:"value"},defaultExpandedKeys:"",loadData:i=>w.getUserPage(Object.assign(i,this.getQueryParam)).then(e=>e.data),disableBtn:["\u542F\u7528","\u505C\u7528"],fileList:[],needLoad:!1,infoData:{},isSendEmail:"",isSendEmailed:"",institutionsShow:!1}},components:{UserRoleForm:D,EditInstitutions:q,copyInfo:Y},computed:{getQueryParam(){let i=new Map;for(let e in this.queryParam)i.set(e==="statecodes"?"searchctatus":e,this.queryParam[e]);return Object.fromEntries(i)},getFormColumns(){return this.formColumns.filter(e=>(e.prop==="orgid"&&(e.treeOptions=[...this.orgTree]),!0))},getTableButtons(){return this.tableButtons.filter(i=>(i.show=!this.disableBtn.includes(i.displayName),!0))},getHeight(){return this.height},styled(){return`height:${this.height+76}px`},...T.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{updateInstitutions(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.institutionsShow=!0,this.$nextTick(()=>{setTimeout(()=>{this.$refs.editInstitutions.open(this.selectedRows[0])},0)})},userRole(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.$refs.userRoleForm.open(this.selectedRows[0])},saveQueries(i){this.queryParam={...i},this.refresh()},handleFileUpload(i){const e=this.$message({message:this.$i18nt("gd.https.uploading","\u52A0\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"}),t=new FormData;t.append("file",i.file),w.sysUserImport(t).then(r=>{r.success?(this.$message.success(this.$i18nt("gd.https.uploadSucc","\u4E0A\u4F20\u6210\u529F")),this.refresh()):this.$message.error(this.$i18nt("gd.https.uploadFail","\u4E0A\u4F20\u5931\u8D25")+r.message),this.$nextTick(()=>{setTimeout(()=>{e.close()},200)})})},importUser(){this.fileList=[],document.querySelector(".upload-demo").click()},exportUser(){const i=this.$message({message:this.$i18nt("gd.https.exporting","\u6B63\u5728\u5BFC\u51FA\u4E2D..."),duration:0,iconClass:"el-icon-loading"});w.sysUserExport().then(e=>{this.downloadfile(e),this.$nextTick(()=>{setTimeout(()=>{i.close()},200)})}).catch(e=>{this.$nextTick(()=>{setTimeout(()=>{i.close()},200)})})},enable(){this.editStateCodes({row:this.selectedRows[0]})},deactivated(){this.editStateCodes({row:this.selectedRows[0]})},editStateCodes({column:i,row:e}){const t=e.statecodes!=1?this.$i18nt("gd.https.enableContent","\u662F\u5426\u505C\u7528\u9009\u4E2D\u6570\u636E?"):this.$i18nt("gd.https.deactivateContent","\u662F\u5426\u542F\u7528\u9009\u4E2D\u6570\u636E?"),r=e.statecodes!=1?this.$i18nt("gd.https.enableOk","\u786E\u8BA4\u505C\u7528"):this.$i18nt("gd.https.deactivateOk","\u786E\u8BA4\u542F\u7528");this.$confirm(t,this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:r,cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(n,s,o)=>{if(n!=="confirm"){o();return}s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,w.sysUserChangeStatus({id:e.id,stateCodes:e.statecodes==1?0:1}).then(a=>{o(),a.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+a.message),s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0})}})},refresh(){this.$refs.table.refresh()},editForm(i){this.transKey="gd.btn.edit",this.$refs.editForm.open(Object.assign({...i},{gender:String(i.gender),orgid:String(i.orgid)}))},getOrgTree(){C.getOrgTree({}).then(i=>{if(i.code===200){const e=t=>(t=t.filter((r,n)=>(r.value=String(r.value),r.children&&r.children.length>0&&(r.children=e(r.children)),!0)),t);this.orgTree=e(i.data)}this.loading=!1})},handleNodeClick(i){this.queryParam.orgId===i.id?(delete this.queryParam.orgId,this.$nextTick(()=>{setTimeout(()=>{this.$refs.tree.setCurrentKey(null)},0)})):this.queryParam=Object.assign({...this.queryParam},{orgId:i.id}),this.refresh()},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,e,t)=>{this.delHand(i,e,t)}})},delHand(i,e,t){if(i!=="confirm"){t();return}let r=[];this.selectedRows.forEach(n=>{let s=sysOrgDelete(n).then(o=>o);r.push(s)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(r).then(n=>{t();const s=n.filter(o=>!o.success);s.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+s[0].message),this.handleOk(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},add(){this.transKey="gd.btn.add",this.$refs.editForm.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},async sbumit({data:i,record:e,btn:t},r,n){this.formLoading=!0;let s=e?w.sysUserEdit:w.sysUserAdd;if(!e){let o=await this.getUsrePassword();Object.assign(i,{password:o,confirm:o})}s(i).then(o=>{this.isSendEmailed="",o.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),n(),this.handleOk(),this.infoData=i,this.sendEmail(e,i)):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+o.message),this.formLoading=!1})},sendEmail(i,e){i||(this.isSendEmail==1&&this.$notify({type:"success",title:this.$i18nt("gd.https.sendingSucc","\u53D1\u9001\u6210\u529F"),dangerouslyUseHTMLString:!0,message:`<p>${this.$i18nt("gd.https.addTip","\u5DF2\u5411\u6B64\u7528\u6237\u7684\u90AE\u7BB1\u53D1\u9001\u4E86\u4E00\u5C01\u5305\u542B\u5BC6\u7801\u91CD\u7F6E\u94FE\u63A5\u7684\u90AE\u4EF6\u3002")}</p>
13
- <p>${this.$i18nt("gd.https.addTipp","\u5982\u679C\u7528\u6237\u6CA1\u6709\u6536\u5230\u90AE\u4EF6\uFF0C\u5C1D\u8BD5\u901A\u8FC7\u3010\u91CD\u7F6E\u5BC6\u7801\u3011\u53D1\u9001\u5BC6\u7801\u91CD\u7F6E\u8BF7\u6C42\u3002")}</p>`}),w.getConfigInfoByCode({code:"GDS_NewUser_DisplayAccount"}).then(t=>{t.code==200&&t.data.value=="1"&&setTimeout(()=>{this.$refs.copyInfo.open(this.copyRule)},1200)}))},handleOk(){this.getOrgTree(),this.$refs.table.refresh()},onSelectChange(i,e){if(this.selectedRowKeys=i,this.selectedRows=e,i.length===0){this.disableBtn=["\u542F\u7528","\u505C\u7528"];return}if(e.length>1){this.disableBtn=["\u542F\u7528","\u505C\u7528"];return}let t=[],r=e.filter(s=>s.statecodes==1),n=e.filter(s=>s.statecodes==0);r.length==e.length?t=["\u542F\u7528"]:n.length==e.length&&(t=["\u505C\u7528"]),this.disableBtn=t},downloadfile(i){var e=new Blob([i.data],{type:"application/octet-stream;charset=UTF-8"}),t=i.headers["content-disposition"];const s=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(t)[1].replace(/['"]/g,"");var o=document.createElement("a"),a=window.URL.createObjectURL(e),c=/^["](.*)["]$/g;o.style.display="none",o.href=a,o.download=decodeURI(s.replace(c,"$1")),document.body.appendChild(o),o.click(),document.body.removeChild(o),window.URL.revokeObjectURL(a)},getUsrePassword(){return w.getPasswordRules({}).then(i=>{if(i.success)return this.combinationRule=i.data.combinationrule.value,this.copyRule=i.data.copyrule.value,this.lengthRule=i.data.lengthrule.value,this.isSendEmail=i.data.issendemail.value,this.mathPasword(this.lengthRule,this.combinationRule)})},getRandomChar(i){return i?i[Math.floor(Math.random()*i.length)]:""},mathPasword(i,e){let t=(e.includes("AL"),"abcdefghijklmnopqrstuvwxyz"),r=(e.includes("AL"),"ABCDEFGHIJKLMNOPQRSTUVWXYZ"),n=(e.includes("NU"),"0123456789"),s=(e.includes("SC"),"!@#$%&*^"),o="",a=[];if(s&&(a.push(this.getRandomChar(s)),a.push(this.getRandomChar(s))),r&&(a.push(this.getRandomChar(r)),a.push(this.getRandomChar(r))),t&&(a.push(this.getRandomChar(t)),a.push(this.getRandomChar(t))),n&&(a.push(this.getRandomChar(n)),a.push(this.getRandomChar(n))),a.length===0)return console.error("\u6CA1\u6709\u53EF\u7528\u7684\u5B57\u7B26\u96C6\u6765\u751F\u6210\u5BC6\u7801\uFF0C\u8BF7\u68C0\u67E5 combinationRule \u53C2\u6570"),"";a=a.sort(()=>Math.random()-.5);let c=a.join("");for(;c.length<i;){const h=[s,r,t,n].filter(p=>p);if(h.length===0)break;const b=h[Math.floor(Math.random()*h.length)];c+=this.getRandomChar(b)}return o=c.substring(0,i),o},resetPwd(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91"));return}this.$confirm(this.$i18nt("gd.https.resetPwdContent","\u662F\u5426\u91CD\u7F6E\u5BC6\u7801?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.resetPwdOk","\u7ACB\u5373\u91CD\u7F6E"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,e,t)=>{this.resetPwdHand(i,e,t)}})},async resetPwdHand(i,e,t){const r=await this.getUsrePassword();let n=this;if(i!=="confirm"){t();return}e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1;let s,o={};n.isSendEmail==1&&n.copyRule==1?(o={id:n.selectedRows[0].id,newPassword:r},s=w.sysUserResetPwd):n.isSendEmail==1?(o={accountName:n.selectedRows[0].account,emailAddress:n.selectedRows[0].email,pcR_Type:5},s=w.applyResetPassword):n.copyRule==1&&(o={id:n.selectedRows[0].id,newPassword:r},s=w.sysUserResetPwd),s(o).then(a=>{if(n.isSendEmailed=n.isSendEmail,t(),a.success){let c={account:n.selectedRows[0].account,password:r,name:n.selectedRows[0].name,email:n.selectedRows[0].email,phone:n.selectedRows[0].phone};n.isSendEmail==1&&n.copyRule==0?n.$notify({duration:8e3,type:"success",title:this.$i18nt("gd.https.resetTipSucc","\u91CD\u7F6E\u6210\u529F"),dangerouslyUseHTMLString:!0,message:`<p>${this.$i18nt("gd.https.addTip","\u5DF2\u5411\u6B64\u7528\u6237\u7684\u90AE\u7BB1\u53D1\u9001\u4E86\u4E00\u5C01\u5305\u542B\u5BC6\u7801\u91CD\u7F6E\u94FE\u63A5\u7684\u90AE\u4EF6\u3002")}</p>
14
- <p>${this.$i18nt("gd.https.addTipp","\u5982\u679C\u7528\u6237\u6CA1\u6709\u6536\u5230\u90AE\u4EF6\uFF0C\u5C1D\u8BD5\u901A\u8FC7\u3010\u91CD\u7F6E\u5BC6\u7801\u3011\u53D1\u9001\u5BC6\u7801\u91CD\u7F6E\u8BF7\u6C42\u3002")}</p>`}):n.$message.success(n.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),n.copyRule==1?(n.infoData=c,setTimeout(()=>{n.$refs.copyInfo.open(n.isSendEmail)},500)):n.refresh()}else n.$message.error(n.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+a.message);e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},sending(){this.refresh()},doEvent(i){let e=i.item.functionName;this[e]&&this[e]()}},created(){this.getOrgTree()}};var W=function(){var e=this,t=e._self._c;return t("div",{staticClass:"gd-page-view",staticStyle:{display:"flex",background:"rgb(245, 245, 245)"}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"page-view-tree",style:e.styled},[t("el-tree",{ref:"tree",attrs:{data:e.orgTree,props:e.defaultProps,"node-key":"id","current-node-key":e.defaultExpandedKeys,"default-expand-all":"","highlight-current":"","expand-on-click-node":!1},on:{"node-click":e.handleNodeClick}})],1),t("div",{staticClass:"page-view-list"},[t("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"account",fn:function({column:r,row:n}){return[t("gd-tooltip",{attrs:{rowKey:"account",row:n,highlight:""},on:{click:e.editForm}})]}},{key:"gender",fn:function(r){return[t("div",{staticStyle:{cursor:"pointer"}},[t("el-tag",{style:e._f("dictColor")("gender",r.row.gender),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("gender",r.row.gender))+" ")])],1)]}},{key:"statecodes",fn:function(r){return[t("div",{staticStyle:{cursor:"pointer"},on:{click:function(n){return n.stopPropagation(),e.editStateCodes(r)}}},[r.row.statecodes==1?t("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):t("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"18px",color:"#999"}})])]}},{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operator"},[t("div",{staticClass:"gd-table-operatorl",staticStyle:{width:"270px"}},[t("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.user.keywordTip","\u8BF7\u8F93\u5165\u59D3\u540D\u3001\u8D26\u53F7\u3001\u624B\u673A\u53F7\u5173\u952E\u8BCD"),clearable:""},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.searchValue,callback:function(r){e.$set(e.queryParam,"searchValue",r)},expression:"queryParam.searchValue"}}),t("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[t("i",{staticClass:"el-input__icon el-icon-search"})])],1),t("div",{staticClass:"gd-table-operatorr"},[t("gd-btn-list",{attrs:{sysViewButtons:e.getTableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:r,visible:n}){return[t("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.height,queryParam:e.queryParam,colse:r,visible:n},on:{save:e.saveQueries}})]}}])})],1),t("UserRoleForm",{ref:"userRoleForm",on:{ok:e.handleOk}}),e.institutionsShow?t("EditInstitutions",{ref:"editInstitutions",on:{ok:e.handleOk,closed:function(r){e.institutionsShow=!1}}}):e._e(),t("copyInfo",{ref:"copyInfo",attrs:{infoData:e.infoData,isSendEmail:e.isSendEmailed},on:{sending:e.sending}}),t("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode,inline:!0,width:"1000px",needLoad:e.needLoad},on:{sbumit:e.sbumit}}),t("div",{staticStyle:{position:"fixed",left:"-20000px",top:"-2000px"}},[t("el-upload",{ref:"upload",attrs:{"http-request":e.handleFileUpload,"file-list":e.fileList,action:""}},[t("el-button",{ref:"uploadDemo",staticClass:"upload-demo",attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[e._v(" "+e._s(e.$i18nt("gd.user.selectFile","\u9009\u53D6\u6587\u4EF6"))+" ")])],1)],1)],1)},X=[],Z=T.normalizeComponent(J,W,X,!1,null,"d1d24d5d",null,null);const x=Z.exports;x.install=function(i){i.component(x.name,x)};exports.GDpackage=x;
12
+ <p>${this.$i18nt("gd.https.addTipp","\u5982\u679C\u7528\u6237\u6CA1\u6709\u6536\u5230\u90AE\u4EF6\uFF0C\u5C1D\u8BD5\u901A\u8FC7\u3010\u91CD\u7F6E\u5BC6\u7801\u3011\u53D1\u9001\u5BC6\u7801\u91CD\u7F6E\u8BF7\u6C42\u3002")}</p>`}),i.$emit("sending")):i.$message.error(i.$i18nt("gd.https.sendingErr","\u53D1\u9001\u5931\u8D25")+t.message)})}}};var G=function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!0,"append-to-body":!1,top:"80px"},on:{"update:visible":function(r){e.visible=r},closed:e.colseCancel}},[t("template",{slot:"title"},[t("div",{staticClass:"gd-dialog-head"},[t("div",{staticClass:"dialog-head-title"},[e._v(e._s(e.$i18nt("gd.user.basicInformation","\u57FA\u672C\u4FE1\u606F")))])])]),t("el-descriptions",{attrs:{title:"",column:1,size:"medium"}},[t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.user.account","\u8D26\u53F7")}},[e._v(e._s(e.infoData.account))]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.user.paw","\u5BC6\u7801")}},[e._v(e._s(e.infoData.password))]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.user.name","\u59D3\u540D")}},[e._v(e._s(e.infoData.name))]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.user.email","\u90AE\u7BB1")}},[e._v(e._s(e.infoData.email))]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.user.phone","\u624B\u673A")}},[e._v(e._s(e.infoData.phone))])],1),t("template",{slot:"footer"},[t("el-button",{staticClass:"copy-btn",staticStyle:{"margin-left":"8px"},attrs:{type:"primary","data-clipboard-action":"copy","data-clipboard-text":e.copyInfo,icon:"el-icon-document-copy"},on:{click:e.cmpleteUpgrade}},[e._v(" "+e._s(e.$i18nt("gd.btn.copy"))+" ")]),e.isSendEmail=="1"?t("el-button",{staticClass:"copy-btn",staticStyle:{"margin-left":"8px"},attrs:{type:"primary",loading:e.sending,icon:"el-icon-message"},on:{click:e.sendingEailm}},[e._v(" "+e._s(e.$i18nt("gd.email.sending"))+" ")]):e._e()],1)],2)},Q=[],V=T.normalizeComponent(z,G,Q,!1,null,"b6f77ddd",null,null);const Y=V.exports;const J={name:"GdUse",props:{height:{type:Number,default:100}},mixins:[K.tablesFilter,j],data(){return{transKey:"gd.btn.add",formLoading:!1,currentNode:null,loading:!0,orgTree:[],selectedRowKeys:[],selectedRows:[],queryParam:{},defaultProps:{children:"children",label:"title",value:"value"},defaultExpandedKeys:"",loadData:i=>w.getUserPage(Object.assign(i,this.getQueryParam)).then(e=>e.data),disableBtn:["\u542F\u7528","\u505C\u7528"],fileList:[],needLoad:!1,infoData:{},isSendEmail:"",isSendEmailed:"",institutionsShow:!1}},components:{UserRoleForm:D,EditInstitutions:q,copyInfo:Y},computed:{getQueryParam(){let i=new Map;for(let e in this.queryParam)i.set(e==="statecodes"?"searchctatus":e,this.queryParam[e]);return Object.fromEntries(i)},getFormColumns(){return this.formColumns.filter(e=>(e.prop==="orgid"&&(e.treeOptions=[...this.orgTree]),!0))},getTableButtons(){return this.tableButtons.filter(i=>(i.show=!this.disableBtn.includes(i.displayName),!0))},getHeight(){return this.height},styled(){return`height:${this.height+76}px`},...T.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{updateInstitutions(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.institutionsShow=!0,this.$nextTick(()=>{setTimeout(()=>{this.$refs.editInstitutions.open(this.selectedRows[0])},0)})},userRole(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.$refs.userRoleForm.open(this.selectedRows[0])},saveQueries(i){this.queryParam={...i},this.refresh()},handleFileUpload(i){const e=this.$message({message:this.$i18nt("gd.https.uploading","\u52A0\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"}),t=new FormData;t.append("file",i.file),w.sysUserImport(t).then(r=>{r.success?(this.$message.success(this.$i18nt("gd.https.uploadSucc","\u4E0A\u4F20\u6210\u529F")),this.refresh()):this.$message.error(this.$i18nt("gd.https.uploadFail","\u4E0A\u4F20\u5931\u8D25")+r.message),this.$nextTick(()=>{setTimeout(()=>{e.close()},200)})})},importUser(){this.fileList=[],document.querySelector(".upload-demo").click()},exportUser(){const i=this.$message({message:this.$i18nt("gd.https.exporting","\u6B63\u5728\u5BFC\u51FA\u4E2D..."),duration:0,iconClass:"el-icon-loading"});w.sysUserExport().then(e=>{this.downloadfile(e),this.$nextTick(()=>{setTimeout(()=>{i.close()},200)})}).catch(e=>{this.$nextTick(()=>{setTimeout(()=>{i.close()},200)})})},enable(){this.editStateCodes({row:this.selectedRows[0]})},deactivated(){this.editStateCodes({row:this.selectedRows[0]})},editStateCodes({column:i,row:e}){const t=e.statecodes!=1?this.$i18nt("gd.https.enableContent","\u662F\u5426\u505C\u7528\u9009\u4E2D\u6570\u636E?"):this.$i18nt("gd.https.deactivateContent","\u662F\u5426\u542F\u7528\u9009\u4E2D\u6570\u636E?"),r=e.statecodes!=1?this.$i18nt("gd.https.enableOk","\u786E\u8BA4\u505C\u7528"):this.$i18nt("gd.https.deactivateOk","\u786E\u8BA4\u542F\u7528");this.$confirm(t,this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:r,cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(n,s,o)=>{if(n!=="confirm"){o();return}s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,w.sysUserChangeStatus({id:e.id,stateCodes:e.statecodes==1?0:1}).then(a=>{o(),a.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+a.message),s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0})}})},refresh(){this.$refs.table.refresh()},editForm(i){this.transKey="gd.btn.edit",this.$refs.editForm.open(Object.assign({...i},{gender:String(i.gender),orgid:String(i.orgid),authtype:String(i.authtype)}))},getOrgTree(){C.getOrgTree({}).then(i=>{if(i.code===200){const e=t=>(t=t.filter((r,n)=>(r.value=String(r.value),r.children&&r.children.length>0&&(r.children=e(r.children)),!0)),t);this.orgTree=e(i.data)}this.loading=!1})},handleNodeClick(i){this.queryParam.orgId===i.id?(delete this.queryParam.orgId,this.$nextTick(()=>{setTimeout(()=>{this.$refs.tree.setCurrentKey(null)},0)})):this.queryParam=Object.assign({...this.queryParam},{orgId:i.id}),this.refresh()},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,e,t)=>{this.delHand(i,e,t)}})},delHand(i,e,t){if(i!=="confirm"){t();return}let r=[];this.selectedRows.forEach(n=>{let s=sysOrgDelete(n).then(o=>o);r.push(s)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(r).then(n=>{t();const s=n.filter(o=>!o.success);s.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+s[0].message),this.handleOk(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},add(){this.transKey="gd.btn.add",this.$refs.editForm.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},async sbumit({data:i,record:e,btn:t},r,n){this.formLoading=!0;let s=e?w.sysUserEdit:w.sysUserAdd;if(!e){let o=await this.getUsrePassword();Object.assign(i,{password:o,confirm:o})}s(i).then(o=>{this.isSendEmailed="",o.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),n(),this.handleOk(),this.infoData=i,this.sendEmail(e,i)):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+o.message),this.formLoading=!1})},sendEmail(i,e){i||(this.isSendEmail==1&&this.$notify({type:"success",title:this.$i18nt("gd.https.sendingSucc","\u53D1\u9001\u6210\u529F"),dangerouslyUseHTMLString:!0,message:`<p>${this.$i18nt("gd.https.addTip","\u5DF2\u5411\u6B64\u7528\u6237\u7684\u90AE\u7BB1\u53D1\u9001\u4E86\u4E00\u5C01\u5305\u542B\u5BC6\u7801\u91CD\u7F6E\u94FE\u63A5\u7684\u90AE\u4EF6\u3002")}</p>
13
+ <p>${this.$i18nt("gd.https.addTipp","\u5982\u679C\u7528\u6237\u6CA1\u6709\u6536\u5230\u90AE\u4EF6\uFF0C\u5C1D\u8BD5\u901A\u8FC7\u3010\u91CD\u7F6E\u5BC6\u7801\u3011\u53D1\u9001\u5BC6\u7801\u91CD\u7F6E\u8BF7\u6C42\u3002")}</p>`}),w.getConfigInfoByCode({code:"GDS_NewUser_DisplayAccount"}).then(t=>{t.code==200&&t.data.value=="1"&&setTimeout(()=>{this.$refs.copyInfo.open(this.copyRule)},1200)}))},handleOk(){this.getOrgTree(),this.$refs.table.refresh()},onSelectChange(i,e){if(this.selectedRowKeys=i,this.selectedRows=e,i.length===0){this.disableBtn=["\u542F\u7528","\u505C\u7528"];return}if(e.length>1){this.disableBtn=["\u542F\u7528","\u505C\u7528"];return}let t=[],r=e.filter(s=>s.statecodes==1),n=e.filter(s=>s.statecodes==0);r.length==e.length?t=["\u542F\u7528"]:n.length==e.length&&(t=["\u505C\u7528"]),this.disableBtn=t},downloadfile(i){var e=new Blob([i.data],{type:"application/octet-stream;charset=UTF-8"}),t=i.headers["content-disposition"];const s=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(t)[1].replace(/['"]/g,"");var o=document.createElement("a"),a=window.URL.createObjectURL(e),c=/^["](.*)["]$/g;o.style.display="none",o.href=a,o.download=decodeURI(s.replace(c,"$1")),document.body.appendChild(o),o.click(),document.body.removeChild(o),window.URL.revokeObjectURL(a)},getUsrePassword(){return w.getPasswordRules({}).then(i=>{if(i.success)return this.combinationRule=i.data.combinationrule.value,this.copyRule=i.data.copyrule.value,this.lengthRule=i.data.lengthrule.value,this.isSendEmail=i.data.issendemail.value,this.mathPasword(this.lengthRule,this.combinationRule)})},getRandomChar(i){return i?i[Math.floor(Math.random()*i.length)]:""},mathPasword(i,e){let t=(e.includes("AL"),"abcdefghijklmnopqrstuvwxyz"),r=(e.includes("AL"),"ABCDEFGHIJKLMNOPQRSTUVWXYZ"),n=(e.includes("NU"),"0123456789"),s=(e.includes("SC"),"!@#$%&*^"),o="",a=[];if(s&&(a.push(this.getRandomChar(s)),a.push(this.getRandomChar(s))),r&&(a.push(this.getRandomChar(r)),a.push(this.getRandomChar(r))),t&&(a.push(this.getRandomChar(t)),a.push(this.getRandomChar(t))),n&&(a.push(this.getRandomChar(n)),a.push(this.getRandomChar(n))),a.length===0)return console.error("\u6CA1\u6709\u53EF\u7528\u7684\u5B57\u7B26\u96C6\u6765\u751F\u6210\u5BC6\u7801\uFF0C\u8BF7\u68C0\u67E5 combinationRule \u53C2\u6570"),"";a=a.sort(()=>Math.random()-.5);let c=a.join("");for(;c.length<i;){const h=[s,r,t,n].filter(p=>p);if(h.length===0)break;const b=h[Math.floor(Math.random()*h.length)];c+=this.getRandomChar(b)}return o=c.substring(0,i),o},resetPwd(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91"));return}this.$confirm(this.$i18nt("gd.https.resetPwdContent","\u662F\u5426\u91CD\u7F6E\u5BC6\u7801?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.resetPwdOk","\u7ACB\u5373\u91CD\u7F6E"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,e,t)=>{this.resetPwdHand(i,e,t)}})},async resetPwdHand(i,e,t){const r=await this.getUsrePassword();let n=this;if(i!=="confirm"){t();return}e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1;let s,o={};if(n.isSendEmail==1&&n.copyRule==1)o={id:n.selectedRows[0].id,newPassword:r},s=w.sysUserResetPwd;else if(n.isSendEmail==1)o={accountName:n.selectedRows[0].account,emailAddress:n.selectedRows[0].email,pcR_Type:5},s=w.applyResetPassword;else if(n.copyRule==1)o={id:n.selectedRows[0].id,newPassword:r},s=w.sysUserResetPwd;else{this.$message.error(this.$i18nt("gd.https.resetFailure","\u91CD\u7F6E\u6210\u529F")),t();return}s(o).then(a=>{if(n.isSendEmailed=n.isSendEmail,t(),a.success){let c={account:n.selectedRows[0].account,password:r,name:n.selectedRows[0].name,email:n.selectedRows[0].email,phone:n.selectedRows[0].phone};n.isSendEmail==1&&n.copyRule==0?n.$notify({duration:8e3,type:"success",title:this.$i18nt("gd.https.resetTipSucc","\u91CD\u7F6E\u6210\u529F"),dangerouslyUseHTMLString:!0,message:`<p>${this.$i18nt("gd.https.addTip","\u5DF2\u5411\u6B64\u7528\u6237\u7684\u90AE\u7BB1\u53D1\u9001\u4E86\u4E00\u5C01\u5305\u542B\u5BC6\u7801\u91CD\u7F6E\u94FE\u63A5\u7684\u90AE\u4EF6\u3002")}</p>
14
+ <p>${this.$i18nt("gd.https.addTipp","\u5982\u679C\u7528\u6237\u6CA1\u6709\u6536\u5230\u90AE\u4EF6\uFF0C\u5C1D\u8BD5\u901A\u8FC7\u3010\u91CD\u7F6E\u5BC6\u7801\u3011\u53D1\u9001\u5BC6\u7801\u91CD\u7F6E\u8BF7\u6C42\u3002")}</p>`}):n.$message.success(n.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),n.copyRule==1?(n.infoData=c,setTimeout(()=>{n.$refs.copyInfo.open(n.isSendEmail)},500)):n.refresh()}else n.$message.error(n.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+a.message);e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},sending(){this.refresh()},doEvent(i){let e=i.item.functionName;this[e]&&this[e]()}},created(){this.getOrgTree()}};var W=function(){var e=this,t=e._self._c;return t("div",{staticClass:"gd-page-view",staticStyle:{display:"flex",background:"rgb(245, 245, 245)"}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"page-view-tree",style:e.styled},[t("el-tree",{ref:"tree",attrs:{data:e.orgTree,props:e.defaultProps,"node-key":"id","current-node-key":e.defaultExpandedKeys,"default-expand-all":"","highlight-current":"","expand-on-click-node":!1},on:{"node-click":e.handleNodeClick}})],1),t("div",{staticClass:"page-view-list"},[t("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"account",fn:function({column:r,row:n}){return[t("gd-tooltip",{attrs:{rowKey:"account",row:n,highlight:""},on:{click:e.editForm}})]}},{key:"gender",fn:function(r){return[t("div",{staticStyle:{cursor:"pointer"}},[t("el-tag",{style:e._f("dictColor")("gender",r.row.gender),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("gender",r.row.gender))+" ")])],1)]}},{key:"statecodes",fn:function(r){return[t("div",{staticStyle:{cursor:"pointer"},on:{click:function(n){return n.stopPropagation(),e.editStateCodes(r)}}},[r.row.statecodes==1?t("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):t("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"18px",color:"#999"}})])]}},{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operator"},[t("div",{staticClass:"gd-table-operatorl",staticStyle:{width:"270px"}},[t("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.user.keywordTip","\u8BF7\u8F93\u5165\u59D3\u540D\u3001\u8D26\u53F7\u3001\u624B\u673A\u53F7\u5173\u952E\u8BCD"),clearable:""},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.searchValue,callback:function(r){e.$set(e.queryParam,"searchValue",r)},expression:"queryParam.searchValue"}}),t("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[t("i",{staticClass:"el-input__icon el-icon-search"})])],1),t("div",{staticClass:"gd-table-operatorr"},[t("gd-btn-list",{attrs:{sysViewButtons:e.getTableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:r,visible:n}){return[t("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.height,queryParam:e.queryParam,colse:r,visible:n},on:{save:e.saveQueries}})]}}])})],1),t("UserRoleForm",{ref:"userRoleForm",on:{ok:e.handleOk}}),e.institutionsShow?t("EditInstitutions",{ref:"editInstitutions",on:{ok:e.handleOk,closed:function(r){e.institutionsShow=!1}}}):e._e(),t("copyInfo",{ref:"copyInfo",attrs:{infoData:e.infoData,isSendEmail:e.isSendEmailed},on:{sending:e.sending}}),t("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode,inline:!0,width:"1000px",needLoad:e.needLoad},on:{sbumit:e.sbumit}}),t("div",{staticStyle:{position:"fixed",left:"-20000px",top:"-2000px"}},[t("el-upload",{ref:"upload",attrs:{"http-request":e.handleFileUpload,"file-list":e.fileList,action:""}},[t("el-button",{ref:"uploadDemo",staticClass:"upload-demo",attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[e._v(" "+e._s(e.$i18nt("gd.user.selectFile","\u9009\u53D6\u6587\u4EF6"))+" ")])],1)],1)],1)},X=[],Z=T.normalizeComponent(J,W,X,!1,null,"0c9b0d8b",null,null);const S=Z.exports;S.install=function(i){i.component(S.name,S)};exports.GDpackage=S;
@@ -1,8 +1,8 @@
1
- import { g as C } from "./system.org.fcf96d1e.mjs";
2
- import { f as O, a as N, h as P, c as B, i as D, j as E, k as U, l as I, m as A, n as M, e as q, o as H, q as j, r as z, t as S } from "./system.account.9bc40d08.mjs";
3
- import { m as R, n as T } from "./chartbi.cdd1e365.mjs";
4
- import { t as G } from "./messages.d8abe18d.mjs";
5
- import { G as Q } from "./system.role.68de93ef.mjs";
1
+ import { a as C } from "./system.notice.b4247147.mjs";
2
+ import { h as O, a as N, i as P, c as B, j as D, k as E, g as U, l as I, m as A, n as M, f as q, o as H, q as j, r as z, t as x } from "./system.account.868f96f9.mjs";
3
+ import { m as R, n as T } from "./chartbi.c3bc6adb.mjs";
4
+ import { t as G } from "./messages.bc3bc0e8.mjs";
5
+ import { G as Q } from "./system.role.0323ddd5.mjs";
6
6
  const V = {
7
7
  data() {
8
8
  return {
@@ -384,6 +384,25 @@ const ie = se.exports, ne = {
384
384
  placeholder: "\u8BF7\u8F93\u5165",
385
385
  placeholderTransKey: "gd.placeholder.input",
386
386
  rules: []
387
+ }, {
388
+ transKey: "gd.user.verificationMethod",
389
+ prop: "authtype",
390
+ effectType: "select",
391
+ label: "\u9A8C\u8BC1\u65B9\u5F0F",
392
+ placeholder: "\u8BF7\u9009\u62E9",
393
+ dictTypeCode: "user_auth_type",
394
+ placeholderTransKey: "gd.placeholder.select",
395
+ treeOptions: [],
396
+ rules: []
397
+ }, {
398
+ transKey: "gd.user.employeeID",
399
+ prop: "employeeid",
400
+ effectType: "input",
401
+ label: "\u5DE5\u53F7",
402
+ placeholder: "\u8BF7\u9009\u62E9",
403
+ placeholderTransKey: "gd.placeholder.input",
404
+ treeOptions: [],
405
+ rules: []
387
406
  }],
388
407
  tableButtons: [
389
408
  {
@@ -471,7 +490,7 @@ const ie = se.exports, ne = {
471
490
  }],
472
491
  tableQueries: [{
473
492
  transKey: "gd.user.status",
474
- prop: "stateCodes",
493
+ prop: "searchStatus",
475
494
  label: "\u72B6\u6001",
476
495
  effectType: "checkbox",
477
496
  dictTypeCode: "state_code",
@@ -1161,7 +1180,8 @@ const ue = {
1161
1180
  },
1162
1181
  {
1163
1182
  gender: String(i.gender),
1164
- orgid: String(i.orgid)
1183
+ orgid: String(i.orgid),
1184
+ authtype: String(i.authtype)
1165
1185
  }
1166
1186
  )
1167
1187
  );
@@ -1349,17 +1369,27 @@ const ue = {
1349
1369
  }
1350
1370
  e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1;
1351
1371
  let s, o = {};
1352
- n.isSendEmail == 1 && n.copyRule == 1 ? (o = {
1353
- id: n.selectedRows[0].id,
1354
- newPassword: r
1355
- }, s = S) : n.isSendEmail == 1 ? (o = {
1356
- accountName: n.selectedRows[0].account,
1357
- emailAddress: n.selectedRows[0].email,
1358
- pcR_Type: 5
1359
- }, s = E) : n.copyRule == 1 && (o = {
1360
- id: n.selectedRows[0].id,
1361
- newPassword: r
1362
- }, s = S), s(o).then((a) => {
1372
+ if (n.isSendEmail == 1 && n.copyRule == 1)
1373
+ o = {
1374
+ id: n.selectedRows[0].id,
1375
+ newPassword: r
1376
+ }, s = x;
1377
+ else if (n.isSendEmail == 1)
1378
+ o = {
1379
+ accountName: n.selectedRows[0].account,
1380
+ emailAddress: n.selectedRows[0].email,
1381
+ pcR_Type: 5
1382
+ }, s = E;
1383
+ else if (n.copyRule == 1)
1384
+ o = {
1385
+ id: n.selectedRows[0].id,
1386
+ newPassword: r
1387
+ }, s = x;
1388
+ else {
1389
+ this.$message.error(this.$i18nt("gd.https.resetFailure", "\u91CD\u7F6E\u6210\u529F")), t();
1390
+ return;
1391
+ }
1392
+ s(o).then((a) => {
1363
1393
  if (n.isSendEmailed = n.isSendEmail, t(), a.success) {
1364
1394
  let c = {
1365
1395
  account: n.selectedRows[0].account,
@@ -1422,14 +1452,14 @@ var he = function() {
1422
1452
  fe,
1423
1453
  !1,
1424
1454
  null,
1425
- "d1d24d5d",
1455
+ "0c9b0d8b",
1426
1456
  null,
1427
1457
  null
1428
1458
  );
1429
- const x = ge.exports;
1430
- x.install = function(i) {
1431
- i.component(x.name, x);
1459
+ const S = ge.exports;
1460
+ S.install = function(i) {
1461
+ i.component(S.name, S);
1432
1462
  };
1433
1463
  export {
1434
- x as G
1464
+ S as G
1435
1465
  };