gds-plus-design-vue 1.2.23 → 1.2.42

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 (94) hide show
  1. package/lib/{chartbi.06e48153.js → chartbi.5eded588.js} +20 -20
  2. package/lib/{chartbi.cdd1e365.mjs → chartbi.c3bc6adb.mjs} +17 -9
  3. package/lib/gd-initial.js +17 -15
  4. package/lib/gd-initial.mjs +23641 -16241
  5. package/lib/{main.2415a49a.js → main.5b42b006.js} +1 -1
  6. package/lib/main.6245dcb0.mjs +198 -0
  7. package/lib/{main.b2d0a309.mjs → main.6d033946.mjs} +24 -46
  8. package/lib/main.77b653a0.js +1 -0
  9. package/lib/{main.2cddfbbd.mjs → main.81ceb1d2.mjs} +3 -3
  10. package/lib/main.b143863e.js +1 -0
  11. package/lib/main.e7207a58.js +1 -0
  12. package/lib/main.f5fec475.mjs +123 -0
  13. package/lib/{messages.d8abe18d.mjs → messages.78d0815c.mjs} +1161 -1116
  14. package/lib/messages.e7af6cf3.js +9 -0
  15. package/lib/style.css +3 -3
  16. package/lib/{system.account.8ea53681.js → system.account.dc88aad7.js} +1 -1
  17. package/lib/{system.account.9bc40d08.mjs → system.account.feca6fef.mjs} +26 -26
  18. package/lib/system.config.76fc8a66.js +1 -0
  19. package/lib/{system.config.8223d495.mjs → system.config.98005c65.mjs} +7 -2
  20. package/lib/{system.datasource.fd6a4e76.js → system.datasource.83e34499.js} +1 -1
  21. package/lib/{system.datasource.57233650.mjs → system.datasource.a67e9bce.mjs} +3 -3
  22. package/lib/{system.dict.a24f33b0.js → system.dict.931dcb56.js} +1 -1
  23. package/lib/{system.dict.8f95218b.mjs → system.dict.97c057d5.mjs} +4 -4
  24. package/lib/{system.duplicatechecking.6b706948.mjs → system.duplicatechecking.5bf3e3d9.mjs} +15 -11
  25. package/lib/{system.duplicatechecking.39293985.js → system.duplicatechecking.785d1b24.js} +1 -1
  26. package/lib/{system.email.a2d9a307.js → system.email.06fb96a6.js} +1 -1
  27. package/lib/{system.email.dae988be.mjs → system.email.a938d704.mjs} +2 -2
  28. package/lib/{system.fieldsecurity.02627a7a.mjs → system.fieldsecurity.9f9f73df.mjs} +127 -79
  29. package/lib/system.fieldsecurity.d11088e3.js +1 -0
  30. package/lib/{system.file.0fa095a9.mjs → system.file.6c4d3ece.mjs} +13 -8
  31. package/lib/system.file.b7ce477b.js +1 -0
  32. package/lib/system.log.278084ec.js +1 -0
  33. package/lib/{system.log.acb64505.mjs → system.log.35ddd3bd.mjs} +64 -81
  34. package/lib/{system.machine.fc392d7f.mjs → system.machine.52e8a4f3.mjs} +1 -1
  35. package/lib/{system.machine.7fa3e3d1.js → system.machine.6e46b7a3.js} +1 -1
  36. package/lib/system.notice.30231ef5.js +1 -0
  37. package/lib/system.notice.ce4a4852.mjs +1693 -0
  38. package/lib/system.noticereceived.a608b96b.js +1 -0
  39. package/lib/{system.noticereceived.1aa70b65.mjs → system.noticereceived.fc6da6a7.mjs} +45 -34
  40. package/lib/system.onlineuser.3e1639a3.js +1 -0
  41. package/lib/{system.onlineuser.3d848a32.mjs → system.onlineuser.be4b1d75.mjs} +22 -15
  42. package/lib/{system.org.fcf96d1e.mjs → system.org.32183035.mjs} +17 -68
  43. package/lib/system.org.474be398.js +1 -0
  44. package/lib/{system.permissions.a1a9505c.js → system.permissions.1f9c7d7d.js} +1 -1
  45. package/lib/{system.permissions.23f5b097.mjs → system.permissions.28913e80.mjs} +3 -3
  46. package/lib/{system.plugin.e37f9dbc.mjs → system.plugin.27391ed5.mjs} +2 -2
  47. package/lib/{system.plugin.b6de4673.js → system.plugin.b60b97c7.js} +1 -1
  48. package/lib/{system.pos.1a01fc97.mjs → system.pos.2425d5ef.mjs} +2 -2
  49. package/lib/{system.pos.a4fb19b0.js → system.pos.decf8a63.js} +1 -1
  50. package/lib/{system.promptmanagement.290958b1.js → system.promptmanagement.09dcec13.js} +1 -1
  51. package/lib/{system.promptmanagement.36a65c51.mjs → system.promptmanagement.eaabf18d.mjs} +7 -7
  52. package/lib/system.role.1be25fd7.mjs +2049 -0
  53. package/lib/system.role.e98ed81e.js +1 -0
  54. package/lib/{system.sumberrules.dd6299e8.js → system.sumberrules.83d23274.js} +1 -1
  55. package/lib/{system.sumberrules.cdef9308.mjs → system.sumberrules.9d0efd00.mjs} +2 -2
  56. package/lib/system.team.cbbde647.js +1 -0
  57. package/lib/{system.team.ee652fe4.mjs → system.team.db590123.mjs} +318 -244
  58. package/lib/system.teammembers.9eb94832.js +1 -0
  59. package/lib/{system.teammembers.26a2ba81.mjs → system.teammembers.fd2452e7.mjs} +78 -40
  60. package/lib/{system.timers.b9424204.js → system.timers.0af8bf8f.js} +1 -1
  61. package/lib/{system.timers.4efa8a7d.mjs → system.timers.5ef2cfb4.mjs} +2 -2
  62. package/lib/{system.translation.0a9399b4.mjs → system.translation.2cb37689.mjs} +7 -7
  63. package/lib/{system.translation.21d2fd8b.js → system.translation.7b560e17.js} +1 -1
  64. package/lib/{system.user.4fcfdf99.mjs → system.user.c8ba3724.mjs} +146 -84
  65. package/lib/{system.user.d48a08db.js → system.user.f2bc316f.js} +5 -5
  66. package/lib/{system.useraffiliation.fb002239.mjs → system.useraffiliation.1e0edee4.mjs} +3 -3
  67. package/lib/{system.useraffiliation.a59ce45b.js → system.useraffiliation.617acb38.js} +1 -1
  68. package/lib/system.webresource.3fdc65fd.js +1 -0
  69. package/lib/{system.webresource.4df01c92.mjs → system.webresource.88e48862.mjs} +16 -18
  70. package/lib/{system.welcome.472f099b.js → system.welcome.67d20fa4.js} +1 -1
  71. package/lib/{system.welcome.120f4b50.mjs → system.welcome.aaac4a40.mjs} +1 -1
  72. package/locale/en_US.js +45 -3
  73. package/locale/id_ID.js +45 -3
  74. package/locale/vi_VN.js +1970 -1928
  75. package/locale/zh_CN.js +44 -2
  76. package/package.json +1 -1
  77. package/lib/main.4c447fc3.js +0 -1
  78. package/lib/main.86fe06d4.mjs +0 -87
  79. package/lib/main.d091d06d.js +0 -1
  80. package/lib/messages.2fff74f3.js +0 -9
  81. package/lib/system.config.c6e30213.js +0 -1
  82. package/lib/system.fieldsecurity.a0cec24d.js +0 -1
  83. package/lib/system.file.d695ab37.js +0 -1
  84. package/lib/system.log.c07ae5db.js +0 -1
  85. package/lib/system.notice.5ae50bd4.mjs +0 -641
  86. package/lib/system.notice.f18578ae.js +0 -1
  87. package/lib/system.noticereceived.bfa98a9b.js +0 -1
  88. package/lib/system.onlineuser.1c428d05.js +0 -1
  89. package/lib/system.org.5bb36f9c.js +0 -1
  90. package/lib/system.role.68de93ef.mjs +0 -1543
  91. package/lib/system.role.88100f66.js +0 -1
  92. package/lib/system.team.53d64006.js +0 -1
  93. package/lib/system.teammembers.4a3dc336.js +0 -1
  94. package/lib/system.webresource.3366cc29.js +0 -1
