gds-plus-design-vue 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{chartbi.06e48153.js → chartbi.5eded588.js} +20 -20
- package/lib/{chartbi.cdd1e365.mjs → chartbi.c3bc6adb.mjs} +17 -9
- package/lib/gd-initial.js +16 -16
- package/lib/gd-initial.mjs +6428 -3567
- package/lib/main.00e2ba37.mjs +123 -0
- package/lib/main.55fab1ce.mjs +198 -0
- package/lib/main.7e1495ec.js +1 -0
- package/lib/{main.4aebe1c9.js → main.9c85b10c.js} +1 -1
- package/lib/main.a27e1e54.js +1 -0
- package/lib/{main.9801708f.js → main.a794f7cf.js} +1 -1
- package/lib/{main.a30b25d6.mjs → main.b25a9b4c.mjs} +6 -6
- package/lib/{main.eb4b260e.mjs → main.b4ad6d81.mjs} +3 -3
- package/lib/{messages.a1335b0f.mjs → messages.bc3bc0e8.mjs} +77 -77
- package/lib/{messages.30e41348.js → messages.fa3d97b5.js} +2 -2
- package/lib/style.css +2 -2
- package/lib/{system.account.20f9e450.mjs → system.account.868f96f9.mjs} +18 -18
- package/lib/{system.account.1ff630c9.js → system.account.e82580de.js} +1 -1
- package/lib/{system.config.532ab3b8.js → system.config.6aae9ea6.js} +1 -1
- package/lib/{system.config.c85c05e9.mjs → system.config.71615d2b.mjs} +2 -2
- package/lib/{system.datasource.f64a59de.mjs → system.datasource.009a1673.mjs} +2 -2
- package/lib/{system.datasource.272f1add.js → system.datasource.523ae242.js} +1 -1
- package/lib/{system.dict.a23e8cdf.js → system.dict.0111a3bc.js} +1 -1
- package/lib/{system.dict.565d69ca.mjs → system.dict.8f562e89.mjs} +2 -2
- package/lib/{system.duplicatechecking.f66790d1.js → system.duplicatechecking.1865e065.js} +1 -1
- package/lib/{system.duplicatechecking.268544dd.mjs → system.duplicatechecking.f517abed.mjs} +2 -2
- package/lib/{system.email.ada25702.mjs → system.email.4c484530.mjs} +2 -2
- package/lib/{system.email.00a93855.js → system.email.70351605.js} +1 -1
- package/lib/{system.fieldsecurity.d14384cc.mjs → system.fieldsecurity.9f9f73df.mjs} +1 -1
- package/lib/{system.fieldsecurity.ede73621.js → system.fieldsecurity.d11088e3.js} +1 -1
- package/lib/{system.file.aa567566.js → system.file.001a01bc.js} +1 -1
- package/lib/{system.file.a23b3c83.mjs → system.file.96b3ce1e.mjs} +2 -2
- package/lib/{system.log.8a9f4a4d.mjs → system.log.80feb1c4.mjs} +2 -2
- package/lib/{system.log.b3666991.js → system.log.f7afb251.js} +1 -1
- package/lib/{system.machine.fc392d7f.mjs → system.machine.52e8a4f3.mjs} +1 -1
- package/lib/{system.machine.7fa3e3d1.js → system.machine.6e46b7a3.js} +1 -1
- package/lib/system.notice.365ddd35.js +1 -0
- package/lib/{system.notice.6d0aa32c.mjs → system.notice.b4247147.mjs} +240 -224
- package/lib/{system.noticereceived.e5ef5883.js → system.noticereceived.5545acf8.js} +1 -1
- package/lib/{system.noticereceived.70963f1b.mjs → system.noticereceived.eef2cf6e.mjs} +5 -4
- package/lib/{system.onlineuser.c58fb6ce.mjs → system.onlineuser.de5f62bf.mjs} +2 -2
- package/lib/{system.onlineuser.99e4de37.js → system.onlineuser.fd9fdc66.js} +1 -1
- package/lib/{system.org.638db6d1.mjs → system.org.94393315.mjs} +3 -3
- package/lib/{system.org.56151be8.js → system.org.d22168d6.js} +1 -1
- package/lib/{system.permissions.fcd56f67.js → system.permissions.3c5c3573.js} +1 -1
- package/lib/{system.permissions.aa0cc0d6.mjs → system.permissions.ccbe352d.mjs} +3 -3
- package/lib/{system.plugin.b17efa53.js → system.plugin.5d47e679.js} +1 -1
- package/lib/{system.plugin.beb44900.mjs → system.plugin.8caa5d1f.mjs} +2 -2
- package/lib/{system.pos.e8d9c488.js → system.pos.caaef4fc.js} +1 -1
- package/lib/{system.pos.699e8dd6.mjs → system.pos.e4be69c4.mjs} +2 -2
- package/lib/{system.promptmanagement.2ce3e426.mjs → system.promptmanagement.1ad89863.mjs} +2 -2
- package/lib/{system.promptmanagement.109a07f5.js → system.promptmanagement.e73f64a2.js} +1 -1
- package/lib/{system.role.230b1445.mjs → system.role.0323ddd5.mjs} +220 -206
- package/lib/{system.role.f0d4082c.js → system.role.b5b55ddd.js} +1 -1
- package/lib/{system.sumberrules.38017ad1.js → system.sumberrules.2babdd81.js} +1 -1
- package/lib/{system.sumberrules.fa1aab86.mjs → system.sumberrules.42965c1e.mjs} +2 -2
- package/lib/{system.team.aeaede22.mjs → system.team.28168433.mjs} +80 -49
- package/lib/system.team.a3527834.js +1 -0
- package/lib/{system.teammembers.2e3309c3.mjs → system.teammembers.08f3ce38.mjs} +3 -3
- package/lib/{system.teammembers.29128f16.js → system.teammembers.4b11e49b.js} +1 -1
- package/lib/{system.timers.0ec63785.mjs → system.timers.040b9bce.mjs} +2 -2
- package/lib/{system.timers.b62568ad.js → system.timers.310b3710.js} +1 -1
- package/lib/{system.translation.887fa90d.js → system.translation.a4396166.js} +1 -1
- package/lib/{system.translation.e71455aa.mjs → system.translation.c0068d8f.mjs} +3 -3
- package/lib/{system.user.bed5f82a.js → system.user.20a5e7b4.js} +5 -5
- package/lib/{system.user.84227a85.mjs → system.user.84e77277.mjs} +53 -23
- package/lib/{system.useraffiliation.7ec0fcae.js → system.useraffiliation.307e3cd7.js} +1 -1
- package/lib/{system.useraffiliation.b3f03a33.mjs → system.useraffiliation.fb961d98.mjs} +3 -3
- package/lib/{system.webresource.f8b78dd0.js → system.webresource.0382b6b1.js} +1 -1
- package/lib/{system.webresource.e6cb9173.mjs → system.webresource.2d0ab7a6.mjs} +3 -3
- package/lib/{system.welcome.472f099b.js → system.welcome.67d20fa4.js} +1 -1
- package/lib/{system.welcome.120f4b50.mjs → system.welcome.aaac4a40.mjs} +1 -1
- package/locale/en_US.js +47 -8
- package/locale/id_ID.js +45 -7
- package/locale/vi_VN.js +45 -7
- package/locale/zh_CN.js +40 -2
- package/package.json +1 -1
- package/lib/main.05252737.mjs +0 -87
- package/lib/main.458dc0a0.js +0 -1
- package/lib/system.notice.5fb1485e.js +0 -1
- package/lib/system.team.3826e252.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as o, m } from "./chartbi.
|
|
2
|
-
import { f as l, t as
|
|
1
|
+
import { n as o, m as c } from "./chartbi.c3bc6adb.mjs";
|
|
2
|
+
import { f as l, t as m } from "./messages.bc3bc0e8.mjs";
|
|
3
3
|
function u(t) {
|
|
4
4
|
return window.axios({
|
|
5
5
|
url: "/sysTeam/page",
|
|
@@ -51,26 +51,33 @@ function _(t) {
|
|
|
51
51
|
}
|
|
52
52
|
function b(t) {
|
|
53
53
|
return window.axios({
|
|
54
|
-
url: "/sysTeam/member/
|
|
54
|
+
url: "/sysTeam/member/batchadd",
|
|
55
55
|
method: "post",
|
|
56
56
|
data: t
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
function w(t) {
|
|
60
60
|
return window.axios({
|
|
61
|
-
url: "/sysTeam/member/
|
|
61
|
+
url: "/sysTeam/member/edit",
|
|
62
62
|
method: "post",
|
|
63
63
|
data: t
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
function $(t) {
|
|
67
|
+
return window.axios({
|
|
68
|
+
url: "/sysTeam/member/delete",
|
|
69
|
+
method: "post",
|
|
70
|
+
data: t
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function v(t) {
|
|
67
74
|
return window.axios({
|
|
68
75
|
url: "/sysTeam/member/detail",
|
|
69
76
|
method: "get",
|
|
70
77
|
params: t
|
|
71
78
|
});
|
|
72
79
|
}
|
|
73
|
-
const
|
|
80
|
+
const k = {
|
|
74
81
|
data() {
|
|
75
82
|
return {
|
|
76
83
|
tableColumns: [
|
|
@@ -147,7 +154,7 @@ const v = {
|
|
|
147
154
|
]
|
|
148
155
|
};
|
|
149
156
|
}
|
|
150
|
-
},
|
|
157
|
+
}, F = {
|
|
151
158
|
data() {
|
|
152
159
|
return {
|
|
153
160
|
tableColumns: [
|
|
@@ -205,7 +212,7 @@ const v = {
|
|
|
205
212
|
};
|
|
206
213
|
}
|
|
207
214
|
};
|
|
208
|
-
const
|
|
215
|
+
const L = {
|
|
209
216
|
props: {
|
|
210
217
|
modalAppendToBody: {
|
|
211
218
|
type: Boolean,
|
|
@@ -284,7 +291,7 @@ const F = {
|
|
|
284
291
|
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
292
|
},
|
|
286
293
|
getDetail(t) {
|
|
287
|
-
t != "" && (this.dataList = [],
|
|
294
|
+
t != "" && (this.dataList = [], v({
|
|
288
295
|
id: t
|
|
289
296
|
}).then((e) => {
|
|
290
297
|
if (e.code == 200) {
|
|
@@ -352,7 +359,7 @@ const F = {
|
|
|
352
359
|
});
|
|
353
360
|
},
|
|
354
361
|
edit(t) {
|
|
355
|
-
this.confirmLoading = !0,
|
|
362
|
+
this.confirmLoading = !0, w(t).then((e) => {
|
|
356
363
|
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
364
|
}).finally((e) => {
|
|
358
365
|
this.confirmLoading = !1;
|
|
@@ -376,7 +383,7 @@ const F = {
|
|
|
376
383
|
}
|
|
377
384
|
}
|
|
378
385
|
};
|
|
379
|
-
var
|
|
386
|
+
var S = function() {
|
|
380
387
|
var e = this, s = e._self._c;
|
|
381
388
|
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
389
|
e.visible = a;
|
|
@@ -396,8 +403,8 @@ var L = function() {
|
|
|
396
403
|
e.ruleFormData.sys_teamid;
|
|
397
404
|
} } })])], 1)])], 1)], 1)], 1)], 1)])], 1), s("gd-search", { ref: "msgSearch", attrs: { appendToBody: !0 }, on: { lookupSeled: e.lookupSeled } })], 1);
|
|
398
405
|
}, T = [], C = /* @__PURE__ */ o(
|
|
399
|
-
F,
|
|
400
406
|
L,
|
|
407
|
+
S,
|
|
401
408
|
T,
|
|
402
409
|
!1,
|
|
403
410
|
null,
|
|
@@ -406,9 +413,9 @@ var L = function() {
|
|
|
406
413
|
null
|
|
407
414
|
);
|
|
408
415
|
const D = C.exports;
|
|
409
|
-
const
|
|
416
|
+
const x = {
|
|
410
417
|
name: "GdTeamMembers",
|
|
411
|
-
mixins: [
|
|
418
|
+
mixins: [m, F],
|
|
412
419
|
props: {
|
|
413
420
|
height: {
|
|
414
421
|
type: Number,
|
|
@@ -433,9 +440,10 @@ const S = {
|
|
|
433
440
|
selectedRowKeys: [],
|
|
434
441
|
selectedRows: [],
|
|
435
442
|
queryParam: {},
|
|
443
|
+
disabledRowId: [],
|
|
436
444
|
loadData: (t) => y(Object.assign(t, this.getQueryParam, {
|
|
437
445
|
SysTeamId: this.sys_teamid
|
|
438
|
-
})).then((e) => (
|
|
446
|
+
})).then((e) => (this.disabledRowId = e.data.rows.map((s) => s.sys_userid), e.data))
|
|
439
447
|
};
|
|
440
448
|
},
|
|
441
449
|
computed: {
|
|
@@ -456,7 +464,7 @@ const S = {
|
|
|
456
464
|
t.set(e, this.queryParam[e]);
|
|
457
465
|
return Object.fromEntries(t);
|
|
458
466
|
},
|
|
459
|
-
...
|
|
467
|
+
...c(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
|
|
460
468
|
},
|
|
461
469
|
components: {
|
|
462
470
|
editForm: D
|
|
@@ -470,11 +478,34 @@ const S = {
|
|
|
470
478
|
}
|
|
471
479
|
},
|
|
472
480
|
methods: {
|
|
481
|
+
lookupSeled(t) {
|
|
482
|
+
if (t.fkData.length === 0) {
|
|
483
|
+
this.$refs.msgSearch.closed();
|
|
484
|
+
return;
|
|
485
|
+
}
|
|
486
|
+
this.$refs.msgSearch.confirmLoading = !0;
|
|
487
|
+
let e = {
|
|
488
|
+
userIds: t.data,
|
|
489
|
+
sys_TeamId: this.sys_teamid
|
|
490
|
+
};
|
|
491
|
+
b(e).then((s) => {
|
|
492
|
+
s.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") + s.message), this.$refs.msgSearch.confirmLoading = !1;
|
|
493
|
+
});
|
|
494
|
+
},
|
|
495
|
+
lookup() {
|
|
496
|
+
let t = {
|
|
497
|
+
effectType: "participants",
|
|
498
|
+
fkEntityName: "sys_user",
|
|
499
|
+
isRelevance: !0,
|
|
500
|
+
val: []
|
|
501
|
+
};
|
|
502
|
+
this.$refs.msgSearch.open(t);
|
|
503
|
+
},
|
|
473
504
|
editForm(t) {
|
|
474
505
|
this.transKey = "gd.btn.edit", this.$refs.editForm.open(t);
|
|
475
506
|
},
|
|
476
507
|
add() {
|
|
477
|
-
this
|
|
508
|
+
this.lookup();
|
|
478
509
|
},
|
|
479
510
|
edit() {
|
|
480
511
|
if (this.selectedRowKeys.length === 0) {
|
|
@@ -520,13 +551,13 @@ const S = {
|
|
|
520
551
|
}
|
|
521
552
|
let a = [];
|
|
522
553
|
this.selectedRows.forEach((i) => {
|
|
523
|
-
let
|
|
554
|
+
let r = $({
|
|
524
555
|
id: i.id
|
|
525
|
-
}).then((
|
|
526
|
-
a.push(
|
|
556
|
+
}).then((n) => n);
|
|
557
|
+
a.push(r);
|
|
527
558
|
}), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(a).then((i) => {
|
|
528
|
-
const
|
|
529
|
-
|
|
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;
|
|
530
561
|
});
|
|
531
562
|
},
|
|
532
563
|
onSelectChange(t, e) {
|
|
@@ -548,26 +579,26 @@ const S = {
|
|
|
548
579
|
}
|
|
549
580
|
}
|
|
550
581
|
};
|
|
551
|
-
var
|
|
582
|
+
var B = function() {
|
|
552
583
|
var e = this, s = e._self._c;
|
|
553
|
-
return s("div", { staticClass: "gd-page-view" }, [s("div", { staticClass: "page-view-list", staticStyle: { padding: "
|
|
584
|
+
return s("div", { staticClass: "gd-page-view" }, [s("div", { staticClass: "page-view-list", staticStyle: { padding: "12px 0" } }, [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
585
|
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
586
|
}, proxy: !0 }, { key: "sys_teamid", fn: function({ column: a, row: i }) {
|
|
556
587
|
return [s("gd-tooltip", { attrs: { rowKey: "teamname", row: i, highlight: "" }, on: { click: e.editForm } })];
|
|
557
588
|
} }, { key: "sys_userid", fn: function({ column: a, row: i }) {
|
|
558
589
|
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
|
-
},
|
|
561
|
-
S,
|
|
590
|
+
} }]) })], 1), s("gd-search", { ref: "msgSearch", attrs: { disabledRowId: e.disabledRowId, appendToBody: !0 }, on: { lookupSeled: e.lookupSeled } }), s("editForm", { ref: "editForm", attrs: { openPermissions: !0, sys_teamid: e.sys_teamid, typeAdd: e.type, openMode: e.openMode }, on: { ok: e.handleOk } })], 1);
|
|
591
|
+
}, N = [], K = /* @__PURE__ */ o(
|
|
562
592
|
x,
|
|
563
593
|
B,
|
|
594
|
+
N,
|
|
564
595
|
!1,
|
|
565
596
|
null,
|
|
566
|
-
"
|
|
597
|
+
"1c6e449a",
|
|
567
598
|
null,
|
|
568
599
|
null
|
|
569
600
|
);
|
|
570
|
-
const
|
|
601
|
+
const R = K.exports;
|
|
571
602
|
const P = {
|
|
572
603
|
props: {
|
|
573
604
|
modalAppendToBody: {
|
|
@@ -628,7 +659,7 @@ const P = {
|
|
|
628
659
|
}
|
|
629
660
|
},
|
|
630
661
|
components: {
|
|
631
|
-
teamMemberDetail:
|
|
662
|
+
teamMemberDetail: R
|
|
632
663
|
},
|
|
633
664
|
methods: {
|
|
634
665
|
lookupSeled(t) {
|
|
@@ -735,7 +766,7 @@ const P = {
|
|
|
735
766
|
}
|
|
736
767
|
}
|
|
737
768
|
};
|
|
738
|
-
var
|
|
769
|
+
var E = function() {
|
|
739
770
|
var e = this, s = e._self._c;
|
|
740
771
|
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
772
|
e.visible = a;
|
|
@@ -760,20 +791,20 @@ var R = function() {
|
|
|
760
791
|
}), 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
792
|
e.$set(e.ruleFormData, "description", a);
|
|
762
793
|
}, 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
|
-
},
|
|
794
|
+
}, O = [], q = /* @__PURE__ */ o(
|
|
764
795
|
P,
|
|
765
|
-
R,
|
|
766
796
|
E,
|
|
797
|
+
O,
|
|
767
798
|
!1,
|
|
768
799
|
null,
|
|
769
800
|
"837be327",
|
|
770
801
|
null,
|
|
771
802
|
null
|
|
772
803
|
);
|
|
773
|
-
const
|
|
774
|
-
const
|
|
804
|
+
const M = q.exports;
|
|
805
|
+
const z = {
|
|
775
806
|
name: "GdTeam",
|
|
776
|
-
mixins: [
|
|
807
|
+
mixins: [m, k],
|
|
777
808
|
props: {
|
|
778
809
|
height: {
|
|
779
810
|
type: Number,
|
|
@@ -790,7 +821,7 @@ const M = {
|
|
|
790
821
|
};
|
|
791
822
|
},
|
|
792
823
|
components: {
|
|
793
|
-
editForm:
|
|
824
|
+
editForm: M
|
|
794
825
|
},
|
|
795
826
|
computed: {
|
|
796
827
|
getHeight() {
|
|
@@ -810,7 +841,7 @@ const M = {
|
|
|
810
841
|
t.set(e, this.queryParam[e]);
|
|
811
842
|
return Object.fromEntries(t);
|
|
812
843
|
},
|
|
813
|
-
...
|
|
844
|
+
...c(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
|
|
814
845
|
},
|
|
815
846
|
methods: {
|
|
816
847
|
editForm(t) {
|
|
@@ -863,13 +894,13 @@ const M = {
|
|
|
863
894
|
}
|
|
864
895
|
let a = [];
|
|
865
896
|
this.selectedRows.forEach((i) => {
|
|
866
|
-
let
|
|
897
|
+
let r = p({
|
|
867
898
|
id: i.id
|
|
868
|
-
}).then((
|
|
869
|
-
a.push(
|
|
899
|
+
}).then((n) => n);
|
|
900
|
+
a.push(r);
|
|
870
901
|
}), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(a).then((i) => {
|
|
871
|
-
const
|
|
872
|
-
|
|
902
|
+
const r = i.filter((n) => !n.success);
|
|
903
|
+
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;
|
|
873
904
|
});
|
|
874
905
|
},
|
|
875
906
|
onSelectChange(t, e) {
|
|
@@ -891,7 +922,7 @@ const M = {
|
|
|
891
922
|
}
|
|
892
923
|
}
|
|
893
924
|
};
|
|
894
|
-
var
|
|
925
|
+
var A = function() {
|
|
895
926
|
var e = this, s = e._self._c;
|
|
896
927
|
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
928
|
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)])];
|
|
@@ -902,25 +933,25 @@ var z = function() {
|
|
|
902
933
|
} }, { key: "teamtype", fn: function(a) {
|
|
903
934
|
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
935
|
} }]) })], 1), s("editForm", { ref: "editForm", attrs: { openPermissions: !0 }, on: { ok: e.handleOk } })], 1);
|
|
905
|
-
},
|
|
906
|
-
M,
|
|
936
|
+
}, H = [], V = /* @__PURE__ */ o(
|
|
907
937
|
z,
|
|
908
938
|
A,
|
|
939
|
+
H,
|
|
909
940
|
!1,
|
|
910
941
|
null,
|
|
911
942
|
"f62d65e6",
|
|
912
943
|
null,
|
|
913
944
|
null
|
|
914
945
|
);
|
|
915
|
-
const d =
|
|
946
|
+
const d = V.exports;
|
|
916
947
|
d.install = function(t) {
|
|
917
948
|
t.component(d.name, d);
|
|
918
949
|
};
|
|
919
950
|
export {
|
|
920
951
|
d as G,
|
|
921
952
|
_ as a,
|
|
922
|
-
b,
|
|
953
|
+
w as b,
|
|
923
954
|
y as c,
|
|
924
|
-
|
|
925
|
-
|
|
955
|
+
$ as d,
|
|
956
|
+
v as s
|
|
926
957
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("./chartbi.5eded588.js"),l=require("./messages.fa3d97b5.js");function p(t){return window.axios({url:"/sysTeam/page",method:"get",params:t})}function g(t){return window.axios({url:"/sysTeam/add",method:"post",data:t})}function y(t){return window.axios({url:"/sysTeam/edit",method:"post",data:t})}function b(t){return window.axios({url:"/sysTeam/delete",method:"post",data:t})}function _(t){return window.axios({url:"/sysTeam/detail",method:"get",params:t})}function m(t){return window.axios({url:"/sysTeam/members",method:"get",params:t})}function c(t){return window.axios({url:"/sysTeam/member/add",method:"post",data:t})}function w(t){return window.axios({url:"/sysTeam/member/batchadd",method:"post",data:t})}function u(t){return window.axios({url:"/sysTeam/member/edit",method:"post",data:t})}function h(t){return window.axios({url:"/sysTeam/member/delete",method:"post",data:t})}function f(t){return window.axios({url:"/sysTeam/member/detail",method:"get",params:t})}const $={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.team.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.team.amdmin",prop:"administratorid",label:"\u7BA1\u7406\u5458",type:"slot",slotType:"administratorid",align:"left"},{transKey:"gd.team.teamtype",prop:"teamtype",label:"\u56E2\u961F\u7C7B\u578B",type:"slot",slotType:"teamtype",align:"left"},{transKey:"gd.team.describe",prop:"description",label:"\u63CF\u8FF0",align:"left"},{transKey:"gd.team.createdTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"left"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysTeam:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysTeam:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysTeam:delete"}]}}},v={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.team.name",prop:"sys_teamid",label:"\u540D\u79F0",type:"slot",slotType:"sys_teamid",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.team.member",prop:"sys_userid",label:"\u6210\u5458",type:"slot",slotType:"sys_userid",align:"left"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysTeam:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysTeam:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysTeam:delete"}]}}};const k={props:{modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0},sys_teamid:{type:Number,default:0},typeAdd:{type:Number,default:1},openMode:{type:Number,default:1}},data(){return{width:"50%",visible:!1,fullScreen:!1,sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],title:"",confirmLoading:!1,type:1,rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},ruleFormData:{id:"",sys_userid:"",sys_teamid:""},dataList:[],columnList:[],ownerid:"",firstLoading:!1,firstLoading1:!1}},computed:{disableds(){return this.typeAdd==2}},methods:{lookupSeled(t){this.dataList=[...t.fkData],this.$set(this.ruleFormData,"sys_userid",t.data[0])},lookup(t){let e={effectType:"fk",fkEntityName:"sys_user",val:t||[]};this.$refs.msgSearch.open(e)},open(t){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)},getDetail(t){t!=""&&(this.dataList=[],f({id:t}).then(e=>{if(e.code==200){let s=e.data;this.dataList.push({id:s.sys_userid,name:s.username}),this.columnList.push({id:s.sys_teamid,name:s.teamname});let a={id:s.id,sys_userid:s.sys_userid,sys_teamid:s.sys_teamid};this.firstLoading=!0,this.firstLoading1=!0,this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData=a},0)})}}))},searchData(t){this.columnList=[],l.baseFkList({fkEntityName:"sys_team",id:t}).then(e=>{e.code==200&&(this.ruleFormData.sys_teamid=t,this.columnList=e.data.length>0?e.data:[])})},searchList(){this.firstLoading||(this.adminClick(""),this.firstLoading=!0)},adminClick(t){this.dataList=[],this.fetching=!0,l.baseFkList({fkEntityName:"sys_user",name:t}).then(e=>{e.code==200&&(this.dataList=e.data)})},searchList1(){this.firstLoading1||(this.userClick(""),this.firstLoading1=!0)},userClick(t){this.columnList=[],this.fetching=!0,l.baseFkList({fkEntityName:"sys_team",name:t}).then(e=>{e.code==200&&(this.columnList=e.data)})},handleSubmit(){this.$refs.ruleForm.validate(t=>{t&&(this.type==1?this.add(this.ruleFormData):this.edit(this.ruleFormData))})},add(t){this.confirmLoading=!0,delete t.id,c(t).then(e=>{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)}).finally(e=>{this.confirmLoading=!1})},edit(t){this.confirmLoading=!0,u(t).then(e=>{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)}).finally(e=>{this.confirmLoading=!1})},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.firstLoading=!1,this.firstLoading1=!1,this.$refs.ruleForm.resetFields(),this.ruleFormData={sys_userid:"",sys_teamid:""}},getDictionary(t){return this.$options.filters.dictData(t)},toggleFullscreen(){this.fullScreen=!this.fullScreen},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var F=function(){var e=this,s=e._self._c;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){e.visible=a},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){a.preventDefault()}}},[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){e.$set(e.ruleFormData,"sys_userid",a)},expression:"ruleFormData.sys_userid"}},e._l(e.dataList,function(a,i){return s("el-option",{key:a.id+"&"+i,attrs:{label:a.name,value:a.id}})}),1),s("div",{staticClass:"cao_setting"},[s("i",{staticClass:"el-input__icon el-icon-search",on:{click:function(a){return e.lookup(e.ruleFormData.sys_userid)}}})])],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){e.$set(e.ruleFormData,"sys_teamid",a)},expression:"ruleFormData.sys_teamid"}},e._l(e.columnList,function(a,i){return s("el-option",{key:a.id+"&"+i,attrs:{label:a.name,value:a.id}})}),1),s("div",{staticClass:"cao_setting"},[s("i",{staticClass:"el-input__icon el-icon-search",on:{lookup:function(a){e.ruleFormData.sys_teamid}}})])],1)])],1)],1)],1)],1)])],1),s("gd-search",{ref:"msgSearch",attrs:{appendToBody:!0},on:{lookupSeled:e.lookupSeled}})],1)},L=[],T=o.normalizeComponent(k,F,L,!1,null,"0613082f",null,null);const S=T.exports;const C={name:"GdTeamMembers",mixins:[l.tablesFilter,v],props:{height:{type:Number,default:100},sys_teamid:{type:Number,default:0},type:{type:Number,default:1},openMode:{type:Number,default:1}},data(){return{transKey:"gd.btn.add",selectedRowKeys:[],selectedRows:[],queryParam:{},disabledRowId:[],loadData:t=>m(Object.assign(t,this.getQueryParam,{SysTeamId:this.sys_teamid})).then(e=>(this.disabledRowId=e.data.rows.map(s=>s.sys_userid),e.data))}},computed:{getHeight(){return this.height},getQueryParam(){let t=new Map;for(let e in this.queryParam)if(this.queryParam[e]&&(e==="msgStatus"||e==="sendType"))t.set(e,this.queryParam[e].join(","));else if(this.queryParam[e]&&(e==="actualOn"||e==="createdTime"||e==="scheduledStartedOn")){if(this.queryParam[e].length>0){let s=this.queryParam[e],a=s[0].split(" ")[0],i=s[1].split(" ")[0];t.set(`${e}Start`,`${a} 00:00:00`),t.set(`${e}End`,`${i} 23:59:59`)}}else t.set(e,this.queryParam[e]);return Object.fromEntries(t)},...o.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},components:{editForm:S},watch:{type(t,e){this.$refs.table&&this.$refs.table.refresh()},sys_teamid(t,e){this.$refs.table&&this.$refs.table.refresh()}},methods:{lookupSeled(t){if(t.fkData.length===0){this.$refs.msgSearch.closed();return}this.$refs.msgSearch.confirmLoading=!0;let e={userIds:t.data,sys_TeamId:this.sys_teamid};w(e).then(s=>{s.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")+s.message),this.$refs.msgSearch.confirmLoading=!1})},lookup(){let t={effectType:"participants",fkEntityName:"sys_user",isRelevance:!0,val:[]};this.$refs.msgSearch.open(t)},editForm(t){this.transKey="gd.btn.edit",this.$refs.editForm.open(t)},add(){this.lookup()},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let a=[];this.selectedRows.forEach(i=>{let r=h({id:i.id}).then(n=>n);a.push(r)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(a).then(i=>{const r=i.filter(n=>!n.success);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})},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},handleOk(){this.refresh()},refresh(){this.$refs.table.refresh()},dictSwitch(t,e){let s=this.$options.filters.dictData(e).filter(a=>a.code==t)[0];return s!=null&&s.colour?s.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var D=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"12px 0"}},[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(){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)])]},proxy:!0},{key:"sys_teamid",fn:function({column:a,row:i}){return[s("gd-tooltip",{attrs:{rowKey:"teamname",row:i,highlight:""},on:{click:e.editForm}})]}},{key:"sys_userid",fn:function({column:a,row:i}){return[i.sys_userid?s("span",[e._v(" "+e._s(i.username)+" ")]):e._e()]}}])})],1),s("gd-search",{ref:"msgSearch",attrs:{disabledRowId:e.disabledRowId,appendToBody:!0},on:{lookupSeled:e.lookupSeled}}),s("editForm",{ref:"editForm",attrs:{openPermissions:!0,sys_teamid:e.sys_teamid,typeAdd:e.type,openMode:e.openMode},on:{ok:e.handleOk}})],1)},x=[],B=o.normalizeComponent(C,D,x,!1,null,"1c6e449a",null,null);const N=B.exports;const K={props:{modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0}},data(){return{width:"60%",visible:!1,fullScreen:!1,sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],confirmLoading:!1,type:0,rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],administratorid:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]},ruleFormData:{id:"",name:"",administratorid:"",teamtype:"2",description:""},dataList:[],columnList:[],ownerid:"",firstLoading:!1}},computed:{detailShow(){return!!this.ruleFormData.id},title(){return this.ruleFormData.id?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add")}},components:{teamMemberDetail:N},methods:{lookupSeled(t){this.dataList=[...t.fkData],this.$set(this.ruleFormData,"administratorid",t.data[0])},lookup(t){let e={effectType:"fk",fkEntityName:"sys_user",val:t||[]};this.$refs.msgSearch.open(e)},open(t){this.visible=!0,this.fullScreen=!1,this.type=t?2:1,this.ruleFormData.id=t?t.id:"",t&&this.getDetail(t.id)},getDetail(t){t!=""&&(this.dataList=[],_({id:t}).then(e=>{if(e.code==200){let s=e.data;this.dataList.push({id:s.administratorid,name:s.administratorname}),this.columnList.push({id:s.ownerid,name:s.ownername});let a={id:s.id,name:s.name,teamtype:s.teamtype?s.teamtype.toString():"",description:s.description,administratorid:s.administratorid};this.firstLoading=!0,this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData=a,this.ownerid=s.ownerid},0)})}}))},searchData(t){this.dataList=[],l.baseFkList({fkEntityName:"sys_user",id:t.administratorid}).then(e=>{e.code==200&&(this.firstLoading=!0,e.data.length>0?this.dataList=e.data:this.dataList.push({id:t.administratorid,name:t.administratorname}))})},searchList(){this.firstLoading||(this.adminClick(""),this.firstLoading=!0)},adminClick(t){this.dataList=[],this.fetching=!0,l.baseFkList({fkEntityName:"sys_user",name:t}).then(e=>{e.code==200&&(this.dataList=e.data)})},handleSubmit(){this.$refs.ruleForm.validate(t=>{t&&(console.log(this.type),this.type==1?this.add(this.ruleFormData):this.edit(this.ruleFormData))})},add(t){this.confirmLoading=!0,delete t.id,g(t).then(e=>{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)}).finally(e=>{this.confirmLoading=!1})},edit(t){this.confirmLoading=!0,y(t).then(e=>{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)}).finally(e=>{this.confirmLoading=!1})},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.$refs.ruleForm.resetFields(),this.ruleFormData={id:"",name:"",administratorid:"",teamtype:"2",description:""},this.ownerid="",this.type=1},getDictionary(t){return this.$options.filters.dictData(t)},toggleFullscreen(){this.fullScreen=!this.fullScreen},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var R=function(){var e=this,s=e._self._c;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){e.visible=a},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){a.preventDefault()}}},[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){e.$set(e.ruleFormData,"name",a)},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){e.$set(e.ruleFormData,"teamtype",a)},expression:"ruleFormData.teamtype"}},e._l(e.getDictionary("teamtype"),function(a,i){return s("el-option",{key:i,attrs:{value:a.code,label:e.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),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){e.$set(e.ruleFormData,"administratorid",a)},expression:"ruleFormData.administratorid"}},e._l(e.dataList,function(a,i){return s("el-option",{key:a.id+"&"+i,attrs:{label:a.name,value:a.id}})}),1),s("div",{staticClass:"cao_setting"},[s("i",{staticClass:"el-input__icon el-icon-search",on:{click:function(a){return e.lookup(e.ruleFormData.administratorid)}}})])],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){e.ownerid=a},expression:"ownerid"}},e._l(e.columnList,function(a,i){return s("el-option",{key:i,attrs:{label:a.name,value:a.id}})}),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){e.$set(e.ruleFormData,"description",a)},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)},P=[],E=o.normalizeComponent(K,R,P,!1,null,"837be327",null,null);const M=E.exports;const O={name:"GdTeam",mixins:[l.tablesFilter,$],props:{height:{type:Number,default:100}},data(){return{transKey:"gd.btn.add",selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:t=>p(Object.assign(t,this.getQueryParam)).then(e=>e.data)}},components:{editForm:M},computed:{getHeight(){return this.height},getQueryParam(){let t=new Map;for(let e in this.queryParam)if(this.queryParam[e]&&(e==="msgStatus"||e==="sendType"))t.set(e,this.queryParam[e].join(","));else if(this.queryParam[e]&&(e==="actualOn"||e==="createdTime"||e==="scheduledStartedOn")){if(this.queryParam[e].length>0){let s=this.queryParam[e],a=s[0].split(" ")[0],i=s[1].split(" ")[0];t.set(`${e}Start`,`${a} 00:00:00`),t.set(`${e}End`,`${i} 23:59:59`)}}else t.set(e,this.queryParam[e]);return Object.fromEntries(t)},...o.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},methods:{editForm(t){this.transKey="gd.btn.edit",this.$refs.editForm.open(t)},add(){this.$refs.editForm.open()},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let a=[];this.selectedRows.forEach(i=>{let r=b({id:i.id}).then(n=>n);a.push(r)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(a).then(i=>{const r=i.filter(n=>!n.success);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})},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},handleOk(){this.refresh()},refresh(){this.$refs.table.refresh()},dictSwitch(t,e){let s=this.$options.filters.dictData(e).filter(a=>a.code==t)[0];return s!=null&&s.colour?s.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var q=function(){var e=this,s=e._self._c;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(){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)])]},proxy:!0},{key:"name",fn:function({column:a,row:i}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:i,highlight:""},on:{click:e.editForm}})]}},{key:"administratorid",fn:function({column:a,row:i}){return[i.administratorname?s("span",[e._v(" "+e._s(i.administratorname)+" ")]):e._e()]}},{key:"teamtype",fn:function(a){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)))])]}}])})],1),s("editForm",{ref:"editForm",attrs:{openPermissions:!0},on:{ok:e.handleOk}})],1)},z=[],A=o.normalizeComponent(O,q,z,!1,null,"f62d65e6",null,null);const d=A.exports;d.install=function(t){t.component(d.name,d)};exports.GDpackage=d;exports.sysTeamMemberAdd=c;exports.sysTeamMemberDel=h;exports.sysTeamMemberDetail=f;exports.sysTeamMemberEdit=u;exports.sysTeamMembers=m;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as d, m as c } from "./chartbi.
|
|
2
|
-
import { s as u, a as m, b as h, c as f, d as g } from "./system.team.
|
|
3
|
-
import { f as r, t as p } from "./messages.
|
|
1
|
+
import { n as d, m as c } from "./chartbi.c3bc6adb.mjs";
|
|
2
|
+
import { s as u, a as m, b as h, c as f, d as g } from "./system.team.28168433.mjs";
|
|
3
|
+
import { f as r, t as p } from "./messages.bc3bc0e8.mjs";
|
|
4
4
|
const y = {
|
|
5
5
|
data() {
|
|
6
6
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("./chartbi.06e48153.js"),n=require("./system.team.3826e252.js"),r=require("./messages.30e41348.js"),u={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.team.name",prop:"sys_teamid",label:"\u540D\u79F0",type:"slot",slotType:"sys_teamid",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.team.member",prop:"sys_userid",label:"\u6210\u5458",type:"slot",slotType:"sys_userid",align:"left"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysTeam:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysTeam:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysTeam:delete"}]}}};const m={props:{modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0}},data(){return{width:"60%",visible:!1,fullScreen:!1,sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],title:"",confirmLoading:!1,type:1,rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},ruleFormData:{id:"",sys_userid:"",sys_teamid:""},dataList:[],columnList:[],ownerid:"",firstLoading:!1,firstLoading1:!1}},methods:{lookupSeled(t){t.table.tablename=="sys_team"?(this.columnList=[...t.fkData],this.$set(this.ruleFormData,"sys_teamid",t.data[0])):t.table.tablename=="sys_user"&&(this.dataList=[...t.fkData],this.$set(this.ruleFormData,"sys_userid",t.data[0]))},lookup(t,e){let s={effectType:"fk",fkEntityName:e==1?"sys_user":"sys_team",val:t||[]};this.$refs.msgSearch.open(s)},open(t){this.visible=!0,this.fullScreen=!1,this.title=t?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add"),this.type=t?2:1,t&&this.getDetail(t.id)},getDetail(t){t!=""&&(this.dataList=[],n.sysTeamMemberDetail({id:t}).then(e=>{if(e.code==200){let s=e.data;this.dataList.push({id:s.sys_userid,name:s.username}),this.columnList.push({id:s.sys_teamid,name:s.teamname});let i={id:s.id,sys_userid:s.sys_userid,sys_teamid:s.sys_teamid};this.firstLoading=!0,this.firstLoading1=!0,this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData=i},0)})}}))},searchData(t){this.dataList=[],r.baseFkList({fkEntityName:"sys_user",id:t.administratorid}).then(e=>{e.code==200&&(this.firstLoading=!0,e.data.length>0?this.dataList=e.data:this.dataList.push({id:t.administratorid,name:t.administratorname}))})},searchList(){this.firstLoading||(this.adminClick(""),this.firstLoading=!0)},adminClick(t){this.dataList=[],this.fetching=!0,r.baseFkList({fkEntityName:"sys_user",name:t}).then(e=>{e.code==200&&(this.dataList=e.data)})},searchList1(){this.firstLoading1||(this.userClick(""),this.firstLoading1=!0)},userClick(t){this.columnList=[],this.fetching=!0,r.baseFkList({fkEntityName:"sys_team",name:t}).then(e=>{e.code==200&&(this.columnList=e.data)})},handleSubmit(){this.$refs.ruleForm.validate(t=>{t&&(this.type==1?this.add(this.ruleFormData):this.edit(this.ruleFormData))})},add(t){this.confirmLoading=!0,delete t.id,n.sysTeamMemberAdd(t).then(e=>{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)}).finally(e=>{this.confirmLoading=!1})},edit(t){this.confirmLoading=!0,n.sysTeamMemberEdit(t).then(e=>{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)}).finally(e=>{this.confirmLoading=!1})},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.firstLoading=!1,this.firstLoading1=!1,this.$refs.ruleForm.resetFields(),this.ruleFormData={sys_userid:"",sys_teamid:""}},getDictionary(t){return this.$options.filters.dictData(t)},toggleFullscreen(){this.fullScreen=!this.fullScreen},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var h=function(){var e=this,s=e._self._c;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(i){e.visible=i},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(i){i.preventDefault()}}},[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(i){e.$set(e.ruleFormData,"sys_userid",i)},expression:"ruleFormData.sys_userid"}},e._l(e.dataList,function(i,a){return s("el-option",{key:i.id+"&"+a,attrs:{label:i.name,value:i.id}})}),1),s("div",{staticClass:"cao_setting"},[s("i",{staticClass:"el-input__icon el-icon-search",on:{click:function(i){return e.lookup(e.ruleFormData.sys_userid,1)}}})])],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,"remote-method":e.userClick},on:{focus:e.searchList1},model:{value:e.ruleFormData.sys_teamid,callback:function(i){e.$set(e.ruleFormData,"sys_teamid",i)},expression:"ruleFormData.sys_teamid"}},e._l(e.columnList,function(i,a){return s("el-option",{key:i.id+"&"+a,attrs:{label:i.name,value:i.id}})}),1),s("div",{staticClass:"cao_setting"},[s("i",{staticClass:"el-input__icon el-icon-search",on:{click:function(i){return e.lookup(e.ruleFormData.sys_teamid,2)}}})])],1)])],1)],1)],1)],1)])],1),s("gd-search",{ref:"msgSearch",attrs:{appendToBody:!0},on:{lookupSeled:e.lookupSeled}})],1)},f=[],g=c.normalizeComponent(m,h,f,!1,null,"4b8d68cf",null,null);const p=g.exports;const y={name:"GdTeamMembers",mixins:[r.tablesFilter,u],props:{height:{type:Number,default:100}},data(){return{transKey:"gd.btn.add",selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:t=>this.getList(t).then(e=>e)}},computed:{getHeight(){return this.height},getQueryParam(){let t=new Map;for(let e in this.queryParam)if(this.queryParam[e]&&(e==="msgStatus"||e==="sendType"))t.set(e,this.queryParam[e].join(","));else if(this.queryParam[e]&&(e==="actualOn"||e==="createdTime"||e==="scheduledStartedOn")){if(this.queryParam[e].length>0){let s=this.queryParam[e],i=s[0].split(" ")[0],a=s[1].split(" ")[0];t.set(`${e}Start`,`${i} 00:00:00`),t.set(`${e}End`,`${a} 23:59:59`)}}else t.set(e,this.queryParam[e]);return Object.fromEntries(t)},...c.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},components:{editForm:p},methods:{getList(t){return n.sysTeamMembers(Object.assign(t,this.getQueryParam)).then(e=>{if(e.code==200)return e.data})},editForm(t){this.transKey="gd.btn.edit",this.$refs.editForm.open(t)},add(){this.$refs.editForm.open()},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(a=>{let l=n.sysTeamMemberDel({id:a.id}).then(d=>d);i.push(l)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(a=>{const l=a.filter(d=>!d.success);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),s(),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},handleOk(){this.refresh()},refresh(){this.$refs.table.refresh()},dictSwitch(t,e){let s=this.$options.filters.dictData(e).filter(i=>i.code==t)[0];return s!=null&&s.colour?s.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var _=function(){var e=this,s=e._self._c;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(){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)])]},proxy:!0},{key:"sys_teamid",fn:function({column:i,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"teamname",row:a,highlight:""},on:{click:e.editForm}})]}},{key:"sys_userid",fn:function({column:i,row:a}){return[a.sys_userid?s("span",[e._v(" "+e._s(a.username)+" ")]):e._e()]}}])})],1),s("editForm",{ref:"editForm",attrs:{openPermissions:!0},on:{ok:e.handleOk}})],1)},b=[],$=c.normalizeComponent(y,_,b,!1,null,"d9f498cd",null,null);const o=$.exports;o.install=function(t){t.component(o.name,o)};exports.GDpackage=o;
|
|
1
|
+
"use strict";const c=require("./chartbi.5eded588.js"),n=require("./system.team.a3527834.js"),r=require("./messages.fa3d97b5.js"),u={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.team.name",prop:"sys_teamid",label:"\u540D\u79F0",type:"slot",slotType:"sys_teamid",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.team.member",prop:"sys_userid",label:"\u6210\u5458",type:"slot",slotType:"sys_userid",align:"left"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysTeam:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysTeam:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysTeam:delete"}]}}};const m={props:{modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0}},data(){return{width:"60%",visible:!1,fullScreen:!1,sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],title:"",confirmLoading:!1,type:1,rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},ruleFormData:{id:"",sys_userid:"",sys_teamid:""},dataList:[],columnList:[],ownerid:"",firstLoading:!1,firstLoading1:!1}},methods:{lookupSeled(t){t.table.tablename=="sys_team"?(this.columnList=[...t.fkData],this.$set(this.ruleFormData,"sys_teamid",t.data[0])):t.table.tablename=="sys_user"&&(this.dataList=[...t.fkData],this.$set(this.ruleFormData,"sys_userid",t.data[0]))},lookup(t,e){let s={effectType:"fk",fkEntityName:e==1?"sys_user":"sys_team",val:t||[]};this.$refs.msgSearch.open(s)},open(t){this.visible=!0,this.fullScreen=!1,this.title=t?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add"),this.type=t?2:1,t&&this.getDetail(t.id)},getDetail(t){t!=""&&(this.dataList=[],n.sysTeamMemberDetail({id:t}).then(e=>{if(e.code==200){let s=e.data;this.dataList.push({id:s.sys_userid,name:s.username}),this.columnList.push({id:s.sys_teamid,name:s.teamname});let i={id:s.id,sys_userid:s.sys_userid,sys_teamid:s.sys_teamid};this.firstLoading=!0,this.firstLoading1=!0,this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData=i},0)})}}))},searchData(t){this.dataList=[],r.baseFkList({fkEntityName:"sys_user",id:t.administratorid}).then(e=>{e.code==200&&(this.firstLoading=!0,e.data.length>0?this.dataList=e.data:this.dataList.push({id:t.administratorid,name:t.administratorname}))})},searchList(){this.firstLoading||(this.adminClick(""),this.firstLoading=!0)},adminClick(t){this.dataList=[],this.fetching=!0,r.baseFkList({fkEntityName:"sys_user",name:t}).then(e=>{e.code==200&&(this.dataList=e.data)})},searchList1(){this.firstLoading1||(this.userClick(""),this.firstLoading1=!0)},userClick(t){this.columnList=[],this.fetching=!0,r.baseFkList({fkEntityName:"sys_team",name:t}).then(e=>{e.code==200&&(this.columnList=e.data)})},handleSubmit(){this.$refs.ruleForm.validate(t=>{t&&(this.type==1?this.add(this.ruleFormData):this.edit(this.ruleFormData))})},add(t){this.confirmLoading=!0,delete t.id,n.sysTeamMemberAdd(t).then(e=>{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)}).finally(e=>{this.confirmLoading=!1})},edit(t){this.confirmLoading=!0,n.sysTeamMemberEdit(t).then(e=>{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)}).finally(e=>{this.confirmLoading=!1})},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.firstLoading=!1,this.firstLoading1=!1,this.$refs.ruleForm.resetFields(),this.ruleFormData={sys_userid:"",sys_teamid:""}},getDictionary(t){return this.$options.filters.dictData(t)},toggleFullscreen(){this.fullScreen=!this.fullScreen},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var h=function(){var e=this,s=e._self._c;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(i){e.visible=i},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(i){i.preventDefault()}}},[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(i){e.$set(e.ruleFormData,"sys_userid",i)},expression:"ruleFormData.sys_userid"}},e._l(e.dataList,function(i,a){return s("el-option",{key:i.id+"&"+a,attrs:{label:i.name,value:i.id}})}),1),s("div",{staticClass:"cao_setting"},[s("i",{staticClass:"el-input__icon el-icon-search",on:{click:function(i){return e.lookup(e.ruleFormData.sys_userid,1)}}})])],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,"remote-method":e.userClick},on:{focus:e.searchList1},model:{value:e.ruleFormData.sys_teamid,callback:function(i){e.$set(e.ruleFormData,"sys_teamid",i)},expression:"ruleFormData.sys_teamid"}},e._l(e.columnList,function(i,a){return s("el-option",{key:i.id+"&"+a,attrs:{label:i.name,value:i.id}})}),1),s("div",{staticClass:"cao_setting"},[s("i",{staticClass:"el-input__icon el-icon-search",on:{click:function(i){return e.lookup(e.ruleFormData.sys_teamid,2)}}})])],1)])],1)],1)],1)],1)])],1),s("gd-search",{ref:"msgSearch",attrs:{appendToBody:!0},on:{lookupSeled:e.lookupSeled}})],1)},f=[],g=c.normalizeComponent(m,h,f,!1,null,"4b8d68cf",null,null);const p=g.exports;const y={name:"GdTeamMembers",mixins:[r.tablesFilter,u],props:{height:{type:Number,default:100}},data(){return{transKey:"gd.btn.add",selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:t=>this.getList(t).then(e=>e)}},computed:{getHeight(){return this.height},getQueryParam(){let t=new Map;for(let e in this.queryParam)if(this.queryParam[e]&&(e==="msgStatus"||e==="sendType"))t.set(e,this.queryParam[e].join(","));else if(this.queryParam[e]&&(e==="actualOn"||e==="createdTime"||e==="scheduledStartedOn")){if(this.queryParam[e].length>0){let s=this.queryParam[e],i=s[0].split(" ")[0],a=s[1].split(" ")[0];t.set(`${e}Start`,`${i} 00:00:00`),t.set(`${e}End`,`${a} 23:59:59`)}}else t.set(e,this.queryParam[e]);return Object.fromEntries(t)},...c.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},components:{editForm:p},methods:{getList(t){return n.sysTeamMembers(Object.assign(t,this.getQueryParam)).then(e=>{if(e.code==200)return e.data})},editForm(t){this.transKey="gd.btn.edit",this.$refs.editForm.open(t)},add(){this.$refs.editForm.open()},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(a=>{let l=n.sysTeamMemberDel({id:a.id}).then(d=>d);i.push(l)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(a=>{const l=a.filter(d=>!d.success);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),s(),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},handleOk(){this.refresh()},refresh(){this.$refs.table.refresh()},dictSwitch(t,e){let s=this.$options.filters.dictData(e).filter(i=>i.code==t)[0];return s!=null&&s.colour?s.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var _=function(){var e=this,s=e._self._c;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(){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)])]},proxy:!0},{key:"sys_teamid",fn:function({column:i,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"teamname",row:a,highlight:""},on:{click:e.editForm}})]}},{key:"sys_userid",fn:function({column:i,row:a}){return[a.sys_userid?s("span",[e._v(" "+e._s(a.username)+" ")]):e._e()]}}])})],1),s("editForm",{ref:"editForm",attrs:{openPermissions:!0},on:{ok:e.handleOk}})],1)},b=[],$=c.normalizeComponent(y,_,b,!1,null,"d9f498cd",null,null);const o=$.exports;o.install=function(t){t.component(o.name,o)};exports.GDpackage=o;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as g, m as I, u as z } from "./chartbi.
|
|
2
|
-
import { t as q } from "./messages.
|
|
1
|
+
import { n as g, m as I, u as z } from "./chartbi.c3bc6adb.mjs";
|
|
2
|
+
import { t as q } from "./messages.bc3bc0e8.mjs";
|
|
3
3
|
function H(a) {
|
|
4
4
|
return window.axios({
|
|
5
5
|
url: "/SysJob/pageJobDetail",
|