gds-plus-design-vue 1.2.2 → 1.2.3

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 (76) hide show
  1. package/lib/gd-initial.js +17 -15
  2. package/lib/gd-initial.mjs +13935 -9453
  3. package/lib/{main.86fe06d4.mjs → main.05252737.mjs} +2 -2
  4. package/lib/{main.d091d06d.js → main.458dc0a0.js} +1 -1
  5. package/lib/{main.2415a49a.js → main.4aebe1c9.js} +1 -1
  6. package/lib/main.9801708f.js +1 -0
  7. package/lib/{main.b2d0a309.mjs → main.a30b25d6.mjs} +11 -11
  8. package/lib/{main.2cddfbbd.mjs → main.eb4b260e.mjs} +2 -2
  9. package/lib/{messages.2fff74f3.js → messages.30e41348.js} +5 -5
  10. package/lib/{messages.d8abe18d.mjs → messages.a1335b0f.mjs} +165 -150
  11. package/lib/style.css +2 -2
  12. package/lib/{system.account.8ea53681.js → system.account.1ff630c9.js} +1 -1
  13. package/lib/{system.account.9bc40d08.mjs → system.account.20f9e450.mjs} +9 -9
  14. package/lib/{system.config.c6e30213.js → system.config.532ab3b8.js} +1 -1
  15. package/lib/{system.config.8223d495.mjs → system.config.c85c05e9.mjs} +1 -1
  16. package/lib/{system.datasource.fd6a4e76.js → system.datasource.272f1add.js} +1 -1
  17. package/lib/{system.datasource.57233650.mjs → system.datasource.f64a59de.mjs} +1 -1
  18. package/lib/{system.dict.8f95218b.mjs → system.dict.565d69ca.mjs} +3 -3
  19. package/lib/{system.dict.a24f33b0.js → system.dict.a23e8cdf.js} +1 -1
  20. package/lib/{system.duplicatechecking.6b706948.mjs → system.duplicatechecking.268544dd.mjs} +1 -1
  21. package/lib/{system.duplicatechecking.39293985.js → system.duplicatechecking.f66790d1.js} +1 -1
  22. package/lib/{system.email.a2d9a307.js → system.email.00a93855.js} +1 -1
  23. package/lib/{system.email.dae988be.mjs → system.email.ada25702.mjs} +1 -1
  24. package/lib/{system.fieldsecurity.02627a7a.mjs → system.fieldsecurity.d14384cc.mjs} +126 -78
  25. package/lib/system.fieldsecurity.ede73621.js +1 -0
  26. package/lib/{system.file.0fa095a9.mjs → system.file.a23b3c83.mjs} +3 -3
  27. package/lib/system.file.aa567566.js +1 -0
  28. package/lib/{system.log.acb64505.mjs → system.log.8a9f4a4d.mjs} +1 -1
  29. package/lib/{system.log.c07ae5db.js → system.log.b3666991.js} +1 -1
  30. package/lib/system.notice.5fb1485e.js +1 -0
  31. package/lib/system.notice.6d0aa32c.mjs +1674 -0
  32. package/lib/{system.noticereceived.1aa70b65.mjs → system.noticereceived.70963f1b.mjs} +32 -24
  33. package/lib/system.noticereceived.e5ef5883.js +1 -0
  34. package/lib/{system.onlineuser.1c428d05.js → system.onlineuser.99e4de37.js} +1 -1
  35. package/lib/{system.onlineuser.3d848a32.mjs → system.onlineuser.c58fb6ce.mjs} +1 -1
  36. package/lib/system.org.56151be8.js +1 -0
  37. package/lib/{system.org.fcf96d1e.mjs → system.org.638db6d1.mjs} +17 -68
  38. package/lib/{system.permissions.23f5b097.mjs → system.permissions.aa0cc0d6.mjs} +2 -2
  39. package/lib/{system.permissions.a1a9505c.js → system.permissions.fcd56f67.js} +1 -1
  40. package/lib/{system.plugin.b6de4673.js → system.plugin.b17efa53.js} +1 -1
  41. package/lib/{system.plugin.e37f9dbc.mjs → system.plugin.beb44900.mjs} +1 -1
  42. package/lib/{system.pos.1a01fc97.mjs → system.pos.699e8dd6.mjs} +1 -1
  43. package/lib/{system.pos.a4fb19b0.js → system.pos.e8d9c488.js} +1 -1
  44. package/lib/{system.promptmanagement.290958b1.js → system.promptmanagement.109a07f5.js} +1 -1
  45. package/lib/{system.promptmanagement.36a65c51.mjs → system.promptmanagement.2ce3e426.mjs} +1 -1
  46. package/lib/{system.role.68de93ef.mjs → system.role.230b1445.mjs} +845 -354
  47. package/lib/system.role.f0d4082c.js +1 -0
  48. package/lib/{system.sumberrules.dd6299e8.js → system.sumberrules.38017ad1.js} +1 -1
  49. package/lib/{system.sumberrules.cdef9308.mjs → system.sumberrules.fa1aab86.mjs} +1 -1
  50. package/lib/{system.team.53d64006.js → system.team.3826e252.js} +1 -1
  51. package/lib/{system.team.ee652fe4.mjs → system.team.aeaede22.mjs} +1 -1
  52. package/lib/{system.teammembers.4a3dc336.js → system.teammembers.29128f16.js} +1 -1
  53. package/lib/{system.teammembers.26a2ba81.mjs → system.teammembers.2e3309c3.mjs} +2 -2
  54. package/lib/{system.timers.4efa8a7d.mjs → system.timers.0ec63785.mjs} +1 -1
  55. package/lib/{system.timers.b9424204.js → system.timers.b62568ad.js} +1 -1
  56. package/lib/{system.translation.21d2fd8b.js → system.translation.887fa90d.js} +1 -1
  57. package/lib/{system.translation.0a9399b4.mjs → system.translation.e71455aa.mjs} +2 -2
  58. package/lib/{system.user.4fcfdf99.mjs → system.user.84227a85.mjs} +4 -4
  59. package/lib/{system.user.d48a08db.js → system.user.bed5f82a.js} +1 -1
  60. package/lib/{system.useraffiliation.a59ce45b.js → system.useraffiliation.7ec0fcae.js} +1 -1
  61. package/lib/{system.useraffiliation.fb002239.mjs → system.useraffiliation.b3f03a33.mjs} +2 -2
  62. package/lib/{system.webresource.4df01c92.mjs → system.webresource.e6cb9173.mjs} +2 -2
  63. package/lib/{system.webresource.3366cc29.js → system.webresource.f8b78dd0.js} +1 -1
  64. package/locale/en_US.js +68 -18
  65. package/locale/id_ID.js +67 -17
  66. package/locale/vi_VN.js +67 -17
  67. package/locale/zh_CN.js +67 -17
  68. package/package.json +1 -1
  69. package/lib/main.4c447fc3.js +0 -1
  70. package/lib/system.fieldsecurity.a0cec24d.js +0 -1
  71. package/lib/system.file.d695ab37.js +0 -1
  72. package/lib/system.notice.5ae50bd4.mjs +0 -641
  73. package/lib/system.notice.f18578ae.js +0 -1
  74. package/lib/system.noticereceived.bfa98a9b.js +0 -1
  75. package/lib/system.org.5bb36f9c.js +0 -1
  76. package/lib/system.role.88100f66.js +0 -1
