gds-plus-design-vue 1.2.4 → 1.2.5
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.5eded588.js → chartbi.b5b6fdab.js} +1 -1
- package/lib/{chartbi.c3bc6adb.mjs → chartbi.b6818e8e.mjs} +3 -2
- package/lib/gd-initial.js +14 -14
- package/lib/gd-initial.mjs +3614 -2814
- package/lib/{main.00e2ba37.mjs → main.4e325110.mjs} +3 -3
- package/lib/main.6713b76c.js +1 -0
- package/lib/{main.b4ad6d81.mjs → main.955f770e.mjs} +16 -13
- package/lib/main.a28f67df.js +1 -0
- package/lib/{main.7e1495ec.js → main.b4a303dc.js} +1 -1
- package/lib/{main.b25a9b4c.mjs → main.be62e9a4.mjs} +12 -34
- package/lib/{main.55fab1ce.mjs → main.c59fc1e8.mjs} +7 -7
- package/lib/{main.a27e1e54.js → main.f3ae0933.js} +1 -1
- package/lib/messages.1346558e.js +9 -0
- package/lib/{messages.bc3bc0e8.mjs → messages.7e418640.mjs} +1095 -1065
- package/lib/style.css +3 -3
- package/lib/{system.account.868f96f9.mjs → system.account.64fbdaeb.mjs} +2 -2
- package/lib/{system.account.e82580de.js → system.account.7c43a95e.js} +1 -1
- package/lib/system.config.93d6cb7d.js +1 -0
- package/lib/{system.config.71615d2b.mjs → system.config.f0d2d130.mjs} +7 -2
- package/lib/{system.datasource.523ae242.js → system.datasource.4bb39222.js} +1 -1
- package/lib/{system.datasource.009a1673.mjs → system.datasource.61ff56ec.mjs} +3 -3
- package/lib/{system.dict.0111a3bc.js → system.dict.5a2e60fe.js} +1 -1
- package/lib/{system.dict.8f562e89.mjs → system.dict.a817cf68.mjs} +2 -2
- package/lib/{system.duplicatechecking.1865e065.js → system.duplicatechecking.65b77e64.js} +1 -1
- package/lib/{system.duplicatechecking.f517abed.mjs → system.duplicatechecking.751664ba.mjs} +15 -11
- package/lib/{system.email.4c484530.mjs → system.email.2f53252e.mjs} +2 -2
- package/lib/{system.email.70351605.js → system.email.fec5ae26.js} +1 -1
- package/lib/{system.fieldsecurity.9f9f73df.mjs → system.fieldsecurity.6feb94c3.mjs} +1 -1
- package/lib/{system.fieldsecurity.d11088e3.js → system.fieldsecurity.920adca4.js} +1 -1
- package/lib/{system.file.96b3ce1e.mjs → system.file.1930d109.mjs} +11 -6
- package/lib/system.file.5a9a5e0e.js +1 -0
- package/lib/{system.log.80feb1c4.mjs → system.log.61d303bd.mjs} +64 -81
- package/lib/system.log.b309c0e0.js +1 -0
- package/lib/{system.machine.6e46b7a3.js → system.machine.9368e508.js} +1 -1
- package/lib/{system.machine.52e8a4f3.mjs → system.machine.ed69ec93.mjs} +1 -1
- package/lib/{system.notice.b4247147.mjs → system.notice.bd18554e.mjs} +13 -10
- package/lib/system.notice.ff62c06a.js +1 -0
- package/lib/{system.noticereceived.eef2cf6e.mjs → system.noticereceived.4dc360c0.mjs} +31 -29
- package/lib/system.noticereceived.9550818b.js +1 -0
- package/lib/{system.onlineuser.de5f62bf.mjs → system.onlineuser.08a15a71.mjs} +22 -15
- package/lib/system.onlineuser.6cf4fe24.js +1 -0
- package/lib/{system.org.d22168d6.js → system.org.0c67131d.js} +1 -1
- package/lib/{system.org.94393315.mjs → system.org.6e858bf3.mjs} +3 -3
- package/lib/{system.permissions.3c5c3573.js → system.permissions.af548a3b.js} +1 -1
- package/lib/{system.permissions.ccbe352d.mjs → system.permissions.cc5ac7ac.mjs} +3 -3
- package/lib/{system.plugin.5d47e679.js → system.plugin.83d03fb2.js} +1 -1
- package/lib/{system.plugin.8caa5d1f.mjs → system.plugin.a1f1c194.mjs} +2 -2
- package/lib/{system.pos.caaef4fc.js → system.pos.eae2051e.js} +1 -1
- package/lib/{system.pos.e4be69c4.mjs → system.pos.eb8fd7dd.mjs} +2 -2
- package/lib/{system.promptmanagement.e73f64a2.js → system.promptmanagement.04501417.js} +1 -1
- package/lib/{system.promptmanagement.1ad89863.mjs → system.promptmanagement.c84db7d5.mjs} +7 -7
- package/lib/{system.role.0323ddd5.mjs → system.role.d2195303.mjs} +49 -48
- package/lib/system.role.e623c50b.js +1 -0
- package/lib/{system.sumberrules.42965c1e.mjs → system.sumberrules.141dc00b.mjs} +2 -2
- package/lib/{system.sumberrules.2babdd81.js → system.sumberrules.a01e1805.js} +1 -1
- package/lib/system.team.0cebcde7.js +1 -0
- package/lib/{system.team.28168433.mjs → system.team.27a6d5d5.mjs} +289 -246
- package/lib/system.teammembers.b67f003f.js +1 -0
- package/lib/{system.teammembers.08f3ce38.mjs → system.teammembers.d73c659f.mjs} +78 -40
- package/lib/{system.timers.040b9bce.mjs → system.timers.4a3dd57d.mjs} +2 -2
- package/lib/{system.timers.310b3710.js → system.timers.b27fcb6d.js} +1 -1
- package/lib/{system.translation.a4396166.js → system.translation.d2c982ed.js} +1 -1
- package/lib/{system.translation.c0068d8f.mjs → system.translation.d9488c23.mjs} +7 -7
- package/lib/{system.user.20a5e7b4.js → system.user.0664c21c.js} +5 -5
- package/lib/{system.user.84e77277.mjs → system.user.6874aa87.mjs} +101 -69
- package/lib/{system.useraffiliation.fb961d98.mjs → system.useraffiliation.5e3e2bab.mjs} +3 -3
- package/lib/{system.useraffiliation.307e3cd7.js → system.useraffiliation.6b7a1612.js} +1 -1
- package/lib/{system.webresource.2d0ab7a6.mjs → system.webresource.204911b7.mjs} +16 -18
- package/lib/system.webresource.5de18052.js +1 -0
- package/lib/{system.welcome.aaac4a40.mjs → system.welcome.79e15015.mjs} +1 -1
- package/lib/{system.welcome.67d20fa4.js → system.welcome.ec7aa744.js} +1 -1
- package/locale/en_US.js +25 -3
- package/locale/id_ID.js +25 -3
- package/locale/vi_VN.js +1967 -1945
- package/locale/zh_CN.js +26 -4
- package/package.json +1 -1
- package/lib/main.9c85b10c.js +0 -1
- package/lib/main.a794f7cf.js +0 -1
- package/lib/messages.fa3d97b5.js +0 -9
- package/lib/system.config.6aae9ea6.js +0 -1
- package/lib/system.file.001a01bc.js +0 -1
- package/lib/system.log.f7afb251.js +0 -1
- package/lib/system.notice.365ddd35.js +0 -1
- package/lib/system.noticereceived.5545acf8.js +0 -1
- package/lib/system.onlineuser.fd9fdc66.js +0 -1
- package/lib/system.role.b5b55ddd.js +0 -1
- package/lib/system.team.a3527834.js +0 -1
- package/lib/system.teammembers.4b11e49b.js +0 -1
- package/lib/system.webresource.0382b6b1.js +0 -1
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
import { n as o, m as c } from "./chartbi.
|
|
2
|
-
import { f as
|
|
3
|
-
function
|
|
1
|
+
import { n as o, m as c } from "./chartbi.b6818e8e.mjs";
|
|
2
|
+
import { f as r, t as m } from "./messages.7e418640.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
53
|
return window.axios({
|
|
54
54
|
url: "/sysTeam/member/batchadd",
|
|
55
55
|
method: "post",
|
|
56
|
-
data:
|
|
56
|
+
data: s
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function $(s) {
|
|
60
60
|
return window.axios({
|
|
61
61
|
url: "/sysTeam/member/edit",
|
|
62
62
|
method: "post",
|
|
63
|
-
data:
|
|
63
|
+
data: s
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function v(s) {
|
|
67
67
|
return window.axios({
|
|
68
|
-
url: "/sysTeam/member/
|
|
68
|
+
url: "/sysTeam/member/batchdel",
|
|
69
69
|
method: "post",
|
|
70
|
-
data:
|
|
70
|
+
data: s
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function k(s) {
|
|
74
74
|
return window.axios({
|
|
75
75
|
url: "/sysTeam/member/detail",
|
|
76
76
|
method: "get",
|
|
77
|
-
params:
|
|
77
|
+
params: s
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
|
-
const
|
|
80
|
+
const F = {
|
|
81
81
|
data() {
|
|
82
82
|
return {
|
|
83
83
|
tableColumns: [
|
|
@@ -93,6 +93,7 @@ const k = {
|
|
|
93
93
|
type: "slot",
|
|
94
94
|
slotType: "name",
|
|
95
95
|
align: "left",
|
|
96
|
+
width: "220",
|
|
96
97
|
fixed: !0,
|
|
97
98
|
showOverflowTooltip: !0
|
|
98
99
|
},
|
|
@@ -100,6 +101,7 @@ const k = {
|
|
|
100
101
|
transKey: "gd.team.amdmin",
|
|
101
102
|
prop: "administratorid",
|
|
102
103
|
label: "\u7BA1\u7406\u5458",
|
|
104
|
+
width: "220",
|
|
103
105
|
type: "slot",
|
|
104
106
|
slotType: "administratorid",
|
|
105
107
|
align: "left"
|
|
@@ -108,20 +110,23 @@ const k = {
|
|
|
108
110
|
transKey: "gd.team.teamtype",
|
|
109
111
|
prop: "teamtype",
|
|
110
112
|
label: "\u56E2\u961F\u7C7B\u578B",
|
|
113
|
+
width: "180",
|
|
111
114
|
type: "slot",
|
|
112
115
|
slotType: "teamtype",
|
|
113
116
|
align: "left"
|
|
114
117
|
},
|
|
115
|
-
{
|
|
116
|
-
transKey: "gd.team.describe",
|
|
117
|
-
prop: "description",
|
|
118
|
-
label: "\u63CF\u8FF0",
|
|
119
|
-
align: "left"
|
|
120
|
-
},
|
|
121
118
|
{
|
|
122
119
|
transKey: "gd.team.createdTime",
|
|
123
120
|
prop: "createdtime",
|
|
124
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",
|
|
125
130
|
align: "left"
|
|
126
131
|
}
|
|
127
132
|
],
|
|
@@ -154,7 +159,7 @@ const k = {
|
|
|
154
159
|
]
|
|
155
160
|
};
|
|
156
161
|
}
|
|
157
|
-
},
|
|
162
|
+
}, L = {
|
|
158
163
|
data() {
|
|
159
164
|
return {
|
|
160
165
|
tableColumns: [
|
|
@@ -180,6 +185,38 @@ const k = {
|
|
|
180
185
|
type: "slot",
|
|
181
186
|
slotType: "sys_userid",
|
|
182
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"
|
|
183
220
|
}
|
|
184
221
|
],
|
|
185
222
|
tableButtons: [
|
|
@@ -212,7 +249,7 @@ const k = {
|
|
|
212
249
|
};
|
|
213
250
|
}
|
|
214
251
|
};
|
|
215
|
-
const
|
|
252
|
+
const T = {
|
|
216
253
|
props: {
|
|
217
254
|
modalAppendToBody: {
|
|
218
255
|
type: Boolean,
|
|
@@ -276,37 +313,37 @@ const L = {
|
|
|
276
313
|
}
|
|
277
314
|
},
|
|
278
315
|
methods: {
|
|
279
|
-
lookupSeled(
|
|
280
|
-
this.dataList = [...
|
|
316
|
+
lookupSeled(s) {
|
|
317
|
+
this.dataList = [...s.fkData], this.$set(this.ruleFormData, "sys_userid", s.data[0]);
|
|
281
318
|
},
|
|
282
|
-
lookup(
|
|
319
|
+
lookup(s) {
|
|
283
320
|
let e = {
|
|
284
321
|
effectType: "fk",
|
|
285
322
|
fkEntityName: "sys_user",
|
|
286
|
-
val:
|
|
323
|
+
val: s || []
|
|
287
324
|
};
|
|
288
325
|
this.$refs.msgSearch.open(e);
|
|
289
326
|
},
|
|
290
|
-
open(
|
|
291
|
-
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);
|
|
292
329
|
},
|
|
293
|
-
getDetail(
|
|
294
|
-
|
|
295
|
-
id:
|
|
330
|
+
getDetail(s) {
|
|
331
|
+
s != "" && (this.dataList = [], k({
|
|
332
|
+
id: s
|
|
296
333
|
}).then((e) => {
|
|
297
334
|
if (e.code == 200) {
|
|
298
|
-
let
|
|
335
|
+
let t = e.data;
|
|
299
336
|
this.dataList.push({
|
|
300
|
-
id:
|
|
301
|
-
name:
|
|
337
|
+
id: t.sys_userid,
|
|
338
|
+
name: t.username
|
|
302
339
|
}), this.columnList.push({
|
|
303
|
-
id:
|
|
304
|
-
name:
|
|
340
|
+
id: t.sys_teamid,
|
|
341
|
+
name: t.teamname
|
|
305
342
|
});
|
|
306
343
|
let a = {
|
|
307
|
-
id:
|
|
308
|
-
sys_userid:
|
|
309
|
-
sys_teamid:
|
|
344
|
+
id: t.id,
|
|
345
|
+
sys_userid: t.sys_userid,
|
|
346
|
+
sys_teamid: t.sys_teamid
|
|
310
347
|
};
|
|
311
348
|
this.firstLoading = !0, this.firstLoading1 = !0, this.$nextTick(() => {
|
|
312
349
|
setTimeout(() => {
|
|
@@ -316,21 +353,21 @@ const L = {
|
|
|
316
353
|
}
|
|
317
354
|
}));
|
|
318
355
|
},
|
|
319
|
-
searchData(
|
|
320
|
-
this.columnList = [],
|
|
356
|
+
searchData(s) {
|
|
357
|
+
this.columnList = [], r({
|
|
321
358
|
fkEntityName: "sys_team",
|
|
322
|
-
id:
|
|
359
|
+
id: s
|
|
323
360
|
}).then((e) => {
|
|
324
|
-
e.code == 200 && (this.ruleFormData.sys_teamid =
|
|
361
|
+
e.code == 200 && (this.ruleFormData.sys_teamid = s, this.columnList = e.data.length > 0 ? e.data : []);
|
|
325
362
|
});
|
|
326
363
|
},
|
|
327
364
|
searchList() {
|
|
328
365
|
this.firstLoading || (this.adminClick(""), this.firstLoading = !0);
|
|
329
366
|
},
|
|
330
|
-
adminClick(
|
|
331
|
-
this.dataList = [], this.fetching = !0,
|
|
367
|
+
adminClick(s) {
|
|
368
|
+
this.dataList = [], this.fetching = !0, r({
|
|
332
369
|
fkEntityName: "sys_user",
|
|
333
|
-
name:
|
|
370
|
+
name: s
|
|
334
371
|
}).then((e) => {
|
|
335
372
|
e.code == 200 && (this.dataList = e.data);
|
|
336
373
|
});
|
|
@@ -338,28 +375,28 @@ const L = {
|
|
|
338
375
|
searchList1() {
|
|
339
376
|
this.firstLoading1 || (this.userClick(""), this.firstLoading1 = !0);
|
|
340
377
|
},
|
|
341
|
-
userClick(
|
|
342
|
-
this.columnList = [], this.fetching = !0,
|
|
378
|
+
userClick(s) {
|
|
379
|
+
this.columnList = [], this.fetching = !0, r({
|
|
343
380
|
fkEntityName: "sys_team",
|
|
344
|
-
name:
|
|
381
|
+
name: s
|
|
345
382
|
}).then((e) => {
|
|
346
383
|
e.code == 200 && (this.columnList = e.data);
|
|
347
384
|
});
|
|
348
385
|
},
|
|
349
386
|
handleSubmit() {
|
|
350
|
-
this.$refs.ruleForm.validate((
|
|
351
|
-
|
|
387
|
+
this.$refs.ruleForm.validate((s) => {
|
|
388
|
+
s && (this.type == 1 ? this.add(this.ruleFormData) : this.edit(this.ruleFormData));
|
|
352
389
|
});
|
|
353
390
|
},
|
|
354
|
-
add(
|
|
355
|
-
this.confirmLoading = !0, delete
|
|
391
|
+
add(s) {
|
|
392
|
+
this.confirmLoading = !0, delete s.id, b(s).then((e) => {
|
|
356
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);
|
|
357
394
|
}).finally((e) => {
|
|
358
395
|
this.confirmLoading = !1;
|
|
359
396
|
});
|
|
360
397
|
},
|
|
361
|
-
edit(
|
|
362
|
-
this.confirmLoading = !0,
|
|
398
|
+
edit(s) {
|
|
399
|
+
this.confirmLoading = !0, $(s).then((e) => {
|
|
363
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);
|
|
364
401
|
}).finally((e) => {
|
|
365
402
|
this.confirmLoading = !1;
|
|
@@ -371,51 +408,51 @@ const L = {
|
|
|
371
408
|
sys_teamid: ""
|
|
372
409
|
};
|
|
373
410
|
},
|
|
374
|
-
getDictionary(
|
|
375
|
-
return this.$options.filters.dictData(
|
|
411
|
+
getDictionary(s) {
|
|
412
|
+
return this.$options.filters.dictData(s);
|
|
376
413
|
},
|
|
377
414
|
toggleFullscreen() {
|
|
378
415
|
this.fullScreen = !this.fullScreen;
|
|
379
416
|
},
|
|
380
|
-
doEvent(
|
|
381
|
-
let e =
|
|
417
|
+
doEvent(s) {
|
|
418
|
+
let e = s.item.functionName;
|
|
382
419
|
this[e] && this[e]();
|
|
383
420
|
}
|
|
384
421
|
}
|
|
385
422
|
};
|
|
386
423
|
var S = function() {
|
|
387
|
-
var e = this,
|
|
388
|
-
return
|
|
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) {
|
|
389
426
|
e.visible = a;
|
|
390
|
-
}, 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) {
|
|
391
428
|
a.preventDefault();
|
|
392
|
-
} } }, [
|
|
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) {
|
|
393
430
|
e.$set(e.ruleFormData, "sys_userid", a);
|
|
394
431
|
}, expression: "ruleFormData.sys_userid" } }, e._l(e.dataList, function(a, i) {
|
|
395
|
-
return
|
|
396
|
-
}), 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) {
|
|
397
434
|
return e.lookup(e.ruleFormData.sys_userid);
|
|
398
|
-
} } })])], 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) {
|
|
399
436
|
e.$set(e.ruleFormData, "sys_teamid", a);
|
|
400
437
|
}, expression: "ruleFormData.sys_teamid" } }, e._l(e.columnList, function(a, i) {
|
|
401
|
-
return
|
|
402
|
-
}), 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) {
|
|
403
440
|
e.ruleFormData.sys_teamid;
|
|
404
|
-
} } })])], 1)])], 1)], 1)], 1)], 1)])], 1),
|
|
405
|
-
},
|
|
406
|
-
L,
|
|
407
|
-
S,
|
|
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(
|
|
408
443
|
T,
|
|
444
|
+
S,
|
|
445
|
+
C,
|
|
409
446
|
!1,
|
|
410
447
|
null,
|
|
411
448
|
"0613082f",
|
|
412
449
|
null,
|
|
413
450
|
null
|
|
414
451
|
);
|
|
415
|
-
const
|
|
416
|
-
const
|
|
452
|
+
const x = D.exports;
|
|
453
|
+
const B = {
|
|
417
454
|
name: "GdTeamMembers",
|
|
418
|
-
mixins: [m,
|
|
455
|
+
mixins: [m, L],
|
|
419
456
|
props: {
|
|
420
457
|
height: {
|
|
421
458
|
type: Number,
|
|
@@ -441,9 +478,9 @@ const x = {
|
|
|
441
478
|
selectedRows: [],
|
|
442
479
|
queryParam: {},
|
|
443
480
|
disabledRowId: [],
|
|
444
|
-
loadData: (
|
|
481
|
+
loadData: (s) => _(Object.assign(s, this.getQueryParam, {
|
|
445
482
|
SysTeamId: this.sys_teamid
|
|
446
|
-
})).then((e) => (this.disabledRowId = e.data.rows.map((
|
|
483
|
+
})).then((e) => (this.disabledRowId = e.data.rows.map((t) => t.sys_userid), e.data))
|
|
447
484
|
};
|
|
448
485
|
},
|
|
449
486
|
computed: {
|
|
@@ -451,58 +488,61 @@ const x = {
|
|
|
451
488
|
return this.height;
|
|
452
489
|
},
|
|
453
490
|
getQueryParam() {
|
|
454
|
-
|
|
491
|
+
console.log(this.queryParam);
|
|
492
|
+
let s = /* @__PURE__ */ new Map();
|
|
455
493
|
for (let e in this.queryParam)
|
|
456
494
|
if (this.queryParam[e] && (e === "msgStatus" || e === "sendType"))
|
|
457
|
-
|
|
495
|
+
s.set(e, this.queryParam[e].join(","));
|
|
458
496
|
else if (this.queryParam[e] && (e === "actualOn" || e === "createdTime" || e === "scheduledStartedOn")) {
|
|
459
497
|
if (this.queryParam[e].length > 0) {
|
|
460
|
-
let
|
|
461
|
-
|
|
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`);
|
|
462
500
|
}
|
|
463
501
|
} else
|
|
464
|
-
|
|
465
|
-
return Object.fromEntries(
|
|
502
|
+
s.set(e, this.queryParam[e]);
|
|
503
|
+
return Object.fromEntries(s);
|
|
466
504
|
},
|
|
467
505
|
...c(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
|
|
468
506
|
},
|
|
469
507
|
components: {
|
|
470
|
-
editForm:
|
|
508
|
+
editForm: x
|
|
471
509
|
},
|
|
472
510
|
watch: {
|
|
473
|
-
type(
|
|
511
|
+
type(s, e) {
|
|
474
512
|
this.$refs.table && this.$refs.table.refresh();
|
|
475
513
|
},
|
|
476
|
-
sys_teamid(
|
|
514
|
+
sys_teamid(s, e) {
|
|
477
515
|
this.$refs.table && this.$refs.table.refresh();
|
|
478
516
|
}
|
|
479
517
|
},
|
|
480
518
|
methods: {
|
|
481
|
-
lookupSeled(
|
|
482
|
-
if (
|
|
519
|
+
lookupSeled(s) {
|
|
520
|
+
if (s.fkData.length === 0) {
|
|
483
521
|
this.$refs.msgSearch.closed();
|
|
484
522
|
return;
|
|
485
523
|
}
|
|
486
|
-
|
|
524
|
+
console.log(s), setTimeout(() => {
|
|
525
|
+
this.$refs.msgSearch.confirmLoading = !0;
|
|
526
|
+
}, 1502);
|
|
487
527
|
let e = {
|
|
488
|
-
userIds:
|
|
528
|
+
userIds: s.data,
|
|
489
529
|
sys_TeamId: this.sys_teamid
|
|
490
530
|
};
|
|
491
|
-
|
|
492
|
-
|
|
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;
|
|
493
533
|
});
|
|
494
534
|
},
|
|
495
535
|
lookup() {
|
|
496
|
-
let
|
|
536
|
+
let s = {
|
|
497
537
|
effectType: "participants",
|
|
498
538
|
fkEntityName: "sys_user",
|
|
499
539
|
isRelevance: !0,
|
|
500
540
|
val: []
|
|
501
541
|
};
|
|
502
|
-
this.$refs.msgSearch.open(
|
|
542
|
+
this.$refs.msgSearch.open(s);
|
|
503
543
|
},
|
|
504
|
-
editForm(
|
|
505
|
-
this.transKey = "gd.btn.edit", this.$refs.editForm.open(
|
|
544
|
+
editForm(s) {
|
|
545
|
+
this.transKey = "gd.btn.edit", this.$refs.editForm.open(s);
|
|
506
546
|
},
|
|
507
547
|
add() {
|
|
508
548
|
this.lookup();
|
|
@@ -523,10 +563,6 @@ const x = {
|
|
|
523
563
|
this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));
|
|
524
564
|
return;
|
|
525
565
|
}
|
|
526
|
-
if (this.selectedRowKeys.length > 1) {
|
|
527
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
528
|
-
return;
|
|
529
|
-
}
|
|
530
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"), {
|
|
531
567
|
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
532
568
|
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
@@ -539,29 +575,24 @@ const x = {
|
|
|
539
575
|
customClass: "custom-alert",
|
|
540
576
|
callback: () => {
|
|
541
577
|
},
|
|
542
|
-
beforeClose: (
|
|
543
|
-
this.delHand(
|
|
578
|
+
beforeClose: (s, e, t) => {
|
|
579
|
+
this.delHand(s, e, t);
|
|
544
580
|
}
|
|
545
581
|
});
|
|
546
582
|
},
|
|
547
|
-
delHand(
|
|
548
|
-
if (
|
|
549
|
-
|
|
583
|
+
delHand(s, e, t) {
|
|
584
|
+
if (s !== "confirm") {
|
|
585
|
+
t();
|
|
550
586
|
return;
|
|
551
587
|
}
|
|
552
|
-
let a = [];
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
}).then((n) => n);
|
|
557
|
-
a.push(r);
|
|
558
|
-
}), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(a).then((i) => {
|
|
559
|
-
const r = i.filter((n) => !n.success);
|
|
560
|
-
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), 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;
|
|
561
592
|
});
|
|
562
593
|
},
|
|
563
|
-
onSelectChange(
|
|
564
|
-
this.selectedRowKeys =
|
|
594
|
+
onSelectChange(s, e) {
|
|
595
|
+
this.selectedRowKeys = s, this.selectedRows = e;
|
|
565
596
|
},
|
|
566
597
|
handleOk() {
|
|
567
598
|
this.refresh();
|
|
@@ -569,37 +600,49 @@ const x = {
|
|
|
569
600
|
refresh() {
|
|
570
601
|
this.$refs.table.refresh();
|
|
571
602
|
},
|
|
572
|
-
dictSwitch(
|
|
573
|
-
let
|
|
574
|
-
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;
|
|
575
606
|
},
|
|
576
|
-
doEvent(
|
|
577
|
-
let e =
|
|
607
|
+
doEvent(s) {
|
|
608
|
+
let e = s.item.functionName;
|
|
578
609
|
this[e] && this[e]();
|
|
579
610
|
}
|
|
580
611
|
}
|
|
581
612
|
};
|
|
582
|
-
var
|
|
583
|
-
var e = this,
|
|
584
|
-
return
|
|
585
|
-
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)])];
|
|
586
621
|
}, proxy: !0 }, { key: "sys_teamid", fn: function({ column: a, row: i }) {
|
|
587
|
-
return [
|
|
622
|
+
return [t("gd-tooltip", { attrs: { rowKey: "teamname", row: i, highlight: "" }, on: { click: e.editForm } })];
|
|
588
623
|
} }, { key: "sys_userid", fn: function({ column: a, row: i }) {
|
|
589
|
-
return [i.sys_userid ?
|
|
590
|
-
} }
|
|
591
|
-
|
|
592
|
-
|
|
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(
|
|
593
635
|
B,
|
|
636
|
+
K,
|
|
594
637
|
N,
|
|
595
638
|
!1,
|
|
596
639
|
null,
|
|
597
|
-
"
|
|
640
|
+
"ada89e79",
|
|
598
641
|
null,
|
|
599
642
|
null
|
|
600
643
|
);
|
|
601
|
-
const R =
|
|
602
|
-
const
|
|
644
|
+
const R = P.exports;
|
|
645
|
+
const E = {
|
|
603
646
|
props: {
|
|
604
647
|
modalAppendToBody: {
|
|
605
648
|
type: Boolean,
|
|
@@ -662,84 +705,84 @@ const P = {
|
|
|
662
705
|
teamMemberDetail: R
|
|
663
706
|
},
|
|
664
707
|
methods: {
|
|
665
|
-
lookupSeled(
|
|
666
|
-
this.dataList = [...
|
|
708
|
+
lookupSeled(s) {
|
|
709
|
+
this.dataList = [...s.fkData], this.$set(this.ruleFormData, "administratorid", s.data[0]);
|
|
667
710
|
},
|
|
668
|
-
lookup(
|
|
711
|
+
lookup(s) {
|
|
669
712
|
let e = {
|
|
670
713
|
effectType: "fk",
|
|
671
714
|
fkEntityName: "sys_user",
|
|
672
|
-
val:
|
|
715
|
+
val: s || []
|
|
673
716
|
};
|
|
674
717
|
this.$refs.msgSearch.open(e);
|
|
675
718
|
},
|
|
676
|
-
open(
|
|
677
|
-
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);
|
|
678
721
|
},
|
|
679
|
-
getDetail(
|
|
680
|
-
|
|
681
|
-
id:
|
|
722
|
+
getDetail(s) {
|
|
723
|
+
s != "" && (this.dataList = [], y({
|
|
724
|
+
id: s
|
|
682
725
|
}).then((e) => {
|
|
683
726
|
if (e.code == 200) {
|
|
684
|
-
let
|
|
727
|
+
let t = e.data;
|
|
685
728
|
this.dataList.push({
|
|
686
|
-
id:
|
|
687
|
-
name:
|
|
729
|
+
id: t.administratorid,
|
|
730
|
+
name: t.administratorname
|
|
688
731
|
}), this.columnList.push({
|
|
689
|
-
id:
|
|
690
|
-
name:
|
|
732
|
+
id: t.ownerid,
|
|
733
|
+
name: t.ownername
|
|
691
734
|
});
|
|
692
735
|
let a = {
|
|
693
|
-
id:
|
|
694
|
-
name:
|
|
695
|
-
teamtype:
|
|
696
|
-
description:
|
|
697
|
-
administratorid:
|
|
736
|
+
id: t.id,
|
|
737
|
+
name: t.name,
|
|
738
|
+
teamtype: t.teamtype ? t.teamtype.toString() : "",
|
|
739
|
+
description: t.description,
|
|
740
|
+
administratorid: t.administratorid
|
|
698
741
|
};
|
|
699
742
|
this.firstLoading = !0, this.$nextTick(() => {
|
|
700
743
|
setTimeout(() => {
|
|
701
|
-
this.ruleFormData = a, this.ownerid =
|
|
744
|
+
this.ruleFormData = a, this.ownerid = t.ownerid;
|
|
702
745
|
}, 0);
|
|
703
746
|
});
|
|
704
747
|
}
|
|
705
748
|
}));
|
|
706
749
|
},
|
|
707
|
-
searchData(
|
|
708
|
-
this.dataList = [],
|
|
750
|
+
searchData(s) {
|
|
751
|
+
this.dataList = [], r({
|
|
709
752
|
fkEntityName: "sys_user",
|
|
710
|
-
id:
|
|
753
|
+
id: s.administratorid
|
|
711
754
|
}).then((e) => {
|
|
712
755
|
e.code == 200 && (this.firstLoading = !0, e.data.length > 0 ? this.dataList = e.data : this.dataList.push({
|
|
713
|
-
id:
|
|
714
|
-
name:
|
|
756
|
+
id: s.administratorid,
|
|
757
|
+
name: s.administratorname
|
|
715
758
|
}));
|
|
716
759
|
});
|
|
717
760
|
},
|
|
718
761
|
searchList() {
|
|
719
762
|
this.firstLoading || (this.adminClick(""), this.firstLoading = !0);
|
|
720
763
|
},
|
|
721
|
-
adminClick(
|
|
722
|
-
this.dataList = [], this.fetching = !0,
|
|
764
|
+
adminClick(s) {
|
|
765
|
+
this.dataList = [], this.fetching = !0, r({
|
|
723
766
|
fkEntityName: "sys_user",
|
|
724
|
-
name:
|
|
767
|
+
name: s
|
|
725
768
|
}).then((e) => {
|
|
726
769
|
e.code == 200 && (this.dataList = e.data);
|
|
727
770
|
});
|
|
728
771
|
},
|
|
729
772
|
handleSubmit() {
|
|
730
|
-
this.$refs.ruleForm.validate((
|
|
731
|
-
|
|
773
|
+
this.$refs.ruleForm.validate((s) => {
|
|
774
|
+
s && (console.log(this.type), this.type == 1 ? this.add(this.ruleFormData) : this.edit(this.ruleFormData));
|
|
732
775
|
});
|
|
733
776
|
},
|
|
734
|
-
add(
|
|
735
|
-
this.confirmLoading = !0, delete
|
|
777
|
+
add(s) {
|
|
778
|
+
this.confirmLoading = !0, delete s.id, p(s).then((e) => {
|
|
736
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);
|
|
737
780
|
}).finally((e) => {
|
|
738
781
|
this.confirmLoading = !1;
|
|
739
782
|
});
|
|
740
783
|
},
|
|
741
|
-
edit(
|
|
742
|
-
this.confirmLoading = !0, f(
|
|
784
|
+
edit(s) {
|
|
785
|
+
this.confirmLoading = !0, f(s).then((e) => {
|
|
743
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);
|
|
744
787
|
}).finally((e) => {
|
|
745
788
|
this.confirmLoading = !1;
|
|
@@ -754,46 +797,46 @@ const P = {
|
|
|
754
797
|
description: ""
|
|
755
798
|
}, this.ownerid = "", this.type = 1;
|
|
756
799
|
},
|
|
757
|
-
getDictionary(
|
|
758
|
-
return this.$options.filters.dictData(
|
|
800
|
+
getDictionary(s) {
|
|
801
|
+
return this.$options.filters.dictData(s);
|
|
759
802
|
},
|
|
760
803
|
toggleFullscreen() {
|
|
761
804
|
this.fullScreen = !this.fullScreen;
|
|
762
805
|
},
|
|
763
|
-
doEvent(
|
|
764
|
-
let e =
|
|
806
|
+
doEvent(s) {
|
|
807
|
+
let e = s.item.functionName;
|
|
765
808
|
this[e] && this[e]();
|
|
766
809
|
}
|
|
767
810
|
}
|
|
768
811
|
};
|
|
769
|
-
var
|
|
770
|
-
var e = this,
|
|
771
|
-
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) {
|
|
772
815
|
e.visible = a;
|
|
773
|
-
}, 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) {
|
|
774
817
|
a.preventDefault();
|
|
775
|
-
} } }, [
|
|
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) {
|
|
776
819
|
e.$set(e.ruleFormData, "name", a);
|
|
777
|
-
}, 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) {
|
|
778
821
|
e.$set(e.ruleFormData, "teamtype", a);
|
|
779
822
|
}, expression: "ruleFormData.teamtype" } }, e._l(e.getDictionary("teamtype"), function(a, i) {
|
|
780
|
-
return
|
|
781
|
-
}), 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) {
|
|
782
825
|
e.$set(e.ruleFormData, "administratorid", a);
|
|
783
826
|
}, expression: "ruleFormData.administratorid" } }, e._l(e.dataList, function(a, i) {
|
|
784
|
-
return
|
|
785
|
-
}), 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) {
|
|
786
829
|
return e.lookup(e.ruleFormData.administratorid);
|
|
787
|
-
} } })])], 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) {
|
|
788
831
|
e.ownerid = a;
|
|
789
832
|
}, expression: "ownerid" } }, e._l(e.columnList, function(a, i) {
|
|
790
|
-
return
|
|
791
|
-
}), 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) {
|
|
792
835
|
e.$set(e.ruleFormData, "description", a);
|
|
793
|
-
}, expression: "ruleFormData.description" } })], 1)], 1)], 1)], 1)], 1), e.detailShow ?
|
|
794
|
-
}, O = [],
|
|
795
|
-
P,
|
|
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(
|
|
796
838
|
E,
|
|
839
|
+
q,
|
|
797
840
|
O,
|
|
798
841
|
!1,
|
|
799
842
|
null,
|
|
@@ -801,10 +844,10 @@ var E = function() {
|
|
|
801
844
|
null,
|
|
802
845
|
null
|
|
803
846
|
);
|
|
804
|
-
const
|
|
805
|
-
const
|
|
847
|
+
const z = M.exports;
|
|
848
|
+
const V = {
|
|
806
849
|
name: "GdTeam",
|
|
807
|
-
mixins: [m,
|
|
850
|
+
mixins: [m, F],
|
|
808
851
|
props: {
|
|
809
852
|
height: {
|
|
810
853
|
type: Number,
|
|
@@ -817,35 +860,35 @@ const z = {
|
|
|
817
860
|
selectedRowKeys: [],
|
|
818
861
|
selectedRows: [],
|
|
819
862
|
queryParam: {},
|
|
820
|
-
loadData: (
|
|
863
|
+
loadData: (s) => h(Object.assign(s, this.getQueryParam)).then((e) => e.data)
|
|
821
864
|
};
|
|
822
865
|
},
|
|
823
866
|
components: {
|
|
824
|
-
editForm:
|
|
867
|
+
editForm: z
|
|
825
868
|
},
|
|
826
869
|
computed: {
|
|
827
870
|
getHeight() {
|
|
828
871
|
return this.height;
|
|
829
872
|
},
|
|
830
873
|
getQueryParam() {
|
|
831
|
-
let
|
|
874
|
+
let s = /* @__PURE__ */ new Map();
|
|
832
875
|
for (let e in this.queryParam)
|
|
833
876
|
if (this.queryParam[e] && (e === "msgStatus" || e === "sendType"))
|
|
834
|
-
|
|
877
|
+
s.set(e, this.queryParam[e].join(","));
|
|
835
878
|
else if (this.queryParam[e] && (e === "actualOn" || e === "createdTime" || e === "scheduledStartedOn")) {
|
|
836
879
|
if (this.queryParam[e].length > 0) {
|
|
837
|
-
let
|
|
838
|
-
|
|
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`);
|
|
839
882
|
}
|
|
840
883
|
} else
|
|
841
|
-
|
|
842
|
-
return Object.fromEntries(
|
|
884
|
+
s.set(e, this.queryParam[e]);
|
|
885
|
+
return Object.fromEntries(s);
|
|
843
886
|
},
|
|
844
887
|
...c(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
|
|
845
888
|
},
|
|
846
889
|
methods: {
|
|
847
|
-
editForm(
|
|
848
|
-
this.transKey = "gd.btn.edit", this.$refs.editForm.open(
|
|
890
|
+
editForm(s) {
|
|
891
|
+
this.transKey = "gd.btn.edit", this.$refs.editForm.open(s);
|
|
849
892
|
},
|
|
850
893
|
add() {
|
|
851
894
|
this.$refs.editForm.open();
|
|
@@ -882,29 +925,29 @@ const z = {
|
|
|
882
925
|
customClass: "custom-alert",
|
|
883
926
|
callback: () => {
|
|
884
927
|
},
|
|
885
|
-
beforeClose: (
|
|
886
|
-
this.delHand(
|
|
928
|
+
beforeClose: (s, e, t) => {
|
|
929
|
+
this.delHand(s, e, t);
|
|
887
930
|
}
|
|
888
931
|
});
|
|
889
932
|
},
|
|
890
|
-
delHand(
|
|
891
|
-
if (
|
|
892
|
-
|
|
933
|
+
delHand(s, e, t) {
|
|
934
|
+
if (s !== "confirm") {
|
|
935
|
+
t();
|
|
893
936
|
return;
|
|
894
937
|
}
|
|
895
938
|
let a = [];
|
|
896
939
|
this.selectedRows.forEach((i) => {
|
|
897
|
-
let
|
|
940
|
+
let n = g({
|
|
898
941
|
id: i.id
|
|
899
|
-
}).then((
|
|
900
|
-
a.push(
|
|
942
|
+
}).then((l) => l);
|
|
943
|
+
a.push(n);
|
|
901
944
|
}), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(a).then((i) => {
|
|
902
|
-
const
|
|
903
|
-
|
|
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;
|
|
904
947
|
});
|
|
905
948
|
},
|
|
906
|
-
onSelectChange(
|
|
907
|
-
this.selectedRowKeys =
|
|
949
|
+
onSelectChange(s, e) {
|
|
950
|
+
this.selectedRowKeys = s, this.selectedRows = e;
|
|
908
951
|
},
|
|
909
952
|
handleOk() {
|
|
910
953
|
this.refresh();
|
|
@@ -912,29 +955,29 @@ const z = {
|
|
|
912
955
|
refresh() {
|
|
913
956
|
this.$refs.table.refresh();
|
|
914
957
|
},
|
|
915
|
-
dictSwitch(
|
|
916
|
-
let
|
|
917
|
-
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;
|
|
918
961
|
},
|
|
919
|
-
doEvent(
|
|
920
|
-
let e =
|
|
962
|
+
doEvent(s) {
|
|
963
|
+
let e = s.item.functionName;
|
|
921
964
|
this[e] && this[e]();
|
|
922
965
|
}
|
|
923
966
|
}
|
|
924
967
|
};
|
|
925
968
|
var A = function() {
|
|
926
|
-
var e = this,
|
|
927
|
-
return
|
|
928
|
-
return [
|
|
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)])];
|
|
929
972
|
}, proxy: !0 }, { key: "name", fn: function({ column: a, row: i }) {
|
|
930
|
-
return [
|
|
973
|
+
return [t("gd-tooltip", { attrs: { rowKey: "name", row: i, highlight: "" }, on: { click: e.editForm } })];
|
|
931
974
|
} }, { key: "administratorid", fn: function({ column: a, row: i }) {
|
|
932
|
-
return [i.administratorname ?
|
|
975
|
+
return [i.administratorname ? t("span", [e._v(" " + e._s(i.administratorname) + " ")]) : e._e()];
|
|
933
976
|
} }, { key: "teamtype", fn: function(a) {
|
|
934
|
-
return [e.dictSwitch(a.row.teamtype, "teamtype") ?
|
|
935
|
-
} }]) })], 1),
|
|
936
|
-
}, H = [],
|
|
937
|
-
|
|
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,
|
|
938
981
|
A,
|
|
939
982
|
H,
|
|
940
983
|
!1,
|
|
@@ -943,15 +986,15 @@ var A = function() {
|
|
|
943
986
|
null,
|
|
944
987
|
null
|
|
945
988
|
);
|
|
946
|
-
const d =
|
|
947
|
-
d.install = function(
|
|
948
|
-
|
|
989
|
+
const d = I.exports;
|
|
990
|
+
d.install = function(s) {
|
|
991
|
+
s.component(d.name, d);
|
|
949
992
|
};
|
|
950
993
|
export {
|
|
951
994
|
d as G,
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
995
|
+
b as a,
|
|
996
|
+
$ as b,
|
|
997
|
+
_ as c,
|
|
998
|
+
v as d,
|
|
999
|
+
k as s
|
|
957
1000
|
};
|