gds-plus-design-vue 1.2.23 → 1.2.41
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.06e48153.js → chartbi.5eded588.js} +20 -20
- package/lib/{chartbi.cdd1e365.mjs → chartbi.c3bc6adb.mjs} +17 -9
- package/lib/gd-initial.js +17 -15
- package/lib/gd-initial.mjs +23641 -16241
- package/lib/{main.2415a49a.js → main.5b42b006.js} +1 -1
- package/lib/main.6245dcb0.mjs +198 -0
- package/lib/{main.b2d0a309.mjs → main.6d033946.mjs} +24 -46
- package/lib/main.77b653a0.js +1 -0
- package/lib/{main.2cddfbbd.mjs → main.81ceb1d2.mjs} +3 -3
- package/lib/main.b143863e.js +1 -0
- package/lib/main.e7207a58.js +1 -0
- package/lib/main.f5fec475.mjs +123 -0
- package/lib/{messages.d8abe18d.mjs → messages.78d0815c.mjs} +1161 -1116
- package/lib/messages.e7af6cf3.js +9 -0
- package/lib/style.css +3 -3
- package/lib/{system.account.8ea53681.js → system.account.dc88aad7.js} +1 -1
- package/lib/{system.account.9bc40d08.mjs → system.account.feca6fef.mjs} +26 -26
- package/lib/system.config.76fc8a66.js +1 -0
- package/lib/{system.config.8223d495.mjs → system.config.98005c65.mjs} +7 -2
- package/lib/{system.datasource.fd6a4e76.js → system.datasource.83e34499.js} +1 -1
- package/lib/{system.datasource.57233650.mjs → system.datasource.a67e9bce.mjs} +3 -3
- package/lib/{system.dict.a24f33b0.js → system.dict.931dcb56.js} +1 -1
- package/lib/{system.dict.8f95218b.mjs → system.dict.97c057d5.mjs} +4 -4
- package/lib/{system.duplicatechecking.6b706948.mjs → system.duplicatechecking.5bf3e3d9.mjs} +15 -11
- package/lib/{system.duplicatechecking.39293985.js → system.duplicatechecking.785d1b24.js} +1 -1
- package/lib/{system.email.a2d9a307.js → system.email.06fb96a6.js} +1 -1
- package/lib/{system.email.dae988be.mjs → system.email.a938d704.mjs} +2 -2
- package/lib/{system.fieldsecurity.02627a7a.mjs → system.fieldsecurity.9f9f73df.mjs} +127 -79
- package/lib/system.fieldsecurity.d11088e3.js +1 -0
- package/lib/{system.file.0fa095a9.mjs → system.file.6c4d3ece.mjs} +13 -8
- package/lib/system.file.b7ce477b.js +1 -0
- package/lib/system.log.278084ec.js +1 -0
- package/lib/{system.log.acb64505.mjs → system.log.35ddd3bd.mjs} +64 -81
- package/lib/{system.machine.fc392d7f.mjs → system.machine.52e8a4f3.mjs} +1 -1
- package/lib/{system.machine.7fa3e3d1.js → system.machine.6e46b7a3.js} +1 -1
- package/lib/system.notice.30231ef5.js +1 -0
- package/lib/system.notice.ce4a4852.mjs +1693 -0
- package/lib/system.noticereceived.a608b96b.js +1 -0
- package/lib/{system.noticereceived.1aa70b65.mjs → system.noticereceived.fc6da6a7.mjs} +45 -34
- package/lib/system.onlineuser.3e1639a3.js +1 -0
- package/lib/{system.onlineuser.3d848a32.mjs → system.onlineuser.be4b1d75.mjs} +22 -15
- package/lib/{system.org.fcf96d1e.mjs → system.org.32183035.mjs} +17 -68
- package/lib/system.org.474be398.js +1 -0
- package/lib/{system.permissions.a1a9505c.js → system.permissions.1f9c7d7d.js} +1 -1
- package/lib/{system.permissions.23f5b097.mjs → system.permissions.28913e80.mjs} +3 -3
- package/lib/{system.plugin.e37f9dbc.mjs → system.plugin.27391ed5.mjs} +2 -2
- package/lib/{system.plugin.b6de4673.js → system.plugin.b60b97c7.js} +1 -1
- package/lib/{system.pos.1a01fc97.mjs → system.pos.2425d5ef.mjs} +2 -2
- package/lib/{system.pos.a4fb19b0.js → system.pos.decf8a63.js} +1 -1
- package/lib/{system.promptmanagement.290958b1.js → system.promptmanagement.09dcec13.js} +1 -1
- package/lib/{system.promptmanagement.36a65c51.mjs → system.promptmanagement.eaabf18d.mjs} +7 -7
- package/lib/system.role.1be25fd7.mjs +2049 -0
- package/lib/system.role.e98ed81e.js +1 -0
- package/lib/{system.sumberrules.dd6299e8.js → system.sumberrules.83d23274.js} +1 -1
- package/lib/{system.sumberrules.cdef9308.mjs → system.sumberrules.9d0efd00.mjs} +2 -2
- package/lib/system.team.cbbde647.js +1 -0
- package/lib/{system.team.ee652fe4.mjs → system.team.db590123.mjs} +318 -244
- package/lib/system.teammembers.9eb94832.js +1 -0
- package/lib/{system.teammembers.26a2ba81.mjs → system.teammembers.fd2452e7.mjs} +78 -40
- package/lib/{system.timers.b9424204.js → system.timers.0af8bf8f.js} +1 -1
- package/lib/{system.timers.4efa8a7d.mjs → system.timers.5ef2cfb4.mjs} +2 -2
- package/lib/{system.translation.0a9399b4.mjs → system.translation.2cb37689.mjs} +7 -7
- package/lib/{system.translation.21d2fd8b.js → system.translation.7b560e17.js} +1 -1
- package/lib/{system.user.4fcfdf99.mjs → system.user.c8ba3724.mjs} +146 -84
- package/lib/{system.user.d48a08db.js → system.user.f2bc316f.js} +5 -5
- package/lib/{system.useraffiliation.fb002239.mjs → system.useraffiliation.1e0edee4.mjs} +3 -3
- package/lib/{system.useraffiliation.a59ce45b.js → system.useraffiliation.617acb38.js} +1 -1
- package/lib/system.webresource.3fdc65fd.js +1 -0
- package/lib/{system.webresource.4df01c92.mjs → system.webresource.88e48862.mjs} +16 -18
- package/lib/{system.welcome.472f099b.js → system.welcome.67d20fa4.js} +1 -1
- package/lib/{system.welcome.120f4b50.mjs → system.welcome.aaac4a40.mjs} +1 -1
- package/locale/en_US.js +45 -3
- package/locale/id_ID.js +45 -3
- package/locale/vi_VN.js +1970 -1928
- package/locale/zh_CN.js +44 -2
- package/package.json +1 -1
- package/lib/main.4c447fc3.js +0 -1
- package/lib/main.86fe06d4.mjs +0 -87
- package/lib/main.d091d06d.js +0 -1
- package/lib/messages.2fff74f3.js +0 -9
- package/lib/system.config.c6e30213.js +0 -1
- package/lib/system.fieldsecurity.a0cec24d.js +0 -1
- package/lib/system.file.d695ab37.js +0 -1
- package/lib/system.log.c07ae5db.js +0 -1
- package/lib/system.notice.5ae50bd4.mjs +0 -641
- package/lib/system.notice.f18578ae.js +0 -1
- package/lib/system.noticereceived.bfa98a9b.js +0 -1
- package/lib/system.onlineuser.1c428d05.js +0 -1
- package/lib/system.org.5bb36f9c.js +0 -1
- package/lib/system.role.68de93ef.mjs +0 -1543
- package/lib/system.role.88100f66.js +0 -1
- package/lib/system.team.53d64006.js +0 -1
- package/lib/system.teammembers.4a3dc336.js +0 -1
- package/lib/system.webresource.3366cc29.js +0 -1
|
@@ -1,76 +1,83 @@
|
|
|
1
|
-
import { n as o, m } from "./chartbi.
|
|
2
|
-
import { f as
|
|
3
|
-
function
|
|
1
|
+
import { n as o, m as c } from "./chartbi.c3bc6adb.mjs";
|
|
2
|
+
import { f as r, t as m } from "./messages.78d0815c.mjs";
|
|
3
|
+
function h(s) {
|
|
4
4
|
return window.axios({
|
|
5
5
|
url: "/sysTeam/page",
|
|
6
6
|
method: "get",
|
|
7
|
-
params:
|
|
7
|
+
params: s
|
|
8
8
|
});
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function p(s) {
|
|
11
11
|
return window.axios({
|
|
12
12
|
url: "/sysTeam/add",
|
|
13
13
|
method: "post",
|
|
14
|
-
data:
|
|
14
|
+
data: s
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
function f(
|
|
17
|
+
function f(s) {
|
|
18
18
|
return window.axios({
|
|
19
19
|
url: "/sysTeam/edit",
|
|
20
20
|
method: "post",
|
|
21
|
-
data:
|
|
21
|
+
data: s
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function g(s) {
|
|
25
25
|
return window.axios({
|
|
26
26
|
url: "/sysTeam/delete",
|
|
27
27
|
method: "post",
|
|
28
|
-
data:
|
|
28
|
+
data: s
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function y(s) {
|
|
32
32
|
return window.axios({
|
|
33
33
|
url: "/sysTeam/detail",
|
|
34
34
|
method: "get",
|
|
35
|
-
params:
|
|
35
|
+
params: s
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function _(s) {
|
|
39
39
|
return window.axios({
|
|
40
40
|
url: "/sysTeam/members",
|
|
41
41
|
method: "get",
|
|
42
|
-
params:
|
|
42
|
+
params: s
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function b(s) {
|
|
46
46
|
return window.axios({
|
|
47
47
|
url: "/sysTeam/member/add",
|
|
48
48
|
method: "post",
|
|
49
|
-
data:
|
|
49
|
+
data: s
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function w(s) {
|
|
53
|
+
return window.axios({
|
|
54
|
+
url: "/sysTeam/member/batchadd",
|
|
55
|
+
method: "post",
|
|
56
|
+
data: s
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function $(s) {
|
|
53
60
|
return window.axios({
|
|
54
61
|
url: "/sysTeam/member/edit",
|
|
55
62
|
method: "post",
|
|
56
|
-
data:
|
|
63
|
+
data: s
|
|
57
64
|
});
|
|
58
65
|
}
|
|
59
|
-
function
|
|
66
|
+
function v(s) {
|
|
60
67
|
return window.axios({
|
|
61
|
-
url: "/sysTeam/member/
|
|
68
|
+
url: "/sysTeam/member/batchdel",
|
|
62
69
|
method: "post",
|
|
63
|
-
data:
|
|
70
|
+
data: s
|
|
64
71
|
});
|
|
65
72
|
}
|
|
66
|
-
function
|
|
73
|
+
function k(s) {
|
|
67
74
|
return window.axios({
|
|
68
75
|
url: "/sysTeam/member/detail",
|
|
69
76
|
method: "get",
|
|
70
|
-
params:
|
|
77
|
+
params: s
|
|
71
78
|
});
|
|
72
79
|
}
|
|
73
|
-
const
|
|
80
|
+
const F = {
|
|
74
81
|
data() {
|
|
75
82
|
return {
|
|
76
83
|
tableColumns: [
|
|
@@ -86,6 +93,7 @@ const v = {
|
|
|
86
93
|
type: "slot",
|
|
87
94
|
slotType: "name",
|
|
88
95
|
align: "left",
|
|
96
|
+
width: "220",
|
|
89
97
|
fixed: !0,
|
|
90
98
|
showOverflowTooltip: !0
|
|
91
99
|
},
|
|
@@ -93,6 +101,7 @@ const v = {
|
|
|
93
101
|
transKey: "gd.team.amdmin",
|
|
94
102
|
prop: "administratorid",
|
|
95
103
|
label: "\u7BA1\u7406\u5458",
|
|
104
|
+
width: "220",
|
|
96
105
|
type: "slot",
|
|
97
106
|
slotType: "administratorid",
|
|
98
107
|
align: "left"
|
|
@@ -101,20 +110,23 @@ const v = {
|
|
|
101
110
|
transKey: "gd.team.teamtype",
|
|
102
111
|
prop: "teamtype",
|
|
103
112
|
label: "\u56E2\u961F\u7C7B\u578B",
|
|
113
|
+
width: "180",
|
|
104
114
|
type: "slot",
|
|
105
115
|
slotType: "teamtype",
|
|
106
116
|
align: "left"
|
|
107
117
|
},
|
|
108
|
-
{
|
|
109
|
-
transKey: "gd.team.describe",
|
|
110
|
-
prop: "description",
|
|
111
|
-
label: "\u63CF\u8FF0",
|
|
112
|
-
align: "left"
|
|
113
|
-
},
|
|
114
118
|
{
|
|
115
119
|
transKey: "gd.team.createdTime",
|
|
116
120
|
prop: "createdtime",
|
|
117
121
|
label: "\u521B\u5EFA\u65F6\u95F4",
|
|
122
|
+
align: "center",
|
|
123
|
+
width: "180"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
transKey: "gd.team.describe",
|
|
127
|
+
prop: "description",
|
|
128
|
+
label: "\u63CF\u8FF0",
|
|
129
|
+
width: "260",
|
|
118
130
|
align: "left"
|
|
119
131
|
}
|
|
120
132
|
],
|
|
@@ -147,7 +159,7 @@ const v = {
|
|
|
147
159
|
]
|
|
148
160
|
};
|
|
149
161
|
}
|
|
150
|
-
},
|
|
162
|
+
}, L = {
|
|
151
163
|
data() {
|
|
152
164
|
return {
|
|
153
165
|
tableColumns: [
|
|
@@ -173,6 +185,38 @@ const v = {
|
|
|
173
185
|
type: "slot",
|
|
174
186
|
slotType: "sys_userid",
|
|
175
187
|
align: "left"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
transKey: "gd.user.account",
|
|
191
|
+
prop: "account",
|
|
192
|
+
label: "\u8D26\u53F7",
|
|
193
|
+
type: "slot",
|
|
194
|
+
slotType: "account",
|
|
195
|
+
align: "left"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
transKey: "gd.user.tel",
|
|
199
|
+
prop: "phone",
|
|
200
|
+
label: "\u7535\u8BDD",
|
|
201
|
+
type: "slot",
|
|
202
|
+
slotType: "phone",
|
|
203
|
+
align: "left"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
transKey: "gd.user.email",
|
|
207
|
+
prop: "email",
|
|
208
|
+
label: "\u90AE\u7BB1",
|
|
209
|
+
type: "slot",
|
|
210
|
+
slotType: "email",
|
|
211
|
+
align: "left"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
transKey: "gd.user.employeeID",
|
|
215
|
+
prop: "employeeid",
|
|
216
|
+
label: "\u5DE5\u53F7",
|
|
217
|
+
type: "slot",
|
|
218
|
+
slotType: "employeeid",
|
|
219
|
+
align: "left"
|
|
176
220
|
}
|
|
177
221
|
],
|
|
178
222
|
tableButtons: [
|
|
@@ -205,7 +249,7 @@ const v = {
|
|
|
205
249
|
};
|
|
206
250
|
}
|
|
207
251
|
};
|
|
208
|
-
const
|
|
252
|
+
const T = {
|
|
209
253
|
props: {
|
|
210
254
|
modalAppendToBody: {
|
|
211
255
|
type: Boolean,
|
|
@@ -269,37 +313,37 @@ const F = {
|
|
|
269
313
|
}
|
|
270
314
|
},
|
|
271
315
|
methods: {
|
|
272
|
-
lookupSeled(
|
|
273
|
-
this.dataList = [...
|
|
316
|
+
lookupSeled(s) {
|
|
317
|
+
this.dataList = [...s.fkData], this.$set(this.ruleFormData, "sys_userid", s.data[0]);
|
|
274
318
|
},
|
|
275
|
-
lookup(
|
|
319
|
+
lookup(s) {
|
|
276
320
|
let e = {
|
|
277
321
|
effectType: "fk",
|
|
278
322
|
fkEntityName: "sys_user",
|
|
279
|
-
val:
|
|
323
|
+
val: s || []
|
|
280
324
|
};
|
|
281
325
|
this.$refs.msgSearch.open(e);
|
|
282
326
|
},
|
|
283
|
-
open(
|
|
284
|
-
this.visible = !0, this.fullScreen = !1, this.title =
|
|
327
|
+
open(s) {
|
|
328
|
+
this.visible = !0, this.fullScreen = !1, this.title = s ? this.$i18nt("gd.https.edit") : this.$i18nt("gd.https.add"), this.type = s ? 2 : 1, this.typeAdd == 2 && this.searchData(this.sys_teamid), s && this.getDetail(s.id);
|
|
285
329
|
},
|
|
286
|
-
getDetail(
|
|
287
|
-
|
|
288
|
-
id:
|
|
330
|
+
getDetail(s) {
|
|
331
|
+
s != "" && (this.dataList = [], k({
|
|
332
|
+
id: s
|
|
289
333
|
}).then((e) => {
|
|
290
334
|
if (e.code == 200) {
|
|
291
|
-
let
|
|
335
|
+
let t = e.data;
|
|
292
336
|
this.dataList.push({
|
|
293
|
-
id:
|
|
294
|
-
name:
|
|
337
|
+
id: t.sys_userid,
|
|
338
|
+
name: t.username
|
|
295
339
|
}), this.columnList.push({
|
|
296
|
-
id:
|
|
297
|
-
name:
|
|
340
|
+
id: t.sys_teamid,
|
|
341
|
+
name: t.teamname
|
|
298
342
|
});
|
|
299
343
|
let a = {
|
|
300
|
-
id:
|
|
301
|
-
sys_userid:
|
|
302
|
-
sys_teamid:
|
|
344
|
+
id: t.id,
|
|
345
|
+
sys_userid: t.sys_userid,
|
|
346
|
+
sys_teamid: t.sys_teamid
|
|
303
347
|
};
|
|
304
348
|
this.firstLoading = !0, this.firstLoading1 = !0, this.$nextTick(() => {
|
|
305
349
|
setTimeout(() => {
|
|
@@ -309,21 +353,21 @@ const F = {
|
|
|
309
353
|
}
|
|
310
354
|
}));
|
|
311
355
|
},
|
|
312
|
-
searchData(
|
|
313
|
-
this.columnList = [],
|
|
356
|
+
searchData(s) {
|
|
357
|
+
this.columnList = [], r({
|
|
314
358
|
fkEntityName: "sys_team",
|
|
315
|
-
id:
|
|
359
|
+
id: s
|
|
316
360
|
}).then((e) => {
|
|
317
|
-
e.code == 200 && (this.ruleFormData.sys_teamid =
|
|
361
|
+
e.code == 200 && (this.ruleFormData.sys_teamid = s, this.columnList = e.data.length > 0 ? e.data : []);
|
|
318
362
|
});
|
|
319
363
|
},
|
|
320
364
|
searchList() {
|
|
321
365
|
this.firstLoading || (this.adminClick(""), this.firstLoading = !0);
|
|
322
366
|
},
|
|
323
|
-
adminClick(
|
|
324
|
-
this.dataList = [], this.fetching = !0,
|
|
367
|
+
adminClick(s) {
|
|
368
|
+
this.dataList = [], this.fetching = !0, r({
|
|
325
369
|
fkEntityName: "sys_user",
|
|
326
|
-
name:
|
|
370
|
+
name: s
|
|
327
371
|
}).then((e) => {
|
|
328
372
|
e.code == 200 && (this.dataList = e.data);
|
|
329
373
|
});
|
|
@@ -331,28 +375,28 @@ const F = {
|
|
|
331
375
|
searchList1() {
|
|
332
376
|
this.firstLoading1 || (this.userClick(""), this.firstLoading1 = !0);
|
|
333
377
|
},
|
|
334
|
-
userClick(
|
|
335
|
-
this.columnList = [], this.fetching = !0,
|
|
378
|
+
userClick(s) {
|
|
379
|
+
this.columnList = [], this.fetching = !0, r({
|
|
336
380
|
fkEntityName: "sys_team",
|
|
337
|
-
name:
|
|
381
|
+
name: s
|
|
338
382
|
}).then((e) => {
|
|
339
383
|
e.code == 200 && (this.columnList = e.data);
|
|
340
384
|
});
|
|
341
385
|
},
|
|
342
386
|
handleSubmit() {
|
|
343
|
-
this.$refs.ruleForm.validate((
|
|
344
|
-
|
|
387
|
+
this.$refs.ruleForm.validate((s) => {
|
|
388
|
+
s && (this.type == 1 ? this.add(this.ruleFormData) : this.edit(this.ruleFormData));
|
|
345
389
|
});
|
|
346
390
|
},
|
|
347
|
-
add(
|
|
348
|
-
this.confirmLoading = !0, delete
|
|
391
|
+
add(s) {
|
|
392
|
+
this.confirmLoading = !0, delete s.id, b(s).then((e) => {
|
|
349
393
|
e.success ? (this.$message.success(this.$i18nt("gd.https.addSucc", "\u65B0\u589E\u6210\u529F")), this.$emit("ok"), this.handleCancel()) : this.$message.error(this.$i18nt("gd.https.addFail", "\u65B0\u589E\u5931\u8D25: ") + e.message);
|
|
350
394
|
}).finally((e) => {
|
|
351
395
|
this.confirmLoading = !1;
|
|
352
396
|
});
|
|
353
397
|
},
|
|
354
|
-
edit(
|
|
355
|
-
this.confirmLoading = !0,
|
|
398
|
+
edit(s) {
|
|
399
|
+
this.confirmLoading = !0, $(s).then((e) => {
|
|
356
400
|
e.success ? (this.$message.success(this.$i18nt("gd.https.editSucc", "\u7F16\u8F91\u6210\u529F")), this.$emit("ok"), this.handleCancel()) : this.$message.error(this.$i18nt("gd.https.editFail", "\u7F16\u8F91\u5931\u8D25: ") + e.message);
|
|
357
401
|
}).finally((e) => {
|
|
358
402
|
this.confirmLoading = !1;
|
|
@@ -364,51 +408,51 @@ const F = {
|
|
|
364
408
|
sys_teamid: ""
|
|
365
409
|
};
|
|
366
410
|
},
|
|
367
|
-
getDictionary(
|
|
368
|
-
return this.$options.filters.dictData(
|
|
411
|
+
getDictionary(s) {
|
|
412
|
+
return this.$options.filters.dictData(s);
|
|
369
413
|
},
|
|
370
414
|
toggleFullscreen() {
|
|
371
415
|
this.fullScreen = !this.fullScreen;
|
|
372
416
|
},
|
|
373
|
-
doEvent(
|
|
374
|
-
let e =
|
|
417
|
+
doEvent(s) {
|
|
418
|
+
let e = s.item.functionName;
|
|
375
419
|
this[e] && this[e]();
|
|
376
420
|
}
|
|
377
421
|
}
|
|
378
422
|
};
|
|
379
|
-
var
|
|
380
|
-
var e = this,
|
|
381
|
-
return
|
|
423
|
+
var S = function() {
|
|
424
|
+
var e = this, t = e._self._c;
|
|
425
|
+
return t("div", [t("el-dialog", { class: e.fullScreen ? "gd-dialog" : "gd-dialog gd-dialog-fangda", attrs: { width: e.width, visible: e.visible, fullscreen: e.fullScreen, footer: null, top: "80px", "modal-append-to-body": e.modalAppendToBody, "append-to-body": e.appendToBody, "close-on-click-modal": !1, "show-close": !1 }, on: { "update:visible": function(a) {
|
|
382
426
|
e.visible = a;
|
|
383
|
-
}, closed: e.handleCancel } }, [
|
|
427
|
+
}, closed: e.handleCancel } }, [t("gd-modal-title", { attrs: { slot: "title", title: e.title, fullscreen: e.fullScreen, buttons: e.sysViewButtons, confirmLoading: e.confirmLoading, showClose: !0, closed: "handleCancel" }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen }, slot: "title" }), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [t("div", { class: e.fullScreen ? "modal-bodyq" : "modal-body" }, [t("el-form", { ref: "ruleForm", attrs: { rules: e.rules, model: e.ruleFormData, "label-width": "100px" }, nativeOn: { submit: function(a) {
|
|
384
428
|
a.preventDefault();
|
|
385
|
-
} } }, [
|
|
429
|
+
} } }, [t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.team.member", "\u7528\u6237"), prop: "sys_userid" } }, [t("div", { staticClass: "cao_about" }, [t("el-select", { staticClass: "cao_input", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), "reserve-keyword": "", filterable: "", remote: "", clearable: "", "collapse-tags": !0, "remote-method": e.adminClick }, on: { focus: e.searchList }, model: { value: e.ruleFormData.sys_userid, callback: function(a) {
|
|
386
430
|
e.$set(e.ruleFormData, "sys_userid", a);
|
|
387
431
|
}, expression: "ruleFormData.sys_userid" } }, e._l(e.dataList, function(a, i) {
|
|
388
|
-
return
|
|
389
|
-
}), 1),
|
|
432
|
+
return t("el-option", { key: a.id + "&" + i, attrs: { label: a.name, value: a.id } });
|
|
433
|
+
}), 1), t("div", { staticClass: "cao_setting" }, [t("i", { staticClass: "el-input__icon el-icon-search", on: { click: function(a) {
|
|
390
434
|
return e.lookup(e.ruleFormData.sys_userid);
|
|
391
|
-
} } })])], 1)])], 1),
|
|
435
|
+
} } })])], 1)])], 1), t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.team.team", "\u56E2\u961F"), prop: "sys_teamid" } }, [t("div", { staticClass: "cao_about" }, [t("el-select", { staticClass: "cao_input", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), "reserve-keyword": "", filterable: "", remote: "", clearable: "", "collapse-tags": !0, disabled: e.disableds, "remote-method": e.userClick }, on: { focus: e.searchList1 }, model: { value: e.ruleFormData.sys_teamid, callback: function(a) {
|
|
392
436
|
e.$set(e.ruleFormData, "sys_teamid", a);
|
|
393
437
|
}, expression: "ruleFormData.sys_teamid" } }, e._l(e.columnList, function(a, i) {
|
|
394
|
-
return
|
|
395
|
-
}), 1),
|
|
438
|
+
return t("el-option", { key: a.id + "&" + i, attrs: { label: a.name, value: a.id } });
|
|
439
|
+
}), 1), t("div", { staticClass: "cao_setting" }, [t("i", { staticClass: "el-input__icon el-icon-search", on: { lookup: function(a) {
|
|
396
440
|
e.ruleFormData.sys_teamid;
|
|
397
|
-
} } })])], 1)])], 1)], 1)], 1)], 1)])], 1),
|
|
398
|
-
},
|
|
399
|
-
F,
|
|
400
|
-
L,
|
|
441
|
+
} } })])], 1)])], 1)], 1)], 1)], 1)])], 1), t("gd-search", { ref: "msgSearch", attrs: { appendToBody: !0 }, on: { lookupSeled: e.lookupSeled } })], 1);
|
|
442
|
+
}, C = [], D = /* @__PURE__ */ o(
|
|
401
443
|
T,
|
|
444
|
+
S,
|
|
445
|
+
C,
|
|
402
446
|
!1,
|
|
403
447
|
null,
|
|
404
448
|
"0613082f",
|
|
405
449
|
null,
|
|
406
450
|
null
|
|
407
451
|
);
|
|
408
|
-
const
|
|
409
|
-
const
|
|
452
|
+
const x = D.exports;
|
|
453
|
+
const B = {
|
|
410
454
|
name: "GdTeamMembers",
|
|
411
|
-
mixins: [
|
|
455
|
+
mixins: [m, L],
|
|
412
456
|
props: {
|
|
413
457
|
height: {
|
|
414
458
|
type: Number,
|
|
@@ -433,9 +477,10 @@ const S = {
|
|
|
433
477
|
selectedRowKeys: [],
|
|
434
478
|
selectedRows: [],
|
|
435
479
|
queryParam: {},
|
|
436
|
-
|
|
480
|
+
disabledRowId: [],
|
|
481
|
+
loadData: (s) => _(Object.assign(s, this.getQueryParam, {
|
|
437
482
|
SysTeamId: this.sys_teamid
|
|
438
|
-
})).then((e) => (
|
|
483
|
+
})).then((e) => (this.disabledRowId = e.data.rows.map((t) => t.sys_userid), e.data))
|
|
439
484
|
};
|
|
440
485
|
},
|
|
441
486
|
computed: {
|
|
@@ -443,38 +488,64 @@ const S = {
|
|
|
443
488
|
return this.height;
|
|
444
489
|
},
|
|
445
490
|
getQueryParam() {
|
|
446
|
-
|
|
491
|
+
console.log(this.queryParam);
|
|
492
|
+
let s = /* @__PURE__ */ new Map();
|
|
447
493
|
for (let e in this.queryParam)
|
|
448
494
|
if (this.queryParam[e] && (e === "msgStatus" || e === "sendType"))
|
|
449
|
-
|
|
495
|
+
s.set(e, this.queryParam[e].join(","));
|
|
450
496
|
else if (this.queryParam[e] && (e === "actualOn" || e === "createdTime" || e === "scheduledStartedOn")) {
|
|
451
497
|
if (this.queryParam[e].length > 0) {
|
|
452
|
-
let
|
|
453
|
-
|
|
498
|
+
let t = this.queryParam[e], a = t[0].split(" ")[0], i = t[1].split(" ")[0];
|
|
499
|
+
s.set(`${e}Start`, `${a} 00:00:00`), s.set(`${e}End`, `${i} 23:59:59`);
|
|
454
500
|
}
|
|
455
501
|
} else
|
|
456
|
-
|
|
457
|
-
return Object.fromEntries(
|
|
502
|
+
s.set(e, this.queryParam[e]);
|
|
503
|
+
return Object.fromEntries(s);
|
|
458
504
|
},
|
|
459
|
-
...
|
|
505
|
+
...c(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
|
|
460
506
|
},
|
|
461
507
|
components: {
|
|
462
|
-
editForm:
|
|
508
|
+
editForm: x
|
|
463
509
|
},
|
|
464
510
|
watch: {
|
|
465
|
-
type(
|
|
511
|
+
type(s, e) {
|
|
466
512
|
this.$refs.table && this.$refs.table.refresh();
|
|
467
513
|
},
|
|
468
|
-
sys_teamid(
|
|
514
|
+
sys_teamid(s, e) {
|
|
469
515
|
this.$refs.table && this.$refs.table.refresh();
|
|
470
516
|
}
|
|
471
517
|
},
|
|
472
518
|
methods: {
|
|
473
|
-
|
|
474
|
-
|
|
519
|
+
lookupSeled(s) {
|
|
520
|
+
if (s.fkData.length === 0) {
|
|
521
|
+
this.$refs.msgSearch.closed();
|
|
522
|
+
return;
|
|
523
|
+
}
|
|
524
|
+
console.log(s), setTimeout(() => {
|
|
525
|
+
this.$refs.msgSearch.confirmLoading = !0;
|
|
526
|
+
}, 1502);
|
|
527
|
+
let e = {
|
|
528
|
+
userIds: s.data,
|
|
529
|
+
sys_TeamId: this.sys_teamid
|
|
530
|
+
};
|
|
531
|
+
w(e).then((t) => {
|
|
532
|
+
t.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$refs.msgSearch.closed(), this.$refs.table.refresh()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + t.message), this.$refs.msgSearch.confirmLoading = !1;
|
|
533
|
+
});
|
|
534
|
+
},
|
|
535
|
+
lookup() {
|
|
536
|
+
let s = {
|
|
537
|
+
effectType: "participants",
|
|
538
|
+
fkEntityName: "sys_user",
|
|
539
|
+
isRelevance: !0,
|
|
540
|
+
val: []
|
|
541
|
+
};
|
|
542
|
+
this.$refs.msgSearch.open(s);
|
|
543
|
+
},
|
|
544
|
+
editForm(s) {
|
|
545
|
+
this.transKey = "gd.btn.edit", this.$refs.editForm.open(s);
|
|
475
546
|
},
|
|
476
547
|
add() {
|
|
477
|
-
this
|
|
548
|
+
this.lookup();
|
|
478
549
|
},
|
|
479
550
|
edit() {
|
|
480
551
|
if (this.selectedRowKeys.length === 0) {
|
|
@@ -492,10 +563,6 @@ const S = {
|
|
|
492
563
|
this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));
|
|
493
564
|
return;
|
|
494
565
|
}
|
|
495
|
-
if (this.selectedRowKeys.length > 1) {
|
|
496
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
497
|
-
return;
|
|
498
|
-
}
|
|
499
566
|
this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
500
567
|
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
501
568
|
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
@@ -508,29 +575,24 @@ const S = {
|
|
|
508
575
|
customClass: "custom-alert",
|
|
509
576
|
callback: () => {
|
|
510
577
|
},
|
|
511
|
-
beforeClose: (
|
|
512
|
-
this.delHand(
|
|
578
|
+
beforeClose: (s, e, t) => {
|
|
579
|
+
this.delHand(s, e, t);
|
|
513
580
|
}
|
|
514
581
|
});
|
|
515
582
|
},
|
|
516
|
-
delHand(
|
|
517
|
-
if (
|
|
518
|
-
|
|
583
|
+
delHand(s, e, t) {
|
|
584
|
+
if (s !== "confirm") {
|
|
585
|
+
t();
|
|
519
586
|
return;
|
|
520
587
|
}
|
|
521
|
-
let a = [];
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
}).then((r) => r);
|
|
526
|
-
a.push(n);
|
|
527
|
-
}), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(a).then((i) => {
|
|
528
|
-
const n = i.filter((r) => !r.success);
|
|
529
|
-
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), s(), this.refresh(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
|
|
588
|
+
let a = [], i = v({ memberIds: this.selectedRowKeys }).then((n) => n);
|
|
589
|
+
a.push(i), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(a).then((n) => {
|
|
590
|
+
const l = n.filter((u) => !u.success);
|
|
591
|
+
l.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") + l[0].message), t(), this.refresh(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
|
|
530
592
|
});
|
|
531
593
|
},
|
|
532
|
-
onSelectChange(
|
|
533
|
-
this.selectedRowKeys =
|
|
594
|
+
onSelectChange(s, e) {
|
|
595
|
+
this.selectedRowKeys = s, this.selectedRows = e;
|
|
534
596
|
},
|
|
535
597
|
handleOk() {
|
|
536
598
|
this.refresh();
|
|
@@ -538,37 +600,49 @@ const S = {
|
|
|
538
600
|
refresh() {
|
|
539
601
|
this.$refs.table.refresh();
|
|
540
602
|
},
|
|
541
|
-
dictSwitch(
|
|
542
|
-
let
|
|
543
|
-
return
|
|
603
|
+
dictSwitch(s, e) {
|
|
604
|
+
let t = this.$options.filters.dictData(e).filter((a) => a.code == s)[0];
|
|
605
|
+
return t != null && t.colour ? t.colour : null;
|
|
544
606
|
},
|
|
545
|
-
doEvent(
|
|
546
|
-
let e =
|
|
607
|
+
doEvent(s) {
|
|
608
|
+
let e = s.item.functionName;
|
|
547
609
|
this[e] && this[e]();
|
|
548
610
|
}
|
|
549
611
|
}
|
|
550
612
|
};
|
|
551
|
-
var
|
|
552
|
-
var e = this,
|
|
553
|
-
return
|
|
554
|
-
return [
|
|
613
|
+
var K = function() {
|
|
614
|
+
var e = this, t = e._self._c;
|
|
615
|
+
return t("div", { staticClass: "gd-page-view" }, [t("div", { staticClass: "page-view-list", staticStyle: { padding: "12px 0" } }, [t("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, filtering: !1 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
|
|
616
|
+
return [t("div", { staticClass: "gd-table-operator" }, [t("div", { staticClass: "gd-table-operatorl" }, [t("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), clearable: "" }, nativeOn: { keyup: function(a) {
|
|
617
|
+
return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.refresh.apply(null, arguments);
|
|
618
|
+
} }, model: { value: e.queryParam.searchValue, callback: function(a) {
|
|
619
|
+
e.$set(e.queryParam, "searchValue", a);
|
|
620
|
+
}, expression: "queryParam.searchValue" } }), t("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [t("i", { staticClass: "el-input__icon el-icon-search" })])], 1), t("div", { staticClass: "gd-table-operatorr" }, [t("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
|
|
555
621
|
}, proxy: !0 }, { key: "sys_teamid", fn: function({ column: a, row: i }) {
|
|
556
|
-
return [
|
|
622
|
+
return [t("gd-tooltip", { attrs: { rowKey: "teamname", row: i, highlight: "" }, on: { click: e.editForm } })];
|
|
557
623
|
} }, { key: "sys_userid", fn: function({ column: a, row: i }) {
|
|
558
|
-
return [i.sys_userid ?
|
|
559
|
-
} }
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
624
|
+
return [i.sys_userid ? t("span", [e._v(" " + e._s(i.username) + " ")]) : e._e()];
|
|
625
|
+
} }, { key: "account", fn: function({ column: a, row: i }) {
|
|
626
|
+
return [i.account ? t("span", [e._v(" " + e._s(i.account) + " ")]) : e._e()];
|
|
627
|
+
} }, { key: "phone", fn: function({ column: a, row: i }) {
|
|
628
|
+
return [i.phone ? t("span", [e._v(" " + e._s(i.phone) + " ")]) : e._e()];
|
|
629
|
+
} }, { key: "email", fn: function({ column: a, row: i }) {
|
|
630
|
+
return [i.email ? t("span", [e._v(" " + e._s(i.email) + " ")]) : e._e()];
|
|
631
|
+
} }, { key: "employeeid", fn: function({ column: a, row: i }) {
|
|
632
|
+
return [i.employeeid ? t("span", [e._v(" " + e._s(i.employeeid) + " ")]) : e._e()];
|
|
633
|
+
} }]) })], 1), t("gd-search", { ref: "msgSearch", attrs: { disabledRowId: e.disabledRowId, appendToBody: !0 }, on: { lookupSeled: e.lookupSeled } }), t("editForm", { ref: "editForm", attrs: { openPermissions: !0, sys_teamid: e.sys_teamid, typeAdd: e.type, openMode: e.openMode }, on: { ok: e.handleOk } })], 1);
|
|
634
|
+
}, N = [], P = /* @__PURE__ */ o(
|
|
563
635
|
B,
|
|
636
|
+
K,
|
|
637
|
+
N,
|
|
564
638
|
!1,
|
|
565
639
|
null,
|
|
566
|
-
"
|
|
640
|
+
"ada89e79",
|
|
567
641
|
null,
|
|
568
642
|
null
|
|
569
643
|
);
|
|
570
|
-
const
|
|
571
|
-
const
|
|
644
|
+
const R = P.exports;
|
|
645
|
+
const E = {
|
|
572
646
|
props: {
|
|
573
647
|
modalAppendToBody: {
|
|
574
648
|
type: Boolean,
|
|
@@ -628,87 +702,87 @@ const P = {
|
|
|
628
702
|
}
|
|
629
703
|
},
|
|
630
704
|
components: {
|
|
631
|
-
teamMemberDetail:
|
|
705
|
+
teamMemberDetail: R
|
|
632
706
|
},
|
|
633
707
|
methods: {
|
|
634
|
-
lookupSeled(
|
|
635
|
-
this.dataList = [...
|
|
708
|
+
lookupSeled(s) {
|
|
709
|
+
this.dataList = [...s.fkData], this.$set(this.ruleFormData, "administratorid", s.data[0]);
|
|
636
710
|
},
|
|
637
|
-
lookup(
|
|
711
|
+
lookup(s) {
|
|
638
712
|
let e = {
|
|
639
713
|
effectType: "fk",
|
|
640
714
|
fkEntityName: "sys_user",
|
|
641
|
-
val:
|
|
715
|
+
val: s || []
|
|
642
716
|
};
|
|
643
717
|
this.$refs.msgSearch.open(e);
|
|
644
718
|
},
|
|
645
|
-
open(
|
|
646
|
-
this.visible = !0, this.fullScreen = !1, this.type =
|
|
719
|
+
open(s) {
|
|
720
|
+
this.visible = !0, this.fullScreen = !1, this.type = s ? 2 : 1, this.ruleFormData.id = s ? s.id : "", s && this.getDetail(s.id);
|
|
647
721
|
},
|
|
648
|
-
getDetail(
|
|
649
|
-
|
|
650
|
-
id:
|
|
722
|
+
getDetail(s) {
|
|
723
|
+
s != "" && (this.dataList = [], y({
|
|
724
|
+
id: s
|
|
651
725
|
}).then((e) => {
|
|
652
726
|
if (e.code == 200) {
|
|
653
|
-
let
|
|
727
|
+
let t = e.data;
|
|
654
728
|
this.dataList.push({
|
|
655
|
-
id:
|
|
656
|
-
name:
|
|
729
|
+
id: t.administratorid,
|
|
730
|
+
name: t.administratorname
|
|
657
731
|
}), this.columnList.push({
|
|
658
|
-
id:
|
|
659
|
-
name:
|
|
732
|
+
id: t.ownerid,
|
|
733
|
+
name: t.ownername
|
|
660
734
|
});
|
|
661
735
|
let a = {
|
|
662
|
-
id:
|
|
663
|
-
name:
|
|
664
|
-
teamtype:
|
|
665
|
-
description:
|
|
666
|
-
administratorid:
|
|
736
|
+
id: t.id,
|
|
737
|
+
name: t.name,
|
|
738
|
+
teamtype: t.teamtype ? t.teamtype.toString() : "",
|
|
739
|
+
description: t.description,
|
|
740
|
+
administratorid: t.administratorid
|
|
667
741
|
};
|
|
668
742
|
this.firstLoading = !0, this.$nextTick(() => {
|
|
669
743
|
setTimeout(() => {
|
|
670
|
-
this.ruleFormData = a, this.ownerid =
|
|
744
|
+
this.ruleFormData = a, this.ownerid = t.ownerid;
|
|
671
745
|
}, 0);
|
|
672
746
|
});
|
|
673
747
|
}
|
|
674
748
|
}));
|
|
675
749
|
},
|
|
676
|
-
searchData(
|
|
677
|
-
this.dataList = [],
|
|
750
|
+
searchData(s) {
|
|
751
|
+
this.dataList = [], r({
|
|
678
752
|
fkEntityName: "sys_user",
|
|
679
|
-
id:
|
|
753
|
+
id: s.administratorid
|
|
680
754
|
}).then((e) => {
|
|
681
755
|
e.code == 200 && (this.firstLoading = !0, e.data.length > 0 ? this.dataList = e.data : this.dataList.push({
|
|
682
|
-
id:
|
|
683
|
-
name:
|
|
756
|
+
id: s.administratorid,
|
|
757
|
+
name: s.administratorname
|
|
684
758
|
}));
|
|
685
759
|
});
|
|
686
760
|
},
|
|
687
761
|
searchList() {
|
|
688
762
|
this.firstLoading || (this.adminClick(""), this.firstLoading = !0);
|
|
689
763
|
},
|
|
690
|
-
adminClick(
|
|
691
|
-
this.dataList = [], this.fetching = !0,
|
|
764
|
+
adminClick(s) {
|
|
765
|
+
this.dataList = [], this.fetching = !0, r({
|
|
692
766
|
fkEntityName: "sys_user",
|
|
693
|
-
name:
|
|
767
|
+
name: s
|
|
694
768
|
}).then((e) => {
|
|
695
769
|
e.code == 200 && (this.dataList = e.data);
|
|
696
770
|
});
|
|
697
771
|
},
|
|
698
772
|
handleSubmit() {
|
|
699
|
-
this.$refs.ruleForm.validate((
|
|
700
|
-
|
|
773
|
+
this.$refs.ruleForm.validate((s) => {
|
|
774
|
+
s && (console.log(this.type), this.type == 1 ? this.add(this.ruleFormData) : this.edit(this.ruleFormData));
|
|
701
775
|
});
|
|
702
776
|
},
|
|
703
|
-
add(
|
|
704
|
-
this.confirmLoading = !0, delete
|
|
777
|
+
add(s) {
|
|
778
|
+
this.confirmLoading = !0, delete s.id, p(s).then((e) => {
|
|
705
779
|
e.success ? (this.$message.success(this.$i18nt("gd.https.addSucc", "\u65B0\u589E\u6210\u529F")), this.$emit("ok"), this.ruleFormData.id = e.data, this.type = 2, this.getDetail(e.data)) : this.$message.error(this.$i18nt("gd.https.addFail", "\u65B0\u589E\u5931\u8D25: ") + e.message);
|
|
706
780
|
}).finally((e) => {
|
|
707
781
|
this.confirmLoading = !1;
|
|
708
782
|
});
|
|
709
783
|
},
|
|
710
|
-
edit(
|
|
711
|
-
this.confirmLoading = !0, f(
|
|
784
|
+
edit(s) {
|
|
785
|
+
this.confirmLoading = !0, f(s).then((e) => {
|
|
712
786
|
e.success ? (this.$message.success(this.$i18nt("gd.https.editSucc", "\u7F16\u8F91\u6210\u529F")), this.$emit("ok"), this.handleCancel()) : this.$message.error(this.$i18nt("gd.https.editFail", "\u7F16\u8F91\u5931\u8D25: ") + e.message);
|
|
713
787
|
}).finally((e) => {
|
|
714
788
|
this.confirmLoading = !1;
|
|
@@ -723,57 +797,57 @@ const P = {
|
|
|
723
797
|
description: ""
|
|
724
798
|
}, this.ownerid = "", this.type = 1;
|
|
725
799
|
},
|
|
726
|
-
getDictionary(
|
|
727
|
-
return this.$options.filters.dictData(
|
|
800
|
+
getDictionary(s) {
|
|
801
|
+
return this.$options.filters.dictData(s);
|
|
728
802
|
},
|
|
729
803
|
toggleFullscreen() {
|
|
730
804
|
this.fullScreen = !this.fullScreen;
|
|
731
805
|
},
|
|
732
|
-
doEvent(
|
|
733
|
-
let e =
|
|
806
|
+
doEvent(s) {
|
|
807
|
+
let e = s.item.functionName;
|
|
734
808
|
this[e] && this[e]();
|
|
735
809
|
}
|
|
736
810
|
}
|
|
737
811
|
};
|
|
738
|
-
var
|
|
739
|
-
var e = this,
|
|
740
|
-
return
|
|
812
|
+
var q = function() {
|
|
813
|
+
var e = this, t = e._self._c;
|
|
814
|
+
return t("div", [t("el-dialog", { class: e.fullScreen ? "gd-dialog" : "gd-dialog gd-dialog-fangda", attrs: { width: e.width, visible: e.visible, fullscreen: e.fullScreen, footer: null, top: "80px", "modal-append-to-body": e.modalAppendToBody, "append-to-body": e.appendToBody, "close-on-click-modal": !1, "show-close": !1 }, on: { "update:visible": function(a) {
|
|
741
815
|
e.visible = a;
|
|
742
|
-
}, closed: e.handleCancel } }, [
|
|
816
|
+
}, closed: e.handleCancel } }, [t("gd-modal-title", { attrs: { slot: "title", title: e.title, fullscreen: e.fullScreen, buttons: e.sysViewButtons, confirmLoading: e.confirmLoading, showClose: !0, closed: "handleCancel" }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen }, slot: "title" }), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [t("div", { class: e.fullScreen ? "modal-bodyq" : "modal-body" }, [t("el-form", { ref: "ruleForm", attrs: { rules: e.rules, model: e.ruleFormData, "label-width": "100px" }, nativeOn: { submit: function(a) {
|
|
743
817
|
a.preventDefault();
|
|
744
|
-
} } }, [
|
|
818
|
+
} } }, [t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.team.name", "\u540D\u79F0"), prop: "name" } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleFormData.name, callback: function(a) {
|
|
745
819
|
e.$set(e.ruleFormData, "name", a);
|
|
746
|
-
}, expression: "ruleFormData.name" } })], 1)], 1),
|
|
820
|
+
}, expression: "ruleFormData.name" } })], 1)], 1), t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.team.teamtype", "\u56E2\u961F\u7C7B\u578B"), prop: "teamtype" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { disabled: "", placeholder: e.$i18nt("gd.placeholder.select"), clearable: "" }, model: { value: e.ruleFormData.teamtype, callback: function(a) {
|
|
747
821
|
e.$set(e.ruleFormData, "teamtype", a);
|
|
748
822
|
}, expression: "ruleFormData.teamtype" } }, e._l(e.getDictionary("teamtype"), function(a, i) {
|
|
749
|
-
return
|
|
750
|
-
}), 1)], 1)], 1)], 1),
|
|
823
|
+
return t("el-option", { key: i, attrs: { value: a.code, label: e.$i18nt(`Dynamics.${a.transkey}`, a.name) } });
|
|
824
|
+
}), 1)], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.team.amdmin", "\u7BA1\u7406\u5458"), prop: "administratorid" } }, [t("div", { staticClass: "cao_about" }, [t("el-select", { staticClass: "cao_input", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), "reserve-keyword": "", filterable: "", remote: "", clearable: "", "collapse-tags": !0, "remote-method": e.adminClick }, on: { focus: e.searchList }, model: { value: e.ruleFormData.administratorid, callback: function(a) {
|
|
751
825
|
e.$set(e.ruleFormData, "administratorid", a);
|
|
752
826
|
}, expression: "ruleFormData.administratorid" } }, e._l(e.dataList, function(a, i) {
|
|
753
|
-
return
|
|
754
|
-
}), 1),
|
|
827
|
+
return t("el-option", { key: a.id + "&" + i, attrs: { label: a.name, value: a.id } });
|
|
828
|
+
}), 1), t("div", { staticClass: "cao_setting" }, [t("i", { staticClass: "el-input__icon el-icon-search", on: { click: function(a) {
|
|
755
829
|
return e.lookup(e.ruleFormData.administratorid);
|
|
756
|
-
} } })])], 1)])], 1),
|
|
830
|
+
} } })])], 1)])], 1), t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.team.owner", "\u8D1F\u8D23\u4EBA") } }, [t("div", { staticClass: "cao_about" }, [t("el-select", { staticClass: "cao_input", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), "reserve-keyword": "", filterable: "", remote: "", clearable: "", "collapse-tags": !0, disabled: "" }, model: { value: e.ownerid, callback: function(a) {
|
|
757
831
|
e.ownerid = a;
|
|
758
832
|
}, expression: "ownerid" } }, e._l(e.columnList, function(a, i) {
|
|
759
|
-
return
|
|
760
|
-
}), 1),
|
|
833
|
+
return t("el-option", { key: i, attrs: { label: a.name, value: a.id } });
|
|
834
|
+
}), 1), t("div", { staticClass: "cao_setting" }, [t("i", { staticClass: "el-input__icon el-icon-search cao_setting-disabled" })])], 1)])], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.team.describe", "\u63CF\u8FF0"), prop: "description" } }, [t("el-input", { attrs: { type: "textarea", rows: 4, placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleFormData.description, callback: function(a) {
|
|
761
835
|
e.$set(e.ruleFormData, "description", a);
|
|
762
|
-
}, expression: "ruleFormData.description" } })], 1)], 1)], 1)], 1)], 1), e.detailShow ?
|
|
763
|
-
},
|
|
764
|
-
P,
|
|
765
|
-
R,
|
|
836
|
+
}, expression: "ruleFormData.description" } })], 1)], 1)], 1)], 1)], 1), e.detailShow ? t("el-card", { attrs: { shadow: "never" } }, [t("div", [e._v(e._s(e.$i18nt("gd.team.teamMember", "\u56E2\u961F\u6210\u5458")))]), t("teamMemberDetail", { attrs: { sys_teamid: Number(e.ruleFormData.id), type: e.type, openMode: 2, height: 200 } })], 1) : e._e()], 1)], 1), t("gd-search", { ref: "msgSearch", attrs: { appendToBody: !0 }, on: { lookupSeled: e.lookupSeled } })], 1);
|
|
837
|
+
}, O = [], M = /* @__PURE__ */ o(
|
|
766
838
|
E,
|
|
839
|
+
q,
|
|
840
|
+
O,
|
|
767
841
|
!1,
|
|
768
842
|
null,
|
|
769
843
|
"837be327",
|
|
770
844
|
null,
|
|
771
845
|
null
|
|
772
846
|
);
|
|
773
|
-
const
|
|
774
|
-
const
|
|
847
|
+
const z = M.exports;
|
|
848
|
+
const V = {
|
|
775
849
|
name: "GdTeam",
|
|
776
|
-
mixins: [
|
|
850
|
+
mixins: [m, F],
|
|
777
851
|
props: {
|
|
778
852
|
height: {
|
|
779
853
|
type: Number,
|
|
@@ -786,35 +860,35 @@ const M = {
|
|
|
786
860
|
selectedRowKeys: [],
|
|
787
861
|
selectedRows: [],
|
|
788
862
|
queryParam: {},
|
|
789
|
-
loadData: (
|
|
863
|
+
loadData: (s) => h(Object.assign(s, this.getQueryParam)).then((e) => e.data)
|
|
790
864
|
};
|
|
791
865
|
},
|
|
792
866
|
components: {
|
|
793
|
-
editForm:
|
|
867
|
+
editForm: z
|
|
794
868
|
},
|
|
795
869
|
computed: {
|
|
796
870
|
getHeight() {
|
|
797
871
|
return this.height;
|
|
798
872
|
},
|
|
799
873
|
getQueryParam() {
|
|
800
|
-
let
|
|
874
|
+
let s = /* @__PURE__ */ new Map();
|
|
801
875
|
for (let e in this.queryParam)
|
|
802
876
|
if (this.queryParam[e] && (e === "msgStatus" || e === "sendType"))
|
|
803
|
-
|
|
877
|
+
s.set(e, this.queryParam[e].join(","));
|
|
804
878
|
else if (this.queryParam[e] && (e === "actualOn" || e === "createdTime" || e === "scheduledStartedOn")) {
|
|
805
879
|
if (this.queryParam[e].length > 0) {
|
|
806
|
-
let
|
|
807
|
-
|
|
880
|
+
let t = this.queryParam[e], a = t[0].split(" ")[0], i = t[1].split(" ")[0];
|
|
881
|
+
s.set(`${e}Start`, `${a} 00:00:00`), s.set(`${e}End`, `${i} 23:59:59`);
|
|
808
882
|
}
|
|
809
883
|
} else
|
|
810
|
-
|
|
811
|
-
return Object.fromEntries(
|
|
884
|
+
s.set(e, this.queryParam[e]);
|
|
885
|
+
return Object.fromEntries(s);
|
|
812
886
|
},
|
|
813
|
-
...
|
|
887
|
+
...c(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
|
|
814
888
|
},
|
|
815
889
|
methods: {
|
|
816
|
-
editForm(
|
|
817
|
-
this.transKey = "gd.btn.edit", this.$refs.editForm.open(
|
|
890
|
+
editForm(s) {
|
|
891
|
+
this.transKey = "gd.btn.edit", this.$refs.editForm.open(s);
|
|
818
892
|
},
|
|
819
893
|
add() {
|
|
820
894
|
this.$refs.editForm.open();
|
|
@@ -851,29 +925,29 @@ const M = {
|
|
|
851
925
|
customClass: "custom-alert",
|
|
852
926
|
callback: () => {
|
|
853
927
|
},
|
|
854
|
-
beforeClose: (
|
|
855
|
-
this.delHand(
|
|
928
|
+
beforeClose: (s, e, t) => {
|
|
929
|
+
this.delHand(s, e, t);
|
|
856
930
|
}
|
|
857
931
|
});
|
|
858
932
|
},
|
|
859
|
-
delHand(
|
|
860
|
-
if (
|
|
861
|
-
|
|
933
|
+
delHand(s, e, t) {
|
|
934
|
+
if (s !== "confirm") {
|
|
935
|
+
t();
|
|
862
936
|
return;
|
|
863
937
|
}
|
|
864
938
|
let a = [];
|
|
865
939
|
this.selectedRows.forEach((i) => {
|
|
866
|
-
let n =
|
|
940
|
+
let n = g({
|
|
867
941
|
id: i.id
|
|
868
|
-
}).then((
|
|
942
|
+
}).then((l) => l);
|
|
869
943
|
a.push(n);
|
|
870
944
|
}), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(a).then((i) => {
|
|
871
|
-
const n = i.filter((
|
|
872
|
-
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),
|
|
945
|
+
const n = i.filter((l) => !l.success);
|
|
946
|
+
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), t(), this.refresh(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
|
|
873
947
|
});
|
|
874
948
|
},
|
|
875
|
-
onSelectChange(
|
|
876
|
-
this.selectedRowKeys =
|
|
949
|
+
onSelectChange(s, e) {
|
|
950
|
+
this.selectedRowKeys = s, this.selectedRows = e;
|
|
877
951
|
},
|
|
878
952
|
handleOk() {
|
|
879
953
|
this.refresh();
|
|
@@ -881,46 +955,46 @@ const M = {
|
|
|
881
955
|
refresh() {
|
|
882
956
|
this.$refs.table.refresh();
|
|
883
957
|
},
|
|
884
|
-
dictSwitch(
|
|
885
|
-
let
|
|
886
|
-
return
|
|
958
|
+
dictSwitch(s, e) {
|
|
959
|
+
let t = this.$options.filters.dictData(e).filter((a) => a.code == s)[0];
|
|
960
|
+
return t != null && t.colour ? t.colour : null;
|
|
887
961
|
},
|
|
888
|
-
doEvent(
|
|
889
|
-
let e =
|
|
962
|
+
doEvent(s) {
|
|
963
|
+
let e = s.item.functionName;
|
|
890
964
|
this[e] && this[e]();
|
|
891
965
|
}
|
|
892
966
|
}
|
|
893
967
|
};
|
|
894
|
-
var
|
|
895
|
-
var e = this,
|
|
896
|
-
return
|
|
897
|
-
return [
|
|
968
|
+
var A = function() {
|
|
969
|
+
var e = this, t = e._self._c;
|
|
970
|
+
return t("div", { staticClass: "gd-page-view" }, [t("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [t("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, filtering: !1 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
|
|
971
|
+
return [t("div", { staticClass: "gd-table-operator" }, [t("div", { staticClass: "gd-table-operatorr" }, [t("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
|
|
898
972
|
}, proxy: !0 }, { key: "name", fn: function({ column: a, row: i }) {
|
|
899
|
-
return [
|
|
973
|
+
return [t("gd-tooltip", { attrs: { rowKey: "name", row: i, highlight: "" }, on: { click: e.editForm } })];
|
|
900
974
|
} }, { key: "administratorid", fn: function({ column: a, row: i }) {
|
|
901
|
-
return [i.administratorname ?
|
|
975
|
+
return [i.administratorname ? t("span", [e._v(" " + e._s(i.administratorname) + " ")]) : e._e()];
|
|
902
976
|
} }, { key: "teamtype", fn: function(a) {
|
|
903
|
-
return [e.dictSwitch(a.row.teamtype, "teamtype") ?
|
|
904
|
-
} }]) })], 1),
|
|
905
|
-
},
|
|
906
|
-
|
|
907
|
-
z,
|
|
977
|
+
return [e.dictSwitch(a.row.teamtype, "teamtype") ? t("el-tag", { style: e._f("dictColor")("teamtype", a.row.teamtype), attrs: { effect: "dark" } }, [e._v(" " + e._s(e._f("dictType")("teamtype", a.row.teamtype)) + " ")]) : t("span", [e._v(e._s(e._f("dictType")("teamtype", a.row.teamtype)))])];
|
|
978
|
+
} }]) })], 1), t("editForm", { ref: "editForm", attrs: { openPermissions: !0 }, on: { ok: e.handleOk } })], 1);
|
|
979
|
+
}, H = [], I = /* @__PURE__ */ o(
|
|
980
|
+
V,
|
|
908
981
|
A,
|
|
982
|
+
H,
|
|
909
983
|
!1,
|
|
910
984
|
null,
|
|
911
985
|
"f62d65e6",
|
|
912
986
|
null,
|
|
913
987
|
null
|
|
914
988
|
);
|
|
915
|
-
const d =
|
|
916
|
-
d.install = function(
|
|
917
|
-
|
|
989
|
+
const d = I.exports;
|
|
990
|
+
d.install = function(s) {
|
|
991
|
+
s.component(d.name, d);
|
|
918
992
|
};
|
|
919
993
|
export {
|
|
920
994
|
d as G,
|
|
921
|
-
|
|
922
|
-
b,
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
995
|
+
b as a,
|
|
996
|
+
$ as b,
|
|
997
|
+
_ as c,
|
|
998
|
+
v as d,
|
|
999
|
+
k as s
|
|
926
1000
|
};
|