gds-plus-design-vue 1.1.4 → 1.1.8
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 +33 -0
- package/lib/gd-initial.mjs +80932 -99
- package/lib/main.2eb05c0d.js +1 -0
- package/lib/main.85f07438.mjs +68 -0
- package/lib/main.9bdd200f.mjs +87 -0
- package/lib/main.e62fbc84.mjs +939 -0
- package/lib/main.ef020e08.js +1 -0
- package/lib/main.f13b92a2.js +1 -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.25a9471c.mjs +2552 -0
- package/lib/system.account.88600238.js +216 -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.2e9b8df8.js +1 -0
- package/lib/system.duplicatechecking.b05f1617.mjs +2130 -0
- package/lib/system.email.15594778.js +41 -0
- package/lib/system.email.6369f5b4.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.662195f6.js +1 -0
- package/lib/system.notice.e2fe81dc.mjs +636 -0
- package/lib/system.noticereceived.15cf2fce.js +1 -0
- package/lib/system.noticereceived.20f38964.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.5524b210.mjs +212 -0
- package/lib/system.permissions.a45b5b80.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.67475aac.js +1 -0
- package/lib/system.promptmanagement.e9976712.mjs +805 -0
- package/lib/system.role.0a1f11ad.js +1 -0
- package/lib/system.role.e5d08307.mjs +1543 -0
- package/lib/system.timers.69f1792a.mjs +3160 -0
- package/lib/system.timers.ef6b6796.js +38 -0
- package/lib/system.translation.48ff0b03.mjs +665 -0
- package/lib/system.translation.8f7e4144.js +1 -0
- package/lib/system.user.30451246.mjs +1432 -0
- package/lib/system.user.e0e4ac12.js +14 -0
- package/lib/system.useraffiliation.1e74fa9e.mjs +1025 -0
- package/lib/system.useraffiliation.f3c88a51.js +1 -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 +249 -18
- package/locale/id_ID.js +250 -19
- package/locale/vi_VN.js +250 -19
- package/locale/zh_CN.js +258 -25
- package/package.json +105 -104
- package/lib/gd-initial.umd.js +0 -433
- package/lib/index.a0c53741.mjs +0 -146905
- package/lib/main.06db53a0.mjs +0 -919
|
@@ -0,0 +1,996 @@
|
|
|
1
|
+
import { m as d, n as c } from "./chartbi.48631362.mjs";
|
|
2
|
+
import { t as u } from "./messages.7e85146d.mjs";
|
|
3
|
+
function p(t) {
|
|
4
|
+
return window.axios({
|
|
5
|
+
url: "/sysDictType/page",
|
|
6
|
+
method: "get",
|
|
7
|
+
params: t
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
function h(t) {
|
|
11
|
+
return window.axios({
|
|
12
|
+
url: "/sysDictType/add",
|
|
13
|
+
method: "post",
|
|
14
|
+
data: t
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function g(t) {
|
|
18
|
+
return window.axios({
|
|
19
|
+
url: "/sysDictType/edit",
|
|
20
|
+
method: "post",
|
|
21
|
+
data: t
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function f(t) {
|
|
25
|
+
return window.axios({
|
|
26
|
+
url: "/sysDictType/delete",
|
|
27
|
+
method: "post",
|
|
28
|
+
data: t
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function O(t) {
|
|
32
|
+
return window.axios({
|
|
33
|
+
url: "/sysDictType/dropDown",
|
|
34
|
+
method: "get",
|
|
35
|
+
params: t
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function m(t) {
|
|
39
|
+
return window.axios({
|
|
40
|
+
url: "/sysDictType/changeStatus",
|
|
41
|
+
method: "post",
|
|
42
|
+
data: t
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
const y = {
|
|
46
|
+
data() {
|
|
47
|
+
return {
|
|
48
|
+
tableColumns: [
|
|
49
|
+
{
|
|
50
|
+
type: "selection",
|
|
51
|
+
width: "60",
|
|
52
|
+
fixed: !0
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
transKey: "gd.dict.displayName",
|
|
56
|
+
prop: "name",
|
|
57
|
+
label: "\u663E\u793A\u540D\u79F0",
|
|
58
|
+
width: "300",
|
|
59
|
+
type: "slot",
|
|
60
|
+
slotType: "name",
|
|
61
|
+
align: "left",
|
|
62
|
+
fixed: !0,
|
|
63
|
+
renderHeader: (t, ...e) => this.renderHeader(t, ...e, {
|
|
64
|
+
effectType: "input"
|
|
65
|
+
})
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
transKey: "gd.dict.code",
|
|
69
|
+
prop: "code",
|
|
70
|
+
width: "240",
|
|
71
|
+
label: "\u552F\u4E00\u7F16\u7801",
|
|
72
|
+
align: "left",
|
|
73
|
+
renderHeader: (t, ...e) => this.renderHeader(t, ...e, {
|
|
74
|
+
effectType: "input"
|
|
75
|
+
})
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
transKey: "gd.dict.sort",
|
|
79
|
+
prop: "sort",
|
|
80
|
+
width: "120",
|
|
81
|
+
label: "\u6392\u5E8F",
|
|
82
|
+
align: "left"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
transKey: "gd.dict.type",
|
|
86
|
+
prop: "dictType",
|
|
87
|
+
label: "\u6240\u5C5E\u7C7B\u578B",
|
|
88
|
+
width: "180",
|
|
89
|
+
type: "slot",
|
|
90
|
+
slotType: "dictType",
|
|
91
|
+
align: "left",
|
|
92
|
+
dictTypeCode: null,
|
|
93
|
+
renderHeader: (t, ...e) => this.renderHeader(t, ...e, {
|
|
94
|
+
effectType: "radio",
|
|
95
|
+
dictData: [{
|
|
96
|
+
name: "\u7CFB\u7EDF\u7C7B\u578B",
|
|
97
|
+
code: 1,
|
|
98
|
+
transKey: "dict.systemType",
|
|
99
|
+
prefix: "gd"
|
|
100
|
+
}, {
|
|
101
|
+
name: "\u4E1A\u52A1\u7C7B\u578B",
|
|
102
|
+
code: 0,
|
|
103
|
+
transKey: "dict.businessType",
|
|
104
|
+
prefix: "gd"
|
|
105
|
+
}]
|
|
106
|
+
})
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
transKey: "gd.dict.state",
|
|
110
|
+
prop: "stateCodes",
|
|
111
|
+
label: "\u72B6\u6001",
|
|
112
|
+
width: "120",
|
|
113
|
+
type: "slot",
|
|
114
|
+
slotType: "stateCodes",
|
|
115
|
+
align: "center",
|
|
116
|
+
dictTypeCode: "state_code",
|
|
117
|
+
renderHeader: (t, ...e) => this.renderHeader(t, ...e, {
|
|
118
|
+
effectType: "radio",
|
|
119
|
+
dictTypeCode: "state_code"
|
|
120
|
+
})
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
transKey: "gd.org.remark",
|
|
124
|
+
prop: "remark",
|
|
125
|
+
width: "360",
|
|
126
|
+
type: "slot",
|
|
127
|
+
slotType: "remark",
|
|
128
|
+
label: "\u5907\u6CE8",
|
|
129
|
+
align: "left"
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
formColumns: [{
|
|
133
|
+
transKey: "gd.dict.displayName",
|
|
134
|
+
effectType: "input",
|
|
135
|
+
prop: "name",
|
|
136
|
+
label: "\u663E\u793A\u540D\u79F0",
|
|
137
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
138
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
139
|
+
disabled: !1,
|
|
140
|
+
type: "slot",
|
|
141
|
+
slotType: "name",
|
|
142
|
+
rules: [{
|
|
143
|
+
required: !0,
|
|
144
|
+
message: "\u8BF7\u8F93\u5165",
|
|
145
|
+
transKey: "gd.placeholder.input",
|
|
146
|
+
trigger: "change"
|
|
147
|
+
}]
|
|
148
|
+
}, {
|
|
149
|
+
transKey: "gd.dict.code",
|
|
150
|
+
prop: "code",
|
|
151
|
+
effectType: "input",
|
|
152
|
+
label: "\u552F\u4E00\u7F16\u7801",
|
|
153
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
154
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
155
|
+
disabled: !1,
|
|
156
|
+
rules: [{
|
|
157
|
+
required: !0,
|
|
158
|
+
message: "\u8BF7\u8F93\u5165",
|
|
159
|
+
transKey: "gd.placeholder.input",
|
|
160
|
+
trigger: "change"
|
|
161
|
+
}]
|
|
162
|
+
}, {
|
|
163
|
+
transKey: "gd.dict.sort",
|
|
164
|
+
prop: "sort",
|
|
165
|
+
effectType: "inputnumber",
|
|
166
|
+
label: "\u6392\u5E8F",
|
|
167
|
+
defaultValue: 100,
|
|
168
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
169
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
170
|
+
disabled: !1,
|
|
171
|
+
rules: [{
|
|
172
|
+
required: !0,
|
|
173
|
+
message: "\u8BF7\u8F93\u5165",
|
|
174
|
+
transKey: "gd.placeholder.input",
|
|
175
|
+
trigger: "blur",
|
|
176
|
+
type: "number"
|
|
177
|
+
}]
|
|
178
|
+
}, {
|
|
179
|
+
transKey: "gd.org.remark",
|
|
180
|
+
effectType: "textarea",
|
|
181
|
+
prop: "remark",
|
|
182
|
+
label: "\u5907\u6CE8",
|
|
183
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
184
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
185
|
+
disabled: !1,
|
|
186
|
+
rules: [],
|
|
187
|
+
autosize: {
|
|
188
|
+
minRows: 4,
|
|
189
|
+
maxRows: 6
|
|
190
|
+
}
|
|
191
|
+
}],
|
|
192
|
+
tableButtons: [
|
|
193
|
+
{
|
|
194
|
+
displayName: "\u65B0\u589E",
|
|
195
|
+
functionName: "add",
|
|
196
|
+
show: !0,
|
|
197
|
+
transKey: "gd.btn.add",
|
|
198
|
+
icon: "el-icon-plus",
|
|
199
|
+
name: "sysDictType:add"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
displayName: "\u7F16\u8F91",
|
|
203
|
+
functionName: "edit",
|
|
204
|
+
show: !0,
|
|
205
|
+
transKey: "gd.btn.edit",
|
|
206
|
+
icon: "el-icon-edit",
|
|
207
|
+
name: "sysDictType:edit"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
displayName: "\u5220\u9664",
|
|
211
|
+
functionName: "del",
|
|
212
|
+
show: !0,
|
|
213
|
+
transKey: "gd.btn.del",
|
|
214
|
+
icon: "el-icon-delete",
|
|
215
|
+
btnType: "danger",
|
|
216
|
+
name: "sysDictType:delete"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
displayName: "\u542F\u7528",
|
|
220
|
+
functionName: "enable",
|
|
221
|
+
show: !0,
|
|
222
|
+
transKey: "gd.btn.enable",
|
|
223
|
+
icon: "el-icon-video-play",
|
|
224
|
+
name: "sysDictType:changeStatus"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
displayName: "\u505C\u7528",
|
|
228
|
+
functionName: "deactivated",
|
|
229
|
+
show: !0,
|
|
230
|
+
btnType: "danger",
|
|
231
|
+
icon: "el-icon-discover",
|
|
232
|
+
transKey: "gd.btn.deactivate",
|
|
233
|
+
name: "sysDictType:changeStatus"
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
formButtons: [{
|
|
237
|
+
displayName: "\u786E\u5B9A",
|
|
238
|
+
functionName: "handleSubmit",
|
|
239
|
+
show: !0,
|
|
240
|
+
transKey: "gd.btn.confirm",
|
|
241
|
+
icon: "el-icon-document-checked",
|
|
242
|
+
validate: !0
|
|
243
|
+
}],
|
|
244
|
+
tableQueries: [{
|
|
245
|
+
transKey: "gd.dict.displayName",
|
|
246
|
+
prop: "name",
|
|
247
|
+
label: "\u663E\u793A\u540D\u79F0",
|
|
248
|
+
effectType: "input",
|
|
249
|
+
rules: []
|
|
250
|
+
}, {
|
|
251
|
+
transKey: "gd.dict.code",
|
|
252
|
+
prop: "code",
|
|
253
|
+
label: "\u552F\u4E00\u7F16\u7801",
|
|
254
|
+
effectType: "input",
|
|
255
|
+
rules: []
|
|
256
|
+
}, {
|
|
257
|
+
transKey: "gd.dict.type",
|
|
258
|
+
prop: "dictType",
|
|
259
|
+
label: "\u6240\u5C5E\u7C7B\u578B",
|
|
260
|
+
effectType: "radio",
|
|
261
|
+
dictData: [{
|
|
262
|
+
name: "\u7CFB\u7EDF\u7C7B\u578B",
|
|
263
|
+
code: 1,
|
|
264
|
+
transKey: "dict.systemType",
|
|
265
|
+
prefix: "gd"
|
|
266
|
+
}, {
|
|
267
|
+
name: "\u4E1A\u52A1\u7C7B\u578B",
|
|
268
|
+
code: 0,
|
|
269
|
+
transKey: "dict.businessType",
|
|
270
|
+
prefix: "gd"
|
|
271
|
+
}],
|
|
272
|
+
rules: []
|
|
273
|
+
}, {
|
|
274
|
+
transKey: "gd.dict.state",
|
|
275
|
+
prop: "stateCodes",
|
|
276
|
+
label: "\u72B6\u6001",
|
|
277
|
+
effectType: "radio",
|
|
278
|
+
dictTypeCode: "state_code",
|
|
279
|
+
rules: []
|
|
280
|
+
}]
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
function b(t) {
|
|
285
|
+
return window.axios({
|
|
286
|
+
url: "/sysDictData/page",
|
|
287
|
+
method: "get",
|
|
288
|
+
params: t
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
function w(t) {
|
|
292
|
+
return window.axios({
|
|
293
|
+
url: "/sysDictData/add",
|
|
294
|
+
method: "post",
|
|
295
|
+
data: t
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
function T(t) {
|
|
299
|
+
return window.axios({
|
|
300
|
+
url: "/sysDictData/edit",
|
|
301
|
+
method: "post",
|
|
302
|
+
data: t
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
function C(t) {
|
|
306
|
+
return window.axios({
|
|
307
|
+
url: "/sysDictData/delete",
|
|
308
|
+
method: "post",
|
|
309
|
+
data: t
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
function k(t) {
|
|
313
|
+
return window.axios({
|
|
314
|
+
url: "/sysDictData/changeStatus",
|
|
315
|
+
method: "post",
|
|
316
|
+
data: t
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
const $ = {
|
|
320
|
+
data() {
|
|
321
|
+
return {
|
|
322
|
+
tableColumns: [
|
|
323
|
+
{
|
|
324
|
+
type: "selection",
|
|
325
|
+
width: "60",
|
|
326
|
+
fixed: !0
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
transKey: "gd.dict.dictValue",
|
|
330
|
+
prop: "value",
|
|
331
|
+
label: "\u5B57\u5178\u503C",
|
|
332
|
+
width: "300",
|
|
333
|
+
type: "slot",
|
|
334
|
+
slotType: "values",
|
|
335
|
+
align: "left",
|
|
336
|
+
fixed: !0,
|
|
337
|
+
renderHeader: (t, ...e) => this.renderHeader(t, ...e, {
|
|
338
|
+
effectType: "input"
|
|
339
|
+
}),
|
|
340
|
+
effectType: "input"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
transKey: "gd.dict.code",
|
|
344
|
+
prop: "code",
|
|
345
|
+
width: "120",
|
|
346
|
+
label: "\u552F\u4E00\u7F16\u7801",
|
|
347
|
+
align: "left",
|
|
348
|
+
effectType: "input",
|
|
349
|
+
renderHeader: (t, ...e) => this.renderHeader(t, ...e, {
|
|
350
|
+
effectType: "inputnumber"
|
|
351
|
+
})
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
transKey: "gd.dict.sort",
|
|
355
|
+
prop: "sort",
|
|
356
|
+
width: "120",
|
|
357
|
+
label: "\u6392\u5E8F",
|
|
358
|
+
align: "left"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
transKey: "gd.dict.colour",
|
|
362
|
+
prop: "colour",
|
|
363
|
+
width: "180",
|
|
364
|
+
label: "\u989C\u8272",
|
|
365
|
+
align: "left",
|
|
366
|
+
type: "slot",
|
|
367
|
+
slotType: "colour"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
transKey: "gd.dict.state",
|
|
371
|
+
prop: "stateCodes",
|
|
372
|
+
width: "120",
|
|
373
|
+
label: "\u72B6\u6001",
|
|
374
|
+
align: "center",
|
|
375
|
+
type: "slot",
|
|
376
|
+
slotType: "stateCodes"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
transKey: "gd.dict.remark",
|
|
380
|
+
prop: "remark",
|
|
381
|
+
width: "400",
|
|
382
|
+
type: "slot",
|
|
383
|
+
slotType: "remark",
|
|
384
|
+
label: "\u5907\u6CE8",
|
|
385
|
+
align: "left"
|
|
386
|
+
}
|
|
387
|
+
],
|
|
388
|
+
formColumns: [{
|
|
389
|
+
transKey: "gd.dict.dictValue",
|
|
390
|
+
effectType: "input",
|
|
391
|
+
prop: "value",
|
|
392
|
+
label: "\u5B57\u5178\u503C",
|
|
393
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
394
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
395
|
+
disabled: !1,
|
|
396
|
+
type: "slot",
|
|
397
|
+
slotType: "value",
|
|
398
|
+
rules: [{
|
|
399
|
+
required: !0,
|
|
400
|
+
message: "\u8BF7\u8F93\u5165",
|
|
401
|
+
transKey: "gd.placeholder.input",
|
|
402
|
+
trigger: "change"
|
|
403
|
+
}]
|
|
404
|
+
}, {
|
|
405
|
+
transKey: "gd.dict.code",
|
|
406
|
+
prop: "code",
|
|
407
|
+
effectType: "inputnumber",
|
|
408
|
+
label: "\u552F\u4E00\u7F16\u7801",
|
|
409
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
410
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
411
|
+
disabled: !1,
|
|
412
|
+
defaultValue: "undefined",
|
|
413
|
+
rules: [{
|
|
414
|
+
required: !0,
|
|
415
|
+
message: "\u8BF7\u8F93\u5165",
|
|
416
|
+
transKey: "gd.placeholder.input",
|
|
417
|
+
trigger: "blur",
|
|
418
|
+
type: "number"
|
|
419
|
+
}]
|
|
420
|
+
}, {
|
|
421
|
+
transKey: "gd.dict.colour",
|
|
422
|
+
prop: "colour",
|
|
423
|
+
effectType: "colorPicker",
|
|
424
|
+
label: "\u989C\u8272",
|
|
425
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
426
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
427
|
+
disabled: !1,
|
|
428
|
+
rules: []
|
|
429
|
+
}, {
|
|
430
|
+
transKey: "gd.dict.sort",
|
|
431
|
+
prop: "sort",
|
|
432
|
+
effectType: "inputnumber",
|
|
433
|
+
label: "\u6392\u5E8F",
|
|
434
|
+
defaultValue: 100,
|
|
435
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
436
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
437
|
+
disabled: !1,
|
|
438
|
+
rules: [{
|
|
439
|
+
required: !0,
|
|
440
|
+
message: "\u8BF7\u8F93\u5165",
|
|
441
|
+
transKey: "gd.placeholder.input",
|
|
442
|
+
trigger: "blur",
|
|
443
|
+
type: "number"
|
|
444
|
+
}]
|
|
445
|
+
}, {
|
|
446
|
+
transKey: "gd.dict.remark",
|
|
447
|
+
effectType: "textarea",
|
|
448
|
+
prop: "remark",
|
|
449
|
+
label: "\u5907\u6CE8",
|
|
450
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
451
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
452
|
+
disabled: !1,
|
|
453
|
+
rules: [],
|
|
454
|
+
autosize: {
|
|
455
|
+
minRows: 4,
|
|
456
|
+
maxRows: 6
|
|
457
|
+
}
|
|
458
|
+
}],
|
|
459
|
+
tableButtons: [
|
|
460
|
+
{
|
|
461
|
+
displayName: "\u65B0\u589E",
|
|
462
|
+
functionName: "add",
|
|
463
|
+
show: !0,
|
|
464
|
+
transKey: "gd.btn.add",
|
|
465
|
+
icon: "el-icon-plus",
|
|
466
|
+
name: "sysDictData:add"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
displayName: "\u7F16\u8F91",
|
|
470
|
+
functionName: "edit",
|
|
471
|
+
show: !0,
|
|
472
|
+
transKey: "gd.btn.edit",
|
|
473
|
+
icon: "el-icon-edit",
|
|
474
|
+
name: "sysDictData:edit"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
displayName: "\u5220\u9664",
|
|
478
|
+
functionName: "del",
|
|
479
|
+
show: !0,
|
|
480
|
+
transKey: "gd.btn.del",
|
|
481
|
+
icon: "el-icon-delete",
|
|
482
|
+
btnType: "danger",
|
|
483
|
+
name: "sysDictData:delete"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
displayName: "\u542F\u7528",
|
|
487
|
+
functionName: "enable",
|
|
488
|
+
show: !0,
|
|
489
|
+
transKey: "gd.btn.enable",
|
|
490
|
+
icon: "el-icon-video-play",
|
|
491
|
+
name: "sysDictData:changeStatus"
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
displayName: "\u505C\u7528",
|
|
495
|
+
functionName: "deactivated",
|
|
496
|
+
show: !0,
|
|
497
|
+
btnType: "danger",
|
|
498
|
+
icon: "el-icon-discover",
|
|
499
|
+
transKey: "gd.btn.deactivate",
|
|
500
|
+
name: "sysDictData:changeStatus"
|
|
501
|
+
}
|
|
502
|
+
],
|
|
503
|
+
formButtons: [{
|
|
504
|
+
displayName: "\u786E\u5B9A",
|
|
505
|
+
functionName: "handleSubmit",
|
|
506
|
+
show: !0,
|
|
507
|
+
transKey: "gd.btn.confirm",
|
|
508
|
+
icon: "el-icon-document-checked",
|
|
509
|
+
validate: !0
|
|
510
|
+
}],
|
|
511
|
+
tableQueries: [{
|
|
512
|
+
transKey: "gd.dict.dictValue",
|
|
513
|
+
prop: "value",
|
|
514
|
+
label: "\u5B57\u5178\u503C",
|
|
515
|
+
effectType: "input",
|
|
516
|
+
rules: []
|
|
517
|
+
}, {
|
|
518
|
+
transKey: "gd.dict.code",
|
|
519
|
+
prop: "code",
|
|
520
|
+
label: "\u552F\u4E00\u7F16\u7801",
|
|
521
|
+
effectType: "inputnumber",
|
|
522
|
+
rules: []
|
|
523
|
+
}]
|
|
524
|
+
};
|
|
525
|
+
}
|
|
526
|
+
};
|
|
527
|
+
const v = {
|
|
528
|
+
props: {
|
|
529
|
+
typeId: {
|
|
530
|
+
type: [String, Number],
|
|
531
|
+
default: ""
|
|
532
|
+
},
|
|
533
|
+
record: {
|
|
534
|
+
type: Object,
|
|
535
|
+
default: () => ({})
|
|
536
|
+
},
|
|
537
|
+
height: {
|
|
538
|
+
type: Number,
|
|
539
|
+
default: 100
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
mixins: [u, $],
|
|
543
|
+
data() {
|
|
544
|
+
return {
|
|
545
|
+
translationType: "dict",
|
|
546
|
+
transKey: "gd.btn.add",
|
|
547
|
+
formLoading: !1,
|
|
548
|
+
loading: !0,
|
|
549
|
+
selectedRowKeys: [],
|
|
550
|
+
selectedRows: [],
|
|
551
|
+
queryParam: {},
|
|
552
|
+
loadData: (t) => this.typeId === "" ? new Promise((e, s) => {
|
|
553
|
+
this.disableBtn = ["\u7F16\u8F91", "\u65B0\u589E", "\u5220\u9664", "\u542F\u7528", "\u505C\u7528"], e({ pageNo: 1, pageSize: 40, totalRows: 0, rows: [] });
|
|
554
|
+
}) : (this.disableBtn = this.record.dict_type == 1 ? ["\u65B0\u589E", "\u5220\u9664", "\u542F\u7528", "\u505C\u7528"] : [], b(Object.assign(t, this.queryParam, { typeId: this.typeId })).then((e) => e.data)),
|
|
555
|
+
disableBtn: [],
|
|
556
|
+
disableFormBtn: []
|
|
557
|
+
};
|
|
558
|
+
},
|
|
559
|
+
computed: {
|
|
560
|
+
getFormColumns() {
|
|
561
|
+
return this.formColumns.filter((t) => (t.disabled = this.disableFormBtn.length !== 0, ["\u989C\u8272", "\u6392\u5E8F"].includes(t.label) && (t.disabled = !1), t));
|
|
562
|
+
},
|
|
563
|
+
getFormButtons() {
|
|
564
|
+
return this.formButtons;
|
|
565
|
+
},
|
|
566
|
+
getTableButtons() {
|
|
567
|
+
return this.tableButtons.filter((t) => (t.show = !this.disableBtn.includes(t.displayName), !0));
|
|
568
|
+
},
|
|
569
|
+
...d(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
|
|
570
|
+
},
|
|
571
|
+
methods: {
|
|
572
|
+
lookupSeled(t, e, s) {
|
|
573
|
+
e[s.prop] = t.defaulttext;
|
|
574
|
+
},
|
|
575
|
+
saveQueries(t) {
|
|
576
|
+
this.queryParam = { ...t }, this.refresh();
|
|
577
|
+
},
|
|
578
|
+
enable() {
|
|
579
|
+
this.editStateCodes({ row: this.selectedRows[0] });
|
|
580
|
+
},
|
|
581
|
+
deactivated() {
|
|
582
|
+
this.editStateCodes({ row: this.selectedRows[0] });
|
|
583
|
+
},
|
|
584
|
+
editStateCodes({ column: t, row: e }) {
|
|
585
|
+
if (this.record.dict_type == 1) {
|
|
586
|
+
this.$message.error(this.$i18nt("gd.https.operableNoTip", "\u4E0D\u53EF\u64CD\u4F5C!"));
|
|
587
|
+
return;
|
|
588
|
+
}
|
|
589
|
+
const s = e.statecodes != 1 ? this.$i18nt("gd.https.enableContent", "\u662F\u5426\u505C\u7528\u9009\u4E2D\u6570\u636E?") : this.$i18nt("gd.https.deactivateContent", "\u662F\u5426\u542F\u7528\u9009\u4E2D\u6570\u636E?"), a = e.statecodes != 1 ? this.$i18nt("gd.https.enableOk", "\u786E\u8BA4\u505C\u7528") : this.$i18nt("gd.https.deactivateOk", "\u786E\u8BA4\u542F\u7528");
|
|
590
|
+
this.$confirm(s, this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
591
|
+
confirmButtonText: a,
|
|
592
|
+
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
593
|
+
showClose: !1,
|
|
594
|
+
confirmButtonLoading: !1,
|
|
595
|
+
cancelButtonLoading: !1,
|
|
596
|
+
closeOnClickModal: !1,
|
|
597
|
+
type: "warning",
|
|
598
|
+
confirmButtonClass: "el-button--danger",
|
|
599
|
+
customClass: "custom-alert",
|
|
600
|
+
callback: () => {
|
|
601
|
+
},
|
|
602
|
+
beforeClose: (i, r, n) => {
|
|
603
|
+
if (i !== "confirm") {
|
|
604
|
+
n();
|
|
605
|
+
return;
|
|
606
|
+
}
|
|
607
|
+
r.confirmButtonLoading = !0, r.cancelButtonLoading = !0, r.showCancelButton = !1, k({ id: e.id, statecodes: e.statecodes == 1 ? 0 : 1 }).then((o) => {
|
|
608
|
+
r.confirmButtonLoading = !1, r.cancelButtonLoading = !1, r.showCancelButton = !0, n(), o.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.handleOk()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + o.message);
|
|
609
|
+
});
|
|
610
|
+
}
|
|
611
|
+
});
|
|
612
|
+
},
|
|
613
|
+
refreshInit() {
|
|
614
|
+
this.disableBtn = this.record.dict_type == 1 ? ["\u65B0\u589E", "\u5220\u9664", "\u542F\u7528", "\u505C\u7528"] : [], this.disableFormBtn = this.record.dict_type == 1 ? ["\u786E\u5B9A"] : [], this.queryParam = {}, this.refresh();
|
|
615
|
+
},
|
|
616
|
+
refresh() {
|
|
617
|
+
this.$refs.tableManage.refresh();
|
|
618
|
+
},
|
|
619
|
+
editForm(t, e) {
|
|
620
|
+
this.transKey = "gd.btn.edit", this.$refs.editForm.open(t);
|
|
621
|
+
},
|
|
622
|
+
del() {
|
|
623
|
+
if (this.record.dict_type == 1) {
|
|
624
|
+
this.$message.error(this.$i18nt("gd.https.operableNoTip", "\u4E0D\u53EF\u64CD\u4F5C!"));
|
|
625
|
+
return;
|
|
626
|
+
}
|
|
627
|
+
if (this.selectedRowKeys.length === 0) {
|
|
628
|
+
this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));
|
|
629
|
+
return;
|
|
630
|
+
}
|
|
631
|
+
this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
632
|
+
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
633
|
+
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
634
|
+
showClose: !1,
|
|
635
|
+
confirmButtonLoading: !1,
|
|
636
|
+
cancelButtonLoading: !1,
|
|
637
|
+
closeOnClickModal: !1,
|
|
638
|
+
type: "warning",
|
|
639
|
+
confirmButtonClass: "el-button--danger",
|
|
640
|
+
customClass: "custom-alert",
|
|
641
|
+
callback: () => {
|
|
642
|
+
},
|
|
643
|
+
beforeClose: (t, e, s) => {
|
|
644
|
+
this.delHand(t, e, s);
|
|
645
|
+
}
|
|
646
|
+
});
|
|
647
|
+
},
|
|
648
|
+
delHand(t, e, s) {
|
|
649
|
+
if (t !== "confirm") {
|
|
650
|
+
s();
|
|
651
|
+
return;
|
|
652
|
+
}
|
|
653
|
+
let a = [];
|
|
654
|
+
this.selectedRows.forEach((i) => {
|
|
655
|
+
let r = C(i).then((n) => n);
|
|
656
|
+
a.push(r);
|
|
657
|
+
}), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(a).then((i) => {
|
|
658
|
+
e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, s();
|
|
659
|
+
const r = i.filter((n) => !n.success);
|
|
660
|
+
r.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") + r[0].message), this.handleOk();
|
|
661
|
+
});
|
|
662
|
+
},
|
|
663
|
+
add() {
|
|
664
|
+
this.transKey = "gd.btn.add", this.$refs.editForm.open(null);
|
|
665
|
+
},
|
|
666
|
+
edit() {
|
|
667
|
+
if (this.selectedRowKeys.length === 0) {
|
|
668
|
+
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
669
|
+
return;
|
|
670
|
+
}
|
|
671
|
+
if (this.selectedRowKeys.length > 1) {
|
|
672
|
+
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
673
|
+
return;
|
|
674
|
+
}
|
|
675
|
+
this.editForm(this.selectedRows[0]);
|
|
676
|
+
},
|
|
677
|
+
sbumit({ data: t, record: e, btn: s }, a, i) {
|
|
678
|
+
this.formLoading = !0, (e ? T : w)(Object.assign({ ...t }, { typeid: this.typeId })).then((n) => {
|
|
679
|
+
n.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), i(), this.handleOk()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + n.message), this.formLoading = !1;
|
|
680
|
+
});
|
|
681
|
+
},
|
|
682
|
+
handleOk() {
|
|
683
|
+
this.$refs.tableManage.refresh();
|
|
684
|
+
},
|
|
685
|
+
onSelectChange(t, e) {
|
|
686
|
+
if (this.selectedRowKeys = t, this.selectedRows = e, this.record.dict_type == 1) {
|
|
687
|
+
this.disableBtn = ["\u65B0\u589E", "\u5220\u9664", "\u542F\u7528", "\u505C\u7528"];
|
|
688
|
+
return;
|
|
689
|
+
}
|
|
690
|
+
if (t.length === 0) {
|
|
691
|
+
this.disableBtn = [];
|
|
692
|
+
return;
|
|
693
|
+
}
|
|
694
|
+
let s = ["\u5220\u9664", "\u542F\u7528", "\u505C\u7528"];
|
|
695
|
+
if (e.length > 1) {
|
|
696
|
+
this.disableBtn = ["\u542F\u7528", "\u505C\u7528"];
|
|
697
|
+
return;
|
|
698
|
+
}
|
|
699
|
+
let a = e.filter((r) => r.statecodes == 1), i = e.filter((r) => r.statecodes == 0);
|
|
700
|
+
a.length == e.length ? s = ["\u542F\u7528"] : i.length == e.length && (s = ["\u505C\u7528"]), this.disableBtn = s;
|
|
701
|
+
},
|
|
702
|
+
doEvent(t) {
|
|
703
|
+
let e = t.item.functionName;
|
|
704
|
+
this[e] && this[e]();
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
};
|
|
708
|
+
var K = function() {
|
|
709
|
+
var e = this, s = e._self._c;
|
|
710
|
+
return s("div", [s("el-divider", { staticClass: "setting-divider" }), s("div", { staticStyle: { "font-size": "16px", "font-weight": "700", color: "#303133", "margin-bottom": "6px" } }, [e._v(" " + e._s(e.$i18nt("gd.dict.dictManagement", "\u5B57\u5178\u503C\u7BA1\u7406")) + " ")]), s("el-divider", { staticClass: "setting-divider" }), s("gd-tables", { ref: "tableManage", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.height, filtering: !0 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "values", fn: function({ column: a, row: i }) {
|
|
711
|
+
return [s("gd-tooltip", { attrs: { rowKey: "value", row: i, transKey: `Dynamics.${i.transkey}`, highlight: "" }, on: { click: e.editForm } })];
|
|
712
|
+
} }, { key: "stateCodes", fn: function(a) {
|
|
713
|
+
return [s("div", { staticStyle: { cursor: "pointer" }, on: { click: function(i) {
|
|
714
|
+
return i.stopPropagation(), e.editStateCodes(a);
|
|
715
|
+
} } }, [a.row.statecodes ? 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": "20px", color: "#999" } })])];
|
|
716
|
+
} }, { key: "colour", fn: function(a) {
|
|
717
|
+
return [a.row.colour ? s("el-tag", { style: `background-color:${a.row.colour};border-color:${a.row.colour}`, attrs: { effect: "dark" } }, [e._v(" " + e._s(a.row.colour) + " ")]) : e._e()];
|
|
718
|
+
} }, { key: "remark", fn: function({ column: a, row: i }) {
|
|
719
|
+
return [s("gd-tooltip", { attrs: { rowKey: "remark", row: i } })];
|
|
720
|
+
} }, { key: "operator", fn: function() {
|
|
721
|
+
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.dict.dictValue", "\u5B57\u5178\u503C"), clearable: "" }, nativeOn: { keyup: function(a) {
|
|
722
|
+
return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.refresh.apply(null, arguments);
|
|
723
|
+
} }, model: { value: e.queryParam.value, callback: function(a) {
|
|
724
|
+
e.$set(e.queryParam, "value", a);
|
|
725
|
+
}, expression: "queryParam.value" } }), 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.getTableButtons }, on: { functionName: e.doEvent } })], 1)])];
|
|
726
|
+
}, proxy: !0 }, { key: "filtering", fn: function({ colse: a, visible: i }) {
|
|
727
|
+
return [s("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.height, queryParam: e.queryParam, colse: a, visible: i }, on: { save: e.saveQueries } })];
|
|
728
|
+
} }]) }), s("gd-edit-form", { ref: "editForm", attrs: { formItemWidth: "90%", loading: e.formLoading, transKey: e.transKey, buttons: e.getFormButtons, columns: e.getFormColumns, labelPosition: e.labelPosition, formMode: e.formMode, translationType: e.translationType }, on: { sbumit: e.sbumit }, scopedSlots: e._u([{ key: "value", fn: function({ data: a, column: i, record: r }) {
|
|
729
|
+
return [s("el-input", { directives: [{ name: "show", rawName: "v-show", value: !r, expression: "!record" }], attrs: { disabled: i.disabled, placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: a[i.prop], callback: function(n) {
|
|
730
|
+
e.$set(a, i.prop, n);
|
|
731
|
+
}, expression: "data[column.prop]" } }), r ? s("gd-translation", { ref: "gdTranslation", attrs: { recordData: a, name: "value", type: 2 }, on: { lookupSeled: (n) => e.lookupSeled(n, a, i) } }) : e._e()];
|
|
732
|
+
} }]) })], 1);
|
|
733
|
+
}, B = [], _ = /* @__PURE__ */ c(
|
|
734
|
+
v,
|
|
735
|
+
K,
|
|
736
|
+
B,
|
|
737
|
+
!1,
|
|
738
|
+
null,
|
|
739
|
+
"30eda767",
|
|
740
|
+
null,
|
|
741
|
+
null
|
|
742
|
+
);
|
|
743
|
+
const x = _.exports;
|
|
744
|
+
const D = {
|
|
745
|
+
props: {
|
|
746
|
+
height: {
|
|
747
|
+
type: Number,
|
|
748
|
+
default: 0
|
|
749
|
+
}
|
|
750
|
+
},
|
|
751
|
+
name: "GdDict",
|
|
752
|
+
mixins: [u, y],
|
|
753
|
+
components: { dictColumn: x },
|
|
754
|
+
data() {
|
|
755
|
+
return {
|
|
756
|
+
translationType: "dict",
|
|
757
|
+
transKey: "gd.btn.add",
|
|
758
|
+
formLoading: !1,
|
|
759
|
+
loading: !0,
|
|
760
|
+
selectedRowKeys: [],
|
|
761
|
+
selectedRows: [],
|
|
762
|
+
queryParam: {},
|
|
763
|
+
typeId: "",
|
|
764
|
+
loadData: (t) => p(Object.assign(t, this.getQueryParam)).then((e) => e.data),
|
|
765
|
+
disableBtn: ["\u542F\u7528", "\u505C\u7528"],
|
|
766
|
+
disableFormBtn: [],
|
|
767
|
+
record: {}
|
|
768
|
+
};
|
|
769
|
+
},
|
|
770
|
+
computed: {
|
|
771
|
+
getQueryParam() {
|
|
772
|
+
let t = /* @__PURE__ */ new Map();
|
|
773
|
+
for (let e in this.queryParam)
|
|
774
|
+
this.queryParam[e] !== "" && t.set(e, this.queryParam[e]);
|
|
775
|
+
return Object.fromEntries(t);
|
|
776
|
+
},
|
|
777
|
+
labelWidth() {
|
|
778
|
+
return this.language === "id_ID" ? "146px" : "120px";
|
|
779
|
+
},
|
|
780
|
+
getFormColumns() {
|
|
781
|
+
return this.formColumns.filter((t) => (t.disabled = this.disableFormBtn.length !== 0, this.transKey === "gd.btn.edit" && t.prop === "code" && (t.disabled = !0), t));
|
|
782
|
+
},
|
|
783
|
+
getFormButtons() {
|
|
784
|
+
return this.formButtons.filter((t) => (t.show = !this.disableFormBtn.includes(t.displayName), !0));
|
|
785
|
+
},
|
|
786
|
+
getTableButtons() {
|
|
787
|
+
return this.tableButtons.filter((t) => (t.show = !this.disableBtn.includes(t.displayName), !0));
|
|
788
|
+
},
|
|
789
|
+
heighted() {
|
|
790
|
+
return this.height / 5;
|
|
791
|
+
},
|
|
792
|
+
getHeight() {
|
|
793
|
+
return this.heighted * 3 - 76;
|
|
794
|
+
},
|
|
795
|
+
heightd() {
|
|
796
|
+
return this.heighted * 2 - 52;
|
|
797
|
+
},
|
|
798
|
+
...d(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode", "language"])
|
|
799
|
+
},
|
|
800
|
+
methods: {
|
|
801
|
+
lookupSeled(t, e, s) {
|
|
802
|
+
e[s.prop] = t.defaulttext;
|
|
803
|
+
},
|
|
804
|
+
saveQueries(t) {
|
|
805
|
+
this.queryParam = { ...t }, this.refresh();
|
|
806
|
+
},
|
|
807
|
+
enable() {
|
|
808
|
+
this.editStateCodes({ row: this.selectedRows[0] });
|
|
809
|
+
},
|
|
810
|
+
deactivated() {
|
|
811
|
+
this.editStateCodes({ row: this.selectedRows[0] });
|
|
812
|
+
},
|
|
813
|
+
editStateCodes({ column: t, row: e }) {
|
|
814
|
+
if (e.dict_type == 1) {
|
|
815
|
+
this.$message.error(this.$i18nt("gd.https.operableNoTip", "\u4E0D\u53EF\u64CD\u4F5C!"));
|
|
816
|
+
return;
|
|
817
|
+
}
|
|
818
|
+
const s = e.statecodes != 1 ? this.$i18nt("gd.https.enableContent", "\u662F\u5426\u505C\u7528\u9009\u4E2D\u6570\u636E?") : this.$i18nt("gd.https.deactivateContent", "\u662F\u5426\u542F\u7528\u9009\u4E2D\u6570\u636E?"), a = e.statecodes != 1 ? this.$i18nt("gd.https.enableOk", "\u786E\u8BA4\u505C\u7528") : this.$i18nt("gd.https.deactivateOk", "\u786E\u8BA4\u542F\u7528");
|
|
819
|
+
this.$confirm(s, this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
820
|
+
confirmButtonText: a,
|
|
821
|
+
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
822
|
+
showClose: !1,
|
|
823
|
+
confirmButtonLoading: !1,
|
|
824
|
+
cancelButtonLoading: !1,
|
|
825
|
+
closeOnClickModal: !1,
|
|
826
|
+
type: "warning",
|
|
827
|
+
confirmButtonClass: "el-button--danger",
|
|
828
|
+
customClass: "custom-alert",
|
|
829
|
+
callback: () => {
|
|
830
|
+
},
|
|
831
|
+
beforeClose: (i, r, n) => {
|
|
832
|
+
if (i !== "confirm") {
|
|
833
|
+
n();
|
|
834
|
+
return;
|
|
835
|
+
}
|
|
836
|
+
r.confirmButtonLoading = !0, r.cancelButtonLoading = !0, r.showCancelButton = !1, m({ id: e.id, statecodes: e.statecodes == 1 ? 0 : 1 }).then((o) => {
|
|
837
|
+
n(), r.confirmButtonLoading = !1, r.cancelButtonLoading = !1, r.showCancelButton = !0, o.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.handleOk()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + o.message);
|
|
838
|
+
});
|
|
839
|
+
}
|
|
840
|
+
});
|
|
841
|
+
},
|
|
842
|
+
rowClick(t, e) {
|
|
843
|
+
this.typeId = t ? t.id : "", this.record = t || {}, this.$nextTick(() => {
|
|
844
|
+
setTimeout(() => {
|
|
845
|
+
this.$refs.dictColumn.refreshInit();
|
|
846
|
+
}, 0);
|
|
847
|
+
});
|
|
848
|
+
},
|
|
849
|
+
onRowSelect(t, e) {
|
|
850
|
+
let s = 0;
|
|
851
|
+
t.length > e.length ? s = t.filter((a) => !e.includes(a))[0] : s = e.filter((a) => !t.includes(a))[0], s !== 0 && (this.typeId = s, this.$nextTick(() => {
|
|
852
|
+
setTimeout(() => {
|
|
853
|
+
this.$refs.dictColumn.refreshInit();
|
|
854
|
+
}, 0);
|
|
855
|
+
}));
|
|
856
|
+
},
|
|
857
|
+
refresh() {
|
|
858
|
+
this.$refs.table.refresh();
|
|
859
|
+
},
|
|
860
|
+
editForm(t, e) {
|
|
861
|
+
this.transKey = "gd.btn.edit", this.disableFormBtn = t.dict_type == 1 ? ["\u786E\u5B9A"] : [], this.$refs.editForm.open(t), this.rowClick(t, e);
|
|
862
|
+
},
|
|
863
|
+
del() {
|
|
864
|
+
if (this.selectedRowKeys.length === 0) {
|
|
865
|
+
this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));
|
|
866
|
+
return;
|
|
867
|
+
}
|
|
868
|
+
if (this.selectedRows.filter((e) => e.dict_type == 1).length > 0) {
|
|
869
|
+
this.$message.error(this.$i18nt("gd.https.operableNoTip", "\u4E0D\u53EF\u64CD\u4F5C!"));
|
|
870
|
+
return;
|
|
871
|
+
}
|
|
872
|
+
this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
873
|
+
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
874
|
+
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
875
|
+
showClose: !1,
|
|
876
|
+
confirmButtonLoading: !1,
|
|
877
|
+
cancelButtonLoading: !1,
|
|
878
|
+
closeOnClickModal: !1,
|
|
879
|
+
type: "warning",
|
|
880
|
+
confirmButtonClass: "el-button--danger",
|
|
881
|
+
customClass: "custom-alert",
|
|
882
|
+
callback: () => {
|
|
883
|
+
},
|
|
884
|
+
beforeClose: (e, s, a) => {
|
|
885
|
+
this.delHand(e, s, a);
|
|
886
|
+
}
|
|
887
|
+
});
|
|
888
|
+
},
|
|
889
|
+
delHand(t, e, s) {
|
|
890
|
+
if (t !== "confirm") {
|
|
891
|
+
s();
|
|
892
|
+
return;
|
|
893
|
+
}
|
|
894
|
+
let a = [];
|
|
895
|
+
this.selectedRows.forEach((r) => {
|
|
896
|
+
let n = f(r).then((o) => o);
|
|
897
|
+
a.push(n);
|
|
898
|
+
});
|
|
899
|
+
const i = this.selectedRowKeys.filter((r) => r === this.typeId)[0];
|
|
900
|
+
e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(a).then((r) => {
|
|
901
|
+
s();
|
|
902
|
+
const n = r.filter((o) => !o.success);
|
|
903
|
+
n.length === 0 ? (this.$message.success(this.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")), i && this.rowClick(null)) : this.$message.error(this.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + n[0].message), this.handleOk();
|
|
904
|
+
});
|
|
905
|
+
},
|
|
906
|
+
add() {
|
|
907
|
+
this.disableFormBtn = [], this.transKey = "gd.btn.add", this.$refs.editForm.open(null);
|
|
908
|
+
},
|
|
909
|
+
edit() {
|
|
910
|
+
if (this.selectedRowKeys.length === 0) {
|
|
911
|
+
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
912
|
+
return;
|
|
913
|
+
}
|
|
914
|
+
if (this.selectedRowKeys.length > 1) {
|
|
915
|
+
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
916
|
+
return;
|
|
917
|
+
}
|
|
918
|
+
this.editForm(this.selectedRows[0]);
|
|
919
|
+
},
|
|
920
|
+
sbumit({ data: t, record: e, btn: s }, a, i) {
|
|
921
|
+
this.formLoading = !0, (e ? g : h)(t).then((n) => {
|
|
922
|
+
n.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), i(), this.handleOk()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + n.message), this.formLoading = !1;
|
|
923
|
+
});
|
|
924
|
+
},
|
|
925
|
+
cellClassName({ row: t, rowIndex: e }) {
|
|
926
|
+
return t.id === this.typeId ? "gd-select-row" : "";
|
|
927
|
+
},
|
|
928
|
+
handleOk() {
|
|
929
|
+
this.$refs.table.refresh();
|
|
930
|
+
},
|
|
931
|
+
onSelectChange(t, e) {
|
|
932
|
+
if (this.onRowSelect(t, this.selectedRowKeys), this.selectedRowKeys = t, this.selectedRows = e, t.length === 0) {
|
|
933
|
+
this.disableBtn = [];
|
|
934
|
+
return;
|
|
935
|
+
}
|
|
936
|
+
let s = e.filter((o) => o.dict_type == 1), a = ["\u5220\u9664", "\u542F\u7528", "\u505C\u7528"];
|
|
937
|
+
if (e.length > 1) {
|
|
938
|
+
this.disableBtn = s.length > 0 ? a : ["\u542F\u7528", "\u505C\u7528"];
|
|
939
|
+
return;
|
|
940
|
+
}
|
|
941
|
+
let i = [], r = e.filter((o) => o.statecodes == 1), n = e.filter((o) => o.statecodes == 0);
|
|
942
|
+
r.length == e.length ? i = s.length > 0 ? a : ["\u542F\u7528"] : n.length == e.length && (i = s.length > 0 ? a : ["\u505C\u7528"]), this.disableBtn = s.length > 0 ? a : i;
|
|
943
|
+
},
|
|
944
|
+
doEvent(t) {
|
|
945
|
+
let e = t.item.functionName;
|
|
946
|
+
this[e] && this[e]();
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
};
|
|
950
|
+
var S = function() {
|
|
951
|
+
var e = this, s = e._self._c;
|
|
952
|
+
return s("div", { staticClass: "gd-page-view" }, [s("div", { staticClass: "page-view-list" }, [s("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, cellClassName: e.cellClassName, filtering: !0 }, on: { onChange: e.onSelectChange, rowClick: e.rowClick }, scopedSlots: e._u([{ key: "name", fn: function({ column: a, row: i }) {
|
|
953
|
+
return [s("gd-tooltip", { attrs: { rowKey: "name", row: i, transKey: `Dynamics.${i.transKey}`, highlight: "" }, on: { click: function(r) {
|
|
954
|
+
return e.editForm(i, a);
|
|
955
|
+
} } })];
|
|
956
|
+
} }, { key: "dictType", fn: function(a) {
|
|
957
|
+
return [a.row.dict_type === 1 ? s("el-tag", { staticStyle: { "background-color": "red", "border-color": "red" }, attrs: { effect: "dark" } }, [e._v(" " + e._s(e.$i18nt("gd.dict.systemType", "\u7CFB\u7EDF\u7C7B\u578B")) + " ")]) : s("el-tag", { staticStyle: { "background-color": "#52c41a", "border-color": "#52c41a" }, attrs: { effect: "dark" } }, [e._v(" " + e._s(e.$i18nt("gd.dict.businessType", "\u4E1A\u52A1\u7C7B\u578B")) + " ")])];
|
|
958
|
+
} }, { key: "stateCodes", fn: function(a) {
|
|
959
|
+
return [s("div", { staticStyle: { cursor: "pointer" }, on: { click: function(i) {
|
|
960
|
+
return i.stopPropagation(), e.editStateCodes(a);
|
|
961
|
+
} } }, [a.row.statecodes ? 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": "20px", color: "#999" } })])];
|
|
962
|
+
} }, { key: "remark", fn: function({ column: a, row: i }) {
|
|
963
|
+
return [s("gd-tooltip", { attrs: { rowKey: "remark", row: i, prevent: !1 } })];
|
|
964
|
+
} }, { key: "operator", fn: function() {
|
|
965
|
+
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.dict.displayName", "\u663E\u793A\u540D\u79F0"), clearable: "" }, nativeOn: { keyup: function(a) {
|
|
966
|
+
return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.refresh.apply(null, arguments);
|
|
967
|
+
} }, model: { value: e.queryParam.name, callback: function(a) {
|
|
968
|
+
e.$set(e.queryParam, "name", a);
|
|
969
|
+
}, expression: "queryParam.name" } }), 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.getTableButtons }, on: { functionName: e.doEvent } })], 1)])];
|
|
970
|
+
}, proxy: !0 }, { key: "filtering", fn: function({ colse: a, visible: i }) {
|
|
971
|
+
return [s("gd-table-queries-field", { key: "tfiltering", attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: a, visible: i }, on: { save: e.saveQueries } })];
|
|
972
|
+
} }]) }), s("dict-column", { ref: "dictColumn", attrs: { typeId: e.typeId, record: e.record, height: e.heightd } })], 1), s("gd-edit-form", { ref: "editForm", attrs: { formItemWidth: "90%", labelWidth: e.labelWidth, loading: e.formLoading, transKey: e.transKey, buttons: e.getFormButtons, columns: e.getFormColumns, labelPosition: e.labelPosition, formMode: e.formMode, translationType: e.translationType }, on: { sbumit: e.sbumit }, scopedSlots: e._u([{ key: "name", fn: function({ data: a, column: i, record: r }) {
|
|
973
|
+
return [s("el-input", { directives: [{ name: "show", rawName: "v-show", value: !r, expression: "!record" }], attrs: { disabled: i.disabled, placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: a[i.prop], callback: function(n) {
|
|
974
|
+
e.$set(a, i.prop, n);
|
|
975
|
+
}, expression: "data[column.prop]" } }), r ? s("gd-translation", { ref: "gdTranslation", attrs: { recordData: a, type: 2 }, on: { lookupSeled: (n) => e.lookupSeled(n, a, i) } }) : e._e()];
|
|
976
|
+
} }]) })], 1);
|
|
977
|
+
}, N = [], P = /* @__PURE__ */ c(
|
|
978
|
+
D,
|
|
979
|
+
S,
|
|
980
|
+
N,
|
|
981
|
+
!1,
|
|
982
|
+
null,
|
|
983
|
+
"42a691ff",
|
|
984
|
+
null,
|
|
985
|
+
null
|
|
986
|
+
);
|
|
987
|
+
const l = P.exports;
|
|
988
|
+
l.install = function(t) {
|
|
989
|
+
t.component(l.name, l);
|
|
990
|
+
};
|
|
991
|
+
export {
|
|
992
|
+
l as G,
|
|
993
|
+
b as a,
|
|
994
|
+
p as b,
|
|
995
|
+
O as s
|
|
996
|
+
};
|