gds-plus-design-vue 1.2.5 → 1.2.6
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.b5b6fdab.js → chartbi.114d32d7.js} +23 -23
- package/lib/{chartbi.b6818e8e.mjs → chartbi.eb4dd0af.mjs} +3598 -3563
- package/lib/gd-initial.js +13 -13
- package/lib/gd-initial.mjs +1331 -1277
- package/lib/{main.b4a303dc.js → main.03984fed.js} +1 -1
- package/lib/{main.f3ae0933.js → main.1050afb3.js} +1 -1
- package/lib/{main.be62e9a4.mjs → main.3caa11e1.mjs} +3 -3
- package/lib/{main.a28f67df.js → main.64122541.js} +1 -1
- package/lib/{main.955f770e.mjs → main.b5a3be02.mjs} +3 -3
- package/lib/{main.6713b76c.js → main.b7d2c6ee.js} +1 -1
- package/lib/{main.4e325110.mjs → main.c41228a0.mjs} +3 -3
- package/lib/{main.c59fc1e8.mjs → main.f0045877.mjs} +7 -7
- package/lib/{messages.1346558e.js → messages.828b6ed8.js} +1 -1
- package/lib/{messages.7e418640.mjs → messages.a739f4fc.mjs} +14 -14
- package/lib/style.css +3 -3
- package/lib/{system.account.7c43a95e.js → system.account.3181bcd6.js} +1 -1
- package/lib/{system.account.64fbdaeb.mjs → system.account.7c6ea20c.mjs} +18 -18
- package/lib/{system.config.93d6cb7d.js → system.config.10f57fa2.js} +1 -1
- package/lib/{system.config.f0d2d130.mjs → system.config.d2ad8c97.mjs} +2 -2
- package/lib/{system.datasource.61ff56ec.mjs → system.datasource.a77831ab.mjs} +2 -2
- package/lib/{system.datasource.4bb39222.js → system.datasource.d5eea7f2.js} +1 -1
- package/lib/{system.dict.a817cf68.mjs → system.dict.cb276470.mjs} +2 -2
- package/lib/{system.dict.5a2e60fe.js → system.dict.d73658f1.js} +1 -1
- package/lib/{system.duplicatechecking.751664ba.mjs → system.duplicatechecking.5c8a3eef.mjs} +2 -2
- package/lib/{system.duplicatechecking.65b77e64.js → system.duplicatechecking.d24ba6ea.js} +1 -1
- package/lib/{system.email.fec5ae26.js → system.email.4bf52f2d.js} +1 -1
- package/lib/{system.email.2f53252e.mjs → system.email.db5da8d7.mjs} +2 -2
- package/lib/{system.fieldsecurity.6feb94c3.mjs → system.fieldsecurity.9d40595f.mjs} +1 -1
- package/lib/{system.fieldsecurity.920adca4.js → system.fieldsecurity.eb217079.js} +1 -1
- package/lib/{system.file.1930d109.mjs → system.file.8064c8e9.mjs} +2 -2
- package/lib/{system.file.5a9a5e0e.js → system.file.c1884db7.js} +1 -1
- package/lib/{system.log.61d303bd.mjs → system.log.2b2fc11a.mjs} +2 -2
- package/lib/{system.log.b309c0e0.js → system.log.389af80d.js} +1 -1
- package/lib/{system.machine.ed69ec93.mjs → system.machine.0130e762.mjs} +1 -1
- package/lib/{system.machine.9368e508.js → system.machine.49fc6405.js} +1 -1
- package/lib/{system.notice.bd18554e.mjs → system.notice.5f8cd020.mjs} +45 -53
- package/lib/system.notice.a89f4826.js +1 -0
- package/lib/{system.noticereceived.4dc360c0.mjs → system.noticereceived.51b6353a.mjs} +3 -3
- package/lib/{system.noticereceived.9550818b.js → system.noticereceived.5e0773c3.js} +1 -1
- package/lib/{system.onlineuser.6cf4fe24.js → system.onlineuser.67733846.js} +1 -1
- package/lib/{system.onlineuser.08a15a71.mjs → system.onlineuser.c0a69360.mjs} +2 -2
- package/lib/{system.org.6e858bf3.mjs → system.org.1169fe47.mjs} +3 -3
- package/lib/{system.org.0c67131d.js → system.org.ff54d620.js} +1 -1
- package/lib/{system.permissions.cc5ac7ac.mjs → system.permissions.cc9a9866.mjs} +3 -3
- package/lib/{system.permissions.af548a3b.js → system.permissions.e6317c5a.js} +1 -1
- package/lib/{system.plugin.83d03fb2.js → system.plugin.3467d572.js} +1 -1
- package/lib/{system.plugin.a1f1c194.mjs → system.plugin.502a69d8.mjs} +2 -2
- package/lib/{system.pos.eae2051e.js → system.pos.4aadf86e.js} +1 -1
- package/lib/{system.pos.eb8fd7dd.mjs → system.pos.8c44c029.mjs} +2 -2
- package/lib/{system.promptmanagement.04501417.js → system.promptmanagement.9ba710d6.js} +1 -1
- package/lib/{system.promptmanagement.c84db7d5.mjs → system.promptmanagement.d8565db4.mjs} +2 -2
- package/lib/{system.role.d2195303.mjs → system.role.19959d7f.mjs} +197 -145
- package/lib/system.role.890c8ca2.js +1 -0
- package/lib/{system.sumberrules.a01e1805.js → system.sumberrules.068ebe4a.js} +1 -1
- package/lib/{system.sumberrules.141dc00b.mjs → system.sumberrules.087015a4.mjs} +2 -2
- package/lib/{system.team.27a6d5d5.mjs → system.team.27cd57f7.mjs} +2 -2
- package/lib/{system.team.0cebcde7.js → system.team.2b28502b.js} +1 -1
- package/lib/{system.teammembers.d73c659f.mjs → system.teammembers.4056d586.mjs} +3 -3
- package/lib/{system.teammembers.b67f003f.js → system.teammembers.e3baf783.js} +1 -1
- package/lib/{system.timers.4a3dd57d.mjs → system.timers.6f61bfe1.mjs} +2 -2
- package/lib/{system.timers.b27fcb6d.js → system.timers.cb0a3bd0.js} +1 -1
- package/lib/{system.translation.d9488c23.mjs → system.translation.9b88fbf2.mjs} +3 -3
- package/lib/{system.translation.d2c982ed.js → system.translation.f3884a0a.js} +1 -1
- package/lib/{system.user.0664c21c.js → system.user.3bd95871.js} +1 -1
- package/lib/{system.user.6874aa87.mjs → system.user.bdf2613e.mjs} +5 -5
- package/lib/{system.useraffiliation.5e3e2bab.mjs → system.useraffiliation.63b6bb36.mjs} +3 -3
- package/lib/{system.useraffiliation.6b7a1612.js → system.useraffiliation.7db6e13c.js} +1 -1
- package/lib/{system.webresource.204911b7.mjs → system.webresource.c36d6792.mjs} +3 -3
- package/lib/{system.webresource.5de18052.js → system.webresource.ede248a8.js} +1 -1
- package/lib/{system.welcome.79e15015.mjs → system.welcome.14785b50.mjs} +1 -1
- package/lib/{system.welcome.ec7aa744.js → system.welcome.c9eefa06.js} +1 -1
- package/locale/en_US.js +5 -2
- package/locale/id_ID.js +5 -2
- package/locale/vi_VN.js +5 -2
- package/locale/zh_CN.js +4 -1
- package/package.json +1 -1
- package/lib/system.notice.ff62c06a.js +0 -1
- package/lib/system.role.e623c50b.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { s as
|
|
2
|
-
import { m as
|
|
3
|
-
import { t as
|
|
4
|
-
import { a as
|
|
5
|
-
import { S as
|
|
6
|
-
const
|
|
1
|
+
import { s as T, b as S, d as R, c as L, e as I, f as x, h as v, i as D, j as P, g as N, k as B, l as A, m as F, n as M } from "./system.fieldsecurity.9d40595f.mjs";
|
|
2
|
+
import { m as f, n as g, u as p } from "./chartbi.eb4dd0af.mjs";
|
|
3
|
+
import { t as k } from "./messages.a739f4fc.mjs";
|
|
4
|
+
import { a as w, e as E, f as O } from "./system.notice.5f8cd020.mjs";
|
|
5
|
+
import { S as z, b as j, d as q, e as G, p as V, f as H, h as _ } from "./system.account.7c6ea20c.mjs";
|
|
6
|
+
const U = {
|
|
7
7
|
data() {
|
|
8
8
|
return {
|
|
9
9
|
tableColumns: [
|
|
@@ -212,7 +212,7 @@ const j = {
|
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
214
|
};
|
|
215
|
-
const
|
|
215
|
+
const J = {
|
|
216
216
|
data() {
|
|
217
217
|
return {
|
|
218
218
|
defaultProps: {
|
|
@@ -238,7 +238,7 @@ const q = {
|
|
|
238
238
|
};
|
|
239
239
|
},
|
|
240
240
|
computed: {
|
|
241
|
-
...
|
|
241
|
+
...f(["screenHeight", "tableLists"])
|
|
242
242
|
},
|
|
243
243
|
methods: {
|
|
244
244
|
handleSubmit() {
|
|
@@ -254,7 +254,7 @@ const q = {
|
|
|
254
254
|
), this.closed();
|
|
255
255
|
},
|
|
256
256
|
getOrgData() {
|
|
257
|
-
this.confirmLoading = !0,
|
|
257
|
+
this.confirmLoading = !0, w().then((s) => {
|
|
258
258
|
s.success && (this.orgTreeData = s.data, this.confirmLoading = !1);
|
|
259
259
|
});
|
|
260
260
|
},
|
|
@@ -273,23 +273,23 @@ const q = {
|
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
|
-
var
|
|
276
|
+
var Q = function() {
|
|
277
277
|
var e = this, t = e._self._c;
|
|
278
278
|
return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
|
|
279
279
|
e.visible = i;
|
|
280
280
|
}, closed: e.closed } }, [t("template", { slot: "title" }, [t("gd-modal-title", { attrs: { title: e.$i18nt("gd.user.rangeRole", "\u6388\u6743\u8303\u56F4"), fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen } })], 1), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [e.visible ? t("el-tree", { ref: "tree", attrs: { data: e.orgTreeData, "show-checkbox": "", "node-key": "id", "default-expand-all": "", "default-checked-keys": e.checkedKeys, props: e.defaultProps } }) : e._e()], 1)], 2)], 1);
|
|
281
|
-
},
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
281
|
+
}, W = [], X = /* @__PURE__ */ g(
|
|
282
|
+
J,
|
|
283
|
+
Q,
|
|
284
|
+
W,
|
|
285
285
|
!1,
|
|
286
286
|
null,
|
|
287
287
|
"2b164094",
|
|
288
288
|
null,
|
|
289
289
|
null
|
|
290
290
|
);
|
|
291
|
-
const
|
|
292
|
-
const
|
|
291
|
+
const Y = X.exports;
|
|
292
|
+
const Z = {
|
|
293
293
|
data() {
|
|
294
294
|
return {
|
|
295
295
|
buttons: [
|
|
@@ -385,18 +385,18 @@ const J = {
|
|
|
385
385
|
currentList: {}
|
|
386
386
|
};
|
|
387
387
|
},
|
|
388
|
-
components: { RoleScope:
|
|
388
|
+
components: { RoleScope: Y },
|
|
389
389
|
computed: {
|
|
390
390
|
height() {
|
|
391
391
|
return this.screenHeight - (this.fullscreen ? 120 : 310);
|
|
392
392
|
},
|
|
393
|
-
...
|
|
393
|
+
...f(["primaryColor", "screenHeight", "tableLists", "tableSize", "tablePageSize"])
|
|
394
394
|
},
|
|
395
395
|
methods: {
|
|
396
396
|
handleSubmit() {
|
|
397
397
|
this.confirmLoading = !0;
|
|
398
398
|
let s = this.$refs.table.tableData;
|
|
399
|
-
s.map((e) => (e.addgrant = e.addgrantd.length > 0 ? e.addgrantd.join(",") : null, e.delgrant = e.delgrantd.length > 0 ? e.delgrantd.join(",") : null, e.editgrant = e.editgrantd.length > 0 ? e.editgrantd.join(",") : null, e.getgrant = e.getgrantd.length > 0 ? e.getgrantd.join(",") : null, e.sharegrant = e.sharegrantd.length > 0 ? e.sharegrantd.join(",") : null, e.allocationgrant = e.allocationgrantd.length > 0 ? e.allocationgrantd.join(",") : null, e)),
|
|
399
|
+
s.map((e) => (e.addgrant = e.addgrantd.length > 0 ? e.addgrantd.join(",") : null, e.delgrant = e.delgrantd.length > 0 ? e.delgrantd.join(",") : null, e.editgrant = e.editgrantd.length > 0 ? e.editgrantd.join(",") : null, e.getgrant = e.getgrantd.length > 0 ? e.getgrantd.join(",") : null, e.sharegrant = e.sharegrantd.length > 0 ? e.sharegrantd.join(",") : null, e.allocationgrant = e.allocationgrantd.length > 0 ? e.allocationgrantd.join(",") : null, e)), E(
|
|
400
400
|
Object.assign(
|
|
401
401
|
{ ...this.submitData },
|
|
402
402
|
{
|
|
@@ -417,7 +417,7 @@ const J = {
|
|
|
417
417
|
this.$refs.roleScope.open({ index: t, item: s, checkedKeys: l, data: e, name: n });
|
|
418
418
|
},
|
|
419
419
|
getUserControlData() {
|
|
420
|
-
this.confirmLoading = !0,
|
|
420
|
+
this.confirmLoading = !0, O({ roleId: this.record.id }).then((s) => {
|
|
421
421
|
s.success ? (s.data.grants.map((e) => (e.addgrantd = e.addgrant ? e.addgrant.split(",") : [], e.delgrantd = e.delgrant ? e.delgrant.split(",") : [], e.editgrantd = e.editgrant ? e.editgrant.split(",") : [], e.getgrantd = e.getgrant ? e.getgrant.split(",") : [], e.sharegrantd = e.sharegrant ? e.sharegrant.split(",") : [], e.allocationgrantd = e.allocationgrant ? e.allocationgrant.split(",") : [], e)), this.loadData = s.data.grants, this.submitData = s.data, this.$nextTick(() => {
|
|
422
422
|
setTimeout(() => {
|
|
423
423
|
this.refresh(), this.confirmLoading = !0;
|
|
@@ -448,7 +448,7 @@ const J = {
|
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
};
|
|
451
|
-
var
|
|
451
|
+
var ee = function() {
|
|
452
452
|
var e = this, t = e._self._c;
|
|
453
453
|
return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
|
|
454
454
|
e.visible = i;
|
|
@@ -463,18 +463,18 @@ var Q = function() {
|
|
|
463
463
|
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.view", "\u67E5\u770B")) + " ")]) : e._e()], 1)];
|
|
464
464
|
} };
|
|
465
465
|
})], null, !0) }) : e._e()], 1)], 2), t("RoleScope", { ref: "roleScope", on: { ok: e.setRoleScop } })], 1);
|
|
466
|
-
},
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
466
|
+
}, te = [], se = /* @__PURE__ */ g(
|
|
467
|
+
Z,
|
|
468
|
+
ee,
|
|
469
|
+
te,
|
|
470
470
|
!1,
|
|
471
471
|
null,
|
|
472
472
|
"39b91bb5",
|
|
473
473
|
null,
|
|
474
474
|
null
|
|
475
475
|
);
|
|
476
|
-
const
|
|
477
|
-
const
|
|
476
|
+
const ie = se.exports;
|
|
477
|
+
const ne = {
|
|
478
478
|
name: "LayoutItem",
|
|
479
479
|
props: {
|
|
480
480
|
record: {
|
|
@@ -496,7 +496,7 @@ const Z = {
|
|
|
496
496
|
menusType() {
|
|
497
497
|
return this.record[0] ? this.record[0].menusType : 0;
|
|
498
498
|
},
|
|
499
|
-
...
|
|
499
|
+
...f(["primaryColor"])
|
|
500
500
|
},
|
|
501
501
|
methods: {
|
|
502
502
|
hasAll(s) {
|
|
@@ -520,10 +520,10 @@ const Z = {
|
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
522
|
};
|
|
523
|
-
var
|
|
523
|
+
var ae = function() {
|
|
524
524
|
var e = this, t = e._self._c;
|
|
525
525
|
return t("div", { style: { "--fadecolor": e.fadeColord } }, [e._l(e.record, function(i) {
|
|
526
|
-
return [t("div", { staticClass: "list-item" }, [
|
|
526
|
+
return [t("div", { staticClass: "list-item" }, [i.menusType !== 1 && i.children && i.children.length > 0 ? t("i", { class: i.open ? "el-icon-caret-bottom" : "el-icon-caret-right", on: { click: function(n) {
|
|
527
527
|
return e.open(i);
|
|
528
528
|
} } }) : e._e(), e.menusType !== 2 ? t("div", { staticClass: "item-name" }, [t("el-checkbox", { attrs: { indeterminate: i.isIndeterminate }, on: { change: function(n) {
|
|
529
529
|
return e.change(n, [i.id]);
|
|
@@ -539,18 +539,18 @@ var ee = function() {
|
|
|
539
539
|
} } }, [n.checked ? t("i", { staticClass: "gd-icons gd-icon-quanxuan active-color" }) : t("div", { staticClass: "item-named-kuang" }), t("div", { staticClass: "item-named-title", class: n.checked ? "active-color" : "" }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${n.transkey}`, n.title)) + " ")])])];
|
|
540
540
|
})], 2) : e._e()])]), i.children && i.children.length > 0 && i.children[0].menusType !== 2 ? t("div", { staticClass: "list-more" }, [i.open ? t("LayoutItem", { attrs: { record: i.children, checkedKeys: e.checkedKeys }, on: { open: e.open, change: e.change, checkedBtn: e.checkedBtn } }) : e._e()], 1) : e._e()];
|
|
541
541
|
})], 2);
|
|
542
|
-
},
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
542
|
+
}, re = [], le = /* @__PURE__ */ g(
|
|
543
|
+
ne,
|
|
544
|
+
ae,
|
|
545
|
+
re,
|
|
546
546
|
!1,
|
|
547
547
|
null,
|
|
548
|
-
"
|
|
548
|
+
"c10ba764",
|
|
549
549
|
null,
|
|
550
550
|
null
|
|
551
551
|
);
|
|
552
|
-
const
|
|
553
|
-
const
|
|
552
|
+
const $ = le.exports;
|
|
553
|
+
const oe = {
|
|
554
554
|
data() {
|
|
555
555
|
return {
|
|
556
556
|
buttons: [
|
|
@@ -574,19 +574,38 @@ const ie = {
|
|
|
574
574
|
menuAll: [],
|
|
575
575
|
systemMenuAll: [],
|
|
576
576
|
allCheckedKeys: [],
|
|
577
|
-
appsId: ""
|
|
577
|
+
appsId: "",
|
|
578
|
+
appList: []
|
|
578
579
|
};
|
|
579
580
|
},
|
|
580
581
|
computed: {
|
|
582
|
+
customClass() {
|
|
583
|
+
return `role_${p(12)}`;
|
|
584
|
+
},
|
|
581
585
|
isIndeterminate() {
|
|
582
586
|
return this.allClose ? !1 : this.checkedKeys.length > 0;
|
|
583
587
|
},
|
|
584
|
-
|
|
588
|
+
fadeColord() {
|
|
589
|
+
return this.fadeColor(this.primaryColor, 0.1);
|
|
590
|
+
},
|
|
591
|
+
...f(["screenHeight", "tableLists", "primaryColor"])
|
|
585
592
|
},
|
|
586
|
-
components: { LayoutItem:
|
|
593
|
+
components: { LayoutItem: $ },
|
|
587
594
|
methods: {
|
|
595
|
+
elScrollIntoView(s) {
|
|
596
|
+
this.$nextTick(() => {
|
|
597
|
+
setTimeout(() => {
|
|
598
|
+
const e = document.querySelector(`.${this.customClass} .${s}`);
|
|
599
|
+
e && e.scrollIntoView({ behavior: "smooth" });
|
|
600
|
+
}, 100);
|
|
601
|
+
});
|
|
602
|
+
},
|
|
603
|
+
appOpen(s, e) {
|
|
604
|
+
let t = [...this.menuTreeData];
|
|
605
|
+
t[s].open = !t[s].open, this.menuTreeData = [...t];
|
|
606
|
+
},
|
|
588
607
|
handleSubmit() {
|
|
589
|
-
this.confirmLoading = !0,
|
|
608
|
+
this.confirmLoading = !0, T({
|
|
590
609
|
id: this.record.id,
|
|
591
610
|
grantmenuidlist: this.checkedKeys
|
|
592
611
|
}).then((s) => {
|
|
@@ -610,12 +629,12 @@ const ie = {
|
|
|
610
629
|
return;
|
|
611
630
|
let l = [];
|
|
612
631
|
this.findParent(this.menuTreeData, n, l);
|
|
613
|
-
let r = [],
|
|
632
|
+
let r = [], u = [];
|
|
614
633
|
l.forEach((o) => {
|
|
615
|
-
this.checkedKeys.filter((
|
|
634
|
+
this.checkedKeys.filter((h) => o.menuIds.includes(h)).length === o.menuIds.length && o.menuIds.length > 0 && !o.checked ? r.push(o.id) : u.push(o.id);
|
|
616
635
|
}), r.forEach((o) => {
|
|
617
636
|
this.changeItem(!0, [o], !1);
|
|
618
|
-
}),
|
|
637
|
+
}), u.forEach((o) => {
|
|
619
638
|
this.changeItem(!1, [o], !1);
|
|
620
639
|
});
|
|
621
640
|
},
|
|
@@ -625,43 +644,64 @@ const ie = {
|
|
|
625
644
|
const a = this.checkedKeys.filter((l) => i.menuIds.includes(l));
|
|
626
645
|
return this.checkedKeys.includes(i.id) ? (i.checked = !0, i.isIndeterminate = !1) : (i.checked = !1, i.isIndeterminate = a.length > 0 && i.menuIds.length > 0), i.children && i.children.length > 0 && (i.children = e(i.children)), !0;
|
|
627
646
|
}), t);
|
|
628
|
-
|
|
647
|
+
s.forEach((t) => {
|
|
648
|
+
e(t.children);
|
|
649
|
+
}), this.menuTreeData = [...s], this.allClose = this.checkedKeys.length === this.allCheckedKeys.length && this.allCheckedKeys.length > 0;
|
|
629
650
|
},
|
|
630
651
|
changeAll(s) {
|
|
631
652
|
s ? this.checkedKeys = [...this.allCheckedKeys] : this.checkedKeys = [], this.handleItem();
|
|
632
653
|
},
|
|
633
654
|
init() {
|
|
634
|
-
this.confirmLoading = !0, Promise.all([this.getMenuTree(), this.expandedMenuKeys(), this.getMenuList()]).then(async (s) => {
|
|
655
|
+
this.confirmLoading = !0, Promise.all([this.getMenuTree(), this.expandedMenuKeys(), this.getMenuList(), this.getAppListByAppsId()]).then(async (s) => {
|
|
635
656
|
let e = [], t = [];
|
|
636
|
-
const i = (
|
|
637
|
-
const
|
|
638
|
-
return
|
|
639
|
-
}),
|
|
640
|
-
let n = this.menuAll.filter((
|
|
657
|
+
const i = (d) => (d = d.filter((c, h) => {
|
|
658
|
+
const y = this.checkedKeys.filter((b) => c.id === b)[0];
|
|
659
|
+
return c.open = !0, c.checked = c.type === 1 ? !!y : !1, c.isIndeterminate = !1, c.menusType = c.type, e.push(c.id), t.push(c), c.children && c.children.length > 0 && (c.children = i(c.children)), !0;
|
|
660
|
+
}), d);
|
|
661
|
+
let n = this.menuAll.filter((d) => {
|
|
662
|
+
const c = this.systemMenuAll.filter((h) => h.id === d.id)[0];
|
|
663
|
+
return c && (d.application = c.application), !!c;
|
|
664
|
+
});
|
|
641
665
|
await i(n), this.allCheckedKeys = e;
|
|
642
666
|
let a = [];
|
|
643
|
-
t.forEach((
|
|
644
|
-
const
|
|
645
|
-
t[
|
|
667
|
+
t.forEach((d, c) => {
|
|
668
|
+
const h = this.getMenuIds(d);
|
|
669
|
+
t[c].menuIds = h.arr, t[c].menuBtnIds = h.btn, !(this.checkedKeys.filter((C) => h.arr.includes(C)).length === h.arr.length) && h.arr.length > 0 && a.push(d.id);
|
|
646
670
|
}), this.list = t;
|
|
647
|
-
const l = this.checkedKeys.filter((
|
|
648
|
-
this.checkedKeys = l, this.allClose = this.checkedKeys.length === e.length && e.length > 0
|
|
671
|
+
const l = this.checkedKeys.filter((d) => e.includes(d)).filter((d) => !a.includes(d)).filter((d, c, h) => h.indexOf(d) === c);
|
|
672
|
+
this.checkedKeys = l, this.allClose = this.checkedKeys.length === e.length && e.length > 0;
|
|
673
|
+
let r = [], u = this.appList.filter((d) => {
|
|
674
|
+
const c = n.filter((h) => h.application === d.code);
|
|
675
|
+
return c.length > 0 ? (r = r.concat([...c]), d.children = [...c], d.open = !0, d.uuid = `${p(12)}`, !0) : !1;
|
|
676
|
+
});
|
|
677
|
+
const o = n.filter((d) => !r.filter((h) => h.id === d.id));
|
|
678
|
+
o.length > 0 && u.push({
|
|
679
|
+
name: "\u7A7A\u767D",
|
|
680
|
+
transkey: "gd.echarts.none",
|
|
681
|
+
children: o,
|
|
682
|
+
activeShow: !0,
|
|
683
|
+
open: !0,
|
|
684
|
+
uuid: `${p(12)}`
|
|
685
|
+
}), this.menuTreeData = [...u], this.handleItem(), this.confirmLoading = !1;
|
|
649
686
|
});
|
|
650
687
|
},
|
|
651
688
|
open(s, e) {
|
|
652
689
|
this.record = s, this.appsId = e || window.$systemInfo.id, this.visible = !0, this.init();
|
|
653
690
|
},
|
|
654
691
|
getMenuTree() {
|
|
655
|
-
return
|
|
692
|
+
return z({ roleId: this.record.id }).then((s) => (s.code === 200 && (this.menuAll = s.data), s));
|
|
656
693
|
},
|
|
657
694
|
expandedMenuKeys() {
|
|
658
|
-
return
|
|
695
|
+
return S({
|
|
659
696
|
id: this.record.id
|
|
660
697
|
}).then((s) => (s.code === 200 && (this.checkedKeys = s.data), s));
|
|
661
698
|
},
|
|
662
699
|
getMenuList() {
|
|
663
700
|
let s = { AppsId: this.appsId };
|
|
664
|
-
return
|
|
701
|
+
return j(s).then((e) => (e.code === 200 && (this.systemMenuAll = e.data), e));
|
|
702
|
+
},
|
|
703
|
+
getAppListByAppsId() {
|
|
704
|
+
return q({ appsId: this.appsId }).then((s) => (s.code === 200 && (this.appList = s.data), s));
|
|
665
705
|
},
|
|
666
706
|
getMenuIds(s) {
|
|
667
707
|
let e = [], t = [];
|
|
@@ -680,31 +720,43 @@ const ie = {
|
|
|
680
720
|
toggleFullscreen() {
|
|
681
721
|
this.fullscreen = !this.fullscreen;
|
|
682
722
|
},
|
|
723
|
+
fadeColor(s, e) {
|
|
724
|
+
let t = parseInt(s.substring(1, 3), 16), i = parseInt(s.substring(3, 5), 16), n = parseInt(s.substring(5, 7), 16);
|
|
725
|
+
return `rgba(${t},${i},${n},${e})`;
|
|
726
|
+
},
|
|
683
727
|
doEvent(s) {
|
|
684
728
|
const e = s.item.functionName;
|
|
685
729
|
this[e] && this[e]();
|
|
686
730
|
}
|
|
687
731
|
}
|
|
688
732
|
};
|
|
689
|
-
var
|
|
733
|
+
var de = function() {
|
|
690
734
|
var e = this, t = e._self._c;
|
|
691
|
-
return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
|
|
735
|
+
return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1, "custom-class": e.customClass }, on: { "update:visible": function(i) {
|
|
692
736
|
e.visible = i;
|
|
693
|
-
}, closed: e.closed } }, [t("template", { slot: "title" }, [t("gd-modal-title", { attrs: { title: e.$i18nt("gd.user.dataRole", "\u6388\u6743\u6570\u636E"), fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0
|
|
737
|
+
}, closed: e.closed } }, [t("template", { slot: "title" }, [t("gd-modal-title", { attrs: { title: e.$i18nt("gd.user.dataRole", "\u6388\u6743\u6570\u636E"), fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0, btnFlex: "width:auto" }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen }, scopedSlots: e._u([{ key: "operator", fn: function() {
|
|
738
|
+
return [t("el-dropdown", { attrs: { placement: "bottom" }, on: { command: e.elScrollIntoView } }, [t("el-button", { staticStyle: { margin: "0 1px 0 0", padding: "6px 8px", "font-size": "13px" }, attrs: { type: "primary" } }, [t("i", { staticClass: "gd-icons gd-icon-dingwei1", staticStyle: { "font-size": "14px" } }), e._v(" " + e._s(e.$i18nt("gd.web.location", "\u5B9A\u4F4D")) + " "), t("i", { staticClass: "el-icon-arrow-down" })]), t("el-dropdown-menu", { style: { "--dilute": e.fadeColord, minWidth: "120px" }, attrs: { slot: "dropdown" }, slot: "dropdown" }, e._l(e.menuTreeData, function(i) {
|
|
739
|
+
return t("el-dropdown-item", { key: i.uuid, attrs: { command: i.uuid } }, [t("i", { staticClass: "gd-icons el-icon-right", staticStyle: { "font-size": "14px" } }), i.activeShow ? t("span", [e._v(e._s(e.$i18nt(i.transkey, i.name)))]) : t("span", [e._v(e._s(e.$i18nt(`Dynamics.${i.transkey}`, i.name)))])]);
|
|
740
|
+
}), 1)], 1)];
|
|
741
|
+
}, proxy: !0 }]) })], 1), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticStyle: { "min-height": "400px" } }, [t("div", { staticClass: "app-list" }, [e._l(e.menuTreeData, function(i, n) {
|
|
742
|
+
return [n != 0 ? t("el-divider") : e._e(), t("div", { staticClass: "app-list-item", class: i.uuid }, [t("div", { staticClass: "app-list-name" }, [i.children && i.children.length > 0 ? t("i", { class: i.open ? "el-icon-caret-bottom" : "el-icon-caret-right", on: { click: function(a) {
|
|
743
|
+
return e.appOpen(n, i);
|
|
744
|
+
} } }) : e._e(), e._v(" " + e._s(i.name) + " ")]), i.open ? t("div", { staticStyle: { "padding-left": "20px" } }, [e.visible ? t("LayoutItem", { attrs: { record: i.children, checkedKeys: e.checkedKeys }, on: { open: e.openItem, change: e.changeItem, checkedBtn: e.checkedItemBtn } }) : e._e()], 1) : e._e()])];
|
|
745
|
+
})], 2)]), t("template", { slot: "footer" }, [t("div", { staticClass: "btoms" }, [t("el-checkbox", { attrs: { disabled: e.confirmLoading, indeterminate: e.isIndeterminate }, on: { change: e.changeAll }, model: { value: e.allClose, callback: function(i) {
|
|
694
746
|
e.allClose = i;
|
|
695
747
|
}, expression: "allClose" } }, [e._v(" " + e._s(e.$i18nt("gd.btn.selectAll", "\u5168\u9009")) + " ")])], 1)])], 2)], 1);
|
|
696
|
-
},
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
748
|
+
}, ce = [], he = /* @__PURE__ */ g(
|
|
749
|
+
oe,
|
|
750
|
+
de,
|
|
751
|
+
ce,
|
|
700
752
|
!1,
|
|
701
753
|
null,
|
|
702
|
-
"
|
|
754
|
+
"1e20ac45",
|
|
703
755
|
null,
|
|
704
756
|
null
|
|
705
757
|
);
|
|
706
|
-
const
|
|
707
|
-
const
|
|
758
|
+
const ue = he.exports;
|
|
759
|
+
const fe = {
|
|
708
760
|
name: "GdUserRole",
|
|
709
761
|
props: {
|
|
710
762
|
height: {
|
|
@@ -720,7 +772,7 @@ const oe = {
|
|
|
720
772
|
default: "page"
|
|
721
773
|
}
|
|
722
774
|
},
|
|
723
|
-
mixins: [
|
|
775
|
+
mixins: [k],
|
|
724
776
|
data() {
|
|
725
777
|
return {
|
|
726
778
|
transKey: "gd.btn.add",
|
|
@@ -737,7 +789,7 @@ const oe = {
|
|
|
737
789
|
value: "value"
|
|
738
790
|
},
|
|
739
791
|
defaultExpandedKeys: "",
|
|
740
|
-
loadData: (s) =>
|
|
792
|
+
loadData: (s) => G({ roleId: this.openSelecteKeys[0] }).then((e) => (this.getRowId(e.data), { pageNo: 1, pageSize: 1e3, totalRows: 0, rows: e.data })),
|
|
741
793
|
disableBtn: [],
|
|
742
794
|
fileList: [],
|
|
743
795
|
needLoad: !1,
|
|
@@ -964,7 +1016,7 @@ const oe = {
|
|
|
964
1016
|
styled() {
|
|
965
1017
|
return `height:${this.height + 76}px`;
|
|
966
1018
|
},
|
|
967
|
-
...
|
|
1019
|
+
...f(["tablePageSize", "tableSize", "labelPosition", "formMode"])
|
|
968
1020
|
},
|
|
969
1021
|
methods: {
|
|
970
1022
|
getRowId(s) {
|
|
@@ -982,7 +1034,7 @@ const oe = {
|
|
|
982
1034
|
this.$refs.table.refresh();
|
|
983
1035
|
},
|
|
984
1036
|
getOrgTree() {
|
|
985
|
-
|
|
1037
|
+
w({}).then((s) => {
|
|
986
1038
|
if (s.code === 200) {
|
|
987
1039
|
const e = (t) => (t = t.filter((i, n) => (i.value = String(i.value), i.children && i.children.length > 0 && (i.children = e(i.children)), !0)), t);
|
|
988
1040
|
this.orgTree = e(s.data);
|
|
@@ -1019,7 +1071,7 @@ const oe = {
|
|
|
1019
1071
|
this.$refs.engineSearch.closed();
|
|
1020
1072
|
return;
|
|
1021
1073
|
}
|
|
1022
|
-
this.$refs.engineSearch.confirmLoading = !0,
|
|
1074
|
+
this.$refs.engineSearch.confirmLoading = !0, V({
|
|
1023
1075
|
roleId: this.openSelecteKeys[0],
|
|
1024
1076
|
userIdList: s.data
|
|
1025
1077
|
}).then((e) => {
|
|
@@ -1057,7 +1109,7 @@ const oe = {
|
|
|
1057
1109
|
i();
|
|
1058
1110
|
return;
|
|
1059
1111
|
}
|
|
1060
|
-
t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1,
|
|
1112
|
+
t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, H({
|
|
1061
1113
|
roleId: s.openSelecteKeys[0],
|
|
1062
1114
|
userIdList: s.selectedRowKeys
|
|
1063
1115
|
}).then((n) => {
|
|
@@ -1070,7 +1122,7 @@ const oe = {
|
|
|
1070
1122
|
created() {
|
|
1071
1123
|
}
|
|
1072
1124
|
};
|
|
1073
|
-
var
|
|
1125
|
+
var ge = function() {
|
|
1074
1126
|
var e = this, t = e._self._c;
|
|
1075
1127
|
return t("div", { staticClass: "gd-page-view", staticStyle: { display: "flex", background: "rgb(245, 245, 245)" } }, [t("div", { staticClass: "page-view-list" }, [t("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, showPagination: !1, selectedRowKeys: e.selectedRowKeys, height: e.height, initialLoading: !1 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
|
|
1076
1128
|
return [t("div", { staticClass: "gd-table-operator" }, [t("div", { staticClass: "gd-table-operatorr" }, [t("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
|
|
@@ -1085,18 +1137,18 @@ var de = function() {
|
|
|
1085
1137
|
} }, { key: "status", fn: function({ column: i, row: n }) {
|
|
1086
1138
|
return [t("span", [e._v(" " + e._s(e._f("dictType")("state_code", n.statecodes)) + " ")])];
|
|
1087
1139
|
} }]) }), t("gd-search", { ref: "engineSearch", attrs: { appendToBody: !0, disabledRowId: e.disabledRowId }, on: { lookupSeled: e.lookupSeled } })], 1)]);
|
|
1088
|
-
},
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1140
|
+
}, pe = [], me = /* @__PURE__ */ g(
|
|
1141
|
+
fe,
|
|
1142
|
+
ge,
|
|
1143
|
+
pe,
|
|
1092
1144
|
!1,
|
|
1093
1145
|
null,
|
|
1094
1146
|
"e9dd56ab",
|
|
1095
1147
|
null,
|
|
1096
1148
|
null
|
|
1097
1149
|
);
|
|
1098
|
-
const
|
|
1099
|
-
const
|
|
1150
|
+
const K = me.exports;
|
|
1151
|
+
const ye = {
|
|
1100
1152
|
data() {
|
|
1101
1153
|
return {
|
|
1102
1154
|
buttons: [],
|
|
@@ -1108,12 +1160,12 @@ const ue = {
|
|
|
1108
1160
|
selectedRowKeys: []
|
|
1109
1161
|
};
|
|
1110
1162
|
},
|
|
1111
|
-
components: { UserFormDate:
|
|
1163
|
+
components: { UserFormDate: K },
|
|
1112
1164
|
computed: {
|
|
1113
1165
|
height() {
|
|
1114
1166
|
return this.screenHeight - (this.fullscreen ? 160 : 340);
|
|
1115
1167
|
},
|
|
1116
|
-
...
|
|
1168
|
+
...f(["screenHeight"])
|
|
1117
1169
|
},
|
|
1118
1170
|
methods: {
|
|
1119
1171
|
handleSubmit() {
|
|
@@ -1141,23 +1193,23 @@ const ue = {
|
|
|
1141
1193
|
}
|
|
1142
1194
|
}
|
|
1143
1195
|
};
|
|
1144
|
-
var
|
|
1196
|
+
var be = function() {
|
|
1145
1197
|
var e = this, t = e._self._c;
|
|
1146
1198
|
return t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "modal-append-to-body": !0, "append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
|
|
1147
1199
|
e.visible = i;
|
|
1148
1200
|
}, closed: e.closed } }, [t("template", { slot: "title" }, [t("gd-modal-title", { attrs: { title: e.$i18nt("gd.user.userAuthorization", "\u6388\u6743\u7528\u6237"), fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen } })], 1), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [e.visible ? t("UserFormDate", { ref: "userForm", attrs: { height: e.height, openMode: "components", openSelecteKeys: e.selectedRowKeys }, on: { onSelectChange: e.onSelectChange } }) : e._e()], 1)], 2);
|
|
1149
|
-
},
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1201
|
+
}, ve = [], _e = /* @__PURE__ */ g(
|
|
1202
|
+
ye,
|
|
1203
|
+
be,
|
|
1204
|
+
ve,
|
|
1153
1205
|
!1,
|
|
1154
1206
|
null,
|
|
1155
1207
|
"46b57430",
|
|
1156
1208
|
null,
|
|
1157
1209
|
null
|
|
1158
1210
|
);
|
|
1159
|
-
const
|
|
1160
|
-
const
|
|
1211
|
+
const ke = _e.exports;
|
|
1212
|
+
const we = {
|
|
1161
1213
|
data() {
|
|
1162
1214
|
return {
|
|
1163
1215
|
defaultKey: [],
|
|
@@ -1272,12 +1324,12 @@ const ye = {
|
|
|
1272
1324
|
id: ""
|
|
1273
1325
|
};
|
|
1274
1326
|
},
|
|
1275
|
-
components: { UserFormDate:
|
|
1327
|
+
components: { UserFormDate: K },
|
|
1276
1328
|
computed: {
|
|
1277
1329
|
height() {
|
|
1278
1330
|
return this.screenHeight - (this.fullscreen ? 160 : 340);
|
|
1279
1331
|
},
|
|
1280
|
-
...
|
|
1332
|
+
...f(["screenHeight"])
|
|
1281
1333
|
},
|
|
1282
1334
|
methods: {
|
|
1283
1335
|
querySearch(s, e) {
|
|
@@ -1328,7 +1380,7 @@ const ye = {
|
|
|
1328
1380
|
...i
|
|
1329
1381
|
};
|
|
1330
1382
|
}).map(({ list: t, ...i }) => i);
|
|
1331
|
-
this.confirmLoading = !0,
|
|
1383
|
+
this.confirmLoading = !0, R(e).then((t) => {
|
|
1332
1384
|
t.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok"), this.closed()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + t.message), this.confirmLoading = !1;
|
|
1333
1385
|
});
|
|
1334
1386
|
},
|
|
@@ -1340,7 +1392,7 @@ const ye = {
|
|
|
1340
1392
|
...i
|
|
1341
1393
|
};
|
|
1342
1394
|
}).map(({ list: t, ...i }) => i);
|
|
1343
|
-
this.confirmLoading = !0,
|
|
1395
|
+
this.confirmLoading = !0, L(e).then((t) => {
|
|
1344
1396
|
t.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok"), this.closed()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + t.message), this.confirmLoading = !1;
|
|
1345
1397
|
});
|
|
1346
1398
|
},
|
|
@@ -1348,7 +1400,7 @@ const ye = {
|
|
|
1348
1400
|
this.record = s, this.visible = !0, this.getallTree(), this.getDetail(s);
|
|
1349
1401
|
},
|
|
1350
1402
|
getDetail(s) {
|
|
1351
|
-
|
|
1403
|
+
I({ roleId: s.id }).then((e) => {
|
|
1352
1404
|
if (e.code == 200 && (this.currentPermissions = [], this.$refs.elTreeRef && this.$refs.elTreeRef.setCheckedKeys([]), e.data.length > 0)) {
|
|
1353
1405
|
this.id = e.data[0].id, this.currentPermissions = [];
|
|
1354
1406
|
const t = e.data.map((n) => {
|
|
@@ -1378,7 +1430,7 @@ const ye = {
|
|
|
1378
1430
|
});
|
|
1379
1431
|
},
|
|
1380
1432
|
getallTree() {
|
|
1381
|
-
|
|
1433
|
+
x().then((s) => {
|
|
1382
1434
|
if (s.code == 200) {
|
|
1383
1435
|
this.restaurants = JSON.parse(JSON.stringify(s.data));
|
|
1384
1436
|
const e = this.buildTree(JSON.parse(JSON.stringify(s.data)));
|
|
@@ -1423,7 +1475,7 @@ const ye = {
|
|
|
1423
1475
|
n();
|
|
1424
1476
|
return;
|
|
1425
1477
|
}
|
|
1426
|
-
i.confirmButtonLoading = !0, i.cancelButtonLoading = !0, i.showCancelButton = !1, s.id === 0 ? e.$message.success(e.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) :
|
|
1478
|
+
i.confirmButtonLoading = !0, i.cancelButtonLoading = !0, i.showCancelButton = !1, s.id === 0 ? e.$message.success(e.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : v({
|
|
1427
1479
|
ids: s.id
|
|
1428
1480
|
}).then((l) => {
|
|
1429
1481
|
i.confirmButtonLoading = !1, i.cancelButtonLoading = !1, i.showCancelButton = !0, l.success ? e.$message.success(e.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : e.$message.error(e.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + l.message);
|
|
@@ -1527,20 +1579,20 @@ const ye = {
|
|
|
1527
1579
|
customClass: "custom-alert",
|
|
1528
1580
|
callback: () => {
|
|
1529
1581
|
},
|
|
1530
|
-
beforeClose: (l, r,
|
|
1582
|
+
beforeClose: (l, r, u) => {
|
|
1531
1583
|
if (l !== "confirm") {
|
|
1532
|
-
|
|
1584
|
+
u(), setTimeout(() => {
|
|
1533
1585
|
this.$nextTick(() => {
|
|
1534
1586
|
this.$refs.elTreeRef.setChecked(s.id, !0);
|
|
1535
1587
|
});
|
|
1536
1588
|
});
|
|
1537
1589
|
return;
|
|
1538
1590
|
}
|
|
1539
|
-
r.confirmButtonLoading = !0, r.cancelButtonLoading = !0, r.showCancelButton = !1, n[0].id === 0 ? a.$message.success(a.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) :
|
|
1591
|
+
r.confirmButtonLoading = !0, r.cancelButtonLoading = !0, r.showCancelButton = !1, n[0].id === 0 ? a.$message.success(a.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : v({
|
|
1540
1592
|
ids: n[0].id
|
|
1541
1593
|
}).then((o) => {
|
|
1542
1594
|
r.confirmButtonLoading = !1, r.cancelButtonLoading = !1, r.showCancelButton = !0, o.success ? a.$message.success(a.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : a.$message.error(a.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + o.message);
|
|
1543
|
-
}),
|
|
1595
|
+
}), u(), this.nextclickdel(i);
|
|
1544
1596
|
}
|
|
1545
1597
|
});
|
|
1546
1598
|
}
|
|
@@ -1604,7 +1656,7 @@ const ye = {
|
|
|
1604
1656
|
}
|
|
1605
1657
|
}
|
|
1606
1658
|
};
|
|
1607
|
-
var
|
|
1659
|
+
var $e = function() {
|
|
1608
1660
|
var e = this, t = e._self._c;
|
|
1609
1661
|
return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "modal-append-to-body": !0, "append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
|
|
1610
1662
|
e.visible = i;
|
|
@@ -1625,18 +1677,18 @@ var be = function() {
|
|
|
1625
1677
|
}, expression: "items.value" } }, [t("el-radio", { attrs: { label: "1" } }, [t("span", { staticStyle: { color: "rgb(82, 196, 26)" } }, [e._v(e._s(e.$i18nt("gd.user.allow", "\u5141\u8BB8")))])]), t("el-radio", { attrs: { label: "2" } }, [t("span", { staticStyle: { color: "red" } }, [e._v(e._s(e.$i18nt("gd.user.refuse", "\u62D2\u7EDD")))])])], 1)], 1)]);
|
|
1626
1678
|
}), 1)])]);
|
|
1627
1679
|
}), 0)], 1)])])], 2)], 1);
|
|
1628
|
-
},
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1680
|
+
}, Ke = [], Ce = /* @__PURE__ */ g(
|
|
1681
|
+
we,
|
|
1682
|
+
$e,
|
|
1683
|
+
Ke,
|
|
1632
1684
|
!1,
|
|
1633
1685
|
null,
|
|
1634
1686
|
"b1dc77ce",
|
|
1635
1687
|
null,
|
|
1636
1688
|
null
|
|
1637
1689
|
);
|
|
1638
|
-
const
|
|
1639
|
-
const
|
|
1690
|
+
const Te = Ce.exports;
|
|
1691
|
+
const Se = {
|
|
1640
1692
|
data() {
|
|
1641
1693
|
return {
|
|
1642
1694
|
buttons: [
|
|
@@ -1667,16 +1719,16 @@ const we = {
|
|
|
1667
1719
|
isIndeterminate() {
|
|
1668
1720
|
return this.allClose ? !1 : this.checkedKeys.length > 0;
|
|
1669
1721
|
},
|
|
1670
|
-
...
|
|
1722
|
+
...f(["screenHeight", "tableLists"])
|
|
1671
1723
|
},
|
|
1672
|
-
components: { LayoutItem:
|
|
1724
|
+
components: { LayoutItem: $ },
|
|
1673
1725
|
methods: {
|
|
1674
1726
|
async handleSubmit() {
|
|
1675
1727
|
const s = (e) => (e = e.filter((t, i) => {
|
|
1676
1728
|
const n = this.checkedKeys.filter((a) => t.id === a)[0];
|
|
1677
1729
|
return t.type = n ? 1 : 0, t.formlist && t.formlist.length > 0 && (t.formlist = s(t.formlist)), t.viewlist && t.viewlist.length > 0 && (t.viewlist = s(t.viewlist)), t.btnlist && t.btnlist.length > 0 && (t.btnlist = s(t.btnlist)), !0;
|
|
1678
1730
|
}), e);
|
|
1679
|
-
this.confirmLoading = !0, await s(this.menuAll),
|
|
1731
|
+
this.confirmLoading = !0, await s(this.menuAll), D({
|
|
1680
1732
|
roleid: this.record.id,
|
|
1681
1733
|
list: this.menuAll
|
|
1682
1734
|
}).then((e) => {
|
|
@@ -1702,12 +1754,12 @@ const we = {
|
|
|
1702
1754
|
return;
|
|
1703
1755
|
let l = [];
|
|
1704
1756
|
this.findParent(this.menuTreeData, n, l);
|
|
1705
|
-
let r = [],
|
|
1757
|
+
let r = [], u = [];
|
|
1706
1758
|
l.forEach((o) => {
|
|
1707
|
-
this.checkedKeys.filter((
|
|
1759
|
+
this.checkedKeys.filter((h) => o.menuIds.includes(h)).length === o.menuIds.length && o.menuIds.length > 0 && !o.checked ? r.push(o.id) : u.push(o.id);
|
|
1708
1760
|
}), r.forEach((o) => {
|
|
1709
1761
|
this.changeItem(!0, [o], !1);
|
|
1710
|
-
}),
|
|
1762
|
+
}), u.forEach((o) => {
|
|
1711
1763
|
this.changeItem(!1, [o], !1);
|
|
1712
1764
|
});
|
|
1713
1765
|
},
|
|
@@ -1727,25 +1779,25 @@ const we = {
|
|
|
1727
1779
|
this.confirmLoading = !1;
|
|
1728
1780
|
let e = JSON.parse(JSON.stringify(this.menuTreeDatad)), t = [];
|
|
1729
1781
|
const i = (a) => (a = a.filter((l, r) => {
|
|
1730
|
-
const
|
|
1731
|
-
return l.open = !0, l.checked = l.menusType === 1 ? !!
|
|
1782
|
+
const u = this.checkedKeys.filter((o) => l.id === o)[0];
|
|
1783
|
+
return l.open = !0, l.checked = l.menusType === 1 ? !!u : !1, l.isIndeterminate = !1, t.push(l), l.children && l.children.length > 0 && (l.children = i(l.children)), !0;
|
|
1732
1784
|
}), a);
|
|
1733
1785
|
await i(e);
|
|
1734
1786
|
let n = [];
|
|
1735
1787
|
t.forEach((a, l) => {
|
|
1736
1788
|
const r = this.getMenuIds(a);
|
|
1737
|
-
t[l].menuIds = r.arr, t[l].menuBtnIds = r.btn, !(this.checkedKeys.filter((
|
|
1789
|
+
t[l].menuIds = r.arr, t[l].menuBtnIds = r.btn, !(this.checkedKeys.filter((d) => r.arr.includes(d)).length === r.arr.length) && r.arr.length > 0 && n.push(a.id);
|
|
1738
1790
|
}), this.list = t, this.allClose = this.checkedKeys.length === this.allCheckedKeys.length && this.allCheckedKeys.length > 0, this.menuTreeData = [...e], this.handleItem(), console.log(this.menuAll, "123");
|
|
1739
1791
|
});
|
|
1740
1792
|
},
|
|
1741
1793
|
getList() {
|
|
1742
|
-
return
|
|
1794
|
+
return P({ roleId: this.record.id }).then((s) => {
|
|
1743
1795
|
if (s.code === 200) {
|
|
1744
1796
|
let e = [], t = [];
|
|
1745
|
-
const i = (a, l) => (a = a.filter((r,
|
|
1797
|
+
const i = (a, l) => (a = a.filter((r, u) => {
|
|
1746
1798
|
r.parentId = l, r.open = !0, r.checked = !1, r.isIndeterminate = !1, r.transkey = r.transkey ? r.transkey : null, r.title = r.name, r.menusType = r.formlist && r.viewlist ? 0 : r.btnlist ? 1 : 2, t.push(r.id), r.type === 1 && e.push(r.id);
|
|
1747
1799
|
let o = [];
|
|
1748
|
-
return r.viewlist && r.viewlist.length > 0 && (r.viewlist.map((
|
|
1800
|
+
return r.viewlist && r.viewlist.length > 0 && (r.viewlist.map((d) => (d.iconClass = "gd-icon-shitumoshi", d)), o = o.concat(r.viewlist)), r.formlist && r.formlist.length > 0 && (r.formlist.map((d) => (d.iconClass = "gd-icon-biaodanmoshi", d)), o = o.concat(r.formlist)), r.btnlist && r.btnlist.length > 0 && (o = o.concat(r.btnlist)), o.length > 0 && (r.children = i(o, r.id)), !0;
|
|
1749
1801
|
}), a);
|
|
1750
1802
|
this.menuAll = s.data.list;
|
|
1751
1803
|
let n = JSON.parse(JSON.stringify(this.menuAll));
|
|
@@ -1780,25 +1832,25 @@ const we = {
|
|
|
1780
1832
|
}
|
|
1781
1833
|
}
|
|
1782
1834
|
};
|
|
1783
|
-
var
|
|
1835
|
+
var Re = function() {
|
|
1784
1836
|
var e = this, t = e._self._c;
|
|
1785
1837
|
return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
|
|
1786
1838
|
e.visible = i;
|
|
1787
1839
|
}, closed: e.closed } }, [t("template", { slot: "title" }, [t("gd-modal-title", { attrs: { title: e.$i18nt("gd.user.dataRole", "\u6388\u6743\u6570\u636E"), buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen } })], 1), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticStyle: { "min-height": "400px" } }, [e.visible ? t("LayoutItem", { attrs: { record: e.menuTreeData, checkedKeys: e.checkedKeys }, on: { open: e.openItem, change: e.changeItem, checkedBtn: e.checkedItemBtn } }) : e._e()], 1), t("template", { slot: "footer" }, [t("div", { staticClass: "btoms" }, [t("el-checkbox", { attrs: { disabled: e.confirmLoading, indeterminate: e.isIndeterminate }, on: { change: e.changeAll }, model: { value: e.allClose, callback: function(i) {
|
|
1788
1840
|
e.allClose = i;
|
|
1789
1841
|
}, expression: "allClose" } }, [e._v(" " + e._s(e.$i18nt("gd.btn.selectAll", "\u5168\u9009")) + " ")])], 1)])], 2)], 1);
|
|
1790
|
-
},
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1842
|
+
}, Le = [], Ie = /* @__PURE__ */ g(
|
|
1843
|
+
Se,
|
|
1844
|
+
Re,
|
|
1845
|
+
Le,
|
|
1794
1846
|
!1,
|
|
1795
1847
|
null,
|
|
1796
1848
|
"e6593396",
|
|
1797
1849
|
null,
|
|
1798
1850
|
null
|
|
1799
1851
|
);
|
|
1800
|
-
const
|
|
1801
|
-
const
|
|
1852
|
+
const xe = Ie.exports;
|
|
1853
|
+
const De = {
|
|
1802
1854
|
name: "GdRole",
|
|
1803
1855
|
props: {
|
|
1804
1856
|
height: {
|
|
@@ -1814,7 +1866,7 @@ const Re = {
|
|
|
1814
1866
|
default: () => []
|
|
1815
1867
|
}
|
|
1816
1868
|
},
|
|
1817
|
-
mixins: [
|
|
1869
|
+
mixins: [k, U],
|
|
1818
1870
|
data() {
|
|
1819
1871
|
return {
|
|
1820
1872
|
appsId: "",
|
|
@@ -1825,11 +1877,11 @@ const Re = {
|
|
|
1825
1877
|
selectedRows: [],
|
|
1826
1878
|
queryParam: {},
|
|
1827
1879
|
allRowData: [],
|
|
1828
|
-
loadData: (s) => (this.selectedKeep && (this.selectedRowKeys = [...this.openSelecteKeys]),
|
|
1880
|
+
loadData: (s) => (this.selectedKeep && (this.selectedRowKeys = [...this.openSelecteKeys]), N(Object.assign(s, this.queryParam, { sysAppsId: window.$systemInfo.id })).then((e) => (this.allRowData = e.data, e.data))),
|
|
1829
1881
|
isDoc: ""
|
|
1830
1882
|
};
|
|
1831
1883
|
},
|
|
1832
|
-
components: { RoleGrant:
|
|
1884
|
+
components: { RoleGrant: ie, RoleMenu: ue, RoleMenuViewForm: xe, UserAuthorization: ke, DocumentAuthorization: Te },
|
|
1833
1885
|
computed: {
|
|
1834
1886
|
getTableButtons() {
|
|
1835
1887
|
return this.tableButtons.filter((s) => s.functionName === "grantRoleAppMenu" ? !!this.appsId : s.functionName === "documentAuthorizationMenu" ? this.isDoc == 1 : !0);
|
|
@@ -1846,18 +1898,18 @@ const Re = {
|
|
|
1846
1898
|
getHeight() {
|
|
1847
1899
|
return this.height;
|
|
1848
1900
|
},
|
|
1849
|
-
...
|
|
1901
|
+
...f(["tablePageSize", "tableSize", "labelPosition", "formMode"])
|
|
1850
1902
|
},
|
|
1851
1903
|
methods: {
|
|
1852
1904
|
getConfigInfo() {
|
|
1853
|
-
|
|
1905
|
+
_({
|
|
1854
1906
|
code: "GDS_Enable_Doc_Premissions"
|
|
1855
1907
|
}).then((e) => {
|
|
1856
1908
|
e.code === 200 && (this.isDoc = e.data.value);
|
|
1857
1909
|
});
|
|
1858
1910
|
},
|
|
1859
1911
|
getAppId() {
|
|
1860
|
-
|
|
1912
|
+
_({ code: "App_Id" }).then((s) => {
|
|
1861
1913
|
s.code === 200 && (this.appsId = s.data ? s.data.value : "");
|
|
1862
1914
|
});
|
|
1863
1915
|
},
|
|
@@ -1965,7 +2017,7 @@ const Re = {
|
|
|
1965
2017
|
}
|
|
1966
2018
|
let i = [];
|
|
1967
2019
|
this.selectedRows.forEach((n) => {
|
|
1968
|
-
let a =
|
|
2020
|
+
let a = B(n).then((l) => l);
|
|
1969
2021
|
i.push(a);
|
|
1970
2022
|
}), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(i).then((n) => {
|
|
1971
2023
|
const a = n.filter((l) => !l.success);
|
|
@@ -1999,7 +2051,7 @@ const Re = {
|
|
|
1999
2051
|
},
|
|
2000
2052
|
sbumit({ data: s, record: e, btn: t }, i, n) {
|
|
2001
2053
|
this.formLoading = !0;
|
|
2002
|
-
let a = e ? this.transKey === "gd.https.copy" ?
|
|
2054
|
+
let a = e ? this.transKey === "gd.https.copy" ? A : F : M;
|
|
2003
2055
|
const l = this.transKey !== "gd.https.edit" ? Object.assign(s, { sysappsid: window.$systemInfo.id }) : s;
|
|
2004
2056
|
a(l).then((r) => {
|
|
2005
2057
|
r.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), n(), this.refresh()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + r.message), this.formLoading = !1;
|
|
@@ -2017,7 +2069,7 @@ const Re = {
|
|
|
2017
2069
|
this.getAppId(), this.getConfigInfo();
|
|
2018
2070
|
}
|
|
2019
2071
|
};
|
|
2020
|
-
var
|
|
2072
|
+
var Pe = function() {
|
|
2021
2073
|
var e = this, t = e._self._c;
|
|
2022
2074
|
return t("div", { staticClass: "gd-page-view" }, [t("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [t("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, filtering: !0, selectedKeep: e.selectedKeep, initialLoading: e.initialLoading }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "name", fn: function({ column: i, row: n }) {
|
|
2023
2075
|
return [t("gd-tooltip", { attrs: { rowKey: "name", row: n, highlight: "" }, on: { click: e.editForm } })];
|
|
@@ -2030,20 +2082,20 @@ var Se = function() {
|
|
|
2030
2082
|
}, proxy: !0 }, { key: "filtering", fn: function({ colse: i, visible: n }) {
|
|
2031
2083
|
return [t("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: i, visible: n }, on: { save: e.saveQueries } })];
|
|
2032
2084
|
} }]) })], 1), t("gd-edit-form", { ref: "editForm", attrs: { formItemWidth: "90%", loading: e.formLoading, transKey: e.transKey, buttons: e.formButtons, columns: e.getFormColumns, labelPosition: e.labelPosition, formMode: e.formMode }, on: { sbumit: e.sbumit } }), t("RoleGrant", { ref: "roleGrant", on: { ok: e.refresh } }), t("RoleMenu", { ref: "roleMenu", on: { ok: e.refresh } }), t("RoleMenuViewForm", { ref: "roleMenuViewForm", on: { ok: e.refresh } }), t("UserAuthorization", { ref: "userAuthorization", on: { ok: e.refresh } }), t("DocumentAuthorization", { ref: "documentAuthorization", on: { ok: e.refresh } })], 1);
|
|
2033
|
-
},
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2085
|
+
}, Ne = [], Be = /* @__PURE__ */ g(
|
|
2086
|
+
De,
|
|
2087
|
+
Pe,
|
|
2088
|
+
Ne,
|
|
2037
2089
|
!1,
|
|
2038
2090
|
null,
|
|
2039
2091
|
"00f39bc6",
|
|
2040
2092
|
null,
|
|
2041
2093
|
null
|
|
2042
2094
|
);
|
|
2043
|
-
const
|
|
2044
|
-
|
|
2045
|
-
s.component(
|
|
2095
|
+
const m = Be.exports;
|
|
2096
|
+
m.install = function(s) {
|
|
2097
|
+
s.component(m.name, m);
|
|
2046
2098
|
};
|
|
2047
2099
|
export {
|
|
2048
|
-
|
|
2100
|
+
m as G
|
|
2049
2101
|
};
|