gds-plus-design-vue 1.2.3 → 1.2.21
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.
- package/lib/gd-initial.js +15 -17
- package/lib/gd-initial.mjs +9476 -13948
- package/lib/{main.4aebe1c9.js → main.2415a49a.js} +1 -1
- package/lib/{main.eb4b260e.mjs → main.2cddfbbd.mjs} +2 -2
- package/lib/main.4c447fc3.js +1 -0
- package/lib/{main.05252737.mjs → main.86fe06d4.mjs} +2 -2
- package/lib/{main.a30b25d6.mjs → main.b2d0a309.mjs} +11 -11
- package/lib/{main.458dc0a0.js → main.d091d06d.js} +1 -1
- package/lib/{messages.30e41348.js → messages.2fff74f3.js} +5 -5
- package/lib/{messages.a1335b0f.mjs → messages.d8abe18d.mjs} +150 -165
- package/lib/style.css +2 -2
- package/lib/{system.account.1ff630c9.js → system.account.8ea53681.js} +1 -1
- package/lib/{system.account.20f9e450.mjs → system.account.9bc40d08.mjs} +9 -9
- package/lib/{system.config.c85c05e9.mjs → system.config.8223d495.mjs} +1 -1
- package/lib/{system.config.532ab3b8.js → system.config.c6e30213.js} +1 -1
- package/lib/{system.datasource.f64a59de.mjs → system.datasource.57233650.mjs} +1 -1
- package/lib/{system.datasource.272f1add.js → system.datasource.fd6a4e76.js} +1 -1
- package/lib/{system.dict.565d69ca.mjs → system.dict.8f95218b.mjs} +3 -3
- package/lib/{system.dict.a23e8cdf.js → system.dict.a24f33b0.js} +1 -1
- package/lib/{system.duplicatechecking.f66790d1.js → system.duplicatechecking.39293985.js} +1 -1
- package/lib/{system.duplicatechecking.268544dd.mjs → system.duplicatechecking.6b706948.mjs} +1 -1
- package/lib/{system.email.00a93855.js → system.email.a2d9a307.js} +1 -1
- package/lib/{system.email.ada25702.mjs → system.email.dae988be.mjs} +1 -1
- package/lib/{system.fieldsecurity.d14384cc.mjs → system.fieldsecurity.02627a7a.mjs} +78 -126
- package/lib/system.fieldsecurity.a0cec24d.js +1 -0
- package/lib/{system.file.a23b3c83.mjs → system.file.0fa095a9.mjs} +3 -3
- package/lib/system.file.d695ab37.js +1 -0
- package/lib/{system.log.8a9f4a4d.mjs → system.log.acb64505.mjs} +1 -1
- package/lib/{system.log.b3666991.js → system.log.c07ae5db.js} +1 -1
- package/lib/system.notice.5ae50bd4.mjs +641 -0
- package/lib/system.notice.f18578ae.js +1 -0
- package/lib/{system.noticereceived.70963f1b.mjs → system.noticereceived.1aa70b65.mjs} +24 -32
- package/lib/system.noticereceived.bfa98a9b.js +1 -0
- package/lib/{system.onlineuser.99e4de37.js → system.onlineuser.1c428d05.js} +1 -1
- package/lib/{system.onlineuser.c58fb6ce.mjs → system.onlineuser.3d848a32.mjs} +1 -1
- package/lib/system.org.5bb36f9c.js +1 -0
- package/lib/{system.org.638db6d1.mjs → system.org.fcf96d1e.mjs} +68 -17
- package/lib/{system.permissions.aa0cc0d6.mjs → system.permissions.23f5b097.mjs} +2 -2
- package/lib/{system.permissions.fcd56f67.js → system.permissions.a1a9505c.js} +1 -1
- package/lib/{system.plugin.b17efa53.js → system.plugin.b6de4673.js} +1 -1
- package/lib/{system.plugin.beb44900.mjs → system.plugin.e37f9dbc.mjs} +1 -1
- package/lib/{system.pos.699e8dd6.mjs → system.pos.1a01fc97.mjs} +1 -1
- package/lib/{system.pos.e8d9c488.js → system.pos.a4fb19b0.js} +1 -1
- package/lib/{system.promptmanagement.109a07f5.js → system.promptmanagement.290958b1.js} +1 -1
- package/lib/{system.promptmanagement.2ce3e426.mjs → system.promptmanagement.36a65c51.mjs} +1 -1
- package/lib/{system.role.230b1445.mjs → system.role.68de93ef.mjs} +354 -845
- package/lib/system.role.88100f66.js +1 -0
- package/lib/{system.sumberrules.fa1aab86.mjs → system.sumberrules.cdef9308.mjs} +1 -1
- package/lib/{system.sumberrules.38017ad1.js → system.sumberrules.dd6299e8.js} +1 -1
- package/lib/{system.team.3826e252.js → system.team.53d64006.js} +1 -1
- package/lib/{system.team.aeaede22.mjs → system.team.ee652fe4.mjs} +1 -1
- package/lib/{system.teammembers.2e3309c3.mjs → system.teammembers.26a2ba81.mjs} +2 -2
- package/lib/{system.teammembers.29128f16.js → system.teammembers.4a3dc336.js} +1 -1
- package/lib/{system.timers.0ec63785.mjs → system.timers.4efa8a7d.mjs} +1 -1
- package/lib/{system.timers.b62568ad.js → system.timers.b9424204.js} +1 -1
- package/lib/{system.translation.e71455aa.mjs → system.translation.0a9399b4.mjs} +2 -2
- package/lib/{system.translation.887fa90d.js → system.translation.21d2fd8b.js} +1 -1
- package/lib/{system.user.84227a85.mjs → system.user.4fcfdf99.mjs} +4 -4
- package/lib/{system.user.bed5f82a.js → system.user.d48a08db.js} +1 -1
- package/lib/{system.useraffiliation.7ec0fcae.js → system.useraffiliation.a59ce45b.js} +1 -1
- package/lib/{system.useraffiliation.b3f03a33.mjs → system.useraffiliation.fb002239.mjs} +2 -2
- package/lib/{system.webresource.f8b78dd0.js → system.webresource.3366cc29.js} +1 -1
- package/lib/{system.webresource.e6cb9173.mjs → system.webresource.4df01c92.mjs} +2 -2
- package/locale/en_US.js +18 -68
- package/locale/id_ID.js +17 -67
- package/locale/vi_VN.js +17 -67
- package/locale/zh_CN.js +17 -67
- package/package.json +1 -1
- package/lib/main.9801708f.js +0 -1
- package/lib/system.fieldsecurity.ede73621.js +0 -1
- package/lib/system.file.aa567566.js +0 -1
- package/lib/system.notice.5fb1485e.js +0 -1
- package/lib/system.notice.6d0aa32c.mjs +0 -1674
- package/lib/system.noticereceived.e5ef5883.js +0 -1
- package/lib/system.org.56151be8.js +0 -1
- package/lib/system.role.f0d4082c.js +0 -1
|
@@ -0,0 +1,641 @@
|
|
|
1
|
+
import { m as d, n as h } from "./chartbi.cdd1e365.mjs";
|
|
2
|
+
import { s as g } from "./system.account.9bc40d08.mjs";
|
|
3
|
+
import { t as f } from "./messages.d8abe18d.mjs";
|
|
4
|
+
function p(t) {
|
|
5
|
+
return window.axios({
|
|
6
|
+
url: "/sysNotice/page",
|
|
7
|
+
method: "get",
|
|
8
|
+
params: t
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
function m(t) {
|
|
12
|
+
return window.axios({
|
|
13
|
+
url: "/sysNotice/add",
|
|
14
|
+
method: "post",
|
|
15
|
+
data: t
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function y(t) {
|
|
19
|
+
return window.axios({
|
|
20
|
+
url: "/sysNotice/edit",
|
|
21
|
+
method: "post",
|
|
22
|
+
data: t
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function b(t) {
|
|
26
|
+
return window.axios({
|
|
27
|
+
url: "/sysNotice/delete",
|
|
28
|
+
method: "post",
|
|
29
|
+
data: t
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function u(t) {
|
|
33
|
+
return window.axios({
|
|
34
|
+
url: "/sysNotice/detail",
|
|
35
|
+
method: "get",
|
|
36
|
+
params: t
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function c(t) {
|
|
40
|
+
return window.axios({
|
|
41
|
+
url: "/sysNotice/changeStatus",
|
|
42
|
+
method: "post",
|
|
43
|
+
data: t
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
const w = {
|
|
47
|
+
data() {
|
|
48
|
+
return {
|
|
49
|
+
tableColumns: [
|
|
50
|
+
{
|
|
51
|
+
type: "selection",
|
|
52
|
+
width: "60",
|
|
53
|
+
fixed: !0
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
transKey: "gd.notice.title",
|
|
57
|
+
prop: "title",
|
|
58
|
+
label: "\u6807\u9898",
|
|
59
|
+
type: "slot",
|
|
60
|
+
slotType: "title",
|
|
61
|
+
align: "left",
|
|
62
|
+
fixed: !0,
|
|
63
|
+
showOverflowTooltip: !0
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
transKey: "gd.notice.type",
|
|
67
|
+
prop: "type",
|
|
68
|
+
label: "\u7C7B\u578B",
|
|
69
|
+
align: "left",
|
|
70
|
+
type: "slot",
|
|
71
|
+
slotType: "type",
|
|
72
|
+
align: "center",
|
|
73
|
+
showOverflowTooltip: !0
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
transKey: "gd.notice.status",
|
|
77
|
+
prop: "status",
|
|
78
|
+
label: "\u72B6\u6001",
|
|
79
|
+
align: "left",
|
|
80
|
+
type: "slot",
|
|
81
|
+
slotType: "status"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
transKey: "gd.notice.createdTime",
|
|
85
|
+
prop: "createdtime",
|
|
86
|
+
label: "\u521B\u5EFA\u65F6\u95F4",
|
|
87
|
+
align: "center"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
transKey: "gd.notice.publicTime",
|
|
91
|
+
prop: "publictime",
|
|
92
|
+
label: "\u53D1\u5E03\u65F6\u95F4",
|
|
93
|
+
align: "center"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
transKey: "gd.notice.publicUserName",
|
|
97
|
+
prop: "publicusername",
|
|
98
|
+
label: "\u53D1\u5E03\u4EBA",
|
|
99
|
+
align: "left"
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
formColumns: [
|
|
103
|
+
{
|
|
104
|
+
transKey: "gd.notice.title",
|
|
105
|
+
effectType: "input",
|
|
106
|
+
prop: "title",
|
|
107
|
+
label: "\u6807\u9898",
|
|
108
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
109
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
110
|
+
rules: [{
|
|
111
|
+
required: !0,
|
|
112
|
+
message: "\u8BF7\u8F93\u5165",
|
|
113
|
+
transKey: "gd.placeholder.input",
|
|
114
|
+
trigger: "change"
|
|
115
|
+
}]
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
transKey: "gd.notice.type",
|
|
119
|
+
prop: "type",
|
|
120
|
+
label: "\u7C7B\u578B",
|
|
121
|
+
effectType: "radio",
|
|
122
|
+
dictTypeCode: "notice_type",
|
|
123
|
+
rules: [{
|
|
124
|
+
required: !0,
|
|
125
|
+
message: "\u8BF7\u9009\u62E9",
|
|
126
|
+
transKey: "gd.placeholder.select",
|
|
127
|
+
trigger: "change"
|
|
128
|
+
}]
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
transKey: "gd.notice.noticeBucket",
|
|
132
|
+
effectType: "editor",
|
|
133
|
+
prop: "editorcontent",
|
|
134
|
+
label: "\u5185\u5BB9",
|
|
135
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
136
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
137
|
+
rules: [{
|
|
138
|
+
required: !0,
|
|
139
|
+
message: "\u8BF7\u8F93\u5165",
|
|
140
|
+
transKey: "gd.placeholder.input",
|
|
141
|
+
trigger: "change"
|
|
142
|
+
}]
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
transKey: "gd.notice.notifyTo",
|
|
146
|
+
effectType: "transfer",
|
|
147
|
+
prop: "targetkeys",
|
|
148
|
+
label: "\u6536\u5230\u901A\u77E5\u4EBA",
|
|
149
|
+
type: "slot",
|
|
150
|
+
slotType: "targetKeys",
|
|
151
|
+
rules: [{
|
|
152
|
+
required: !1,
|
|
153
|
+
message: "\u8BF7\u9009\u62E9",
|
|
154
|
+
transKey: "gd.placeholder.select",
|
|
155
|
+
trigger: "change"
|
|
156
|
+
}]
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
tableButtons: [
|
|
160
|
+
{
|
|
161
|
+
displayName: "\u65B0\u589E",
|
|
162
|
+
functionName: "add",
|
|
163
|
+
show: !0,
|
|
164
|
+
transKey: "gd.btn.add",
|
|
165
|
+
icon: "el-icon-plus",
|
|
166
|
+
name: "sysNotice:add"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
displayName: "\u7F16\u8F91",
|
|
170
|
+
functionName: "edit",
|
|
171
|
+
show: !0,
|
|
172
|
+
transKey: "gd.btn.edit",
|
|
173
|
+
icon: "el-icon-edit",
|
|
174
|
+
name: "sysNotice:edit"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
displayName: "\u5220\u9664",
|
|
178
|
+
functionName: "del",
|
|
179
|
+
show: !0,
|
|
180
|
+
transKey: "gd.btn.del",
|
|
181
|
+
icon: "el-icon-delete",
|
|
182
|
+
btnType: "danger",
|
|
183
|
+
name: "sysNotice:delete"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
displayName: "\u53D1\u5E03",
|
|
187
|
+
functionName: "release",
|
|
188
|
+
show: !0,
|
|
189
|
+
btnType: "danger",
|
|
190
|
+
transKey: "gd.btn.release",
|
|
191
|
+
icon: "el-icon-s-promotion",
|
|
192
|
+
name: "sysNotice:changeStatus"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
displayName: "\u64A4\u56DE",
|
|
196
|
+
functionName: "rollback",
|
|
197
|
+
show: !0,
|
|
198
|
+
transKey: "gd.btn.withdraw",
|
|
199
|
+
icon: "el-icon-refresh-left",
|
|
200
|
+
btnType: "danger",
|
|
201
|
+
name: "sysNotice:changeStatus"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
displayName: "\u67E5\u770B",
|
|
205
|
+
functionName: "read",
|
|
206
|
+
show: !0,
|
|
207
|
+
transKey: "gd.btn.view",
|
|
208
|
+
icon: "el-icon-reading",
|
|
209
|
+
name: "sysNotice:detail"
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
formButtons: [
|
|
213
|
+
{
|
|
214
|
+
displayName: "\u53D1\u5E03",
|
|
215
|
+
functionName: "releaseTip",
|
|
216
|
+
show: !0,
|
|
217
|
+
btnType: "danger",
|
|
218
|
+
transKey: "gd.btn.release",
|
|
219
|
+
icon: "el-icon-s-promotion",
|
|
220
|
+
validate: !0
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
displayName: "\u5B58\u4E3A\u8349\u7A3F",
|
|
224
|
+
functionName: "saveDraft",
|
|
225
|
+
show: !0,
|
|
226
|
+
transKey: "gd.btn.saveDraft",
|
|
227
|
+
icon: "el-icon-tickets",
|
|
228
|
+
validate: !0
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
tableQueries: [{
|
|
232
|
+
transKey: "gd.notice.noticeOriginName",
|
|
233
|
+
prop: "searchValue",
|
|
234
|
+
label: "\u5173\u952E\u8BCD",
|
|
235
|
+
effectType: "input",
|
|
236
|
+
rules: []
|
|
237
|
+
}, {
|
|
238
|
+
transKey: "gd.sysConfig.type",
|
|
239
|
+
prop: "type",
|
|
240
|
+
label: "\u7C7B\u578B",
|
|
241
|
+
effectType: "select",
|
|
242
|
+
dictTypeCode: "notice_type",
|
|
243
|
+
rules: []
|
|
244
|
+
}]
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
const _ = {
|
|
249
|
+
data() {
|
|
250
|
+
return {
|
|
251
|
+
transKey: "gd.notice.detail",
|
|
252
|
+
fullscreen: !1,
|
|
253
|
+
visible: !1,
|
|
254
|
+
width: "900",
|
|
255
|
+
confirmLoading: !1,
|
|
256
|
+
contentRecord: {},
|
|
257
|
+
sysViewButtons: []
|
|
258
|
+
};
|
|
259
|
+
},
|
|
260
|
+
computed: {
|
|
261
|
+
height() {
|
|
262
|
+
return this.screenHeight - 24 - 40 - 36;
|
|
263
|
+
},
|
|
264
|
+
headTitle() {
|
|
265
|
+
return this.$i18nt(this.transKey, this.title);
|
|
266
|
+
},
|
|
267
|
+
...d(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
|
|
268
|
+
},
|
|
269
|
+
methods: {
|
|
270
|
+
open(t) {
|
|
271
|
+
console.log(t), this.fullscreen = !1, this.visible = !0, this.confirmLoading = !0, this.sysNoticeDetail(t.id);
|
|
272
|
+
},
|
|
273
|
+
sysNoticeDetail(t) {
|
|
274
|
+
this.fullscreen = !1, u({
|
|
275
|
+
id: t
|
|
276
|
+
}).then((e) => {
|
|
277
|
+
this.confirmLoading = !1, this.contentRecord = e.data;
|
|
278
|
+
});
|
|
279
|
+
},
|
|
280
|
+
handleCancel() {
|
|
281
|
+
this.visible = !1, this.contentRecord = {};
|
|
282
|
+
},
|
|
283
|
+
closed() {
|
|
284
|
+
this.visible = !1;
|
|
285
|
+
},
|
|
286
|
+
toggleFullscreen() {
|
|
287
|
+
this.fullscreen = !this.fullscreen;
|
|
288
|
+
},
|
|
289
|
+
doEvent(t) {
|
|
290
|
+
const e = t.item.functionName;
|
|
291
|
+
this[e] && this[e]();
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
var $ = function() {
|
|
296
|
+
var e = this, s = e._self._c;
|
|
297
|
+
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) {
|
|
298
|
+
e.visible = i;
|
|
299
|
+
}, 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", { domProps: { innerHTML: e._s(this.contentRecord.content) } })])], 1)], 1)], 1);
|
|
300
|
+
}, K = [], v = /* @__PURE__ */ h(
|
|
301
|
+
_,
|
|
302
|
+
$,
|
|
303
|
+
K,
|
|
304
|
+
!1,
|
|
305
|
+
null,
|
|
306
|
+
"e87efedd",
|
|
307
|
+
null,
|
|
308
|
+
null
|
|
309
|
+
);
|
|
310
|
+
const C = v.exports;
|
|
311
|
+
const T = {
|
|
312
|
+
name: "GdNotice",
|
|
313
|
+
props: {
|
|
314
|
+
height: {
|
|
315
|
+
type: Number,
|
|
316
|
+
default: 100
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
mixins: [f, w],
|
|
320
|
+
data() {
|
|
321
|
+
return {
|
|
322
|
+
transKey: "gd.btn.add",
|
|
323
|
+
loadData: (t) => p(Object.assign(t, this.queryParam)).then((e) => e.data),
|
|
324
|
+
selectedRowKeys: [],
|
|
325
|
+
selectedRows: [],
|
|
326
|
+
queryParam: {},
|
|
327
|
+
formLoading: !1,
|
|
328
|
+
mockData: [],
|
|
329
|
+
targetKeys: [],
|
|
330
|
+
noticeUserIdList: [],
|
|
331
|
+
mockData: [],
|
|
332
|
+
status: 0
|
|
333
|
+
};
|
|
334
|
+
},
|
|
335
|
+
components: {
|
|
336
|
+
detailForm: C
|
|
337
|
+
},
|
|
338
|
+
computed: {
|
|
339
|
+
getHeight() {
|
|
340
|
+
return this.height;
|
|
341
|
+
},
|
|
342
|
+
getFormColumns() {
|
|
343
|
+
return this.formColumns.filter((e) => !0);
|
|
344
|
+
},
|
|
345
|
+
...d(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
|
|
346
|
+
},
|
|
347
|
+
mounted() {
|
|
348
|
+
},
|
|
349
|
+
methods: {
|
|
350
|
+
onSelectChange(t, e) {
|
|
351
|
+
if (this.selectedRowKeys = t, this.selectedRows = e, e.length == 0) {
|
|
352
|
+
this.baseHideBtns([], 2);
|
|
353
|
+
return;
|
|
354
|
+
}
|
|
355
|
+
if (e.length > 1) {
|
|
356
|
+
this.baseHideBtns(["\u5220\u9664", "\u53D1\u5E03", "\u64A4\u56DE", "\u7F16\u8F91"], 2);
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
let s = [], i = e.filter((a) => a.status == 0), o = e.filter((a) => a.status == 1), n = e.filter((a) => a.status == 2);
|
|
360
|
+
i.length == e.length ? s = ["\u64A4\u56DE"] : o.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);
|
|
361
|
+
},
|
|
362
|
+
baseHideBtns(t, e = 1) {
|
|
363
|
+
let s = [...this.tableButtons];
|
|
364
|
+
s.map((i) => (e === 1 ? i.show = !t.includes(i.id) : i.show = !t.includes(i.displayName), i)), this.tableButtons = [...s];
|
|
365
|
+
},
|
|
366
|
+
add() {
|
|
367
|
+
this.transKey = "gd.btn.add", this.getMock(), this.$refs.editForm.open(null);
|
|
368
|
+
},
|
|
369
|
+
edit() {
|
|
370
|
+
if (this.selectedRowKeys.length === 0) {
|
|
371
|
+
this.$message.warning(this.$i18nt("Locals.common.https.editTip"));
|
|
372
|
+
return;
|
|
373
|
+
}
|
|
374
|
+
if (this.selectedRowKeys.length > 1) {
|
|
375
|
+
this.$message.warning(this.$i18nt("Locals.common.https.editTipOne"));
|
|
376
|
+
return;
|
|
377
|
+
}
|
|
378
|
+
this.sysNoticeDetail(this.selectedRows[0].id), this.$refs.editForm.open(
|
|
379
|
+
Object.assign(
|
|
380
|
+
{
|
|
381
|
+
...this.selectedRows[0]
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
type: String(this.selectedRows[0].type),
|
|
385
|
+
editorContent: this.selectedRows[0].content
|
|
386
|
+
}
|
|
387
|
+
)
|
|
388
|
+
);
|
|
389
|
+
},
|
|
390
|
+
editForm(t) {
|
|
391
|
+
this.transKey = "gd.notice.detail", this.$refs.detailForm.open(t);
|
|
392
|
+
},
|
|
393
|
+
sbumit({ data: t, record: e, btn: s }, i, o) {
|
|
394
|
+
if (this.status = s.item.functionName == "releaseTip" ? 1 : 0, e != null) {
|
|
395
|
+
let n = {
|
|
396
|
+
id: t.id,
|
|
397
|
+
content: t.editorcontent,
|
|
398
|
+
status: this.status,
|
|
399
|
+
title: t.title,
|
|
400
|
+
type: t.type,
|
|
401
|
+
noticeuseridlist: this.targetKeys
|
|
402
|
+
};
|
|
403
|
+
if (this.targetKeys.length == 0) {
|
|
404
|
+
this.$message.error(this.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") + this.$i18nt("gd.notice.user", "\u63A5\u6536\u4EBA"));
|
|
405
|
+
return;
|
|
406
|
+
}
|
|
407
|
+
this.formLoading = !0, y(Object.assign(this.noticeDetail, n)).then((a) => {
|
|
408
|
+
a.success ? (o(), this.$message.success(this.$i18nt("gd.https.editSucc", "\u7F16\u8F91\u6210\u529F"))) : this.$message.error(this.$i18nt("gd.https.editFail", "\u7F16\u8F91\u5931\u8D25") + a.message), this.formLoading = !1, this.refresh();
|
|
409
|
+
});
|
|
410
|
+
} else {
|
|
411
|
+
let n = {
|
|
412
|
+
content: t.editorcontent,
|
|
413
|
+
status: this.status,
|
|
414
|
+
title: t.title,
|
|
415
|
+
type: t.type,
|
|
416
|
+
noticeuseridlist: this.targetKeys
|
|
417
|
+
};
|
|
418
|
+
if (this.targetKeys.length == 0) {
|
|
419
|
+
this.$message.error(this.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") + this.$i18nt("gd.notice.user", "\u63A5\u6536\u4EBA"));
|
|
420
|
+
return;
|
|
421
|
+
}
|
|
422
|
+
this.formLoading = !0, m(n).then((a) => {
|
|
423
|
+
a.success ? (o(), this.$message.success(this.$i18nt("gd.https.addSucc", "\u65B0\u589E\u6210\u529F"))) : this.$message.error(this.$i18nt("gd.https.addFail", "\u65B0\u589E\u5931\u8D25") + a.message), this.refresh(), this.formLoading = !1;
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
saveQueries(t) {
|
|
428
|
+
this.queryParam = t, this.refresh();
|
|
429
|
+
},
|
|
430
|
+
read() {
|
|
431
|
+
if (this.selectedRowKeys.length === 0) {
|
|
432
|
+
this.$message.warning(this.$i18nt("gd.https.readTip", "\u8BF7\u9009\u62E9\u9700\u8981\u67E5\u770B\u7684\u6570\u636E"));
|
|
433
|
+
return;
|
|
434
|
+
}
|
|
435
|
+
if (this.selectedRowKeys.length > 1) {
|
|
436
|
+
this.$message.warning(this.$i18nt("gd.https.readTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E"));
|
|
437
|
+
return;
|
|
438
|
+
}
|
|
439
|
+
this.$refs.detailForm.open(this.selectedRows[0]);
|
|
440
|
+
},
|
|
441
|
+
rollback() {
|
|
442
|
+
if (this.selectedRowKeys.length === 0) {
|
|
443
|
+
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
444
|
+
return;
|
|
445
|
+
}
|
|
446
|
+
if (this.selectedRowKeys.length > 1) {
|
|
447
|
+
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91"));
|
|
448
|
+
return;
|
|
449
|
+
}
|
|
450
|
+
this.$confirm(this.$i18nt("gd.https.withdrawContent", "\u786E\u8BA4\u64A4\u56DE?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
451
|
+
confirmButtonText: this.$i18nt("gd.https.withdrawOk", "\u7ACB\u5373\u64A4\u56DE!"),
|
|
452
|
+
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
453
|
+
showClose: !1,
|
|
454
|
+
confirmButtonLoading: !1,
|
|
455
|
+
cancelButtonLoading: !1,
|
|
456
|
+
closeOnClickModal: !1,
|
|
457
|
+
type: "warning",
|
|
458
|
+
confirmButtonClass: "el-button--danger",
|
|
459
|
+
customClass: "custom-alert",
|
|
460
|
+
callback: () => {
|
|
461
|
+
},
|
|
462
|
+
beforeClose: (t, e, s) => {
|
|
463
|
+
this.rollbackHand(t, e, s);
|
|
464
|
+
}
|
|
465
|
+
});
|
|
466
|
+
},
|
|
467
|
+
rollbackHand(t, e, s) {
|
|
468
|
+
if (t !== "confirm") {
|
|
469
|
+
s();
|
|
470
|
+
return;
|
|
471
|
+
}
|
|
472
|
+
let i = [];
|
|
473
|
+
this.selectedRows.forEach((o) => {
|
|
474
|
+
let n = c({
|
|
475
|
+
id: o.id,
|
|
476
|
+
status: 2
|
|
477
|
+
}).then((a) => a);
|
|
478
|
+
i.push(n);
|
|
479
|
+
}), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(i).then((o) => {
|
|
480
|
+
e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, s();
|
|
481
|
+
const n = o.filter((a) => !a.success);
|
|
482
|
+
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();
|
|
483
|
+
});
|
|
484
|
+
},
|
|
485
|
+
release() {
|
|
486
|
+
if (this.selectedRowKeys.length === 0) {
|
|
487
|
+
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
488
|
+
return;
|
|
489
|
+
}
|
|
490
|
+
if (this.selectedRowKeys.length > 1) {
|
|
491
|
+
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91"));
|
|
492
|
+
return;
|
|
493
|
+
}
|
|
494
|
+
this.$confirm(this.$i18nt("gd.https.releaseContent", "\u786E\u8BA4\u53D1\u5E03?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
495
|
+
confirmButtonText: this.$i18nt("gd.https.releaseOk", "\u7ACB\u5373\u53D1\u5E03!"),
|
|
496
|
+
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
497
|
+
showClose: !1,
|
|
498
|
+
confirmButtonLoading: !1,
|
|
499
|
+
cancelButtonLoading: !1,
|
|
500
|
+
closeOnClickModal: !1,
|
|
501
|
+
type: "warning",
|
|
502
|
+
confirmButtonClass: "el-button--danger",
|
|
503
|
+
customClass: "custom-alert",
|
|
504
|
+
callback: () => {
|
|
505
|
+
},
|
|
506
|
+
beforeClose: (t, e, s) => {
|
|
507
|
+
this.releaseHand(t, e, s);
|
|
508
|
+
}
|
|
509
|
+
});
|
|
510
|
+
},
|
|
511
|
+
releaseHand(t, e, s) {
|
|
512
|
+
if (t !== "confirm") {
|
|
513
|
+
s();
|
|
514
|
+
return;
|
|
515
|
+
}
|
|
516
|
+
let i = [];
|
|
517
|
+
this.selectedRows.forEach((o) => {
|
|
518
|
+
let n = c({
|
|
519
|
+
id: o.id,
|
|
520
|
+
status: 1
|
|
521
|
+
}).then((a) => a);
|
|
522
|
+
i.push(n);
|
|
523
|
+
}), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(i).then((o) => {
|
|
524
|
+
e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, s();
|
|
525
|
+
const n = o.filter((a) => !a.success);
|
|
526
|
+
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();
|
|
527
|
+
});
|
|
528
|
+
},
|
|
529
|
+
del() {
|
|
530
|
+
if (this.selectedRowKeys.length === 0) {
|
|
531
|
+
this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));
|
|
532
|
+
return;
|
|
533
|
+
}
|
|
534
|
+
this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
535
|
+
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
536
|
+
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
537
|
+
showClose: !1,
|
|
538
|
+
confirmButtonLoading: !1,
|
|
539
|
+
cancelButtonLoading: !1,
|
|
540
|
+
closeOnClickModal: !1,
|
|
541
|
+
type: "warning",
|
|
542
|
+
confirmButtonClass: "el-button--danger",
|
|
543
|
+
customClass: "custom-alert",
|
|
544
|
+
callback: () => {
|
|
545
|
+
},
|
|
546
|
+
beforeClose: (t, e, s) => {
|
|
547
|
+
this.delHand(t, e, s);
|
|
548
|
+
}
|
|
549
|
+
});
|
|
550
|
+
},
|
|
551
|
+
delHand(t, e, s) {
|
|
552
|
+
if (t !== "confirm") {
|
|
553
|
+
s();
|
|
554
|
+
return;
|
|
555
|
+
}
|
|
556
|
+
let i = [];
|
|
557
|
+
this.selectedRows.forEach((o) => {
|
|
558
|
+
let n = b(o).then((a) => a);
|
|
559
|
+
i.push(n);
|
|
560
|
+
}), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(i).then((o) => {
|
|
561
|
+
s();
|
|
562
|
+
const n = o.filter((a) => !a.success);
|
|
563
|
+
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;
|
|
564
|
+
});
|
|
565
|
+
},
|
|
566
|
+
sysNoticeDetail(t) {
|
|
567
|
+
u({
|
|
568
|
+
id: t
|
|
569
|
+
}).then((e) => {
|
|
570
|
+
this.noticeDetail = e.data, this.getMock(this.noticeDetail);
|
|
571
|
+
});
|
|
572
|
+
},
|
|
573
|
+
getMock(t) {
|
|
574
|
+
const e = [], s = [];
|
|
575
|
+
g().then((i) => {
|
|
576
|
+
this.confirmLoading = !1;
|
|
577
|
+
for (let o = 0; o < i.data.length; o++) {
|
|
578
|
+
const n = i.data[o], a = {
|
|
579
|
+
key: n.id.toString(),
|
|
580
|
+
label: n.name,
|
|
581
|
+
description: `description of ${n.name}`
|
|
582
|
+
};
|
|
583
|
+
if (t)
|
|
584
|
+
for (let l = 0; l < t.noticeuseridlist.length; l++)
|
|
585
|
+
a.key === t.noticeuseridlist[l] && e.push(t.noticeuseridlist[l]);
|
|
586
|
+
s.push(a);
|
|
587
|
+
}
|
|
588
|
+
this.mockData = s, this.targetKeys = e;
|
|
589
|
+
});
|
|
590
|
+
},
|
|
591
|
+
handleChange(t) {
|
|
592
|
+
this.targetKeys = t;
|
|
593
|
+
},
|
|
594
|
+
refresh() {
|
|
595
|
+
this.$refs.table.refresh();
|
|
596
|
+
},
|
|
597
|
+
doEvent(t) {
|
|
598
|
+
let e = t.item.functionName;
|
|
599
|
+
this[e] && this[e]();
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
};
|
|
603
|
+
var B = function() {
|
|
604
|
+
var e = this, s = e._self._c;
|
|
605
|
+
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() {
|
|
606
|
+
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) {
|
|
607
|
+
return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.refresh.apply(null, arguments);
|
|
608
|
+
} }, model: { value: e.queryParam.title, callback: function(i) {
|
|
609
|
+
e.$set(e.queryParam, "title", i);
|
|
610
|
+
}, expression: "queryParam.title" } }), 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)])];
|
|
611
|
+
}, proxy: !0 }, { key: "title", fn: function({ column: i, row: o }) {
|
|
612
|
+
return [s("gd-tooltip", { attrs: { rowKey: "title", row: o, highlight: "" }, on: { click: e.editForm } })];
|
|
613
|
+
} }, { key: "type", fn: function(i) {
|
|
614
|
+
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)) + " ")])];
|
|
615
|
+
} }, { key: "status", fn: function(i) {
|
|
616
|
+
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)) + " ")])];
|
|
617
|
+
} }, { key: "filtering", fn: function({ colse: i, visible: o }) {
|
|
618
|
+
return [s("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: i, visible: o }, on: { save: e.saveQueries } })];
|
|
619
|
+
} }]) })], 1), s("gd-edit-form", { ref: "editForm", attrs: { formItemWidth: "100%", transKey: e.transKey, columns: e.getFormColumns, labelPosition: e.labelPosition, formMode: e.formMode, buttons: e.formButtons, loading: e.formLoading }, on: { sbumit: e.sbumit }, scopedSlots: e._u([{ key: "targetKeys", fn: function({ data: i, column: o }) {
|
|
620
|
+
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) {
|
|
621
|
+
e.targetKeys = n;
|
|
622
|
+
}, expression: "targetKeys" } })];
|
|
623
|
+
} }]) }), s("detailForm", { ref: "detailForm" })], 1);
|
|
624
|
+
}, N = [], k = /* @__PURE__ */ h(
|
|
625
|
+
T,
|
|
626
|
+
B,
|
|
627
|
+
N,
|
|
628
|
+
!1,
|
|
629
|
+
null,
|
|
630
|
+
"d1e98ee8",
|
|
631
|
+
null,
|
|
632
|
+
null
|
|
633
|
+
);
|
|
634
|
+
const r = k.exports;
|
|
635
|
+
r.install = function(t) {
|
|
636
|
+
t.component(r.name, r);
|
|
637
|
+
};
|
|
638
|
+
export {
|
|
639
|
+
r as G,
|
|
640
|
+
C as d
|
|
641
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("./chartbi.06e48153.js"),g=require("./system.account.8ea53681.js"),f=require("./messages.2fff74f3.js");function p(t){return window.axios({url:"/sysNotice/page",method:"get",params:t})}function m(t){return window.axios({url:"/sysNotice/add",method:"post",data:t})}function y(t){return window.axios({url:"/sysNotice/edit",method:"post",data:t})}function b(t){return window.axios({url:"/sysNotice/delete",method:"post",data:t})}function h(t){return window.axios({url:"/sysNotice/detail",method:"get",params:t})}function d(t){return window.axios({url:"/sysNotice/changeStatus",method:"post",data:t})}const w={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.notice.title",prop:"title",label:"\u6807\u9898",type:"slot",slotType:"title",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.notice.type",prop:"type",label:"\u7C7B\u578B",align:"left",type:"slot",slotType:"type",align:"center",showOverflowTooltip:!0},{transKey:"gd.notice.status",prop:"status",label:"\u72B6\u6001",align:"left",type:"slot",slotType:"status"},{transKey:"gd.notice.createdTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{transKey:"gd.notice.publicTime",prop:"publictime",label:"\u53D1\u5E03\u65F6\u95F4",align:"center"},{transKey:"gd.notice.publicUserName",prop:"publicusername",label:"\u53D1\u5E03\u4EBA",align:"left"}],formColumns:[{transKey:"gd.notice.title",effectType:"input",prop:"title",label:"\u6807\u9898",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.notice.type",prop:"type",label:"\u7C7B\u578B",effectType:"radio",dictTypeCode:"notice_type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.notice.noticeBucket",effectType:"editor",prop:"editorcontent",label:"\u5185\u5BB9",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.notice.notifyTo",effectType:"transfer",prop:"targetkeys",label:"\u6536\u5230\u901A\u77E5\u4EBA",type:"slot",slotType:"targetKeys",rules:[{required:!1,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysNotice:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysNotice:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysNotice:delete"},{displayName:"\u53D1\u5E03",functionName:"release",show:!0,btnType:"danger",transKey:"gd.btn.release",icon:"el-icon-s-promotion",name:"sysNotice:changeStatus"},{displayName:"\u64A4\u56DE",functionName:"rollback",show:!0,transKey:"gd.btn.withdraw",icon:"el-icon-refresh-left",btnType:"danger",name:"sysNotice:changeStatus"},{displayName:"\u67E5\u770B",functionName:"read",show:!0,transKey:"gd.btn.view",icon:"el-icon-reading",name:"sysNotice:detail"}],formButtons:[{displayName:"\u53D1\u5E03",functionName:"releaseTip",show:!0,btnType:"danger",transKey:"gd.btn.release",icon:"el-icon-s-promotion",validate:!0},{displayName:"\u5B58\u4E3A\u8349\u7A3F",functionName:"saveDraft",show:!0,transKey:"gd.btn.saveDraft",icon:"el-icon-tickets",validate:!0}],tableQueries:[{transKey:"gd.notice.noticeOriginName",prop:"searchValue",label:"\u5173\u952E\u8BCD",effectType:"input",rules:[]},{transKey:"gd.sysConfig.type",prop:"type",label:"\u7C7B\u578B",effectType:"select",dictTypeCode:"notice_type",rules:[]}]}}};const _={data(){return{transKey:"gd.notice.detail",fullscreen:!1,visible:!1,width:"900",confirmLoading:!1,contentRecord:{},sysViewButtons:[]}},computed:{height(){return this.screenHeight-24-40-36},headTitle(){return this.$i18nt(this.transKey,this.title)},...c.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},methods:{open(t){console.log(t),this.fullscreen=!1,this.visible=!0,this.confirmLoading=!0,this.sysNoticeDetail(t.id)},sysNoticeDetail(t){this.fullscreen=!1,h({id:t}).then(e=>{this.confirmLoading=!1,this.contentRecord=e.data})},handleCancel(){this.visible=!1,this.contentRecord={}},closed(){this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(t){const e=t.item.functionName;this[e]&&this[e]()}}};var $=function(){var e=this,s=e._self._c;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){e.visible=i},closed:e.closed}},[s("gd-modal-title",{attrs:{slot:"title",title:e.headTitle,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},slot:"title"}),s("div",{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",{domProps:{innerHTML:e._s(this.contentRecord.content)}})])],1)],1)],1)},K=[],v=c.normalizeComponent(_,$,K,!1,null,"e87efedd",null,null);const u=v.exports;const C={name:"GdNotice",props:{height:{type:Number,default:100}},mixins:[f.tablesFilter,w],data(){return{transKey:"gd.btn.add",loadData:t=>p(Object.assign(t,this.queryParam)).then(e=>e.data),selectedRowKeys:[],selectedRows:[],queryParam:{},formLoading:!1,mockData:[],targetKeys:[],noticeUserIdList:[],mockData:[],status:0}},components:{detailForm:u},computed:{getHeight(){return this.height},getFormColumns(){return this.formColumns.filter(e=>!0)},...c.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},mounted(){},methods:{onSelectChange(t,e){if(this.selectedRowKeys=t,this.selectedRows=e,e.length==0){this.baseHideBtns([],2);return}if(e.length>1){this.baseHideBtns(["\u5220\u9664","\u53D1\u5E03","\u64A4\u56DE","\u7F16\u8F91"],2);return}let s=[],i=e.filter(a=>a.status==0),o=e.filter(a=>a.status==1),n=e.filter(a=>a.status==2);i.length==e.length?s=["\u64A4\u56DE"]:o.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)},baseHideBtns(t,e=1){let s=[...this.tableButtons];s.map(i=>(e===1?i.show=!t.includes(i.id):i.show=!t.includes(i.displayName),i)),this.tableButtons=[...s]},add(){this.transKey="gd.btn.add",this.getMock(),this.$refs.editForm.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("Locals.common.https.editTip"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("Locals.common.https.editTipOne"));return}this.sysNoticeDetail(this.selectedRows[0].id),this.$refs.editForm.open(Object.assign({...this.selectedRows[0]},{type:String(this.selectedRows[0].type),editorContent:this.selectedRows[0].content}))},editForm(t){this.transKey="gd.notice.detail",this.$refs.detailForm.open(t)},sbumit({data:t,record:e,btn:s},i,o){if(this.status=s.item.functionName=="releaseTip"?1:0,e!=null){let n={id:t.id,content:t.editorcontent,status:this.status,title:t.title,type:t.type,noticeuseridlist:this.targetKeys};if(this.targetKeys.length==0){this.$message.error(this.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")+this.$i18nt("gd.notice.user","\u63A5\u6536\u4EBA"));return}this.formLoading=!0,y(Object.assign(this.noticeDetail,n)).then(a=>{a.success?(o(),this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F"))):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25")+a.message),this.formLoading=!1,this.refresh()})}else{let n={content:t.editorcontent,status:this.status,title:t.title,type:t.type,noticeuseridlist:this.targetKeys};if(this.targetKeys.length==0){this.$message.error(this.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")+this.$i18nt("gd.notice.user","\u63A5\u6536\u4EBA"));return}this.formLoading=!0,m(n).then(a=>{a.success?(o(),this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F"))):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25")+a.message),this.refresh(),this.formLoading=!1})}},saveQueries(t){this.queryParam=t,this.refresh()},read(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.readTip","\u8BF7\u9009\u62E9\u9700\u8981\u67E5\u770B\u7684\u6570\u636E"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.readTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E"));return}this.$refs.detailForm.open(this.selectedRows[0])},rollback(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91"));return}this.$confirm(this.$i18nt("gd.https.withdrawContent","\u786E\u8BA4\u64A4\u56DE?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.withdrawOk","\u7ACB\u5373\u64A4\u56DE!"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.rollbackHand(t,e,s)}})},rollbackHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(o=>{let n=d({id:o.id,status:2}).then(a=>a);i.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(o=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,s();const n=o.filter(a=>!a.success);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()})},release(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91"));return}this.$confirm(this.$i18nt("gd.https.releaseContent","\u786E\u8BA4\u53D1\u5E03?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.releaseOk","\u7ACB\u5373\u53D1\u5E03!"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.releaseHand(t,e,s)}})},releaseHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(o=>{let n=d({id:o.id,status:1}).then(a=>a);i.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(o=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,s();const n=o.filter(a=>!a.success);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()})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(o=>{let n=b(o).then(a=>a);i.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(o=>{s();const n=o.filter(a=>!a.success);n.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n[0].message),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},sysNoticeDetail(t){h({id:t}).then(e=>{this.noticeDetail=e.data,this.getMock(this.noticeDetail)})},getMock(t){const e=[],s=[];g.sysUserSelector().then(i=>{this.confirmLoading=!1;for(let o=0;o<i.data.length;o++){const n=i.data[o],a={key:n.id.toString(),label:n.name,description:`description of ${n.name}`};if(t)for(let r=0;r<t.noticeuseridlist.length;r++)a.key===t.noticeuseridlist[r]&&e.push(t.noticeuseridlist[r]);s.push(a)}this.mockData=s,this.targetKeys=e})},handleChange(t){this.targetKeys=t},refresh(){this.$refs.table.refresh()},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var T=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl"},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.notice.title","\u6807\u9898"),clearable:""},nativeOn:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.title,callback:function(i){e.$set(e.queryParam,"title",i)},expression:"queryParam.title"}}),s("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"title",fn:function({column:i,row:o}){return[s("gd-tooltip",{attrs:{rowKey:"title",row:o,highlight:""},on:{click:e.editForm}})]}},{key:"type",fn:function(i){return[s("el-tag",{style:e._f("dictColor")("notice_type",i.row.type),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_type",i.row.type))+" ")])]}},{key:"status",fn:function(i){return[s("el-tag",{style:e._f("dictColor")("notice_status",i.row.status),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_status",i.row.status))+" ")])]}},{key:"filtering",fn:function({colse:i,visible:o}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:i,visible:o},on:{save:e.saveQueries}})]}}])})],1),s("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"100%",transKey:e.transKey,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode,buttons:e.formButtons,loading:e.formLoading},on:{sbumit:e.sbumit},scopedSlots:e._u([{key:"targetKeys",fn:function({data:i,column:o}){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){e.targetKeys=n},expression:"targetKeys"}})]}}])}),s("detailForm",{ref:"detailForm"})],1)},B=[],N=c.normalizeComponent(C,T,B,!1,null,"d1e98ee8",null,null);const l=N.exports;l.install=function(t){t.component(l.name,l)};exports.GDpackage=l;exports.detailForm=u;
|