@@ -0,0 +1,1693 @@
1
+ import { m as r, n as l } from "./chartbi.c3bc6adb.mjs";
2
+ import { g as w, s as b } from "./system.account.feca6fef.mjs";
3
+ import { t as u, m as _, a as v, n as T } from "./messages.78d0815c.mjs";
4
+ import { g as $, a as R } from "./system.fieldsecurity.9f9f73df.mjs";
5
+ import "./system.email.a938d704.mjs";
6
+ function g(t) {
7
+ return window.axios({
8
+ url: "/sysNotice/page",
9
+ method: "get",
10
+ params: t
11
+ });
12
+ }
13
+ function C(t) {
14
+ return window.axios({
15
+ url: "/sysNotice/add",
16
+ method: "post",
17
+ data: t
18
+ });
19
+ }
20
+ function S(t) {
21
+ return window.axios({
22
+ url: "/sysNotice/edit",
23
+ method: "post",
24
+ data: t
25
+ });
26
+ }
27
+ function K(t) {
28
+ return window.axios({
29
+ url: "/sysNotice/delete",
30
+ method: "post",
31
+ data: t
32
+ });
33
+ }
34
+ function y(t) {
35
+ return window.axios({
36
+ url: "/sysNotice/detail",
37
+ method: "get",
38
+ params: t
39
+ });
40
+ }
41
+ function m(t) {
42
+ return window.axios({
43
+ url: "/sysNotice/changeStatus",
44
+ method: "post",
45
+ data: t
46
+ });
47
+ }
48
+ function L(t) {
49
+ return window.axios({
50
+ url: "/sysNotice/receiversByTypes",
51
+ method: "get",
52
+ params: t
53
+ });
54
+ }
55
+ function _e(t) {
56
+ return window.axios({
57
+ url: "/sysMessage/userMessagesGrouped",
58
+ method: "get",
59
+ params: t
60
+ });
61
+ }
62
+ function ve(t) {
63
+ return window.axios({
64
+ url: "/sysMessage/markAllAsRead",
65
+ method: "post",
66
+ data: t
67
+ });
68
+ }
69
+ function Te(t) {
70
+ return window.axios({
71
+ url: "/sysMessage/markAsRead",
72
+ method: "post",
73
+ data: t
74
+ });
75
+ }
76
+ function $e(t, e) {
77
+ return window.axios({
78
+ url: e || "/sysEvents/month",
79
+ method: "get",
80
+ params: t
81
+ });
82
+ }
83
+ const x = {
84
+ name: "GdNoticeDetails",
85
+ props: {
86
+ modeType: {
87
+ type: String,
88
+ default: "dialog"
89
+ }
90
+ },
91
+ data() {
92
+ return {
93
+ transKey: "gd.notice.detail",
94
+ fullscreen: !1,
95
+ visible: !1,
96
+ width: "900",
97
+ confirmLoading: !1,
98
+ contentRecord: {},
99
+ sysViewButtons: [],
100
+ type: "pdf"
101
+ };
102
+ },
103
+ computed: {
104
+ height() {
105
+ return this.screenHeight - 24 - 40 - 36;
106
+ },
107
+ headTitle() {
108
+ return this.$i18nt(this.transKey, this.title);
109
+ },
110
+ style() {
111
+ return `height:${this.fullscreen ? this.screenHeight - 80 : this.screenHeight - 240}px;`;
112
+ },
113
+ ...r(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
114
+ },
115
+ methods: {
116
+ open(t) {
117
+ this.fullscreen = !1, this.visible = !0, this.confirmLoading = !0, this.sysNoticeDetail(t.id);
118
+ },
119
+ sysNoticeDetail(t) {
120
+ this.fullscreen = !1, y({
121
+ id: t
122
+ }).then((e) => {
123
+ e.code === 200 ? (this.contentRecord = e.data, this.$emit("onLoadCompleted"), e.data.attachment && this.$nextTick(() => {
124
+ setTimeout(() => {
125
+ let s = { name: `${e.data.title}.${this.type}`, fileId: e.data.attachment, fullscreen: !1 };
126
+ this.$refs.filePreview.open(s);
127
+ }, 0);
128
+ })) : this.$message.error(e.message), this.confirmLoading = !1;
129
+ });
130
+ },
131
+ handleCancel() {
132
+ this.visible = !1, this.contentRecord = {};
133
+ },
134
+ closed() {
135
+ this.visible = !1;
136
+ },
137
+ toggleFullscreen() {
138
+ this.fullscreen = !this.fullscreen;
139
+ },
140
+ doEvent(t) {
141
+ const e = t.item.functionName;
142
+ this[e] && this[e]();
143
+ }
144
+ }
145
+ };
146
+ var P = function() {
147
+ var e = this, s = e._self._c;
148
+ 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) {
149
+ e.visible = i;
150
+ }, 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);
151
+ }, k = [], N = /* @__PURE__ */ l(
152
+ x,
153
+ P,
154
+ k,
155
+ !1,
156
+ null,
157
+ "5cb794ba",
158
+ null,
159
+ null
160
+ );
161
+ const h = N.exports;
162
+ function Re(t) {
163
+ return window.axios({
164
+ url: "/sysOrg/tree",
165
+ method: "get",
166
+ params: t
167
+ });
168
+ }
169
+ function F(t) {
170
+ return window.axios({
171
+ url: "/sysOrg/page",
172
+ method: "get",
173
+ params: t
174
+ });
175
+ }
176
+ function Ce(t) {
177
+ return window.axios({
178
+ url: "/sysOrg/add",
179
+ method: "post",
180
+ data: t
181
+ });
182
+ }
183
+ function Se(t) {
184
+ return window.axios({
185
+ url: "/sysOrg/edit",
186
+ method: "post",
187
+ data: t
188
+ });
189
+ }
190
+ function Ke(t) {
191
+ return window.axios({
192
+ url: "/sysOrg/delete",
193
+ method: "post",
194
+ data: t
195
+ });
196
+ }
197
+ function Le(t) {
198
+ return window.axios({
199
+ url: "/SysRoleDataControl/detail",
200
+ method: "get",
201
+ params: t
202
+ });
203
+ }
204
+ function xe(t) {
205
+ return window.axios({
206
+ url: "/SysRoleDataControl/save",
207
+ method: "post",
208
+ data: t
209
+ });
210
+ }
211
+ const D = {
212
+ data() {
213
+ return {
214
+ tableColumns: [
215
+ {
216
+ type: "selection",
217
+ width: "60",
218
+ fixed: !0
219
+ },
220
+ {
221
+ transKey: "gd.notice.title",
222
+ prop: "title",
223
+ label: "\u6807\u9898",
224
+ width: "260",
225
+ type: "slot",
226
+ slotType: "title",
227
+ align: "left",
228
+ fixed: !0
229
+ },
230
+ {
231
+ transKey: "gd.notice.type",
232
+ prop: "type",
233
+ width: "120",
234
+ label: "\u7C7B\u578B",
235
+ align: "left",
236
+ type: "slot",
237
+ slotType: "type"
238
+ },
239
+ {
240
+ transKey: "gd.notice.status",
241
+ prop: "status",
242
+ width: "120",
243
+ label: "\u72B6\u6001",
244
+ align: "left",
245
+ type: "slot",
246
+ slotType: "status"
247
+ },
248
+ {
249
+ transKey: "gd.notice.createdTime",
250
+ prop: "createdtime",
251
+ width: "180",
252
+ label: "\u521B\u5EFA\u65F6\u95F4",
253
+ align: "center"
254
+ },
255
+ {
256
+ transKey: "gd.notice.publicTime",
257
+ prop: "publictime",
258
+ width: "180",
259
+ label: "\u53D1\u5E03\u65F6\u95F4",
260
+ align: "center"
261
+ },
262
+ {
263
+ transKey: "gd.notice.publicUserName",
264
+ prop: "publicusername",
265
+ width: "200",
266
+ label: "\u53D1\u5E03\u4EBA",
267
+ align: "left"
268
+ }
269
+ ],
270
+ formColumns: [
271
+ {
272
+ transKey: "gd.notice.title",
273
+ effectType: "input",
274
+ prop: "title",
275
+ label: "\u6807\u9898",
276
+ placeholder: "\u8BF7\u8F93\u5165",
277
+ placeholderTransKey: "gd.placeholder.input",
278
+ rules: [{
279
+ required: !0,
280
+ message: "\u8BF7\u8F93\u5165",
281
+ transKey: "gd.placeholder.input",
282
+ trigger: "change"
283
+ }]
284
+ },
285
+ {
286
+ transKey: "gd.notice.type",
287
+ prop: "type",
288
+ label: "\u7C7B\u578B",
289
+ effectType: "radio",
290
+ dictTypeCode: "notice_type",
291
+ rules: [{
292
+ required: !0,
293
+ message: "\u8BF7\u9009\u62E9",
294
+ transKey: "gd.placeholder.select",
295
+ trigger: "change"
296
+ }],
297
+ type: "slot",
298
+ slotType: "notice_type"
299
+ },
300
+ {
301
+ transKey: "gd.notice.noticeBucket",
302
+ effectType: "editor",
303
+ prop: "content",
304
+ label: "\u5185\u5BB9",
305
+ placeholder: "\u8BF7\u8F93\u5165",
306
+ placeholderTransKey: "gd.placeholder.input",
307
+ rules: [{
308
+ required: !0,
309
+ message: "\u8BF7\u8F93\u5165",
310
+ transKey: "gd.placeholder.input",
311
+ trigger: "change"
312
+ }]
313
+ },
314
+ {
315
+ transKey: "gd.notice.attachment",
316
+ effectType: "file",
317
+ prop: "fileList",
318
+ label: "\u9644\u4EF6",
319
+ accept: ".pdf",
320
+ placeholder: "\u8BF7\u4E0A\u4F20",
321
+ fileTitle: "\u4E0A\u4F20PDF\u6587\u4EF6",
322
+ limit: 1,
323
+ rules: [],
324
+ type: "slot",
325
+ slotType: "fileList"
326
+ },
327
+ {
328
+ transKey: "gd.notice.notifyTo",
329
+ effectType: "notifyingPerson",
330
+ prop: "notifyingPerson",
331
+ label: "\u6536\u5230\u901A\u77E5\u4EBA",
332
+ type: "slot",
333
+ slotType: "notifyingPerson",
334
+ rules: [],
335
+ disabled: !1
336
+ }
337
+ ],
338
+ noticeFormColumns: [],
339
+ tableButtons: [
340
+ {
341
+ displayName: "\u65B0\u589E",
342
+ functionName: "add",
343
+ show: !0,
344
+ transKey: "gd.btn.add",
345
+ icon: "el-icon-plus",
346
+ name: "sysNotice:add"
347
+ },
348
+ {
349
+ displayName: "\u901A\u77E5\u4EBA",
350
+ functionName: "notifyingPerson",
351
+ show: !0,
352
+ transKey: "gd.notice.notifyingPerson",
353
+ icon: "el-icon-bell",
354
+ name: "sysNotice:notifyingPerson"
355
+ },
356
+ {
357
+ displayName: "\u7F16\u8F91",
358
+ functionName: "edit",
359
+ show: !0,
360
+ transKey: "gd.btn.edit",
361
+ icon: "el-icon-edit",
362
+ name: "sysNotice:edit"
363
+ },
364
+ {
365
+ displayName: "\u5220\u9664",
366
+ functionName: "del",
367
+ show: !0,
368
+ transKey: "gd.btn.del",
369
+ icon: "el-icon-delete",
370
+ btnType: "danger",
371
+ name: "sysNotice:delete"
372
+ },
373
+ {
374
+ displayName: "\u53D1\u5E03",
375
+ functionName: "release",
376
+ show: !0,
377
+ btnType: "danger",
378
+ transKey: "gd.btn.release",
379
+ icon: "el-icon-s-promotion",
380
+ name: "sysNotice:changeStatus"
381
+ },
382
+ {
383
+ displayName: "\u64A4\u56DE",
384
+ functionName: "rollback",
385
+ show: !0,
386
+ transKey: "gd.btn.withdraw",
387
+ icon: "el-icon-refresh-left",
388
+ btnType: "danger",
389
+ name: "sysNotice:changeStatus"
390
+ },
391
+ {
392
+ displayName: "\u67E5\u770B",
393
+ functionName: "read",
394
+ show: !0,
395
+ transKey: "gd.btn.view",
396
+ icon: "el-icon-reading",
397
+ name: "sysNotice:detail"
398
+ }
399
+ ],
400
+ formButtons: [
401
+ {
402
+ displayName: "\u5B58\u4E3A\u8349\u7A3F",
403
+ functionName: "saveDraft",
404
+ show: !0,
405
+ transKey: "gd.btn.saveDraft",
406
+ icon: "el-icon-tickets",
407
+ validate: !0
408
+ },
409
+ {
410
+ displayName: "\u53D1\u5E03",
411
+ functionName: "releaseTip",
412
+ show: !0,
413
+ btnType: "danger",
414
+ transKey: "gd.btn.release",
415
+ icon: "el-icon-s-promotion",
416
+ validate: !0
417
+ }
418
+ ],
419
+ noticeFormButtons: [
420
+ {
421
+ displayName: "\u786E\u5B9A",
422
+ functionName: "handleSubmit",
423
+ show: !0,
424
+ transKey: "gd.btn.confirm",
425
+ icon: "el-icon-document-checked",
426
+ validate: !0
427
+ }
428
+ ],
429
+ tableQueries: [{
430
+ transKey: "gd.notice.noticeOriginName",
431
+ prop: "searchValue",
432
+ label: "\u5173\u952E\u8BCD",
433
+ effectType: "input",
434
+ rules: []
435
+ }, {
436
+ transKey: "gd.sysConfig.type",
437
+ prop: "type",
438
+ label: "\u7C7B\u578B",
439
+ effectType: "select",
440
+ dictTypeCode: "notice_type",
441
+ rules: []
442
+ }]
443
+ };
444
+ }
445
+ }, O = {
446
+ data() {
447
+ return {
448
+ tableColumns: [
449
+ {
450
+ type: "selection",
451
+ width: "60",
452
+ fixed: !0
453
+ },
454
+ {
455
+ transKey: "gd.org.displayName",
456
+ prop: "name",
457
+ label: "\u673A\u6784\u540D\u79F0",
458
+ minWidth: "260",
459
+ type: "slot",
460
+ slotType: "name",
461
+ align: "left",
462
+ fixed: !0,
463
+ renderHeader: (t, ...e) => this.renderHeader(t, ...e, {
464
+ effectType: "input"
465
+ }),
466
+ showOverflowTooltip: !0
467
+ },
468
+ {
469
+ transKey: "gd.org.type",
470
+ prop: "orgType",
471
+ label: "\u673A\u6784\u7C7B\u578B",
472
+ minWidth: "220",
473
+ type: "slot",
474
+ slotType: "orgType",
475
+ align: "left",
476
+ showOverflowTooltip: !0
477
+ },
478
+ {
479
+ transKey: "gd.org.code",
480
+ prop: "code",
481
+ width: "200",
482
+ label: "\u552F\u4E00\u7F16\u7801",
483
+ align: "left",
484
+ showOverflowTooltip: !0
485
+ },
486
+ {
487
+ transKey: "gd.org.sort",
488
+ prop: "sort",
489
+ width: "120",
490
+ label: "\u6392\u5E8F",
491
+ align: "left"
492
+ },
493
+ {
494
+ transKey: "gd.org.remark",
495
+ prop: "remark",
496
+ minWidth: "300",
497
+ type: "slot",
498
+ slotType: "remark",
499
+ label: "\u5907\u6CE8",
500
+ align: "left"
501
+ }
502
+ ],
503
+ tableQueries: [{
504
+ transKey: "gd.process.tableSor",
505
+ prop: "tableId",
506
+ label: "\u8868\u540D\u79F0",
507
+ effectType: "selectTable",
508
+ rules: []
509
+ }, {
510
+ transKey: "gd.flow.state",
511
+ prop: "stateCodes",
512
+ label: "\u72B6\u6001",
513
+ effectType: "select",
514
+ dictTypeCode: "state_code",
515
+ rules: []
516
+ }]
517
+ };
518
+ }
519
+ };
520
+ const B = {
521
+ props: {
522
+ height: {
523
+ type: Number,
524
+ default: 0
525
+ },
526
+ selectOrgRow: {
527
+ type: Array,
528
+ default: () => []
529
+ }
530
+ },
531
+ mixins: [u, O],
532
+ data() {
533
+ return {
534
+ selectedRows: [],
535
+ selectedRowKeys: [],
536
+ queryParam: {},
537
+ loadData: (t) => F(Object.assign(t, this.queryParam)).then((e) => (setTimeout(() => {
538
+ let s = [...this.selectOrgRow];
539
+ this.selectedRowKeys = [...s], this.onSelectChange(s, []);
540
+ }, 10), e.data)),
541
+ detail: {}
542
+ };
543
+ },
544
+ computed: {
545
+ getHeight() {
546
+ return this.screenHeight - 500;
547
+ },
548
+ styled() {
549
+ return this.$hasPerm("sysFlowProcess:edit") ? `color:${this.primaryColor};cursor: pointer;` : "";
550
+ },
551
+ ...r(["tableLists", "tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode", "primaryColor"])
552
+ },
553
+ components: {},
554
+ methods: {
555
+ onSelectChange(t, e) {
556
+ this.selectedRowKeys = t, this.selectedRows = e, this.$emit("ok", this.selectedRowKeys);
557
+ },
558
+ refresh() {
559
+ this.$refs.table.refresh();
560
+ },
561
+ dictSwitch(t, e) {
562
+ let s = this.$options.filters.dictData(e).filter((i) => i.code == t)[0];
563
+ return s != null && s.colour ? s.colour : null;
564
+ },
565
+ doEvent(t) {
566
+ let e = t.item.functionName;
567
+ this[e] && this[e]();
568
+ }
569
+ }
570
+ };
571
+ var z = function() {
572
+ var e = this, s = e._self._c;
573
+ 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 }) {
574
+ return [s("gd-tooltip", { attrs: { rowKey: "name", row: n, highlight: "" } })];
575
+ } }, { key: "orgType", fn: function(i) {
576
+ 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)) + " ")])];
577
+ } }, { key: "remark", fn: function({ column: i, row: n }) {
578
+ return [s("gd-tooltip", { attrs: { rowKey: "remark", row: n } })];
579
+ } }]) })], 1)]);
580
+ }, H = [], A = /* @__PURE__ */ l(
581
+ B,
582
+ z,
583
+ H,
584
+ !1,
585
+ null,
586
+ "b1509975",
587
+ null,
588
+ null
589
+ );
590
+ const E = A.exports;
591
+ function q(t) {
592
+ return window.axios({
593
+ url: "/sysApps/page",
594
+ method: "get",
595
+ params: t
596
+ });
597
+ }
598
+ function Pe(t) {
599
+ return window.axios({
600
+ url: "/sysApps/detail",
601
+ method: "get",
602
+ params: t
603
+ });
604
+ }
605
+ function ke(t) {
606
+ return window.axios({
607
+ url: "/sysApps/add",
608
+ method: "post",
609
+ data: t
610
+ });
611
+ }
612
+ function Ne(t) {
613
+ return window.axios({
614
+ url: "/sysApps/edit",
615
+ method: "post",
616
+ data: t
617
+ });
618
+ }
619
+ function Fe(t) {
620
+ return window.axios({
621
+ url: "/sysApps/delete",
622
+ method: "post",
623
+ data: t
624
+ });
625
+ }
626
+ function De(t) {
627
+ return window.axios({
628
+ url: "/SysPublishhistory/add",
629
+ method: "post",
630
+ data: t
631
+ });
632
+ }
633
+ function Oe(t) {
634
+ return window.axios({
635
+ url: "/SysPublishhistory/list",
636
+ method: "post",
637
+ data: t
638
+ });
639
+ }
640
+ const M = {
641
+ data() {
642
+ return {
643
+ tableColumns: [
644
+ {
645
+ type: "selection",
646
+ width: "60",
647
+ fixed: !0
648
+ },
649
+ {
650
+ transKey: "gd.user.roleName",
651
+ prop: "name",
652
+ label: "\u89D2\u8272\u540D\u79F0",
653
+ type: "slot",
654
+ slotType: "name",
655
+ align: "left",
656
+ fixed: !0,
657
+ showOverflowTooltip: !0
658
+ },
659
+ {
660
+ transKey: "gd.org.code",
661
+ prop: "code",
662
+ label: "\u552F\u4E00\u7F16\u7801",
663
+ align: "left",
664
+ showOverflowTooltip: !0
665
+ },
666
+ {
667
+ transKey: "gd.org.sort",
668
+ prop: "sort",
669
+ width: "200",
670
+ label: "\u6392\u5E8F",
671
+ align: "left"
672
+ },
673
+ {
674
+ transKey: "gd.org.remark",
675
+ prop: "remark",
676
+ label: "\u5907\u6CE8",
677
+ align: "left",
678
+ showOverflowTooltip: !0
679
+ }
680
+ ],
681
+ tableQueries: [{
682
+ transKey: "gd.process.tableSor",
683
+ prop: "tableId",
684
+ label: "\u8868\u540D\u79F0",
685
+ effectType: "selectTable",
686
+ rules: []
687
+ }, {
688
+ transKey: "gd.flow.state",
689
+ prop: "stateCodes",
690
+ label: "\u72B6\u6001",
691
+ effectType: "select",
692
+ dictTypeCode: "state_code",
693
+ rules: []
694
+ }]
695
+ };
696
+ }
697
+ };
698
+ const I = {
699
+ props: {
700
+ height: {
701
+ type: Number,
702
+ default: 0
703
+ },
704
+ selectRoleRow: {
705
+ type: Array,
706
+ default: () => []
707
+ }
708
+ },
709
+ mixins: [u, M],
710
+ data() {
711
+ return {
712
+ selectedRows: [],
713
+ selectedRowKeys: [],
714
+ queryParam: { sysAppsId: "" },
715
+ loadData: (t) => $(Object.assign(t, this.queryParam)).then((e) => (setTimeout(() => {
716
+ let s = [...this.selectRoleRow];
717
+ this.selectedRowKeys = [...s], this.onSelectChange(s, []);
718
+ }, 10), e.data)),
719
+ detail: {}
720
+ };
721
+ },
722
+ computed: {
723
+ getHeight() {
724
+ return this.screenHeight - 500;
725
+ },
726
+ styled() {
727
+ return this.$hasPerm("sysFlowProcess:edit") ? `color:${this.primaryColor};cursor: pointer;` : "";
728
+ },
729
+ ...r(["tableLists", "tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode", "primaryColor"])
730
+ },
731
+ components: {},
732
+ methods: {
733
+ getSysAppsPage() {
734
+ q().then((t) => {
735
+ t.success && (this.queryParam.sysAppsId = t.data.rows[0].id);
736
+ });
737
+ },
738
+ onSelectChange(t, e) {
739
+ this.selectedRowKeys = t, this.selectedRows = e, this.$emit("ok", this.selectedRowKeys);
740
+ },
741
+ refresh() {
742
+ this.$refs.table.refresh();
743
+ },
744
+ dictSwitch(t, e) {
745
+ let s = this.$options.filters.dictData(e).filter((i) => i.code == t)[0];
746
+ return s != null && s.colour ? s.colour : null;
747
+ },
748
+ doEvent(t) {
749
+ let e = t.item.functionName;
750
+ this[e] && this[e]();
751
+ }
752
+ },
753
+ created() {
754
+ this.getSysAppsPage();
755
+ }
756
+ };
757
+ var U = function() {
758
+ var e = this, s = e._self._c;
759
+ 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 }) {
760
+ return [s("gd-tooltip", { attrs: { rowKey: "name", row: n, highlight: "" } })];
761
+ } }]) })], 1)]);
762
+ }, j = [], V = /* @__PURE__ */ l(
763
+ I,
764
+ U,
765
+ j,
766
+ !1,
767
+ null,
768
+ "4f37cfa6",
769
+ null,
770
+ null
771
+ );
772
+ const G = V.exports, Q = {
773
+ data() {
774
+ return {
775
+ tableColumns: [
776
+ {
777
+ type: "selection",
778
+ width: "60",
779
+ fixed: !0
780
+ },
781
+ {
782
+ transKey: "gd.fieldSecurity.name",
783
+ prop: "name",
784
+ label: "\u540D\u79F0",
785
+ type: "slot",
786
+ slotType: "name",
787
+ align: "left",
788
+ showOverflowTooltip: !0
789
+ },
790
+ {
791
+ transKey: "gd.fieldSecurity.teamType",
792
+ prop: "teamType",
793
+ label: "\u56E2\u961F\u7C7B\u578B",
794
+ align: "left",
795
+ type: "slot",
796
+ slotType: "teamType",
797
+ showOverflowTooltip: !0
798
+ },
799
+ {
800
+ transKey: "gd.fieldSecurity.description",
801
+ prop: "description",
802
+ label: "\u8BF4\u660E",
803
+ type: "slot",
804
+ slotType: "description",
805
+ align: "left"
806
+ }
807
+ ],
808
+ tableQueries: [{
809
+ transKey: "gd.process.tableSor",
810
+ prop: "tableId",
811
+ label: "\u8868\u540D\u79F0",
812
+ effectType: "selectTable",
813
+ rules: []
814
+ }, {
815
+ transKey: "gd.flow.state",
816
+ prop: "stateCodes",
817
+ label: "\u72B6\u6001",
818
+ effectType: "select",
819
+ dictTypeCode: "state_code",
820
+ rules: []
821
+ }]
822
+ };
823
+ }
824
+ };
825
+ const J = {
826
+ props: {
827
+ height: {
828
+ type: Number,
829
+ default: 0
830
+ },
831
+ selectTeamRow: {
832
+ type: Array,
833
+ default: () => []
834
+ }
835
+ },
836
+ mixins: [u, Q],
837
+ data() {
838
+ return {
839
+ selectedRows: [],
840
+ selectedRowKeys: [],
841
+ queryParam: {},
842
+ loadData: (t) => R(Object.assign(t, this.queryParam)).then((e) => (setTimeout(() => {
843
+ let s = [...this.selectTeamRow];
844
+ this.selectedRowKeys = [...s], this.onSelectChange(s, []);
845
+ }, 10), e.data)),
846
+ detail: {}
847
+ };
848
+ },
849
+ computed: {
850
+ getHeight() {
851
+ return this.screenHeight - 500;
852
+ },
853
+ styled() {
854
+ return this.$hasPerm("sysFlowProcess:edit") ? `color:${this.primaryColor};cursor: pointer;` : "";
855
+ },
856
+ ...r(["tableLists", "tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode", "primaryColor"])
857
+ },
858
+ components: {},
859
+ methods: {
860
+ onSelectChange(t, e) {
861
+ this.selectedRowKeys = t, this.selectedRows = e, this.$emit("ok", this.selectedRowKeys);
862
+ },
863
+ refresh() {
864
+ this.$refs.table.refresh();
865
+ },
866
+ dictSwitch(t, e) {
867
+ let s = this.$options.filters.dictData(e).filter((i) => i.code == t)[0];
868
+ return s != null && s.colour ? s.colour : null;
869
+ },
870
+ doEvent(t) {
871
+ let e = t.item.functionName;
872
+ this[e] && this[e]();
873
+ }
874
+ }
875
+ };
876
+ var W = function() {
877
+ var e = this, s = e._self._c;
878
+ 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 }) {
879
+ return [s("span", [e._v(" " + e._s(n.name) + " ")])];
880
+ } }, { key: "teamType", fn: function({ column: i, row: n }) {
881
+ return [s("span", [e._v(" " + e._s(e._f("dictType")("TeamType", n.teamtype)) + " ")])];
882
+ } }, { key: "description", fn: function({ column: i, row: n }) {
883
+ return [e._v(" " + e._s(n.description) + " ")];
884
+ } }]) })], 1)]);
885
+ }, X = [], Y = /* @__PURE__ */ l(
886
+ J,
887
+ W,
888
+ X,
889
+ !1,
890
+ null,
891
+ "1c4840a6",
892
+ null,
893
+ null
894
+ );
895
+ const Z = Y.exports, ee = {
896
+ data() {
897
+ return {
898
+ tableColumns: [
899
+ {
900
+ type: "selection",
901
+ width: "60",
902
+ fixed: !0
903
+ },
904
+ {
905
+ transKey: "gd.user.account",
906
+ prop: "account",
907
+ label: "\u8D26\u53F7",
908
+ width: "220",
909
+ type: "slot",
910
+ slotType: "account",
911
+ align: "left",
912
+ fixed: !0,
913
+ showOverflowTooltip: !0
914
+ },
915
+ {
916
+ transKey: "gd.user.name",
917
+ prop: "name",
918
+ label: "\u59D3\u540D",
919
+ width: "160",
920
+ align: "left",
921
+ showOverflowTooltip: !0
922
+ },
923
+ {
924
+ transKey: "gd.user.sex",
925
+ prop: "gender",
926
+ width: "120",
927
+ label: "\u6027\u522B",
928
+ type: "slot",
929
+ slotType: "gender",
930
+ align: "left",
931
+ showOverflowTooltip: !0
932
+ },
933
+ {
934
+ transKey: "gd.org.displayName",
935
+ prop: "orgname",
936
+ label: "\u673A\u6784\u540D\u79F0",
937
+ width: "180",
938
+ align: "left",
939
+ showOverflowTooltip: !0
940
+ },
941
+ {
942
+ transKey: "gd.user.phone",
943
+ prop: "phone",
944
+ width: "160",
945
+ label: "\u624B\u673A",
946
+ align: "left"
947
+ },
948
+ {
949
+ transKey: "gd.user.status",
950
+ prop: "statecodes",
951
+ label: "\u72B6\u6001",
952
+ width: "120",
953
+ type: "slot",
954
+ slotType: "statecodes",
955
+ align: "center",
956
+ dictTypeCode: "state_code",
957
+ renderHeader: (t, ...e) => this.renderHeader(t, ...e, {
958
+ effectType: "checkbox",
959
+ dictTypeCode: "state_code"
960
+ })
961
+ }
962
+ ],
963
+ tableQueries: [{
964
+ transKey: "gd.application.name",
965
+ prop: "name",
966
+ label: "\u540D\u79F0",
967
+ effectType: "input",
968
+ rules: []
969
+ }]
970
+ };
971
+ }
972
+ };
973
+ const te = {
974
+ props: {
975
+ height: {
976
+ type: Number,
977
+ default: 300
978
+ },
979
+ selectUserRow: {
980
+ type: Array,
981
+ default: () => []
982
+ }
983
+ },
984
+ mixins: [u, ee],
985
+ data() {
986
+ return {
987
+ selectedRows: [],
988
+ selectedRowKeys: [],
989
+ queryParam: {
990
+ searchValue: ""
991
+ },
992
+ loadData: (t) => {
993
+ let e = JSON.parse(JSON.stringify(this.selectUserRow));
994
+ return w(Object.assign(t, this.queryParam)).then((s) => {
995
+ let i = [];
996
+ return e.length > 0 ? i = [...JSON.parse(JSON.stringify(e))].map(String) : i = [...JSON.parse(JSON.stringify(this.selectUserRow))].map(String), this.$nextTick(() => {
997
+ this.selectedRowKeys = [...i], this.onSelectChange(i, []);
998
+ }), s.data;
999
+ });
1000
+ },
1001
+ detail: {}
1002
+ };
1003
+ },
1004
+ computed: {
1005
+ getHeight() {
1006
+ return this.screenHeight - 500;
1007
+ },
1008
+ styled() {
1009
+ return this.$hasPerm("sysFlowProcess:edit") ? `color:${this.primaryColor};cursor: pointer;` : "";
1010
+ },
1011
+ ...r(["tableLists", "tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode", "primaryColor"])
1012
+ },
1013
+ components: {},
1014
+ methods: {
1015
+ onSelectChange(t, e) {
1016
+ this.selectedRowKeys = t, this.selectedRows = e, this.$emit("ok", this.selectedRowKeys);
1017
+ },
1018
+ saveQueries(t) {
1019
+ this.queryParam = { ...t }, this.refresh();
1020
+ },
1021
+ refresh() {
1022
+ this.$refs.table.refresh();
1023
+ },
1024
+ init(t) {
1025
+ this.queryParam.searchValue = "", this.$refs.table.refresh();
1026
+ },
1027
+ dictSwitch(t, e) {
1028
+ let s = this.$options.filters.dictData(e).filter((i) => i.code == t)[0];
1029
+ return s != null && s.colour ? s.colour : null;
1030
+ },
1031
+ doEvent(t) {
1032
+ let e = t.item.functionName;
1033
+ this[e] && this[e]();
1034
+ }
1035
+ },
1036
+ mounted() {
1037
+ }
1038
+ };
1039
+ var se = function() {
1040
+ var e = this, s = e._self._c;
1041
+ 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 }) {
1042
+ return [s("gd-tooltip", { attrs: { rowKey: "account", row: n, highlight: "" } })];
1043
+ } }, { key: "gender", fn: function(i) {
1044
+ 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)];
1045
+ } }, { key: "statecodes", fn: function(i) {
1046
+ 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" } })])];
1047
+ } }, { key: "operator", fn: function() {
1048
+ 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) {
1049
+ return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.refresh.apply(null, arguments);
1050
+ } }, model: { value: e.queryParam.searchValue, callback: function(i) {
1051
+ e.$set(e.queryParam, "searchValue", i);
1052
+ }, expression: "queryParam.searchValue" } }), s("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [s("i", { staticClass: "el-input__icon el-icon-search" })])], 1)])];
1053
+ }, proxy: !0 }]) })], 1)]);
1054
+ }, ie = [], ne = /* @__PURE__ */ l(
1055
+ te,
1056
+ se,
1057
+ ie,
1058
+ !1,
1059
+ null,
1060
+ "b79cacd5",
1061
+ null,
1062
+ null
1063
+ );
1064
+ const ae = ne.exports;
1065
+ const oe = {
1066
+ data() {
1067
+ return {
1068
+ confirmLoading: !0,
1069
+ sysViewButtons: [
1070
+ {
1071
+ displayName: "\u786E\u5B9A",
1072
+ functionName: "handleSubmit",
1073
+ show: !0,
1074
+ transKey: "gd.btn.confirm",
1075
+ icon: "el-icon-document-checked"
1076
+ }
1077
+ ],
1078
+ type: "noticeuser",
1079
+ fullScreen: !1,
1080
+ width: "1000px",
1081
+ visible: !1,
1082
+ height: 300,
1083
+ userRowList: [],
1084
+ teamRowList: [],
1085
+ roleRowList: [],
1086
+ orgRowList: [],
1087
+ recordData: "",
1088
+ enterType: ""
1089
+ };
1090
+ },
1091
+ components: { noticeUser: ae, notcieOrg: E, noticeRole: G, noticeTeam: Z },
1092
+ computed: {
1093
+ getButtons() {
1094
+ return this.sysViewButtons.filter((t) => !(this.enterType == "1" && t.functionName === "handleSubmit"));
1095
+ },
1096
+ ...r(["screenHeight", "tableLists", "primaryColor"])
1097
+ },
1098
+ methods: {
1099
+ toggleFullscreen() {
1100
+ this.fullScreen = !this.fullScreen;
1101
+ },
1102
+ init(t, e) {
1103
+ 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(() => {
1104
+ this.$refs.noticeuserRef.init(this.userRowList);
1105
+ }, 100));
1106
+ },
1107
+ getData(t, e) {
1108
+ L({
1109
+ id: e == "1" ? t[0] : t
1110
+ }).then((s) => {
1111
+ s.data.receivergroups.forEach((n) => {
1112
+ 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);
1113
+ });
1114
+ });
1115
+ },
1116
+ doEvent(t) {
1117
+ let e = t.item.functionName;
1118
+ this[e] && this[e]();
1119
+ },
1120
+ tabChange(t) {
1121
+ this.$nextTick(() => {
1122
+ setTimeout(() => {
1123
+ }, 0);
1124
+ });
1125
+ },
1126
+ handleCancel() {
1127
+ this.visible = !1, this.confirmLoading = !1, this.userRowList = [], this.teamRowList = [], this.roleRowList = [], this.orgRowList = [];
1128
+ },
1129
+ handleSubmit() {
1130
+ let t = [
1131
+ {
1132
+ receiverType: "1",
1133
+ receiverIdList: this.userRowList.map(Number)
1134
+ },
1135
+ {
1136
+ receiverType: "2",
1137
+ receiverIdList: this.roleRowList.map(Number)
1138
+ },
1139
+ {
1140
+ receiverType: "3",
1141
+ receiverIdList: this.teamRowList.map(Number)
1142
+ },
1143
+ {
1144
+ receiverType: "4",
1145
+ receiverIdList: this.orgRowList.map(Number)
1146
+ }
1147
+ ];
1148
+ this.handleCancel(), this.$emit("ok", t);
1149
+ },
1150
+ selectUser(t) {
1151
+ this.userRowList = t;
1152
+ },
1153
+ selectTeam(t) {
1154
+ this.teamRowList = t;
1155
+ },
1156
+ selectRole(t) {
1157
+ this.roleRowList = t;
1158
+ },
1159
+ selectOrg(t) {
1160
+ this.orgRowList = t;
1161
+ }
1162
+ }
1163
+ };
1164
+ var re = function() {
1165
+ var e = this, s = e._self._c;
1166
+ 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) {
1167
+ e.visible = i;
1168
+ }, 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) {
1169
+ e.type = i;
1170
+ }, 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);
1171
+ }, le = [], ce = /* @__PURE__ */ l(
1172
+ oe,
1173
+ re,
1174
+ le,
1175
+ !1,
1176
+ null,
1177
+ "62d3bb5d",
1178
+ null,
1179
+ null
1180
+ );
1181
+ const de = ce.exports;
1182
+ const ue = {
1183
+ name: "GdNotice",
1184
+ props: {
1185
+ height: {
1186
+ type: Number,
1187
+ default: 100
1188
+ }
1189
+ },
1190
+ mixins: [u, D],
1191
+ data() {
1192
+ return {
1193
+ transKey: "gd.btn.add",
1194
+ loadData: (t) => g(Object.assign(t, this.queryParam)).then((e) => (this.allData = e.data.rows, e.data)),
1195
+ allData: [],
1196
+ selectedRowKeys: [],
1197
+ selectedRows: [],
1198
+ queryParam: {},
1199
+ formLoading: !1,
1200
+ mockData: [],
1201
+ targetKeys: [],
1202
+ noticeUserIdList: [],
1203
+ status: 0,
1204
+ type: "noticeUser",
1205
+ confirmLoading: !1,
1206
+ fileType: "pdf",
1207
+ style: "width: 100%; height: 580px;",
1208
+ headers: {
1209
+ "Content-Type": "multipart/form-data"
1210
+ },
1211
+ fileListFile: [],
1212
+ imgList: [],
1213
+ currentImg: "",
1214
+ ruleFormData: {
1215
+ fileList: "",
1216
+ name: "",
1217
+ notifyingPerson: [],
1218
+ fileid: ""
1219
+ },
1220
+ record: {},
1221
+ allEmpty: !0,
1222
+ noticeType: "",
1223
+ fileAccept: ["application/pdf"]
1224
+ };
1225
+ },
1226
+ components: {
1227
+ detailForm: h,
1228
+ editNoticeForm: de
1229
+ },
1230
+ computed: {
1231
+ getHeight() {
1232
+ return this.height;
1233
+ },
1234
+ getFormColumns() {
1235
+ 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 = [{
1236
+ required: !0,
1237
+ message: "\u8BF7\u8F93\u5165",
1238
+ transKey: "gd.placeholder.input",
1239
+ trigger: "change"
1240
+ }]), (this.noticeType == 1 || this.noticeType == 2) && e.prop === "fileList")));
1241
+ },
1242
+ getButtons() {
1243
+ return this.formButtons.filter((t) => !(this.transKey === "gd.btn.add" && t.functionName === "releaseTip"));
1244
+ },
1245
+ ...r(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
1246
+ },
1247
+ mounted() {
1248
+ (this.$route.params.id || this.$route.query.id) && (this.transKey = "gd.notice.detail", setTimeout(() => {
1249
+ this.allData.forEach((t) => {
1250
+ (t.id == this.$route.params.id || t.id == this.$route.query.id) && this.$refs.detailForm.open(t);
1251
+ });
1252
+ }, 1e3));
1253
+ },
1254
+ methods: {
1255
+ onSelectChange(t, e) {
1256
+ if (this.selectedRowKeys = t, this.selectedRows = e, e.length == 0) {
1257
+ this.baseHideBtns([], 2);
1258
+ return;
1259
+ }
1260
+ if (e.length > 1) {
1261
+ this.baseHideBtns(["\u5220\u9664", "\u53D1\u5E03", "\u64A4\u56DE", "\u7F16\u8F91"], 2);
1262
+ return;
1263
+ }
1264
+ let s = [], i = e.filter((o) => o.status == 0), n = e.filter((o) => o.status == 1), a = e.filter((o) => o.status == 2);
1265
+ i.length == e.length ? s = ["\u64A4\u56DE"] : n.length == e.length ? s = ["\u5220\u9664", "\u53D1\u5E03", "\u7F16\u8F91"] : a.length == e.length && (s = ["\u64A4\u56DE", "\u53D1\u5E03", "\u7F16\u8F91"]), this.baseHideBtns(s, 2);
1266
+ },
1267
+ baseHideBtns(t, e = 1) {
1268
+ let s = [...this.tableButtons];
1269
+ s.map((i) => (e === 1 ? i.show = !t.includes(i.id) : i.show = !t.includes(i.displayName), i)), this.tableButtons = [...s];
1270
+ },
1271
+ add() {
1272
+ this.transKey = "gd.btn.add", this.fileListFile = [], this.ruleFormData = {
1273
+ fileList: "",
1274
+ name: "",
1275
+ notifyingPerson: [],
1276
+ fileid: ""
1277
+ }, this.$refs.editForm.open(null);
1278
+ },
1279
+ noticePerson(t) {
1280
+ this.$refs.editNoticeFormRef.init(t.id, "2");
1281
+ },
1282
+ notifyingPerson() {
1283
+ if (this.selectedRowKeys.length === 0) {
1284
+ this.$message.warning(this.$i18nt("gd.https.operateTip", "\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\u7684\u6570\u636E!"));
1285
+ return;
1286
+ }
1287
+ if (this.selectedRowKeys.length > 1) {
1288
+ this.$message.warning(this.$i18nt("gd.https.readTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E"));
1289
+ return;
1290
+ }
1291
+ this.$refs.editNoticeFormRef.init(this.selectedRowKeys, "1");
1292
+ },
1293
+ edit() {
1294
+ if (this.selectedRowKeys.length === 0) {
1295
+ this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
1296
+ return;
1297
+ }
1298
+ if (this.selectedRowKeys.length > 1) {
1299
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91"));
1300
+ return;
1301
+ }
1302
+ this.sysNoticeDetail(this.selectedRows[0].id), this.transKey = "gd.btn.edit", this.$refs.editForm.open(
1303
+ Object.assign(
1304
+ {
1305
+ ...this.selectedRows[0]
1306
+ },
1307
+ {
1308
+ type: String(this.selectedRows[0].type),
1309
+ content: this.selectedRows[0].content,
1310
+ fileid: this.selectedRows[0].attachment
1311
+ }
1312
+ )
1313
+ );
1314
+ },
1315
+ editForm(t) {
1316
+ this.transKey = "gd.notice.detail", this.$refs.detailForm.open(t);
1317
+ },
1318
+ handleOk(t) {
1319
+ this.ruleFormData.notifyingPerson = [], this.ruleFormData.notifyingPerson = t, this.allEmpty = Array.isArray(t) ? t.every((e) => !e.receiverIdList || e.receiverIdList.length === 0) : !0;
1320
+ },
1321
+ sbumit({ data: t, record: e, btn: s }, i, n) {
1322
+ if (this.status = s.item.functionName == "releaseTip" ? 1 : 0, e != null) {
1323
+ let a = {
1324
+ id: t.id,
1325
+ content: t.content,
1326
+ status: this.status,
1327
+ title: t.title,
1328
+ type: t.type,
1329
+ receivergroups: this.ruleFormData.notifyingPerson,
1330
+ attachment: this.ruleFormData.fileid
1331
+ };
1332
+ this.formLoading = !0, S(Object.assign(this.noticeDetail, a)).then((o) => {
1333
+ o.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") + o.message), this.formLoading = !1, this.refresh();
1334
+ });
1335
+ } else {
1336
+ let a = {
1337
+ content: t.content,
1338
+ status: this.status,
1339
+ title: t.title,
1340
+ type: t.type,
1341
+ receiverGroups: this.ruleFormData.notifyingPerson,
1342
+ attachment: this.ruleFormData.fileid
1343
+ };
1344
+ this.formLoading = !0, C(a).then((o) => {
1345
+ o.success ? (this.refresh(), this.status == 1 ? (this.formLoading = !1, n()) : setTimeout(() => {
1346
+ this.$nextTick(() => {
1347
+ g({ pageNo: 1, pageSize: 50 }).then((c) => {
1348
+ this.allData = c.data.rows;
1349
+ const d = this.allData.filter((f) => f.title == t.title && f.content == t.content);
1350
+ d.length > 0 && (this.transKey = "gd.btn.edit", this.sysNoticeDetail(d[0].id), this.$refs.editForm.open(
1351
+ Object.assign(
1352
+ {
1353
+ ...d[0]
1354
+ },
1355
+ {
1356
+ type: String(d[0].type),
1357
+ content: d[0].content,
1358
+ fileid: d[0].attachment
1359
+ }
1360
+ )
1361
+ )), this.formLoading = !1;
1362
+ });
1363
+ });
1364
+ }, 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") + o.message), this.refresh(), this.formLoading = !1);
1365
+ });
1366
+ }
1367
+ },
1368
+ saveQueries(t) {
1369
+ this.queryParam = t, this.refresh();
1370
+ },
1371
+ read() {
1372
+ if (this.selectedRowKeys.length === 0) {
1373
+ this.$message.warning(this.$i18nt("gd.https.readTip", "\u8BF7\u9009\u62E9\u9700\u8981\u67E5\u770B\u7684\u6570\u636E"));
1374
+ return;
1375
+ }
1376
+ if (this.selectedRowKeys.length > 1) {
1377
+ this.$message.warning(this.$i18nt("gd.https.readTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E"));
1378
+ return;
1379
+ }
1380
+ this.$refs.detailForm.open(this.selectedRows[0]);
1381
+ },
1382
+ rollback() {
1383
+ if (this.selectedRowKeys.length === 0) {
1384
+ this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
1385
+ return;
1386
+ }
1387
+ if (this.selectedRowKeys.length > 1) {
1388
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91"));
1389
+ return;
1390
+ }
1391
+ this.$confirm(this.$i18nt("gd.https.withdrawContent", "\u786E\u8BA4\u64A4\u56DE?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
1392
+ confirmButtonText: this.$i18nt("gd.https.withdrawOk", "\u7ACB\u5373\u64A4\u56DE!"),
1393
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
1394
+ showClose: !1,
1395
+ confirmButtonLoading: !1,
1396
+ cancelButtonLoading: !1,
1397
+ closeOnClickModal: !1,
1398
+ type: "warning",
1399
+ confirmButtonClass: "el-button--danger",
1400
+ customClass: "custom-alert",
1401
+ callback: () => {
1402
+ },
1403
+ beforeClose: (t, e, s) => {
1404
+ this.rollbackHand(t, e, s);
1405
+ }
1406
+ });
1407
+ },
1408
+ rollbackHand(t, e, s) {
1409
+ if (t !== "confirm") {
1410
+ s();
1411
+ return;
1412
+ }
1413
+ let i = [];
1414
+ this.selectedRows.forEach((n) => {
1415
+ let a = m({
1416
+ id: n.id,
1417
+ status: 2
1418
+ }).then((o) => o);
1419
+ i.push(a);
1420
+ }), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(i).then((n) => {
1421
+ e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, s();
1422
+ const a = n.filter((o) => !o.success);
1423
+ a.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") + a[0].message), this.refresh();
1424
+ });
1425
+ },
1426
+ release() {
1427
+ if (this.selectedRowKeys.length === 0) {
1428
+ this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
1429
+ return;
1430
+ }
1431
+ if (this.selectedRowKeys.length > 1) {
1432
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91"));
1433
+ return;
1434
+ }
1435
+ this.$confirm(this.$i18nt("gd.https.releaseContent", "\u786E\u8BA4\u53D1\u5E03?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
1436
+ confirmButtonText: this.$i18nt("gd.https.releaseOk", "\u7ACB\u5373\u53D1\u5E03!"),
1437
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
1438
+ showClose: !1,
1439
+ confirmButtonLoading: !1,
1440
+ cancelButtonLoading: !1,
1441
+ closeOnClickModal: !1,
1442
+ type: "warning",
1443
+ confirmButtonClass: "el-button--danger",
1444
+ customClass: "custom-alert",
1445
+ callback: () => {
1446
+ },
1447
+ beforeClose: (t, e, s) => {
1448
+ this.releaseHand(t, e, s);
1449
+ }
1450
+ });
1451
+ },
1452
+ releaseHand(t, e, s) {
1453
+ if (t !== "confirm") {
1454
+ s();
1455
+ return;
1456
+ }
1457
+ let i = [];
1458
+ this.selectedRows.forEach((n) => {
1459
+ let a = m({
1460
+ id: n.id,
1461
+ status: 1
1462
+ }).then((o) => o);
1463
+ i.push(a);
1464
+ }), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(i).then((n) => {
1465
+ e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, s();
1466
+ const a = n.filter((o) => !o.success);
1467
+ a.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") + a[0].message), this.refresh();
1468
+ });
1469
+ },
1470
+ del() {
1471
+ if (this.selectedRowKeys.length === 0) {
1472
+ this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));
1473
+ return;
1474
+ }
1475
+ this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
1476
+ confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
1477
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
1478
+ showClose: !1,
1479
+ confirmButtonLoading: !1,
1480
+ cancelButtonLoading: !1,
1481
+ closeOnClickModal: !1,
1482
+ type: "warning",
1483
+ confirmButtonClass: "el-button--danger",
1484
+ customClass: "custom-alert",
1485
+ callback: () => {
1486
+ },
1487
+ beforeClose: (t, e, s) => {
1488
+ this.delHand(t, e, s);
1489
+ }
1490
+ });
1491
+ },
1492
+ delHand(t, e, s) {
1493
+ if (t !== "confirm") {
1494
+ s();
1495
+ return;
1496
+ }
1497
+ let i = [];
1498
+ this.selectedRows.forEach((n) => {
1499
+ let a = K(n).then((o) => o);
1500
+ i.push(a);
1501
+ }), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(i).then((n) => {
1502
+ s();
1503
+ const a = n.filter((o) => !o.success);
1504
+ a.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") + a[0].message), this.refresh(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
1505
+ });
1506
+ },
1507
+ sysNoticeDetail(t) {
1508
+ y({
1509
+ id: t
1510
+ }).then((e) => {
1511
+ 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;
1512
+ });
1513
+ },
1514
+ getMock(t) {
1515
+ const e = [], s = [];
1516
+ b().then((i) => {
1517
+ this.confirmLoading = !1;
1518
+ for (let n = 0; n < i.data.length; n++) {
1519
+ const a = i.data[n], o = {
1520
+ key: a.id.toString(),
1521
+ label: a.name,
1522
+ description: `description of ${a.name}`
1523
+ };
1524
+ if (t)
1525
+ for (let c = 0; c < t.noticeuseridlist.length; c++)
1526
+ o.key === t.noticeuseridlist[c] && e.push(t.noticeuseridlist[c]);
1527
+ s.push(o);
1528
+ }
1529
+ this.mockData = s, this.targetKeys = e;
1530
+ });
1531
+ },
1532
+ handleChange(t) {
1533
+ this.targetKeys = t;
1534
+ },
1535
+ refresh() {
1536
+ this.$refs.table.refresh();
1537
+ },
1538
+ doEvent(t) {
1539
+ let e = t.item.functionName;
1540
+ this[e] && this[e]();
1541
+ },
1542
+ handleFile(t) {
1543
+ if (!!["image"].includes("file") && !t) {
1544
+ this.fileList = [];
1545
+ return;
1546
+ }
1547
+ },
1548
+ uploadFile(t) {
1549
+ if (!this.fileAccept.includes(t.file.type)) {
1550
+ this.$message.error(this.$i18nt("gd.view.fileAcceptTip", "\u6587\u4EF6\u7C7B\u578B\u4E0D\u652F\u6301\uFF01")), t.onError();
1551
+ return;
1552
+ }
1553
+ new FormData().append("file", t.file), _(t).then((i) => {
1554
+ if (i.code === 200) {
1555
+ const n = i.data.url, o = (this.ruleFormData && this.ruleFormData.fileList ? this.ruleFormData.fileList.split(",") : []).concat([n]);
1556
+ return this.ruleFormData.fileList = o.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;
1557
+ } else
1558
+ this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25:") + i.message), t.onError();
1559
+ }).catch((i) => {
1560
+ t.onError(i);
1561
+ });
1562
+ },
1563
+ successFile(t, e, s) {
1564
+ },
1565
+ removeFile(t, e) {
1566
+ let s = [];
1567
+ e.forEach((i) => {
1568
+ i.response && i.response.id ? s.push(i.response.id) : s.push(i.url);
1569
+ }), this.ruleFormData.fileList = s.join(","), this.ruleFormData.name = "", this.ruleFormData.fileid = "";
1570
+ },
1571
+ previewFile(t) {
1572
+ let e = "";
1573
+ t.response && t.response.fileOriginName ? (e = t.response.fileOriginName, t.response.url) : (e = t.name, t.url);
1574
+ const s = e.substr(e.lastIndexOf(".") + 1).toLowerCase();
1575
+ ["gif", "jpeg", "png", "jpg", "JPG", "PNG"].includes(s) ? this.imgPreview(t.response.id) : this.downFile(t);
1576
+ },
1577
+ imgPreview(t) {
1578
+ v({
1579
+ id: t
1580
+ }).then((e) => {
1581
+ const s = window.URL.createObjectURL(new Blob([e]));
1582
+ this.imgList = [s], this.currentImg = s, this.$refs.imgPreview.open();
1583
+ });
1584
+ },
1585
+ downFile(t) {
1586
+ this.$refs.filePreview.open(
1587
+ Object.assign(t, {
1588
+ fileId: t.response && t.response.fileoriginname ? t.response.id : t.fileId
1589
+ })
1590
+ );
1591
+ },
1592
+ getBlobType(t) {
1593
+ let e = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
1594
+ return this.fileType === "pdf" ? e = "application/pdf" : this.fileType === "docx" && (e = "application/msword"), e;
1595
+ },
1596
+ infoDownLoad(t) {
1597
+ return T({
1598
+ id: t
1599
+ }).then((e) => {
1600
+ 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 = [
1601
+ {
1602
+ name: e.data.fileoriginname,
1603
+ url: e.data.url,
1604
+ response: {
1605
+ id: e.data.id,
1606
+ url: e.data.url,
1607
+ fileoriginname: e.data.fileoriginname
1608
+ }
1609
+ }
1610
+ ];
1611
+ });
1612
+ },
1613
+ getDictionary(t) {
1614
+ return this.$options.filters.dictData(t);
1615
+ },
1616
+ changeMode(t) {
1617
+ this.noticeType = t;
1618
+ }
1619
+ }
1620
+ };
1621
+ var he = function() {
1622
+ var e = this, s = e._self._c;
1623
+ 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() {
1624
+ 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) {
1625
+ return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.refresh.apply(null, arguments);
1626
+ } }, model: { value: e.queryParam.SearchValue, callback: function(i) {
1627
+ e.$set(e.queryParam, "SearchValue", i);
1628
+ }, 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)])];
1629
+ }, proxy: !0 }, { key: "title", fn: function({ column: i, row: n }) {
1630
+ return [s("gd-tooltip", { attrs: { rowKey: "title", row: n, highlight: "" }, on: { click: e.editForm } })];
1631
+ } }, { key: "type", fn: function(i) {
1632
+ 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)) + " ")])];
1633
+ } }, { key: "status", fn: function(i) {
1634
+ 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)) + " ")])];
1635
+ } }, { key: "filtering", fn: function({ colse: i, visible: n }) {
1636
+ return [s("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: i, visible: n }, on: { save: e.saveQueries } })];
1637
+ } }]) })], 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 }) {
1638
+ return [s("el-transfer", { attrs: { data: e.mockData, titles: ["\u672A\u9009", "\u5DF2\u9009"], filterable: "" }, on: { change: e.handleChange }, model: { value: e.targetKeys, callback: function(a) {
1639
+ e.targetKeys = a;
1640
+ }, expression: "targetKeys" } })];
1641
+ } }, { key: "notifyingPerson", fn: function({ data: i, column: n }) {
1642
+ return [s("el-button", { attrs: { type: e.allEmpty ? "danger" : "primary" }, on: { click: function(a) {
1643
+ return e.noticePerson(i);
1644
+ } } }, [s("i", { staticClass: "gd-icons el-icon-bell" }), e._v(" " + e._s(e.$i18nt("gd.notice.notice", "\u901A\u77E5")))])];
1645
+ } }, { key: "notice_type", fn: function({ data: i, column: n }) {
1646
+ return [s("el-radio-group", { on: { change: e.changeMode }, model: { value: i.type, callback: function(a) {
1647
+ e.$set(i, "type", a);
1648
+ }, expression: "data.type" } }, e._l(e.getDictionary("notice_type"), function(a, o) {
1649
+ return s("el-radio", { key: a.code, attrs: { label: a.code } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${a.transkey}`, a.name)) + " ")]);
1650
+ }), 1)];
1651
+ } }, { key: "fileList", fn: function({ data: i, column: n }) {
1652
+ 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)];
1653
+ } }]) }), 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);
1654
+ }, pe = [], fe = /* @__PURE__ */ l(
1655
+ ue,
1656
+ he,
1657
+ pe,
1658
+ !1,
1659
+ null,
1660
+ "7a480ef7",
1661
+ null,
1662
+ null
1663
+ );
1664
+ const p = fe.exports;
1665
+ p.install = function(t) {
1666
+ t.component(p.name, p);
1667
+ };
1668
+ h.install = function(t) {
1669
+ t.component(h.name, h);
1670
+ };
1671
+ export {
1672
+ p as G,
1673
+ Re as a,
1674
+ Se as b,
1675
+ Ce as c,
1676
+ h as d,
1677
+ xe as e,
1678
+ Le as f,
1679
+ F as g,
1680
+ _e as h,
1681
+ Te as i,
1682
+ ve as j,
1683
+ y as k,
1684
+ q as l,
1685
+ $e as m,
1686
+ Oe as n,
1687
+ Pe as o,
1688
+ De as p,
1689
+ Fe as q,
1690
+ Ne as r,
1691
+ Ke as s,
1692
+ ke as t
1693
+ };