gds-plus-design-vue 1.2.4 → 1.2.5

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 (89) hide show
  1. package/lib/{chartbi.5eded588.js → chartbi.b5b6fdab.js} +1 -1
  2. package/lib/{chartbi.c3bc6adb.mjs → chartbi.b6818e8e.mjs} +3 -2
  3. package/lib/gd-initial.js +14 -14
  4. package/lib/gd-initial.mjs +3614 -2814
  5. package/lib/{main.00e2ba37.mjs → main.4e325110.mjs} +3 -3
  6. package/lib/main.6713b76c.js +1 -0
  7. package/lib/{main.b4ad6d81.mjs → main.955f770e.mjs} +16 -13
  8. package/lib/main.a28f67df.js +1 -0
  9. package/lib/{main.7e1495ec.js → main.b4a303dc.js} +1 -1
  10. package/lib/{main.b25a9b4c.mjs → main.be62e9a4.mjs} +12 -34
  11. package/lib/{main.55fab1ce.mjs → main.c59fc1e8.mjs} +7 -7
  12. package/lib/{main.a27e1e54.js → main.f3ae0933.js} +1 -1
  13. package/lib/messages.1346558e.js +9 -0
  14. package/lib/{messages.bc3bc0e8.mjs → messages.7e418640.mjs} +1095 -1065
  15. package/lib/style.css +3 -3
  16. package/lib/{system.account.868f96f9.mjs → system.account.64fbdaeb.mjs} +2 -2
  17. package/lib/{system.account.e82580de.js → system.account.7c43a95e.js} +1 -1
  18. package/lib/system.config.93d6cb7d.js +1 -0
  19. package/lib/{system.config.71615d2b.mjs → system.config.f0d2d130.mjs} +7 -2
  20. package/lib/{system.datasource.523ae242.js → system.datasource.4bb39222.js} +1 -1
  21. package/lib/{system.datasource.009a1673.mjs → system.datasource.61ff56ec.mjs} +3 -3
  22. package/lib/{system.dict.0111a3bc.js → system.dict.5a2e60fe.js} +1 -1
  23. package/lib/{system.dict.8f562e89.mjs → system.dict.a817cf68.mjs} +2 -2
  24. package/lib/{system.duplicatechecking.1865e065.js → system.duplicatechecking.65b77e64.js} +1 -1
  25. package/lib/{system.duplicatechecking.f517abed.mjs → system.duplicatechecking.751664ba.mjs} +15 -11
  26. package/lib/{system.email.4c484530.mjs → system.email.2f53252e.mjs} +2 -2
  27. package/lib/{system.email.70351605.js → system.email.fec5ae26.js} +1 -1
  28. package/lib/{system.fieldsecurity.9f9f73df.mjs → system.fieldsecurity.6feb94c3.mjs} +1 -1
  29. package/lib/{system.fieldsecurity.d11088e3.js → system.fieldsecurity.920adca4.js} +1 -1
  30. package/lib/{system.file.96b3ce1e.mjs → system.file.1930d109.mjs} +11 -6
  31. package/lib/system.file.5a9a5e0e.js +1 -0
  32. package/lib/{system.log.80feb1c4.mjs → system.log.61d303bd.mjs} +64 -81
  33. package/lib/system.log.b309c0e0.js +1 -0
  34. package/lib/{system.machine.6e46b7a3.js → system.machine.9368e508.js} +1 -1
  35. package/lib/{system.machine.52e8a4f3.mjs → system.machine.ed69ec93.mjs} +1 -1
  36. package/lib/{system.notice.b4247147.mjs → system.notice.bd18554e.mjs} +13 -10
  37. package/lib/system.notice.ff62c06a.js +1 -0
  38. package/lib/{system.noticereceived.eef2cf6e.mjs → system.noticereceived.4dc360c0.mjs} +31 -29
  39. package/lib/system.noticereceived.9550818b.js +1 -0
  40. package/lib/{system.onlineuser.de5f62bf.mjs → system.onlineuser.08a15a71.mjs} +22 -15
  41. package/lib/system.onlineuser.6cf4fe24.js +1 -0
  42. package/lib/{system.org.d22168d6.js → system.org.0c67131d.js} +1 -1
  43. package/lib/{system.org.94393315.mjs → system.org.6e858bf3.mjs} +3 -3
  44. package/lib/{system.permissions.3c5c3573.js → system.permissions.af548a3b.js} +1 -1
  45. package/lib/{system.permissions.ccbe352d.mjs → system.permissions.cc5ac7ac.mjs} +3 -3
  46. package/lib/{system.plugin.5d47e679.js → system.plugin.83d03fb2.js} +1 -1
  47. package/lib/{system.plugin.8caa5d1f.mjs → system.plugin.a1f1c194.mjs} +2 -2
  48. package/lib/{system.pos.caaef4fc.js → system.pos.eae2051e.js} +1 -1
  49. package/lib/{system.pos.e4be69c4.mjs → system.pos.eb8fd7dd.mjs} +2 -2
  50. package/lib/{system.promptmanagement.e73f64a2.js → system.promptmanagement.04501417.js} +1 -1
  51. package/lib/{system.promptmanagement.1ad89863.mjs → system.promptmanagement.c84db7d5.mjs} +7 -7
  52. package/lib/{system.role.0323ddd5.mjs → system.role.d2195303.mjs} +49 -48
  53. package/lib/system.role.e623c50b.js +1 -0
  54. package/lib/{system.sumberrules.42965c1e.mjs → system.sumberrules.141dc00b.mjs} +2 -2
  55. package/lib/{system.sumberrules.2babdd81.js → system.sumberrules.a01e1805.js} +1 -1
  56. package/lib/system.team.0cebcde7.js +1 -0
  57. package/lib/{system.team.28168433.mjs → system.team.27a6d5d5.mjs} +289 -246
  58. package/lib/system.teammembers.b67f003f.js +1 -0
  59. package/lib/{system.teammembers.08f3ce38.mjs → system.teammembers.d73c659f.mjs} +78 -40
  60. package/lib/{system.timers.040b9bce.mjs → system.timers.4a3dd57d.mjs} +2 -2
  61. package/lib/{system.timers.310b3710.js → system.timers.b27fcb6d.js} +1 -1
  62. package/lib/{system.translation.a4396166.js → system.translation.d2c982ed.js} +1 -1
  63. package/lib/{system.translation.c0068d8f.mjs → system.translation.d9488c23.mjs} +7 -7
  64. package/lib/{system.user.20a5e7b4.js → system.user.0664c21c.js} +5 -5
  65. package/lib/{system.user.84e77277.mjs → system.user.6874aa87.mjs} +101 -69
  66. package/lib/{system.useraffiliation.fb961d98.mjs → system.useraffiliation.5e3e2bab.mjs} +3 -3
  67. package/lib/{system.useraffiliation.307e3cd7.js → system.useraffiliation.6b7a1612.js} +1 -1
  68. package/lib/{system.webresource.2d0ab7a6.mjs → system.webresource.204911b7.mjs} +16 -18
  69. package/lib/system.webresource.5de18052.js +1 -0
  70. package/lib/{system.welcome.aaac4a40.mjs → system.welcome.79e15015.mjs} +1 -1
  71. package/lib/{system.welcome.67d20fa4.js → system.welcome.ec7aa744.js} +1 -1
  72. package/locale/en_US.js +25 -3
  73. package/locale/id_ID.js +25 -3
  74. package/locale/vi_VN.js +1967 -1945
  75. package/locale/zh_CN.js +26 -4
  76. package/package.json +1 -1
  77. package/lib/main.9c85b10c.js +0 -1
  78. package/lib/main.a794f7cf.js +0 -1
  79. package/lib/messages.fa3d97b5.js +0 -9
  80. package/lib/system.config.6aae9ea6.js +0 -1
  81. package/lib/system.file.001a01bc.js +0 -1
  82. package/lib/system.log.f7afb251.js +0 -1
  83. package/lib/system.notice.365ddd35.js +0 -1
  84. package/lib/system.noticereceived.5545acf8.js +0 -1
  85. package/lib/system.onlineuser.fd9fdc66.js +0 -1
  86. package/lib/system.role.b5b55ddd.js +0 -1
  87. package/lib/system.team.a3527834.js +0 -1
  88. package/lib/system.teammembers.4b11e49b.js +0 -1
  89. package/lib/system.webresource.0382b6b1.js +0 -1