@@ -1,4 +1,4 @@
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.5fb1485e.js"),w=require("./system.account.1ff630c9.js"),T=require("./chartbi.06e48153.js"),K=require("./messages.30e41348.js"),F=require("./system.role.f0d4082c.js");const O={data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"90%",selectedRowKeys:[],allRowData:[]}},components:{RoleForm:F.GDpackage},computed:{height(){return this.screenHeight-(this.fullscreen?160:340)},...T.mapGetters(["screenHeight"])},methods:{handleSubmit(){this.confirmLoading=!0;let i=[];i=this.allRowData.filter(t=>!this.selectedRowKeys.some(r=>r===t.id));const e=i.map(t=>t.id);w.sysUserChangeRole({id:this.record.id,addRoleIdList:this.selectedRowKeys,removeRoleIdList:e}).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.closed(),this.$emit("ok")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+t.message),this.confirmLoading=!1})},open(i){this.confirmLoading=!0,this.record=i,this.visible=!0,w.sysUserOwnRole({id:i.id}).then(e=>{e.code===200&&(this.selectedRowKeys=e.data),this.$nextTick(()=>{setTimeout(()=>{this.$refs.roleForm.refresh()},0)}),this.confirmLoading=!1})},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},onSelectChange(i,e,t){this.selectedRowKeys=i,this.allRowData=t.rows},doEvent(i){const e=i.item.functionName;this[e]&&this[e]()}}};var N=function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!0,"append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(r){e.visible=r},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.btn.authorizationRole","\u6388\u6743\u89D2\u8272"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?t("RoleForm",{ref:"roleForm",attrs:{height:e.height,openMode:"components",openSelecteKeys:e.selectedRowKeys},on:{onSelectChange:e.onSelectChange}}):e._e()],1)],2)},P=[],B=T.normalizeComponent(O,N,P,!1,null,"117b9c7a",null,null);const D=B.exports;const U={data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},showForm:!1,visible:!1,confirmLoading:!1,fullscreen:!1,width:"600px",orgTree:[],ruleFormData:{orgIded:"",orgId:""},rules:{orgId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]}}},methods:{save(){let i=this;this.$confirm(this.$i18nt("gd.https.orgOldNameTip","\u7528\u6237\u6240\u5C5E\u5386\u53F2\u6570\u636E\u673A\u6784\u4F1A\u66F4\u65B0,\u662F\u5426\u786E\u8BA4\u4FEE\u6539\u7528\u6237\u6240\u5C5E\u673A\u6784?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.saveOk","\u786E\u8BA4\u4FDD\u5B58"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(e,t,r)=>{if(e!=="confirm"){r();return}r(),w.changeUserBUJob({userId:i.record.id,newBusiUnitId:this.ruleFormData.orgId}).then(n=>{n.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.closed(),this.$emit("ok")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+n.message),this.confirmLoading=!1})}})},handleSubmit(){this.confirmLoading=!0,this.$refs.ruleForm.validate(i=>{i?(this.confirmLoading=!1,this.save()):this.confirmLoading=!1})},open(i){this.confirmLoading=!0,this.record=i,this.visible=!0,this.showForm=!1,C.getOrgTree().then(e=>{const t=r=>(r=r.filter((n,s)=>(n.id===i.orgid&&(n.disabled=!0),n.children&&(n.children=t(n.children)),!0)),r);this.orgTree=t(e.data),this.ruleFormData={orgIded:i.orgid,orgId:""},this.showForm=!0,this.confirmLoading=!1,this.$nextTick(()=>{setTimeout(()=>{this.$refs.ruleForm.clearValidate()},0)})})},closed(){this.fullscreen=!1,this.visible=!1,this.$emit("closed")},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(i){const e=i.item.functionName;this[e]&&this[e]()}}};var I=function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!0,"append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(r){e.visible=r},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.btn.updateInstitutions","\u66F4\u65B0\u673A\u6784"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"130px"}},[e.showForm?t("el-form",{ref:"ruleForm",attrs:{"label-width":"110px","label-position":"top",model:e.ruleFormData,size:"mini",rules:e.rules},nativeOn:{submit:function(r){r.preventDefault()}}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.user.orgOldName","\u539F\u673A\u6784\u540D\u79F0"),prop:"orgIded"}},[t("gd-select-tree",{attrs:{filterable:!0,"tree-options":e.orgTree,"default-value":e.ruleFormData.orgIded,placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:!0},model:{value:e.ruleFormData.orgIded,callback:function(r){e.$set(e.ruleFormData,"orgIded",r)},expression:"ruleFormData.orgIded"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.user.organization","\u6240\u5C5E\u673A\u6784"),prop:"orgId"}},[t("gd-select-tree",{attrs:{filterable:!0,"tree-options":e.orgTree,placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.ruleFormData.orgId,callback:function(r){e.$set(e.ruleFormData,"orgId",r)},expression:"ruleFormData.orgId"}})],1)],1):e._e()],1)],2)},A=[],M=T.normalizeComponent(U,I,A,!1,null,"12675dc5",null,null);const q=M.exports,j={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.account",prop:"account",label:"\u8D26\u53F7",width:"220",type:"slot",slotType:"account",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.user.name",prop:"name",label:"\u59D3\u540D",width:"160",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.sex",prop:"gender",width:"120",label:"\u6027\u522B",type:"slot",slotType:"gender",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.displayName",prop:"orgname",label:"\u673A\u6784\u540D\u79F0",width:"180",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.phone",prop:"phone",width:"160",label:"\u624B\u673A",align:"left"},{transKey:"gd.user.status",prop:"statecodes",label:"\u72B6\u6001",width:"120",type:"slot",slotType:"statecodes",align:"center",dictTypeCode:"state_code",renderHeader:(i,...e)=>this.renderHeader(i,...e,{effectType:"checkbox",dictTypeCode:"state_code"})}],formColumns:[{transKey:"gd.user.account",effectType:"input",prop:"account",label:"\u8D26\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change",min:2}]},{transKey:"gd.user.name",prop:"name",effectType:"input",label:"\u59D3\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.sex",prop:"gender",effectType:"radio",label:"\u6027\u522B",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",dictTypeCode:"gender",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.birthday",prop:"birthday",effectType:"date",label:"\u751F\u65E5",placeholder:"\u8BF7\u8F93\u5165",valueFormat:"yyyy-MM-dd",placeholderTransKey:"gd.placeholder.select",rules:[]},{transKey:"gd.user.phone",effectType:"input",prop:"phone",label:"\u624B\u673A\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.email",effectType:"input",prop:"email",label:"\u90AE\u7BB1",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"},{type:"email",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u53F7!",transKey:"gd.account.emailTip"}]},{transKey:"gd.user.nickname",prop:"nickname",effectType:"input",label:"\u6635\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.user.tel",prop:"tel",effectType:"input",label:"\u7535\u8BDD",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.org.displayName",prop:"orgid",effectType:"selectTree",label:"\u6240\u5C5E\u673A\u6784",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",treeOptions:[],rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.user.PSDNeverExpire",prop:"psdneverexpire",effectType:"switch",label:"\u5BC6\u7801\u6C38\u4E0D\u8FC7\u671F",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysUser:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysUser:edit"},{displayName:"\u66F4\u65B0\u673A\u6784",functionName:"updateInstitutions",show:!0,transKey:"gd.btn.updateInstitutions",icon:"el-icon-edit",name:"sysUser:updateInstitutions"},{displayName:"\u6388\u6743\u89D2\u8272",functionName:"userRole",show:!0,transKey:"gd.btn.authorizationRole",icon:"el-icon-edit",name:"sysUser:grantRole"},{displayName:"\u91CD\u7F6E\u5BC6\u7801",functionName:"resetPwd",show:!0,transKey:"gd.btn.resetPassword",icon:"el-icon-edit",btnType:"danger",name:"sysUser:resetPwd"},{displayName:"\u542F\u7528",functionName:"enable",show:!1,transKey:"gd.btn.enable",icon:"el-icon-video-play",name:"sysUser:changeStatus"},{displayName:"\u505C\u7528",functionName:"deactivated",show:!1,btnType:"danger",icon:"el-icon-discover",transKey:"gd.btn.deactivate",name:"sysUser:changeStatus"},{displayName:"\u5BFC\u5165",functionName:"importUser",show:!0,icon:"gd-icon-daoru1",transKey:"gd.btn.import",name:"sysUser:import"},{displayName:"\u5BFC\u51FA",functionName:"exportUser",show:!0,icon:"gd-icon-daoru",transKey:"gd.btn.export",name:"sysUser:export"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.user.status",prop:"stateCodes",label:"\u72B6\u6001",effectType:"checkbox",dictTypeCode:"state_code",selectType:"checkbox",rules:[]}]}}};var E={exports:{}};/*!
2
2
  * clipboard.js v2.0.4
3
3
  * https://zenorocha.github.io/clipboard.js
4
4
  *
@@ -1 +1 @@
1
- "use strict";const l=require("./system.duplicatechecking.39293985.js"),o=require("./chartbi.06e48153.js"),u=require("./messages.2fff74f3.js"),h={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.form.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0}],formColumns:[{transKey:"gd.form.roleName",effectType:"input",prop:"name",label:"\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.ownershipValue.ownershipValue",prop:"affiliationValue",effectType:"input",label:"\u6240\u5C5E\u503C",placeholder:"\u8BF7\u8F93\u5165",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysAffiliation:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysAffiliation:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysAffiliation:delete"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.form.name",prop:"name",label:"\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.ownershipValue.ownershipValue",prop:"affiliationValue",label:"\u6240\u5C5E\u503C",effectType:"input",rules:[]}]}}};const f={name:"GdUserRole",props:{height:{type:Number,default:100},openSelecteKeys:{type:Array,default:()=>[]},useraffiliationname:{type:String,default:""},openMode:{type:String,default:"page"}},mixins:[u.tablesFilter],data(){return{transKey:"gd.btn.add",formLoading:!1,currentNode:null,loading:!0,orgTree:[],selectedRowKeys:[],selectedRows:[],queryParam:{},defaultProps:{children:"children",label:"title",value:"value"},defaultExpandedKeys:"",loadData:t=>(this.queryParam={userAffiliationId:this.openSelecteKeys[0]},l.getbyUserAffiliationId(this.queryParam).then(e=>(e.data.length>0&&this.getRowId(e.data),console.log(this.disabledRowId),e.data.forEach(s=>{s.useraffiliationname=this.useraffiliationname}),{pageno:1,pagesize:1e3,rows:e.data}))),disableBtn:[],fileList:[],needLoad:!1,infoData:{},isSendEmail:"",isSendEmailed:"",tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.userAffiliation.name",prop:"username",label:"\u7528\u6237(\u59D3\u540D)",align:"left",type:"slot",slotType:"username",showOverflowTooltip:!0},{transKey:"gd.userAffiliation.userOwnershipName",prop:"useraffiliationname",label:"\u7528\u6237\u6240\u5C5E\u540D\u79F0",align:"left",showOverflowTooltip:!0}],formColumnsuser:[{transKey:"gd.user.account",effectType:"input",prop:"account",label:"\u8D26\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change",min:2}]},{transKey:"gd.user.name",prop:"name",effectType:"input",label:"\u59D3\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.sex",prop:"gender",effectType:"radio",label:"\u6027\u522B",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",dictTypeCode:"gender",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.birthday",prop:"birthday",effectType:"date",label:"\u751F\u65E5",placeholder:"\u8BF7\u8F93\u5165",valueFormat:"yyyy-MM-dd",placeholderTransKey:"gd.placeholder.select",rules:[]},{transKey:"gd.user.phone",effectType:"input",prop:"phone",label:"\u624B\u673A\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.email",effectType:"input",prop:"email",label:"\u90AE\u7BB1",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"},{type:"email",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u53F7!",transKey:"gd.account.emailTip"}]},{transKey:"gd.user.nickname",prop:"nickname",effectType:"input",label:"\u6635\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.user.tel",prop:"tel",effectType:"input",label:"\u7535\u8BDD",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.org.displayName",prop:"orgid",effectType:"selectTree",label:"\u6240\u5C5E\u673A\u6784",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",treeOptions:[],rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.user.PSDNeverExpire",prop:"psdneverexpire",effectType:"switch",label:"\u5BC6\u7801\u6C38\u4E0D\u8FC7\u671F",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysRole:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysRole:delete"}],disabledRowId:[],sysCodeGenName:"sys_user"}},components:{},computed:{initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},getQueryParam(){let t=new Map;for(let e in this.queryParam)t.set(e==="statecodes"?"searchctatus":e,this.queryParam[e]);return Object.fromEntries(t)},getFormColumns(){return this.formColumnsuser.filter(e=>(e.prop==="orgid"&&(e.treeOptions=[...this.orgTree]),!0))},getTableButtons(){return this.tableButtons.filter(t=>(t.show=!this.disableBtn.includes(t.displayName),!0))},getHeight(){return this.height},styled(){return`height:${this.height+76}px`},...o.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{getRowId(t){let e=[];t.filter(s=>!this.disabledRowId.includes(s.userid)).forEach(s=>{e.push(s.userid)}),this.disabledRowId=this.disabledRowId.concat(e)},saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},handleOk(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},lookupSeled(t){if(t.fkData.length===0){this.$refs.engineSearch.closed();return}this.$refs.engineSearch.confirmLoading=!0,l.sysUserAffiliationAddRelation({userAffiliationId:this.openSelecteKeys[0],userIdList:t.data}).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$refs.engineSearch.closed(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+e.message),this.$refs.engineSearch.confirmLoading=!1})},add(){this.$refs.engineSearch.open({fkEntityName:this.sysCodeGenName,val:[],effectType:"participants",isRelevance:!0})},del(){let t=this;if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(e,s,i)=>{if(e!=="confirm"){i();return}s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,l.sysUserAffiliationDeleteRelation({userAffiliationId:t.openSelecteKeys[0],userIdList:JSON.parse(JSON.stringify(t.selectedRows)).map(a=>a.userid)}).then(a=>{a.success?(t.$message.success(t.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),t.disabledRowId=t.disabledRowId.filter(n=>!t.selectedRows.filter(d=>d.userid===n)[0]),s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0,i(),t.refresh()):t.$message.error(t.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+a.message)})}})}},created(){}};var p=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view",staticStyle:{display:"flex",background:"rgb(245, 245, 245)"}},[s("div",{staticClass:"page-view-list"},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,showPagination:!1,selectedRowKeys:e.selectedRowKeys,height:e.height,initialLoading:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"username",fn:function({column:i,row:a}){return[s("span",{staticStyle:{cursor:"pointer"}},[e._v(" "+e._s(a.username)+" ")])]}}])}),s("gd-search",{ref:"engineSearch",attrs:{appendToBody:!0,disabledRowId:e.disabledRowId},on:{lookupSeled:e.lookupSeled}})],1)])},g=[],m=o.normalizeComponent(f,p,g,!1,null,"65ef2965",null,null);const y=m.exports;const b={data(){return{buttons:[],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"90%",selectedRowKeys:[]}},components:{UserRelation:y},computed:{height(){return this.screenHeight-(this.fullscreen?160:340)},...o.mapGetters(["screenHeight"])},methods:{handleSubmit(){this.closed()},open(t){this.record=t,this.visible=!0,this.selectedRowKeys=[t.id],this.useraffiliationname=t.affiliationvalue,this.$nextTick(()=>{setTimeout(()=>{this.$refs.userForm.refresh()},0)})},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},onSelectChange(t){this.selectedRowKeys=t},doEvent(t){const e=t.item.functionName;this[e]&&this[e]()}}};var w=function(){var e=this,s=e._self._c;return s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!1,"append-to-body":!0,top:"80px","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:e.$i18nt("gd.user.userAuthorization","\u6388\u6743\u7528\u6237"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?s("UserRelation",{ref:"userForm",attrs:{height:e.height,openMode:"components",openSelecteKeys:e.selectedRowKeys,useraffiliationname:e.useraffiliationname},on:{onSelectChange:e.onSelectChange}}):e._e()],1)],2)},v=[],_=o.normalizeComponent(b,w,v,!1,null,"f6bdfd51",null,null);const $=_.exports;const K={data(){return{sys_UseraffiliationtypeId:"",transKey:"gd.btn.add",formLoading:!1,formButtons:[{displayName:"\u786E\u5B9A",functionName:"formhandleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],belongslist:[],formColumns:[{transKey:"gd.form.name",prop:"name",effectType:"input",label:"\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.ownershipValue.ownershipValue",prop:"affiliationValue",effectType:"input",label:"\u6240\u5C5E\u503C",placeholder:"\u8BF7\u8F93\u5165",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]}],confirmLoading:!0,title:"",sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],type:1,fullScreen:!1,width:"1000px",ruleFormData:{name:""},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},visible:!1,queryParam:{},loadData:t=>(this.queryParam={Sys_UseraffiliationtypeId:this.sys_UseraffiliationtypeId},l.getUserAffiliation(Object.assign(t,this.queryParam)).then(e=>(e.data.rows.forEach(s=>{s.typename=this.ruleFormData.name}),e.data))),openMode:"page",selectedRowKeys:[],selectedRows:[],tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.duplicatechecking.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.ownershipValue.ownershipValue",prop:"affiliationvalue",label:"\u6240\u5C5E\u503C",align:"left",showOverflowTooltip:!0}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysAffiliation:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysAffiliation:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysAffiliation:delete"},{displayName:"\u6388\u6743\u7528\u6237",functionName:"userRelationship",show:!0,transKey:"gd.user.userAuthorization",icon:"el-icon-setting",name:"sysAffiliation:belongingMenu"}]}},components:{UserRelationAdd:$},computed:{getFormColumns(){return this.formColumns.filter(t=>!0)},getHeight(){const t=this.fullScreen?230:410;return this.screenHeight-t},initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},...o.mapGetters(["screenHeight","tableLists","tableSize","tablePageSize","labelPosition","formMode"])},methods:{userRelationship(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.$refs.userrelationadd.open(this.selectedRows[0])},lookup(t,e){const s=t[e.prop];this.$refs.viewSearch.open({fkEntityName:"DataSource",effectType:e.effectType,val:s||""})},async searchDataSource(t){this.formLoading=!0,this.belongslist=[],this.belongslist=await this.getbelongslist(),this.formLoading=!1},fkSearch(t){const e=`${t}Loading`;t==="name"&&!this[e]&&this.searchDataSource("")},getbelongslist(){return l.getSysUserAffiliationType().then(t=>{if(t.code===200)return t.data.rows})},getDataSource(t){let e={name:t,fkEntityName:this.fkEntityName};return u.baseFkList(e).then(s=>s.data.map(i=>(i.id=String(i.id),i)))},okFilter(t){this.filterList={...t}},toggleFullscreen(){this.fullScreen=!this.fullScreen},getDictionary(t){return this.$options.filters.dictData(t)},selectRules(t){},getList(t,e){},init(t){this.fullScreen=!1,this.confirmLoading=!1,this.visible=!0,this.type=t?2:1,this.title=t?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add"),this.sys_UseraffiliationtypeId=t?t.id:"",this.selectedRowKeys=[],this.selectedRows=[],this.$nextTick(()=>{setTimeout(()=>{this.type===2&&this.refresh(),this.ruleFormData={name:t?t.name:""},this.$refs.ruleForm.resetFields()},0)})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(a=>{let n=l.sysUserAffiliationDelete(a).then(r=>r);i.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(a=>{const n=a.filter(r=>!r.success);n.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n[0].message),s(),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},add(t){this.transKey="gd.btn.add",this.$refs.editFormref.open(null),this.$refs.editFormref.setData({nametype:this.ruleFormData.name})},edit(t){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},editForm(t){this.transKey="gd.btn.edit",this.$refs.editFormref.open(t),this.$refs.editFormref.setData({nametype:this.ruleFormData.name}),this.$refs.editFormref.setData({affiliationValue:t.affiliationvalue})},formhandleSubmit(){console.log("\u6240\u5C5E\u503C\u7684\u65B0\u589E\u4FDD\u5B58")},handleSubmit(){this.$refs.ruleForm.validate(t=>{if(t){const e={...this.ruleFormData};this.sub(e)}})},sub(t){this.formLoading=!0;let e=this.type==1?l.sysUserAffiliationTypeAdd:l.sysUserAffiliationTypeEdit;const s=this.type==1?t:Object.assign({values:t,id:this.sys_UseraffiliationtypeId});e(s).then(i=>{i.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.handleCancel(),this.$emit("ok")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+i.message),this.formLoading=!1})},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.tabledisabled=!1},doEvent(t){let e=t.item.functionName;this[e]()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("onSelectChange",t,e)},removeRow(t){let e=this;this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(s,i,a)=>{if(s!=="confirm"){a();return}e.$message.success(e.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),a()}})},sbumit({data:t,record:e,btn:s},i,a){this.formLoading=!0;let n=e?l.sysUserAffiliationEdit:l.sysUserAffiliationAdd;delete t.nametype;const r=e?Object.assign({affiliationValue:t.affiliationValue,sys_UseraffiliationtypeId:this.sys_UseraffiliationtypeId,id:t.id}):Object.assign(t,{sys_UseraffiliationtypeId:this.sys_UseraffiliationtypeId});n(r).then(d=>{d.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+d.message),this.formLoading=!1})},refresh(){this.$refs.table&&this.$refs.table.refresh()}}};var C=function(){var e=this,s=e._self._c;return s("div",[s("el-dialog",{class:e.fullScreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullScreen,width:e.width,visible:e.visible,footer:null,top:"80px","append-to-body":"","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.handleCancel}},[s("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullScreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0,closed:"handleCancel"},on:{changeEvent:e.doEvent},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[s("div",{staticClass:"setting-navs",class:e.fullScreen?"modal-bodyq":"modal-body"},[s("el-form",{ref:"ruleForm",attrs:{model:e.ruleFormData,rules:e.rules,"label-width":"120px"},nativeOn:{submit:function(i){i.preventDefault()}}},[s("el-row",{staticStyle:{"margin-left":"-12px","margin-right":"-12px"},attrs:{gutter:48}},[s("el-col",{attrs:{span:12}},[s("el-form-item",{staticClass:"form_name",staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.duplicatechecking.name","\u540D\u79F0"),prop:"name"}},[s("el-input",{attrs:{disabled:e.type==2,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.name,callback:function(i){e.$set(e.ruleFormData,"name",i)},expression:"ruleFormData.name"}})],1)],1)],1)],1),e.type==2?[s("el-divider"),s("div",{staticClass:"setting-conter"},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,selectedKeep:e.selectedKeep,initialLoading:e.initialLoading},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""},on:{click:e.editForm}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"operator-list"},[s("div",{staticClass:"clearfix"},[s("span",[e._v(e._s(e.$i18nt("gd.userAffiliation.userownershipValue","\u7528\u6237\u6240\u5C5E\u503C")))])]),s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])])]},proxy:!0}],null,!1,3417440761)})],1)]:e._e()],2)])],1),s("gd-edit-form",{ref:"editFormref",attrs:{formItemWidth:"100%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode},on:{sbumit:e.sbumit}}),s("UserRelationAdd",{ref:"userrelationadd",on:{ok:e.refresh}})],1)},S=[],T=o.normalizeComponent(K,C,S,!1,null,"d0f142ed",null,null);const R=T.exports;const k={name:"GdUserAffiliation",props:{height:{type:Number,default:100},openMode:{type:String,default:"page"},openSelecteKeys:{type:Array,default:()=>[]}},mixins:[u.tablesFilter,h],data(){return{loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{},record:{},loadData:t=>(this.selectedKeep&&(this.selectedRowKeys=[...this.openSelecteKeys]),l.getSysUserAffiliationType(Object.assign(t,this.queryParam)).then(e=>e.data))}},components:{editForm:R},computed:{initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},getHeight(){return this.height},...o.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},editForm(t){this.$refs.editForm.init(t)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(a=>{let n=l.sysUserAffiliationTypeDelete(a).then(r=>r);i.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(a=>{const n=a.filter(r=>!r.success);n.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n[0].message),s(),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},add(){this.$refs.editForm.init(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},handleOk(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("onSelectChange",t,e)},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var L=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0,selectedKeep:e.selectedKeep,initialLoading:e.initialLoading},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""},on:{click:e.editForm}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl"},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.form.name","\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(i){e.$set(e.queryParam,"name",i)},expression:"queryParam.name"}}),s("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[e.openMode==="page"?s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}}):e._e()],1)])]},proxy:!0},{key:"filtering",fn:function({colse:i,visible:a}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:i,visible:a},on:{save:e.saveQueries}})]}}])})],1),s("editForm",{ref:"editForm",attrs:{table:e.record},on:{ok:e.handleOk}})],1)},B=[],F=o.normalizeComponent(k,L,B,!1,null,"3966b20c",null,null);const c=F.exports;c.install=function(t){t.component(c.name,c)};exports.GDpackage=c;
1
+ "use strict";const l=require("./system.duplicatechecking.f66790d1.js"),o=require("./chartbi.06e48153.js"),u=require("./messages.30e41348.js"),h={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.form.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0}],formColumns:[{transKey:"gd.form.roleName",effectType:"input",prop:"name",label:"\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.ownershipValue.ownershipValue",prop:"affiliationValue",effectType:"input",label:"\u6240\u5C5E\u503C",placeholder:"\u8BF7\u8F93\u5165",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysAffiliation:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysAffiliation:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysAffiliation:delete"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.form.name",prop:"name",label:"\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.ownershipValue.ownershipValue",prop:"affiliationValue",label:"\u6240\u5C5E\u503C",effectType:"input",rules:[]}]}}};const f={name:"GdUserRole",props:{height:{type:Number,default:100},openSelecteKeys:{type:Array,default:()=>[]},useraffiliationname:{type:String,default:""},openMode:{type:String,default:"page"}},mixins:[u.tablesFilter],data(){return{transKey:"gd.btn.add",formLoading:!1,currentNode:null,loading:!0,orgTree:[],selectedRowKeys:[],selectedRows:[],queryParam:{},defaultProps:{children:"children",label:"title",value:"value"},defaultExpandedKeys:"",loadData:t=>(this.queryParam={userAffiliationId:this.openSelecteKeys[0]},l.getbyUserAffiliationId(this.queryParam).then(e=>(e.data.length>0&&this.getRowId(e.data),console.log(this.disabledRowId),e.data.forEach(s=>{s.useraffiliationname=this.useraffiliationname}),{pageno:1,pagesize:1e3,rows:e.data}))),disableBtn:[],fileList:[],needLoad:!1,infoData:{},isSendEmail:"",isSendEmailed:"",tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.userAffiliation.name",prop:"username",label:"\u7528\u6237(\u59D3\u540D)",align:"left",type:"slot",slotType:"username",showOverflowTooltip:!0},{transKey:"gd.userAffiliation.userOwnershipName",prop:"useraffiliationname",label:"\u7528\u6237\u6240\u5C5E\u540D\u79F0",align:"left",showOverflowTooltip:!0}],formColumnsuser:[{transKey:"gd.user.account",effectType:"input",prop:"account",label:"\u8D26\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change",min:2}]},{transKey:"gd.user.name",prop:"name",effectType:"input",label:"\u59D3\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.sex",prop:"gender",effectType:"radio",label:"\u6027\u522B",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",dictTypeCode:"gender",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.birthday",prop:"birthday",effectType:"date",label:"\u751F\u65E5",placeholder:"\u8BF7\u8F93\u5165",valueFormat:"yyyy-MM-dd",placeholderTransKey:"gd.placeholder.select",rules:[]},{transKey:"gd.user.phone",effectType:"input",prop:"phone",label:"\u624B\u673A\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.email",effectType:"input",prop:"email",label:"\u90AE\u7BB1",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"},{type:"email",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u53F7!",transKey:"gd.account.emailTip"}]},{transKey:"gd.user.nickname",prop:"nickname",effectType:"input",label:"\u6635\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.user.tel",prop:"tel",effectType:"input",label:"\u7535\u8BDD",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.org.displayName",prop:"orgid",effectType:"selectTree",label:"\u6240\u5C5E\u673A\u6784",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",treeOptions:[],rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.user.PSDNeverExpire",prop:"psdneverexpire",effectType:"switch",label:"\u5BC6\u7801\u6C38\u4E0D\u8FC7\u671F",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysRole:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysRole:delete"}],disabledRowId:[],sysCodeGenName:"sys_user"}},components:{},computed:{initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},getQueryParam(){let t=new Map;for(let e in this.queryParam)t.set(e==="statecodes"?"searchctatus":e,this.queryParam[e]);return Object.fromEntries(t)},getFormColumns(){return this.formColumnsuser.filter(e=>(e.prop==="orgid"&&(e.treeOptions=[...this.orgTree]),!0))},getTableButtons(){return this.tableButtons.filter(t=>(t.show=!this.disableBtn.includes(t.displayName),!0))},getHeight(){return this.height},styled(){return`height:${this.height+76}px`},...o.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{getRowId(t){let e=[];t.filter(s=>!this.disabledRowId.includes(s.userid)).forEach(s=>{e.push(s.userid)}),this.disabledRowId=this.disabledRowId.concat(e)},saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},handleOk(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},lookupSeled(t){if(t.fkData.length===0){this.$refs.engineSearch.closed();return}this.$refs.engineSearch.confirmLoading=!0,l.sysUserAffiliationAddRelation({userAffiliationId:this.openSelecteKeys[0],userIdList:t.data}).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$refs.engineSearch.closed(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+e.message),this.$refs.engineSearch.confirmLoading=!1})},add(){this.$refs.engineSearch.open({fkEntityName:this.sysCodeGenName,val:[],effectType:"participants",isRelevance:!0})},del(){let t=this;if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(e,s,i)=>{if(e!=="confirm"){i();return}s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,l.sysUserAffiliationDeleteRelation({userAffiliationId:t.openSelecteKeys[0],userIdList:JSON.parse(JSON.stringify(t.selectedRows)).map(a=>a.userid)}).then(a=>{a.success?(t.$message.success(t.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),t.disabledRowId=t.disabledRowId.filter(n=>!t.selectedRows.filter(d=>d.userid===n)[0]),s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0,i(),t.refresh()):t.$message.error(t.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+a.message)})}})}},created(){}};var p=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view",staticStyle:{display:"flex",background:"rgb(245, 245, 245)"}},[s("div",{staticClass:"page-view-list"},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,showPagination:!1,selectedRowKeys:e.selectedRowKeys,height:e.height,initialLoading:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"username",fn:function({column:i,row:a}){return[s("span",{staticStyle:{cursor:"pointer"}},[e._v(" "+e._s(a.username)+" ")])]}}])}),s("gd-search",{ref:"engineSearch",attrs:{appendToBody:!0,disabledRowId:e.disabledRowId},on:{lookupSeled:e.lookupSeled}})],1)])},g=[],m=o.normalizeComponent(f,p,g,!1,null,"65ef2965",null,null);const y=m.exports;const b={data(){return{buttons:[],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"90%",selectedRowKeys:[]}},components:{UserRelation:y},computed:{height(){return this.screenHeight-(this.fullscreen?160:340)},...o.mapGetters(["screenHeight"])},methods:{handleSubmit(){this.closed()},open(t){this.record=t,this.visible=!0,this.selectedRowKeys=[t.id],this.useraffiliationname=t.affiliationvalue,this.$nextTick(()=>{setTimeout(()=>{this.$refs.userForm.refresh()},0)})},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},onSelectChange(t){this.selectedRowKeys=t},doEvent(t){const e=t.item.functionName;this[e]&&this[e]()}}};var w=function(){var e=this,s=e._self._c;return s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!1,"append-to-body":!0,top:"80px","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:e.$i18nt("gd.user.userAuthorization","\u6388\u6743\u7528\u6237"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?s("UserRelation",{ref:"userForm",attrs:{height:e.height,openMode:"components",openSelecteKeys:e.selectedRowKeys,useraffiliationname:e.useraffiliationname},on:{onSelectChange:e.onSelectChange}}):e._e()],1)],2)},v=[],_=o.normalizeComponent(b,w,v,!1,null,"f6bdfd51",null,null);const $=_.exports;const K={data(){return{sys_UseraffiliationtypeId:"",transKey:"gd.btn.add",formLoading:!1,formButtons:[{displayName:"\u786E\u5B9A",functionName:"formhandleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],belongslist:[],formColumns:[{transKey:"gd.form.name",prop:"name",effectType:"input",label:"\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.ownershipValue.ownershipValue",prop:"affiliationValue",effectType:"input",label:"\u6240\u5C5E\u503C",placeholder:"\u8BF7\u8F93\u5165",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]}],confirmLoading:!0,title:"",sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],type:1,fullScreen:!1,width:"1000px",ruleFormData:{name:""},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},visible:!1,queryParam:{},loadData:t=>(this.queryParam={Sys_UseraffiliationtypeId:this.sys_UseraffiliationtypeId},l.getUserAffiliation(Object.assign(t,this.queryParam)).then(e=>(e.data.rows.forEach(s=>{s.typename=this.ruleFormData.name}),e.data))),openMode:"page",selectedRowKeys:[],selectedRows:[],tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.duplicatechecking.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.ownershipValue.ownershipValue",prop:"affiliationvalue",label:"\u6240\u5C5E\u503C",align:"left",showOverflowTooltip:!0}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysAffiliation:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysAffiliation:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysAffiliation:delete"},{displayName:"\u6388\u6743\u7528\u6237",functionName:"userRelationship",show:!0,transKey:"gd.user.userAuthorization",icon:"el-icon-setting",name:"sysAffiliation:belongingMenu"}]}},components:{UserRelationAdd:$},computed:{getFormColumns(){return this.formColumns.filter(t=>!0)},getHeight(){const t=this.fullScreen?230:410;return this.screenHeight-t},initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},...o.mapGetters(["screenHeight","tableLists","tableSize","tablePageSize","labelPosition","formMode"])},methods:{userRelationship(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.$refs.userrelationadd.open(this.selectedRows[0])},lookup(t,e){const s=t[e.prop];this.$refs.viewSearch.open({fkEntityName:"DataSource",effectType:e.effectType,val:s||""})},async searchDataSource(t){this.formLoading=!0,this.belongslist=[],this.belongslist=await this.getbelongslist(),this.formLoading=!1},fkSearch(t){const e=`${t}Loading`;t==="name"&&!this[e]&&this.searchDataSource("")},getbelongslist(){return l.getSysUserAffiliationType().then(t=>{if(t.code===200)return t.data.rows})},getDataSource(t){let e={name:t,fkEntityName:this.fkEntityName};return u.baseFkList(e).then(s=>s.data.map(i=>(i.id=String(i.id),i)))},okFilter(t){this.filterList={...t}},toggleFullscreen(){this.fullScreen=!this.fullScreen},getDictionary(t){return this.$options.filters.dictData(t)},selectRules(t){},getList(t,e){},init(t){this.fullScreen=!1,this.confirmLoading=!1,this.visible=!0,this.type=t?2:1,this.title=t?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add"),this.sys_UseraffiliationtypeId=t?t.id:"",this.selectedRowKeys=[],this.selectedRows=[],this.$nextTick(()=>{setTimeout(()=>{this.type===2&&this.refresh(),this.ruleFormData={name:t?t.name:""},this.$refs.ruleForm.resetFields()},0)})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(a=>{let n=l.sysUserAffiliationDelete(a).then(r=>r);i.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(a=>{const n=a.filter(r=>!r.success);n.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n[0].message),s(),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},add(t){this.transKey="gd.btn.add",this.$refs.editFormref.open(null),this.$refs.editFormref.setData({nametype:this.ruleFormData.name})},edit(t){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},editForm(t){this.transKey="gd.btn.edit",this.$refs.editFormref.open(t),this.$refs.editFormref.setData({nametype:this.ruleFormData.name}),this.$refs.editFormref.setData({affiliationValue:t.affiliationvalue})},formhandleSubmit(){console.log("\u6240\u5C5E\u503C\u7684\u65B0\u589E\u4FDD\u5B58")},handleSubmit(){this.$refs.ruleForm.validate(t=>{if(t){const e={...this.ruleFormData};this.sub(e)}})},sub(t){this.formLoading=!0;let e=this.type==1?l.sysUserAffiliationTypeAdd:l.sysUserAffiliationTypeEdit;const s=this.type==1?t:Object.assign({values:t,id:this.sys_UseraffiliationtypeId});e(s).then(i=>{i.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.handleCancel(),this.$emit("ok")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+i.message),this.formLoading=!1})},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.tabledisabled=!1},doEvent(t){let e=t.item.functionName;this[e]()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("onSelectChange",t,e)},removeRow(t){let e=this;this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(s,i,a)=>{if(s!=="confirm"){a();return}e.$message.success(e.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),a()}})},sbumit({data:t,record:e,btn:s},i,a){this.formLoading=!0;let n=e?l.sysUserAffiliationEdit:l.sysUserAffiliationAdd;delete t.nametype;const r=e?Object.assign({affiliationValue:t.affiliationValue,sys_UseraffiliationtypeId:this.sys_UseraffiliationtypeId,id:t.id}):Object.assign(t,{sys_UseraffiliationtypeId:this.sys_UseraffiliationtypeId});n(r).then(d=>{d.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+d.message),this.formLoading=!1})},refresh(){this.$refs.table&&this.$refs.table.refresh()}}};var C=function(){var e=this,s=e._self._c;return s("div",[s("el-dialog",{class:e.fullScreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullScreen,width:e.width,visible:e.visible,footer:null,top:"80px","append-to-body":"","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.handleCancel}},[s("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullScreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0,closed:"handleCancel"},on:{changeEvent:e.doEvent},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[s("div",{staticClass:"setting-navs",class:e.fullScreen?"modal-bodyq":"modal-body"},[s("el-form",{ref:"ruleForm",attrs:{model:e.ruleFormData,rules:e.rules,"label-width":"120px"},nativeOn:{submit:function(i){i.preventDefault()}}},[s("el-row",{staticStyle:{"margin-left":"-12px","margin-right":"-12px"},attrs:{gutter:48}},[s("el-col",{attrs:{span:12}},[s("el-form-item",{staticClass:"form_name",staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.duplicatechecking.name","\u540D\u79F0"),prop:"name"}},[s("el-input",{attrs:{disabled:e.type==2,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.name,callback:function(i){e.$set(e.ruleFormData,"name",i)},expression:"ruleFormData.name"}})],1)],1)],1)],1),e.type==2?[s("el-divider"),s("div",{staticClass:"setting-conter"},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,selectedKeep:e.selectedKeep,initialLoading:e.initialLoading},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""},on:{click:e.editForm}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"operator-list"},[s("div",{staticClass:"clearfix"},[s("span",[e._v(e._s(e.$i18nt("gd.userAffiliation.userownershipValue","\u7528\u6237\u6240\u5C5E\u503C")))])]),s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])])]},proxy:!0}],null,!1,3417440761)})],1)]:e._e()],2)])],1),s("gd-edit-form",{ref:"editFormref",attrs:{formItemWidth:"100%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode},on:{sbumit:e.sbumit}}),s("UserRelationAdd",{ref:"userrelationadd",on:{ok:e.refresh}})],1)},S=[],T=o.normalizeComponent(K,C,S,!1,null,"d0f142ed",null,null);const R=T.exports;const k={name:"GdUserAffiliation",props:{height:{type:Number,default:100},openMode:{type:String,default:"page"},openSelecteKeys:{type:Array,default:()=>[]}},mixins:[u.tablesFilter,h],data(){return{loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{},record:{},loadData:t=>(this.selectedKeep&&(this.selectedRowKeys=[...this.openSelecteKeys]),l.getSysUserAffiliationType(Object.assign(t,this.queryParam)).then(e=>e.data))}},components:{editForm:R},computed:{initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},getHeight(){return this.height},...o.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},editForm(t){this.$refs.editForm.init(t)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(a=>{let n=l.sysUserAffiliationTypeDelete(a).then(r=>r);i.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(a=>{const n=a.filter(r=>!r.success);n.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n[0].message),s(),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},add(){this.$refs.editForm.init(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},handleOk(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("onSelectChange",t,e)},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var L=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0,selectedKeep:e.selectedKeep,initialLoading:e.initialLoading},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""},on:{click:e.editForm}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl"},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.form.name","\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(i){e.$set(e.queryParam,"name",i)},expression:"queryParam.name"}}),s("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[e.openMode==="page"?s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}}):e._e()],1)])]},proxy:!0},{key:"filtering",fn:function({colse:i,visible:a}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:i,visible:a},on:{save:e.saveQueries}})]}}])})],1),s("editForm",{ref:"editForm",attrs:{table:e.record},on:{ok:e.handleOk}})],1)},B=[],F=o.normalizeComponent(k,L,B,!1,null,"3966b20c",null,null);const c=F.exports;c.install=function(t){t.component(c.name,c)};exports.GDpackage=c;
@@ -1,6 +1,6 @@
1
- import { g as f, s as p, a as g, b as m, c as u, d as y, e as b, f as w, h as v, i as _, j as $ } from "./system.duplicatechecking.6b706948.mjs";
1
+ import { g as f, s as p, a as g, b as m, c as u, d as y, e as b, f as w, h as v, i as _, j as $ } from "./system.duplicatechecking.268544dd.mjs";
2
2
  import { m as o, n as d } from "./chartbi.cdd1e365.mjs";
3
- import { t as h, f as K } from "./messages.d8abe18d.mjs";
3
+ import { t as h, f as K } from "./messages.a1335b0f.mjs";
4
4
  const C = {
5
5
  data() {
6
6
  return {
@@ -1,6 +1,6 @@
1
1
  import { m as o, n as d } from "./chartbi.cdd1e365.mjs";
2
- import { t as c } from "./messages.d8abe18d.mjs";
3
- import { s as m } from "./system.dict.8f95218b.mjs";
2
+ import { t as c } from "./messages.a1335b0f.mjs";
3
+ import { s as m } from "./system.dict.565d69ca.mjs";
4
4
  function h(a) {
5
5
  return window.axios({
6
6
  url: "/SysWebResource/page",
@@ -1 +1 @@
1
- "use strict";const o=require("./chartbi.06e48153.js"),c=require("./messages.2fff74f3.js"),m=require("./system.dict.a24f33b0.js");function d(a){return window.axios({url:"/SysWebResource/page",method:"post",data:a})}function p(a){return window.axios({url:"/SysWebResource/edit",method:"post",data:a})}function u(a){return window.axios({url:"/SysWebResource/add",method:"post",data:a})}function h(a){return window.axios({url:"/SysWebResource/list",method:"post",data:a})}function f(a){return window.axios({url:"/SysWebResource/delete",method:"post",data:a})}function g(a){return window.axios({url:"/SysWebResource/editcontent",method:"get",params:a})}const b={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.web.name",prop:"name",label:"\u540D\u79F0",align:"left",type:"slot",slotType:"name",fixed:!0,renderHeader:(a,...e)=>this.renderHeader(a,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.web.displayName",prop:"displayname",label:"\u663E\u793A\u540D\u79F0",minWidth:"180",align:"left",showOverflowTooltip:!0},{transKey:"gd.web.type",prop:"type",width:"120",label:"\u8D44\u6E90\u7C7B\u578B",type:"slot",slotType:"type",align:"left",showOverflowTooltip:!0},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createdtime",align:"center",transKey:"gd.web.creationTime",showOverflowTooltip:!0},{label:"\u4FEE\u6539\u65F6\u95F4",prop:"updatedtime",align:"center",showOverflowTooltip:!0,transKey:"gd.web.updatedTime"},{label:"\u5907\u6CE8",prop:"description",align:"left",showOverflowTooltip:!0,transKey:"gd.web.remarks"}],formColumns:[{transKey:"gd.web.name",prop:"name",label:"\u540D\u79F0",effectType:"input",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.web.displayName",prop:"displayname",label:"\u663E\u793A\u540D\u79F0",effectType:"input",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.web.type",effectType:"select",prop:"type",label:"\u8D44\u6E90\u7C7B\u578B",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"web_type",disabled:!1,rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.web.resourceFile",effectType:"file",prop:"fileList",label:"\u8D44\u6E90\u6587\u4EF6",placeholder:"\u8BF7\u4E0A\u4F20",fileTitle:"\u6587\u4EF6\u4E0A\u4F20",placeholderTransKey:"gd.placeholder.selectFileTip",limit:1,rules:[]},{transKey:"gd.web.content",effectType:"textarea",prop:"content",label:"\u8D44\u6E90\u5185\u5BB9",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:12}},{transKey:"gd.web.description",effectType:"input",prop:"description",label:"\u5907\u6CE8",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[]},{transKey:"gd.web.path",effectType:"input",prop:"address",label:"\u5730\u5740",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysWebResource:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysWebResource:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysWebResource:delete"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.web.name",prop:"name",label:"\u540D\u79F0",effectType:"input",rules:[]}]}}};function y(a){return new Promise((e,t)=>{const i=new FileReader;i.readAsDataURL(a),i.onload=()=>e(i.result),i.onerror=s=>t(s)})}const w={props:{formMode:{type:String,default:"dialog"}},data(){return{title:"",sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],previewVisible:!1,fileListVisible:!0,previewImage:"",loading:!1,imageUrl:"",visible:!1,confirmLoading:!1,typeDict:[],fileList:[],fileFormat:".js",fileStatus:!0,type:"text/javascript",uploadType:"1",audioPlayerData:{},record:null,disabled:!1,fullscreen:!1,width:"800px",ruleFormData:{type:"1",description:"",fileList:[]},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],displayName:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},apiUrl:{}.VITE_APP_API_BASE_URL}},computed:{...o.mapGetters(["labelPosition"])},created(){this.sysDictTypeDropDown()},methods:{togglefullscreen(){this.fullscreen=!this.fullscreen},open(a){if(this.fullscreen=!1,this.record=a,this.fileList=[],this.audioPlayerData={},this.title=a?this.$i18nt("gd.https.edit","\u7F16\u8F91"):this.$i18nt("gd.https.add","\u65B0\u589E"),this.visible=!0,this.disabled=!!a,this.sysViewButtons=this.sysViewButtons.map(e=>(e.name=a?"sysWebResource:edit":"sysWebResource:add",e)),a){this.initEdit(a);return}this.$nextTick(()=>{this.ruleFormData={},this.$refs.ruleForm.resetFields()}),this.fileFormat=".js",this.type="text/javascript",this.uploadType="1"},initEdit(a){this.confirmLoading=!0,a.type==6&&(this.audioPlayerData={title:a.name,src:a.address}),this.onChange(a.type),g({id:a.id}).then(e=>{if(e.code==200){Object.assign(this.record,e.data);let t=e.data;this.fileList=[{uid:String(t.id),name:t.filename,status:"done",url:t.address}];let i={id:t.id,name:t.name,displayName:t.displayname,type:String(t.type),description:t.description,address:t.address,fileList:this.fileList};if(a.type!=2){let s=e.data.contenttext?e.data.contenttext:"";i=Object.assign({...i},{content:s})}t.type==6&&(this.audioPlayerData={title:t.name,src:t.address}),this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData=i},0)})}this.confirmLoading=!1})},async handlePreview(a){!a.url&&!a.preview&&(a.preview=await y(a.originFileObj)),this.previewImage=a.url||a.preview,this.previewVisible=!0},handleChange(a,e){let t=e.length;if(e.length==0){this.fileList=[],this.ruleFormData.fileList=this.fileList;return}this.fileList=e.filter((i,s)=>s==t-1),this.ruleFormData.fileList=this.fileList},beforeUpload(a){let e=this.getFileType(),t=a.name.split(".")[1].trim().toLowerCase();return this.uploadType!=5&&!e.includes(a.type)?(this.$message.warning(this.$i18nt("gd.system.plugin.fileFormatTip","\u6587\u4EF6\u683C\u5F0F\u9519\u8BEF!")),this.cleanFile(),!1):this.uploadType==5&&t!="vue"?(this.$message.warning(this.$i18nt("gd.system.plugin.fileFormatTip","\u6587\u4EF6\u683C\u5F0F\u9519\u8BEF!")),this.cleanFile(),!1):(this.record&&(console.log(8888),this.editBeforeUpload(a)),!1)},cleanFile(){this.$nextTick(()=>{setTimeout(()=>{this.fileList=[],this.form.setFieldsValue({fileList:""})},0)})},getFileType(){switch(String(this.uploadType)){case"1":return["text/javascript"];case"2":return["image/png","image/jpeg","image/gif"];case"3":return["text/css"];case"4":return["text/html"];case"6":return["audio/mpeg","audio/wav","audio/x-ms-wma","audio/mid","audio/ogg"];default:return[]}},editBeforeUpload(a){if(this.uploadType==2)return;let e=new FormData;e.append("file",a),e.append("address",this.apiUrl),e.append("name",this.record.fileName),h(e).then(t=>{t.success?(this.uploadType==6&&(this.audioPlayerData=Object.assign({...this.audioPlayerData},{title:a.name,src:t.data})),this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData.content=t.data},0)})):this.$message.error(this.$i18nt("gd.https.uploadFail","\u4E0A\u4F20\u5931\u8D25")+t.message)})},handleRemove(a){let e=this.fileList.indexOf(a),t=this.fileList.slice();t.splice(e,1),this.fileList=t,this.uploadType==6&&(this.audioPlayerData={}),this.$nextTick(()=>{setTimeout(()=>{this.form.setFieldsValue({fileList:""})},0)})},onChange(a){this.uploadType=a,a==1?(this.type="text/javascript",this.fileFormat=".js"):a==2?(this.type="image/png,image/jpeg,image/gif",this.fileFormat=".gif,.jpeg,.jpg,.png"):a==3?(this.type="text/css",this.fileFormat=".css"):a==4?(this.type="text/html",this.fileFormat=".html"):a==5?(this.type="vue",this.fileFormat=".vue"):a==6&&(this.type="audio/mpeg,audio/wav,audio/x-ms-wma,audio/mid,audio/ogg",this.fileFormat=".wav,.mp3,.wma,.midi,.ogg"),this.fileList=[]},sysDictTypeDropDown(){m.sysDictTypeDropDown({code:"web_type"}).then(a=>{this.typeDict=a.data})},handleSubmit(){this.$refs.ruleForm.validate(a=>{a&&(this.record?this.edit(this.ruleFormData):this.add(this.ruleFormData))})},add(a){let{fileList:e}=this;if(e.length==0)return this.$message.error(this.$i18nt("gd.web.selectFileTip","\u8BF7\u9009\u62E9\u6587\u4EF6!")),!1;{this.confirmLoading=!0;let t=new FormData;t.append("file",e[0].raw),t.append("type",a.type),t.append("name",a.name),t.append("displayName",a.displayName),t.append("remark",a.description),t.append("address",this.apiUrl),u(t).then(i=>{i.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.handleCancel(),this.$emit("ok",a)):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25")+i.message),this.confirmLoading=!1}).finally(i=>{this.confirmLoading=!1})}},edit(a){this.confirmLoading=!0;let{fileList:e}=this,t=new FormData;e[0].originFileObj&&t.append("file",e[0].originFileObj),t.append("type",a.type),t.append("id",this.record.id),t.append("address",a.address),t.append("addressurl",this.apiUrl),t.append("description",a.description),t.append("content",a.content),p(t).then(i=>{i.success?(this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")),this.handleCancel(),this.$emit("ok",a)):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25")+i.message),this.confirmLoading=!1}).finally(i=>{this.confirmLoading=!1})},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.ruleFormData={type:"1",description:"",fileList:[]},this.$refs.ruleForm.resetFields()},previewhandleCancel(){this.previewVisible=!1},doEvent(a){let e=a.item.functionName;this[e]&&this[e]()}}};var F=function(){var e=this,t=e._self._c;return e.formMode==="dialog"?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,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.handleCancel}},[t("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0,emitFun:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.togglefullscreen,close:e.handleCancel},slot:"title"}),t("div",{class:e.fullscreen?"modal-bodyq":"modal-body"},[t("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",attrs:{"label-width":"110px","label-position":e.labelPosition,model:e.ruleFormData,rules:e.rules},nativeOn:{submit:function(i){i.preventDefault()}}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.web.name","\u540D\u79F0"),prop:"name"}},[t("el-input",{attrs:{disabled:e.disabled,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),maxLength:50},model:{value:e.ruleFormData.name,callback:function(i){e.$set(e.ruleFormData,"name",i)},expression:"ruleFormData.name"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.web.displayName","\u663E\u793A\u540D\u79F0"),prop:"displayName"}},[t("el-input",{attrs:{disabled:e.disabled,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.displayName,callback:function(i){e.$set(e.ruleFormData,"displayName",i)},expression:"ruleFormData.displayName"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.web.type","\u8D44\u6E90\u7C7B\u578B"),required:!0}},[t("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:e.disabled},on:{change:e.onChange},model:{value:e.ruleFormData.type,callback:function(i){e.$set(e.ruleFormData,"type",i)},expression:"ruleFormData.type"}},e._l(e.typeDict,function(i,s){return t("el-option",{key:s,attrs:{value:i.code,label:e.$i18nt(`Dynamics.${i.transKey}`,i.value)}})}),1)],1),t("el-form-item",{attrs:{required:!0,label:e.$i18nt("gd.web.resourceFile","\u8D44\u6E90\u6587\u4EF6")}},[e.uploadType==2?t("el-upload",{attrs:{"list-type":"picture-card","before-upload":e.beforeUpload,"file-list":e.fileList,"on-change":e.handleChange,action:"",accept:e.fileFormat},on:{preview:e.handlePreview},model:{value:e.ruleFormData.fileList,callback:function(i){e.$set(e.ruleFormData,"fileList",i)},expression:"ruleFormData.fileList"}},[e.fileList.length<1?t("div",[t("i",{staticClass:"el-icon-plus"})]):e._e()]):t("el-upload",{attrs:{"file-list":e.fileList,"before-upload":e.beforeUpload,"on-change":e.handleChange,remove:e.handleRemove,action:"",accept:e.fileFormat},model:{value:e.ruleFormData.fileList,callback:function(i){e.$set(e.ruleFormData,"fileList",i)},expression:"ruleFormData.fileList"}},[t("el-button",[t("i",{staticClass:"el-icon-plus"}),e._v(" "+e._s(e.$i18nt("gd.web.selectFile","\u9009\u62E9\u6587\u4EF6"))+" ")])],1)],1),e.disabled&&e.uploadType!=2&&e.uploadType!=6?t("el-form-item",{attrs:{label:e.$i18nt("gd.web.resourceContent","\u8D44\u6E90\u5185\u5BB9"),prop:"content"}},[t("el-input",{attrs:{type:"textarea",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),rows:16},model:{value:e.ruleFormData.content,callback:function(i){e.$set(e.ruleFormData,"content",i)},expression:"ruleFormData.content"}})],1):e._e(),t("el-form-item",{attrs:{label:e.$i18nt("gd.web.remarks","\u5907\u6CE8"),prop:"description"}},[t("el-input",{attrs:{type:"textarea",rows:2,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.description,callback:function(i){e.$set(e.ruleFormData,"description",i)},expression:"ruleFormData.description"}})],1),e.disabled?t("el-form-item",{attrs:{label:e.$i18nt("gd.web.path","\u5730\u5740"),prop:"address"}},[t("el-input",{attrs:{disabled:e.disabled},model:{value:e.ruleFormData.address,callback:function(i){e.$set(e.ruleFormData,"address",i)},expression:"ruleFormData.address"}})],1):e._e()],1)],1),t("el-dialog",{attrs:{visible:e.previewVisible,footer:null},on:{cancel:e.previewhandleCancel}},[t("img",{staticStyle:{width:"100%"},attrs:{alt:"example",src:e.previewImage}})])],1):t("el-drawer",{attrs:{visible:e.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:e.width,"custom-class":"gd-drawer-form","show-close":!1},on:{"update:visible":function(i){e.visible=i}}},[t("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showFullscreen:!1,showClose:!0},on:{changeEvent:e.doEvent},slot:"title"}),t("div",[t("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",attrs:{"label-width":"110px","label-position":e.labelPosition,model:e.ruleFormData,rules:e.rules},nativeOn:{submit:function(i){i.preventDefault()}}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.web.name","\u540D\u79F0"),prop:"name"}},[t("el-input",{attrs:{disabled:e.disabled,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),maxLength:50},model:{value:e.ruleFormData.name,callback:function(i){e.$set(e.ruleFormData,"name",i)},expression:"ruleFormData.name"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.web.displayName","\u663E\u793A\u540D\u79F0"),prop:"displayName"}},[t("el-input",{attrs:{disabled:e.disabled,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.displayName,callback:function(i){e.$set(e.ruleFormData,"displayName",i)},expression:"ruleFormData.displayName"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.web.type","\u8D44\u6E90\u7C7B\u578B"),required:!0}},[t("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:e.disabled},on:{change:e.onChange},model:{value:e.ruleFormData.type,callback:function(i){e.$set(e.ruleFormData,"type",i)},expression:"ruleFormData.type"}},e._l(e.typeDict,function(i,s){return t("el-option",{key:s,attrs:{value:i.code,label:e.$i18nt(`Dynamics.${i.transKey}`,i.value)}})}),1)],1),t("el-form-item",{attrs:{required:!0,label:e.$i18nt("gd.web.resourceFile","\u8D44\u6E90\u6587\u4EF6")}},[e.uploadType==2?t("el-upload",{attrs:{"list-type":"picture-card","before-upload":e.beforeUpload,"file-list":e.fileList,"on-change":e.handleChange,action:"",accept:e.fileFormat},on:{preview:e.handlePreview},model:{value:e.ruleFormData.fileList,callback:function(i){e.$set(e.ruleFormData,"fileList",i)},expression:"ruleFormData.fileList"}},[e.fileList.length<1?t("div",[t("i",{staticClass:"el-icon-plus"})]):e._e()]):t("el-upload",{attrs:{"file-list":e.fileList,"before-upload":e.beforeUpload,"on-change":e.handleChange,remove:e.handleRemove,action:"",accept:e.fileFormat},model:{value:e.ruleFormData.fileList,callback:function(i){e.$set(e.ruleFormData,"fileList",i)},expression:"ruleFormData.fileList"}},[t("el-button",[t("i",{staticClass:"el-icon-plus"}),e._v(" "+e._s(e.$i18nt("gd.web.selectFile","\u9009\u62E9\u6587\u4EF6"))+" ")])],1)],1),e.disabled&&e.uploadType!=2&&e.uploadType!=6?t("el-form-item",{attrs:{label:e.$i18nt("gd.web.resourceContent","\u8D44\u6E90\u5185\u5BB9"),prop:"content"}},[t("el-input",{attrs:{type:"textarea",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),rows:16},model:{value:e.ruleFormData.content,callback:function(i){e.$set(e.ruleFormData,"content",i)},expression:"ruleFormData.content"}})],1):e._e(),t("el-form-item",{attrs:{label:e.$i18nt("gd.web.remarks","\u5907\u6CE8"),prop:"description"}},[t("el-input",{attrs:{type:"textarea",rows:2,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.description,callback:function(i){e.$set(e.ruleFormData,"description",i)},expression:"ruleFormData.description"}})],1),e.disabled?t("el-form-item",{attrs:{label:e.$i18nt("gd.web.path","\u5730\u5740"),prop:"address"}},[t("el-input",{attrs:{disabled:e.disabled},model:{value:e.ruleFormData.address,callback:function(i){e.$set(e.ruleFormData,"address",i)},expression:"ruleFormData.address"}})],1):e._e()],1)],1)],1)},v=[],D=o.normalizeComponent(w,F,v,!1,null,"2b7d2042",null,null);const $=D.exports;const L={name:"GdWebResource",props:{height:{type:Number,default:100}},mixins:[c.tablesFilter,b],components:{editForm:$},data(){return{transKey:"gd.btn.add",loadData:a=>d(Object.assign(a,this.queryParam)).then(e=>e.data),selectedRows:[],selectedRowKeys:[],queryParam:{},fileList:[],formLoading:!1,webRes:null,uploadType:"1"}},computed:{getHeight(){return this.height},getFormColumns(){return this.formColumns.filter(a=>(["\u540D\u79F0","\u663E\u793A\u540D\u79F0","\u8D44\u6E90\u7C7B\u578B","\u5730\u5740"].includes(a.label)&&(a.disabled=this.webRes!=null),a))},...o.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},created(){},mounted(){},methods:{handleFileUpload(){},onSelectChange(a,e){this.selectedRows=e,this.selectedRowKeys=a},add(){this.transKey="gd.btn.add",this.webRes=null,this.uploadType="1",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])},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\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:(a,e,t)=>{this.delHand(a,e,t)}})},delHand(a,e,t){if(a!=="confirm"){t();return}let i=[];this.selectedRows.forEach(s=>{let r=f(s).then(l=>l);i.push(r)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(s=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,t(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0;const r=s.filter(l=>!l.success);r.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")+r[0].message),this.refresh()})},editForm(a){this.transKey="gd.btn.edit",this.webRes=a,this.initEdit(a)},initEdit(a){this.$refs.editForm.open(a)},saveQueries(a){this.queryParam={...a},this.refresh()},sbumit({data:a,record:e,btn:t},i,s){this.formLoading=!0,(e?p:u)(a).then(l=>{l.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),s(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+l.message),this.formLoading=!1})},refresh(){this.$refs.table.refresh()},doEvent(a){let e=a.item.functionName;this[e]&&this[e]()}},beforeDestroy(){}};var _=function(){var e=this,t=e._self._c;return t("div",{staticClass:"gd-page-view"},[t("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[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:"name",fn:function({column:i,row:s}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:s,highlight:""},on:{click:e.editForm}})]}},{key:"type",fn:function(i){return[t("el-tag",{style:e._f("dictColor")("web_type",i.row.type),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("web_type",i.row.type))+" ")])]}},{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operator"},[t("div",{staticClass:"gd-table-operatorl"},[t("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.web.name","\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(i){e.$set(e.queryParam,"name",i)},expression:"queryParam.name"}}),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.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:i,visible:s}){return[t("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:i,visible:s},on:{save:e.saveQueries}})]}}])})],1),t("editForm",{ref:"editForm",attrs:{formMode:e.formMode},on:{ok:e.refresh}})],1)},T=[],x=o.normalizeComponent(L,_,T,!1,null,"0cd4b373",null,null);const n=x.exports;n.install=function(a){a.component(n.name,n)};exports.GDpackage=n;exports.sysWebDataPage=d;
1
+ "use strict";const o=require("./chartbi.06e48153.js"),c=require("./messages.30e41348.js"),m=require("./system.dict.a23e8cdf.js");function d(a){return window.axios({url:"/SysWebResource/page",method:"post",data:a})}function p(a){return window.axios({url:"/SysWebResource/edit",method:"post",data:a})}function u(a){return window.axios({url:"/SysWebResource/add",method:"post",data:a})}function h(a){return window.axios({url:"/SysWebResource/list",method:"post",data:a})}function f(a){return window.axios({url:"/SysWebResource/delete",method:"post",data:a})}function g(a){return window.axios({url:"/SysWebResource/editcontent",method:"get",params:a})}const b={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.web.name",prop:"name",label:"\u540D\u79F0",align:"left",type:"slot",slotType:"name",fixed:!0,renderHeader:(a,...e)=>this.renderHeader(a,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.web.displayName",prop:"displayname",label:"\u663E\u793A\u540D\u79F0",minWidth:"180",align:"left",showOverflowTooltip:!0},{transKey:"gd.web.type",prop:"type",width:"120",label:"\u8D44\u6E90\u7C7B\u578B",type:"slot",slotType:"type",align:"left",showOverflowTooltip:!0},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createdtime",align:"center",transKey:"gd.web.creationTime",showOverflowTooltip:!0},{label:"\u4FEE\u6539\u65F6\u95F4",prop:"updatedtime",align:"center",showOverflowTooltip:!0,transKey:"gd.web.updatedTime"},{label:"\u5907\u6CE8",prop:"description",align:"left",showOverflowTooltip:!0,transKey:"gd.web.remarks"}],formColumns:[{transKey:"gd.web.name",prop:"name",label:"\u540D\u79F0",effectType:"input",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.web.displayName",prop:"displayname",label:"\u663E\u793A\u540D\u79F0",effectType:"input",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.web.type",effectType:"select",prop:"type",label:"\u8D44\u6E90\u7C7B\u578B",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"web_type",disabled:!1,rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.web.resourceFile",effectType:"file",prop:"fileList",label:"\u8D44\u6E90\u6587\u4EF6",placeholder:"\u8BF7\u4E0A\u4F20",fileTitle:"\u6587\u4EF6\u4E0A\u4F20",placeholderTransKey:"gd.placeholder.selectFileTip",limit:1,rules:[]},{transKey:"gd.web.content",effectType:"textarea",prop:"content",label:"\u8D44\u6E90\u5185\u5BB9",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:12}},{transKey:"gd.web.description",effectType:"input",prop:"description",label:"\u5907\u6CE8",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[]},{transKey:"gd.web.path",effectType:"input",prop:"address",label:"\u5730\u5740",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysWebResource:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysWebResource:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysWebResource:delete"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.web.name",prop:"name",label:"\u540D\u79F0",effectType:"input",rules:[]}]}}};function y(a){return new Promise((e,t)=>{const i=new FileReader;i.readAsDataURL(a),i.onload=()=>e(i.result),i.onerror=s=>t(s)})}const w={props:{formMode:{type:String,default:"dialog"}},data(){return{title:"",sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],previewVisible:!1,fileListVisible:!0,previewImage:"",loading:!1,imageUrl:"",visible:!1,confirmLoading:!1,typeDict:[],fileList:[],fileFormat:".js",fileStatus:!0,type:"text/javascript",uploadType:"1",audioPlayerData:{},record:null,disabled:!1,fullscreen:!1,width:"800px",ruleFormData:{type:"1",description:"",fileList:[]},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],displayName:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},apiUrl:{}.VITE_APP_API_BASE_URL}},computed:{...o.mapGetters(["labelPosition"])},created(){this.sysDictTypeDropDown()},methods:{togglefullscreen(){this.fullscreen=!this.fullscreen},open(a){if(this.fullscreen=!1,this.record=a,this.fileList=[],this.audioPlayerData={},this.title=a?this.$i18nt("gd.https.edit","\u7F16\u8F91"):this.$i18nt("gd.https.add","\u65B0\u589E"),this.visible=!0,this.disabled=!!a,this.sysViewButtons=this.sysViewButtons.map(e=>(e.name=a?"sysWebResource:edit":"sysWebResource:add",e)),a){this.initEdit(a);return}this.$nextTick(()=>{this.ruleFormData={},this.$refs.ruleForm.resetFields()}),this.fileFormat=".js",this.type="text/javascript",this.uploadType="1"},initEdit(a){this.confirmLoading=!0,a.type==6&&(this.audioPlayerData={title:a.name,src:a.address}),this.onChange(a.type),g({id:a.id}).then(e=>{if(e.code==200){Object.assign(this.record,e.data);let t=e.data;this.fileList=[{uid:String(t.id),name:t.filename,status:"done",url:t.address}];let i={id:t.id,name:t.name,displayName:t.displayname,type:String(t.type),description:t.description,address:t.address,fileList:this.fileList};if(a.type!=2){let s=e.data.contenttext?e.data.contenttext:"";i=Object.assign({...i},{content:s})}t.type==6&&(this.audioPlayerData={title:t.name,src:t.address}),this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData=i},0)})}this.confirmLoading=!1})},async handlePreview(a){!a.url&&!a.preview&&(a.preview=await y(a.originFileObj)),this.previewImage=a.url||a.preview,this.previewVisible=!0},handleChange(a,e){let t=e.length;if(e.length==0){this.fileList=[],this.ruleFormData.fileList=this.fileList;return}this.fileList=e.filter((i,s)=>s==t-1),this.ruleFormData.fileList=this.fileList},beforeUpload(a){let e=this.getFileType(),t=a.name.split(".")[1].trim().toLowerCase();return this.uploadType!=5&&!e.includes(a.type)?(this.$message.warning(this.$i18nt("gd.system.plugin.fileFormatTip","\u6587\u4EF6\u683C\u5F0F\u9519\u8BEF!")),this.cleanFile(),!1):this.uploadType==5&&t!="vue"?(this.$message.warning(this.$i18nt("gd.system.plugin.fileFormatTip","\u6587\u4EF6\u683C\u5F0F\u9519\u8BEF!")),this.cleanFile(),!1):(this.record&&(console.log(8888),this.editBeforeUpload(a)),!1)},cleanFile(){this.$nextTick(()=>{setTimeout(()=>{this.fileList=[],this.form.setFieldsValue({fileList:""})},0)})},getFileType(){switch(String(this.uploadType)){case"1":return["text/javascript"];case"2":return["image/png","image/jpeg","image/gif"];case"3":return["text/css"];case"4":return["text/html"];case"6":return["audio/mpeg","audio/wav","audio/x-ms-wma","audio/mid","audio/ogg"];default:return[]}},editBeforeUpload(a){if(this.uploadType==2)return;let e=new FormData;e.append("file",a),e.append("address",this.apiUrl),e.append("name",this.record.fileName),h(e).then(t=>{t.success?(this.uploadType==6&&(this.audioPlayerData=Object.assign({...this.audioPlayerData},{title:a.name,src:t.data})),this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData.content=t.data},0)})):this.$message.error(this.$i18nt("gd.https.uploadFail","\u4E0A\u4F20\u5931\u8D25")+t.message)})},handleRemove(a){let e=this.fileList.indexOf(a),t=this.fileList.slice();t.splice(e,1),this.fileList=t,this.uploadType==6&&(this.audioPlayerData={}),this.$nextTick(()=>{setTimeout(()=>{this.form.setFieldsValue({fileList:""})},0)})},onChange(a){this.uploadType=a,a==1?(this.type="text/javascript",this.fileFormat=".js"):a==2?(this.type="image/png,image/jpeg,image/gif",this.fileFormat=".gif,.jpeg,.jpg,.png"):a==3?(this.type="text/css",this.fileFormat=".css"):a==4?(this.type="text/html",this.fileFormat=".html"):a==5?(this.type="vue",this.fileFormat=".vue"):a==6&&(this.type="audio/mpeg,audio/wav,audio/x-ms-wma,audio/mid,audio/ogg",this.fileFormat=".wav,.mp3,.wma,.midi,.ogg"),this.fileList=[]},sysDictTypeDropDown(){m.sysDictTypeDropDown({code:"web_type"}).then(a=>{this.typeDict=a.data})},handleSubmit(){this.$refs.ruleForm.validate(a=>{a&&(this.record?this.edit(this.ruleFormData):this.add(this.ruleFormData))})},add(a){let{fileList:e}=this;if(e.length==0)return this.$message.error(this.$i18nt("gd.web.selectFileTip","\u8BF7\u9009\u62E9\u6587\u4EF6!")),!1;{this.confirmLoading=!0;let t=new FormData;t.append("file",e[0].raw),t.append("type",a.type),t.append("name",a.name),t.append("displayName",a.displayName),t.append("remark",a.description),t.append("address",this.apiUrl),u(t).then(i=>{i.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.handleCancel(),this.$emit("ok",a)):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25")+i.message),this.confirmLoading=!1}).finally(i=>{this.confirmLoading=!1})}},edit(a){this.confirmLoading=!0;let{fileList:e}=this,t=new FormData;e[0].originFileObj&&t.append("file",e[0].originFileObj),t.append("type",a.type),t.append("id",this.record.id),t.append("address",a.address),t.append("addressurl",this.apiUrl),t.append("description",a.description),t.append("content",a.content),p(t).then(i=>{i.success?(this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")),this.handleCancel(),this.$emit("ok",a)):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25")+i.message),this.confirmLoading=!1}).finally(i=>{this.confirmLoading=!1})},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.ruleFormData={type:"1",description:"",fileList:[]},this.$refs.ruleForm.resetFields()},previewhandleCancel(){this.previewVisible=!1},doEvent(a){let e=a.item.functionName;this[e]&&this[e]()}}};var F=function(){var e=this,t=e._self._c;return e.formMode==="dialog"?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,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.handleCancel}},[t("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0,emitFun:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.togglefullscreen,close:e.handleCancel},slot:"title"}),t("div",{class:e.fullscreen?"modal-bodyq":"modal-body"},[t("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",attrs:{"label-width":"110px","label-position":e.labelPosition,model:e.ruleFormData,rules:e.rules},nativeOn:{submit:function(i){i.preventDefault()}}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.web.name","\u540D\u79F0"),prop:"name"}},[t("el-input",{attrs:{disabled:e.disabled,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),maxLength:50},model:{value:e.ruleFormData.name,callback:function(i){e.$set(e.ruleFormData,"name",i)},expression:"ruleFormData.name"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.web.displayName","\u663E\u793A\u540D\u79F0"),prop:"displayName"}},[t("el-input",{attrs:{disabled:e.disabled,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.displayName,callback:function(i){e.$set(e.ruleFormData,"displayName",i)},expression:"ruleFormData.displayName"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.web.type","\u8D44\u6E90\u7C7B\u578B"),required:!0}},[t("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:e.disabled},on:{change:e.onChange},model:{value:e.ruleFormData.type,callback:function(i){e.$set(e.ruleFormData,"type",i)},expression:"ruleFormData.type"}},e._l(e.typeDict,function(i,s){return t("el-option",{key:s,attrs:{value:i.code,label:e.$i18nt(`Dynamics.${i.transKey}`,i.value)}})}),1)],1),t("el-form-item",{attrs:{required:!0,label:e.$i18nt("gd.web.resourceFile","\u8D44\u6E90\u6587\u4EF6")}},[e.uploadType==2?t("el-upload",{attrs:{"list-type":"picture-card","before-upload":e.beforeUpload,"file-list":e.fileList,"on-change":e.handleChange,action:"",accept:e.fileFormat},on:{preview:e.handlePreview},model:{value:e.ruleFormData.fileList,callback:function(i){e.$set(e.ruleFormData,"fileList",i)},expression:"ruleFormData.fileList"}},[e.fileList.length<1?t("div",[t("i",{staticClass:"el-icon-plus"})]):e._e()]):t("el-upload",{attrs:{"file-list":e.fileList,"before-upload":e.beforeUpload,"on-change":e.handleChange,remove:e.handleRemove,action:"",accept:e.fileFormat},model:{value:e.ruleFormData.fileList,callback:function(i){e.$set(e.ruleFormData,"fileList",i)},expression:"ruleFormData.fileList"}},[t("el-button",[t("i",{staticClass:"el-icon-plus"}),e._v(" "+e._s(e.$i18nt("gd.web.selectFile","\u9009\u62E9\u6587\u4EF6"))+" ")])],1)],1),e.disabled&&e.uploadType!=2&&e.uploadType!=6?t("el-form-item",{attrs:{label:e.$i18nt("gd.web.resourceContent","\u8D44\u6E90\u5185\u5BB9"),prop:"content"}},[t("el-input",{attrs:{type:"textarea",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),rows:16},model:{value:e.ruleFormData.content,callback:function(i){e.$set(e.ruleFormData,"content",i)},expression:"ruleFormData.content"}})],1):e._e(),t("el-form-item",{attrs:{label:e.$i18nt("gd.web.remarks","\u5907\u6CE8"),prop:"description"}},[t("el-input",{attrs:{type:"textarea",rows:2,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.description,callback:function(i){e.$set(e.ruleFormData,"description",i)},expression:"ruleFormData.description"}})],1),e.disabled?t("el-form-item",{attrs:{label:e.$i18nt("gd.web.path","\u5730\u5740"),prop:"address"}},[t("el-input",{attrs:{disabled:e.disabled},model:{value:e.ruleFormData.address,callback:function(i){e.$set(e.ruleFormData,"address",i)},expression:"ruleFormData.address"}})],1):e._e()],1)],1),t("el-dialog",{attrs:{visible:e.previewVisible,footer:null},on:{cancel:e.previewhandleCancel}},[t("img",{staticStyle:{width:"100%"},attrs:{alt:"example",src:e.previewImage}})])],1):t("el-drawer",{attrs:{visible:e.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:e.width,"custom-class":"gd-drawer-form","show-close":!1},on:{"update:visible":function(i){e.visible=i}}},[t("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showFullscreen:!1,showClose:!0},on:{changeEvent:e.doEvent},slot:"title"}),t("div",[t("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",attrs:{"label-width":"110px","label-position":e.labelPosition,model:e.ruleFormData,rules:e.rules},nativeOn:{submit:function(i){i.preventDefault()}}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.web.name","\u540D\u79F0"),prop:"name"}},[t("el-input",{attrs:{disabled:e.disabled,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),maxLength:50},model:{value:e.ruleFormData.name,callback:function(i){e.$set(e.ruleFormData,"name",i)},expression:"ruleFormData.name"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.web.displayName","\u663E\u793A\u540D\u79F0"),prop:"displayName"}},[t("el-input",{attrs:{disabled:e.disabled,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.displayName,callback:function(i){e.$set(e.ruleFormData,"displayName",i)},expression:"ruleFormData.displayName"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.web.type","\u8D44\u6E90\u7C7B\u578B"),required:!0}},[t("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:e.disabled},on:{change:e.onChange},model:{value:e.ruleFormData.type,callback:function(i){e.$set(e.ruleFormData,"type",i)},expression:"ruleFormData.type"}},e._l(e.typeDict,function(i,s){return t("el-option",{key:s,attrs:{value:i.code,label:e.$i18nt(`Dynamics.${i.transKey}`,i.value)}})}),1)],1),t("el-form-item",{attrs:{required:!0,label:e.$i18nt("gd.web.resourceFile","\u8D44\u6E90\u6587\u4EF6")}},[e.uploadType==2?t("el-upload",{attrs:{"list-type":"picture-card","before-upload":e.beforeUpload,"file-list":e.fileList,"on-change":e.handleChange,action:"",accept:e.fileFormat},on:{preview:e.handlePreview},model:{value:e.ruleFormData.fileList,callback:function(i){e.$set(e.ruleFormData,"fileList",i)},expression:"ruleFormData.fileList"}},[e.fileList.length<1?t("div",[t("i",{staticClass:"el-icon-plus"})]):e._e()]):t("el-upload",{attrs:{"file-list":e.fileList,"before-upload":e.beforeUpload,"on-change":e.handleChange,remove:e.handleRemove,action:"",accept:e.fileFormat},model:{value:e.ruleFormData.fileList,callback:function(i){e.$set(e.ruleFormData,"fileList",i)},expression:"ruleFormData.fileList"}},[t("el-button",[t("i",{staticClass:"el-icon-plus"}),e._v(" "+e._s(e.$i18nt("gd.web.selectFile","\u9009\u62E9\u6587\u4EF6"))+" ")])],1)],1),e.disabled&&e.uploadType!=2&&e.uploadType!=6?t("el-form-item",{attrs:{label:e.$i18nt("gd.web.resourceContent","\u8D44\u6E90\u5185\u5BB9"),prop:"content"}},[t("el-input",{attrs:{type:"textarea",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),rows:16},model:{value:e.ruleFormData.content,callback:function(i){e.$set(e.ruleFormData,"content",i)},expression:"ruleFormData.content"}})],1):e._e(),t("el-form-item",{attrs:{label:e.$i18nt("gd.web.remarks","\u5907\u6CE8"),prop:"description"}},[t("el-input",{attrs:{type:"textarea",rows:2,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.description,callback:function(i){e.$set(e.ruleFormData,"description",i)},expression:"ruleFormData.description"}})],1),e.disabled?t("el-form-item",{attrs:{label:e.$i18nt("gd.web.path","\u5730\u5740"),prop:"address"}},[t("el-input",{attrs:{disabled:e.disabled},model:{value:e.ruleFormData.address,callback:function(i){e.$set(e.ruleFormData,"address",i)},expression:"ruleFormData.address"}})],1):e._e()],1)],1)],1)},v=[],D=o.normalizeComponent(w,F,v,!1,null,"2b7d2042",null,null);const $=D.exports;const L={name:"GdWebResource",props:{height:{type:Number,default:100}},mixins:[c.tablesFilter,b],components:{editForm:$},data(){return{transKey:"gd.btn.add",loadData:a=>d(Object.assign(a,this.queryParam)).then(e=>e.data),selectedRows:[],selectedRowKeys:[],queryParam:{},fileList:[],formLoading:!1,webRes:null,uploadType:"1"}},computed:{getHeight(){return this.height},getFormColumns(){return this.formColumns.filter(a=>(["\u540D\u79F0","\u663E\u793A\u540D\u79F0","\u8D44\u6E90\u7C7B\u578B","\u5730\u5740"].includes(a.label)&&(a.disabled=this.webRes!=null),a))},...o.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},created(){},mounted(){},methods:{handleFileUpload(){},onSelectChange(a,e){this.selectedRows=e,this.selectedRowKeys=a},add(){this.transKey="gd.btn.add",this.webRes=null,this.uploadType="1",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])},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\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:(a,e,t)=>{this.delHand(a,e,t)}})},delHand(a,e,t){if(a!=="confirm"){t();return}let i=[];this.selectedRows.forEach(s=>{let r=f(s).then(l=>l);i.push(r)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(s=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,t(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0;const r=s.filter(l=>!l.success);r.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")+r[0].message),this.refresh()})},editForm(a){this.transKey="gd.btn.edit",this.webRes=a,this.initEdit(a)},initEdit(a){this.$refs.editForm.open(a)},saveQueries(a){this.queryParam={...a},this.refresh()},sbumit({data:a,record:e,btn:t},i,s){this.formLoading=!0,(e?p:u)(a).then(l=>{l.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),s(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+l.message),this.formLoading=!1})},refresh(){this.$refs.table.refresh()},doEvent(a){let e=a.item.functionName;this[e]&&this[e]()}},beforeDestroy(){}};var _=function(){var e=this,t=e._self._c;return t("div",{staticClass:"gd-page-view"},[t("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[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:"name",fn:function({column:i,row:s}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:s,highlight:""},on:{click:e.editForm}})]}},{key:"type",fn:function(i){return[t("el-tag",{style:e._f("dictColor")("web_type",i.row.type),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("web_type",i.row.type))+" ")])]}},{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operator"},[t("div",{staticClass:"gd-table-operatorl"},[t("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.web.name","\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(i){e.$set(e.queryParam,"name",i)},expression:"queryParam.name"}}),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.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:i,visible:s}){return[t("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:i,visible:s},on:{save:e.saveQueries}})]}}])})],1),t("editForm",{ref:"editForm",attrs:{formMode:e.formMode},on:{ok:e.refresh}})],1)},T=[],x=o.normalizeComponent(L,_,T,!1,null,"0cd4b373",null,null);const n=x.exports;n.install=function(a){a.component(n.name,n)};exports.GDpackage=n;exports.sysWebDataPage=d;
package/locale/en_US.js CHANGED
@@ -21,7 +21,11 @@ export default {
21
21
  tip: "Please enter the prompt",
22
22
  inputKey: "Please enter key",
23
23
  inputName: "Please enter name",
24
- selectFileTip: 'Please upload'
24
+ selectFileTip: 'Please upload',
25
+ information: '消息',
26
+ unreadMessage: '未读消息',
27
+ readMessages: '已读消息',
28
+ oneClickRead: '一键已读',
25
29
  },
