gds-plus-design-vue 1.1.2 → 1.1.7
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/chartbi.48631362.mjs +44076 -0
- package/lib/chartbi.afd83839.js +80 -0
- package/lib/element-theme-chalk.ae828c17.js +2 -0
- package/lib/gd-initial.js +34 -0
- package/lib/gd-initial.mjs +80300 -16
- package/lib/main.60763eae.js +1 -0
- package/lib/main.f2b00b70.mjs +939 -0
- package/lib/messages.083c4ede.js +9 -0
- package/lib/messages.7e85146d.mjs +5802 -0
- package/lib/style.css +2 -2
- package/lib/system.account.65b2f7d4.js +216 -0
- package/lib/system.account.93b7df36.mjs +2536 -0
- package/lib/system.config.327aded6.js +1 -0
- package/lib/system.config.9c46f279.mjs +373 -0
- package/lib/system.datasource.4b0951ba.mjs +511 -0
- package/lib/system.datasource.8a0c7e0f.js +1 -0
- package/lib/system.dict.65f25e4e.mjs +996 -0
- package/lib/system.dict.72594c98.js +1 -0
- package/lib/system.duplicatechecking.0d47a5ca.js +1 -0
- package/lib/system.duplicatechecking.ad111272.mjs +2130 -0
- package/lib/system.email.54722948.js +41 -0
- package/lib/system.email.923697c6.mjs +7432 -0
- package/lib/system.fieldsecurity.7de4ee1d.mjs +1745 -0
- package/lib/system.fieldsecurity.d57edb47.js +1 -0
- package/lib/system.file.b3558a8b.js +1 -0
- package/lib/system.file.f152d4fe.mjs +489 -0
- package/lib/system.log.30e5157c.mjs +1450 -0
- package/lib/system.log.f243e7d0.js +1 -0
- package/lib/system.machine.325b256e.mjs +94 -0
- package/lib/system.machine.332fb31c.js +1 -0
- package/lib/system.notice.93c4691c.js +1 -0
- package/lib/system.notice.e0b84103.mjs +636 -0
- package/lib/system.noticereceived.a28ba643.js +1 -0
- package/lib/system.noticereceived.c0a19336.mjs +158 -0
- package/lib/system.onlineuser.90c08aef.mjs +184 -0
- package/lib/system.onlineuser.e0c261ed.js +1 -0
- package/lib/system.org.65452f67.js +1 -0
- package/lib/system.org.b8d59e5d.mjs +421 -0
- package/lib/system.permissions.b8a5f79d.mjs +212 -0
- package/lib/system.permissions.c34f44a3.js +9 -0
- package/lib/system.plugin.07b3c38e.js +1 -0
- package/lib/system.plugin.4911a33d.mjs +946 -0
- package/lib/system.pos.6ed35c39.js +1 -0
- package/lib/system.pos.c274f13c.mjs +312 -0
- package/lib/system.promptmanagement.5a4930b1.js +1 -0
- package/lib/system.promptmanagement.fe8b0913.mjs +789 -0
- package/lib/system.role.ceb5ed2d.mjs +1509 -0
- package/lib/system.role.daedd959.js +1 -0
- package/lib/system.timers.69f1792a.mjs +3160 -0
- package/lib/system.timers.ef6b6796.js +38 -0
- package/lib/system.translation.6351f189.mjs +661 -0
- package/lib/system.translation.8905eb73.js +1 -0
- package/lib/system.user.12a4e490.mjs +1425 -0
- package/lib/system.user.d668538b.js +14 -0
- package/lib/system.useraffiliation.b8be03db.js +1 -0
- package/lib/system.useraffiliation.c272e688.mjs +1025 -0
- package/lib/system.webresource.5049d97b.js +1 -0
- package/lib/system.webresource.e9518d87.mjs +723 -0
- package/lib/system.welcome.3f1cce96.mjs +45 -0
- package/lib/system.welcome.b109df88.js +1 -0
- package/locale/en_US.js +258 -18
- package/locale/id_ID.js +257 -18
- package/locale/vi_VN.js +256 -16
- package/locale/zh_CN.js +267 -25
- package/package.json +105 -110
- package/lib/gd-initial.umd.js +0 -440
- package/lib/index.d50ecf4b.mjs +0 -143931
- package/lib/main.305313fd.mjs +0 -919
|
@@ -0,0 +1,636 @@
|
|
|
1
|
+
import { m as d, n as h } from "./chartbi.48631362.mjs";
|
|
2
|
+
import { s as g } from "./system.account.93b7df36.mjs";
|
|
3
|
+
import { t as f } from "./messages.7e85146d.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
|
+
};
|
|
258
|
+
},
|
|
259
|
+
computed: {
|
|
260
|
+
height() {
|
|
261
|
+
return this.screenHeight - 24 - 40 - 36;
|
|
262
|
+
},
|
|
263
|
+
headTitle() {
|
|
264
|
+
return this.$i18nt(this.transKey, this.title);
|
|
265
|
+
},
|
|
266
|
+
...d(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
|
|
267
|
+
},
|
|
268
|
+
methods: {
|
|
269
|
+
open(t) {
|
|
270
|
+
console.log(t), this.fullscreen = !1, this.visible = !0, this.confirmLoading = !0, this.sysNoticeDetail(t.id);
|
|
271
|
+
},
|
|
272
|
+
sysNoticeDetail(t) {
|
|
273
|
+
this.fullscreen = !1, u({
|
|
274
|
+
id: t
|
|
275
|
+
}).then((e) => {
|
|
276
|
+
this.confirmLoading = !1, this.contentRecord = e.data;
|
|
277
|
+
});
|
|
278
|
+
},
|
|
279
|
+
handleCancel() {
|
|
280
|
+
this.visible = !1, this.contentRecord = {};
|
|
281
|
+
},
|
|
282
|
+
closed() {
|
|
283
|
+
this.visible = !1;
|
|
284
|
+
},
|
|
285
|
+
toggleFullscreen() {
|
|
286
|
+
this.fullscreen = !this.fullscreen;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
var $ = function() {
|
|
291
|
+
var e = this, s = e._self._c;
|
|
292
|
+
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) {
|
|
293
|
+
e.visible = i;
|
|
294
|
+
}, 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 }, 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);
|
|
295
|
+
}, K = [], v = /* @__PURE__ */ h(
|
|
296
|
+
_,
|
|
297
|
+
$,
|
|
298
|
+
K,
|
|
299
|
+
!1,
|
|
300
|
+
null,
|
|
301
|
+
"5c8b9b69",
|
|
302
|
+
null,
|
|
303
|
+
null
|
|
304
|
+
);
|
|
305
|
+
const C = v.exports;
|
|
306
|
+
const T = {
|
|
307
|
+
name: "GdNotice",
|
|
308
|
+
props: {
|
|
309
|
+
height: {
|
|
310
|
+
type: Number,
|
|
311
|
+
default: 100
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
mixins: [f, w],
|
|
315
|
+
data() {
|
|
316
|
+
return {
|
|
317
|
+
transKey: "gd.btn.add",
|
|
318
|
+
loadData: (t) => p(Object.assign(t, this.queryParam)).then((e) => e.data),
|
|
319
|
+
selectedRowKeys: [],
|
|
320
|
+
selectedRows: [],
|
|
321
|
+
queryParam: {},
|
|
322
|
+
formLoading: !1,
|
|
323
|
+
mockData: [],
|
|
324
|
+
targetKeys: [],
|
|
325
|
+
noticeUserIdList: [],
|
|
326
|
+
mockData: [],
|
|
327
|
+
status: 0
|
|
328
|
+
};
|
|
329
|
+
},
|
|
330
|
+
components: {
|
|
331
|
+
detailForm: C
|
|
332
|
+
},
|
|
333
|
+
computed: {
|
|
334
|
+
getHeight() {
|
|
335
|
+
return this.height;
|
|
336
|
+
},
|
|
337
|
+
getFormColumns() {
|
|
338
|
+
return this.formColumns.filter((e) => !0);
|
|
339
|
+
},
|
|
340
|
+
...d(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
|
|
341
|
+
},
|
|
342
|
+
mounted() {
|
|
343
|
+
},
|
|
344
|
+
methods: {
|
|
345
|
+
onSelectChange(t, e) {
|
|
346
|
+
if (this.selectedRowKeys = t, this.selectedRows = e, e.length == 0) {
|
|
347
|
+
this.baseHideBtns([], 2);
|
|
348
|
+
return;
|
|
349
|
+
}
|
|
350
|
+
if (e.length > 1) {
|
|
351
|
+
this.baseHideBtns(["\u5220\u9664", "\u53D1\u5E03", "\u64A4\u56DE", "\u7F16\u8F91"], 2);
|
|
352
|
+
return;
|
|
353
|
+
}
|
|
354
|
+
let s = [], i = e.filter((a) => a.status == 0), o = e.filter((a) => a.status == 1), n = e.filter((a) => a.status == 2);
|
|
355
|
+
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);
|
|
356
|
+
},
|
|
357
|
+
baseHideBtns(t, e = 1) {
|
|
358
|
+
let s = [...this.tableButtons];
|
|
359
|
+
s.map((i) => (e === 1 ? i.show = !t.includes(i.id) : i.show = !t.includes(i.displayName), i)), this.tableButtons = [...s];
|
|
360
|
+
},
|
|
361
|
+
add() {
|
|
362
|
+
this.transKey = "gd.btn.add", this.getMock(), this.$refs.editForm.open(null);
|
|
363
|
+
},
|
|
364
|
+
edit() {
|
|
365
|
+
if (this.selectedRowKeys.length === 0) {
|
|
366
|
+
this.$message.warning(this.$i18nt("Locals.common.https.editTip"));
|
|
367
|
+
return;
|
|
368
|
+
}
|
|
369
|
+
if (this.selectedRowKeys.length > 1) {
|
|
370
|
+
this.$message.warning(this.$i18nt("Locals.common.https.editTipOne"));
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
373
|
+
this.sysNoticeDetail(this.selectedRows[0].id), this.$refs.editForm.open(
|
|
374
|
+
Object.assign(
|
|
375
|
+
{
|
|
376
|
+
...this.selectedRows[0]
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
type: String(this.selectedRows[0].type),
|
|
380
|
+
editorContent: this.selectedRows[0].content
|
|
381
|
+
}
|
|
382
|
+
)
|
|
383
|
+
);
|
|
384
|
+
},
|
|
385
|
+
editForm(t) {
|
|
386
|
+
this.transKey = "gd.notice.detail", this.$refs.detailForm.open(t);
|
|
387
|
+
},
|
|
388
|
+
sbumit({ data: t, record: e, btn: s }, i, o) {
|
|
389
|
+
if (this.status = s.item.functionName == "releaseTip" ? 1 : 0, e != null) {
|
|
390
|
+
let n = {
|
|
391
|
+
id: t.id,
|
|
392
|
+
content: t.editorcontent,
|
|
393
|
+
status: this.status,
|
|
394
|
+
title: t.title,
|
|
395
|
+
type: t.type,
|
|
396
|
+
noticeuseridlist: this.targetKeys
|
|
397
|
+
};
|
|
398
|
+
if (this.targetKeys.length == 0) {
|
|
399
|
+
this.$message.error(this.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") + this.$i18nt("gd.notice.user", "\u63A5\u6536\u4EBA"));
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
this.formLoading = !0, y(Object.assign(this.noticeDetail, n)).then((a) => {
|
|
403
|
+
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();
|
|
404
|
+
});
|
|
405
|
+
} else {
|
|
406
|
+
let n = {
|
|
407
|
+
content: t.editorcontent,
|
|
408
|
+
status: this.status,
|
|
409
|
+
title: t.title,
|
|
410
|
+
type: t.type,
|
|
411
|
+
noticeuseridlist: this.targetKeys
|
|
412
|
+
};
|
|
413
|
+
if (this.targetKeys.length == 0) {
|
|
414
|
+
this.$message.error(this.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") + this.$i18nt("gd.notice.user", "\u63A5\u6536\u4EBA"));
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
417
|
+
this.formLoading = !0, m(n).then((a) => {
|
|
418
|
+
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;
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
saveQueries(t) {
|
|
423
|
+
this.queryParam = t, this.refresh();
|
|
424
|
+
},
|
|
425
|
+
read() {
|
|
426
|
+
if (this.selectedRowKeys.length === 0) {
|
|
427
|
+
this.$message.warning(this.$i18nt("gd.https.readTip", "\u8BF7\u9009\u62E9\u9700\u8981\u67E5\u770B\u7684\u6570\u636E"));
|
|
428
|
+
return;
|
|
429
|
+
}
|
|
430
|
+
if (this.selectedRowKeys.length > 1) {
|
|
431
|
+
this.$message.warning(this.$i18nt("gd.https.readTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E"));
|
|
432
|
+
return;
|
|
433
|
+
}
|
|
434
|
+
this.$refs.detailForm.open(this.selectedRows[0]);
|
|
435
|
+
},
|
|
436
|
+
rollback() {
|
|
437
|
+
if (this.selectedRowKeys.length === 0) {
|
|
438
|
+
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
439
|
+
return;
|
|
440
|
+
}
|
|
441
|
+
if (this.selectedRowKeys.length > 1) {
|
|
442
|
+
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91"));
|
|
443
|
+
return;
|
|
444
|
+
}
|
|
445
|
+
this.$confirm(this.$i18nt("gd.https.withdrawContent", "\u786E\u8BA4\u64A4\u56DE?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
446
|
+
confirmButtonText: this.$i18nt("gd.https.withdrawOk", "\u7ACB\u5373\u64A4\u56DE!"),
|
|
447
|
+
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
448
|
+
showClose: !1,
|
|
449
|
+
confirmButtonLoading: !1,
|
|
450
|
+
cancelButtonLoading: !1,
|
|
451
|
+
closeOnClickModal: !1,
|
|
452
|
+
type: "warning",
|
|
453
|
+
confirmButtonClass: "el-button--danger",
|
|
454
|
+
customClass: "custom-alert",
|
|
455
|
+
callback: () => {
|
|
456
|
+
},
|
|
457
|
+
beforeClose: (t, e, s) => {
|
|
458
|
+
this.rollbackHand(t, e, s);
|
|
459
|
+
}
|
|
460
|
+
});
|
|
461
|
+
},
|
|
462
|
+
rollbackHand(t, e, s) {
|
|
463
|
+
if (t !== "confirm") {
|
|
464
|
+
s();
|
|
465
|
+
return;
|
|
466
|
+
}
|
|
467
|
+
let i = [];
|
|
468
|
+
this.selectedRows.forEach((o) => {
|
|
469
|
+
let n = c({
|
|
470
|
+
id: o.id,
|
|
471
|
+
status: 2
|
|
472
|
+
}).then((a) => a);
|
|
473
|
+
i.push(n);
|
|
474
|
+
}), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(i).then((o) => {
|
|
475
|
+
e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, s();
|
|
476
|
+
const n = o.filter((a) => !a.success);
|
|
477
|
+
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();
|
|
478
|
+
});
|
|
479
|
+
},
|
|
480
|
+
release() {
|
|
481
|
+
if (this.selectedRowKeys.length === 0) {
|
|
482
|
+
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
483
|
+
return;
|
|
484
|
+
}
|
|
485
|
+
if (this.selectedRowKeys.length > 1) {
|
|
486
|
+
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91"));
|
|
487
|
+
return;
|
|
488
|
+
}
|
|
489
|
+
this.$confirm(this.$i18nt("gd.https.releaseContent", "\u786E\u8BA4\u53D1\u5E03?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
490
|
+
confirmButtonText: this.$i18nt("gd.https.releaseOk", "\u7ACB\u5373\u53D1\u5E03!"),
|
|
491
|
+
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
492
|
+
showClose: !1,
|
|
493
|
+
confirmButtonLoading: !1,
|
|
494
|
+
cancelButtonLoading: !1,
|
|
495
|
+
closeOnClickModal: !1,
|
|
496
|
+
type: "warning",
|
|
497
|
+
confirmButtonClass: "el-button--danger",
|
|
498
|
+
customClass: "custom-alert",
|
|
499
|
+
callback: () => {
|
|
500
|
+
},
|
|
501
|
+
beforeClose: (t, e, s) => {
|
|
502
|
+
this.releaseHand(t, e, s);
|
|
503
|
+
}
|
|
504
|
+
});
|
|
505
|
+
},
|
|
506
|
+
releaseHand(t, e, s) {
|
|
507
|
+
if (t !== "confirm") {
|
|
508
|
+
s();
|
|
509
|
+
return;
|
|
510
|
+
}
|
|
511
|
+
let i = [];
|
|
512
|
+
this.selectedRows.forEach((o) => {
|
|
513
|
+
let n = c({
|
|
514
|
+
id: o.id,
|
|
515
|
+
status: 1
|
|
516
|
+
}).then((a) => a);
|
|
517
|
+
i.push(n);
|
|
518
|
+
}), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(i).then((o) => {
|
|
519
|
+
e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, s();
|
|
520
|
+
const n = o.filter((a) => !a.success);
|
|
521
|
+
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();
|
|
522
|
+
});
|
|
523
|
+
},
|
|
524
|
+
del() {
|
|
525
|
+
if (this.selectedRowKeys.length === 0) {
|
|
526
|
+
this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));
|
|
527
|
+
return;
|
|
528
|
+
}
|
|
529
|
+
this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
530
|
+
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
531
|
+
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
532
|
+
showClose: !1,
|
|
533
|
+
confirmButtonLoading: !1,
|
|
534
|
+
cancelButtonLoading: !1,
|
|
535
|
+
closeOnClickModal: !1,
|
|
536
|
+
type: "warning",
|
|
537
|
+
confirmButtonClass: "el-button--danger",
|
|
538
|
+
customClass: "custom-alert",
|
|
539
|
+
callback: () => {
|
|
540
|
+
},
|
|
541
|
+
beforeClose: (t, e, s) => {
|
|
542
|
+
this.delHand(t, e, s);
|
|
543
|
+
}
|
|
544
|
+
});
|
|
545
|
+
},
|
|
546
|
+
delHand(t, e, s) {
|
|
547
|
+
if (t !== "confirm") {
|
|
548
|
+
s();
|
|
549
|
+
return;
|
|
550
|
+
}
|
|
551
|
+
let i = [];
|
|
552
|
+
this.selectedRows.forEach((o) => {
|
|
553
|
+
let n = b(o).then((a) => a);
|
|
554
|
+
i.push(n);
|
|
555
|
+
}), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(i).then((o) => {
|
|
556
|
+
s();
|
|
557
|
+
const n = o.filter((a) => !a.success);
|
|
558
|
+
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;
|
|
559
|
+
});
|
|
560
|
+
},
|
|
561
|
+
sysNoticeDetail(t) {
|
|
562
|
+
u({
|
|
563
|
+
id: t
|
|
564
|
+
}).then((e) => {
|
|
565
|
+
this.noticeDetail = e.data, this.getMock(this.noticeDetail);
|
|
566
|
+
});
|
|
567
|
+
},
|
|
568
|
+
getMock(t) {
|
|
569
|
+
const e = [], s = [];
|
|
570
|
+
g().then((i) => {
|
|
571
|
+
this.confirmLoading = !1;
|
|
572
|
+
for (let o = 0; o < i.data.length; o++) {
|
|
573
|
+
const n = i.data[o], a = {
|
|
574
|
+
key: n.id.toString(),
|
|
575
|
+
label: n.name,
|
|
576
|
+
description: `description of ${n.name}`
|
|
577
|
+
};
|
|
578
|
+
if (t)
|
|
579
|
+
for (let r = 0; r < t.noticeuseridlist.length; r++)
|
|
580
|
+
a.key === t.noticeuseridlist[r] && e.push(t.noticeuseridlist[r]);
|
|
581
|
+
s.push(a);
|
|
582
|
+
}
|
|
583
|
+
this.mockData = s, this.targetKeys = e;
|
|
584
|
+
});
|
|
585
|
+
},
|
|
586
|
+
handleChange(t) {
|
|
587
|
+
this.targetKeys = t;
|
|
588
|
+
},
|
|
589
|
+
refresh() {
|
|
590
|
+
this.$refs.table.refresh();
|
|
591
|
+
},
|
|
592
|
+
doEvent(t) {
|
|
593
|
+
let e = t.item.functionName;
|
|
594
|
+
this[e] && this[e]();
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
};
|
|
598
|
+
var B = function() {
|
|
599
|
+
var e = this, s = e._self._c;
|
|
600
|
+
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() {
|
|
601
|
+
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) {
|
|
602
|
+
return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.refresh.apply(null, arguments);
|
|
603
|
+
} }, model: { value: e.queryParam.title, callback: function(i) {
|
|
604
|
+
e.$set(e.queryParam, "title", i);
|
|
605
|
+
}, 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)])];
|
|
606
|
+
}, proxy: !0 }, { key: "title", fn: function({ column: i, row: o }) {
|
|
607
|
+
return [s("gd-tooltip", { attrs: { rowKey: "title", row: o, highlight: "" }, on: { click: e.editForm } })];
|
|
608
|
+
} }, { key: "type", fn: function(i) {
|
|
609
|
+
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)) + " ")])];
|
|
610
|
+
} }, { key: "status", fn: function(i) {
|
|
611
|
+
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)) + " ")])];
|
|
612
|
+
} }, { key: "filtering", fn: function({ colse: i, visible: o }) {
|
|
613
|
+
return [s("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: i, visible: o }, on: { save: e.saveQueries } })];
|
|
614
|
+
} }]) })], 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 }) {
|
|
615
|
+
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) {
|
|
616
|
+
e.targetKeys = n;
|
|
617
|
+
}, expression: "targetKeys" } })];
|
|
618
|
+
} }]) }), s("detailForm", { ref: "detailForm" })], 1);
|
|
619
|
+
}, N = [], k = /* @__PURE__ */ h(
|
|
620
|
+
T,
|
|
621
|
+
B,
|
|
622
|
+
N,
|
|
623
|
+
!1,
|
|
624
|
+
null,
|
|
625
|
+
"8998e463",
|
|
626
|
+
null,
|
|
627
|
+
null
|
|
628
|
+
);
|
|
629
|
+
const l = k.exports;
|
|
630
|
+
l.install = function(t) {
|
|
631
|
+
t.component(l.name, l);
|
|
632
|
+
};
|
|
633
|
+
export {
|
|
634
|
+
l as G,
|
|
635
|
+
C as d
|
|
636
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=require("./chartbi.afd83839.js"),n=require("./messages.083c4ede.js"),o=require("./system.notice.93c4691c.js");function c(t){return window.axios({url:"/sysNotice/received",method:"get",params:t})}const u={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.notice.title",prop:"title",label:"\u6807\u9898",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.publicTime",prop:"publictime",label:"\u53D1\u5E03\u65F6\u95F4",align:"center"},{transKey:"gd.notice.publicUserName",prop:"publicusername",label:"\u53D1\u5E03\u4EBA",align:"left"}],tableQueries:[{transKey:"gd.notice.noticeOriginName",prop:"searchValue",label:"\u5173\u952E\u8BCD",effectType:"input",rules:[]},{transKey:"gd.sysConfig.type",prop:"type",label:"\u7C7B\u578B",effectType:"select",dictTypeCode:"notice_type",rules:[]}]}}};const d={name:"GdNoticeReceived",props:{height:{type:Number,default:100}},mixins:[n.tablesFilter,u],data(){return{transKey:"gd.btn.add",loadData:t=>c(Object.assign(t,this.queryParam)).then(e=>e.data),selectedRowKeys:[],selectedRows:[],queryParam:{},formLoading:!1}},components:{detailForm:o.detailForm},computed:{getHeight(){return this.height},...l.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{editForm(t){this.transKey="gd.notice.detail",this.$refs.detailForm.open(t)},saveQueries(t){this.queryParam=t,this.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},refresh(){this.$refs.table.refresh()},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var p=function(){var e=this,a=e._self._c;return a("div",{staticClass:"gd-page-view"},[a("div",{staticClass:"page-view-list"},[a("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[a("div",{staticClass:"gd-table-operator"},[a("div",{staticClass:"gd-table-operatorl"},[a("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.notice.title","\u6807\u9898"),clearable:""},nativeOn:{keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.title,callback:function(s){e.$set(e.queryParam,"title",s)},expression:"queryParam.title"}}),a("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[a("i",{staticClass:"el-input__icon el-icon-search"})])],1)])]},proxy:!0},{key:"title",fn:function({column:s,row:r}){return[a("gd-tooltip",{attrs:{rowKey:"title",row:r,highlight:""},on:{click:e.editForm}})]}},{key:"type",fn:function(s){return[a("el-tag",{style:e._f("dictColor")("notice_type",s.row.type),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_type",s.row.type))+" ")])]}},{key:"status",fn:function(s){return[a("el-tag",{style:e._f("dictColor")("notice_status",s.row.status),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_status",s.row.status))+" ")])]}},{key:"filtering",fn:function({colse:s,visible:r}){return[a("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:s,visible:r},on:{save:e.saveQueries}})]}}])})],1),a("detailForm",{ref:"detailForm"})],1)},y=[],f=l.normalizeComponent(d,p,y,!1,null,"020e89c9",null,null);const i=f.exports;i.install=function(t){t.component(i.name,i)};exports.GDpackage=i;
|