gds-plus-design-vue 1.1.7 → 1.1.8
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/gd-initial.js +15 -16
- package/lib/gd-initial.mjs +9886 -9254
- package/lib/main.2eb05c0d.js +1 -0
- package/lib/main.85f07438.mjs +68 -0
- package/lib/main.9bdd200f.mjs +87 -0
- package/lib/{main.f2b00b70.mjs → main.e62fbc84.mjs} +17 -17
- package/lib/{main.60763eae.js → main.ef020e08.js} +1 -1
- package/lib/main.f13b92a2.js +1 -0
- package/lib/style.css +1 -1
- package/lib/{system.account.93b7df36.mjs → system.account.25a9471c.mjs} +521 -505
- package/lib/{system.account.65b2f7d4.js → system.account.88600238.js} +2 -2
- package/lib/{system.duplicatechecking.0d47a5ca.js → system.duplicatechecking.2e9b8df8.js} +1 -1
- package/lib/{system.duplicatechecking.ad111272.mjs → system.duplicatechecking.b05f1617.mjs} +2 -2
- package/lib/{system.email.54722948.js → system.email.15594778.js} +1 -1
- package/lib/{system.email.923697c6.mjs → system.email.6369f5b4.mjs} +1 -1
- package/lib/{system.notice.93c4691c.js → system.notice.662195f6.js} +1 -1
- package/lib/{system.notice.e0b84103.mjs → system.notice.e2fe81dc.mjs} +1 -1
- package/lib/{system.noticereceived.a28ba643.js → system.noticereceived.15cf2fce.js} +1 -1
- package/lib/{system.noticereceived.c0a19336.mjs → system.noticereceived.20f38964.mjs} +1 -1
- package/lib/{system.permissions.b8a5f79d.mjs → system.permissions.5524b210.mjs} +1 -1
- package/lib/{system.permissions.c34f44a3.js → system.permissions.a45b5b80.js} +1 -1
- package/lib/system.promptmanagement.67475aac.js +1 -0
- package/lib/{system.promptmanagement.fe8b0913.mjs → system.promptmanagement.e9976712.mjs} +67 -51
- package/lib/system.role.0a1f11ad.js +1 -0
- package/lib/{system.role.ceb5ed2d.mjs → system.role.e5d08307.mjs} +94 -60
- package/lib/{system.translation.6351f189.mjs → system.translation.48ff0b03.mjs} +25 -21
- package/lib/{system.translation.8905eb73.js → system.translation.8f7e4144.js} +1 -1
- package/lib/{system.user.12a4e490.mjs → system.user.30451246.mjs} +19 -12
- package/lib/{system.user.d668538b.js → system.user.e0e4ac12.js} +6 -6
- package/lib/{system.useraffiliation.c272e688.mjs → system.useraffiliation.1e74fa9e.mjs} +1 -1
- package/lib/{system.useraffiliation.b8be03db.js → system.useraffiliation.f3c88a51.js} +1 -1
- package/locale/en_US.js +40 -7
- package/locale/id_ID.js +43 -10
- package/locale/vi_VN.js +43 -10
- package/locale/zh_CN.js +37 -4
- package/package.json +1 -1
- package/lib/system.promptmanagement.5a4930b1.js +0 -1
- package/lib/system.role.daedd959.js +0 -1
|
@@ -2,8 +2,8 @@ import { s as v, a as _, b as K, c as k, g as w, d as $, e as T, f as C, h as R
|
|
|
2
2
|
import { m as h, n as u } from "./chartbi.48631362.mjs";
|
|
3
3
|
import { t as m } from "./messages.7e85146d.mjs";
|
|
4
4
|
import { g as y, s as I, a as L } from "./system.org.b8d59e5d.mjs";
|
|
5
|
-
import { S, b as x, g as N, p as D, d as F } from "./system.account.
|
|
6
|
-
const
|
|
5
|
+
import { S, b as x, g as N, p as D, d as B, e as F } from "./system.account.25a9471c.mjs";
|
|
6
|
+
const M = {
|
|
7
7
|
data() {
|
|
8
8
|
return {
|
|
9
9
|
tableColumns: [
|
|
@@ -144,7 +144,7 @@ const B = {
|
|
|
144
144
|
functionName: "userAuthorizationMenu",
|
|
145
145
|
show: !0,
|
|
146
146
|
transKey: "gd.user.userAuthorization",
|
|
147
|
-
icon: "el-icon-
|
|
147
|
+
icon: "el-icon-user",
|
|
148
148
|
name: "sysRole:userMenu"
|
|
149
149
|
},
|
|
150
150
|
{
|
|
@@ -152,7 +152,15 @@ const B = {
|
|
|
152
152
|
functionName: "grantRoleMenu",
|
|
153
153
|
show: !0,
|
|
154
154
|
transKey: "gd.user.menuRole",
|
|
155
|
-
icon: "el-icon-
|
|
155
|
+
icon: "el-icon-monitor",
|
|
156
|
+
name: "sysRole:grantMenu"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
displayName: "\u6388\u6743APP\u83DC\u5355",
|
|
160
|
+
functionName: "grantRoleAppMenu",
|
|
161
|
+
show: !0,
|
|
162
|
+
transKey: "gd.user.menuRoleApp",
|
|
163
|
+
icon: "el-icon-mobile-phone",
|
|
156
164
|
name: "sysRole:grantMenu"
|
|
157
165
|
},
|
|
158
166
|
{
|
|
@@ -160,7 +168,7 @@ const B = {
|
|
|
160
168
|
functionName: "grantRoleGrant",
|
|
161
169
|
show: !0,
|
|
162
170
|
transKey: "gd.user.dataRole",
|
|
163
|
-
icon: "el-icon-
|
|
171
|
+
icon: "el-icon-tickets",
|
|
164
172
|
name: "sysRole:grantData"
|
|
165
173
|
},
|
|
166
174
|
{
|
|
@@ -196,7 +204,7 @@ const B = {
|
|
|
196
204
|
};
|
|
197
205
|
}
|
|
198
206
|
};
|
|
199
|
-
const
|
|
207
|
+
const A = {
|
|
200
208
|
data() {
|
|
201
209
|
return {
|
|
202
210
|
defaultProps: {
|
|
@@ -257,23 +265,23 @@ const M = {
|
|
|
257
265
|
}
|
|
258
266
|
}
|
|
259
267
|
};
|
|
260
|
-
var
|
|
268
|
+
var P = function() {
|
|
261
269
|
var e = this, s = e._self._c;
|
|
262
270
|
return s("div", [s("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(n) {
|
|
263
271
|
e.visible = n;
|
|
264
272
|
}, closed: e.closed } }, [s("template", { slot: "title" }, [s("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), s("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [e.visible ? s("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);
|
|
265
|
-
},
|
|
266
|
-
|
|
267
|
-
O,
|
|
273
|
+
}, O = [], E = /* @__PURE__ */ u(
|
|
274
|
+
A,
|
|
268
275
|
P,
|
|
276
|
+
O,
|
|
269
277
|
!1,
|
|
270
278
|
null,
|
|
271
279
|
"1aca9ef6",
|
|
272
280
|
null,
|
|
273
281
|
null
|
|
274
282
|
);
|
|
275
|
-
const
|
|
276
|
-
const
|
|
283
|
+
const z = E.exports;
|
|
284
|
+
const q = {
|
|
277
285
|
data() {
|
|
278
286
|
return {
|
|
279
287
|
buttons: [
|
|
@@ -369,7 +377,7 @@ const z = {
|
|
|
369
377
|
currentList: {}
|
|
370
378
|
};
|
|
371
379
|
},
|
|
372
|
-
components: { RoleScope:
|
|
380
|
+
components: { RoleScope: z },
|
|
373
381
|
computed: {
|
|
374
382
|
height() {
|
|
375
383
|
return this.screenHeight - (this.fullscreen ? 120 : 310);
|
|
@@ -432,7 +440,7 @@ const z = {
|
|
|
432
440
|
}
|
|
433
441
|
}
|
|
434
442
|
};
|
|
435
|
-
var
|
|
443
|
+
var G = function() {
|
|
436
444
|
var e = this, s = e._self._c;
|
|
437
445
|
return s("div", [s("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(n) {
|
|
438
446
|
e.visible = n;
|
|
@@ -447,18 +455,18 @@ var q = function() {
|
|
|
447
455
|
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.view", "\u67E5\u770B")) + " ")]) : e._e()], 1)];
|
|
448
456
|
} };
|
|
449
457
|
})], null, !0) }) : e._e()], 1)], 2), s("RoleScope", { ref: "roleScope", on: { ok: e.setRoleScop } })], 1);
|
|
450
|
-
},
|
|
451
|
-
z,
|
|
458
|
+
}, j = [], H = /* @__PURE__ */ u(
|
|
452
459
|
q,
|
|
453
460
|
G,
|
|
461
|
+
j,
|
|
454
462
|
!1,
|
|
455
463
|
null,
|
|
456
464
|
"c46bea75",
|
|
457
465
|
null,
|
|
458
466
|
null
|
|
459
467
|
);
|
|
460
|
-
const
|
|
461
|
-
const
|
|
468
|
+
const V = H.exports;
|
|
469
|
+
const U = {
|
|
462
470
|
name: "LayoutItem",
|
|
463
471
|
props: {
|
|
464
472
|
record: {
|
|
@@ -504,7 +512,7 @@ const V = {
|
|
|
504
512
|
}
|
|
505
513
|
}
|
|
506
514
|
};
|
|
507
|
-
var
|
|
515
|
+
var Q = function() {
|
|
508
516
|
var e = this, s = e._self._c;
|
|
509
517
|
return s("div", { style: { "--fadecolor": e.fadeColord } }, [e._l(e.record, function(n) {
|
|
510
518
|
return [s("div", { staticClass: "list-item" }, [e.menusType === 0 ? s("i", { class: n.open ? "el-icon-caret-bottom" : "el-icon-caret-right", on: { click: function(i) {
|
|
@@ -523,18 +531,18 @@ var U = function() {
|
|
|
523
531
|
} } }, [i.checked ? s("i", { staticClass: "gd-icons gd-icon-quanxuan active-color" }) : s("div", { staticClass: "item-named-kuang" }), s("div", { staticClass: "item-named-title", class: i.checked ? "active-color" : "" }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${i.transkey}`, i.title)) + " ")])])];
|
|
524
532
|
})], 2) : e._e()])]), n.children && n.children.length > 0 && n.children[0].menusType !== 2 ? s("div", { staticClass: "list-more" }, [n.open ? s("LayoutItem", { attrs: { record: n.children, checkedKeys: e.checkedKeys }, on: { open: e.open, change: e.change, checkedBtn: e.checkedBtn } }) : e._e()], 1) : e._e()];
|
|
525
533
|
})], 2);
|
|
526
|
-
},
|
|
527
|
-
V,
|
|
534
|
+
}, J = [], W = /* @__PURE__ */ u(
|
|
528
535
|
U,
|
|
529
536
|
Q,
|
|
537
|
+
J,
|
|
530
538
|
!1,
|
|
531
539
|
null,
|
|
532
540
|
"d151fae1",
|
|
533
541
|
null,
|
|
534
542
|
null
|
|
535
543
|
);
|
|
536
|
-
const b =
|
|
537
|
-
const
|
|
544
|
+
const b = W.exports;
|
|
545
|
+
const X = {
|
|
538
546
|
data() {
|
|
539
547
|
return {
|
|
540
548
|
buttons: [
|
|
@@ -557,7 +565,8 @@ const W = {
|
|
|
557
565
|
allClose: !1,
|
|
558
566
|
menuAll: [],
|
|
559
567
|
systemMenuAll: [],
|
|
560
|
-
allCheckedKeys: []
|
|
568
|
+
allCheckedKeys: [],
|
|
569
|
+
appsId: ""
|
|
561
570
|
};
|
|
562
571
|
},
|
|
563
572
|
computed: {
|
|
@@ -631,8 +640,8 @@ const W = {
|
|
|
631
640
|
this.checkedKeys = o, this.allClose = this.checkedKeys.length === e.length && e.length > 0, this.menuTreeData = [...i], this.handleItem(), this.confirmLoading = !1;
|
|
632
641
|
});
|
|
633
642
|
},
|
|
634
|
-
open(t) {
|
|
635
|
-
this.record = t, this.visible = !0, this.init();
|
|
643
|
+
open(t, e) {
|
|
644
|
+
this.record = t, this.appsId = e || window.$systemInfo.id, this.visible = !0, this.init();
|
|
636
645
|
},
|
|
637
646
|
getMenuTree() {
|
|
638
647
|
return S({ roleId: this.record.id }).then((t) => (t.code === 200 && (this.menuAll = t.data), t));
|
|
@@ -643,7 +652,8 @@ const W = {
|
|
|
643
652
|
}).then((t) => (t.code === 200 && (this.checkedKeys = t.data), t));
|
|
644
653
|
},
|
|
645
654
|
getMenuList() {
|
|
646
|
-
|
|
655
|
+
let t = { AppsId: this.appsId };
|
|
656
|
+
return x(t).then((e) => (e.code === 200 && (this.systemMenuAll = e.data), e));
|
|
647
657
|
},
|
|
648
658
|
getMenuIds(t) {
|
|
649
659
|
let e = [], s = [];
|
|
@@ -668,25 +678,25 @@ const W = {
|
|
|
668
678
|
}
|
|
669
679
|
}
|
|
670
680
|
};
|
|
671
|
-
var
|
|
681
|
+
var Y = function() {
|
|
672
682
|
var e = this, s = e._self._c;
|
|
673
683
|
return s("div", [s("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(n) {
|
|
674
684
|
e.visible = n;
|
|
675
685
|
}, closed: e.closed } }, [s("template", { slot: "title" }, [s("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 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen } })], 1), s("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticStyle: { "min-height": "400px" } }, [e.visible ? s("LayoutItem", { attrs: { record: e.menuTreeData, checkedKeys: e.checkedKeys }, on: { open: e.openItem, change: e.changeItem, checkedBtn: e.checkedItemBtn } }) : e._e()], 1), s("template", { slot: "footer" }, [s("div", { staticClass: "btoms" }, [s("el-checkbox", { attrs: { disabled: e.confirmLoading, indeterminate: e.isIndeterminate }, on: { change: e.changeAll }, model: { value: e.allClose, callback: function(n) {
|
|
676
686
|
e.allClose = n;
|
|
677
687
|
}, expression: "allClose" } }, [e._v(" " + e._s(e.$i18nt("gd.btn.selectAll", "\u5168\u9009")) + " ")])], 1)])], 2)], 1);
|
|
678
|
-
},
|
|
679
|
-
W,
|
|
688
|
+
}, Z = [], ee = /* @__PURE__ */ u(
|
|
680
689
|
X,
|
|
681
690
|
Y,
|
|
691
|
+
Z,
|
|
682
692
|
!1,
|
|
683
693
|
null,
|
|
684
|
-
"
|
|
694
|
+
"da1c5456",
|
|
685
695
|
null,
|
|
686
696
|
null
|
|
687
697
|
);
|
|
688
|
-
const
|
|
689
|
-
const
|
|
698
|
+
const te = ee.exports;
|
|
699
|
+
const se = {
|
|
690
700
|
name: "GdUserRole",
|
|
691
701
|
props: {
|
|
692
702
|
height: {
|
|
@@ -1039,7 +1049,7 @@ const te = {
|
|
|
1039
1049
|
n();
|
|
1040
1050
|
return;
|
|
1041
1051
|
}
|
|
1042
|
-
s.confirmButtonLoading = !0, s.cancelButtonLoading = !0, s.showCancelButton = !1,
|
|
1052
|
+
s.confirmButtonLoading = !0, s.cancelButtonLoading = !0, s.showCancelButton = !1, B({
|
|
1043
1053
|
roleId: t.openSelecteKeys[0],
|
|
1044
1054
|
userIdList: t.selectedRowKeys
|
|
1045
1055
|
}).then((i) => {
|
|
@@ -1052,7 +1062,7 @@ const te = {
|
|
|
1052
1062
|
created() {
|
|
1053
1063
|
}
|
|
1054
1064
|
};
|
|
1055
|
-
var
|
|
1065
|
+
var ne = function() {
|
|
1056
1066
|
var e = this, s = e._self._c;
|
|
1057
1067
|
return s("div", { staticClass: "gd-page-view", staticStyle: { display: "flex", background: "rgb(245, 245, 245)" } }, [s("div", { staticClass: "page-view-list" }, [s("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() {
|
|
1058
1068
|
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)])];
|
|
@@ -1067,18 +1077,18 @@ var se = function() {
|
|
|
1067
1077
|
} }, { key: "status", fn: function({ column: n, row: i }) {
|
|
1068
1078
|
return [s("span", [e._v(" " + e._s(e._f("dictType")("state_code", i.status)) + " ")])];
|
|
1069
1079
|
} }]) }), s("gd-search", { ref: "engineSearch", attrs: { appendToBody: !0, disabledRowId: e.disabledRowId }, on: { lookupSeled: e.lookupSeled } })], 1)]);
|
|
1070
|
-
},
|
|
1071
|
-
te,
|
|
1080
|
+
}, ie = [], ae = /* @__PURE__ */ u(
|
|
1072
1081
|
se,
|
|
1073
1082
|
ne,
|
|
1083
|
+
ie,
|
|
1074
1084
|
!1,
|
|
1075
1085
|
null,
|
|
1076
1086
|
"e09158ba",
|
|
1077
1087
|
null,
|
|
1078
1088
|
null
|
|
1079
1089
|
);
|
|
1080
|
-
const
|
|
1081
|
-
const
|
|
1090
|
+
const re = ae.exports;
|
|
1091
|
+
const le = {
|
|
1082
1092
|
data() {
|
|
1083
1093
|
return {
|
|
1084
1094
|
buttons: [],
|
|
@@ -1090,7 +1100,7 @@ const re = {
|
|
|
1090
1100
|
selectedRowKeys: []
|
|
1091
1101
|
};
|
|
1092
1102
|
},
|
|
1093
|
-
components: { UserFormDate:
|
|
1103
|
+
components: { UserFormDate: re },
|
|
1094
1104
|
computed: {
|
|
1095
1105
|
height() {
|
|
1096
1106
|
return this.screenHeight - (this.fullscreen ? 160 : 340);
|
|
@@ -1123,23 +1133,23 @@ const re = {
|
|
|
1123
1133
|
}
|
|
1124
1134
|
}
|
|
1125
1135
|
};
|
|
1126
|
-
var
|
|
1136
|
+
var oe = function() {
|
|
1127
1137
|
var e = this, s = e._self._c;
|
|
1128
1138
|
return s("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(n) {
|
|
1129
1139
|
e.visible = n;
|
|
1130
1140
|
}, closed: e.closed } }, [s("template", { slot: "title" }, [s("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), s("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [e.visible ? s("UserFormDate", { ref: "userForm", attrs: { height: e.height, openMode: "components", openSelecteKeys: e.selectedRowKeys }, on: { onSelectChange: e.onSelectChange } }) : e._e()], 1)], 2);
|
|
1131
|
-
},
|
|
1132
|
-
re,
|
|
1141
|
+
}, de = [], ce = /* @__PURE__ */ u(
|
|
1133
1142
|
le,
|
|
1134
1143
|
oe,
|
|
1144
|
+
de,
|
|
1135
1145
|
!1,
|
|
1136
1146
|
null,
|
|
1137
1147
|
"085b1df5",
|
|
1138
1148
|
null,
|
|
1139
1149
|
null
|
|
1140
1150
|
);
|
|
1141
|
-
const
|
|
1142
|
-
const
|
|
1151
|
+
const he = ce.exports;
|
|
1152
|
+
const ue = {
|
|
1143
1153
|
data() {
|
|
1144
1154
|
return {
|
|
1145
1155
|
buttons: [
|
|
@@ -1283,25 +1293,25 @@ const he = {
|
|
|
1283
1293
|
}
|
|
1284
1294
|
}
|
|
1285
1295
|
};
|
|
1286
|
-
var
|
|
1296
|
+
var ge = function() {
|
|
1287
1297
|
var e = this, s = e._self._c;
|
|
1288
1298
|
return s("div", [s("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(n) {
|
|
1289
1299
|
e.visible = n;
|
|
1290
1300
|
}, closed: e.closed } }, [s("template", { slot: "title" }, [s("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), s("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticStyle: { "min-height": "400px" } }, [e.visible ? s("LayoutItem", { attrs: { record: e.menuTreeData, checkedKeys: e.checkedKeys }, on: { open: e.openItem, change: e.changeItem, checkedBtn: e.checkedItemBtn } }) : e._e()], 1), s("template", { slot: "footer" }, [s("div", { staticClass: "btoms" }, [s("el-checkbox", { attrs: { disabled: e.confirmLoading, indeterminate: e.isIndeterminate }, on: { change: e.changeAll }, model: { value: e.allClose, callback: function(n) {
|
|
1291
1301
|
e.allClose = n;
|
|
1292
1302
|
}, expression: "allClose" } }, [e._v(" " + e._s(e.$i18nt("gd.btn.selectAll", "\u5168\u9009")) + " ")])], 1)])], 2)], 1);
|
|
1293
|
-
},
|
|
1294
|
-
he,
|
|
1303
|
+
}, fe = [], pe = /* @__PURE__ */ u(
|
|
1295
1304
|
ue,
|
|
1296
1305
|
ge,
|
|
1306
|
+
fe,
|
|
1297
1307
|
!1,
|
|
1298
1308
|
null,
|
|
1299
1309
|
"2fa6bf14",
|
|
1300
1310
|
null,
|
|
1301
1311
|
null
|
|
1302
1312
|
);
|
|
1303
|
-
const
|
|
1304
|
-
const
|
|
1313
|
+
const me = pe.exports;
|
|
1314
|
+
const ye = {
|
|
1305
1315
|
name: "GdRole",
|
|
1306
1316
|
props: {
|
|
1307
1317
|
height: {
|
|
@@ -1317,20 +1327,25 @@ const me = {
|
|
|
1317
1327
|
default: () => []
|
|
1318
1328
|
}
|
|
1319
1329
|
},
|
|
1320
|
-
mixins: [m,
|
|
1330
|
+
mixins: [m, M],
|
|
1321
1331
|
data() {
|
|
1322
1332
|
return {
|
|
1333
|
+
appsId: "",
|
|
1323
1334
|
transKey: "gd.btn.add",
|
|
1324
1335
|
formLoading: !1,
|
|
1325
1336
|
loading: !0,
|
|
1326
1337
|
selectedRowKeys: [],
|
|
1327
1338
|
selectedRows: [],
|
|
1328
1339
|
queryParam: {},
|
|
1329
|
-
|
|
1340
|
+
allRowData: [],
|
|
1341
|
+
loadData: (t) => (this.selectedKeep && (this.selectedRowKeys = [...this.openSelecteKeys]), w(Object.assign(t, this.queryParam, { sysAppsId: window.$systemInfo.id })).then((e) => (this.allRowData = e.data, e.data)))
|
|
1330
1342
|
};
|
|
1331
1343
|
},
|
|
1332
|
-
components: { RoleGrant:
|
|
1344
|
+
components: { RoleGrant: V, RoleMenu: te, RoleMenuViewForm: me, UserAuthorization: he },
|
|
1333
1345
|
computed: {
|
|
1346
|
+
getTableButtons() {
|
|
1347
|
+
return this.tableButtons.filter((t) => t.functionName === "grantRoleAppMenu" ? !!this.appsId : !0);
|
|
1348
|
+
},
|
|
1334
1349
|
initialLoading() {
|
|
1335
1350
|
return this.openMode === "page";
|
|
1336
1351
|
},
|
|
@@ -1346,6 +1361,11 @@ const me = {
|
|
|
1346
1361
|
...h(["tablePageSize", "tableSize", "labelPosition", "formMode"])
|
|
1347
1362
|
},
|
|
1348
1363
|
methods: {
|
|
1364
|
+
getAppId() {
|
|
1365
|
+
F({ code: "App_Id" }).then((t) => {
|
|
1366
|
+
t.code === 200 && (this.appsId = t.data ? t.data.value : "");
|
|
1367
|
+
});
|
|
1368
|
+
},
|
|
1349
1369
|
userAuthorizationMenu() {
|
|
1350
1370
|
if (this.selectedRowKeys.length === 0) {
|
|
1351
1371
|
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
@@ -1368,6 +1388,17 @@ const me = {
|
|
|
1368
1388
|
}
|
|
1369
1389
|
this.$refs.roleMenu.open(this.selectedRows[0]);
|
|
1370
1390
|
},
|
|
1391
|
+
grantRoleAppMenu() {
|
|
1392
|
+
if (this.selectedRowKeys.length === 0) {
|
|
1393
|
+
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
1394
|
+
return;
|
|
1395
|
+
}
|
|
1396
|
+
if (this.selectedRowKeys.length > 1) {
|
|
1397
|
+
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
1398
|
+
return;
|
|
1399
|
+
}
|
|
1400
|
+
this.$refs.roleMenu.open(this.selectedRows[0], this.appsId);
|
|
1401
|
+
},
|
|
1371
1402
|
grantRoleGrant() {
|
|
1372
1403
|
if (this.selectedRowKeys.length === 0) {
|
|
1373
1404
|
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
@@ -1469,15 +1500,18 @@ const me = {
|
|
|
1469
1500
|
});
|
|
1470
1501
|
},
|
|
1471
1502
|
onSelectChange(t, e) {
|
|
1472
|
-
this.selectedRowKeys = t, this.selectedRows = e, this.$emit("onSelectChange", t, e);
|
|
1503
|
+
this.selectedRowKeys = t, this.selectedRows = e, this.$emit("onSelectChange", t, e, this.allRowData);
|
|
1473
1504
|
},
|
|
1474
1505
|
doEvent(t) {
|
|
1475
1506
|
let e = t.item.functionName;
|
|
1476
1507
|
this[e] && this[e]();
|
|
1477
1508
|
}
|
|
1509
|
+
},
|
|
1510
|
+
created() {
|
|
1511
|
+
this.getAppId();
|
|
1478
1512
|
}
|
|
1479
1513
|
};
|
|
1480
|
-
var
|
|
1514
|
+
var be = function() {
|
|
1481
1515
|
var e = this, s = e._self._c;
|
|
1482
1516
|
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: !0, selectedKeep: e.selectedKeep, initialLoading: e.initialLoading }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "name", fn: function({ column: n, row: i }) {
|
|
1483
1517
|
return [s("gd-tooltip", { attrs: { rowKey: "name", row: i, highlight: "" }, on: { click: e.editForm } })];
|
|
@@ -1486,21 +1520,21 @@ var ye = function() {
|
|
|
1486
1520
|
return !n.type.indexOf("key") && e._k(n.keyCode, "enter", 13, n.key, "Enter") ? null : e.refresh.apply(null, arguments);
|
|
1487
1521
|
} }, model: { value: e.queryParam.name, callback: function(n) {
|
|
1488
1522
|
e.$set(e.queryParam, "name", n);
|
|
1489
|
-
}, expression: "queryParam.name" } }), s("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [s("i", { staticClass: "el-input__icon el-icon-search" })])], 1), s("div", { staticClass: "gd-table-operatorr" }, [e.openMode === "page" ? s("gd-btn-list", { attrs: { sysViewButtons: e.
|
|
1523
|
+
}, expression: "queryParam.name" } }), s("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [s("i", { staticClass: "el-input__icon el-icon-search" })])], 1), s("div", { staticClass: "gd-table-operatorr" }, [e.openMode === "page" ? s("gd-btn-list", { attrs: { sysViewButtons: e.getTableButtons }, on: { functionName: e.doEvent } }) : e._e()], 1)])];
|
|
1490
1524
|
}, proxy: !0 }, { key: "filtering", fn: function({ colse: n, visible: i }) {
|
|
1491
1525
|
return [s("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: n, visible: i }, on: { save: e.saveQueries } })];
|
|
1492
1526
|
} }]) })], 1), s("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 } }), s("RoleGrant", { ref: "roleGrant", on: { ok: e.refresh } }), s("RoleMenu", { ref: "roleMenu", on: { ok: e.refresh } }), s("RoleMenuViewForm", { ref: "roleMenuViewForm", on: { ok: e.refresh } }), s("UserAuthorization", { ref: "userAuthorization", on: { ok: e.refresh } })], 1);
|
|
1493
|
-
},
|
|
1494
|
-
me,
|
|
1527
|
+
}, ve = [], _e = /* @__PURE__ */ u(
|
|
1495
1528
|
ye,
|
|
1496
1529
|
be,
|
|
1530
|
+
ve,
|
|
1497
1531
|
!1,
|
|
1498
1532
|
null,
|
|
1499
|
-
"
|
|
1533
|
+
"38745914",
|
|
1500
1534
|
null,
|
|
1501
1535
|
null
|
|
1502
1536
|
);
|
|
1503
|
-
const p =
|
|
1537
|
+
const p = _e.exports;
|
|
1504
1538
|
p.install = function(t) {
|
|
1505
1539
|
t.component(p.name, p);
|
|
1506
1540
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as d, a as c, b as u, G as h, c as m, d as g, e as
|
|
2
|
-
import { n as r, m as
|
|
1
|
+
import { s as d, a as c, b as u, G as h, c as m, d as g, e as p, f, g as y, h as b, i as _ } from "./system.promptmanagement.e9976712.mjs";
|
|
2
|
+
import { n as r, m as $ } from "./chartbi.48631362.mjs";
|
|
3
3
|
import { m as v } from "./messages.7e85146d.mjs";
|
|
4
4
|
const w = {
|
|
5
5
|
props: {
|
|
@@ -208,17 +208,17 @@ var x = function() {
|
|
|
208
208
|
t.$set(a, "description", i);
|
|
209
209
|
}, expression: "item.description" } })], 1)];
|
|
210
210
|
})], 2)], 1)])], 1);
|
|
211
|
-
},
|
|
211
|
+
}, k = [], T = /* @__PURE__ */ r(
|
|
212
212
|
w,
|
|
213
213
|
x,
|
|
214
|
-
|
|
214
|
+
k,
|
|
215
215
|
!1,
|
|
216
216
|
null,
|
|
217
217
|
"7c4bdf77",
|
|
218
218
|
null,
|
|
219
219
|
null
|
|
220
220
|
);
|
|
221
|
-
const D =
|
|
221
|
+
const D = T.exports;
|
|
222
222
|
const S = {
|
|
223
223
|
data() {
|
|
224
224
|
return {
|
|
@@ -286,15 +286,15 @@ const S = {
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
};
|
|
289
|
-
var
|
|
289
|
+
var C = function() {
|
|
290
290
|
var t = this, s = t._self._c;
|
|
291
291
|
return s("el-dialog", { class: t.fullScreen ? "gd-dialog" : "gd-dialog gd-dialog-fangda", attrs: { width: t.width, visible: t.visible, fullscreen: t.fullScreen, footer: null, top: "80px", "show-close": !1 }, on: { "update:visible": function(a) {
|
|
292
292
|
t.visible = a;
|
|
293
293
|
}, cancel: t.closed } }, [s("template", { slot: "title" }, [s("gd-modal-title", { attrs: { title: t.title, confirmLoading: t.confirmLoading, visible: t.visible, fullscreen: t.fullScreen, buttons: t.sysViewButtons, showClose: !0 }, on: { changeEvent: t.doEvent } })], 1), s("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.confirmLoading, expression: "confirmLoading" }] }, [s("div", { class: t.fullScreen ? "modal-bodyq" : "modal-body" }, [s("el-alert", { staticStyle: { "margin-bottom": "12px" }, attrs: { title: t.$i18nt("gd.translation.importTip", "\u9009\u62E9\u8981\u5BFC\u5165\u7684(.xlsx)\u6587\u4EF6"), type: "info", "show-icon": "", closable: !1 } }), s("el-row", { staticStyle: { "margin-left": "-12px", "margin-right": "-12px" }, attrs: { gutter: 48 } }, [s("el-col", { attrs: { md: 20, sm: 24 } }, [s("el-upload", { ref: "upload", staticClass: "upload-demo", attrs: { action: "", "file-list": t.fileList, remove: t.handleRemove, "before-upload": t.beforeUpload, accept: ".xlsx" } }, [s("el-button", { attrs: { id: "upload" } }, [s("i", { staticClass: "el-icon-upload2" }), t._v(" " + t._s(t.$i18nt("gd.web.selectFile", "\u9009\u62E9\u6587\u4EF6")) + " ")])], 1)], 1)], 1)], 1)])], 2);
|
|
294
|
-
},
|
|
294
|
+
}, F = [], L = /* @__PURE__ */ r(
|
|
295
295
|
S,
|
|
296
|
-
F,
|
|
297
296
|
C,
|
|
297
|
+
F,
|
|
298
298
|
!1,
|
|
299
299
|
null,
|
|
300
300
|
"cffd8852",
|
|
@@ -302,7 +302,7 @@ var F = function() {
|
|
|
302
302
|
null
|
|
303
303
|
);
|
|
304
304
|
const B = L.exports;
|
|
305
|
-
const
|
|
305
|
+
const O = {
|
|
306
306
|
props: {
|
|
307
307
|
height: {
|
|
308
308
|
type: Number,
|
|
@@ -453,7 +453,7 @@ const N = {
|
|
|
453
453
|
getHeight() {
|
|
454
454
|
return this.height;
|
|
455
455
|
},
|
|
456
|
-
|
|
456
|
+
...$(["tableSize", "tablePageSize", "screenHeight", "multiTab", "crumbsState"])
|
|
457
457
|
},
|
|
458
458
|
methods: {
|
|
459
459
|
changeWid(e) {
|
|
@@ -480,7 +480,7 @@ const N = {
|
|
|
480
480
|
callback: () => {
|
|
481
481
|
},
|
|
482
482
|
beforeClose: (t, s, a) => {
|
|
483
|
-
a(), t === "confirm" && (s.confirmButtonLoading = !0, s.cancelButtonLoading = !0, s.showCancelButton = !1,
|
|
483
|
+
a(), t === "confirm" && (s.confirmButtonLoading = !0, s.cancelButtonLoading = !0, s.showCancelButton = !1, p().then((i) => {
|
|
484
484
|
a(), s.confirmButtonLoading = !1, s.cancelButtonLoading = !1, s.showCancelButton = !0, i.success ? (e.$message.success(e.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), e.handleOk()) : e.$message.error(e.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + i.message);
|
|
485
485
|
}).catch((i) => {
|
|
486
486
|
e.$message.error(e.$i18nt("gd.error.error") + i.message);
|
|
@@ -492,7 +492,7 @@ const N = {
|
|
|
492
492
|
return e.parentElement;
|
|
493
493
|
},
|
|
494
494
|
cache() {
|
|
495
|
-
this.formLoading = !0,
|
|
495
|
+
this.formLoading = !0, f().then((e) => {
|
|
496
496
|
e.success ? this.$message.success(this.$i18nt("gd.https.operateSucc")) : this.$message.error(this.$i18nt("gd.https.operateFail") + e.message), this.formLoading = !1;
|
|
497
497
|
});
|
|
498
498
|
},
|
|
@@ -568,7 +568,7 @@ const N = {
|
|
|
568
568
|
beforeClose: (t, s, a) => {
|
|
569
569
|
if (a(), t === "confirm")
|
|
570
570
|
return new Promise((i, l) => {
|
|
571
|
-
|
|
571
|
+
b({
|
|
572
572
|
ids: e.selectedRowKeys.join(",")
|
|
573
573
|
}).then((n) => {
|
|
574
574
|
n.success ? (e.$message.success(e.$i18nt("gd.https.delSucc")), e.handleOk()) : e.$message.error(e.$i18nt("gd.https.delFail") + n.message), i();
|
|
@@ -596,7 +596,7 @@ const N = {
|
|
|
596
596
|
beforeClose: (t, s, a) => {
|
|
597
597
|
if (a(), t === "confirm")
|
|
598
598
|
return new Promise((i, l) => {
|
|
599
|
-
|
|
599
|
+
_({}).then((n) => {
|
|
600
600
|
n.success ? (e.$message.success(e.$i18nt("gd.https.operateSucc")), e.handleOk()) : e.$message.error(e.$i18nt("gd.https.operateFail") + n.message), i();
|
|
601
601
|
}).catch((n) => {
|
|
602
602
|
e.$message.error(e.$i18nt("gd.error.error") + n.message);
|
|
@@ -624,14 +624,18 @@ const N = {
|
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
626
|
};
|
|
627
|
-
var
|
|
627
|
+
var N = function() {
|
|
628
628
|
var t = this, s = t._self._c;
|
|
629
629
|
return s("div", { staticClass: "gd-page-view" }, [s("div", { staticClass: "page-view-list" }, [s("gd-tables", { ref: "table", attrs: { height: t.getHeight, columns: t.columns, dataSource: t.loadData, selectedRowKeys: t.selectedRowKeys, size: t.tableSize, pageSize: t.tablePageSize, filtering: !1 }, on: { onChange: t.onSelectChange }, scopedSlots: t._u([t.quickQuery ? { key: "operator", fn: function() {
|
|
630
|
-
return [s("div", { staticClass: "gd-table-operator" }, [s("div", { staticClass: "gd-table-operatorl", staticStyle: { width: "300px" } }, [s("el-input", { staticClass: "table-operator-input", attrs: { placeholder: t.$i18nt("gd.translation.key"), clearable: "" }, nativeOn: { keyup: function(a) {
|
|
630
|
+
return [s("div", { staticClass: "gd-table-operator" }, [s("div", { staticClass: "gd-table-operatorl", staticStyle: { width: "300px", "margin-right": "12px" } }, [s("el-input", { staticClass: "table-operator-input", attrs: { placeholder: t.$i18nt("gd.translation.key"), clearable: "" }, nativeOn: { keyup: function(a) {
|
|
631
631
|
return !a.type.indexOf("key") && t._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : t.query.apply(null, arguments);
|
|
632
632
|
} }, model: { value: t.queryParam.name, callback: function(a) {
|
|
633
633
|
t.$set(t.queryParam, "name", a);
|
|
634
|
-
}, expression: "queryParam.name" } }), s("div", { staticClass: "table-operator-search", on: { click: t.query } }, [s("i", { staticClass: "el-input__icon el-icon-search" })])], 1), s("div", { staticClass: "gd-table-
|
|
634
|
+
}, expression: "queryParam.name" } }), s("div", { staticClass: "table-operator-search", on: { click: t.query } }, [s("i", { staticClass: "el-input__icon el-icon-search" })])], 1), s("div", { staticClass: "gd-table-operatorl", staticStyle: { width: "300px" } }, [s("el-input", { staticClass: "table-operator-input", attrs: { placeholder: t.$i18nt("gd.translation.value"), clearable: "" }, nativeOn: { keyup: function(a) {
|
|
635
|
+
return !a.type.indexOf("key") && t._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : t.query.apply(null, arguments);
|
|
636
|
+
} }, model: { value: t.queryParam.description, callback: function(a) {
|
|
637
|
+
t.$set(t.queryParam, "description", a);
|
|
638
|
+
}, expression: "queryParam.description" } }), s("div", { staticClass: "table-operator-search", on: { click: t.query } }, [s("i", { staticClass: "el-input__icon el-icon-search" })])], 1), s("div", { staticClass: "gd-table-operatorr" }, [s("gd-btn-list", { attrs: { sysViewButtons: t.sysViewButtons }, on: { functionName: t.doEvent } })], 1)])];
|
|
635
639
|
}, proxy: !0 } : null, { key: "defaulttext", fn: function({ row: a }) {
|
|
636
640
|
return [s("span", { staticClass: "active-color", staticStyle: { cursor: "pointer" }, on: { click: function(i) {
|
|
637
641
|
return t.$refs.editForm.init(a);
|
|
@@ -641,17 +645,17 @@ var O = function() {
|
|
|
641
645
|
} }, { key: "statecodes", fn: function(a) {
|
|
642
646
|
return [t.dictSwitch(a.row.statecodes, "state_code") ? s("el-tag", { attrs: { effect: "dark", color: t.dictSwitch(a.row.statecodes, "state_code") } }, [t._v(" " + t._s(t._f("dictType")("state_code", a.row.statecodes)) + " ")]) : s("span", [t._v(t._s(t._f("dictType")("state_code", a.row.statecodes)))])];
|
|
643
647
|
} }], null, !0) })], 1), s("editForm", { ref: "editForm", attrs: { tmtype: "translationManagement", openPermissions: !0 }, on: { ok: t.handleOk } }), s("timport", { ref: "timport", on: { ok: t.handleOk } })], 1);
|
|
644
|
-
}, K = [],
|
|
645
|
-
N,
|
|
648
|
+
}, K = [], q = /* @__PURE__ */ r(
|
|
646
649
|
O,
|
|
650
|
+
N,
|
|
647
651
|
K,
|
|
648
652
|
!1,
|
|
649
653
|
null,
|
|
650
|
-
"
|
|
654
|
+
"1cf1d6f2",
|
|
651
655
|
null,
|
|
652
656
|
null
|
|
653
657
|
);
|
|
654
|
-
const o =
|
|
658
|
+
const o = q.exports;
|
|
655
659
|
o.install = function(e) {
|
|
656
660
|
e.component(o.name, o);
|
|
657
661
|
};
|