26
30
  /*接口交互提示*/
27
31
  https: {
@@ -134,7 +138,8 @@ export default {
134
138
  noMoreData: "No more data available at the moment",
135
139
  loadMoreData: "Click to load more",
136
140
  contentTipData: "The current operation has not been saved. Are you sure you want to cancel it?",
137
- beenCopied: "Data has been copied"
141
+ beenCopied: "Data has been copied",
142
+ oneClickRead: "是否一键已读消息",
138
143
  },
139
144
  /*登录及登录成功提示*/
140
145
  login: {
@@ -362,7 +367,19 @@ export default {
362
367
  orgOldNameTip: "The historical data institution to which the user belongs will be updated. Are you sure you want to modify the institution to which the user belongs?",
363
368
  selectFile: "Select File",
364
369
  userAuthorization: "User Authorization",
365
- menuRoleApp: "Authorized Menu Of APP"
370
+ documentAuthorization: "Document Authorization",
371
+ menuRoleApp: "Authorized Menu Of APP",
372
+ selectAccessiblePath: "Select the accessible path",
373
+ selectFolderRoleAccess: "Select the folder path that this role can access",
374
+ pleaseEnterSelectPath: "Please enter or select a path",
375
+ setOperationPermissions: "Set operation permissions",
376
+ selectOperationsRolePerform: "Select the operations that this role can perform",
377
+ allow: "Allow",
378
+ refuse: "Refuse",
379
+ selectPath: "选择路径",
380
+ generalPermissions: "通用权限",
381
+ fileSpecialPermissions: "文件特殊权限",
382
+ folderSpecialPermissions: "文件夹特殊权限",
366
383
  },
367
384
  /*机构*/
368
385
  org: {
@@ -1346,7 +1363,17 @@ export default {
1346
1363
  updateInstitutions: "Update institutions",
1347
1364
  open: "Open",
1348
1365
  screenSwitch: "Full Screen Switch",
1349
- uploadDrag: "Drag and drop files or click upload"
1366
+ uploadDrag: "Drag and drop files or click upload",
1367
+ batchDownload: "Batch download",
1368
+ batchDelete: "Batch delete",
1369
+ management: "Management",
1370
+ exitManagement: "Exit Management",
1371
+ permissionManagement: "Permission Management",
1372
+ rename: "Rename",
1373
+ viewContent: "View content",
1374
+ createSubfolders: "Create folder",
1375
+ createfile: "Create a file",
1376
+ administrativePermissions: "Administrative permissions",
1350
1377
  },
1351
1378
  /*日志管理*/
1352
1379
  log: {
@@ -1597,11 +1624,14 @@ export default {
1597
1624
  status: "keadaan",
1598
1625
  content: "isi",
1599
1626
  notifyTo: "Diterima pemberitahuan dari",
1627
+ notifyingPerson: "通知人",
1628
+ notice: "通知",
1600
1629
  contentTip: "Silakan isi isi isi!",
1601
1630
  notifyToTip: "Silakan pilih orang yang menerima pemberitahuan!",
1602
1631
  detail: "rincian",
1603
1632
  publisher: "Penerbit",
1604
- releaseTime: "Waktu pembebasan"
1633
+ releaseTime: "Waktu pembebasan",
1634
+ attachment: "附件",
1605
1635
  },
1606
1636
  /*web资源*/
1607
1637
  web: {
@@ -1684,6 +1714,7 @@ export default {
1684
1714
  temPlate: {
1685
1715
  name: 'Name',
1686
1716
  templateLibrary: 'Template Library',
1717
+ templateType: '模板类型',
1687
1718
  diagram: 'Example diagram',
1688
1719
  state: 'State',
1689
1720
  creationTime: 'Creation time',
@@ -2513,6 +2544,8 @@ export default {
2513
2544
  topBorderLine: "Top border line",
2514
2545
  rightArrow: "Right arrow",
2515
2546
  defaultExpansion: "默认展开",
2547
+ week: 'W',
2548
+ month: 'M',
2516
2549
  },
2517
2550
  /*集群列表 */
2518
2551
  colony: {
@@ -2600,6 +2633,7 @@ export default {
2600
2633
  currentTime: "Current Time",
2601
2634
  currentUser: "Current User",
2602
2635
  pagination: "Pagination",
2636
+ calendar: 'calendar'
2603
2637
  },
2604
2638
  /*数据展示组件*/
2605
2639
  datadisplaycomponents: {
@@ -2611,6 +2645,7 @@ export default {
2611
2645
  statisticValue: "Statistic Value",
2612
2646
  statistic: "Statistic",
2613
2647
  tableGrid: "Table",
2648
+ fileDocument: "Document",
2614
2649
  },
2615
2650
  /*表单组件*/
2616
2651
  formcomponents: {
@@ -2701,7 +2736,8 @@ export default {
2701
2736
  winOpenLink: "Open link",
2702
2737
  openLink: "Open the link in a new window",
2703
2738
  routerPush: "Local route redirection",
2704
- openLinkSelf: "Open the link in this window"
2739
+ openLinkSelf: "Open the link in this window",
2740
+ initData: "Initialize data"
2705
2741
  },
2706
2742
  /*审计日志插件*/
2707
2743
  auditLogPlug: {
@@ -2758,18 +2794,32 @@ export default {
2758
2794
  columnId: "Number field",
2759
2795
  remarks: "Example: {Fixed prefix/Random prefix}{Year-Month-Day}{Serial number, Serial number type (Primary/Secondary, Entity/), Serial number range (Global/Within date)}{Fixed suffix/Random suffix} Acc202206130001zzz"
2760
2796
  },
2761
- //团队/团队成员
2762
- team: {
2763
- name: "Team name",
2764
- amdmin: "Administrator",
2765
- teamtype: "Team type",
2766
- describe: "Description",
2767
- createdTime: "Creation time",
2768
- owner: "Person in charge",
2769
- teamMember: "Team Member",
2770
- member: "Member",
2771
- user: "User",
2772
- team: "Team"
2797
+ /* 文档 */
2798
+ fileDocument: {
2799
+ inheritedPermissions: "Inherited permissions",
2800
+ parentDirectory: "Parent directory",
2801
+ currentFileName: "Current name",
2802
+ newFileName: "New name",
2803
+ document: "Document",
2804
+ folder: "Folder",
2805
+ filePath: "File path",
2806
+ originalParentDirectory: "Original superior directory",
2807
+ folderTip: "Cannot be in the same folder!",
2808
+ folderNum: " folders",
2809
+ fileNum: " files",
2810
+ noFolderSel: "No folder selected",
2811
+ noFilesTip: "~There are no files yet~",
2812
+ fast: "Fast",
2813
+ downloadFolderTip: "The downloaded data cannot contain folders",
2814
+ userGroup: "User/User Group",
2815
+ allow: "Allow",
2816
+ refuse: "Refuse",
2817
+ inheritParentPermissions: "Inherit permissions from the parent item",
2818
+ pathAddress: "Path Address",
2819
+ inheritParentPermissionsTip: "Do you want to inherit permissions from the parent item?",
2820
+ closeParentPermissionsTip: "Do you want to disable inheriting permissions from the parent item?",
2821
+ convertInheritedTip: "Convert inherited permissions",
2822
+ deleteInherited: "Delete inherited permissions"
2773
2823
  }
2774
2824
  }
2775
2825
  };