gds-plus-design-vue 1.1.87 → 1.2.2
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.c211f08d.js → chartbi.06e48153.js} +20 -20
- package/lib/{chartbi.090c7bd2.mjs → chartbi.cdd1e365.mjs} +21 -14
- package/lib/gd-initial.js +12 -12
- package/lib/gd-initial.mjs +1993 -1336
- package/lib/main.2415a49a.js +1 -0
- package/lib/{main.b4723893.mjs → main.2cddfbbd.mjs} +5 -5
- package/lib/{main.6903ab7a.js → main.4c447fc3.js} +1 -1
- package/lib/{main.197a0d5f.mjs → main.86fe06d4.mjs} +6 -6
- package/lib/{main.4f2a165f.mjs → main.b2d0a309.mjs} +10 -10
- package/lib/{main.d1772cf9.js → main.d091d06d.js} +1 -1
- package/lib/{messages.0e2d9d5a.js → messages.2fff74f3.js} +5 -5
- package/lib/{messages.a9287789.mjs → messages.d8abe18d.mjs} +18 -18
- package/lib/style.css +3 -3
- package/lib/{system.account.d3dd14ec.js → system.account.8ea53681.js} +2 -2
- package/lib/{system.account.e95f40c9.mjs → system.account.9bc40d08.mjs} +230 -230
- package/lib/{system.config.e74cc108.mjs → system.config.8223d495.mjs} +3 -3
- package/lib/{system.config.1164deec.js → system.config.c6e30213.js} +1 -1
- package/lib/{system.datasource.034737e6.mjs → system.datasource.57233650.mjs} +3 -3
- package/lib/{system.datasource.813c512e.js → system.datasource.fd6a4e76.js} +1 -1
- package/lib/{system.dict.9b1038c3.mjs → system.dict.8f95218b.mjs} +115 -89
- package/lib/system.dict.a24f33b0.js +1 -0
- package/lib/{system.duplicatechecking.e5542a97.js → system.duplicatechecking.39293985.js} +1 -1
- package/lib/{system.duplicatechecking.1aac5b8c.mjs → system.duplicatechecking.6b706948.mjs} +17 -9
- package/lib/{system.email.6041b7b0.js → system.email.a2d9a307.js} +2 -2
- package/lib/{system.email.96d35919.mjs → system.email.dae988be.mjs} +4 -4
- package/lib/{system.fieldsecurity.0909e14b.mjs → system.fieldsecurity.02627a7a.mjs} +14 -14
- package/lib/{system.fieldsecurity.eb33e06f.js → system.fieldsecurity.a0cec24d.js} +1 -1
- package/lib/{system.file.507bf874.mjs → system.file.0fa095a9.mjs} +4 -4
- package/lib/{system.file.e37f9bd2.js → system.file.d695ab37.js} +1 -1
- package/lib/{system.log.0c37bd82.mjs → system.log.acb64505.mjs} +2 -2
- package/lib/{system.log.73097e0b.js → system.log.c07ae5db.js} +1 -1
- package/lib/{system.machine.4302c7e3.js → system.machine.7fa3e3d1.js} +1 -1
- package/lib/{system.machine.fb7aa834.mjs → system.machine.fc392d7f.mjs} +2 -2
- package/lib/{system.notice.128ebe61.mjs → system.notice.5ae50bd4.mjs} +5 -5
- package/lib/{system.notice.d92fe0cd.js → system.notice.f18578ae.js} +1 -1
- package/lib/{system.noticereceived.54ac8bcb.mjs → system.noticereceived.1aa70b65.mjs} +4 -4
- package/lib/{system.noticereceived.32361d39.js → system.noticereceived.bfa98a9b.js} +1 -1
- package/lib/{system.onlineuser.2c37c72c.js → system.onlineuser.1c428d05.js} +1 -1
- package/lib/{system.onlineuser.2a4b2db5.mjs → system.onlineuser.3d848a32.mjs} +2 -2
- package/lib/{system.org.df5901a3.js → system.org.5bb36f9c.js} +1 -1
- package/lib/{system.org.146afbe9.mjs → system.org.fcf96d1e.mjs} +3 -3
- package/lib/{system.permissions.5f00b39f.mjs → system.permissions.23f5b097.mjs} +11 -11
- package/lib/{system.permissions.41571e57.js → system.permissions.a1a9505c.js} +2 -2
- package/lib/{system.plugin.ddd4c699.js → system.plugin.b6de4673.js} +1 -1
- package/lib/{system.plugin.9b9c4301.mjs → system.plugin.e37f9dbc.mjs} +4 -4
- package/lib/{system.pos.eb8248c1.mjs → system.pos.1a01fc97.mjs} +3 -3
- package/lib/{system.pos.352032e6.js → system.pos.a4fb19b0.js} +1 -1
- package/lib/system.promptmanagement.290958b1.js +1 -0
- package/lib/{system.promptmanagement.cd36225c.mjs → system.promptmanagement.36a65c51.mjs} +20 -12
- package/lib/{system.role.8d9f0f33.mjs → system.role.68de93ef.mjs} +13 -13
- package/lib/{system.role.656fa7cc.js → system.role.88100f66.js} +1 -1
- package/lib/{system.sumberrules.6eee79be.mjs → system.sumberrules.cdef9308.mjs} +5 -5
- package/lib/system.sumberrules.dd6299e8.js +1 -0
- package/lib/system.team.53d64006.js +1 -0
- package/lib/system.team.ee652fe4.mjs +926 -0
- package/lib/system.teammembers.26a2ba81.mjs +398 -0
- package/lib/system.teammembers.4a3dc336.js +1 -0
- package/lib/{system.timers.f4eaacaf.mjs → system.timers.4efa8a7d.mjs} +16 -16
- package/lib/{system.timers.a348d394.js → system.timers.b9424204.js} +2 -2
- package/lib/{system.translation.00e5bfa2.mjs → system.translation.0a9399b4.mjs} +14 -14
- package/lib/{system.translation.aa511bcb.js → system.translation.21d2fd8b.js} +1 -1
- package/lib/{system.user.eecef7c2.mjs → system.user.4fcfdf99.mjs} +9 -9
- package/lib/{system.user.2a00c354.js → system.user.d48a08db.js} +3 -3
- package/lib/{system.useraffiliation.f986d344.js → system.useraffiliation.a59ce45b.js} +1 -1
- package/lib/{system.useraffiliation.d638afe1.mjs → system.useraffiliation.fb002239.mjs} +7 -7
- package/lib/{system.webresource.5071b3f4.js → system.webresource.3366cc29.js} +1 -1
- package/lib/{system.webresource.d25eab7d.mjs → system.webresource.4df01c92.mjs} +9 -9
- package/lib/{system.welcome.1988f581.mjs → system.welcome.120f4b50.mjs} +2 -2
- package/lib/{system.welcome.b6ec1ec0.js → system.welcome.472f099b.js} +1 -1
- package/locale/el/en_US.js +122 -122
- package/locale/el/id_ID.js +122 -122
- package/locale/el/vi_VN.js +122 -122
- package/locale/el/zh_CN.js +122 -122
- package/locale/en_US.js +17 -2
- package/locale/id_ID.js +17 -2
- package/locale/vi_VN.js +17 -2
- package/locale/zh_CN.js +17 -2
- package/package.json +1 -1
- package/lib/main.d9f793bb.js +0 -1
- package/lib/system.dict.2deb0cde.js +0 -1
- package/lib/system.promptmanagement.25e1639b.js +0 -1
- package/lib/system.sumberrules.0a269af6.js +0 -1
- /package/lib/{element-theme-chalk.ae828c17.js → element-theme-chalk.dee12271.js} +0 -0
- /package/lib/{element-theme-chalk.35b1f600.mjs → element-theme-chalk.fbb1a631.mjs} +0 -0
|
@@ -0,0 +1,926 @@
|
|
|
1
|
+
import { n as o, m } from "./chartbi.cdd1e365.mjs";
|
|
2
|
+
import { f as l, t as c } from "./messages.d8abe18d.mjs";
|
|
3
|
+
function u(t) {
|
|
4
|
+
return window.axios({
|
|
5
|
+
url: "/sysTeam/page",
|
|
6
|
+
method: "get",
|
|
7
|
+
params: t
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
function h(t) {
|
|
11
|
+
return window.axios({
|
|
12
|
+
url: "/sysTeam/add",
|
|
13
|
+
method: "post",
|
|
14
|
+
data: t
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function f(t) {
|
|
18
|
+
return window.axios({
|
|
19
|
+
url: "/sysTeam/edit",
|
|
20
|
+
method: "post",
|
|
21
|
+
data: t
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function p(t) {
|
|
25
|
+
return window.axios({
|
|
26
|
+
url: "/sysTeam/delete",
|
|
27
|
+
method: "post",
|
|
28
|
+
data: t
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function g(t) {
|
|
32
|
+
return window.axios({
|
|
33
|
+
url: "/sysTeam/detail",
|
|
34
|
+
method: "get",
|
|
35
|
+
params: t
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function y(t) {
|
|
39
|
+
return window.axios({
|
|
40
|
+
url: "/sysTeam/members",
|
|
41
|
+
method: "get",
|
|
42
|
+
params: t
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function _(t) {
|
|
46
|
+
return window.axios({
|
|
47
|
+
url: "/sysTeam/member/add",
|
|
48
|
+
method: "post",
|
|
49
|
+
data: t
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function b(t) {
|
|
53
|
+
return window.axios({
|
|
54
|
+
url: "/sysTeam/member/edit",
|
|
55
|
+
method: "post",
|
|
56
|
+
data: t
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function w(t) {
|
|
60
|
+
return window.axios({
|
|
61
|
+
url: "/sysTeam/member/delete",
|
|
62
|
+
method: "post",
|
|
63
|
+
data: t
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
function $(t) {
|
|
67
|
+
return window.axios({
|
|
68
|
+
url: "/sysTeam/member/detail",
|
|
69
|
+
method: "get",
|
|
70
|
+
params: t
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
const v = {
|
|
74
|
+
data() {
|
|
75
|
+
return {
|
|
76
|
+
tableColumns: [
|
|
77
|
+
{
|
|
78
|
+
type: "selection",
|
|
79
|
+
width: "60",
|
|
80
|
+
fixed: !0
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
transKey: "gd.team.name",
|
|
84
|
+
prop: "name",
|
|
85
|
+
label: "\u540D\u79F0",
|
|
86
|
+
type: "slot",
|
|
87
|
+
slotType: "name",
|
|
88
|
+
align: "left",
|
|
89
|
+
fixed: !0,
|
|
90
|
+
showOverflowTooltip: !0
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
transKey: "gd.team.amdmin",
|
|
94
|
+
prop: "administratorid",
|
|
95
|
+
label: "\u7BA1\u7406\u5458",
|
|
96
|
+
type: "slot",
|
|
97
|
+
slotType: "administratorid",
|
|
98
|
+
align: "left"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
transKey: "gd.team.teamtype",
|
|
102
|
+
prop: "teamtype",
|
|
103
|
+
label: "\u56E2\u961F\u7C7B\u578B",
|
|
104
|
+
type: "slot",
|
|
105
|
+
slotType: "teamtype",
|
|
106
|
+
align: "left"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
transKey: "gd.team.describe",
|
|
110
|
+
prop: "description",
|
|
111
|
+
label: "\u63CF\u8FF0",
|
|
112
|
+
align: "left"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
transKey: "gd.team.createdTime",
|
|
116
|
+
prop: "createdtime",
|
|
117
|
+
label: "\u521B\u5EFA\u65F6\u95F4",
|
|
118
|
+
align: "left"
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
tableButtons: [
|
|
122
|
+
{
|
|
123
|
+
displayName: "\u65B0\u589E",
|
|
124
|
+
functionName: "add",
|
|
125
|
+
show: !0,
|
|
126
|
+
transKey: "gd.btn.add",
|
|
127
|
+
icon: "el-icon-plus",
|
|
128
|
+
name: "sysTeam:add"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
displayName: "\u7F16\u8F91",
|
|
132
|
+
functionName: "edit",
|
|
133
|
+
show: !0,
|
|
134
|
+
transKey: "gd.btn.edit",
|
|
135
|
+
icon: "el-icon-edit",
|
|
136
|
+
name: "sysTeam:edit"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
displayName: "\u5220\u9664",
|
|
140
|
+
functionName: "del",
|
|
141
|
+
show: !0,
|
|
142
|
+
transKey: "gd.btn.del",
|
|
143
|
+
icon: "el-icon-delete",
|
|
144
|
+
btnType: "danger",
|
|
145
|
+
name: "sysTeam:delete"
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
}, k = {
|
|
151
|
+
data() {
|
|
152
|
+
return {
|
|
153
|
+
tableColumns: [
|
|
154
|
+
{
|
|
155
|
+
type: "selection",
|
|
156
|
+
width: "60",
|
|
157
|
+
fixed: !0
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
transKey: "gd.team.name",
|
|
161
|
+
prop: "sys_teamid",
|
|
162
|
+
label: "\u540D\u79F0",
|
|
163
|
+
type: "slot",
|
|
164
|
+
slotType: "sys_teamid",
|
|
165
|
+
align: "left",
|
|
166
|
+
fixed: !0,
|
|
167
|
+
showOverflowTooltip: !0
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
transKey: "gd.team.member",
|
|
171
|
+
prop: "sys_userid",
|
|
172
|
+
label: "\u6210\u5458",
|
|
173
|
+
type: "slot",
|
|
174
|
+
slotType: "sys_userid",
|
|
175
|
+
align: "left"
|
|
176
|
+
}
|
|
177
|
+
],
|
|
178
|
+
tableButtons: [
|
|
179
|
+
{
|
|
180
|
+
displayName: "\u65B0\u589E",
|
|
181
|
+
functionName: "add",
|
|
182
|
+
show: !0,
|
|
183
|
+
transKey: "gd.btn.add",
|
|
184
|
+
icon: "el-icon-plus",
|
|
185
|
+
name: "sysTeam:add"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
displayName: "\u7F16\u8F91",
|
|
189
|
+
functionName: "edit",
|
|
190
|
+
show: !0,
|
|
191
|
+
transKey: "gd.btn.edit",
|
|
192
|
+
icon: "el-icon-edit",
|
|
193
|
+
name: "sysTeam:edit"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
displayName: "\u5220\u9664",
|
|
197
|
+
functionName: "del",
|
|
198
|
+
show: !0,
|
|
199
|
+
transKey: "gd.btn.del",
|
|
200
|
+
icon: "el-icon-delete",
|
|
201
|
+
btnType: "danger",
|
|
202
|
+
name: "sysTeam:delete"
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
const F = {
|
|
209
|
+
props: {
|
|
210
|
+
modalAppendToBody: {
|
|
211
|
+
type: Boolean,
|
|
212
|
+
default: !0
|
|
213
|
+
},
|
|
214
|
+
appendToBody: {
|
|
215
|
+
type: Boolean,
|
|
216
|
+
default: !0
|
|
217
|
+
},
|
|
218
|
+
sys_teamid: {
|
|
219
|
+
type: Number,
|
|
220
|
+
default: 0
|
|
221
|
+
},
|
|
222
|
+
typeAdd: {
|
|
223
|
+
type: Number,
|
|
224
|
+
default: 1
|
|
225
|
+
},
|
|
226
|
+
openMode: {
|
|
227
|
+
type: Number,
|
|
228
|
+
default: 1
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
data() {
|
|
232
|
+
return {
|
|
233
|
+
width: "50%",
|
|
234
|
+
visible: !1,
|
|
235
|
+
fullScreen: !1,
|
|
236
|
+
sysViewButtons: [{
|
|
237
|
+
displayName: "\u786E\u5B9A",
|
|
238
|
+
functionName: "handleSubmit",
|
|
239
|
+
show: !0,
|
|
240
|
+
transKey: "gd.btn.confirm",
|
|
241
|
+
icon: "el-icon-document-checked",
|
|
242
|
+
validate: !0
|
|
243
|
+
}],
|
|
244
|
+
title: "",
|
|
245
|
+
confirmLoading: !1,
|
|
246
|
+
type: 1,
|
|
247
|
+
rules: {
|
|
248
|
+
name: [{
|
|
249
|
+
required: !0,
|
|
250
|
+
message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
|
|
251
|
+
trigger: "change"
|
|
252
|
+
}]
|
|
253
|
+
},
|
|
254
|
+
ruleFormData: {
|
|
255
|
+
id: "",
|
|
256
|
+
sys_userid: "",
|
|
257
|
+
sys_teamid: ""
|
|
258
|
+
},
|
|
259
|
+
dataList: [],
|
|
260
|
+
columnList: [],
|
|
261
|
+
ownerid: "",
|
|
262
|
+
firstLoading: !1,
|
|
263
|
+
firstLoading1: !1
|
|
264
|
+
};
|
|
265
|
+
},
|
|
266
|
+
computed: {
|
|
267
|
+
disableds() {
|
|
268
|
+
return this.typeAdd == 2;
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
methods: {
|
|
272
|
+
lookupSeled(t) {
|
|
273
|
+
this.dataList = [...t.fkData], this.$set(this.ruleFormData, "sys_userid", t.data[0]);
|
|
274
|
+
},
|
|
275
|
+
lookup(t) {
|
|
276
|
+
let e = {
|
|
277
|
+
effectType: "fk",
|
|
278
|
+
fkEntityName: "sys_user",
|
|
279
|
+
val: t || []
|
|
280
|
+
};
|
|
281
|
+
this.$refs.msgSearch.open(e);
|
|
282
|
+
},
|
|
283
|
+
open(t) {
|
|
284
|
+
this.visible = !0, this.fullScreen = !1, this.title = t ? this.$i18nt("gd.https.edit") : this.$i18nt("gd.https.add"), this.type = t ? 2 : 1, this.typeAdd == 2 && this.searchData(this.sys_teamid), t && this.getDetail(t.id);
|
|
285
|
+
},
|
|
286
|
+
getDetail(t) {
|
|
287
|
+
t != "" && (this.dataList = [], $({
|
|
288
|
+
id: t
|
|
289
|
+
}).then((e) => {
|
|
290
|
+
if (e.code == 200) {
|
|
291
|
+
let s = e.data;
|
|
292
|
+
this.dataList.push({
|
|
293
|
+
id: s.sys_userid,
|
|
294
|
+
name: s.username
|
|
295
|
+
}), this.columnList.push({
|
|
296
|
+
id: s.sys_teamid,
|
|
297
|
+
name: s.teamname
|
|
298
|
+
});
|
|
299
|
+
let a = {
|
|
300
|
+
id: s.id,
|
|
301
|
+
sys_userid: s.sys_userid,
|
|
302
|
+
sys_teamid: s.sys_teamid
|
|
303
|
+
};
|
|
304
|
+
this.firstLoading = !0, this.firstLoading1 = !0, this.$nextTick(() => {
|
|
305
|
+
setTimeout(() => {
|
|
306
|
+
this.ruleFormData = a;
|
|
307
|
+
}, 0);
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
}));
|
|
311
|
+
},
|
|
312
|
+
searchData(t) {
|
|
313
|
+
this.columnList = [], l({
|
|
314
|
+
fkEntityName: "sys_team",
|
|
315
|
+
id: t
|
|
316
|
+
}).then((e) => {
|
|
317
|
+
e.code == 200 && (this.ruleFormData.sys_teamid = t, this.columnList = e.data.length > 0 ? e.data : []);
|
|
318
|
+
});
|
|
319
|
+
},
|
|
320
|
+
searchList() {
|
|
321
|
+
this.firstLoading || (this.adminClick(""), this.firstLoading = !0);
|
|
322
|
+
},
|
|
323
|
+
adminClick(t) {
|
|
324
|
+
this.dataList = [], this.fetching = !0, l({
|
|
325
|
+
fkEntityName: "sys_user",
|
|
326
|
+
name: t
|
|
327
|
+
}).then((e) => {
|
|
328
|
+
e.code == 200 && (this.dataList = e.data);
|
|
329
|
+
});
|
|
330
|
+
},
|
|
331
|
+
searchList1() {
|
|
332
|
+
this.firstLoading1 || (this.userClick(""), this.firstLoading1 = !0);
|
|
333
|
+
},
|
|
334
|
+
userClick(t) {
|
|
335
|
+
this.columnList = [], this.fetching = !0, l({
|
|
336
|
+
fkEntityName: "sys_team",
|
|
337
|
+
name: t
|
|
338
|
+
}).then((e) => {
|
|
339
|
+
e.code == 200 && (this.columnList = e.data);
|
|
340
|
+
});
|
|
341
|
+
},
|
|
342
|
+
handleSubmit() {
|
|
343
|
+
this.$refs.ruleForm.validate((t) => {
|
|
344
|
+
t && (this.type == 1 ? this.add(this.ruleFormData) : this.edit(this.ruleFormData));
|
|
345
|
+
});
|
|
346
|
+
},
|
|
347
|
+
add(t) {
|
|
348
|
+
this.confirmLoading = !0, delete t.id, _(t).then((e) => {
|
|
349
|
+
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
|
+
}).finally((e) => {
|
|
351
|
+
this.confirmLoading = !1;
|
|
352
|
+
});
|
|
353
|
+
},
|
|
354
|
+
edit(t) {
|
|
355
|
+
this.confirmLoading = !0, b(t).then((e) => {
|
|
356
|
+
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
|
+
}).finally((e) => {
|
|
358
|
+
this.confirmLoading = !1;
|
|
359
|
+
});
|
|
360
|
+
},
|
|
361
|
+
handleCancel() {
|
|
362
|
+
this.visible = !1, this.confirmLoading = !1, this.firstLoading = !1, this.firstLoading1 = !1, this.$refs.ruleForm.resetFields(), this.ruleFormData = {
|
|
363
|
+
sys_userid: "",
|
|
364
|
+
sys_teamid: ""
|
|
365
|
+
};
|
|
366
|
+
},
|
|
367
|
+
getDictionary(t) {
|
|
368
|
+
return this.$options.filters.dictData(t);
|
|
369
|
+
},
|
|
370
|
+
toggleFullscreen() {
|
|
371
|
+
this.fullScreen = !this.fullScreen;
|
|
372
|
+
},
|
|
373
|
+
doEvent(t) {
|
|
374
|
+
let e = t.item.functionName;
|
|
375
|
+
this[e] && this[e]();
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
var L = function() {
|
|
380
|
+
var e = this, s = e._self._c;
|
|
381
|
+
return s("div", [s("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
|
+
e.visible = a;
|
|
383
|
+
}, closed: e.handleCancel } }, [s("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" }), s("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [s("div", { class: e.fullScreen ? "modal-bodyq" : "modal-body" }, [s("el-form", { ref: "ruleForm", attrs: { rules: e.rules, model: e.ruleFormData, "label-width": "100px" }, nativeOn: { submit: function(a) {
|
|
384
|
+
a.preventDefault();
|
|
385
|
+
} } }, [s("el-row", { attrs: { gutter: 24 } }, [s("el-col", { attrs: { span: 12 } }, [s("el-form-item", { attrs: { label: e.$i18nt("gd.team.member", "\u7528\u6237"), prop: "sys_userid" } }, [s("div", { staticClass: "cao_about" }, [s("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
|
+
e.$set(e.ruleFormData, "sys_userid", a);
|
|
387
|
+
}, expression: "ruleFormData.sys_userid" } }, e._l(e.dataList, function(a, i) {
|
|
388
|
+
return s("el-option", { key: a.id + "&" + i, attrs: { label: a.name, value: a.id } });
|
|
389
|
+
}), 1), s("div", { staticClass: "cao_setting" }, [s("i", { staticClass: "el-input__icon el-icon-search", on: { click: function(a) {
|
|
390
|
+
return e.lookup(e.ruleFormData.sys_userid);
|
|
391
|
+
} } })])], 1)])], 1), s("el-col", { attrs: { span: 12 } }, [s("el-form-item", { attrs: { label: e.$i18nt("gd.team.team", "\u56E2\u961F"), prop: "sys_teamid" } }, [s("div", { staticClass: "cao_about" }, [s("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
|
+
e.$set(e.ruleFormData, "sys_teamid", a);
|
|
393
|
+
}, expression: "ruleFormData.sys_teamid" } }, e._l(e.columnList, function(a, i) {
|
|
394
|
+
return s("el-option", { key: a.id + "&" + i, attrs: { label: a.name, value: a.id } });
|
|
395
|
+
}), 1), s("div", { staticClass: "cao_setting" }, [s("i", { staticClass: "el-input__icon el-icon-search", on: { lookup: function(a) {
|
|
396
|
+
e.ruleFormData.sys_teamid;
|
|
397
|
+
} } })])], 1)])], 1)], 1)], 1)], 1)])], 1), s("gd-search", { ref: "msgSearch", attrs: { appendToBody: !0 }, on: { lookupSeled: e.lookupSeled } })], 1);
|
|
398
|
+
}, T = [], C = /* @__PURE__ */ o(
|
|
399
|
+
F,
|
|
400
|
+
L,
|
|
401
|
+
T,
|
|
402
|
+
!1,
|
|
403
|
+
null,
|
|
404
|
+
"0613082f",
|
|
405
|
+
null,
|
|
406
|
+
null
|
|
407
|
+
);
|
|
408
|
+
const D = C.exports;
|
|
409
|
+
const S = {
|
|
410
|
+
name: "GdTeamMembers",
|
|
411
|
+
mixins: [c, k],
|
|
412
|
+
props: {
|
|
413
|
+
height: {
|
|
414
|
+
type: Number,
|
|
415
|
+
default: 100
|
|
416
|
+
},
|
|
417
|
+
sys_teamid: {
|
|
418
|
+
type: Number,
|
|
419
|
+
default: 0
|
|
420
|
+
},
|
|
421
|
+
type: {
|
|
422
|
+
type: Number,
|
|
423
|
+
default: 1
|
|
424
|
+
},
|
|
425
|
+
openMode: {
|
|
426
|
+
type: Number,
|
|
427
|
+
default: 1
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
data() {
|
|
431
|
+
return {
|
|
432
|
+
transKey: "gd.btn.add",
|
|
433
|
+
selectedRowKeys: [],
|
|
434
|
+
selectedRows: [],
|
|
435
|
+
queryParam: {},
|
|
436
|
+
loadData: (t) => y(Object.assign(t, this.getQueryParam, {
|
|
437
|
+
SysTeamId: this.sys_teamid
|
|
438
|
+
})).then((e) => (console.log(e), e.data))
|
|
439
|
+
};
|
|
440
|
+
},
|
|
441
|
+
computed: {
|
|
442
|
+
getHeight() {
|
|
443
|
+
return this.height;
|
|
444
|
+
},
|
|
445
|
+
getQueryParam() {
|
|
446
|
+
let t = /* @__PURE__ */ new Map();
|
|
447
|
+
for (let e in this.queryParam)
|
|
448
|
+
if (this.queryParam[e] && (e === "msgStatus" || e === "sendType"))
|
|
449
|
+
t.set(e, this.queryParam[e].join(","));
|
|
450
|
+
else if (this.queryParam[e] && (e === "actualOn" || e === "createdTime" || e === "scheduledStartedOn")) {
|
|
451
|
+
if (this.queryParam[e].length > 0) {
|
|
452
|
+
let s = this.queryParam[e], a = s[0].split(" ")[0], i = s[1].split(" ")[0];
|
|
453
|
+
t.set(`${e}Start`, `${a} 00:00:00`), t.set(`${e}End`, `${i} 23:59:59`);
|
|
454
|
+
}
|
|
455
|
+
} else
|
|
456
|
+
t.set(e, this.queryParam[e]);
|
|
457
|
+
return Object.fromEntries(t);
|
|
458
|
+
},
|
|
459
|
+
...m(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
|
|
460
|
+
},
|
|
461
|
+
components: {
|
|
462
|
+
editForm: D
|
|
463
|
+
},
|
|
464
|
+
watch: {
|
|
465
|
+
type(t, e) {
|
|
466
|
+
this.$refs.table && this.$refs.table.refresh();
|
|
467
|
+
},
|
|
468
|
+
sys_teamid(t, e) {
|
|
469
|
+
this.$refs.table && this.$refs.table.refresh();
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
methods: {
|
|
473
|
+
editForm(t) {
|
|
474
|
+
this.transKey = "gd.btn.edit", this.$refs.editForm.open(t);
|
|
475
|
+
},
|
|
476
|
+
add() {
|
|
477
|
+
this.$refs.editForm.open();
|
|
478
|
+
},
|
|
479
|
+
edit() {
|
|
480
|
+
if (this.selectedRowKeys.length === 0) {
|
|
481
|
+
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
482
|
+
return;
|
|
483
|
+
}
|
|
484
|
+
if (this.selectedRowKeys.length > 1) {
|
|
485
|
+
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
486
|
+
return;
|
|
487
|
+
}
|
|
488
|
+
this.editForm(this.selectedRows[0]);
|
|
489
|
+
},
|
|
490
|
+
del() {
|
|
491
|
+
if (this.selectedRowKeys.length === 0) {
|
|
492
|
+
this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));
|
|
493
|
+
return;
|
|
494
|
+
}
|
|
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
|
+
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
|
+
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
501
|
+
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
502
|
+
showClose: !1,
|
|
503
|
+
confirmButtonLoading: !1,
|
|
504
|
+
cancelButtonLoading: !1,
|
|
505
|
+
closeOnClickModal: !1,
|
|
506
|
+
type: "warning",
|
|
507
|
+
confirmButtonClass: "el-button--danger",
|
|
508
|
+
customClass: "custom-alert",
|
|
509
|
+
callback: () => {
|
|
510
|
+
},
|
|
511
|
+
beforeClose: (t, e, s) => {
|
|
512
|
+
this.delHand(t, e, s);
|
|
513
|
+
}
|
|
514
|
+
});
|
|
515
|
+
},
|
|
516
|
+
delHand(t, e, s) {
|
|
517
|
+
if (t !== "confirm") {
|
|
518
|
+
s();
|
|
519
|
+
return;
|
|
520
|
+
}
|
|
521
|
+
let a = [];
|
|
522
|
+
this.selectedRows.forEach((i) => {
|
|
523
|
+
let n = w({
|
|
524
|
+
id: i.id
|
|
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;
|
|
530
|
+
});
|
|
531
|
+
},
|
|
532
|
+
onSelectChange(t, e) {
|
|
533
|
+
this.selectedRowKeys = t, this.selectedRows = e;
|
|
534
|
+
},
|
|
535
|
+
handleOk() {
|
|
536
|
+
this.refresh();
|
|
537
|
+
},
|
|
538
|
+
refresh() {
|
|
539
|
+
this.$refs.table.refresh();
|
|
540
|
+
},
|
|
541
|
+
dictSwitch(t, e) {
|
|
542
|
+
let s = this.$options.filters.dictData(e).filter((a) => a.code == t)[0];
|
|
543
|
+
return s != null && s.colour ? s.colour : null;
|
|
544
|
+
},
|
|
545
|
+
doEvent(t) {
|
|
546
|
+
let e = t.item.functionName;
|
|
547
|
+
this[e] && this[e]();
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
};
|
|
551
|
+
var x = function() {
|
|
552
|
+
var e = this, s = e._self._c;
|
|
553
|
+
return s("div", { staticClass: "gd-page-view" }, [s("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [s("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, filtering: !1 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
|
|
554
|
+
return [s("div", { staticClass: "gd-table-operator" }, [s("div", { staticClass: "gd-table-operatorr" }, [s("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
|
|
555
|
+
}, proxy: !0 }, { key: "sys_teamid", fn: function({ column: a, row: i }) {
|
|
556
|
+
return [s("gd-tooltip", { attrs: { rowKey: "teamname", row: i, highlight: "" }, on: { click: e.editForm } })];
|
|
557
|
+
} }, { key: "sys_userid", fn: function({ column: a, row: i }) {
|
|
558
|
+
return [i.sys_userid ? s("span", [e._v(" " + e._s(i.username) + " ")]) : e._e()];
|
|
559
|
+
} }]) })], 1), s("editForm", { ref: "editForm", attrs: { openPermissions: !0, sys_teamid: e.sys_teamid, typeAdd: e.type, openMode: e.openMode }, on: { ok: e.handleOk } })], 1);
|
|
560
|
+
}, B = [], N = /* @__PURE__ */ o(
|
|
561
|
+
S,
|
|
562
|
+
x,
|
|
563
|
+
B,
|
|
564
|
+
!1,
|
|
565
|
+
null,
|
|
566
|
+
"65460067",
|
|
567
|
+
null,
|
|
568
|
+
null
|
|
569
|
+
);
|
|
570
|
+
const K = N.exports;
|
|
571
|
+
const P = {
|
|
572
|
+
props: {
|
|
573
|
+
modalAppendToBody: {
|
|
574
|
+
type: Boolean,
|
|
575
|
+
default: !0
|
|
576
|
+
},
|
|
577
|
+
appendToBody: {
|
|
578
|
+
type: Boolean,
|
|
579
|
+
default: !0
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
data() {
|
|
583
|
+
return {
|
|
584
|
+
width: "60%",
|
|
585
|
+
visible: !1,
|
|
586
|
+
fullScreen: !1,
|
|
587
|
+
sysViewButtons: [{
|
|
588
|
+
displayName: "\u786E\u5B9A",
|
|
589
|
+
functionName: "handleSubmit",
|
|
590
|
+
show: !0,
|
|
591
|
+
transKey: "gd.btn.confirm",
|
|
592
|
+
icon: "el-icon-document-checked",
|
|
593
|
+
validate: !0
|
|
594
|
+
}],
|
|
595
|
+
confirmLoading: !1,
|
|
596
|
+
type: 0,
|
|
597
|
+
rules: {
|
|
598
|
+
name: [{
|
|
599
|
+
required: !0,
|
|
600
|
+
message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
|
|
601
|
+
trigger: "change"
|
|
602
|
+
}],
|
|
603
|
+
administratorid: [{
|
|
604
|
+
required: !0,
|
|
605
|
+
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
606
|
+
trigger: "change"
|
|
607
|
+
}]
|
|
608
|
+
},
|
|
609
|
+
ruleFormData: {
|
|
610
|
+
id: "",
|
|
611
|
+
name: "",
|
|
612
|
+
administratorid: "",
|
|
613
|
+
teamtype: "2",
|
|
614
|
+
description: ""
|
|
615
|
+
},
|
|
616
|
+
dataList: [],
|
|
617
|
+
columnList: [],
|
|
618
|
+
ownerid: "",
|
|
619
|
+
firstLoading: !1
|
|
620
|
+
};
|
|
621
|
+
},
|
|
622
|
+
computed: {
|
|
623
|
+
detailShow() {
|
|
624
|
+
return !!this.ruleFormData.id;
|
|
625
|
+
},
|
|
626
|
+
title() {
|
|
627
|
+
return this.ruleFormData.id ? this.$i18nt("gd.https.edit") : this.$i18nt("gd.https.add");
|
|
628
|
+
}
|
|
629
|
+
},
|
|
630
|
+
components: {
|
|
631
|
+
teamMemberDetail: K
|
|
632
|
+
},
|
|
633
|
+
methods: {
|
|
634
|
+
lookupSeled(t) {
|
|
635
|
+
this.dataList = [...t.fkData], this.$set(this.ruleFormData, "administratorid", t.data[0]);
|
|
636
|
+
},
|
|
637
|
+
lookup(t) {
|
|
638
|
+
let e = {
|
|
639
|
+
effectType: "fk",
|
|
640
|
+
fkEntityName: "sys_user",
|
|
641
|
+
val: t || []
|
|
642
|
+
};
|
|
643
|
+
this.$refs.msgSearch.open(e);
|
|
644
|
+
},
|
|
645
|
+
open(t) {
|
|
646
|
+
this.visible = !0, this.fullScreen = !1, this.type = t ? 2 : 1, this.ruleFormData.id = t ? t.id : "", t && this.getDetail(t.id);
|
|
647
|
+
},
|
|
648
|
+
getDetail(t) {
|
|
649
|
+
t != "" && (this.dataList = [], g({
|
|
650
|
+
id: t
|
|
651
|
+
}).then((e) => {
|
|
652
|
+
if (e.code == 200) {
|
|
653
|
+
let s = e.data;
|
|
654
|
+
this.dataList.push({
|
|
655
|
+
id: s.administratorid,
|
|
656
|
+
name: s.administratorname
|
|
657
|
+
}), this.columnList.push({
|
|
658
|
+
id: s.ownerid,
|
|
659
|
+
name: s.ownername
|
|
660
|
+
});
|
|
661
|
+
let a = {
|
|
662
|
+
id: s.id,
|
|
663
|
+
name: s.name,
|
|
664
|
+
teamtype: s.teamtype ? s.teamtype.toString() : "",
|
|
665
|
+
description: s.description,
|
|
666
|
+
administratorid: s.administratorid
|
|
667
|
+
};
|
|
668
|
+
this.firstLoading = !0, this.$nextTick(() => {
|
|
669
|
+
setTimeout(() => {
|
|
670
|
+
this.ruleFormData = a, this.ownerid = s.ownerid;
|
|
671
|
+
}, 0);
|
|
672
|
+
});
|
|
673
|
+
}
|
|
674
|
+
}));
|
|
675
|
+
},
|
|
676
|
+
searchData(t) {
|
|
677
|
+
this.dataList = [], l({
|
|
678
|
+
fkEntityName: "sys_user",
|
|
679
|
+
id: t.administratorid
|
|
680
|
+
}).then((e) => {
|
|
681
|
+
e.code == 200 && (this.firstLoading = !0, e.data.length > 0 ? this.dataList = e.data : this.dataList.push({
|
|
682
|
+
id: t.administratorid,
|
|
683
|
+
name: t.administratorname
|
|
684
|
+
}));
|
|
685
|
+
});
|
|
686
|
+
},
|
|
687
|
+
searchList() {
|
|
688
|
+
this.firstLoading || (this.adminClick(""), this.firstLoading = !0);
|
|
689
|
+
},
|
|
690
|
+
adminClick(t) {
|
|
691
|
+
this.dataList = [], this.fetching = !0, l({
|
|
692
|
+
fkEntityName: "sys_user",
|
|
693
|
+
name: t
|
|
694
|
+
}).then((e) => {
|
|
695
|
+
e.code == 200 && (this.dataList = e.data);
|
|
696
|
+
});
|
|
697
|
+
},
|
|
698
|
+
handleSubmit() {
|
|
699
|
+
this.$refs.ruleForm.validate((t) => {
|
|
700
|
+
t && (console.log(this.type), this.type == 1 ? this.add(this.ruleFormData) : this.edit(this.ruleFormData));
|
|
701
|
+
});
|
|
702
|
+
},
|
|
703
|
+
add(t) {
|
|
704
|
+
this.confirmLoading = !0, delete t.id, h(t).then((e) => {
|
|
705
|
+
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
|
+
}).finally((e) => {
|
|
707
|
+
this.confirmLoading = !1;
|
|
708
|
+
});
|
|
709
|
+
},
|
|
710
|
+
edit(t) {
|
|
711
|
+
this.confirmLoading = !0, f(t).then((e) => {
|
|
712
|
+
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
|
+
}).finally((e) => {
|
|
714
|
+
this.confirmLoading = !1;
|
|
715
|
+
});
|
|
716
|
+
},
|
|
717
|
+
handleCancel() {
|
|
718
|
+
this.visible = !1, this.confirmLoading = !1, this.$refs.ruleForm.resetFields(), this.ruleFormData = {
|
|
719
|
+
id: "",
|
|
720
|
+
name: "",
|
|
721
|
+
administratorid: "",
|
|
722
|
+
teamtype: "2",
|
|
723
|
+
description: ""
|
|
724
|
+
}, this.ownerid = "", this.type = 1;
|
|
725
|
+
},
|
|
726
|
+
getDictionary(t) {
|
|
727
|
+
return this.$options.filters.dictData(t);
|
|
728
|
+
},
|
|
729
|
+
toggleFullscreen() {
|
|
730
|
+
this.fullScreen = !this.fullScreen;
|
|
731
|
+
},
|
|
732
|
+
doEvent(t) {
|
|
733
|
+
let e = t.item.functionName;
|
|
734
|
+
this[e] && this[e]();
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
};
|
|
738
|
+
var R = function() {
|
|
739
|
+
var e = this, s = e._self._c;
|
|
740
|
+
return s("div", [s("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
|
+
e.visible = a;
|
|
742
|
+
}, closed: e.handleCancel } }, [s("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" }), s("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [s("div", { class: e.fullScreen ? "modal-bodyq" : "modal-body" }, [s("el-form", { ref: "ruleForm", attrs: { rules: e.rules, model: e.ruleFormData, "label-width": "100px" }, nativeOn: { submit: function(a) {
|
|
743
|
+
a.preventDefault();
|
|
744
|
+
} } }, [s("el-row", { attrs: { gutter: 24 } }, [s("el-col", { attrs: { span: 12 } }, [s("el-form-item", { attrs: { label: e.$i18nt("gd.team.name", "\u540D\u79F0"), prop: "name" } }, [s("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleFormData.name, callback: function(a) {
|
|
745
|
+
e.$set(e.ruleFormData, "name", a);
|
|
746
|
+
}, expression: "ruleFormData.name" } })], 1)], 1), s("el-col", { attrs: { span: 12 } }, [s("el-form-item", { attrs: { label: e.$i18nt("gd.team.teamtype", "\u56E2\u961F\u7C7B\u578B"), prop: "teamtype" } }, [s("el-select", { staticStyle: { width: "100%" }, attrs: { disabled: "", placeholder: e.$i18nt("gd.placeholder.select"), clearable: "" }, model: { value: e.ruleFormData.teamtype, callback: function(a) {
|
|
747
|
+
e.$set(e.ruleFormData, "teamtype", a);
|
|
748
|
+
}, expression: "ruleFormData.teamtype" } }, e._l(e.getDictionary("teamtype"), function(a, i) {
|
|
749
|
+
return s("el-option", { key: i, attrs: { value: a.code, label: e.$i18nt(`Dynamics.${a.transkey}`, a.name) } });
|
|
750
|
+
}), 1)], 1)], 1)], 1), s("el-row", { attrs: { gutter: 24 } }, [s("el-col", { attrs: { span: 12 } }, [s("el-form-item", { attrs: { label: e.$i18nt("gd.team.amdmin", "\u7BA1\u7406\u5458"), prop: "administratorid" } }, [s("div", { staticClass: "cao_about" }, [s("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
|
+
e.$set(e.ruleFormData, "administratorid", a);
|
|
752
|
+
}, expression: "ruleFormData.administratorid" } }, e._l(e.dataList, function(a, i) {
|
|
753
|
+
return s("el-option", { key: a.id + "&" + i, attrs: { label: a.name, value: a.id } });
|
|
754
|
+
}), 1), s("div", { staticClass: "cao_setting" }, [s("i", { staticClass: "el-input__icon el-icon-search", on: { click: function(a) {
|
|
755
|
+
return e.lookup(e.ruleFormData.administratorid);
|
|
756
|
+
} } })])], 1)])], 1), s("el-col", { attrs: { span: 12 } }, [s("el-form-item", { attrs: { label: e.$i18nt("gd.team.owner", "\u8D1F\u8D23\u4EBA") } }, [s("div", { staticClass: "cao_about" }, [s("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
|
+
e.ownerid = a;
|
|
758
|
+
}, expression: "ownerid" } }, e._l(e.columnList, function(a, i) {
|
|
759
|
+
return s("el-option", { key: i, attrs: { label: a.name, value: a.id } });
|
|
760
|
+
}), 1), s("div", { staticClass: "cao_setting" }, [s("i", { staticClass: "el-input__icon el-icon-search cao_setting-disabled" })])], 1)])], 1)], 1), s("el-row", { attrs: { gutter: 24 } }, [s("el-col", { attrs: { span: 24 } }, [s("el-form-item", { attrs: { label: e.$i18nt("gd.team.describe", "\u63CF\u8FF0"), prop: "description" } }, [s("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
|
+
e.$set(e.ruleFormData, "description", a);
|
|
762
|
+
}, expression: "ruleFormData.description" } })], 1)], 1)], 1)], 1)], 1), e.detailShow ? s("el-card", { attrs: { shadow: "never" } }, [s("div", [e._v(e._s(e.$i18nt("gd.team.teamMember", "\u56E2\u961F\u6210\u5458")))]), s("teamMemberDetail", { attrs: { sys_teamid: Number(e.ruleFormData.id), type: e.type, openMode: 2, height: 200 } })], 1) : e._e()], 1)], 1), s("gd-search", { ref: "msgSearch", attrs: { appendToBody: !0 }, on: { lookupSeled: e.lookupSeled } })], 1);
|
|
763
|
+
}, E = [], O = /* @__PURE__ */ o(
|
|
764
|
+
P,
|
|
765
|
+
R,
|
|
766
|
+
E,
|
|
767
|
+
!1,
|
|
768
|
+
null,
|
|
769
|
+
"837be327",
|
|
770
|
+
null,
|
|
771
|
+
null
|
|
772
|
+
);
|
|
773
|
+
const q = O.exports;
|
|
774
|
+
const M = {
|
|
775
|
+
name: "GdTeam",
|
|
776
|
+
mixins: [c, v],
|
|
777
|
+
props: {
|
|
778
|
+
height: {
|
|
779
|
+
type: Number,
|
|
780
|
+
default: 100
|
|
781
|
+
}
|
|
782
|
+
},
|
|
783
|
+
data() {
|
|
784
|
+
return {
|
|
785
|
+
transKey: "gd.btn.add",
|
|
786
|
+
selectedRowKeys: [],
|
|
787
|
+
selectedRows: [],
|
|
788
|
+
queryParam: {},
|
|
789
|
+
loadData: (t) => u(Object.assign(t, this.getQueryParam)).then((e) => e.data)
|
|
790
|
+
};
|
|
791
|
+
},
|
|
792
|
+
components: {
|
|
793
|
+
editForm: q
|
|
794
|
+
},
|
|
795
|
+
computed: {
|
|
796
|
+
getHeight() {
|
|
797
|
+
return this.height;
|
|
798
|
+
},
|
|
799
|
+
getQueryParam() {
|
|
800
|
+
let t = /* @__PURE__ */ new Map();
|
|
801
|
+
for (let e in this.queryParam)
|
|
802
|
+
if (this.queryParam[e] && (e === "msgStatus" || e === "sendType"))
|
|
803
|
+
t.set(e, this.queryParam[e].join(","));
|
|
804
|
+
else if (this.queryParam[e] && (e === "actualOn" || e === "createdTime" || e === "scheduledStartedOn")) {
|
|
805
|
+
if (this.queryParam[e].length > 0) {
|
|
806
|
+
let s = this.queryParam[e], a = s[0].split(" ")[0], i = s[1].split(" ")[0];
|
|
807
|
+
t.set(`${e}Start`, `${a} 00:00:00`), t.set(`${e}End`, `${i} 23:59:59`);
|
|
808
|
+
}
|
|
809
|
+
} else
|
|
810
|
+
t.set(e, this.queryParam[e]);
|
|
811
|
+
return Object.fromEntries(t);
|
|
812
|
+
},
|
|
813
|
+
...m(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
|
|
814
|
+
},
|
|
815
|
+
methods: {
|
|
816
|
+
editForm(t) {
|
|
817
|
+
this.transKey = "gd.btn.edit", this.$refs.editForm.open(t);
|
|
818
|
+
},
|
|
819
|
+
add() {
|
|
820
|
+
this.$refs.editForm.open();
|
|
821
|
+
},
|
|
822
|
+
edit() {
|
|
823
|
+
if (this.selectedRowKeys.length === 0) {
|
|
824
|
+
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
825
|
+
return;
|
|
826
|
+
}
|
|
827
|
+
if (this.selectedRowKeys.length > 1) {
|
|
828
|
+
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
829
|
+
return;
|
|
830
|
+
}
|
|
831
|
+
this.editForm(this.selectedRows[0]);
|
|
832
|
+
},
|
|
833
|
+
del() {
|
|
834
|
+
if (this.selectedRowKeys.length === 0) {
|
|
835
|
+
this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));
|
|
836
|
+
return;
|
|
837
|
+
}
|
|
838
|
+
if (this.selectedRowKeys.length > 1) {
|
|
839
|
+
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
840
|
+
return;
|
|
841
|
+
}
|
|
842
|
+
this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
843
|
+
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
844
|
+
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
845
|
+
showClose: !1,
|
|
846
|
+
confirmButtonLoading: !1,
|
|
847
|
+
cancelButtonLoading: !1,
|
|
848
|
+
closeOnClickModal: !1,
|
|
849
|
+
type: "warning",
|
|
850
|
+
confirmButtonClass: "el-button--danger",
|
|
851
|
+
customClass: "custom-alert",
|
|
852
|
+
callback: () => {
|
|
853
|
+
},
|
|
854
|
+
beforeClose: (t, e, s) => {
|
|
855
|
+
this.delHand(t, e, s);
|
|
856
|
+
}
|
|
857
|
+
});
|
|
858
|
+
},
|
|
859
|
+
delHand(t, e, s) {
|
|
860
|
+
if (t !== "confirm") {
|
|
861
|
+
s();
|
|
862
|
+
return;
|
|
863
|
+
}
|
|
864
|
+
let a = [];
|
|
865
|
+
this.selectedRows.forEach((i) => {
|
|
866
|
+
let n = p({
|
|
867
|
+
id: i.id
|
|
868
|
+
}).then((r) => r);
|
|
869
|
+
a.push(n);
|
|
870
|
+
}), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(a).then((i) => {
|
|
871
|
+
const n = i.filter((r) => !r.success);
|
|
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), s(), this.refresh(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
|
|
873
|
+
});
|
|
874
|
+
},
|
|
875
|
+
onSelectChange(t, e) {
|
|
876
|
+
this.selectedRowKeys = t, this.selectedRows = e;
|
|
877
|
+
},
|
|
878
|
+
handleOk() {
|
|
879
|
+
this.refresh();
|
|
880
|
+
},
|
|
881
|
+
refresh() {
|
|
882
|
+
this.$refs.table.refresh();
|
|
883
|
+
},
|
|
884
|
+
dictSwitch(t, e) {
|
|
885
|
+
let s = this.$options.filters.dictData(e).filter((a) => a.code == t)[0];
|
|
886
|
+
return s != null && s.colour ? s.colour : null;
|
|
887
|
+
},
|
|
888
|
+
doEvent(t) {
|
|
889
|
+
let e = t.item.functionName;
|
|
890
|
+
this[e] && this[e]();
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
};
|
|
894
|
+
var z = function() {
|
|
895
|
+
var e = this, s = e._self._c;
|
|
896
|
+
return s("div", { staticClass: "gd-page-view" }, [s("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [s("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, filtering: !1 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
|
|
897
|
+
return [s("div", { staticClass: "gd-table-operator" }, [s("div", { staticClass: "gd-table-operatorr" }, [s("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
|
|
898
|
+
}, proxy: !0 }, { key: "name", fn: function({ column: a, row: i }) {
|
|
899
|
+
return [s("gd-tooltip", { attrs: { rowKey: "name", row: i, highlight: "" }, on: { click: e.editForm } })];
|
|
900
|
+
} }, { key: "administratorid", fn: function({ column: a, row: i }) {
|
|
901
|
+
return [i.administratorname ? s("span", [e._v(" " + e._s(i.administratorname) + " ")]) : e._e()];
|
|
902
|
+
} }, { key: "teamtype", fn: function(a) {
|
|
903
|
+
return [e.dictSwitch(a.row.teamtype, "teamtype") ? s("el-tag", { style: e._f("dictColor")("teamtype", a.row.teamtype), attrs: { effect: "dark" } }, [e._v(" " + e._s(e._f("dictType")("teamtype", a.row.teamtype)) + " ")]) : s("span", [e._v(e._s(e._f("dictType")("teamtype", a.row.teamtype)))])];
|
|
904
|
+
} }]) })], 1), s("editForm", { ref: "editForm", attrs: { openPermissions: !0 }, on: { ok: e.handleOk } })], 1);
|
|
905
|
+
}, A = [], H = /* @__PURE__ */ o(
|
|
906
|
+
M,
|
|
907
|
+
z,
|
|
908
|
+
A,
|
|
909
|
+
!1,
|
|
910
|
+
null,
|
|
911
|
+
"f62d65e6",
|
|
912
|
+
null,
|
|
913
|
+
null
|
|
914
|
+
);
|
|
915
|
+
const d = H.exports;
|
|
916
|
+
d.install = function(t) {
|
|
917
|
+
t.component(d.name, d);
|
|
918
|
+
};
|
|
919
|
+
export {
|
|
920
|
+
d as G,
|
|
921
|
+
_ as a,
|
|
922
|
+
b,
|
|
923
|
+
y as c,
|
|
924
|
+
w as d,
|
|
925
|
+
$ as s
|
|
926
|
+
};
|