gds-plus-design-vue 1.2.3 → 1.2.21
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 -17
- package/lib/gd-initial.mjs +9476 -13948
- package/lib/{main.4aebe1c9.js → main.2415a49a.js} +1 -1
- package/lib/{main.eb4b260e.mjs → main.2cddfbbd.mjs} +2 -2
- package/lib/main.4c447fc3.js +1 -0
- package/lib/{main.05252737.mjs → main.86fe06d4.mjs} +2 -2
- package/lib/{main.a30b25d6.mjs → main.b2d0a309.mjs} +11 -11
- package/lib/{main.458dc0a0.js → main.d091d06d.js} +1 -1
- package/lib/{messages.30e41348.js → messages.2fff74f3.js} +5 -5
- package/lib/{messages.a1335b0f.mjs → messages.d8abe18d.mjs} +150 -165
- package/lib/style.css +2 -2
- package/lib/{system.account.1ff630c9.js → system.account.8ea53681.js} +1 -1
- package/lib/{system.account.20f9e450.mjs → system.account.9bc40d08.mjs} +9 -9
- package/lib/{system.config.c85c05e9.mjs → system.config.8223d495.mjs} +1 -1
- package/lib/{system.config.532ab3b8.js → system.config.c6e30213.js} +1 -1
- package/lib/{system.datasource.f64a59de.mjs → system.datasource.57233650.mjs} +1 -1
- package/lib/{system.datasource.272f1add.js → system.datasource.fd6a4e76.js} +1 -1
- package/lib/{system.dict.565d69ca.mjs → system.dict.8f95218b.mjs} +3 -3
- package/lib/{system.dict.a23e8cdf.js → system.dict.a24f33b0.js} +1 -1
- package/lib/{system.duplicatechecking.f66790d1.js → system.duplicatechecking.39293985.js} +1 -1
- package/lib/{system.duplicatechecking.268544dd.mjs → system.duplicatechecking.6b706948.mjs} +1 -1
- package/lib/{system.email.00a93855.js → system.email.a2d9a307.js} +1 -1
- package/lib/{system.email.ada25702.mjs → system.email.dae988be.mjs} +1 -1
- package/lib/{system.fieldsecurity.d14384cc.mjs → system.fieldsecurity.02627a7a.mjs} +78 -126
- package/lib/system.fieldsecurity.a0cec24d.js +1 -0
- package/lib/{system.file.a23b3c83.mjs → system.file.0fa095a9.mjs} +3 -3
- package/lib/system.file.d695ab37.js +1 -0
- package/lib/{system.log.8a9f4a4d.mjs → system.log.acb64505.mjs} +1 -1
- package/lib/{system.log.b3666991.js → system.log.c07ae5db.js} +1 -1
- package/lib/system.notice.5ae50bd4.mjs +641 -0
- package/lib/system.notice.f18578ae.js +1 -0
- package/lib/{system.noticereceived.70963f1b.mjs → system.noticereceived.1aa70b65.mjs} +24 -32
- package/lib/system.noticereceived.bfa98a9b.js +1 -0
- package/lib/{system.onlineuser.99e4de37.js → system.onlineuser.1c428d05.js} +1 -1
- package/lib/{system.onlineuser.c58fb6ce.mjs → system.onlineuser.3d848a32.mjs} +1 -1
- package/lib/system.org.5bb36f9c.js +1 -0
- package/lib/{system.org.638db6d1.mjs → system.org.fcf96d1e.mjs} +68 -17
- package/lib/{system.permissions.aa0cc0d6.mjs → system.permissions.23f5b097.mjs} +2 -2
- package/lib/{system.permissions.fcd56f67.js → system.permissions.a1a9505c.js} +1 -1
- package/lib/{system.plugin.b17efa53.js → system.plugin.b6de4673.js} +1 -1
- package/lib/{system.plugin.beb44900.mjs → system.plugin.e37f9dbc.mjs} +1 -1
- package/lib/{system.pos.699e8dd6.mjs → system.pos.1a01fc97.mjs} +1 -1
- package/lib/{system.pos.e8d9c488.js → system.pos.a4fb19b0.js} +1 -1
- package/lib/{system.promptmanagement.109a07f5.js → system.promptmanagement.290958b1.js} +1 -1
- package/lib/{system.promptmanagement.2ce3e426.mjs → system.promptmanagement.36a65c51.mjs} +1 -1
- package/lib/{system.role.230b1445.mjs → system.role.68de93ef.mjs} +354 -845
- package/lib/system.role.88100f66.js +1 -0
- package/lib/{system.sumberrules.fa1aab86.mjs → system.sumberrules.cdef9308.mjs} +1 -1
- package/lib/{system.sumberrules.38017ad1.js → system.sumberrules.dd6299e8.js} +1 -1
- package/lib/{system.team.3826e252.js → system.team.53d64006.js} +1 -1
- package/lib/{system.team.aeaede22.mjs → system.team.ee652fe4.mjs} +1 -1
- package/lib/{system.teammembers.2e3309c3.mjs → system.teammembers.26a2ba81.mjs} +2 -2
- package/lib/{system.teammembers.29128f16.js → system.teammembers.4a3dc336.js} +1 -1
- package/lib/{system.timers.0ec63785.mjs → system.timers.4efa8a7d.mjs} +1 -1
- package/lib/{system.timers.b62568ad.js → system.timers.b9424204.js} +1 -1
- package/lib/{system.translation.e71455aa.mjs → system.translation.0a9399b4.mjs} +2 -2
- package/lib/{system.translation.887fa90d.js → system.translation.21d2fd8b.js} +1 -1
- package/lib/{system.user.84227a85.mjs → system.user.4fcfdf99.mjs} +4 -4
- package/lib/{system.user.bed5f82a.js → system.user.d48a08db.js} +1 -1
- package/lib/{system.useraffiliation.7ec0fcae.js → system.useraffiliation.a59ce45b.js} +1 -1
- package/lib/{system.useraffiliation.b3f03a33.mjs → system.useraffiliation.fb002239.mjs} +2 -2
- package/lib/{system.webresource.f8b78dd0.js → system.webresource.3366cc29.js} +1 -1
- package/lib/{system.webresource.e6cb9173.mjs → system.webresource.4df01c92.mjs} +2 -2
- package/locale/en_US.js +18 -68
- package/locale/id_ID.js +17 -67
- package/locale/vi_VN.js +17 -67
- package/locale/zh_CN.js +17 -67
- package/package.json +1 -1
- package/lib/main.9801708f.js +0 -1
- package/lib/system.fieldsecurity.ede73621.js +0 -1
- package/lib/system.file.aa567566.js +0 -1
- package/lib/system.notice.5fb1485e.js +0 -1
- package/lib/system.notice.6d0aa32c.mjs +0 -1674
- package/lib/system.noticereceived.e5ef5883.js +0 -1
- package/lib/system.org.56151be8.js +0 -1
- package/lib/system.role.f0d4082c.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { s as
|
|
1
|
+
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 } from "./system.fieldsecurity.02627a7a.mjs";
|
|
2
2
|
import { m as h, n as u } from "./chartbi.cdd1e365.mjs";
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import { S
|
|
6
|
-
const
|
|
3
|
+
import { t as m } from "./messages.d8abe18d.mjs";
|
|
4
|
+
import { g as y, s as I, a as L } from "./system.org.fcf96d1e.mjs";
|
|
5
|
+
import { S, b as x, g as N, p as D, d as B, e as F } from "./system.account.9bc40d08.mjs";
|
|
6
|
+
const M = {
|
|
7
7
|
data() {
|
|
8
8
|
return {
|
|
9
9
|
tableColumns: [
|
|
@@ -20,7 +20,7 @@ const j = {
|
|
|
20
20
|
slotType: "name",
|
|
21
21
|
align: "left",
|
|
22
22
|
fixed: !0,
|
|
23
|
-
renderHeader: (
|
|
23
|
+
renderHeader: (t, ...e) => this.renderHeader(t, ...e, {
|
|
24
24
|
effectType: "input"
|
|
25
25
|
}),
|
|
26
26
|
showOverflowTooltip: !0
|
|
@@ -30,7 +30,7 @@ const j = {
|
|
|
30
30
|
prop: "code",
|
|
31
31
|
label: "\u552F\u4E00\u7F16\u7801",
|
|
32
32
|
align: "left",
|
|
33
|
-
renderHeader: (
|
|
33
|
+
renderHeader: (t, ...e) => this.renderHeader(t, ...e, {
|
|
34
34
|
effectType: "input"
|
|
35
35
|
}),
|
|
36
36
|
showOverflowTooltip: !0
|
|
@@ -147,14 +147,6 @@ const j = {
|
|
|
147
147
|
icon: "el-icon-user",
|
|
148
148
|
name: "sysRole:userMenu"
|
|
149
149
|
},
|
|
150
|
-
{
|
|
151
|
-
displayName: "\u6388\u6743\u6587\u6863",
|
|
152
|
-
functionName: "documentAuthorizationMenu",
|
|
153
|
-
show: !0,
|
|
154
|
-
transKey: "gd.user.documentAuthorization",
|
|
155
|
-
icon: "el-icon-document",
|
|
156
|
-
name: "sysRole:documentMenu"
|
|
157
|
-
},
|
|
158
150
|
{
|
|
159
151
|
displayName: "\u6388\u6743\u83DC\u5355",
|
|
160
152
|
functionName: "grantRoleMenu",
|
|
@@ -212,7 +204,7 @@ const j = {
|
|
|
212
204
|
};
|
|
213
205
|
}
|
|
214
206
|
};
|
|
215
|
-
const
|
|
207
|
+
const A = {
|
|
216
208
|
data() {
|
|
217
209
|
return {
|
|
218
210
|
defaultProps: {
|
|
@@ -242,24 +234,24 @@ const q = {
|
|
|
242
234
|
},
|
|
243
235
|
methods: {
|
|
244
236
|
handleSubmit() {
|
|
245
|
-
const
|
|
237
|
+
const t = this.$refs.tree.getCheckedKeys();
|
|
246
238
|
this.$emit(
|
|
247
239
|
"ok",
|
|
248
240
|
Object.assign(
|
|
249
241
|
{ ...this.record },
|
|
250
242
|
{
|
|
251
|
-
checkedKeys:
|
|
243
|
+
checkedKeys: t
|
|
252
244
|
}
|
|
253
245
|
)
|
|
254
246
|
), this.closed();
|
|
255
247
|
},
|
|
256
248
|
getOrgData() {
|
|
257
|
-
this.confirmLoading = !0,
|
|
258
|
-
|
|
249
|
+
this.confirmLoading = !0, y().then((t) => {
|
|
250
|
+
t.success && (this.orgTreeData = t.data, this.confirmLoading = !1);
|
|
259
251
|
});
|
|
260
252
|
},
|
|
261
|
-
open(
|
|
262
|
-
this.record =
|
|
253
|
+
open(t) {
|
|
254
|
+
this.record = t, this.checkedKeys = t.checkedKeys, this.visible = !0, this.getOrgData();
|
|
263
255
|
},
|
|
264
256
|
closed() {
|
|
265
257
|
this.fullscreen = !1, this.visible = !1;
|
|
@@ -267,29 +259,29 @@ const q = {
|
|
|
267
259
|
toggleFullscreen() {
|
|
268
260
|
this.fullscreen = !this.fullscreen;
|
|
269
261
|
},
|
|
270
|
-
doEvent(
|
|
271
|
-
const e =
|
|
262
|
+
doEvent(t) {
|
|
263
|
+
const e = t.item.functionName;
|
|
272
264
|
this[e] && this[e]();
|
|
273
265
|
}
|
|
274
266
|
}
|
|
275
267
|
};
|
|
276
|
-
var
|
|
277
|
-
var e = this,
|
|
278
|
-
return
|
|
268
|
+
var P = function() {
|
|
269
|
+
var e = this, s = e._self._c;
|
|
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) {
|
|
279
271
|
e.visible = n;
|
|
280
|
-
}, closed: e.closed } }, [
|
|
281
|
-
},
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
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);
|
|
273
|
+
}, O = [], E = /* @__PURE__ */ u(
|
|
274
|
+
A,
|
|
275
|
+
P,
|
|
276
|
+
O,
|
|
285
277
|
!1,
|
|
286
278
|
null,
|
|
287
279
|
"2b164094",
|
|
288
280
|
null,
|
|
289
281
|
null
|
|
290
282
|
);
|
|
291
|
-
const
|
|
292
|
-
const
|
|
283
|
+
const z = E.exports;
|
|
284
|
+
const q = {
|
|
293
285
|
data() {
|
|
294
286
|
return {
|
|
295
287
|
buttons: [
|
|
@@ -308,7 +300,7 @@ const J = {
|
|
|
308
300
|
width: "94%",
|
|
309
301
|
loadData: [],
|
|
310
302
|
submitData: {},
|
|
311
|
-
loadSoData: (
|
|
303
|
+
loadSoData: (t) => (this.confirmLoading = !0, new Promise((e, s) => {
|
|
312
304
|
this.confirmLoading = !1, e({ pageNo: 1, pageSize: 500, totalRows: 0, rows: this.loadData });
|
|
313
305
|
})),
|
|
314
306
|
columns: [
|
|
@@ -385,7 +377,7 @@ const J = {
|
|
|
385
377
|
currentList: {}
|
|
386
378
|
};
|
|
387
379
|
},
|
|
388
|
-
components: { RoleScope:
|
|
380
|
+
components: { RoleScope: z },
|
|
389
381
|
computed: {
|
|
390
382
|
height() {
|
|
391
383
|
return this.screenHeight - (this.fullscreen ? 120 : 310);
|
|
@@ -395,86 +387,86 @@ const J = {
|
|
|
395
387
|
methods: {
|
|
396
388
|
handleSubmit() {
|
|
397
389
|
this.confirmLoading = !0;
|
|
398
|
-
let
|
|
399
|
-
|
|
390
|
+
let t = this.$refs.table.tableData;
|
|
391
|
+
t.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)), I(
|
|
400
392
|
Object.assign(
|
|
401
393
|
{ ...this.submitData },
|
|
402
394
|
{
|
|
403
|
-
grants:
|
|
395
|
+
grants: t
|
|
404
396
|
}
|
|
405
397
|
)
|
|
406
398
|
).then((e) => {
|
|
407
399
|
this.confirmLoading = !1, e.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.closed()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + e.message);
|
|
408
400
|
});
|
|
409
401
|
},
|
|
410
|
-
setRoleScop(
|
|
402
|
+
setRoleScop(t) {
|
|
411
403
|
this.confirmLoading = !0;
|
|
412
404
|
const e = this.$refs.table.tableData;
|
|
413
|
-
e[
|
|
405
|
+
e[t.index][t.name] = [...t.checkedKeys].join(","), this.loadData = [...e], this.refresh(), this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F"));
|
|
414
406
|
},
|
|
415
|
-
openList(
|
|
416
|
-
const n = this.$refs.table.tableData, i = `${
|
|
417
|
-
this.$refs.roleScope.open({ index:
|
|
407
|
+
openList(t, e, s) {
|
|
408
|
+
const n = this.$refs.table.tableData, i = `${t.prop.replace("grantd", "")}custom`, r = n[s][i], o = r ? r.split(",").map(Number) : [];
|
|
409
|
+
this.$refs.roleScope.open({ index: s, item: t, checkedKeys: o, data: e, name: i });
|
|
418
410
|
},
|
|
419
411
|
getUserControlData() {
|
|
420
|
-
this.confirmLoading = !0,
|
|
421
|
-
|
|
412
|
+
this.confirmLoading = !0, L({ roleId: this.record.id }).then((t) => {
|
|
413
|
+
t.success ? (t.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 = t.data.grants, this.submitData = t.data, this.$nextTick(() => {
|
|
422
414
|
setTimeout(() => {
|
|
423
415
|
this.refresh(), this.confirmLoading = !0;
|
|
424
416
|
}, 1e3), setTimeout(() => {
|
|
425
417
|
this.confirmLoading = !1;
|
|
426
418
|
}, 1200);
|
|
427
|
-
})) : (this.$message.error(
|
|
419
|
+
})) : (this.$message.error(t.message), this.confirmLoading = !1);
|
|
428
420
|
});
|
|
429
421
|
},
|
|
430
|
-
open(
|
|
431
|
-
this.record =
|
|
422
|
+
open(t) {
|
|
423
|
+
this.record = t, this.visible = !0, this.getUserControlData();
|
|
432
424
|
},
|
|
433
425
|
closed() {
|
|
434
426
|
this.fullscreen = !1, this.visible = !1;
|
|
435
427
|
},
|
|
436
|
-
refresh(
|
|
437
|
-
this.$refs.table ? this.$refs.table.refresh(
|
|
428
|
+
refresh(t = !0) {
|
|
429
|
+
this.$refs.table ? this.$refs.table.refresh(t) : console.log("err:\u89C6\u56FE\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01");
|
|
438
430
|
},
|
|
439
|
-
getDictionary(
|
|
440
|
-
return this.$options.filters.dictData(
|
|
431
|
+
getDictionary(t) {
|
|
432
|
+
return this.$options.filters.dictData(t);
|
|
441
433
|
},
|
|
442
434
|
toggleFullscreen() {
|
|
443
435
|
this.fullscreen = !this.fullscreen;
|
|
444
436
|
},
|
|
445
|
-
doEvent(
|
|
446
|
-
const e =
|
|
437
|
+
doEvent(t) {
|
|
438
|
+
const e = t.item.functionName;
|
|
447
439
|
this[e] && this[e]();
|
|
448
440
|
}
|
|
449
441
|
}
|
|
450
442
|
};
|
|
451
|
-
var
|
|
452
|
-
var e = this,
|
|
453
|
-
return
|
|
443
|
+
var G = function() {
|
|
444
|
+
var e = this, s = e._self._c;
|
|
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) {
|
|
454
446
|
e.visible = n;
|
|
455
|
-
}, closed: e.closed } }, [
|
|
456
|
-
return { key: n.prop, fn: function({ column: i, row:
|
|
457
|
-
return [n.prop === "sysCodeGenName" ?
|
|
458
|
-
e.$set(
|
|
459
|
-
}, expression: "row[item.prop]" } }, [e._l(e.getDictionary("data_scope_type"), function(
|
|
460
|
-
return [
|
|
461
|
-
})], 2),
|
|
462
|
-
return e.openList(n,
|
|
447
|
+
}, 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: { "margin-top": "-12px" } }, [e.visible ? s("gd-tables", { ref: "table", attrs: { dataSource: e.loadSoData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.columns, height: e.height, filtering: !1, initialLoading: !1, showPagination: !1, rowKey: "sysCodeGenId", disabledRefresh: "", disabledColumnSettings: "" }, scopedSlots: e._u([e._l(e.columns, function(n) {
|
|
448
|
+
return { key: n.prop, fn: function({ column: i, row: r, index: o }) {
|
|
449
|
+
return [n.prop === "sysCodeGenName" ? s("div", [e._v(" " + e._s(e.$i18nt(`Dynamics.${r.transkey}`, r.syscodegenname)) + " ")]) : s("div", { staticClass: "grant-select" }, [s("el-select", { staticStyle: { flex: "1" }, attrs: { placeholder: e.$i18nt("gd.xlsxImport.mapFieldsTip", "\u8BF7\u9009\u62E9\u6620\u5C04\u5B57\u6BB5"), filterable: "", clearable: "", multiple: "" }, model: { value: r[n.prop], callback: function(a) {
|
|
450
|
+
e.$set(r, n.prop, a);
|
|
451
|
+
}, expression: "row[item.prop]" } }, [e._l(e.getDictionary("data_scope_type"), function(a) {
|
|
452
|
+
return [s("el-option", { attrs: { label: e.$i18nt(`Dynamics.${a.transkey}`, a.name), value: a.code } })];
|
|
453
|
+
})], 2), r[n.prop].includes("5") ? s("el-button", { staticClass: "active-color flex-center", attrs: { type: "text" }, on: { click: function(a) {
|
|
454
|
+
return e.openList(n, r, o);
|
|
463
455
|
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.view", "\u67E5\u770B")) + " ")]) : e._e()], 1)];
|
|
464
456
|
} };
|
|
465
|
-
})], null, !0) }) : e._e()], 1)], 2),
|
|
466
|
-
},
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
457
|
+
})], null, !0) }) : e._e()], 1)], 2), s("RoleScope", { ref: "roleScope", on: { ok: e.setRoleScop } })], 1);
|
|
458
|
+
}, j = [], H = /* @__PURE__ */ u(
|
|
459
|
+
q,
|
|
460
|
+
G,
|
|
461
|
+
j,
|
|
470
462
|
!1,
|
|
471
463
|
null,
|
|
472
464
|
"39b91bb5",
|
|
473
465
|
null,
|
|
474
466
|
null
|
|
475
467
|
);
|
|
476
|
-
const
|
|
477
|
-
const
|
|
468
|
+
const V = H.exports;
|
|
469
|
+
const U = {
|
|
478
470
|
name: "LayoutItem",
|
|
479
471
|
props: {
|
|
480
472
|
record: {
|
|
@@ -499,58 +491,58 @@ const Z = {
|
|
|
499
491
|
...h(["primaryColor"])
|
|
500
492
|
},
|
|
501
493
|
methods: {
|
|
502
|
-
hasAll(
|
|
503
|
-
return !(this.checkedKeys.filter((
|
|
494
|
+
hasAll(t) {
|
|
495
|
+
return !(this.checkedKeys.filter((s) => t.menuBtnIds.includes(s)).length >= t.menuBtnIds.length);
|
|
504
496
|
},
|
|
505
|
-
checkedBtn(
|
|
506
|
-
this.$emit("checkedBtn",
|
|
497
|
+
checkedBtn(t, e) {
|
|
498
|
+
this.$emit("checkedBtn", t, e);
|
|
507
499
|
},
|
|
508
|
-
change(
|
|
509
|
-
this.$emit("change",
|
|
500
|
+
change(t, e) {
|
|
501
|
+
this.$emit("change", t, e);
|
|
510
502
|
},
|
|
511
|
-
open(
|
|
512
|
-
this.$emit("open",
|
|
503
|
+
open(t) {
|
|
504
|
+
this.$emit("open", t);
|
|
513
505
|
},
|
|
514
|
-
checked(
|
|
515
|
-
return !!this.checkedKeys.filter((
|
|
506
|
+
checked(t) {
|
|
507
|
+
return !!this.checkedKeys.filter((s) => s === t.id)[0];
|
|
516
508
|
},
|
|
517
|
-
fadeColor(
|
|
518
|
-
let
|
|
519
|
-
return `rgba(${
|
|
509
|
+
fadeColor(t, e) {
|
|
510
|
+
let s = parseInt(t.substring(1, 3), 16), n = parseInt(t.substring(3, 5), 16), i = parseInt(t.substring(5, 7), 16);
|
|
511
|
+
return `rgba(${s},${n},${i},${e})`;
|
|
520
512
|
}
|
|
521
513
|
}
|
|
522
514
|
};
|
|
523
|
-
var
|
|
524
|
-
var e = this,
|
|
525
|
-
return
|
|
526
|
-
return [
|
|
515
|
+
var Q = function() {
|
|
516
|
+
var e = this, s = e._self._c;
|
|
517
|
+
return s("div", { style: { "--fadecolor": e.fadeColord } }, [e._l(e.record, function(n) {
|
|
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) {
|
|
527
519
|
return e.open(n);
|
|
528
|
-
} } }) : e._e(), e.menusType !== 2 ?
|
|
520
|
+
} } }) : e._e(), e.menusType !== 2 ? s("div", { staticClass: "item-name" }, [s("el-checkbox", { attrs: { indeterminate: n.isIndeterminate }, on: { change: function(i) {
|
|
529
521
|
return e.change(i, [n.id]);
|
|
530
522
|
} }, model: { value: n.checked, callback: function(i) {
|
|
531
523
|
e.$set(n, "checked", i);
|
|
532
|
-
}, expression: "item.checked" } }, [n.iconClass ?
|
|
524
|
+
}, expression: "item.checked" } }, [n.iconClass ? s("i", { staticClass: "gd-icons", class: n.iconClass, staticStyle: { "font-size": "15px" } }) : e._e(), e._v(" " + e._s(e.$i18nt(`Dynamics.${n.transkey}`, n.title)) + " ")]), n.children && n.children.length > 0 && e.menusType === 1 ? s("el-button", { staticStyle: { "margin-left": "12px", padding: "5px 15px" }, attrs: { size: "mini" } }, [e.hasAll(n) ? s("span", { on: { click: function(i) {
|
|
533
525
|
return e.checkedBtn(n, 1);
|
|
534
|
-
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.selectAll", "\u5168\u9009")) + " ")]) :
|
|
526
|
+
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.selectAll", "\u5168\u9009")) + " ")]) : s("span", { on: { click: function(i) {
|
|
535
527
|
return e.checkedBtn(n, 0);
|
|
536
|
-
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.cancel", "\u53D6\u6D88")) + " ")])]) : e._e()], 1) : e._e(),
|
|
537
|
-
return [
|
|
528
|
+
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.cancel", "\u53D6\u6D88")) + " ")])]) : e._e()], 1) : e._e(), s("div", { staticClass: "item-data" }, [n.children && n.children.length > 0 && n.children[0].menusType === 2 ? s("div", { staticClass: "item-data-list" }, [e._l(n.children, function(i) {
|
|
529
|
+
return [s("div", { staticClass: "item-name item-named", on: { click: function(r) {
|
|
538
530
|
return e.change(!i.checked, [i.id]);
|
|
539
|
-
} } }, [i.checked ?
|
|
540
|
-
})], 2) : e._e()])]), n.children && n.children.length > 0 && n.children[0].menusType !== 2 ?
|
|
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)) + " ")])])];
|
|
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()];
|
|
541
533
|
})], 2);
|
|
542
|
-
},
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
534
|
+
}, J = [], W = /* @__PURE__ */ u(
|
|
535
|
+
U,
|
|
536
|
+
Q,
|
|
537
|
+
J,
|
|
546
538
|
!1,
|
|
547
539
|
null,
|
|
548
540
|
"53cbc9f1",
|
|
549
541
|
null,
|
|
550
542
|
null
|
|
551
543
|
);
|
|
552
|
-
const
|
|
553
|
-
const
|
|
544
|
+
const b = W.exports;
|
|
545
|
+
const X = {
|
|
554
546
|
data() {
|
|
555
547
|
return {
|
|
556
548
|
buttons: [
|
|
@@ -583,95 +575,95 @@ const ne = {
|
|
|
583
575
|
},
|
|
584
576
|
...h(["screenHeight", "tableLists"])
|
|
585
577
|
},
|
|
586
|
-
components: { LayoutItem:
|
|
578
|
+
components: { LayoutItem: b },
|
|
587
579
|
methods: {
|
|
588
580
|
handleSubmit() {
|
|
589
|
-
this.confirmLoading = !0,
|
|
581
|
+
this.confirmLoading = !0, v({
|
|
590
582
|
id: this.record.id,
|
|
591
583
|
grantmenuidlist: this.checkedKeys
|
|
592
|
-
}).then((
|
|
593
|
-
|
|
584
|
+
}).then((t) => {
|
|
585
|
+
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;
|
|
594
586
|
});
|
|
595
587
|
},
|
|
596
|
-
checkedItemBtn(
|
|
597
|
-
let
|
|
598
|
-
e === 1 && (
|
|
588
|
+
checkedItemBtn(t, e) {
|
|
589
|
+
let s = [...this.checkedKeys].filter((n) => !t.menuBtnIds.includes(n));
|
|
590
|
+
e === 1 && (s = s.concat(t.menuBtnIds)), this.checkedKeys = [...s], this.handleItem();
|
|
599
591
|
},
|
|
600
|
-
openItem(
|
|
592
|
+
openItem(t) {
|
|
601
593
|
let e = [...this.menuTreeData];
|
|
602
|
-
const
|
|
603
|
-
|
|
594
|
+
const s = (n) => (n = n.filter((i, r) => (i.id === t.id && (i.open = !i.open), i.children && i.children.length > 0 && (i.children = s(i.children)), !0)), n);
|
|
595
|
+
s(e), this.menuTreeData = [...e];
|
|
604
596
|
},
|
|
605
|
-
changeItem(
|
|
597
|
+
changeItem(t, e, s = !0) {
|
|
606
598
|
let n = [...this.checkedKeys];
|
|
607
|
-
this.checkedKeys.filter((
|
|
608
|
-
const i = this.list.filter((
|
|
609
|
-
if (
|
|
599
|
+
this.checkedKeys.filter((l) => e.includes(l))[0];
|
|
600
|
+
const i = this.list.filter((l) => e.includes(l.id))[0], r = s && i ? i.menuIds : [];
|
|
601
|
+
if (t ? n = this.checkedKeys.concat(e).concat(r) : n = this.checkedKeys.filter((l) => !e.includes(l)).filter((l) => !r.includes(l)), this.checkedKeys = [...n], this.handleItem(), i.menusType === 2)
|
|
610
602
|
return;
|
|
611
|
-
let
|
|
612
|
-
this.findParent(this.menuTreeData, i,
|
|
613
|
-
let
|
|
614
|
-
|
|
615
|
-
this.checkedKeys.filter((g) =>
|
|
616
|
-
}),
|
|
617
|
-
this.changeItem(!0, [
|
|
618
|
-
}), d.forEach((
|
|
619
|
-
this.changeItem(!1, [
|
|
603
|
+
let o = [];
|
|
604
|
+
this.findParent(this.menuTreeData, i, o);
|
|
605
|
+
let a = [], d = [];
|
|
606
|
+
o.forEach((l) => {
|
|
607
|
+
this.checkedKeys.filter((g) => l.menuIds.includes(g)).length === l.menuIds.length && l.menuIds.length > 0 && !l.checked ? a.push(l.id) : d.push(l.id);
|
|
608
|
+
}), a.forEach((l) => {
|
|
609
|
+
this.changeItem(!0, [l], !1);
|
|
610
|
+
}), d.forEach((l) => {
|
|
611
|
+
this.changeItem(!1, [l], !1);
|
|
620
612
|
});
|
|
621
613
|
},
|
|
622
614
|
handleItem() {
|
|
623
|
-
let
|
|
624
|
-
const e = (
|
|
625
|
-
const
|
|
626
|
-
return this.checkedKeys.includes(n.id) ? (n.checked = !0, n.isIndeterminate = !1) : (n.checked = !1, n.isIndeterminate =
|
|
627
|
-
}),
|
|
628
|
-
e(
|
|
615
|
+
let t = [...this.menuTreeData];
|
|
616
|
+
const e = (s) => (s = s.filter((n, i) => {
|
|
617
|
+
const r = this.checkedKeys.filter((o) => n.menuIds.includes(o));
|
|
618
|
+
return this.checkedKeys.includes(n.id) ? (n.checked = !0, n.isIndeterminate = !1) : (n.checked = !1, n.isIndeterminate = r.length > 0 && n.menuIds.length > 0), n.children && n.children.length > 0 && (n.children = e(n.children)), !0;
|
|
619
|
+
}), s);
|
|
620
|
+
e(t), this.menuTreeData = [...t], this.allClose = this.checkedKeys.length === this.allCheckedKeys.length && this.allCheckedKeys.length > 0;
|
|
629
621
|
},
|
|
630
|
-
changeAll(
|
|
631
|
-
|
|
622
|
+
changeAll(t) {
|
|
623
|
+
t ? this.checkedKeys = [...this.allCheckedKeys] : this.checkedKeys = [], this.handleItem();
|
|
632
624
|
},
|
|
633
625
|
init() {
|
|
634
|
-
this.confirmLoading = !0, Promise.all([this.getMenuTree(), this.expandedMenuKeys(), this.getMenuList()]).then(async (
|
|
635
|
-
let e = [],
|
|
636
|
-
const n = (
|
|
626
|
+
this.confirmLoading = !0, Promise.all([this.getMenuTree(), this.expandedMenuKeys(), this.getMenuList()]).then(async (t) => {
|
|
627
|
+
let e = [], s = [];
|
|
628
|
+
const n = (a) => (a = a.filter((d, l) => {
|
|
637
629
|
const c = this.checkedKeys.filter((f) => d.id === f)[0];
|
|
638
|
-
return d.open = !0, d.checked = d.type === 1 ? !!c : !1, d.isIndeterminate = !1, d.menusType = d.type, e.push(d.id),
|
|
639
|
-
}),
|
|
640
|
-
let i = this.menuAll.filter((
|
|
630
|
+
return d.open = !0, d.checked = d.type === 1 ? !!c : !1, d.isIndeterminate = !1, d.menusType = d.type, e.push(d.id), s.push(d), d.children && d.children.length > 0 && (d.children = n(d.children)), !0;
|
|
631
|
+
}), a);
|
|
632
|
+
let i = this.menuAll.filter((a) => !!this.systemMenuAll.filter((l) => l.id === a.id)[0]);
|
|
641
633
|
await n(i), this.allCheckedKeys = e;
|
|
642
|
-
let
|
|
643
|
-
|
|
644
|
-
const
|
|
645
|
-
|
|
646
|
-
}), this.list =
|
|
647
|
-
const
|
|
648
|
-
this.checkedKeys =
|
|
634
|
+
let r = [];
|
|
635
|
+
s.forEach((a, d) => {
|
|
636
|
+
const l = this.getMenuIds(a);
|
|
637
|
+
s[d].menuIds = l.arr, s[d].menuBtnIds = l.btn, !(this.checkedKeys.filter((g) => l.arr.includes(g)).length === l.arr.length) && l.arr.length > 0 && r.push(a.id);
|
|
638
|
+
}), this.list = s;
|
|
639
|
+
const o = this.checkedKeys.filter((a) => e.includes(a)).filter((a) => !r.includes(a)).filter((a, d, l) => l.indexOf(a) === d);
|
|
640
|
+
this.checkedKeys = o, this.allClose = this.checkedKeys.length === e.length && e.length > 0, this.menuTreeData = [...i], this.handleItem(), this.confirmLoading = !1;
|
|
649
641
|
});
|
|
650
642
|
},
|
|
651
|
-
open(
|
|
652
|
-
this.record =
|
|
643
|
+
open(t, e) {
|
|
644
|
+
this.record = t, this.appsId = e || window.$systemInfo.id, this.visible = !0, this.init();
|
|
653
645
|
},
|
|
654
646
|
getMenuTree() {
|
|
655
|
-
return
|
|
647
|
+
return S({ roleId: this.record.id }).then((t) => (t.code === 200 && (this.menuAll = t.data), t));
|
|
656
648
|
},
|
|
657
649
|
expandedMenuKeys() {
|
|
658
|
-
return
|
|
650
|
+
return _({
|
|
659
651
|
id: this.record.id
|
|
660
|
-
}).then((
|
|
652
|
+
}).then((t) => (t.code === 200 && (this.checkedKeys = t.data), t));
|
|
661
653
|
},
|
|
662
654
|
getMenuList() {
|
|
663
|
-
let
|
|
664
|
-
return
|
|
665
|
-
},
|
|
666
|
-
getMenuIds(
|
|
667
|
-
let e = [],
|
|
668
|
-
const n = (i) => (i = i.filter((
|
|
669
|
-
return
|
|
670
|
-
},
|
|
671
|
-
findParent(
|
|
672
|
-
for (let n of
|
|
673
|
-
if (n.id === e.parentId || n.children && n.children.length > 0 && this.findParent(n.children, e,
|
|
674
|
-
return
|
|
655
|
+
let t = { AppsId: this.appsId };
|
|
656
|
+
return x(t).then((e) => (e.code === 200 && (this.systemMenuAll = e.data), e));
|
|
657
|
+
},
|
|
658
|
+
getMenuIds(t) {
|
|
659
|
+
let e = [], s = [];
|
|
660
|
+
const n = (i) => (i = i.filter((r, o) => (r.menusType !== 2 ? e.push(r.id) : s.push(r.id), r.children && r.children.length > 0 && (r.children = n(r.children)), !0)), i);
|
|
661
|
+
return t.children && n(t.children), { arr: e, btn: s };
|
|
662
|
+
},
|
|
663
|
+
findParent(t, e, s) {
|
|
664
|
+
for (let n of t)
|
|
665
|
+
if (n.id === e.parentId || n.children && n.children.length > 0 && this.findParent(n.children, e, s))
|
|
666
|
+
return s.unshift(n), !0;
|
|
675
667
|
return !1;
|
|
676
668
|
},
|
|
677
669
|
closed() {
|
|
@@ -680,31 +672,31 @@ const ne = {
|
|
|
680
672
|
toggleFullscreen() {
|
|
681
673
|
this.fullscreen = !this.fullscreen;
|
|
682
674
|
},
|
|
683
|
-
doEvent(
|
|
684
|
-
const e =
|
|
675
|
+
doEvent(t) {
|
|
676
|
+
const e = t.item.functionName;
|
|
685
677
|
this[e] && this[e]();
|
|
686
678
|
}
|
|
687
679
|
}
|
|
688
680
|
};
|
|
689
|
-
var
|
|
690
|
-
var e = this,
|
|
691
|
-
return
|
|
681
|
+
var Y = function() {
|
|
682
|
+
var e = this, s = e._self._c;
|
|
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) {
|
|
692
684
|
e.visible = n;
|
|
693
|
-
}, closed: e.closed } }, [
|
|
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) {
|
|
694
686
|
e.allClose = n;
|
|
695
687
|
}, expression: "allClose" } }, [e._v(" " + e._s(e.$i18nt("gd.btn.selectAll", "\u5168\u9009")) + " ")])], 1)])], 2)], 1);
|
|
696
|
-
},
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
688
|
+
}, Z = [], ee = /* @__PURE__ */ u(
|
|
689
|
+
X,
|
|
690
|
+
Y,
|
|
691
|
+
Z,
|
|
700
692
|
!1,
|
|
701
693
|
null,
|
|
702
694
|
"d82ecaae",
|
|
703
695
|
null,
|
|
704
696
|
null
|
|
705
697
|
);
|
|
706
|
-
const
|
|
707
|
-
const
|
|
698
|
+
const te = ee.exports;
|
|
699
|
+
const se = {
|
|
708
700
|
name: "GdUserRole",
|
|
709
701
|
props: {
|
|
710
702
|
height: {
|
|
@@ -720,7 +712,7 @@ const oe = {
|
|
|
720
712
|
default: "page"
|
|
721
713
|
}
|
|
722
714
|
},
|
|
723
|
-
mixins: [
|
|
715
|
+
mixins: [m],
|
|
724
716
|
data() {
|
|
725
717
|
return {
|
|
726
718
|
transKey: "gd.btn.add",
|
|
@@ -737,7 +729,7 @@ const oe = {
|
|
|
737
729
|
value: "value"
|
|
738
730
|
},
|
|
739
731
|
defaultExpandedKeys: "",
|
|
740
|
-
loadData: (
|
|
732
|
+
loadData: (t) => N({ roleId: this.openSelecteKeys[0] }).then((e) => (this.getRowId(e.data), { pageNo: 1, pageSize: 1e3, totalRows: 0, rows: e.data })),
|
|
741
733
|
disableBtn: [],
|
|
742
734
|
fileList: [],
|
|
743
735
|
needLoad: !1,
|
|
@@ -947,16 +939,16 @@ const oe = {
|
|
|
947
939
|
return this.openMode !== "page";
|
|
948
940
|
},
|
|
949
941
|
getQueryParam() {
|
|
950
|
-
let
|
|
942
|
+
let t = /* @__PURE__ */ new Map();
|
|
951
943
|
for (let e in this.queryParam)
|
|
952
|
-
|
|
953
|
-
return Object.fromEntries(
|
|
944
|
+
t.set(e === "statecodes" ? "searchctatus" : e, this.queryParam[e]);
|
|
945
|
+
return Object.fromEntries(t);
|
|
954
946
|
},
|
|
955
947
|
getFormColumns() {
|
|
956
948
|
return this.formColumnsuser.filter((e) => (e.prop === "orgid" && (e.treeOptions = [...this.orgTree]), !0));
|
|
957
949
|
},
|
|
958
950
|
getTableButtons() {
|
|
959
|
-
return this.tableButtons.filter((
|
|
951
|
+
return this.tableButtons.filter((t) => (t.show = !this.disableBtn.includes(t.displayName), !0));
|
|
960
952
|
},
|
|
961
953
|
getHeight() {
|
|
962
954
|
return this.height;
|
|
@@ -967,31 +959,31 @@ const oe = {
|
|
|
967
959
|
...h(["tablePageSize", "tableSize", "labelPosition", "formMode"])
|
|
968
960
|
},
|
|
969
961
|
methods: {
|
|
970
|
-
getRowId(
|
|
962
|
+
getRowId(t) {
|
|
971
963
|
let e = [];
|
|
972
|
-
|
|
973
|
-
e.push(
|
|
964
|
+
t.filter((s) => !this.disabledRowId.includes(s.id)).forEach((s) => {
|
|
965
|
+
e.push(s.id);
|
|
974
966
|
}), this.disabledRowId = this.disabledRowId.concat(e);
|
|
975
967
|
},
|
|
976
|
-
saveQueries(
|
|
968
|
+
saveQueries(t) {
|
|
977
969
|
this.queryParam = {
|
|
978
|
-
...
|
|
970
|
+
...t
|
|
979
971
|
}, this.refresh();
|
|
980
972
|
},
|
|
981
973
|
refresh() {
|
|
982
974
|
this.$refs.table.refresh();
|
|
983
975
|
},
|
|
984
976
|
getOrgTree() {
|
|
985
|
-
|
|
986
|
-
if (
|
|
987
|
-
const e = (
|
|
988
|
-
this.orgTree = e(
|
|
977
|
+
y({}).then((t) => {
|
|
978
|
+
if (t.code === 200) {
|
|
979
|
+
const e = (s) => (s = s.filter((n, i) => (n.value = String(n.value), n.children && n.children.length > 0 && (n.children = e(n.children)), !0)), s);
|
|
980
|
+
this.orgTree = e(t.data);
|
|
989
981
|
}
|
|
990
982
|
this.loading = !1;
|
|
991
983
|
});
|
|
992
984
|
},
|
|
993
|
-
handleNodeClick(
|
|
994
|
-
this.queryParam.orgId ===
|
|
985
|
+
handleNodeClick(t) {
|
|
986
|
+
this.queryParam.orgId === t.id ? (delete this.queryParam.orgId, this.$nextTick(() => {
|
|
995
987
|
setTimeout(() => {
|
|
996
988
|
this.$refs.tree.setCurrentKey(null);
|
|
997
989
|
}, 0);
|
|
@@ -1000,28 +992,28 @@ const oe = {
|
|
|
1000
992
|
...this.queryParam
|
|
1001
993
|
},
|
|
1002
994
|
{
|
|
1003
|
-
orgId:
|
|
995
|
+
orgId: t.id
|
|
1004
996
|
}
|
|
1005
997
|
), this.refresh();
|
|
1006
998
|
},
|
|
1007
999
|
handleOk() {
|
|
1008
1000
|
this.$refs.table.refresh();
|
|
1009
1001
|
},
|
|
1010
|
-
onSelectChange(
|
|
1011
|
-
this.selectedRowKeys =
|
|
1002
|
+
onSelectChange(t, e) {
|
|
1003
|
+
this.selectedRowKeys = t, this.selectedRows = e;
|
|
1012
1004
|
},
|
|
1013
|
-
doEvent(
|
|
1014
|
-
let e =
|
|
1005
|
+
doEvent(t) {
|
|
1006
|
+
let e = t.item.functionName;
|
|
1015
1007
|
this[e] && this[e]();
|
|
1016
1008
|
},
|
|
1017
|
-
lookupSeled(
|
|
1018
|
-
if (
|
|
1009
|
+
lookupSeled(t) {
|
|
1010
|
+
if (t.fkData.length === 0) {
|
|
1019
1011
|
this.$refs.engineSearch.closed();
|
|
1020
1012
|
return;
|
|
1021
1013
|
}
|
|
1022
|
-
this.$refs.engineSearch.confirmLoading = !0,
|
|
1014
|
+
this.$refs.engineSearch.confirmLoading = !0, D({
|
|
1023
1015
|
roleId: this.openSelecteKeys[0],
|
|
1024
|
-
userIdList:
|
|
1016
|
+
userIdList: t.data
|
|
1025
1017
|
}).then((e) => {
|
|
1026
1018
|
e.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$refs.engineSearch.closed(), this.refresh()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + e.message), this.$refs.engineSearch.confirmLoading = !1;
|
|
1027
1019
|
});
|
|
@@ -1035,7 +1027,7 @@ const oe = {
|
|
|
1035
1027
|
});
|
|
1036
1028
|
},
|
|
1037
1029
|
del() {
|
|
1038
|
-
let
|
|
1030
|
+
let t = this;
|
|
1039
1031
|
if (this.selectedRowKeys.length === 0) {
|
|
1040
1032
|
this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));
|
|
1041
1033
|
return;
|
|
@@ -1052,16 +1044,16 @@ const oe = {
|
|
|
1052
1044
|
customClass: "custom-alert",
|
|
1053
1045
|
callback: () => {
|
|
1054
1046
|
},
|
|
1055
|
-
beforeClose: (e,
|
|
1047
|
+
beforeClose: (e, s, n) => {
|
|
1056
1048
|
if (e !== "confirm") {
|
|
1057
1049
|
n();
|
|
1058
1050
|
return;
|
|
1059
1051
|
}
|
|
1060
|
-
|
|
1061
|
-
roleId:
|
|
1062
|
-
userIdList:
|
|
1052
|
+
s.confirmButtonLoading = !0, s.cancelButtonLoading = !0, s.showCancelButton = !1, B({
|
|
1053
|
+
roleId: t.openSelecteKeys[0],
|
|
1054
|
+
userIdList: t.selectedRowKeys
|
|
1063
1055
|
}).then((i) => {
|
|
1064
|
-
i.success ? (
|
|
1056
|
+
i.success ? (t.$message.success(t.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")), t.disabledRowId = t.disabledRowId.filter((r) => !t.selectedRows.filter((a) => a.id === r)[0]), s.confirmButtonLoading = !1, s.cancelButtonLoading = !1, s.showCancelButton = !0, n(), t.refresh()) : t.$message.error(t.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + i.message);
|
|
1065
1057
|
});
|
|
1066
1058
|
}
|
|
1067
1059
|
});
|
|
@@ -1070,33 +1062,33 @@ const oe = {
|
|
|
1070
1062
|
created() {
|
|
1071
1063
|
}
|
|
1072
1064
|
};
|
|
1073
|
-
var
|
|
1074
|
-
var e = this,
|
|
1075
|
-
return
|
|
1076
|
-
return [
|
|
1065
|
+
var ne = function() {
|
|
1066
|
+
var e = this, s = e._self._c;
|
|
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() {
|
|
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)])];
|
|
1077
1069
|
}, proxy: !0 }, { key: "name", fn: function({ column: n, row: i }) {
|
|
1078
|
-
return [
|
|
1070
|
+
return [s("span", { staticClass: "active-color", staticStyle: { cursor: "pointer" } }, [e._v(" " + e._s(i.name) + " ")])];
|
|
1079
1071
|
} }, { key: "nickname", fn: function({ column: n, row: i }) {
|
|
1080
|
-
return [
|
|
1072
|
+
return [s("span", { staticStyle: { cursor: "pointer" } }, [e._v(" " + e._s(i.nickname) + " ")])];
|
|
1081
1073
|
} }, { key: "orgname", fn: function({ column: n, row: i }) {
|
|
1082
|
-
return [
|
|
1074
|
+
return [s("span", { staticStyle: { cursor: "pointer" } }, [e._v(" " + e._s(i.orgname) + " ")])];
|
|
1083
1075
|
} }, { key: "sex", fn: function({ column: n, row: i }) {
|
|
1084
|
-
return [
|
|
1076
|
+
return [s("span", [e._v(" " + e._s(e._f("dictType")("gender", i.gender)) + " ")])];
|
|
1085
1077
|
} }, { key: "status", fn: function({ column: n, row: i }) {
|
|
1086
|
-
return [
|
|
1087
|
-
} }]) }),
|
|
1088
|
-
},
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1078
|
+
return [s("span", [e._v(" " + e._s(e._f("dictType")("state_code", i.statecodes)) + " ")])];
|
|
1079
|
+
} }]) }), s("gd-search", { ref: "engineSearch", attrs: { appendToBody: !0, disabledRowId: e.disabledRowId }, on: { lookupSeled: e.lookupSeled } })], 1)]);
|
|
1080
|
+
}, ie = [], ae = /* @__PURE__ */ u(
|
|
1081
|
+
se,
|
|
1082
|
+
ne,
|
|
1083
|
+
ie,
|
|
1092
1084
|
!1,
|
|
1093
1085
|
null,
|
|
1094
1086
|
"e9dd56ab",
|
|
1095
1087
|
null,
|
|
1096
1088
|
null
|
|
1097
1089
|
);
|
|
1098
|
-
const
|
|
1099
|
-
const
|
|
1090
|
+
const re = ae.exports;
|
|
1091
|
+
const le = {
|
|
1100
1092
|
data() {
|
|
1101
1093
|
return {
|
|
1102
1094
|
buttons: [],
|
|
@@ -1108,7 +1100,7 @@ const ue = {
|
|
|
1108
1100
|
selectedRowKeys: []
|
|
1109
1101
|
};
|
|
1110
1102
|
},
|
|
1111
|
-
components: { UserFormDate:
|
|
1103
|
+
components: { UserFormDate: re },
|
|
1112
1104
|
computed: {
|
|
1113
1105
|
height() {
|
|
1114
1106
|
return this.screenHeight - (this.fullscreen ? 160 : 340);
|
|
@@ -1119,8 +1111,8 @@ const ue = {
|
|
|
1119
1111
|
handleSubmit() {
|
|
1120
1112
|
this.closed(), this.$emit("ok");
|
|
1121
1113
|
},
|
|
1122
|
-
open(
|
|
1123
|
-
this.record =
|
|
1114
|
+
open(t) {
|
|
1115
|
+
this.record = t, this.visible = !0, this.selectedRowKeys = [t.id], this.$nextTick(() => {
|
|
1124
1116
|
setTimeout(() => {
|
|
1125
1117
|
this.$refs.userForm.refresh();
|
|
1126
1118
|
}, 0);
|
|
@@ -1132,496 +1124,32 @@ const ue = {
|
|
|
1132
1124
|
toggleFullscreen() {
|
|
1133
1125
|
this.fullscreen = !this.fullscreen;
|
|
1134
1126
|
},
|
|
1135
|
-
onSelectChange(
|
|
1136
|
-
this.selectedRowKeys =
|
|
1127
|
+
onSelectChange(t) {
|
|
1128
|
+
this.selectedRowKeys = t;
|
|
1137
1129
|
},
|
|
1138
|
-
doEvent(
|
|
1139
|
-
const e =
|
|
1130
|
+
doEvent(t) {
|
|
1131
|
+
const e = t.item.functionName;
|
|
1140
1132
|
this[e] && this[e]();
|
|
1141
1133
|
}
|
|
1142
1134
|
}
|
|
1143
1135
|
};
|
|
1144
|
-
var
|
|
1145
|
-
var e = this,
|
|
1146
|
-
return
|
|
1136
|
+
var oe = function() {
|
|
1137
|
+
var e = this, s = e._self._c;
|
|
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) {
|
|
1147
1139
|
e.visible = n;
|
|
1148
|
-
}, closed: e.closed } }, [
|
|
1149
|
-
},
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
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);
|
|
1141
|
+
}, de = [], ce = /* @__PURE__ */ u(
|
|
1142
|
+
le,
|
|
1143
|
+
oe,
|
|
1144
|
+
de,
|
|
1153
1145
|
!1,
|
|
1154
1146
|
null,
|
|
1155
1147
|
"46b57430",
|
|
1156
1148
|
null,
|
|
1157
1149
|
null
|
|
1158
1150
|
);
|
|
1159
|
-
const
|
|
1160
|
-
const
|
|
1161
|
-
data() {
|
|
1162
|
-
return {
|
|
1163
|
-
buttons: [
|
|
1164
|
-
{
|
|
1165
|
-
displayName: "\u786E\u5B9A",
|
|
1166
|
-
functionName: "handleSubmit",
|
|
1167
|
-
show: !0,
|
|
1168
|
-
transKey: "gd.btn.confirm",
|
|
1169
|
-
icon: "el-icon-document-checked"
|
|
1170
|
-
}
|
|
1171
|
-
],
|
|
1172
|
-
record: {},
|
|
1173
|
-
visible: !1,
|
|
1174
|
-
confirmLoading: !1,
|
|
1175
|
-
fullscreen: !1,
|
|
1176
|
-
width: "80%",
|
|
1177
|
-
selectedPath: "/",
|
|
1178
|
-
pathDialogVisible: !1,
|
|
1179
|
-
tempSelectedPath: "",
|
|
1180
|
-
folderTree: [],
|
|
1181
|
-
treeProps: {
|
|
1182
|
-
label: "name",
|
|
1183
|
-
children: "children"
|
|
1184
|
-
},
|
|
1185
|
-
permissions: {
|
|
1186
|
-
ReadMetaData: "allow",
|
|
1187
|
-
ManagePrem: "deny"
|
|
1188
|
-
},
|
|
1189
|
-
cardList: [
|
|
1190
|
-
{
|
|
1191
|
-
name: "\u901A\u7528\u6743\u9650",
|
|
1192
|
-
transkey: "gd.user.generalPermissions",
|
|
1193
|
-
id: "1",
|
|
1194
|
-
list: [
|
|
1195
|
-
{
|
|
1196
|
-
value: "",
|
|
1197
|
-
name: "\u67E5\u770B",
|
|
1198
|
-
transkey: "Sys_Tables_sys_doc_role_premissions_Fields_readmetadata_Name",
|
|
1199
|
-
code: "readmetadata",
|
|
1200
|
-
icon: "el-icon-view"
|
|
1201
|
-
},
|
|
1202
|
-
{
|
|
1203
|
-
value: "",
|
|
1204
|
-
name: "\u91CD\u547D\u540D",
|
|
1205
|
-
code: "rename",
|
|
1206
|
-
transkey: "Sys_Tables_sys_doc_role_premissions_Fields_rename_Name",
|
|
1207
|
-
icon: "el-icon-edit"
|
|
1208
|
-
},
|
|
1209
|
-
{
|
|
1210
|
-
value: "",
|
|
1211
|
-
name: "\u5220\u9664",
|
|
1212
|
-
code: "delete",
|
|
1213
|
-
transkey: "Sys_Tables_sys_doc_role_premissions_Fields_delete_Name",
|
|
1214
|
-
icon: "el-icon-delete-solid"
|
|
1215
|
-
},
|
|
1216
|
-
{
|
|
1217
|
-
value: "",
|
|
1218
|
-
name: "\u7BA1\u7406\u6743\u9650",
|
|
1219
|
-
code: "manageprem",
|
|
1220
|
-
transkey: "Sys_Tables_sys_doc_role_premissions_Fields_manageprem_Name",
|
|
1221
|
-
icon: "el-icon-user-solid"
|
|
1222
|
-
},
|
|
1223
|
-
{
|
|
1224
|
-
value: "",
|
|
1225
|
-
name: "\u79FB\u52A8",
|
|
1226
|
-
code: "move",
|
|
1227
|
-
transkey: "Sys_Tables_sys_doc_role_premissions_Fields_move_Name",
|
|
1228
|
-
icon: "el-icon-rank"
|
|
1229
|
-
}
|
|
1230
|
-
]
|
|
1231
|
-
},
|
|
1232
|
-
{
|
|
1233
|
-
name: "\u6587\u4EF6\u5939\u7279\u6B8A\u6743\u9650",
|
|
1234
|
-
transkey: "gd.user.folderSpecialPermissions",
|
|
1235
|
-
id: "2",
|
|
1236
|
-
list: [
|
|
1237
|
-
{
|
|
1238
|
-
value: "",
|
|
1239
|
-
name: "\u521B\u5EFA\u6587\u4EF6",
|
|
1240
|
-
code: "createfile",
|
|
1241
|
-
transkey: "Sys_Tables_sys_doc_role_premissions_Fields_createfile_Name",
|
|
1242
|
-
icon: "el-icon-document-add"
|
|
1243
|
-
},
|
|
1244
|
-
{
|
|
1245
|
-
value: "",
|
|
1246
|
-
name: "\u521B\u5EFA\u5B50\u6587\u4EF6\u5939",
|
|
1247
|
-
code: "createsubfolder",
|
|
1248
|
-
transkey: "Sys_Tables_sys_doc_role_premissions_Fields_createsubfolder_Name",
|
|
1249
|
-
icon: "el-icon-folder-add"
|
|
1250
|
-
}
|
|
1251
|
-
]
|
|
1252
|
-
},
|
|
1253
|
-
{
|
|
1254
|
-
name: "\u6587\u4EF6\u7279\u6B8A\u6743\u9650",
|
|
1255
|
-
transkey: "gd.user.fileSpecialPermissions",
|
|
1256
|
-
id: "3",
|
|
1257
|
-
list: [
|
|
1258
|
-
{
|
|
1259
|
-
value: "",
|
|
1260
|
-
name: "\u4E0B\u8F7D",
|
|
1261
|
-
code: "download",
|
|
1262
|
-
transkey: "Sys_Tables_sys_doc_role_premissions_Fields_download_Name",
|
|
1263
|
-
icon: "el-icon-download"
|
|
1264
|
-
}
|
|
1265
|
-
]
|
|
1266
|
-
}
|
|
1267
|
-
],
|
|
1268
|
-
restaurants: [],
|
|
1269
|
-
objectId: "0",
|
|
1270
|
-
currentPermissions: [],
|
|
1271
|
-
id: ""
|
|
1272
|
-
};
|
|
1273
|
-
},
|
|
1274
|
-
components: { UserFormDate: k },
|
|
1275
|
-
computed: {
|
|
1276
|
-
height() {
|
|
1277
|
-
return this.screenHeight - (this.fullscreen ? 160 : 340);
|
|
1278
|
-
},
|
|
1279
|
-
...h(["screenHeight"])
|
|
1280
|
-
},
|
|
1281
|
-
methods: {
|
|
1282
|
-
querySearch(s, e) {
|
|
1283
|
-
var t = this.restaurants, n = s ? t.filter(this.createFilter(s)) : t;
|
|
1284
|
-
e(n);
|
|
1285
|
-
},
|
|
1286
|
-
createFilter(s) {
|
|
1287
|
-
return (e) => e.name.toLowerCase().indexOf(s.toLowerCase()) === 0;
|
|
1288
|
-
},
|
|
1289
|
-
handleSelect(s) {
|
|
1290
|
-
console.log(s);
|
|
1291
|
-
},
|
|
1292
|
-
keyuprefresh() {
|
|
1293
|
-
},
|
|
1294
|
-
buildTree(s) {
|
|
1295
|
-
const e = s.find((a) => a.parentid === null);
|
|
1296
|
-
if (!e)
|
|
1297
|
-
throw new Error("No root node found (parentid: null)");
|
|
1298
|
-
const t = {};
|
|
1299
|
-
s.forEach((a) => {
|
|
1300
|
-
t[a.id] = {
|
|
1301
|
-
name: a.name,
|
|
1302
|
-
id: a.id,
|
|
1303
|
-
children: []
|
|
1304
|
-
};
|
|
1305
|
-
}), s.forEach((a) => {
|
|
1306
|
-
if (a.parentid === null)
|
|
1307
|
-
return;
|
|
1308
|
-
const l = t[a.parentid];
|
|
1309
|
-
l ? l.children.some((r) => r.id === a.id) || l.children.push(t[a.id]) : t[e.id].children.push(t[a.id]);
|
|
1310
|
-
});
|
|
1311
|
-
function n(a) {
|
|
1312
|
-
a.children && a.children.length > 0 && (a.children.sort((l, r) => l.name.localeCompare(r.name)), a.children.forEach((l) => n(l)));
|
|
1313
|
-
}
|
|
1314
|
-
const i = {
|
|
1315
|
-
name: e.name,
|
|
1316
|
-
id: e.id,
|
|
1317
|
-
children: t[e.id].children
|
|
1318
|
-
};
|
|
1319
|
-
return n(i), [i];
|
|
1320
|
-
},
|
|
1321
|
-
handleSubmit() {
|
|
1322
|
-
this.id != "" ? this.edit() : this.add();
|
|
1323
|
-
},
|
|
1324
|
-
add() {
|
|
1325
|
-
const e = this.currentPermissions.map((t) => {
|
|
1326
|
-
const n = t.list.reduce((i, a) => (i[a.code] = a.value, i), {});
|
|
1327
|
-
return {
|
|
1328
|
-
...t,
|
|
1329
|
-
...n
|
|
1330
|
-
};
|
|
1331
|
-
}).map(({ list: t, ...n }) => n);
|
|
1332
|
-
this.confirmLoading = !0, K(e).then((t) => {
|
|
1333
|
-
t.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok"), this.closed()) : this.$message.error(
|
|
1334
|
-
this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + t.message
|
|
1335
|
-
), this.confirmLoading = !1;
|
|
1336
|
-
});
|
|
1337
|
-
},
|
|
1338
|
-
edit() {
|
|
1339
|
-
const e = this.currentPermissions.map((t) => {
|
|
1340
|
-
const n = t.list.reduce((i, a) => (i[a.code] = a.value, i), {});
|
|
1341
|
-
return {
|
|
1342
|
-
...t,
|
|
1343
|
-
...n
|
|
1344
|
-
};
|
|
1345
|
-
}).map(({ list: t, ...n }) => n);
|
|
1346
|
-
console.log(e), this.confirmLoading = !0, T(e).then((t) => {
|
|
1347
|
-
t.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok"), this.closed()) : this.$message.error(
|
|
1348
|
-
this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + t.message
|
|
1349
|
-
), this.confirmLoading = !1;
|
|
1350
|
-
});
|
|
1351
|
-
},
|
|
1352
|
-
open(s) {
|
|
1353
|
-
this.record = s, this.visible = !0, this.getallTree(), this.getDetail(s);
|
|
1354
|
-
},
|
|
1355
|
-
getDetail(s) {
|
|
1356
|
-
C({ roleId: s.id }).then((e) => {
|
|
1357
|
-
if (e.code == 200 && (this.currentPermissions = [], this.$refs.elTreeRef && this.$refs.elTreeRef.setCheckedKeys([]), e.data.length > 0)) {
|
|
1358
|
-
this.id = e.data[0].id, this.currentPermissions = [];
|
|
1359
|
-
const t = e.data.map((i) => {
|
|
1360
|
-
const a = [
|
|
1361
|
-
{ name: "\u67E5\u770B", code: "readmetadata", value: i.readmetadata },
|
|
1362
|
-
{ name: "\u91CD\u547D\u540D", code: "rename", value: i.rename },
|
|
1363
|
-
{ name: "\u5220\u9664", code: "delete", value: i.delete },
|
|
1364
|
-
{ name: "\u7BA1\u7406\u6743\u9650", code: "manageprem", value: i.manageprem },
|
|
1365
|
-
{ name: "\u79FB\u52A8", code: "move", value: i.move },
|
|
1366
|
-
{ name: "\u521B\u5EFA\u6587\u4EF6", code: "createfile", value: i.createfile },
|
|
1367
|
-
{ name: "\u521B\u5EFA\u5B50\u6587\u4EF6\u5939", code: "createsubfolder", value: i.createsubfolder },
|
|
1368
|
-
{ name: "\u4E0B\u8F7D", code: "download", value: i.download }
|
|
1369
|
-
];
|
|
1370
|
-
return {
|
|
1371
|
-
id: i.id,
|
|
1372
|
-
name: i.name,
|
|
1373
|
-
ischeck: !1,
|
|
1374
|
-
sysdocobjectid: i.sysdocobjectid,
|
|
1375
|
-
sysroleid: i.sysroleid,
|
|
1376
|
-
list: a
|
|
1377
|
-
};
|
|
1378
|
-
});
|
|
1379
|
-
this.currentPermissions = t, this.handlePermissionClick(this.currentPermissions[0]);
|
|
1380
|
-
const n = t.map((i) => i.sysdocobjectid);
|
|
1381
|
-
this.$refs.elTreeRef && this.$refs.elTreeRef.setCheckedKeys(n);
|
|
1382
|
-
}
|
|
1383
|
-
});
|
|
1384
|
-
},
|
|
1385
|
-
getallTree() {
|
|
1386
|
-
R().then((s) => {
|
|
1387
|
-
if (s.code == 200) {
|
|
1388
|
-
this.restaurants = s.data;
|
|
1389
|
-
const e = this.buildTree(JSON.parse(JSON.stringify(s.data)));
|
|
1390
|
-
this.folderTree = e, this.selectedPath = "/" + s.data[0].name;
|
|
1391
|
-
}
|
|
1392
|
-
});
|
|
1393
|
-
},
|
|
1394
|
-
closed() {
|
|
1395
|
-
this.cardList.forEach((s) => {
|
|
1396
|
-
Array.isArray(s.list) && s.list.forEach((e) => {
|
|
1397
|
-
e.value = "";
|
|
1398
|
-
});
|
|
1399
|
-
}), this.fullscreen = !1, this.visible = !1;
|
|
1400
|
-
},
|
|
1401
|
-
toggleFullscreen() {
|
|
1402
|
-
this.fullscreen = !this.fullscreen;
|
|
1403
|
-
},
|
|
1404
|
-
doEvent(s) {
|
|
1405
|
-
const e = s.item.functionName;
|
|
1406
|
-
this[e] && this[e]();
|
|
1407
|
-
},
|
|
1408
|
-
openPathDialog() {
|
|
1409
|
-
this.pathDialogVisible = !0, this.tempSelectedPath = this.selectedPath;
|
|
1410
|
-
},
|
|
1411
|
-
delList(s) {
|
|
1412
|
-
console.log(s);
|
|
1413
|
-
let e = this;
|
|
1414
|
-
this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
1415
|
-
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
1416
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
1417
|
-
showClose: !1,
|
|
1418
|
-
confirmButtonLoading: !1,
|
|
1419
|
-
cancelButtonLoading: !1,
|
|
1420
|
-
closeOnClickModal: !1,
|
|
1421
|
-
type: "warning",
|
|
1422
|
-
confirmButtonClass: "el-button--danger",
|
|
1423
|
-
customClass: "custom-alert",
|
|
1424
|
-
callback: () => {
|
|
1425
|
-
},
|
|
1426
|
-
beforeClose: (t, n, i) => {
|
|
1427
|
-
if (t !== "confirm") {
|
|
1428
|
-
i();
|
|
1429
|
-
return;
|
|
1430
|
-
}
|
|
1431
|
-
n.confirmButtonLoading = !0, n.cancelButtonLoading = !0, n.showCancelButton = !1, s.id === 0 ? e.$message.success(e.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : m({
|
|
1432
|
-
ids: s.id
|
|
1433
|
-
}).then((a) => {
|
|
1434
|
-
n.confirmButtonLoading = !1, n.cancelButtonLoading = !1, n.showCancelButton = !0, a.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") + a.message);
|
|
1435
|
-
}), i(), e.currentPermissions = e.currentPermissions.filter((a) => a.sysdocobjectid !== s.sysdocobjectid), e.currentPermissions.length == 0 && e.cardList.forEach((a) => {
|
|
1436
|
-
Array.isArray(a.list) && a.list.forEach((l) => {
|
|
1437
|
-
l.value = "";
|
|
1438
|
-
});
|
|
1439
|
-
}), e.cancelNodeCheck(s.sysdocobjectid);
|
|
1440
|
-
}
|
|
1441
|
-
});
|
|
1442
|
-
},
|
|
1443
|
-
cancelNodeCheck(s) {
|
|
1444
|
-
const e = this.$refs.elTreeRef;
|
|
1445
|
-
e && e.setChecked(s, !1);
|
|
1446
|
-
},
|
|
1447
|
-
handlecheck(s) {
|
|
1448
|
-
console.log(s);
|
|
1449
|
-
},
|
|
1450
|
-
handleDirectoryCheck(s, e) {
|
|
1451
|
-
const t = s.id, n = JSON.parse(JSON.stringify(this.currentPermissions)).filter((i) => i.sysdocobjectid === s.id);
|
|
1452
|
-
if (e && n.length === 0) {
|
|
1453
|
-
const i = {
|
|
1454
|
-
sysdocobjectid: t,
|
|
1455
|
-
sysroleid: this.record.id,
|
|
1456
|
-
name: s.name,
|
|
1457
|
-
ischeck: !0,
|
|
1458
|
-
id: 0,
|
|
1459
|
-
list: [
|
|
1460
|
-
{
|
|
1461
|
-
name: "\u67E5\u770B",
|
|
1462
|
-
code: "readmetadata",
|
|
1463
|
-
value: ""
|
|
1464
|
-
},
|
|
1465
|
-
{
|
|
1466
|
-
name: "\u91CD\u547D\u540D",
|
|
1467
|
-
code: "rename",
|
|
1468
|
-
value: ""
|
|
1469
|
-
},
|
|
1470
|
-
{
|
|
1471
|
-
name: "\u5220\u9664",
|
|
1472
|
-
code: "delete",
|
|
1473
|
-
value: ""
|
|
1474
|
-
},
|
|
1475
|
-
{
|
|
1476
|
-
name: "\u7BA1\u7406\u6743\u9650",
|
|
1477
|
-
code: "manageprem",
|
|
1478
|
-
value: ""
|
|
1479
|
-
},
|
|
1480
|
-
{
|
|
1481
|
-
name: "\u79FB\u52A8",
|
|
1482
|
-
code: "move",
|
|
1483
|
-
value: ""
|
|
1484
|
-
},
|
|
1485
|
-
{
|
|
1486
|
-
name: "\u521B\u5EFA\u6587\u4EF6",
|
|
1487
|
-
code: "createfile",
|
|
1488
|
-
value: ""
|
|
1489
|
-
},
|
|
1490
|
-
{
|
|
1491
|
-
name: "\u521B\u5EFA\u5B50\u6587\u4EF6\u5939",
|
|
1492
|
-
code: "createsubfolder",
|
|
1493
|
-
value: ""
|
|
1494
|
-
},
|
|
1495
|
-
{
|
|
1496
|
-
name: "\u4E0B\u8F7D",
|
|
1497
|
-
code: "download",
|
|
1498
|
-
value: ""
|
|
1499
|
-
}
|
|
1500
|
-
]
|
|
1501
|
-
};
|
|
1502
|
-
this.currentPermissions.push(i), this.currentPermissions.forEach((a) => {
|
|
1503
|
-
a.ischeck = !1, a.sysdocobjectid === t && (a.ischeck = !0);
|
|
1504
|
-
}), this.cardList.forEach((a) => {
|
|
1505
|
-
Array.isArray(a.list) && a.list.forEach((l) => {
|
|
1506
|
-
l.value = "";
|
|
1507
|
-
});
|
|
1508
|
-
});
|
|
1509
|
-
} else if (!e && n.length > 0 && this.currentPermissions.length > 0) {
|
|
1510
|
-
let i = this;
|
|
1511
|
-
this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
1512
|
-
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
1513
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
1514
|
-
showClose: !1,
|
|
1515
|
-
confirmButtonLoading: !1,
|
|
1516
|
-
cancelButtonLoading: !1,
|
|
1517
|
-
closeOnClickModal: !1,
|
|
1518
|
-
type: "warning",
|
|
1519
|
-
confirmButtonClass: "el-button--danger",
|
|
1520
|
-
customClass: "custom-alert",
|
|
1521
|
-
callback: () => {
|
|
1522
|
-
},
|
|
1523
|
-
beforeClose: (a, l, r) => {
|
|
1524
|
-
if (a !== "confirm") {
|
|
1525
|
-
r(), setTimeout(() => {
|
|
1526
|
-
this.$nextTick(() => {
|
|
1527
|
-
this.$refs.elTreeRef.setChecked(s.id, !0);
|
|
1528
|
-
});
|
|
1529
|
-
});
|
|
1530
|
-
return;
|
|
1531
|
-
}
|
|
1532
|
-
l.confirmButtonLoading = !0, l.cancelButtonLoading = !0, l.showCancelButton = !1, n[0].id === 0 ? i.$message.success(i.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : m({
|
|
1533
|
-
ids: n[0].id
|
|
1534
|
-
}).then((d) => {
|
|
1535
|
-
l.confirmButtonLoading = !1, l.cancelButtonLoading = !1, l.showCancelButton = !0, d.success ? i.$message.success(i.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : i.$message.error(i.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + d.message);
|
|
1536
|
-
}), r(), this.nextclickdel(t);
|
|
1537
|
-
}
|
|
1538
|
-
});
|
|
1539
|
-
}
|
|
1540
|
-
},
|
|
1541
|
-
nextclickdel(s) {
|
|
1542
|
-
this.currentPermissions = this.currentPermissions.filter((t) => t.sysdocobjectid !== s), this.currentPermissions.forEach((t) => {
|
|
1543
|
-
t.ischeck = !1;
|
|
1544
|
-
}), this.currentPermissions[this.currentPermissions.length - 1].ischeck = !0;
|
|
1545
|
-
const e = {};
|
|
1546
|
-
this.currentPermissions[this.currentPermissions.length - 1].list.forEach((t) => {
|
|
1547
|
-
e[t.name] = t.value;
|
|
1548
|
-
}), this.cardList.forEach((t) => {
|
|
1549
|
-
Array.isArray(t.list) && t.list.forEach((n) => {
|
|
1550
|
-
const i = e[n.name];
|
|
1551
|
-
i !== void 0 && i !== "" && i !== null && (n.value = i.toString());
|
|
1552
|
-
});
|
|
1553
|
-
});
|
|
1554
|
-
},
|
|
1555
|
-
handleNodeClick(s, e) {
|
|
1556
|
-
this.objectId = s.id;
|
|
1557
|
-
let t = [], n = e;
|
|
1558
|
-
for (; n; )
|
|
1559
|
-
t.unshift(n.data.name), n = n.parent;
|
|
1560
|
-
this.tempSelectedPath = "" + t.join("/");
|
|
1561
|
-
},
|
|
1562
|
-
handlePermissionClick(s) {
|
|
1563
|
-
this.currentPermissions.forEach((t) => {
|
|
1564
|
-
t.ischeck = !1;
|
|
1565
|
-
}), s.ischeck = !0;
|
|
1566
|
-
const e = {};
|
|
1567
|
-
s.list.forEach((t) => {
|
|
1568
|
-
e[t.name] = t.value;
|
|
1569
|
-
}), this.cardList.forEach((t) => {
|
|
1570
|
-
Array.isArray(t.list) && t.list.forEach((n) => {
|
|
1571
|
-
const i = e[n.name];
|
|
1572
|
-
i != null && (n.value = i.toString());
|
|
1573
|
-
});
|
|
1574
|
-
});
|
|
1575
|
-
},
|
|
1576
|
-
confirmPath() {
|
|
1577
|
-
this.selectedPath = this.tempSelectedPath, this.pathDialogVisible = !1;
|
|
1578
|
-
},
|
|
1579
|
-
handleReadMetaDataChange(s, e) {
|
|
1580
|
-
s.target.tagName === "INPUT" && s.target.type === "radio" && (e.value === "" ? e.value = s.target.value : e.value = null, setTimeout(() => {
|
|
1581
|
-
if (this.currentPermissions.length > 0) {
|
|
1582
|
-
const t = this.currentPermissions.find((n) => n.ischeck);
|
|
1583
|
-
if (t) {
|
|
1584
|
-
const n = t.list.find((i) => i.name === e.name);
|
|
1585
|
-
n && (n.value = e.value);
|
|
1586
|
-
}
|
|
1587
|
-
}
|
|
1588
|
-
}, 10));
|
|
1589
|
-
}
|
|
1590
|
-
}
|
|
1591
|
-
};
|
|
1592
|
-
var be = function() {
|
|
1593
|
-
var e = this, t = e._self._c;
|
|
1594
|
-
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: "30px", "show-close": !1 }, on: { "update:visible": function(n) {
|
|
1595
|
-
e.visible = n;
|
|
1596
|
-
}, closed: e.closed } }, [t("template", { slot: "title" }, [t("gd-modal-title", { attrs: { title: e.$i18nt("gd.user.documentAuthorization", "\u6388\u6743\u6587\u6863"), fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen } })], 1), t("div", { staticClass: "main-layout" }, [t("div", { staticClass: "directory-tree-section" }, [t("div", { staticClass: "section-header" }, [e._v("\u9009\u62E9\u76EE\u5F55")]), t("el-tree", { ref: "elTreeRef", attrs: { "check-strictly": "", data: e.folderTree, "node-key": "id", "show-checkbox": "", props: e.treeProps }, on: { "check-change": e.handleDirectoryCheck, "node-click": e.handleNodeClick } })], 1), t("div", [t("div", { staticClass: "preview-card" }, [t("div", { staticClass: "card-header" }, [t("span", [e._v("\u6743\u9650\u9884\u89C8")])]), t("div", { staticClass: "permission-tags" }, e._l(e.currentPermissions, function(n) {
|
|
1597
|
-
return t("div", { key: n.sysdocobjectid, staticClass: "permission-tags-item", class: { checked: n.ischeck }, on: { click: function(i) {
|
|
1598
|
-
return e.handlePermissionClick(n);
|
|
1599
|
-
} } }, [e._v(" " + e._s(n.name) + " "), t("div", { staticClass: "permission-tags-item-content" }, e._l(n.list, function(i, a) {
|
|
1600
|
-
return t("div", { key: a }, [t("span", [e._v(e._s(i.name))]), i.value == "1" ? t("el-tag", [e._v(e._s(e.$i18nt("gd.user.allow", "\u5141\u8BB8")))]) : e._e(), i.value == "2" ? t("el-tag", { attrs: { type: "danger" } }, [e._v(e._s(e.$i18nt("gd.user.refuse", "\u62D2\u7EDD")))]) : e._e()], 1);
|
|
1601
|
-
}), 0), t("i", { staticClass: "el-icon-close del-btn", on: { click: function(i) {
|
|
1602
|
-
return e.delList(n);
|
|
1603
|
-
} } })]);
|
|
1604
|
-
}), 0)]), t("div", [t("div", { staticClass: "permission-section" }, [t("h3", [e._v(e._s(e.$i18nt("gd.user.setOperationPermissions", "\u8BBE\u7F6E\u64CD\u4F5C\u6743\u9650")))]), e._l(e.cardList, function(n, i) {
|
|
1605
|
-
return t("div", { key: i }, [t("div", { staticClass: "clearfix", attrs: { slot: "header" }, slot: "header" }, [t("h4", [e._v(e._s(e.$i18nt(n.transkey, n.name)))])]), t("div", { staticClass: "permission-list" }, [t("div", { staticClass: "permission-category" }, e._l(n.list, function(a, l) {
|
|
1606
|
-
return t("el-card", { key: l, staticClass: "permission-item", attrs: { shadow: "hover" } }, [t("div", { staticClass: "perm-info" }, [t("i", { staticClass: "gd-icons active-color", class: a.icon, staticStyle: { "font-size": "14px", "margin-right": "10px" } }), t("div", { staticClass: "perm-name" }, [e._v(e._s(e.$i18nt(`Dynamics.${a.transkey}`, a.name)) + " ")])]), t("div", { staticClass: "perm-actions" }, [t("el-radio-group", { nativeOn: { click: function(r) {
|
|
1607
|
-
return e.handleReadMetaDataChange(r, a);
|
|
1608
|
-
} }, model: { value: a.value, callback: function(r) {
|
|
1609
|
-
e.$set(a, "value", r);
|
|
1610
|
-
}, expression: "items.value" } }, [t("el-radio", { attrs: { label: "1" } }, [e._v(e._s(e.$i18nt("gd.user.allow", "\u5141\u8BB8")))]), t("el-radio", { attrs: { label: "2" } }, [e._v(e._s(e.$i18nt("gd.user.refuse", "\u62D2\u7EDD")))])], 1)], 1)]);
|
|
1611
|
-
}), 1)])]);
|
|
1612
|
-
})], 2)])])])], 2)], 1);
|
|
1613
|
-
}, ve = [], _e = /* @__PURE__ */ u(
|
|
1614
|
-
ye,
|
|
1615
|
-
be,
|
|
1616
|
-
ve,
|
|
1617
|
-
!1,
|
|
1618
|
-
null,
|
|
1619
|
-
"5fe0b6ad",
|
|
1620
|
-
null,
|
|
1621
|
-
null
|
|
1622
|
-
);
|
|
1623
|
-
const ke = _e.exports;
|
|
1624
|
-
const we = {
|
|
1151
|
+
const he = ce.exports;
|
|
1152
|
+
const ue = {
|
|
1625
1153
|
data() {
|
|
1626
1154
|
return {
|
|
1627
1155
|
buttons: [
|
|
@@ -1654,14 +1182,14 @@ const we = {
|
|
|
1654
1182
|
},
|
|
1655
1183
|
...h(["screenHeight", "tableLists"])
|
|
1656
1184
|
},
|
|
1657
|
-
components: { LayoutItem:
|
|
1185
|
+
components: { LayoutItem: b },
|
|
1658
1186
|
methods: {
|
|
1659
1187
|
async handleSubmit() {
|
|
1660
|
-
const
|
|
1661
|
-
const i = this.checkedKeys.filter((
|
|
1662
|
-
return
|
|
1188
|
+
const t = (e) => (e = e.filter((s, n) => {
|
|
1189
|
+
const i = this.checkedKeys.filter((r) => s.id === r)[0];
|
|
1190
|
+
return s.type = i ? 1 : 0, s.formlist && s.formlist.length > 0 && (s.formlist = t(s.formlist)), s.viewlist && s.viewlist.length > 0 && (s.viewlist = t(s.viewlist)), s.btnlist && s.btnlist.length > 0 && (s.btnlist = t(s.btnlist)), !0;
|
|
1663
1191
|
}), e);
|
|
1664
|
-
this.confirmLoading = !0, await
|
|
1192
|
+
this.confirmLoading = !0, await t(this.menuAll), K({
|
|
1665
1193
|
roleid: this.record.id,
|
|
1666
1194
|
list: this.menuAll
|
|
1667
1195
|
}).then((e) => {
|
|
@@ -1670,88 +1198,88 @@ const we = {
|
|
|
1670
1198
|
), this.confirmLoading = !1;
|
|
1671
1199
|
});
|
|
1672
1200
|
},
|
|
1673
|
-
checkedItemBtn(
|
|
1674
|
-
let
|
|
1675
|
-
e === 1 && (
|
|
1201
|
+
checkedItemBtn(t, e) {
|
|
1202
|
+
let s = [...this.checkedKeys].filter((n) => !t.menuBtnIds.includes(n));
|
|
1203
|
+
e === 1 && (s = s.concat(t.menuBtnIds)), this.checkedKeys = [...s], this.handleItem();
|
|
1676
1204
|
},
|
|
1677
|
-
openItem(
|
|
1205
|
+
openItem(t) {
|
|
1678
1206
|
let e = [...this.menuTreeData];
|
|
1679
|
-
const
|
|
1680
|
-
|
|
1207
|
+
const s = (n) => (n = n.filter((i, r) => (i.id === t.id && (i.open = !i.open), i.children && i.children.length > 0 && (i.children = s(i.children)), !0)), n);
|
|
1208
|
+
s(e), this.menuTreeData = [...e];
|
|
1681
1209
|
},
|
|
1682
|
-
changeItem(
|
|
1210
|
+
changeItem(t, e, s = !0) {
|
|
1683
1211
|
let n = [...this.checkedKeys];
|
|
1684
|
-
this.checkedKeys.filter((
|
|
1685
|
-
const i = this.list.filter((
|
|
1686
|
-
if (
|
|
1212
|
+
this.checkedKeys.filter((l) => e.includes(l))[0];
|
|
1213
|
+
const i = this.list.filter((l) => e.includes(l.id))[0], r = s && i ? i.menuIds : [];
|
|
1214
|
+
if (t ? n = this.checkedKeys.concat(e).concat(r) : n = this.checkedKeys.filter((l) => !e.includes(l)).filter((l) => !r.includes(l)), this.checkedKeys = [...n], this.handleItem(), i.menusType === 2)
|
|
1687
1215
|
return;
|
|
1688
|
-
let
|
|
1689
|
-
this.findParent(this.menuTreeData, i,
|
|
1690
|
-
let
|
|
1691
|
-
|
|
1692
|
-
this.checkedKeys.filter((g) =>
|
|
1693
|
-
}),
|
|
1694
|
-
this.changeItem(!0, [
|
|
1695
|
-
}), d.forEach((
|
|
1696
|
-
this.changeItem(!1, [
|
|
1216
|
+
let o = [];
|
|
1217
|
+
this.findParent(this.menuTreeData, i, o);
|
|
1218
|
+
let a = [], d = [];
|
|
1219
|
+
o.forEach((l) => {
|
|
1220
|
+
this.checkedKeys.filter((g) => l.menuIds.includes(g)).length === l.menuIds.length && l.menuIds.length > 0 && !l.checked ? a.push(l.id) : d.push(l.id);
|
|
1221
|
+
}), a.forEach((l) => {
|
|
1222
|
+
this.changeItem(!0, [l], !1);
|
|
1223
|
+
}), d.forEach((l) => {
|
|
1224
|
+
this.changeItem(!1, [l], !1);
|
|
1697
1225
|
});
|
|
1698
1226
|
},
|
|
1699
1227
|
handleItem() {
|
|
1700
|
-
let
|
|
1701
|
-
const e = (
|
|
1702
|
-
const
|
|
1703
|
-
return this.checkedKeys.includes(n.id) ? (n.checked = !0, n.isIndeterminate = !1) : (n.checked = !1, n.isIndeterminate =
|
|
1704
|
-
}),
|
|
1705
|
-
e(
|
|
1228
|
+
let t = [...this.menuTreeData];
|
|
1229
|
+
const e = (s) => (s = s.filter((n, i) => {
|
|
1230
|
+
const r = this.checkedKeys.filter((o) => n.menuIds.includes(o));
|
|
1231
|
+
return this.checkedKeys.includes(n.id) ? (n.checked = !0, n.isIndeterminate = !1) : (n.checked = !1, n.isIndeterminate = r.length > 0 && n.menuIds.length > 0), n.children && n.children.length > 0 && (n.children = e(n.children)), !0;
|
|
1232
|
+
}), s);
|
|
1233
|
+
e(t), this.menuTreeData = [...t], this.allClose = this.checkedKeys.length === this.allCheckedKeys.length && this.allCheckedKeys.length > 0;
|
|
1706
1234
|
},
|
|
1707
|
-
changeAll(
|
|
1708
|
-
|
|
1235
|
+
changeAll(t) {
|
|
1236
|
+
t ? this.checkedKeys = [...this.allCheckedKeys] : this.checkedKeys = [], this.handleItem();
|
|
1709
1237
|
},
|
|
1710
1238
|
init() {
|
|
1711
|
-
this.confirmLoading = !0, Promise.all([this.getList()]).then(async (
|
|
1239
|
+
this.confirmLoading = !0, Promise.all([this.getList()]).then(async (t) => {
|
|
1712
1240
|
this.confirmLoading = !1;
|
|
1713
|
-
let e = JSON.parse(JSON.stringify(this.menuTreeDatad)),
|
|
1714
|
-
const n = (
|
|
1715
|
-
const d = this.checkedKeys.filter((
|
|
1716
|
-
return
|
|
1717
|
-
}),
|
|
1241
|
+
let e = JSON.parse(JSON.stringify(this.menuTreeDatad)), s = [];
|
|
1242
|
+
const n = (r) => (r = r.filter((o, a) => {
|
|
1243
|
+
const d = this.checkedKeys.filter((l) => o.id === l)[0];
|
|
1244
|
+
return o.open = !0, o.checked = o.menusType === 1 ? !!d : !1, o.isIndeterminate = !1, s.push(o), o.children && o.children.length > 0 && (o.children = n(o.children)), !0;
|
|
1245
|
+
}), r);
|
|
1718
1246
|
await n(e);
|
|
1719
1247
|
let i = [];
|
|
1720
|
-
|
|
1721
|
-
const
|
|
1722
|
-
|
|
1723
|
-
}), this.list =
|
|
1248
|
+
s.forEach((r, o) => {
|
|
1249
|
+
const a = this.getMenuIds(r);
|
|
1250
|
+
s[o].menuIds = a.arr, s[o].menuBtnIds = a.btn, !(this.checkedKeys.filter((c) => a.arr.includes(c)).length === a.arr.length) && a.arr.length > 0 && i.push(r.id);
|
|
1251
|
+
}), this.list = s, this.allClose = this.checkedKeys.length === this.allCheckedKeys.length && this.allCheckedKeys.length > 0, this.menuTreeData = [...e], this.handleItem(), console.log(this.menuAll, "123");
|
|
1724
1252
|
});
|
|
1725
1253
|
},
|
|
1726
1254
|
getList() {
|
|
1727
|
-
return
|
|
1728
|
-
if (
|
|
1729
|
-
let e = [],
|
|
1730
|
-
const n = (
|
|
1731
|
-
|
|
1732
|
-
let
|
|
1733
|
-
return
|
|
1734
|
-
}),
|
|
1735
|
-
this.menuAll =
|
|
1255
|
+
return k({ roleId: this.record.id }).then((t) => {
|
|
1256
|
+
if (t.code === 200) {
|
|
1257
|
+
let e = [], s = [];
|
|
1258
|
+
const n = (r, o) => (r = r.filter((a, d) => {
|
|
1259
|
+
a.parentId = o, a.open = !0, a.checked = !1, a.isIndeterminate = !1, a.transkey = a.transkey ? a.transkey : null, a.title = a.name, a.menusType = a.formlist && a.viewlist ? 0 : a.btnlist ? 1 : 2, s.push(a.id), a.type === 1 && e.push(a.id);
|
|
1260
|
+
let l = [];
|
|
1261
|
+
return a.viewlist && a.viewlist.length > 0 && (a.viewlist.map((c) => (c.iconClass = "gd-icon-shitumoshi", c)), l = l.concat(a.viewlist)), a.formlist && a.formlist.length > 0 && (a.formlist.map((c) => (c.iconClass = "gd-icon-biaodanmoshi", c)), l = l.concat(a.formlist)), a.btnlist && a.btnlist.length > 0 && (l = l.concat(a.btnlist)), l.length > 0 && (a.children = n(l, a.id)), !0;
|
|
1262
|
+
}), r);
|
|
1263
|
+
this.menuAll = t.data.list;
|
|
1736
1264
|
let i = JSON.parse(JSON.stringify(this.menuAll));
|
|
1737
|
-
n(i, 0), this.checkedKeys = e, this.allCheckedKeys =
|
|
1265
|
+
n(i, 0), this.checkedKeys = e, this.allCheckedKeys = s, this.menuTreeDatad = [...i];
|
|
1738
1266
|
}
|
|
1739
|
-
return
|
|
1267
|
+
return t;
|
|
1740
1268
|
});
|
|
1741
1269
|
},
|
|
1742
|
-
getMenuIds(
|
|
1743
|
-
let e = [],
|
|
1744
|
-
const n = (i) => (i = i.filter((
|
|
1745
|
-
return
|
|
1270
|
+
getMenuIds(t) {
|
|
1271
|
+
let e = [], s = [];
|
|
1272
|
+
const n = (i) => (i = i.filter((r, o) => (r.menusType !== 2 ? e.push(r.id) : s.push(r.id), r.children && r.children.length > 0 && (r.children = n(r.children)), !0)), i);
|
|
1273
|
+
return t.children && n(t.children), { arr: e, btn: s };
|
|
1746
1274
|
},
|
|
1747
|
-
findParent(
|
|
1748
|
-
for (let n of
|
|
1749
|
-
if (n.id === e.parentId || n.children && n.children.length > 0 && this.findParent(n.children, e,
|
|
1750
|
-
return
|
|
1275
|
+
findParent(t, e, s) {
|
|
1276
|
+
for (let n of t)
|
|
1277
|
+
if (n.id === e.parentId || n.children && n.children.length > 0 && this.findParent(n.children, e, s))
|
|
1278
|
+
return s.unshift(n), !0;
|
|
1751
1279
|
return !1;
|
|
1752
1280
|
},
|
|
1753
|
-
open(
|
|
1754
|
-
this.record =
|
|
1281
|
+
open(t) {
|
|
1282
|
+
this.record = t, this.visible = !0, this.init();
|
|
1755
1283
|
},
|
|
1756
1284
|
closed() {
|
|
1757
1285
|
this.fullscreen = !1, this.visible = !1, this.menuTreeData = [], this.checkedKeys = [];
|
|
@@ -1759,31 +1287,31 @@ const we = {
|
|
|
1759
1287
|
toggleFullscreen() {
|
|
1760
1288
|
this.fullscreen = !this.fullscreen;
|
|
1761
1289
|
},
|
|
1762
|
-
doEvent(
|
|
1763
|
-
const e =
|
|
1290
|
+
doEvent(t) {
|
|
1291
|
+
const e = t.item.functionName;
|
|
1764
1292
|
this[e] && this[e]();
|
|
1765
1293
|
}
|
|
1766
1294
|
}
|
|
1767
1295
|
};
|
|
1768
|
-
var
|
|
1769
|
-
var e = this,
|
|
1770
|
-
return
|
|
1296
|
+
var ge = function() {
|
|
1297
|
+
var e = this, s = e._self._c;
|
|
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) {
|
|
1771
1299
|
e.visible = n;
|
|
1772
|
-
}, closed: e.closed } }, [
|
|
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) {
|
|
1773
1301
|
e.allClose = n;
|
|
1774
1302
|
}, expression: "allClose" } }, [e._v(" " + e._s(e.$i18nt("gd.btn.selectAll", "\u5168\u9009")) + " ")])], 1)])], 2)], 1);
|
|
1775
|
-
},
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1303
|
+
}, fe = [], pe = /* @__PURE__ */ u(
|
|
1304
|
+
ue,
|
|
1305
|
+
ge,
|
|
1306
|
+
fe,
|
|
1779
1307
|
!1,
|
|
1780
1308
|
null,
|
|
1781
1309
|
"e6593396",
|
|
1782
1310
|
null,
|
|
1783
1311
|
null
|
|
1784
1312
|
);
|
|
1785
|
-
const
|
|
1786
|
-
const
|
|
1313
|
+
const me = pe.exports;
|
|
1314
|
+
const ye = {
|
|
1787
1315
|
name: "GdRole",
|
|
1788
1316
|
props: {
|
|
1789
1317
|
height: {
|
|
@@ -1799,7 +1327,7 @@ const Re = {
|
|
|
1799
1327
|
default: () => []
|
|
1800
1328
|
}
|
|
1801
1329
|
},
|
|
1802
|
-
mixins: [
|
|
1330
|
+
mixins: [m, M],
|
|
1803
1331
|
data() {
|
|
1804
1332
|
return {
|
|
1805
1333
|
appsId: "",
|
|
@@ -1810,14 +1338,13 @@ const Re = {
|
|
|
1810
1338
|
selectedRows: [],
|
|
1811
1339
|
queryParam: {},
|
|
1812
1340
|
allRowData: [],
|
|
1813
|
-
loadData: (
|
|
1814
|
-
isDoc: ""
|
|
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)))
|
|
1815
1342
|
};
|
|
1816
1343
|
},
|
|
1817
|
-
components: { RoleGrant:
|
|
1344
|
+
components: { RoleGrant: V, RoleMenu: te, RoleMenuViewForm: me, UserAuthorization: he },
|
|
1818
1345
|
computed: {
|
|
1819
1346
|
getTableButtons() {
|
|
1820
|
-
return this.tableButtons.filter((
|
|
1347
|
+
return this.tableButtons.filter((t) => t.functionName === "grantRoleAppMenu" ? !!this.appsId : !0);
|
|
1821
1348
|
},
|
|
1822
1349
|
initialLoading() {
|
|
1823
1350
|
return this.openMode === "page";
|
|
@@ -1826,7 +1353,7 @@ const Re = {
|
|
|
1826
1353
|
return this.openMode !== "page";
|
|
1827
1354
|
},
|
|
1828
1355
|
getFormColumns() {
|
|
1829
|
-
return this.formColumns.filter((
|
|
1356
|
+
return this.formColumns.filter((t) => (t.prop === "code" && (t.disabled = this.transKey !== "gd.btn.add"), !(this.transKey === "gd.https.copy" && t.prop === "code")));
|
|
1830
1357
|
},
|
|
1831
1358
|
getHeight() {
|
|
1832
1359
|
return this.height;
|
|
@@ -1834,29 +1361,11 @@ const Re = {
|
|
|
1834
1361
|
...h(["tablePageSize", "tableSize", "labelPosition", "formMode"])
|
|
1835
1362
|
},
|
|
1836
1363
|
methods: {
|
|
1837
|
-
getConfigInfo() {
|
|
1838
|
-
y({
|
|
1839
|
-
code: "GDS_Enable_Doc_Premissions"
|
|
1840
|
-
}).then((e) => {
|
|
1841
|
-
e.code === 200 && (this.isDoc = e.data.value);
|
|
1842
|
-
});
|
|
1843
|
-
},
|
|
1844
1364
|
getAppId() {
|
|
1845
|
-
|
|
1846
|
-
|
|
1365
|
+
F({ code: "App_Id" }).then((t) => {
|
|
1366
|
+
t.code === 200 && (this.appsId = t.data ? t.data.value : "");
|
|
1847
1367
|
});
|
|
1848
1368
|
},
|
|
1849
|
-
documentAuthorizationMenu() {
|
|
1850
|
-
if (this.selectedRowKeys.length === 0) {
|
|
1851
|
-
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
1852
|
-
return;
|
|
1853
|
-
}
|
|
1854
|
-
if (this.selectedRowKeys.length > 1) {
|
|
1855
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
1856
|
-
return;
|
|
1857
|
-
}
|
|
1858
|
-
this.$refs.documentAuthorization.open(this.selectedRows[0]);
|
|
1859
|
-
},
|
|
1860
1369
|
userAuthorizationMenu() {
|
|
1861
1370
|
if (this.selectedRowKeys.length === 0) {
|
|
1862
1371
|
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
@@ -1912,14 +1421,14 @@ const Re = {
|
|
|
1912
1421
|
}
|
|
1913
1422
|
this.$refs.roleMenuViewForm.open(this.selectedRows[0]);
|
|
1914
1423
|
},
|
|
1915
|
-
saveQueries(
|
|
1916
|
-
this.queryParam = { ...
|
|
1424
|
+
saveQueries(t) {
|
|
1425
|
+
this.queryParam = { ...t }, this.refresh();
|
|
1917
1426
|
},
|
|
1918
1427
|
refresh() {
|
|
1919
1428
|
this.$refs.table.refresh();
|
|
1920
1429
|
},
|
|
1921
|
-
editForm(
|
|
1922
|
-
this.transKey = "gd.btn.edit", this.$refs.editForm.open(
|
|
1430
|
+
editForm(t) {
|
|
1431
|
+
this.transKey = "gd.btn.edit", this.$refs.editForm.open(t);
|
|
1923
1432
|
},
|
|
1924
1433
|
del() {
|
|
1925
1434
|
if (this.selectedRowKeys.length === 0) {
|
|
@@ -1938,23 +1447,23 @@ const Re = {
|
|
|
1938
1447
|
customClass: "custom-alert",
|
|
1939
1448
|
callback: () => {
|
|
1940
1449
|
},
|
|
1941
|
-
beforeClose: (
|
|
1942
|
-
this.delHand(
|
|
1450
|
+
beforeClose: (t, e, s) => {
|
|
1451
|
+
this.delHand(t, e, s);
|
|
1943
1452
|
}
|
|
1944
1453
|
});
|
|
1945
1454
|
},
|
|
1946
|
-
delHand(
|
|
1947
|
-
if (
|
|
1948
|
-
|
|
1455
|
+
delHand(t, e, s) {
|
|
1456
|
+
if (t !== "confirm") {
|
|
1457
|
+
s();
|
|
1949
1458
|
return;
|
|
1950
1459
|
}
|
|
1951
1460
|
let n = [];
|
|
1952
1461
|
this.selectedRows.forEach((i) => {
|
|
1953
|
-
let
|
|
1954
|
-
n.push(
|
|
1462
|
+
let r = $(i).then((o) => o);
|
|
1463
|
+
n.push(r);
|
|
1955
1464
|
}), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(n).then((i) => {
|
|
1956
|
-
const
|
|
1957
|
-
|
|
1465
|
+
const r = i.filter((o) => !o.success);
|
|
1466
|
+
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;
|
|
1958
1467
|
});
|
|
1959
1468
|
},
|
|
1960
1469
|
add() {
|
|
@@ -1982,52 +1491,52 @@ const Re = {
|
|
|
1982
1491
|
}
|
|
1983
1492
|
this.transKey = "gd.https.copy", this.$refs.editForm.open(Object.assign({ ...this.selectedRows[0] }, { roleId: this.selectedRows[0].id }));
|
|
1984
1493
|
},
|
|
1985
|
-
sbumit({ data:
|
|
1494
|
+
sbumit({ data: t, record: e, btn: s }, n, i) {
|
|
1986
1495
|
this.formLoading = !0;
|
|
1987
|
-
let
|
|
1988
|
-
const
|
|
1989
|
-
|
|
1990
|
-
|
|
1496
|
+
let r = e ? this.transKey === "gd.https.copy" ? T : C : R;
|
|
1497
|
+
const o = this.transKey !== "gd.https.edit" ? Object.assign(t, { sysappsid: window.$systemInfo.id }) : t;
|
|
1498
|
+
r(o).then((a) => {
|
|
1499
|
+
a.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), i(), this.refresh()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + a.message), this.formLoading = !1;
|
|
1991
1500
|
});
|
|
1992
1501
|
},
|
|
1993
|
-
onSelectChange(
|
|
1994
|
-
this.selectedRowKeys =
|
|
1502
|
+
onSelectChange(t, e) {
|
|
1503
|
+
this.selectedRowKeys = t, this.selectedRows = e, this.$emit("onSelectChange", t, e, this.allRowData);
|
|
1995
1504
|
},
|
|
1996
|
-
doEvent(
|
|
1997
|
-
let e =
|
|
1505
|
+
doEvent(t) {
|
|
1506
|
+
let e = t.item.functionName;
|
|
1998
1507
|
this[e] && this[e]();
|
|
1999
1508
|
}
|
|
2000
1509
|
},
|
|
2001
1510
|
created() {
|
|
2002
|
-
this.getAppId()
|
|
1511
|
+
this.getAppId();
|
|
2003
1512
|
}
|
|
2004
1513
|
};
|
|
2005
|
-
var
|
|
2006
|
-
var e = this,
|
|
2007
|
-
return
|
|
2008
|
-
return [
|
|
1514
|
+
var be = function() {
|
|
1515
|
+
var e = this, s = e._self._c;
|
|
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 }) {
|
|
1517
|
+
return [s("gd-tooltip", { attrs: { rowKey: "name", row: i, highlight: "" }, on: { click: e.editForm } })];
|
|
2009
1518
|
} }, { key: "operator", fn: function() {
|
|
2010
|
-
return [
|
|
1519
|
+
return [s("div", { staticClass: "gd-table-operator" }, [s("div", { staticClass: "gd-table-operatorl" }, [s("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.user.roleName", "\u89D2\u8272\u540D"), clearable: "" }, nativeOn: { keyup: function(n) {
|
|
2011
1520
|
return !n.type.indexOf("key") && e._k(n.keyCode, "enter", 13, n.key, "Enter") ? null : e.refresh.apply(null, arguments);
|
|
2012
1521
|
} }, model: { value: e.queryParam.name, callback: function(n) {
|
|
2013
1522
|
e.$set(e.queryParam, "name", n);
|
|
2014
|
-
}, expression: "queryParam.name" } }),
|
|
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)])];
|
|
2015
1524
|
}, proxy: !0 }, { key: "filtering", fn: function({ colse: n, visible: i }) {
|
|
2016
|
-
return [
|
|
2017
|
-
} }]) })], 1),
|
|
2018
|
-
},
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
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 } })];
|
|
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);
|
|
1527
|
+
}, ve = [], _e = /* @__PURE__ */ u(
|
|
1528
|
+
ye,
|
|
1529
|
+
be,
|
|
1530
|
+
ve,
|
|
2022
1531
|
!1,
|
|
2023
1532
|
null,
|
|
2024
|
-
"
|
|
1533
|
+
"005c52d9",
|
|
2025
1534
|
null,
|
|
2026
1535
|
null
|
|
2027
1536
|
);
|
|
2028
|
-
const p =
|
|
2029
|
-
p.install = function(
|
|
2030
|
-
|
|
1537
|
+
const p = _e.exports;
|
|
1538
|
+
p.install = function(t) {
|
|
1539
|
+
t.component(p.name, p);
|
|
2031
1540
|
};
|
|
2032
1541
|
export {
|
|
2033
1542
|
p as G
|