@@ -1,8 +1,8 @@
1
- import { m as r, n as l } from "./chartbi.c3bc6adb.mjs";
2
- import { g as w, s as b } from "./system.account.868f96f9.mjs";
3
- import { t as u, m as _, a as v, n as T } from "./messages.bc3bc0e8.mjs";
4
- import { g as $, a as R } from "./system.fieldsecurity.9f9f73df.mjs";
5
- import "./system.email.4c484530.mjs";
1
+ import { m as r, n as l } from "./chartbi.b6818e8e.mjs";
2
+ import { g as w, s as b } from "./system.account.64fbdaeb.mjs";
3
+ import { t as u, m as _, a as v, n as T } from "./messages.7e418640.mjs";
4
+ import { g as $, a as R } from "./system.fieldsecurity.6feb94c3.mjs";
5
+ import "./system.email.2f53252e.mjs";
6
6
  function g(t) {
7
7
  return window.axios({
8
8
  url: "/sysNotice/page",
@@ -221,25 +221,25 @@ const D = {
221
221
  transKey: "gd.notice.title",
222
222
  prop: "title",
223
223
  label: "\u6807\u9898",
224
+ width: "260",
224
225
  type: "slot",
225
226
  slotType: "title",
226
227
  align: "left",
227
- fixed: !0,
228
- showOverflowTooltip: !0
228
+ fixed: !0
229
229
  },
230
230
  {
231
231
  transKey: "gd.notice.type",
232
232
  prop: "type",
233
+ width: "120",
233
234
  label: "\u7C7B\u578B",
234
235
  align: "left",
235
236
  type: "slot",
236
- slotType: "type",
237
- align: "center",
238
- showOverflowTooltip: !0
237
+ slotType: "type"
239
238
  },
240
239
  {
241
240
  transKey: "gd.notice.status",
242
241
  prop: "status",
242
+ width: "120",
243
243
  label: "\u72B6\u6001",
244
244
  align: "left",
245
245
  type: "slot",
@@ -248,18 +248,21 @@ const D = {
248
248
  {
249
249
  transKey: "gd.notice.createdTime",
250
250
  prop: "createdtime",
251
+ width: "180",
251
252
  label: "\u521B\u5EFA\u65F6\u95F4",
252
253
  align: "center"
253
254
  },
254
255
  {
255
256
  transKey: "gd.notice.publicTime",
256
257
  prop: "publictime",
258
+ width: "180",
257
259
  label: "\u53D1\u5E03\u65F6\u95F4",
258
260
  align: "center"
259
261
  },
260
262
  {
261
263
  transKey: "gd.notice.publicUserName",
262
264
  prop: "publicusername",
265
+ width: "200",
263
266
  label: "\u53D1\u5E03\u4EBA",
264
267
  align: "left"
265
268
  }
@@ -0,0 +1 @@
1
+ "use strict";const o=require("./chartbi.b5b6fdab.js"),y=require("./system.account.7c43a95e.js"),l=require("./messages.1346558e.js"),w=require("./system.fieldsecurity.920adca4.js");require("./system.email.fec5ae26.js");function f(t){return window.axios({url:"/sysNotice/page",method:"get",params:t})}function v(t){return window.axios({url:"/sysNotice/add",method:"post",data:t})}function T(t){return window.axios({url:"/sysNotice/edit",method:"post",data:t})}function $(t){return window.axios({url:"/sysNotice/delete",method:"post",data:t})}function p(t){return window.axios({url:"/sysNotice/detail",method:"get",params:t})}function m(t){return window.axios({url:"/sysNotice/changeStatus",method:"post",data:t})}function R(t){return window.axios({url:"/sysNotice/receiversByTypes",method:"get",params:t})}function C(t){return window.axios({url:"/sysMessage/userMessagesGrouped",method:"get",params:t})}function S(t){return window.axios({url:"/sysMessage/markAllAsRead",method:"post",data:t})}function K(t){return window.axios({url:"/sysMessage/markAsRead",method:"post",data:t})}function L(t,e){return window.axios({url:e||"/sysEvents/month",method:"get",params:t})}const x={name:"GdNoticeDetails",props:{modeType:{type:String,default:"dialog"}},data(){return{transKey:"gd.notice.detail",fullscreen:!1,visible:!1,width:"900",confirmLoading:!1,contentRecord:{},sysViewButtons:[],type:"pdf"}},computed:{height(){return this.screenHeight-24-40-36},headTitle(){return this.$i18nt(this.transKey,this.title)},style(){return`height:${this.fullscreen?this.screenHeight-80:this.screenHeight-240}px;`},...o.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},methods:{open(t){this.fullscreen=!1,this.visible=!0,this.confirmLoading=!0,this.sysNoticeDetail(t.id)},sysNoticeDetail(t){this.fullscreen=!1,p({id:t}).then(e=>{e.code===200?(this.contentRecord=e.data,this.$emit("onLoadCompleted"),e.data.attachment&&this.$nextTick(()=>{setTimeout(()=>{let s={name:`${e.data.title}.${this.type}`,fileId:e.data.attachment,fullscreen:!1};this.$refs.filePreview.open(s)},0)})):this.$message.error(e.message),this.confirmLoading=!1})},handleCancel(){this.visible=!1,this.contentRecord={}},closed(){this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(t){const e=t.item.functionName;this[e]&&this[e]()}}};var P=function(){var e=this,s=e._self._c;return s("div",[e.modeType==="dialog"?s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{formMode:e.formMode,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",transKey:e.transKey,labelPosition:e.labelPosition,"show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[s("gd-modal-title",{attrs:{slot:"title",title:e.headTitle,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],class:e.fullscreen?"modal-bodyq":"modal-body"},[s("div",{staticStyle:{"text-align":"center","font-size":"28px"}},[e._v(e._s(this.contentRecord.title))]),s("div",{staticStyle:{"text-align":"right","font-size":"12px",color:":#999"}},[s("span",[e._v(e._s(e.$i18nt("gd.notice.publisher","\u53D1\u5E03\u4EBA"))+": "+e._s(this.contentRecord.publicusername))]),s("span",{staticStyle:{"padding-left":"12px"}},[e._v(" "+e._s(this.contentRecord.publictime?this.contentRecord.publictime:"--")+" ")])]),s("el-divider"),s("div",[s("label",{staticClass:"ql-editor",domProps:{innerHTML:e._s(this.contentRecord.content)}})]),e.contentRecord.status!=2&&e.contentRecord.attachment!=""?s("gd-file-preview",{ref:"filePreview",attrs:{options:{},modeType:"component"}}):e._e()],1)],1):s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"30vh"}},[s("div",{staticStyle:{"text-align":"center","font-size":"28px"}},[e._v(e._s(this.contentRecord.title))]),s("div",{staticStyle:{"text-align":"right","font-size":"12px",color:":#999"}},[s("span",[e._v(e._s(e.$i18nt("gd.notice.publisher","\u53D1\u5E03\u4EBA"))+": "+e._s(this.contentRecord.publicusername))]),s("span",{staticStyle:{"padding-left":"12px"}},[e._v(" "+e._s(this.contentRecord.publictime?this.contentRecord.publictime:"--")+" ")])]),s("el-divider"),s("div",[s("label",{staticClass:"ql-editor",domProps:{innerHTML:e._s(this.contentRecord.content)}})]),e.contentRecord.status!=2&&e.contentRecord.attachment!=""?s("gd-file-preview",{ref:"filePreview",attrs:{options:{},modeType:"component"}}):e._e()],1)],1)},k=[],N=o.normalizeComponent(x,P,k,!1,null,"5cb794ba",null,null);const u=N.exports;function F(t){return window.axios({url:"/sysOrg/tree",method:"get",params:t})}function b(t){return window.axios({url:"/sysOrg/page",method:"get",params:t})}function D(t){return window.axios({url:"/sysOrg/add",method:"post",data:t})}function O(t){return window.axios({url:"/sysOrg/edit",method:"post",data:t})}function B(t){return window.axios({url:"/sysOrg/delete",method:"post",data:t})}function z(t){return window.axios({url:"/SysRoleDataControl/detail",method:"get",params:t})}function A(t){return window.axios({url:"/SysRoleDataControl/save",method:"post",data:t})}const H={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.notice.title",prop:"title",label:"\u6807\u9898",width:"260",type:"slot",slotType:"title",align:"left",fixed:!0},{transKey:"gd.notice.type",prop:"type",width:"120",label:"\u7C7B\u578B",align:"left",type:"slot",slotType:"type"},{transKey:"gd.notice.status",prop:"status",width:"120",label:"\u72B6\u6001",align:"left",type:"slot",slotType:"status"},{transKey:"gd.notice.createdTime",prop:"createdtime",width:"180",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{transKey:"gd.notice.publicTime",prop:"publictime",width:"180",label:"\u53D1\u5E03\u65F6\u95F4",align:"center"},{transKey:"gd.notice.publicUserName",prop:"publicusername",width:"200",label:"\u53D1\u5E03\u4EBA",align:"left"}],formColumns:[{transKey:"gd.notice.title",effectType:"input",prop:"title",label:"\u6807\u9898",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.notice.type",prop:"type",label:"\u7C7B\u578B",effectType:"radio",dictTypeCode:"notice_type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}],type:"slot",slotType:"notice_type"},{transKey:"gd.notice.noticeBucket",effectType:"editor",prop:"content",label:"\u5185\u5BB9",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.notice.attachment",effectType:"file",prop:"fileList",label:"\u9644\u4EF6",accept:".pdf",placeholder:"\u8BF7\u4E0A\u4F20",fileTitle:"\u4E0A\u4F20PDF\u6587\u4EF6",limit:1,rules:[],type:"slot",slotType:"fileList"},{transKey:"gd.notice.notifyTo",effectType:"notifyingPerson",prop:"notifyingPerson",label:"\u6536\u5230\u901A\u77E5\u4EBA",type:"slot",slotType:"notifyingPerson",rules:[],disabled:!1}],noticeFormColumns:[],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysNotice:add"},{displayName:"\u901A\u77E5\u4EBA",functionName:"notifyingPerson",show:!0,transKey:"gd.notice.notifyingPerson",icon:"el-icon-bell",name:"sysNotice:notifyingPerson"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysNotice:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysNotice:delete"},{displayName:"\u53D1\u5E03",functionName:"release",show:!0,btnType:"danger",transKey:"gd.btn.release",icon:"el-icon-s-promotion",name:"sysNotice:changeStatus"},{displayName:"\u64A4\u56DE",functionName:"rollback",show:!0,transKey:"gd.btn.withdraw",icon:"el-icon-refresh-left",btnType:"danger",name:"sysNotice:changeStatus"},{displayName:"\u67E5\u770B",functionName:"read",show:!0,transKey:"gd.btn.view",icon:"el-icon-reading",name:"sysNotice:detail"}],formButtons:[{displayName:"\u5B58\u4E3A\u8349\u7A3F",functionName:"saveDraft",show:!0,transKey:"gd.btn.saveDraft",icon:"el-icon-tickets",validate:!0},{displayName:"\u53D1\u5E03",functionName:"releaseTip",show:!0,btnType:"danger",transKey:"gd.btn.release",icon:"el-icon-s-promotion",validate:!0}],noticeFormButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.notice.noticeOriginName",prop:"searchValue",label:"\u5173\u952E\u8BCD",effectType:"input",rules:[]},{transKey:"gd.sysConfig.type",prop:"type",label:"\u7C7B\u578B",effectType:"select",dictTypeCode:"notice_type",rules:[]}]}}},M={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.org.displayName",prop:"name",label:"\u673A\u6784\u540D\u79F0",minWidth:"260",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.org.type",prop:"orgType",label:"\u673A\u6784\u7C7B\u578B",minWidth:"220",type:"slot",slotType:"orgType",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.code",prop:"code",width:"200",label:"\u552F\u4E00\u7F16\u7801",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.sort",prop:"sort",width:"120",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.org.remark",prop:"remark",minWidth:"300",type:"slot",slotType:"remark",label:"\u5907\u6CE8",align:"left"}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}};const E={props:{height:{type:Number,default:0},selectOrgRow:{type:Array,default:()=>[]}},mixins:[l.tablesFilter,M],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{},loadData:t=>b(Object.assign(t,this.queryParam)).then(e=>(setTimeout(()=>{let s=[...this.selectOrgRow];this.selectedRowKeys=[...s],this.onSelectChange(s,[])},10),e.data)),detail:{}}},computed:{getHeight(){return this.screenHeight-500},styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...o.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{},methods:{onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("ok",this.selectedRowKeys)},refresh(){this.$refs.table.refresh()},dictSwitch(t,e){let s=this.$options.filters.dictData(e).filter(i=>i.code==t)[0];return s!=null&&s.colour?s.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var q=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,filtering:!1,height:e.getHeight,initialLoading:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:n,highlight:""}})]}},{key:"orgType",fn:function(i){return[s("el-tag",{style:e._f("dictColor")("org_type",i.row.orgtype),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("org_type",i.row.orgtype))+" ")])]}},{key:"remark",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"remark",row:n}})]}}])})],1)])},I=[],j=o.normalizeComponent(E,q,I,!1,null,"b1509975",null,null);const U=j.exports;function _(t){return window.axios({url:"/sysApps/page",method:"get",params:t})}function G(t){return window.axios({url:"/sysApps/detail",method:"get",params:t})}function V(t){return window.axios({url:"/sysApps/add",method:"post",data:t})}function Q(t){return window.axios({url:"/sysApps/edit",method:"post",data:t})}function J(t){return window.axios({url:"/sysApps/delete",method:"post",data:t})}function W(t){return window.axios({url:"/SysPublishhistory/add",method:"post",data:t})}function X(t){return window.axios({url:"/SysPublishhistory/list",method:"post",data:t})}const Y={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.roleName",prop:"name",label:"\u89D2\u8272\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.org.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.sort",prop:"sort",width:"200",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.org.remark",prop:"remark",label:"\u5907\u6CE8",align:"left",showOverflowTooltip:!0}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}};const Z={props:{height:{type:Number,default:0},selectRoleRow:{type:Array,default:()=>[]}},mixins:[l.tablesFilter,Y],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{sysAppsId:""},loadData:t=>w.getRolePage(Object.assign(t,this.queryParam)).then(e=>(setTimeout(()=>{let s=[...this.selectRoleRow];this.selectedRowKeys=[...s],this.onSelectChange(s,[])},10),e.data)),detail:{}}},computed:{getHeight(){return this.screenHeight-500},styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...o.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{},methods:{getSysAppsPage(){_().then(t=>{t.success&&(this.queryParam.sysAppsId=t.data.rows[0].id)})},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("ok",this.selectedRowKeys)},refresh(){this.$refs.table.refresh()},dictSwitch(t,e){let s=this.$options.filters.dictData(e).filter(i=>i.code==t)[0];return s!=null&&s.colour?s.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},created(){this.getSysAppsPage()}};var ee=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,filtering:!1,height:e.getHeight,initialLoading:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:n,highlight:""}})]}}])})],1)])},te=[],se=o.normalizeComponent(Z,ee,te,!1,null,"4f37cfa6",null,null);const ie=se.exports,ne={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.fieldSecurity.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.fieldSecurity.teamType",prop:"teamType",label:"\u56E2\u961F\u7C7B\u578B",align:"left",type:"slot",slotType:"teamType",showOverflowTooltip:!0},{transKey:"gd.fieldSecurity.description",prop:"description",label:"\u8BF4\u660E",type:"slot",slotType:"description",align:"left"}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}};const re={props:{height:{type:Number,default:0},selectTeamRow:{type:Array,default:()=>[]}},mixins:[l.tablesFilter,ne],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{},loadData:t=>w.getSysTeamPage(Object.assign(t,this.queryParam)).then(e=>(setTimeout(()=>{let s=[...this.selectTeamRow];this.selectedRowKeys=[...s],this.onSelectChange(s,[])},10),e.data)),detail:{}}},computed:{getHeight(){return this.screenHeight-500},styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...o.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{},methods:{onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("ok",this.selectedRowKeys)},refresh(){this.$refs.table.refresh()},dictSwitch(t,e){let s=this.$options.filters.dictData(e).filter(i=>i.code==t)[0];return s!=null&&s.colour?s.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var ae=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,filtering:!1,height:e.getHeight,initialLoading:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:n}){return[s("span",[e._v(" "+e._s(n.name)+" ")])]}},{key:"teamType",fn:function({column:i,row:n}){return[s("span",[e._v(" "+e._s(e._f("dictType")("TeamType",n.teamtype))+" ")])]}},{key:"description",fn:function({column:i,row:n}){return[e._v(" "+e._s(n.description)+" ")]}}])})],1)])},oe=[],le=o.normalizeComponent(re,ae,oe,!1,null,"1c4840a6",null,null);const ce=le.exports,de={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:(t,...e)=>this.renderHeader(t,...e,{effectType:"checkbox",dictTypeCode:"state_code"})}],tableQueries:[{transKey:"gd.application.name",prop:"name",label:"\u540D\u79F0",effectType:"input",rules:[]}]}}};const ue={props:{height:{type:Number,default:300},selectUserRow:{type:Array,default:()=>[]}},mixins:[l.tablesFilter,de],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{searchValue:""},loadData:t=>{let e=JSON.parse(JSON.stringify(this.selectUserRow));return y.getUserPage(Object.assign(t,this.queryParam)).then(s=>{let i=[];return e.length>0?i=[...JSON.parse(JSON.stringify(e))].map(String):i=[...JSON.parse(JSON.stringify(this.selectUserRow))].map(String),this.$nextTick(()=>{this.selectedRowKeys=[...i],this.onSelectChange(i,[])}),s.data})},detail:{}}},computed:{getHeight(){return this.screenHeight-500},styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...o.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{},methods:{onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("ok",this.selectedRowKeys)},saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},init(t){this.queryParam.searchValue="",this.$refs.table.refresh()},dictSwitch(t,e){let s=this.$options.filters.dictData(e).filter(i=>i.code==t)[0];return s!=null&&s.colour?s.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},mounted(){}};var he=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,filtering:!1,height:e.getHeight,initialLoading:!0,showPagination:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"account",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"account",row:n,highlight:""}})]}},{key:"gender",fn:function(i){return[s("div",{staticStyle:{cursor:"pointer"}},[s("el-tag",{style:e._f("dictColor")("gender",i.row.gender),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("gender",i.row.gender))+" ")])],1)]}},{key:"statecodes",fn:function(i){return[s("div",{staticStyle:{cursor:"pointer"}},[i.row.statecodes==1?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"18px",color:"#999"}})])]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl",staticStyle:{width:"270px"}},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.user.keywordTip","\u8BF7\u8F93\u5165\u59D3\u540D\u3001\u8D26\u53F7\u3001\u624B\u673A\u53F7\u5173\u952E\u8BCD"),clearable:""},nativeOn:{keyup:function(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.searchValue,callback:function(i){e.$set(e.queryParam,"searchValue",i)},expression:"queryParam.searchValue"}}),s("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1)])]},proxy:!0}])})],1)])},pe=[],ge=o.normalizeComponent(ue,he,pe,!1,null,"b79cacd5",null,null);const fe=ge.exports;const me={data(){return{confirmLoading:!0,sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],type:"noticeuser",fullScreen:!1,width:"1000px",visible:!1,height:300,userRowList:[],teamRowList:[],roleRowList:[],orgRowList:[],recordData:"",enterType:""}},components:{noticeUser:fe,notcieOrg:U,noticeRole:ie,noticeTeam:ce},computed:{getButtons(){return this.sysViewButtons.filter(t=>!(this.enterType=="1"&&t.functionName==="handleSubmit"))},...o.mapGetters(["screenHeight","tableLists","primaryColor"])},methods:{toggleFullscreen(){this.fullScreen=!this.fullScreen},init(t,e){this.recordData=t,this.fullScreen=!1,this.confirmLoading=!1,this.visible=!0,this.type="noticeuser",this.userRowList=[],this.teamRowList=[],this.roleRowList=[],this.orgRowList=[],this.enterType=e,t&&(this.getData(t,e),setTimeout(()=>{this.$refs.noticeuserRef.init(this.userRowList)},100))},getData(t,e){R({id:e=="1"?t[0]:t}).then(s=>{s.data.receivergroups.forEach(n=>{n.receivertype=="1"&&(this.userRowList=n.receiveridlist),n.receivertype=="2"&&(this.roleRowList=n.receiveridlist),n.receivertype=="3"&&(this.teamRowList=n.receiveridlist),n.receivertype=="4"&&(this.orgRowList=n.receiveridlist)})})},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},tabChange(t){this.$nextTick(()=>{setTimeout(()=>{},0)})},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.userRowList=[],this.teamRowList=[],this.roleRowList=[],this.orgRowList=[]},handleSubmit(){let t=[{receiverType:"1",receiverIdList:this.userRowList.map(Number)},{receiverType:"2",receiverIdList:this.roleRowList.map(Number)},{receiverType:"3",receiverIdList:this.teamRowList.map(Number)},{receiverType:"4",receiverIdList:this.orgRowList.map(Number)}];this.handleCancel(),this.$emit("ok",t)},selectUser(t){this.userRowList=t},selectTeam(t){this.teamRowList=t},selectRole(t){this.roleRowList=t},selectOrg(t){this.orgRowList=t}}};var ye=function(){var e=this,s=e._self._c;return s("el-dialog",{class:e.fullScreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{width:e.width,visible:e.visible,fullscreen:e.fullScreen,footer:null,top:"30px","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.$i18nt("gd.notice.notifyingPerson","\u901A\u77E5")}`,fullscreen:e.fullScreen,buttons:e.getButtons,confirmLoading:e.confirmLoading,closed:"handleCancel",showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},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-tabs",{attrs:{type:"card"},on:{"tab-click":e.tabChange},model:{value:e.type,callback:function(i){e.type=i},expression:"type"}},[s("el-tab-pane",{attrs:{name:"noticeuser",label:e.$i18nt("gd.fieldSecurity.user","\u7528\u6237")}},[e.type=="noticeuser"?s("noticeUser",{ref:"noticeuserRef",attrs:{selectUserRow:e.userRowList,height:e.height},on:{ok:e.selectUser}}):e._e()],1),s("el-tab-pane",{attrs:{name:"noticeteam",label:e.$i18nt("gd.fieldSecurity.team","\u56E2\u961F")}},[e.type=="noticeteam"?s("noticeTeam",{ref:"noticeteamRef",attrs:{selectTeamRow:e.teamRowList,height:e.height},on:{ok:e.selectTeam}}):e._e()],1),s("el-tab-pane",{attrs:{name:"noticerole",label:e.$i18nt("gd.fieldSecurity.role","\u89D2\u8272")}},[e.type=="noticerole"?s("noticeRole",{ref:"noticeroleRef",attrs:{selectRoleRow:e.roleRowList,height:e.height},on:{ok:e.selectRole}}):e._e()],1),s("el-tab-pane",{attrs:{name:"noticeorg",label:e.$i18nt("gd.pagecomponents.institution","\u673A\u6784")}},[e.type=="noticeorg"?s("notcieOrg",{ref:"noticeorgRef",attrs:{selectOrgRow:e.orgRowList,height:e.height},on:{ok:e.selectOrg}}):e._e()],1)],1)],1)])],1)},we=[],be=o.normalizeComponent(me,ye,we,!1,null,"62d3bb5d",null,null);const _e=be.exports;const ve={name:"GdNotice",props:{height:{type:Number,default:100}},mixins:[l.tablesFilter,H],data(){return{transKey:"gd.btn.add",loadData:t=>f(Object.assign(t,this.queryParam)).then(e=>(this.allData=e.data.rows,e.data)),allData:[],selectedRowKeys:[],selectedRows:[],queryParam:{},formLoading:!1,mockData:[],targetKeys:[],noticeUserIdList:[],status:0,type:"noticeUser",confirmLoading:!1,fileType:"pdf",style:"width: 100%; height: 580px;",headers:{"Content-Type":"multipart/form-data"},fileListFile:[],imgList:[],currentImg:"",ruleFormData:{fileList:"",name:"",notifyingPerson:[],fileid:""},record:{},allEmpty:!0,noticeType:"",fileAccept:["application/pdf"]}},components:{detailForm:u,editNoticeForm:_e},computed:{getHeight(){return this.height},getFormColumns(){return this.formColumns.filter(e=>!(e.prop==="notifyingPerson"&&this.transKey==="gd.btn.add"||(this.noticeType==3&&e.prop==="content"?e.rules=[]:this.noticeType!=3&&e.prop==="content"&&(e.rules=[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]),(this.noticeType==1||this.noticeType==2)&&e.prop==="fileList")))},getButtons(){return this.formButtons.filter(t=>!(this.transKey==="gd.btn.add"&&t.functionName==="releaseTip"))},...o.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},mounted(){(this.$route.params.id||this.$route.query.id)&&(this.transKey="gd.notice.detail",setTimeout(()=>{this.allData.forEach(t=>{(t.id==this.$route.params.id||t.id==this.$route.query.id)&&this.$refs.detailForm.open(t)})},1e3))},methods:{onSelectChange(t,e){if(this.selectedRowKeys=t,this.selectedRows=e,e.length==0){this.baseHideBtns([],2);return}if(e.length>1){this.baseHideBtns(["\u5220\u9664","\u53D1\u5E03","\u64A4\u56DE","\u7F16\u8F91"],2);return}let s=[],i=e.filter(a=>a.status==0),n=e.filter(a=>a.status==1),r=e.filter(a=>a.status==2);i.length==e.length?s=["\u64A4\u56DE"]:n.length==e.length?s=["\u5220\u9664","\u53D1\u5E03","\u7F16\u8F91"]:r.length==e.length&&(s=["\u64A4\u56DE","\u53D1\u5E03","\u7F16\u8F91"]),this.baseHideBtns(s,2)},baseHideBtns(t,e=1){let s=[...this.tableButtons];s.map(i=>(e===1?i.show=!t.includes(i.id):i.show=!t.includes(i.displayName),i)),this.tableButtons=[...s]},add(){this.transKey="gd.btn.add",this.fileListFile=[],this.ruleFormData={fileList:"",name:"",notifyingPerson:[],fileid:""},this.$refs.editForm.open(null)},noticePerson(t){this.$refs.editNoticeFormRef.init(t.id,"2")},notifyingPerson(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.operateTip","\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.readTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E"));return}this.$refs.editNoticeFormRef.init(this.selectedRowKeys,"1")},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.sysNoticeDetail(this.selectedRows[0].id),this.transKey="gd.btn.edit",this.$refs.editForm.open(Object.assign({...this.selectedRows[0]},{type:String(this.selectedRows[0].type),content:this.selectedRows[0].content,fileid:this.selectedRows[0].attachment}))},editForm(t){this.transKey="gd.notice.detail",this.$refs.detailForm.open(t)},handleOk(t){this.ruleFormData.notifyingPerson=[],this.ruleFormData.notifyingPerson=t,this.allEmpty=Array.isArray(t)?t.every(e=>!e.receiverIdList||e.receiverIdList.length===0):!0},sbumit({data:t,record:e,btn:s},i,n){if(this.status=s.item.functionName=="releaseTip"?1:0,e!=null){let r={id:t.id,content:t.content,status:this.status,title:t.title,type:t.type,receivergroups:this.ruleFormData.notifyingPerson,attachment:this.ruleFormData.fileid};this.formLoading=!0,T(Object.assign(this.noticeDetail,r)).then(a=>{a.success?(this.status==1&&n(),this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F"))):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25")+a.message),this.formLoading=!1,this.refresh()})}else{let r={content:t.content,status:this.status,title:t.title,type:t.type,receiverGroups:this.ruleFormData.notifyingPerson,attachment:this.ruleFormData.fileid};this.formLoading=!0,v(r).then(a=>{a.success?(this.refresh(),this.status==1?(this.formLoading=!1,n()):setTimeout(()=>{this.$nextTick(()=>{f({pageNo:1,pageSize:50}).then(c=>{this.allData=c.data.rows;const d=this.allData.filter(g=>g.title==t.title&&g.content==t.content);d.length>0&&(this.transKey="gd.btn.edit",this.sysNoticeDetail(d[0].id),this.$refs.editForm.open(Object.assign({...d[0]},{type:String(d[0].type),content:d[0].content,fileid:d[0].attachment}))),this.formLoading=!1})})},10),this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F"))):(this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25")+a.message),this.refresh(),this.formLoading=!1)})}},saveQueries(t){this.queryParam=t,this.refresh()},read(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.readTip","\u8BF7\u9009\u62E9\u9700\u8981\u67E5\u770B\u7684\u6570\u636E"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.readTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E"));return}this.$refs.detailForm.open(this.selectedRows[0])},rollback(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91"));return}this.$confirm(this.$i18nt("gd.https.withdrawContent","\u786E\u8BA4\u64A4\u56DE?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.withdrawOk","\u7ACB\u5373\u64A4\u56DE!"),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.rollbackHand(t,e,s)}})},rollbackHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(n=>{let r=m({id:n.id,status:2}).then(a=>a);i.push(r)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(n=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,s();const r=n.filter(a=>!a.success);r.length===0?this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+r[0].message),this.refresh()})},release(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91"));return}this.$confirm(this.$i18nt("gd.https.releaseContent","\u786E\u8BA4\u53D1\u5E03?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.releaseOk","\u7ACB\u5373\u53D1\u5E03!"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.releaseHand(t,e,s)}})},releaseHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(n=>{let r=m({id:n.id,status:1}).then(a=>a);i.push(r)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(n=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,s();const r=n.filter(a=>!a.success);r.length===0?this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+r[0].message),this.refresh()})},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:(t,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(n=>{let r=$(n).then(a=>a);i.push(r)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(n=>{s();const r=n.filter(a=>!a.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(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},sysNoticeDetail(t){p({id:t}).then(e=>{this.noticeDetail=e.data,e.data.attachment&&(this.ruleFormData.fileid=e.data.attachment,this.infoDownLoad(e.data.attachment)),this.ruleFormData.notifyingPerson=e.data.receivergroups,this.allEmpty=Array.isArray(this.ruleFormData.notifyingPerson)?this.ruleFormData.notifyingPerson.every(s=>!s.receiverIdList||s.receiverIdList.length===0):!0,this.noticeType=e.data.type})},getMock(t){const e=[],s=[];y.sysUserSelector().then(i=>{this.confirmLoading=!1;for(let n=0;n<i.data.length;n++){const r=i.data[n],a={key:r.id.toString(),label:r.name,description:`description of ${r.name}`};if(t)for(let c=0;c<t.noticeuseridlist.length;c++)a.key===t.noticeuseridlist[c]&&e.push(t.noticeuseridlist[c]);s.push(a)}this.mockData=s,this.targetKeys=e})},handleChange(t){this.targetKeys=t},refresh(){this.$refs.table.refresh()},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},handleFile(t){if(!!["image"].includes("file")&&!t){this.fileList=[];return}},uploadFile(t){if(!this.fileAccept.includes(t.file.type)){this.$message.error(this.$i18nt("gd.view.fileAcceptTip","\u6587\u4EF6\u7C7B\u578B\u4E0D\u652F\u6301\uFF01")),t.onError();return}new FormData().append("file",t.file),l.sysFileInfoUploadShop(t).then(i=>{if(i.code===200){const n=i.data.url,a=(this.ruleFormData&&this.ruleFormData.fileList?this.ruleFormData.fileList.split(","):[]).concat([n]);return this.ruleFormData.fileList=a.join(","),this.ruleFormData.name=i.data.fileoriginname.substring(0,i.data.fileoriginname.lastIndexOf(".")),this.ruleFormData.fileid=i.data.id.toString(),t.onSuccess(i.data),i.data}else this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25:")+i.message),t.onError()}).catch(i=>{t.onError(i)})},successFile(t,e,s){},removeFile(t,e){let s=[];e.forEach(i=>{i.response&&i.response.id?s.push(i.response.id):s.push(i.url)}),this.ruleFormData.fileList=s.join(","),this.ruleFormData.name="",this.ruleFormData.fileid=""},previewFile(t){let e="";t.response&&t.response.fileOriginName?(e=t.response.fileOriginName,t.response.url):(e=t.name,t.url);const s=e.substr(e.lastIndexOf(".")+1).toLowerCase();["gif","jpeg","png","jpg","JPG","PNG"].includes(s)?this.imgPreview(t.response.id):this.downFile(t)},imgPreview(t){l.sysFileInfoPreview({id:t}).then(e=>{const s=window.URL.createObjectURL(new Blob([e]));this.imgList=[s],this.currentImg=s,this.$refs.imgPreview.open()})},downFile(t){this.$refs.filePreview.open(Object.assign(t,{fileId:t.response&&t.response.fileoriginname?t.response.id:t.fileId}))},getBlobType(t){let e="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";return this.fileType==="pdf"?e="application/pdf":this.fileType==="docx"&&(e="application/msword"),e},infoDownLoad(t){return l.sysFileInfoDetail({id:t}).then(e=>{this.ruleFormData.fileList=e.data.url,this.ruleFormData.name=e.data.fileoriginname.substring(0,e.data.fileoriginname.lastIndexOf(".")),this.ruleFormData.fileid=e.data.id.toString(),this.fileListFile=[{name:e.data.fileoriginname,url:e.data.url,response:{id:e.data.id,url:e.data.url,fileoriginname:e.data.fileoriginname}}]})},getDictionary(t){return this.$options.filters.dictData(t)},changeMode(t){this.noticeType=t}}};var Te=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},on:{onChange:e.onSelectChange},scopedSlots:e._u([{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.notice.title","\u6807\u9898"),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.SearchValue,callback:function(i){e.$set(e.queryParam,"SearchValue",i)},expression:"queryParam.SearchValue"}}),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"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"title",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"title",row:n,highlight:""},on:{click:e.editForm}})]}},{key:"type",fn:function(i){return[s("el-tag",{style:e._f("dictColor")("notice_type",i.row.type),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_type",i.row.type))+" ")])]}},{key:"status",fn:function(i){return[s("el-tag",{style:e._f("dictColor")("notice_status",i.row.status),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_status",i.row.status))+" ")])]}},{key:"filtering",fn:function({colse:i,visible:n}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:i,visible:n},on:{save:e.saveQueries}})]}}])})],1),s("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"100%",transKey:e.transKey,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode,buttons:e.getButtons,loading:e.formLoading},on:{sbumit:e.sbumit},scopedSlots:e._u([{key:"targetKeys",fn:function({data:i,column:n}){return[s("el-transfer",{attrs:{data:e.mockData,titles:["\u672A\u9009","\u5DF2\u9009"],filterable:""},on:{change:e.handleChange},model:{value:e.targetKeys,callback:function(r){e.targetKeys=r},expression:"targetKeys"}})]}},{key:"notifyingPerson",fn:function({data:i,column:n}){return[s("el-button",{attrs:{type:e.allEmpty?"danger":"primary"},on:{click:function(r){return e.noticePerson(i)}}},[s("i",{staticClass:"gd-icons el-icon-bell"}),e._v(" "+e._s(e.$i18nt("gd.notice.notice","\u901A\u77E5")))])]}},{key:"notice_type",fn:function({data:i,column:n}){return[s("el-radio-group",{on:{change:e.changeMode},model:{value:i.type,callback:function(r){e.$set(i,"type",r)},expression:"data.type"}},e._l(e.getDictionary("notice_type"),function(r,a){return s("el-radio",{key:r.code,attrs:{label:r.code}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${r.transkey}`,r.name))+" ")])}),1)]}},{key:"fileList",fn:function({data:i,column:n}){return[s("el-upload",{attrs:{action:"","on-preview":e.previewFile,"on-remove":e.removeFile,multiple:"",limit:n.limit,accept:n.accept,"http-request":e.uploadFile,"file-list":e.fileListFile,"on-success":e.successFile}},[s("el-button",{attrs:{size:"mini",type:"primary"}},[s("i",{staticClass:"gd-icons gd-icon-shangchuan"}),e._v(" "+e._s(e.$i18nt("gd.btn.upload","\u4E0A\u4F20"))+" ")])],1)]}}])}),s("detailForm",{ref:"detailForm"}),s("editNoticeForm",{ref:"editNoticeFormRef",on:{ok:e.handleOk}}),s("gd-file-preview",{ref:"filePreview"}),s("gd-img-preview",{ref:"imgPreview",attrs:{filePreviewShow:e.imgList.length>0,imgList:e.imgList,currentImg:e.currentImg}})],1)},$e=[],Re=o.normalizeComponent(ve,Te,$e,!1,null,"7a480ef7",null,null);const h=Re.exports;h.install=function(t){t.component(h.name,h)};u.install=function(t){t.component(u.name,u)};exports.GDpackage=h;exports.detailForm=u;exports.getOrgDetail=z;exports.getOrgPage=b;exports.getOrgTree=F;exports.saveOrgDetail=A;exports.sysAppsAdd=V;exports.sysAppsDelete=J;exports.sysAppsDetail=G;exports.sysAppsEdit=Q;exports.sysAppsPage=_;exports.sysMessageMarkAllAsRead=S;exports.sysMessageMarkAsRead=K;exports.sysMessageUserMessagesGrouped=C;exports.sysMonth=L;exports.sysNoticeDetail=p;exports.sysOrgAdd=D;exports.sysOrgDelete=B;exports.sysOrgEdit=O;exports.sysPublishhistoryAdd=W;exports.sysPublishhistoryList=X;
@@ -1,14 +1,14 @@
1
- import { m as l, n as o } from "./chartbi.c3bc6adb.mjs";
2
- import { t as n } from "./messages.bc3bc0e8.mjs";
3
- import { d as c } from "./system.notice.b4247147.mjs";
4
- function u(t) {
1
+ import { m as l, n as o } from "./chartbi.b6818e8e.mjs";
2
+ import { t as n } from "./messages.7e418640.mjs";
3
+ import { d as c } from "./system.notice.bd18554e.mjs";
4
+ function d(t) {
5
5
  return window.axios({
6
6
  url: "/sysNotice/received",
7
7
  method: "get",
8
8
  params: t
9
9
  });
10
10
  }
11
- const d = {
11
+ const u = {
12
12
  data() {
13
13
  return {
14
14
  tableColumns: [
@@ -21,25 +21,25 @@ const d = {
21
21
  transKey: "gd.notice.title",
22
22
  prop: "title",
23
23
  label: "\u6807\u9898",
24
+ width: "260",
24
25
  type: "slot",
25
26
  slotType: "title",
26
27
  align: "left",
27
- fixed: !0,
28
- showOverflowTooltip: !0
28
+ fixed: !0
29
29
  },
30
30
  {
31
31
  transKey: "gd.notice.type",
32
32
  prop: "type",
33
+ width: "120",
33
34
  label: "\u7C7B\u578B",
34
35
  align: "left",
35
36
  type: "slot",
36
- slotType: "type",
37
- align: "center",
38
- showOverflowTooltip: !0
37
+ slotType: "type"
39
38
  },
40
39
  {
41
40
  transKey: "gd.notice.status",
42
41
  prop: "status",
42
+ width: "120",
43
43
  label: "\u72B6\u6001",
44
44
  align: "left",
45
45
  type: "slot",
@@ -48,12 +48,14 @@ const d = {
48
48
  {
49
49
  transKey: "gd.notice.publicTime",
50
50
  prop: "publictime",
51
+ width: "180",
51
52
  label: "\u53D1\u5E03\u65F6\u95F4",
52
53
  align: "center"
53
54
  },
54
55
  {
55
56
  transKey: "gd.notice.publicUserName",
56
57
  prop: "publicusername",
58
+ width: "200",
57
59
  label: "\u53D1\u5E03\u4EBA",
58
60
  align: "left"
59
61
  }
@@ -83,11 +85,11 @@ const p = {
83
85
  default: 100
84
86
  }
85
87
  },
86
- mixins: [n, d],
88
+ mixins: [n, u],
87
89
  data() {
88
90
  return {
89
91
  transKey: "gd.btn.add",
90
- loadData: (t) => u(Object.assign(t, this.queryParam)).then((e) => (this.allData = e.data.rows, e.data)),
92
+ loadData: (t) => d(Object.assign(t, this.queryParam)).then((e) => (this.allData = e.data.rows, e.data)),
91
93
  selectedRowKeys: [],
92
94
  selectedRows: [],
93
95
  queryParam: {},
@@ -131,23 +133,23 @@ const p = {
131
133
  }
132
134
  };
133
135
  var f = function() {
134
- var e = this, r = e._self._c;
135
- return r("div", { staticClass: "gd-page-view" }, [r("div", { staticClass: "page-view-list" }, [r("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: "operator", fn: function() {
136
- return [r("div", { staticClass: "gd-table-operator" }, [r("div", { staticClass: "gd-table-operatorl" }, [r("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.notice.title", "\u6807\u9898"), clearable: "" }, nativeOn: { keyup: function(a) {
136
+ var e = this, i = e._self._c;
137
+ return i("div", { staticClass: "gd-page-view" }, [i("div", { staticClass: "page-view-list" }, [i("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: "operator", fn: function() {
138
+ return [i("div", { staticClass: "gd-table-operator" }, [i("div", { staticClass: "gd-table-operatorl" }, [i("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.notice.title", "\u6807\u9898"), clearable: "" }, nativeOn: { keyup: function(a) {
137
139
  return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.refresh.apply(null, arguments);
138
140
  } }, model: { value: e.queryParam.SearchValue, callback: function(a) {
139
141
  e.$set(e.queryParam, "SearchValue", a);
140
- }, expression: "queryParam.SearchValue" } }), r("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [r("i", { staticClass: "el-input__icon el-icon-search" })])], 1)])];
141
- }, proxy: !0 }, { key: "title", fn: function({ column: a, row: i }) {
142
- return [r("gd-tooltip", { attrs: { rowKey: "title", row: i, highlight: "" }, on: { click: e.editForm } })];
142
+ }, expression: "queryParam.SearchValue" } }), i("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [i("i", { staticClass: "el-input__icon el-icon-search" })])], 1)])];
143
+ }, proxy: !0 }, { key: "title", fn: function({ column: a, row: s }) {
144
+ return [i("gd-tooltip", { attrs: { rowKey: "title", row: s, highlight: "" }, on: { click: e.editForm } })];
143
145
  } }, { key: "type", fn: function(a) {
144
- return [r("el-tag", { style: e._f("dictColor")("notice_type", a.row.type), attrs: { effect: "dark" } }, [e._v(" " + e._s(e._f("dictType")("notice_type", a.row.type)) + " ")])];
146
+ return [i("el-tag", { style: e._f("dictColor")("notice_type", a.row.type), attrs: { effect: "dark" } }, [e._v(" " + e._s(e._f("dictType")("notice_type", a.row.type)) + " ")])];
145
147
  } }, { key: "status", fn: function(a) {
146
- return [r("el-tag", { style: e._f("dictColor")("notice_status", a.row.status), attrs: { effect: "dark" } }, [e._v(" " + e._s(e._f("dictType")("notice_status", a.row.status)) + " ")])];
147
- } }, { key: "filtering", fn: function({ colse: a, visible: i }) {
148
- return [r("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: a, visible: i }, on: { save: e.saveQueries } })];
149
- } }]) })], 1), r("detailForm", { ref: "detailForm" })], 1);
150
- }, y = [], m = /* @__PURE__ */ o(
148
+ return [i("el-tag", { style: e._f("dictColor")("notice_status", a.row.status), attrs: { effect: "dark" } }, [e._v(" " + e._s(e._f("dictType")("notice_status", a.row.status)) + " ")])];
149
+ } }, { key: "filtering", fn: function({ colse: a, visible: s }) {
150
+ return [i("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: a, visible: s }, on: { save: e.saveQueries } })];
151
+ } }]) })], 1), i("detailForm", { ref: "detailForm" })], 1);
152
+ }, y = [], h = /* @__PURE__ */ o(
151
153
  p,
152
154
  f,
153
155
  y,
@@ -157,11 +159,11 @@ var f = function() {
157
159
  null,
158
160
  null
159
161
  );
160
- const s = m.exports;
161
- s.install = function(t) {
162
- t.component(s.name, s);
162
+ const r = h.exports;
163
+ r.install = function(t) {
164
+ t.component(r.name, r);
163
165
  };
164
166
  export {
165
- s as G,
166
- u as s
167
+ r as G,
168
+ d as s
167
169
  };
@@ -0,0 +1 @@
1
+ "use strict";const l=require("./chartbi.b5b6fdab.js"),o=require("./messages.1346558e.js"),c=require("./system.notice.ff62c06a.js");function n(t){return window.axios({url:"/sysNotice/received",method:"get",params:t})}const u={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.notice.title",prop:"title",label:"\u6807\u9898",width:"260",type:"slot",slotType:"title",align:"left",fixed:!0},{transKey:"gd.notice.type",prop:"type",width:"120",label:"\u7C7B\u578B",align:"left",type:"slot",slotType:"type"},{transKey:"gd.notice.status",prop:"status",width:"120",label:"\u72B6\u6001",align:"left",type:"slot",slotType:"status"},{transKey:"gd.notice.publicTime",prop:"publictime",width:"180",label:"\u53D1\u5E03\u65F6\u95F4",align:"center"},{transKey:"gd.notice.publicUserName",prop:"publicusername",width:"200",label:"\u53D1\u5E03\u4EBA",align:"left"}],tableQueries:[{transKey:"gd.notice.noticeOriginName",prop:"searchValue",label:"\u5173\u952E\u8BCD",effectType:"input",rules:[]},{transKey:"gd.sysConfig.type",prop:"type",label:"\u7C7B\u578B",effectType:"select",dictTypeCode:"notice_type",rules:[]}]}}};const d={name:"GdNoticeReceived",props:{height:{type:Number,default:100}},mixins:[o.tablesFilter,u],data(){return{transKey:"gd.btn.add",loadData:t=>n(Object.assign(t,this.queryParam)).then(e=>(this.allData=e.data.rows,e.data)),selectedRowKeys:[],selectedRows:[],queryParam:{},formLoading:!1,allData:[]}},components:{detailForm:c.detailForm},computed:{getHeight(){return this.height},...l.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{editForm(t){this.transKey="gd.notice.detail",this.$refs.detailForm.open(t)},saveQueries(t){this.queryParam=t,this.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},refresh(){this.$refs.table.refresh()},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},mounted(){(this.$route.params.id||this.$route.query.id)&&(this.transKey="gd.notice.detail",setTimeout(()=>{this.allData.forEach(t=>{(t.id==this.$route.params.id||t.id==this.$route.query.id)&&this.$refs.detailForm.open(t)})},1e3))}};var p=function(){var e=this,i=e._self._c;return i("div",{staticClass:"gd-page-view"},[i("div",{staticClass:"page-view-list"},[i("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:"operator",fn:function(){return[i("div",{staticClass:"gd-table-operator"},[i("div",{staticClass:"gd-table-operatorl"},[i("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.notice.title","\u6807\u9898"),clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.SearchValue,callback:function(a){e.$set(e.queryParam,"SearchValue",a)},expression:"queryParam.SearchValue"}}),i("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[i("i",{staticClass:"el-input__icon el-icon-search"})])],1)])]},proxy:!0},{key:"title",fn:function({column:a,row:r}){return[i("gd-tooltip",{attrs:{rowKey:"title",row:r,highlight:""},on:{click:e.editForm}})]}},{key:"type",fn:function(a){return[i("el-tag",{style:e._f("dictColor")("notice_type",a.row.type),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_type",a.row.type))+" ")])]}},{key:"status",fn:function(a){return[i("el-tag",{style:e._f("dictColor")("notice_status",a.row.status),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_status",a.row.status))+" ")])]}},{key:"filtering",fn:function({colse:a,visible:r}){return[i("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:a,visible:r},on:{save:e.saveQueries}})]}}])})],1),i("detailForm",{ref:"detailForm"})],1)},y=[],f=l.normalizeComponent(d,p,y,!1,null,"b4bdcf86",null,null);const s=f.exports;s.install=function(t){t.component(s.name,s)};exports.GDpackage=s;exports.sysNoticeReceived=n;
@@ -1,13 +1,13 @@
1
- import { m as i, n as o } from "./chartbi.c3bc6adb.mjs";
2
- import { t as c } from "./messages.bc3bc0e8.mjs";
3
- function u(t) {
1
+ import { m as l, n as o } from "./chartbi.b6818e8e.mjs";
2
+ import { t as c } from "./messages.7e418640.mjs";
3
+ function d(t) {
4
4
  return window.axios({
5
5
  url: "/sysOnlineUser/page",
6
6
  method: "get",
7
7
  params: t
8
8
  });
9
9
  }
10
- function d(t) {
10
+ function u(t) {
11
11
  return window.axios({
12
12
  url: "/sysOnlineUser/forceExist",
13
13
  method: "post",
@@ -21,36 +21,43 @@ const g = {
21
21
  {
22
22
  transKey: "gd.onlineUser.account",
23
23
  prop: "account",
24
+ width: "200",
24
25
  label: "\u8D26\u53F7",
25
- align: "left"
26
+ align: "left",
27
+ fixed: !0
26
28
  },
27
29
  {
28
30
  transKey: "gd.onlineUser.name",
29
31
  prop: "name",
32
+ width: "200",
30
33
  label: "\u59D3\u540D",
31
34
  align: "left"
32
35
  },
33
36
  {
34
37
  transKey: "gd.onlineUser.lastLoginIp",
35
38
  prop: "lastloginip",
39
+ width: "160",
36
40
  label: "\u767B\u5F55IP",
37
41
  align: "left"
38
42
  },
39
43
  {
40
44
  transKey: "gd.onlineUser.lastTime",
41
45
  prop: "lasttime",
46
+ width: "180",
42
47
  label: "\u767B\u5F55\u65F6\u95F4",
43
48
  align: "center"
44
49
  },
45
50
  {
46
51
  transKey: "gd.onlineUser.lastLoginBrowser",
47
52
  prop: "lastloginbrowser",
53
+ width: "200",
48
54
  label: "\u6D4F\u89C8\u5668",
49
55
  align: "left"
50
56
  },
51
57
  {
52
58
  transKey: "gd.onlineUser.lastLoginOs",
53
59
  prop: "lastloginos",
60
+ width: "160",
54
61
  label: "\u64CD\u4F5C\u7CFB\u7EDF",
55
62
  align: "left"
56
63
  }
@@ -91,14 +98,14 @@ const p = {
91
98
  selectedRows: [],
92
99
  queryParam: {},
93
100
  isShow: !1,
94
- loadData: (t) => u(Object.assign(t, this.queryParam)).then((e) => e.data)
101
+ loadData: (t) => d(Object.assign(t, this.queryParam)).then((e) => e.data)
95
102
  };
96
103
  },
97
104
  computed: {
98
105
  getHeight() {
99
106
  return this.height;
100
107
  },
101
- ...i(["tablePageSize", "tableSize", "labelPosition", "formMode"])
108
+ ...l(["tablePageSize", "tableSize", "labelPosition", "formMode"])
102
109
  },
103
110
  methods: {
104
111
  onSelectChange(t, e) {
@@ -139,7 +146,7 @@ const p = {
139
146
  a();
140
147
  else
141
148
  return new Promise((r, y) => {
142
- d().then((n) => {
149
+ u().then((n) => {
143
150
  n.success ? (t.$message.success(t.$i18nt("gd.https.operateSucc")), t.$refs.table.refresh(!0)) : t.$message.error(t.$i18nt("gd.https.operateFail") + n.message), r(), a();
144
151
  }).catch((n) => {
145
152
  t.$message.error(t.$i18nt("gd.error.error") + n.message);
@@ -154,7 +161,7 @@ const p = {
154
161
  }
155
162
  }
156
163
  };
157
- var f = function() {
164
+ var h = function() {
158
165
  var e = this, s = e._self._c;
159
166
  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: !1 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
160
167
  return [s("div", { staticClass: "gd-table-operator" }, [s("div", { staticClass: "gd-table-operatorl", staticStyle: { width: "270px" } }, [s("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.onlineUser.keywordTip", "\u8BF7\u8F93\u5165\u8D26\u53F7\u6216\u59D3\u540D"), clearable: "" }, nativeOn: { keyup: function(a) {
@@ -165,20 +172,20 @@ var f = function() {
165
172
  }, proxy: !0 }, e.isShow ? { key: "filtering", fn: function({ colse: a, visible: r }) {
166
173
  return [s("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: a, visible: r }, on: { save: e.saveQueries } })];
167
174
  } } : null], null, !0) })], 1)]);
168
- }, h = [], m = /* @__PURE__ */ o(
175
+ }, f = [], m = /* @__PURE__ */ o(
169
176
  p,
170
- f,
171
177
  h,
178
+ f,
172
179
  !1,
173
180
  null,
174
181
  null,
175
182
  null,
176
183
  null
177
184
  );
178
- const l = m.exports;
179
- l.install = function(t) {
180
- t.component(l.name, l);
185
+ const i = m.exports;
186
+ i.install = function(t) {
187
+ t.component(i.name, i);
181
188
  };
182
189
  export {
183
- l as G
190
+ i as G
184
191
  };
@@ -0,0 +1 @@
1
+ "use strict";const l=require("./chartbi.b5b6fdab.js"),o=require("./messages.1346558e.js");function c(t){return window.axios({url:"/sysOnlineUser/page",method:"get",params:t})}function d(t){return window.axios({url:"/sysOnlineUser/forceExist",method:"post",data:t})}const u={data(){return{tableColumns:[{transKey:"gd.onlineUser.account",prop:"account",width:"200",label:"\u8D26\u53F7",align:"left",fixed:!0},{transKey:"gd.onlineUser.name",prop:"name",width:"200",label:"\u59D3\u540D",align:"left"},{transKey:"gd.onlineUser.lastLoginIp",prop:"lastloginip",width:"160",label:"\u767B\u5F55IP",align:"left"},{transKey:"gd.onlineUser.lastTime",prop:"lasttime",width:"180",label:"\u767B\u5F55\u65F6\u95F4",align:"center"},{transKey:"gd.onlineUser.lastLoginBrowser",prop:"lastloginbrowser",width:"200",label:"\u6D4F\u89C8\u5668",align:"left"},{transKey:"gd.onlineUser.lastLoginOs",prop:"lastloginos",width:"160",label:"\u64CD\u4F5C\u7CFB\u7EDF",align:"left"}],tableButtons:[{displayName:"\u5F3A\u5236\u4E0B\u7EBF",functionName:"forceExist",show:!0,transKey:"gd.onlineUser.forceExist",icon:"el-icon-delete",btnType:"danger",name:"sysOnlineUser:forceExist"}],tableQueries:[{transKey:"gd.onlineUser.keywordTip",effectType:"input",prop:"code",label:"\u5173\u952E\u8BCD",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.keywordTip",rules:[]}]}}};const g={name:"GdOnlineUser",props:{height:{type:Number,default:100}},mixins:[o.tablesFilter,u],data(){return{selectedRowKeys:[],selectedRows:[],queryParam:{},isShow:!1,loadData:t=>c(Object.assign(t,this.queryParam)).then(e=>e.data)}},computed:{getHeight(){return this.height},...l.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{onSelectChange(t,e){this.selectedRows=e,this.selectedRowKeys=t},refresh(){this.$refs.table.refresh()},saveQueries(t){this.queryParam={...t},this.refresh()},forceExist(){let t=this;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}t.$confirm(t.$i18nt("gd.onlineUser.forceExistTip","\u662F\u5426\u5F3A\u5236\u4E0B\u7EBF\u8BE5\u7528\u6237?"),t.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:t.$i18nt("gd.onlineUser.forceExist","\u5F3A\u5236\u4E0B\u7EBF"),cancelButtonText:t.$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,a)=>{if(e!=="confirm")a();else return new Promise((i,m)=>{d().then(n=>{n.success?(t.$message.success(t.$i18nt("gd.https.operateSucc")),t.$refs.table.refresh(!0)):t.$message.error(t.$i18nt("gd.https.operateFail")+n.message),i(),a()}).catch(n=>{t.$message.error(t.$i18nt("gd.error.error")+n.message)})}).catch(()=>console.log("Oops errors!"))}})},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var p=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:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl",staticStyle:{width:"270px"}},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.onlineUser.keywordTip","\u8BF7\u8F93\u5165\u8D26\u53F7\u6216\u59D3\u540D"),clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.searchValue,callback:function(a){e.$set(e.queryParam,"searchValue",a)},expression:"queryParam.searchValue"}}),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"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},e.isShow?{key:"filtering",fn:function({colse:a,visible:i}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:a,visible:i},on:{save:e.saveQueries}})]}}:null],null,!0)})],1)])},h=[],f=l.normalizeComponent(g,p,h,!1,null,null,null,null);const r=f.exports;r.install=function(t){t.component(r.name,r)};exports.GDpackage=r;
@@ -1 +1 @@
1
- "use strict";const n=require("./system.notice.365ddd35.js"),d=require("./chartbi.5eded588.js"),c=require("./messages.fa3d97b5.js"),u={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.org.displayName",prop:"name",label:"\u673A\u6784\u540D\u79F0",minWidth:"260",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.org.type",prop:"orgType",label:"\u673A\u6784\u7C7B\u578B",minWidth:"220",type:"slot",slotType:"orgType",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.code",prop:"code",width:"200",label:"\u552F\u4E00\u7F16\u7801",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.sort",prop:"sort",width:"120",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.org.remark",prop:"remark",minWidth:"300",type:"slot",slotType:"remark",label:"\u5907\u6CE8",align:"left"}],formColumns:[{transKey:"gd.org.type",effectType:"radio",prop:"orgtype",label:"\u673A\u6784\u7C7B\u578B",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"org_type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.org.displayName",effectType:"input",prop:"name",label:"\u673A\u6784\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.org.code",prop:"code",effectType:"input",label:"\u552F\u4E00\u7F16\u7801",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.org.parentBody",prop:"pid",effectType:"selectTree",label:"\u4E0A\u7EA7\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.org.sort",prop:"sort",effectType:"inputnumber",label:"\u6392\u5E8F",defaultValue:100,placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change",type:"number"}]},{transKey:"gd.org.remark",effectType:"textarea",prop:"remark",label:"\u5907\u6CE8",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysOrg:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysOrg:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysOrg:delete"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.org.displayName",prop:"name",label:"\u673A\u6784\u540D\u79F0",effectType:"input",rules:[]}]}}};const g={name:"GdOrg",props:{height:{type:Number,default:100}},mixins:[c.tablesFilter,u],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=>n.getOrgPage(Object.assign(t,this.queryParam)).then(e=>e.data),isFilterWithValue:!0}},computed:{getFormColumns(){let t=[{id:"-1",parentId:"0",title:this.$i18nt("gd.org.topLevel","\u9876\u7EA7"),value:"0",pid:"0",children:[...this.orgTree]}];return this.formColumns.filter(r=>(r.prop==="pid"&&(r.treeOptions=[...t]),!0))},getHeight(){return this.height},styled(){return`height:${this.height+76}px`},...d.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},editForm(t){this.transKey="gd.btn.edit",this.$refs.editForm.open(Object.assign({...t},{pid:String(t.pid)}))},getOrgTree(){n.getOrgTree({}).then(t=>{if(t.code===200){const e=r=>(r=r.filter((s,a)=>(s.value=String(s.value),s.children&&s.children.length>0&&(s.children=e(s.children)),!0)),r);this.orgTree=e(t.data)}this.loading=!1})},handleNodeClick(t){this.queryParam.pid===t.id?(delete this.queryParam.pid,this.$nextTick(()=>{setTimeout(()=>{this.$refs.tree.setCurrentKey(null)},0)})):this.queryParam=Object.assign({...this.queryParam},{pid:t.id}),this.$refs.table.refresh(!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,r)=>{this.delHand(t,e,r)}})},delHand(t,e,r){if(t!=="confirm"){r();return}let s=[];this.selectedRows.forEach(a=>{let l=n.sysOrgDelete(a).then(i=>i);s.push(l)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(s).then(a=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,r(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0;const l=a.filter(i=>!i.success);l.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")+l[0].message),this.handleOk()})},add(){this.transKey="gd.btn.add",this.$refs.editForm.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},sbumit({data:t,record:e,btn:r},s,a){this.formLoading=!0,(e?n.sysOrgEdit:n.sysOrgAdd)(t).then(i=>{i.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a(),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+i.message),this.formLoading=!1})},handleOk(){this.getOrgTree(),this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},created(){this.getOrgTree()}};var h=function(){var e=this,r=e._self._c;return r("div",{staticClass:"gd-page-view",staticStyle:{display:"flex",background:"rgb(245, 245, 245)"}},[r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"page-view-tree",style:e.styled},[r("el-tree",{ref:"tree",attrs:{data:e.orgTree,props:e.defaultProps,"node-key":"id","current-node-key":e.defaultExpandedKeys,"default-expand-all":"","highlight-current":"","expand-on-click-node":!1},on:{"node-click":e.handleNodeClick}})],1),r("div",{staticClass:"page-view-list"},[r("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.height,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:s,row:a}){return[r("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""},on:{click:e.editForm}})]}},{key:"orgType",fn:function(s){return[r("el-tag",{style:e._f("dictColor")("org_type",s.row.orgtype),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("org_type",s.row.orgtype))+" ")])]}},{key:"remark",fn:function({column:s,row:a}){return[r("gd-tooltip",{attrs:{rowKey:"remark",row:a}})]}},{key:"operator",fn:function(){return[r("div",{staticClass:"gd-table-operator"},[r("div",{staticClass:"gd-table-operatorl"},[r("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.org.displayName","\u673A\u6784\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(s){e.$set(e.queryParam,"name",s)},expression:"queryParam.name"}}),r("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[r("i",{staticClass:"el-input__icon el-icon-search"})])],1),r("div",{staticClass:"gd-table-operatorr"},[r("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:s,visible:a}){return[r("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.height,queryParam:e.queryParam,colse:s,visible:a},on:{save:e.saveQueries}})]}}])})],1),r("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode},on:{sbumit:e.sbumit}})],1)},p=[],f=d.normalizeComponent(g,h,p,!1,null,"1dfd3a31",null,null);const o=f.exports;o.install=function(t){t.component(o.name,o)};exports.GDpackage=o;
1
+ "use strict";const n=require("./system.notice.ff62c06a.js"),d=require("./chartbi.b5b6fdab.js"),c=require("./messages.1346558e.js"),u={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.org.displayName",prop:"name",label:"\u673A\u6784\u540D\u79F0",minWidth:"260",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.org.type",prop:"orgType",label:"\u673A\u6784\u7C7B\u578B",minWidth:"220",type:"slot",slotType:"orgType",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.code",prop:"code",width:"200",label:"\u552F\u4E00\u7F16\u7801",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.sort",prop:"sort",width:"120",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.org.remark",prop:"remark",minWidth:"300",type:"slot",slotType:"remark",label:"\u5907\u6CE8",align:"left"}],formColumns:[{transKey:"gd.org.type",effectType:"radio",prop:"orgtype",label:"\u673A\u6784\u7C7B\u578B",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"org_type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.org.displayName",effectType:"input",prop:"name",label:"\u673A\u6784\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.org.code",prop:"code",effectType:"input",label:"\u552F\u4E00\u7F16\u7801",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.org.parentBody",prop:"pid",effectType:"selectTree",label:"\u4E0A\u7EA7\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.org.sort",prop:"sort",effectType:"inputnumber",label:"\u6392\u5E8F",defaultValue:100,placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change",type:"number"}]},{transKey:"gd.org.remark",effectType:"textarea",prop:"remark",label:"\u5907\u6CE8",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysOrg:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysOrg:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysOrg:delete"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.org.displayName",prop:"name",label:"\u673A\u6784\u540D\u79F0",effectType:"input",rules:[]}]}}};const g={name:"GdOrg",props:{height:{type:Number,default:100}},mixins:[c.tablesFilter,u],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=>n.getOrgPage(Object.assign(t,this.queryParam)).then(e=>e.data),isFilterWithValue:!0}},computed:{getFormColumns(){let t=[{id:"-1",parentId:"0",title:this.$i18nt("gd.org.topLevel","\u9876\u7EA7"),value:"0",pid:"0",children:[...this.orgTree]}];return this.formColumns.filter(r=>(r.prop==="pid"&&(r.treeOptions=[...t]),!0))},getHeight(){return this.height},styled(){return`height:${this.height+76}px`},...d.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},editForm(t){this.transKey="gd.btn.edit",this.$refs.editForm.open(Object.assign({...t},{pid:String(t.pid)}))},getOrgTree(){n.getOrgTree({}).then(t=>{if(t.code===200){const e=r=>(r=r.filter((s,a)=>(s.value=String(s.value),s.children&&s.children.length>0&&(s.children=e(s.children)),!0)),r);this.orgTree=e(t.data)}this.loading=!1})},handleNodeClick(t){this.queryParam.pid===t.id?(delete this.queryParam.pid,this.$nextTick(()=>{setTimeout(()=>{this.$refs.tree.setCurrentKey(null)},0)})):this.queryParam=Object.assign({...this.queryParam},{pid:t.id}),this.$refs.table.refresh(!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,r)=>{this.delHand(t,e,r)}})},delHand(t,e,r){if(t!=="confirm"){r();return}let s=[];this.selectedRows.forEach(a=>{let l=n.sysOrgDelete(a).then(i=>i);s.push(l)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(s).then(a=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,r(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0;const l=a.filter(i=>!i.success);l.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")+l[0].message),this.handleOk()})},add(){this.transKey="gd.btn.add",this.$refs.editForm.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},sbumit({data:t,record:e,btn:r},s,a){this.formLoading=!0,(e?n.sysOrgEdit:n.sysOrgAdd)(t).then(i=>{i.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a(),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+i.message),this.formLoading=!1})},handleOk(){this.getOrgTree(),this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},created(){this.getOrgTree()}};var h=function(){var e=this,r=e._self._c;return r("div",{staticClass:"gd-page-view",staticStyle:{display:"flex",background:"rgb(245, 245, 245)"}},[r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"page-view-tree",style:e.styled},[r("el-tree",{ref:"tree",attrs:{data:e.orgTree,props:e.defaultProps,"node-key":"id","current-node-key":e.defaultExpandedKeys,"default-expand-all":"","highlight-current":"","expand-on-click-node":!1},on:{"node-click":e.handleNodeClick}})],1),r("div",{staticClass:"page-view-list"},[r("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.height,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:s,row:a}){return[r("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""},on:{click:e.editForm}})]}},{key:"orgType",fn:function(s){return[r("el-tag",{style:e._f("dictColor")("org_type",s.row.orgtype),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("org_type",s.row.orgtype))+" ")])]}},{key:"remark",fn:function({column:s,row:a}){return[r("gd-tooltip",{attrs:{rowKey:"remark",row:a}})]}},{key:"operator",fn:function(){return[r("div",{staticClass:"gd-table-operator"},[r("div",{staticClass:"gd-table-operatorl"},[r("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.org.displayName","\u673A\u6784\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(s){e.$set(e.queryParam,"name",s)},expression:"queryParam.name"}}),r("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[r("i",{staticClass:"el-input__icon el-icon-search"})])],1),r("div",{staticClass:"gd-table-operatorr"},[r("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:s,visible:a}){return[r("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.height,queryParam:e.queryParam,colse:s,visible:a},on:{save:e.saveQueries}})]}}])})],1),r("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode},on:{sbumit:e.sbumit}})],1)},p=[],f=d.normalizeComponent(g,h,p,!1,null,"1dfd3a31",null,null);const o=f.exports;o.install=function(t){t.component(o.name,o)};exports.GDpackage=o;
@@ -1,6 +1,6 @@
1
- import { g as o, a as d, s as g, b as u, c } from "./system.notice.b4247147.mjs";
2
- import { m as p, n as h } from "./chartbi.c3bc6adb.mjs";
3
- import { t as f } from "./messages.bc3bc0e8.mjs";
1
+ import { g as o, a as d, s as g, b as u, c } from "./system.notice.bd18554e.mjs";
2
+ import { m as p, n as h } from "./chartbi.b6818e8e.mjs";
3
+ import { t as f } from "./messages.7e418640.mjs";
4
4
  const m = {
5
5
  data() {
6
6
  return {
@@ -1,4 +1,4 @@
1
- "use strict";const system_account=require("./system.account.e82580de.js"),messages=require("./messages.fa3d97b5.js"),chartbi=require("./chartbi.5eded588.js");var md5={exports:{}};/**
1
+ "use strict";const system_account=require("./system.account.7c43a95e.js"),messages=require("./messages.1346558e.js"),chartbi=require("./chartbi.b5b6fdab.js");var md5={exports:{}};/**
2
2
  * [js-md5]{@link https://github.com/emn178/js-md5}
3
3
  *
4
4
  * @namespace md5
@@ -1,6 +1,6 @@
1
- import { c as commonjsGlobal, a as sysUserOwnRole } from "./system.account.868f96f9.mjs";
2
- import { f as baseFkList } from "./messages.bc3bc0e8.mjs";
3
- import { n as normalizeComponent } from "./chartbi.c3bc6adb.mjs";
1
+ import { c as commonjsGlobal, a as sysUserOwnRole } from "./system.account.64fbdaeb.mjs";
2
+ import { f as baseFkList } from "./messages.7e418640.mjs";
3
+ import { n as normalizeComponent } from "./chartbi.b6818e8e.mjs";
4
4
  var md5 = { exports: {} };
5
5
  /**
6
6
  * [js-md5]{@link https://github.com/emn178/js-md5}