gds-plus-design-vue 1.2.2 → 1.2.3

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