gds-plus-design-vue 1.2.2 → 1.2.4

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