gds-plus-design-vue 1.2.4 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/lib/{chartbi.5eded588.js → chartbi.114d32d7.js} +23 -23
  2. package/lib/{chartbi.c3bc6adb.mjs → chartbi.eb4dd0af.mjs} +3601 -3565
  3. package/lib/gd-initial.js +15 -15
  4. package/lib/gd-initial.mjs +4751 -3897
  5. package/lib/{main.7e1495ec.js → main.03984fed.js} +1 -1
  6. package/lib/{main.a27e1e54.js → main.1050afb3.js} +1 -1
  7. package/lib/{main.b25a9b4c.mjs → main.3caa11e1.mjs} +12 -34
  8. package/lib/main.64122541.js +1 -0
  9. package/lib/{main.b4ad6d81.mjs → main.b5a3be02.mjs} +16 -13
  10. package/lib/main.b7d2c6ee.js +1 -0
  11. package/lib/{main.00e2ba37.mjs → main.c41228a0.mjs} +3 -3
  12. package/lib/{main.55fab1ce.mjs → main.f0045877.mjs} +7 -7
  13. package/lib/messages.828b6ed8.js +9 -0
  14. package/lib/{messages.bc3bc0e8.mjs → messages.a739f4fc.mjs} +1095 -1065
  15. package/lib/style.css +3 -3
  16. package/lib/{system.account.e82580de.js → system.account.3181bcd6.js} +1 -1
  17. package/lib/{system.account.868f96f9.mjs → system.account.7c6ea20c.mjs} +18 -18
  18. package/lib/system.config.10f57fa2.js +1 -0
  19. package/lib/{system.config.71615d2b.mjs → system.config.d2ad8c97.mjs} +7 -2
  20. package/lib/{system.datasource.009a1673.mjs → system.datasource.a77831ab.mjs} +3 -3
  21. package/lib/{system.datasource.523ae242.js → system.datasource.d5eea7f2.js} +1 -1
  22. package/lib/{system.dict.8f562e89.mjs → system.dict.cb276470.mjs} +2 -2
  23. package/lib/{system.dict.0111a3bc.js → system.dict.d73658f1.js} +1 -1
  24. package/lib/{system.duplicatechecking.f517abed.mjs → system.duplicatechecking.5c8a3eef.mjs} +15 -11
  25. package/lib/{system.duplicatechecking.1865e065.js → system.duplicatechecking.d24ba6ea.js} +1 -1
  26. package/lib/{system.email.70351605.js → system.email.4bf52f2d.js} +1 -1
  27. package/lib/{system.email.4c484530.mjs → system.email.db5da8d7.mjs} +2 -2
  28. package/lib/{system.fieldsecurity.9f9f73df.mjs → system.fieldsecurity.9d40595f.mjs} +1 -1
  29. package/lib/{system.fieldsecurity.d11088e3.js → system.fieldsecurity.eb217079.js} +1 -1
  30. package/lib/{system.file.96b3ce1e.mjs → system.file.8064c8e9.mjs} +11 -6
  31. package/lib/system.file.c1884db7.js +1 -0
  32. package/lib/{system.log.80feb1c4.mjs → system.log.2b2fc11a.mjs} +64 -81
  33. package/lib/system.log.389af80d.js +1 -0
  34. package/lib/{system.machine.52e8a4f3.mjs → system.machine.0130e762.mjs} +1 -1
  35. package/lib/{system.machine.6e46b7a3.js → system.machine.49fc6405.js} +1 -1
  36. package/lib/{system.notice.b4247147.mjs → system.notice.5f8cd020.mjs} +53 -58
  37. package/lib/system.notice.a89f4826.js +1 -0
  38. package/lib/{system.noticereceived.eef2cf6e.mjs → system.noticereceived.51b6353a.mjs} +31 -29
  39. package/lib/system.noticereceived.5e0773c3.js +1 -0
  40. package/lib/system.onlineuser.67733846.js +1 -0
  41. package/lib/{system.onlineuser.de5f62bf.mjs → system.onlineuser.c0a69360.mjs} +22 -15
  42. package/lib/{system.org.94393315.mjs → system.org.1169fe47.mjs} +3 -3
  43. package/lib/{system.org.d22168d6.js → system.org.ff54d620.js} +1 -1
  44. package/lib/{system.permissions.ccbe352d.mjs → system.permissions.cc9a9866.mjs} +3 -3
  45. package/lib/{system.permissions.3c5c3573.js → system.permissions.e6317c5a.js} +1 -1
  46. package/lib/{system.plugin.5d47e679.js → system.plugin.3467d572.js} +1 -1
  47. package/lib/{system.plugin.8caa5d1f.mjs → system.plugin.502a69d8.mjs} +2 -2
  48. package/lib/{system.pos.caaef4fc.js → system.pos.4aadf86e.js} +1 -1
  49. package/lib/{system.pos.e4be69c4.mjs → system.pos.8c44c029.mjs} +2 -2
  50. package/lib/{system.promptmanagement.e73f64a2.js → system.promptmanagement.9ba710d6.js} +1 -1
  51. package/lib/{system.promptmanagement.1ad89863.mjs → system.promptmanagement.d8565db4.mjs} +7 -7
  52. package/lib/{system.role.0323ddd5.mjs → system.role.19959d7f.mjs} +228 -175
  53. package/lib/system.role.890c8ca2.js +1 -0
  54. package/lib/{system.sumberrules.2babdd81.js → system.sumberrules.068ebe4a.js} +1 -1
  55. package/lib/{system.sumberrules.42965c1e.mjs → system.sumberrules.087015a4.mjs} +2 -2
  56. package/lib/{system.team.28168433.mjs → system.team.27cd57f7.mjs} +289 -246
  57. package/lib/system.team.2b28502b.js +1 -0
  58. package/lib/{system.teammembers.08f3ce38.mjs → system.teammembers.4056d586.mjs} +78 -40
  59. package/lib/system.teammembers.e3baf783.js +1 -0
  60. package/lib/{system.timers.040b9bce.mjs → system.timers.6f61bfe1.mjs} +2 -2
  61. package/lib/{system.timers.310b3710.js → system.timers.cb0a3bd0.js} +1 -1
  62. package/lib/{system.translation.c0068d8f.mjs → system.translation.9b88fbf2.mjs} +7 -7
  63. package/lib/{system.translation.a4396166.js → system.translation.f3884a0a.js} +1 -1
  64. package/lib/{system.user.20a5e7b4.js → system.user.3bd95871.js} +5 -5
  65. package/lib/{system.user.84e77277.mjs → system.user.bdf2613e.mjs} +101 -69
  66. package/lib/{system.useraffiliation.fb961d98.mjs → system.useraffiliation.63b6bb36.mjs} +3 -3
  67. package/lib/{system.useraffiliation.307e3cd7.js → system.useraffiliation.7db6e13c.js} +1 -1
  68. package/lib/{system.webresource.2d0ab7a6.mjs → system.webresource.c36d6792.mjs} +16 -18
  69. package/lib/system.webresource.ede248a8.js +1 -0
  70. package/lib/{system.welcome.aaac4a40.mjs → system.welcome.14785b50.mjs} +1 -1
  71. package/lib/{system.welcome.67d20fa4.js → system.welcome.c9eefa06.js} +1 -1
  72. package/locale/en_US.js +30 -5
  73. package/locale/id_ID.js +30 -5
  74. package/locale/vi_VN.js +1971 -1946
  75. package/locale/zh_CN.js +30 -5
  76. package/package.json +1 -1
  77. package/lib/main.9c85b10c.js +0 -1
  78. package/lib/main.a794f7cf.js +0 -1
  79. package/lib/messages.fa3d97b5.js +0 -9
  80. package/lib/system.config.6aae9ea6.js +0 -1
  81. package/lib/system.file.001a01bc.js +0 -1
  82. package/lib/system.log.f7afb251.js +0 -1
  83. package/lib/system.notice.365ddd35.js +0 -1
  84. package/lib/system.noticereceived.5545acf8.js +0 -1
  85. package/lib/system.onlineuser.fd9fdc66.js +0 -1
  86. package/lib/system.role.b5b55ddd.js +0 -1
  87. package/lib/system.team.a3527834.js +0 -1
  88. package/lib/system.teammembers.4b11e49b.js +0 -1
  89. package/lib/system.webresource.0382b6b1.js +0 -1
@@ -1,9 +1,9 @@
1
- import { s as w, b as $, d as K, c as T, e as C, f as R, h as m, i as S, j as L, g as I, k as x, l as D, m as N, n as P } from "./system.fieldsecurity.9f9f73df.mjs";
2
- import { m as h, n as u } from "./chartbi.c3bc6adb.mjs";
3
- import { t as b } from "./messages.bc3bc0e8.mjs";
4
- import { a as v, e as B, f as F } from "./system.notice.b4247147.mjs";
5
- import { S as A, b as M, d as E, p as O, e as z, f as y } from "./system.account.868f96f9.mjs";
6
- const j = {
1
+ import { s as T, b as S, d as R, c as L, e as I, f as x, h as v, i as D, j as P, g as N, k as B, l as A, m as F, n as M } from "./system.fieldsecurity.9d40595f.mjs";
2
+ import { m as f, n as g, u as p } from "./chartbi.eb4dd0af.mjs";
3
+ import { t as k } from "./messages.a739f4fc.mjs";
4
+ import { a as w, e as E, f as O } from "./system.notice.5f8cd020.mjs";
5
+ import { S as z, b as j, d as q, e as G, p as V, f as H, h as _ } from "./system.account.7c6ea20c.mjs";
6
+ const U = {
7
7
  data() {
8
8
  return {
9
9
  tableColumns: [
@@ -20,25 +20,25 @@ const j = {
20
20
  slotType: "name",
21
21
  align: "left",
22
22
  fixed: !0,
23
+ width: "200",
23
24
  renderHeader: (s, ...e) => this.renderHeader(s, ...e, {
24
25
  effectType: "input"
25
- }),
26
- showOverflowTooltip: !0
26
+ })
27
27
  },
28
28
  {
29
29
  transKey: "gd.org.code",
30
30
  prop: "code",
31
31
  label: "\u552F\u4E00\u7F16\u7801",
32
32
  align: "left",
33
+ width: "200",
33
34
  renderHeader: (s, ...e) => this.renderHeader(s, ...e, {
34
35
  effectType: "input"
35
- }),
36
- showOverflowTooltip: !0
36
+ })
37
37
  },
38
38
  {
39
39
  transKey: "gd.org.sort",
40
40
  prop: "sort",
41
- width: "200",
41
+ width: "120",
42
42
  label: "\u6392\u5E8F",
43
43
  align: "left"
44
44
  },
@@ -47,7 +47,7 @@ const j = {
47
47
  prop: "remark",
48
48
  label: "\u5907\u6CE8",
49
49
  align: "left",
50
- showOverflowTooltip: !0
50
+ width: "260"
51
51
  }
52
52
  ],
53
53
  formColumns: [{
@@ -212,7 +212,7 @@ const j = {
212
212
  };
213
213
  }
214
214
  };
215
- const q = {
215
+ const J = {
216
216
  data() {
217
217
  return {
218
218
  defaultProps: {
@@ -238,7 +238,7 @@ const q = {
238
238
  };
239
239
  },
240
240
  computed: {
241
- ...h(["screenHeight", "tableLists"])
241
+ ...f(["screenHeight", "tableLists"])
242
242
  },
243
243
  methods: {
244
244
  handleSubmit() {
@@ -254,7 +254,7 @@ const q = {
254
254
  ), this.closed();
255
255
  },
256
256
  getOrgData() {
257
- this.confirmLoading = !0, v().then((s) => {
257
+ this.confirmLoading = !0, w().then((s) => {
258
258
  s.success && (this.orgTreeData = s.data, this.confirmLoading = !1);
259
259
  });
260
260
  },
@@ -273,23 +273,23 @@ const q = {
273
273
  }
274
274
  }
275
275
  };
276
- var G = function() {
276
+ var Q = function() {
277
277
  var e = this, t = e._self._c;
278
278
  return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
279
279
  e.visible = i;
280
280
  }, closed: e.closed } }, [t("template", { slot: "title" }, [t("gd-modal-title", { attrs: { title: e.$i18nt("gd.user.rangeRole", "\u6388\u6743\u8303\u56F4"), fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen } })], 1), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [e.visible ? t("el-tree", { ref: "tree", attrs: { data: e.orgTreeData, "show-checkbox": "", "node-key": "id", "default-expand-all": "", "default-checked-keys": e.checkedKeys, props: e.defaultProps } }) : e._e()], 1)], 2)], 1);
281
- }, V = [], H = /* @__PURE__ */ u(
282
- q,
283
- G,
284
- V,
281
+ }, W = [], X = /* @__PURE__ */ g(
282
+ J,
283
+ Q,
284
+ W,
285
285
  !1,
286
286
  null,
287
287
  "2b164094",
288
288
  null,
289
289
  null
290
290
  );
291
- const U = H.exports;
292
- const J = {
291
+ const Y = X.exports;
292
+ const Z = {
293
293
  data() {
294
294
  return {
295
295
  buttons: [
@@ -385,18 +385,18 @@ const J = {
385
385
  currentList: {}
386
386
  };
387
387
  },
388
- components: { RoleScope: U },
388
+ components: { RoleScope: Y },
389
389
  computed: {
390
390
  height() {
391
391
  return this.screenHeight - (this.fullscreen ? 120 : 310);
392
392
  },
393
- ...h(["primaryColor", "screenHeight", "tableLists", "tableSize", "tablePageSize"])
393
+ ...f(["primaryColor", "screenHeight", "tableLists", "tableSize", "tablePageSize"])
394
394
  },
395
395
  methods: {
396
396
  handleSubmit() {
397
397
  this.confirmLoading = !0;
398
398
  let s = this.$refs.table.tableData;
399
- s.map((e) => (e.addgrant = e.addgrantd.length > 0 ? e.addgrantd.join(",") : null, e.delgrant = e.delgrantd.length > 0 ? e.delgrantd.join(",") : null, e.editgrant = e.editgrantd.length > 0 ? e.editgrantd.join(",") : null, e.getgrant = e.getgrantd.length > 0 ? e.getgrantd.join(",") : null, e.sharegrant = e.sharegrantd.length > 0 ? e.sharegrantd.join(",") : null, e.allocationgrant = e.allocationgrantd.length > 0 ? e.allocationgrantd.join(",") : null, e)), B(
399
+ s.map((e) => (e.addgrant = e.addgrantd.length > 0 ? e.addgrantd.join(",") : null, e.delgrant = e.delgrantd.length > 0 ? e.delgrantd.join(",") : null, e.editgrant = e.editgrantd.length > 0 ? e.editgrantd.join(",") : null, e.getgrant = e.getgrantd.length > 0 ? e.getgrantd.join(",") : null, e.sharegrant = e.sharegrantd.length > 0 ? e.sharegrantd.join(",") : null, e.allocationgrant = e.allocationgrantd.length > 0 ? e.allocationgrantd.join(",") : null, e)), E(
400
400
  Object.assign(
401
401
  { ...this.submitData },
402
402
  {
@@ -417,7 +417,7 @@ const J = {
417
417
  this.$refs.roleScope.open({ index: t, item: s, checkedKeys: l, data: e, name: n });
418
418
  },
419
419
  getUserControlData() {
420
- this.confirmLoading = !0, F({ roleId: this.record.id }).then((s) => {
420
+ this.confirmLoading = !0, O({ roleId: this.record.id }).then((s) => {
421
421
  s.success ? (s.data.grants.map((e) => (e.addgrantd = e.addgrant ? e.addgrant.split(",") : [], e.delgrantd = e.delgrant ? e.delgrant.split(",") : [], e.editgrantd = e.editgrant ? e.editgrant.split(",") : [], e.getgrantd = e.getgrant ? e.getgrant.split(",") : [], e.sharegrantd = e.sharegrant ? e.sharegrant.split(",") : [], e.allocationgrantd = e.allocationgrant ? e.allocationgrant.split(",") : [], e)), this.loadData = s.data.grants, this.submitData = s.data, this.$nextTick(() => {
422
422
  setTimeout(() => {
423
423
  this.refresh(), this.confirmLoading = !0;
@@ -448,7 +448,7 @@ const J = {
448
448
  }
449
449
  }
450
450
  };
451
- var Q = function() {
451
+ var ee = function() {
452
452
  var e = this, t = e._self._c;
453
453
  return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
454
454
  e.visible = i;
@@ -463,18 +463,18 @@ var Q = function() {
463
463
  } } }, [e._v(" " + e._s(e.$i18nt("gd.btn.view", "\u67E5\u770B")) + " ")]) : e._e()], 1)];
464
464
  } };
465
465
  })], null, !0) }) : e._e()], 1)], 2), t("RoleScope", { ref: "roleScope", on: { ok: e.setRoleScop } })], 1);
466
- }, W = [], X = /* @__PURE__ */ u(
467
- J,
468
- Q,
469
- W,
466
+ }, te = [], se = /* @__PURE__ */ g(
467
+ Z,
468
+ ee,
469
+ te,
470
470
  !1,
471
471
  null,
472
472
  "39b91bb5",
473
473
  null,
474
474
  null
475
475
  );
476
- const Y = X.exports;
477
- const Z = {
476
+ const ie = se.exports;
477
+ const ne = {
478
478
  name: "LayoutItem",
479
479
  props: {
480
480
  record: {
@@ -496,7 +496,7 @@ const Z = {
496
496
  menusType() {
497
497
  return this.record[0] ? this.record[0].menusType : 0;
498
498
  },
499
- ...h(["primaryColor"])
499
+ ...f(["primaryColor"])
500
500
  },
501
501
  methods: {
502
502
  hasAll(s) {
@@ -520,10 +520,10 @@ const Z = {
520
520
  }
521
521
  }
522
522
  };
523
- var ee = function() {
523
+ var ae = function() {
524
524
  var e = this, t = e._self._c;
525
525
  return t("div", { style: { "--fadecolor": e.fadeColord } }, [e._l(e.record, function(i) {
526
- return [t("div", { staticClass: "list-item" }, [e.menusType === 0 ? t("i", { class: i.open ? "el-icon-caret-bottom" : "el-icon-caret-right", on: { click: function(n) {
526
+ return [t("div", { staticClass: "list-item" }, [i.menusType !== 1 && i.children && i.children.length > 0 ? t("i", { class: i.open ? "el-icon-caret-bottom" : "el-icon-caret-right", on: { click: function(n) {
527
527
  return e.open(i);
528
528
  } } }) : e._e(), e.menusType !== 2 ? t("div", { staticClass: "item-name" }, [t("el-checkbox", { attrs: { indeterminate: i.isIndeterminate }, on: { change: function(n) {
529
529
  return e.change(n, [i.id]);
@@ -539,18 +539,18 @@ var ee = function() {
539
539
  } } }, [n.checked ? t("i", { staticClass: "gd-icons gd-icon-quanxuan active-color" }) : t("div", { staticClass: "item-named-kuang" }), t("div", { staticClass: "item-named-title", class: n.checked ? "active-color" : "" }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${n.transkey}`, n.title)) + " ")])])];
540
540
  })], 2) : e._e()])]), i.children && i.children.length > 0 && i.children[0].menusType !== 2 ? t("div", { staticClass: "list-more" }, [i.open ? t("LayoutItem", { attrs: { record: i.children, checkedKeys: e.checkedKeys }, on: { open: e.open, change: e.change, checkedBtn: e.checkedBtn } }) : e._e()], 1) : e._e()];
541
541
  })], 2);
542
- }, te = [], se = /* @__PURE__ */ u(
543
- Z,
544
- ee,
545
- te,
542
+ }, re = [], le = /* @__PURE__ */ g(
543
+ ne,
544
+ ae,
545
+ re,
546
546
  !1,
547
547
  null,
548
- "53cbc9f1",
548
+ "c10ba764",
549
549
  null,
550
550
  null
551
551
  );
552
- const _ = se.exports;
553
- const ie = {
552
+ const $ = le.exports;
553
+ const oe = {
554
554
  data() {
555
555
  return {
556
556
  buttons: [
@@ -574,19 +574,38 @@ const ie = {
574
574
  menuAll: [],
575
575
  systemMenuAll: [],
576
576
  allCheckedKeys: [],
577
- appsId: ""
577
+ appsId: "",
578
+ appList: []
578
579
  };
579
580
  },
580
581
  computed: {
582
+ customClass() {
583
+ return `role_${p(12)}`;
584
+ },
581
585
  isIndeterminate() {
582
586
  return this.allClose ? !1 : this.checkedKeys.length > 0;
583
587
  },
584
- ...h(["screenHeight", "tableLists"])
588
+ fadeColord() {
589
+ return this.fadeColor(this.primaryColor, 0.1);
590
+ },
591
+ ...f(["screenHeight", "tableLists", "primaryColor"])
585
592
  },
586
- components: { LayoutItem: _ },
593
+ components: { LayoutItem: $ },
587
594
  methods: {
595
+ elScrollIntoView(s) {
596
+ this.$nextTick(() => {
597
+ setTimeout(() => {
598
+ const e = document.querySelector(`.${this.customClass} .${s}`);
599
+ e && e.scrollIntoView({ behavior: "smooth" });
600
+ }, 100);
601
+ });
602
+ },
603
+ appOpen(s, e) {
604
+ let t = [...this.menuTreeData];
605
+ t[s].open = !t[s].open, this.menuTreeData = [...t];
606
+ },
588
607
  handleSubmit() {
589
- this.confirmLoading = !0, w({
608
+ this.confirmLoading = !0, T({
590
609
  id: this.record.id,
591
610
  grantmenuidlist: this.checkedKeys
592
611
  }).then((s) => {
@@ -610,12 +629,12 @@ const ie = {
610
629
  return;
611
630
  let l = [];
612
631
  this.findParent(this.menuTreeData, n, l);
613
- let r = [], d = [];
632
+ let r = [], u = [];
614
633
  l.forEach((o) => {
615
- this.checkedKeys.filter((g) => o.menuIds.includes(g)).length === o.menuIds.length && o.menuIds.length > 0 && !o.checked ? r.push(o.id) : d.push(o.id);
634
+ this.checkedKeys.filter((h) => o.menuIds.includes(h)).length === o.menuIds.length && o.menuIds.length > 0 && !o.checked ? r.push(o.id) : u.push(o.id);
616
635
  }), r.forEach((o) => {
617
636
  this.changeItem(!0, [o], !1);
618
- }), d.forEach((o) => {
637
+ }), u.forEach((o) => {
619
638
  this.changeItem(!1, [o], !1);
620
639
  });
621
640
  },
@@ -625,43 +644,64 @@ const ie = {
625
644
  const a = this.checkedKeys.filter((l) => i.menuIds.includes(l));
626
645
  return this.checkedKeys.includes(i.id) ? (i.checked = !0, i.isIndeterminate = !1) : (i.checked = !1, i.isIndeterminate = a.length > 0 && i.menuIds.length > 0), i.children && i.children.length > 0 && (i.children = e(i.children)), !0;
627
646
  }), t);
628
- e(s), this.menuTreeData = [...s], this.allClose = this.checkedKeys.length === this.allCheckedKeys.length && this.allCheckedKeys.length > 0;
647
+ s.forEach((t) => {
648
+ e(t.children);
649
+ }), this.menuTreeData = [...s], this.allClose = this.checkedKeys.length === this.allCheckedKeys.length && this.allCheckedKeys.length > 0;
629
650
  },
630
651
  changeAll(s) {
631
652
  s ? this.checkedKeys = [...this.allCheckedKeys] : this.checkedKeys = [], this.handleItem();
632
653
  },
633
654
  init() {
634
- this.confirmLoading = !0, Promise.all([this.getMenuTree(), this.expandedMenuKeys(), this.getMenuList()]).then(async (s) => {
655
+ this.confirmLoading = !0, Promise.all([this.getMenuTree(), this.expandedMenuKeys(), this.getMenuList(), this.getAppListByAppsId()]).then(async (s) => {
635
656
  let e = [], t = [];
636
- const i = (r) => (r = r.filter((d, o) => {
637
- 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), t.push(d), d.children && d.children.length > 0 && (d.children = i(d.children)), !0;
639
- }), r);
640
- let n = this.menuAll.filter((r) => !!this.systemMenuAll.filter((o) => o.id === r.id)[0]);
657
+ const i = (d) => (d = d.filter((c, h) => {
658
+ const y = this.checkedKeys.filter((b) => c.id === b)[0];
659
+ return c.open = !0, c.checked = c.type === 1 ? !!y : !1, c.isIndeterminate = !1, c.menusType = c.type, e.push(c.id), t.push(c), c.children && c.children.length > 0 && (c.children = i(c.children)), !0;
660
+ }), d);
661
+ let n = this.menuAll.filter((d) => {
662
+ const c = this.systemMenuAll.filter((h) => h.id === d.id)[0];
663
+ return c && (d.application = c.application), !!c;
664
+ });
641
665
  await i(n), this.allCheckedKeys = e;
642
666
  let a = [];
643
- t.forEach((r, d) => {
644
- const o = this.getMenuIds(r);
645
- t[d].menuIds = o.arr, t[d].menuBtnIds = o.btn, !(this.checkedKeys.filter((g) => o.arr.includes(g)).length === o.arr.length) && o.arr.length > 0 && a.push(r.id);
667
+ t.forEach((d, c) => {
668
+ const h = this.getMenuIds(d);
669
+ t[c].menuIds = h.arr, t[c].menuBtnIds = h.btn, !(this.checkedKeys.filter((C) => h.arr.includes(C)).length === h.arr.length) && h.arr.length > 0 && a.push(d.id);
646
670
  }), this.list = t;
647
- const l = this.checkedKeys.filter((r) => e.includes(r)).filter((r) => !a.includes(r)).filter((r, d, o) => o.indexOf(r) === d);
648
- this.checkedKeys = l, this.allClose = this.checkedKeys.length === e.length && e.length > 0, this.menuTreeData = [...n], this.handleItem(), this.confirmLoading = !1;
671
+ const l = this.checkedKeys.filter((d) => e.includes(d)).filter((d) => !a.includes(d)).filter((d, c, h) => h.indexOf(d) === c);
672
+ this.checkedKeys = l, this.allClose = this.checkedKeys.length === e.length && e.length > 0;
673
+ let r = [], u = this.appList.filter((d) => {
674
+ const c = n.filter((h) => h.application === d.code);
675
+ return c.length > 0 ? (r = r.concat([...c]), d.children = [...c], d.open = !0, d.uuid = `${p(12)}`, !0) : !1;
676
+ });
677
+ const o = n.filter((d) => !r.filter((h) => h.id === d.id));
678
+ o.length > 0 && u.push({
679
+ name: "\u7A7A\u767D",
680
+ transkey: "gd.echarts.none",
681
+ children: o,
682
+ activeShow: !0,
683
+ open: !0,
684
+ uuid: `${p(12)}`
685
+ }), this.menuTreeData = [...u], this.handleItem(), this.confirmLoading = !1;
649
686
  });
650
687
  },
651
688
  open(s, e) {
652
689
  this.record = s, this.appsId = e || window.$systemInfo.id, this.visible = !0, this.init();
653
690
  },
654
691
  getMenuTree() {
655
- return A({ roleId: this.record.id }).then((s) => (s.code === 200 && (this.menuAll = s.data), s));
692
+ return z({ roleId: this.record.id }).then((s) => (s.code === 200 && (this.menuAll = s.data), s));
656
693
  },
657
694
  expandedMenuKeys() {
658
- return $({
695
+ return S({
659
696
  id: this.record.id
660
697
  }).then((s) => (s.code === 200 && (this.checkedKeys = s.data), s));
661
698
  },
662
699
  getMenuList() {
663
700
  let s = { AppsId: this.appsId };
664
- return M(s).then((e) => (e.code === 200 && (this.systemMenuAll = e.data), e));
701
+ return j(s).then((e) => (e.code === 200 && (this.systemMenuAll = e.data), e));
702
+ },
703
+ getAppListByAppsId() {
704
+ return q({ appsId: this.appsId }).then((s) => (s.code === 200 && (this.appList = s.data), s));
665
705
  },
666
706
  getMenuIds(s) {
667
707
  let e = [], t = [];
@@ -680,31 +720,43 @@ const ie = {
680
720
  toggleFullscreen() {
681
721
  this.fullscreen = !this.fullscreen;
682
722
  },
723
+ fadeColor(s, e) {
724
+ let t = parseInt(s.substring(1, 3), 16), i = parseInt(s.substring(3, 5), 16), n = parseInt(s.substring(5, 7), 16);
725
+ return `rgba(${t},${i},${n},${e})`;
726
+ },
683
727
  doEvent(s) {
684
728
  const e = s.item.functionName;
685
729
  this[e] && this[e]();
686
730
  }
687
731
  }
688
732
  };
689
- var ne = function() {
733
+ var de = function() {
690
734
  var e = this, t = e._self._c;
691
- return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
735
+ return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1, "custom-class": e.customClass }, on: { "update:visible": function(i) {
692
736
  e.visible = i;
693
- }, closed: e.closed } }, [t("template", { slot: "title" }, [t("gd-modal-title", { attrs: { title: e.$i18nt("gd.user.dataRole", "\u6388\u6743\u6570\u636E"), fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen } })], 1), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticStyle: { "min-height": "400px" } }, [e.visible ? t("LayoutItem", { attrs: { record: e.menuTreeData, checkedKeys: e.checkedKeys }, on: { open: e.openItem, change: e.changeItem, checkedBtn: e.checkedItemBtn } }) : e._e()], 1), t("template", { slot: "footer" }, [t("div", { staticClass: "btoms" }, [t("el-checkbox", { attrs: { disabled: e.confirmLoading, indeterminate: e.isIndeterminate }, on: { change: e.changeAll }, model: { value: e.allClose, callback: function(i) {
737
+ }, closed: e.closed } }, [t("template", { slot: "title" }, [t("gd-modal-title", { attrs: { title: e.$i18nt("gd.user.dataRole", "\u6388\u6743\u6570\u636E"), fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0, btnFlex: "width:auto" }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen }, scopedSlots: e._u([{ key: "operator", fn: function() {
738
+ return [t("el-dropdown", { attrs: { placement: "bottom" }, on: { command: e.elScrollIntoView } }, [t("el-button", { staticStyle: { margin: "0 1px 0 0", padding: "6px 8px", "font-size": "13px" }, attrs: { type: "primary" } }, [t("i", { staticClass: "gd-icons gd-icon-dingwei1", staticStyle: { "font-size": "14px" } }), e._v(" " + e._s(e.$i18nt("gd.web.location", "\u5B9A\u4F4D")) + " "), t("i", { staticClass: "el-icon-arrow-down" })]), t("el-dropdown-menu", { style: { "--dilute": e.fadeColord, minWidth: "120px" }, attrs: { slot: "dropdown" }, slot: "dropdown" }, e._l(e.menuTreeData, function(i) {
739
+ return t("el-dropdown-item", { key: i.uuid, attrs: { command: i.uuid } }, [t("i", { staticClass: "gd-icons el-icon-right", staticStyle: { "font-size": "14px" } }), i.activeShow ? t("span", [e._v(e._s(e.$i18nt(i.transkey, i.name)))]) : t("span", [e._v(e._s(e.$i18nt(`Dynamics.${i.transkey}`, i.name)))])]);
740
+ }), 1)], 1)];
741
+ }, proxy: !0 }]) })], 1), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticStyle: { "min-height": "400px" } }, [t("div", { staticClass: "app-list" }, [e._l(e.menuTreeData, function(i, n) {
742
+ return [n != 0 ? t("el-divider") : e._e(), t("div", { staticClass: "app-list-item", class: i.uuid }, [t("div", { staticClass: "app-list-name" }, [i.children && i.children.length > 0 ? t("i", { class: i.open ? "el-icon-caret-bottom" : "el-icon-caret-right", on: { click: function(a) {
743
+ return e.appOpen(n, i);
744
+ } } }) : e._e(), e._v(" " + e._s(i.name) + " ")]), i.open ? t("div", { staticStyle: { "padding-left": "20px" } }, [e.visible ? t("LayoutItem", { attrs: { record: i.children, checkedKeys: e.checkedKeys }, on: { open: e.openItem, change: e.changeItem, checkedBtn: e.checkedItemBtn } }) : e._e()], 1) : e._e()])];
745
+ })], 2)]), t("template", { slot: "footer" }, [t("div", { staticClass: "btoms" }, [t("el-checkbox", { attrs: { disabled: e.confirmLoading, indeterminate: e.isIndeterminate }, on: { change: e.changeAll }, model: { value: e.allClose, callback: function(i) {
694
746
  e.allClose = i;
695
747
  }, expression: "allClose" } }, [e._v(" " + e._s(e.$i18nt("gd.btn.selectAll", "\u5168\u9009")) + " ")])], 1)])], 2)], 1);
696
- }, ae = [], re = /* @__PURE__ */ u(
697
- ie,
698
- ne,
699
- ae,
748
+ }, ce = [], he = /* @__PURE__ */ g(
749
+ oe,
750
+ de,
751
+ ce,
700
752
  !1,
701
753
  null,
702
- "d82ecaae",
754
+ "1e20ac45",
703
755
  null,
704
756
  null
705
757
  );
706
- const le = re.exports;
707
- const oe = {
758
+ const ue = he.exports;
759
+ const fe = {
708
760
  name: "GdUserRole",
709
761
  props: {
710
762
  height: {
@@ -720,7 +772,7 @@ const oe = {
720
772
  default: "page"
721
773
  }
722
774
  },
723
- mixins: [b],
775
+ mixins: [k],
724
776
  data() {
725
777
  return {
726
778
  transKey: "gd.btn.add",
@@ -737,7 +789,7 @@ const oe = {
737
789
  value: "value"
738
790
  },
739
791
  defaultExpandedKeys: "",
740
- loadData: (s) => E({ roleId: this.openSelecteKeys[0] }).then((e) => (this.getRowId(e.data), { pageNo: 1, pageSize: 1e3, totalRows: 0, rows: e.data })),
792
+ loadData: (s) => G({ roleId: this.openSelecteKeys[0] }).then((e) => (this.getRowId(e.data), { pageNo: 1, pageSize: 1e3, totalRows: 0, rows: e.data })),
741
793
  disableBtn: [],
742
794
  fileList: [],
743
795
  needLoad: !1,
@@ -964,7 +1016,7 @@ const oe = {
964
1016
  styled() {
965
1017
  return `height:${this.height + 76}px`;
966
1018
  },
967
- ...h(["tablePageSize", "tableSize", "labelPosition", "formMode"])
1019
+ ...f(["tablePageSize", "tableSize", "labelPosition", "formMode"])
968
1020
  },
969
1021
  methods: {
970
1022
  getRowId(s) {
@@ -982,7 +1034,7 @@ const oe = {
982
1034
  this.$refs.table.refresh();
983
1035
  },
984
1036
  getOrgTree() {
985
- v({}).then((s) => {
1037
+ w({}).then((s) => {
986
1038
  if (s.code === 200) {
987
1039
  const e = (t) => (t = t.filter((i, n) => (i.value = String(i.value), i.children && i.children.length > 0 && (i.children = e(i.children)), !0)), t);
988
1040
  this.orgTree = e(s.data);
@@ -1019,7 +1071,7 @@ const oe = {
1019
1071
  this.$refs.engineSearch.closed();
1020
1072
  return;
1021
1073
  }
1022
- this.$refs.engineSearch.confirmLoading = !0, O({
1074
+ this.$refs.engineSearch.confirmLoading = !0, V({
1023
1075
  roleId: this.openSelecteKeys[0],
1024
1076
  userIdList: s.data
1025
1077
  }).then((e) => {
@@ -1057,7 +1109,7 @@ const oe = {
1057
1109
  i();
1058
1110
  return;
1059
1111
  }
1060
- t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, z({
1112
+ t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, H({
1061
1113
  roleId: s.openSelecteKeys[0],
1062
1114
  userIdList: s.selectedRowKeys
1063
1115
  }).then((n) => {
@@ -1070,7 +1122,7 @@ const oe = {
1070
1122
  created() {
1071
1123
  }
1072
1124
  };
1073
- var de = function() {
1125
+ var ge = function() {
1074
1126
  var e = this, t = e._self._c;
1075
1127
  return t("div", { staticClass: "gd-page-view", staticStyle: { display: "flex", background: "rgb(245, 245, 245)" } }, [t("div", { staticClass: "page-view-list" }, [t("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, showPagination: !1, selectedRowKeys: e.selectedRowKeys, height: e.height, initialLoading: !1 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
1076
1128
  return [t("div", { staticClass: "gd-table-operator" }, [t("div", { staticClass: "gd-table-operatorr" }, [t("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
@@ -1085,18 +1137,18 @@ var de = function() {
1085
1137
  } }, { key: "status", fn: function({ column: i, row: n }) {
1086
1138
  return [t("span", [e._v(" " + e._s(e._f("dictType")("state_code", n.statecodes)) + " ")])];
1087
1139
  } }]) }), t("gd-search", { ref: "engineSearch", attrs: { appendToBody: !0, disabledRowId: e.disabledRowId }, on: { lookupSeled: e.lookupSeled } })], 1)]);
1088
- }, ce = [], he = /* @__PURE__ */ u(
1089
- oe,
1090
- de,
1091
- ce,
1140
+ }, pe = [], me = /* @__PURE__ */ g(
1141
+ fe,
1142
+ ge,
1143
+ pe,
1092
1144
  !1,
1093
1145
  null,
1094
1146
  "e9dd56ab",
1095
1147
  null,
1096
1148
  null
1097
1149
  );
1098
- const k = he.exports;
1099
- const ue = {
1150
+ const K = me.exports;
1151
+ const ye = {
1100
1152
  data() {
1101
1153
  return {
1102
1154
  buttons: [],
@@ -1108,12 +1160,12 @@ const ue = {
1108
1160
  selectedRowKeys: []
1109
1161
  };
1110
1162
  },
1111
- components: { UserFormDate: k },
1163
+ components: { UserFormDate: K },
1112
1164
  computed: {
1113
1165
  height() {
1114
1166
  return this.screenHeight - (this.fullscreen ? 160 : 340);
1115
1167
  },
1116
- ...h(["screenHeight"])
1168
+ ...f(["screenHeight"])
1117
1169
  },
1118
1170
  methods: {
1119
1171
  handleSubmit() {
@@ -1141,25 +1193,26 @@ const ue = {
1141
1193
  }
1142
1194
  }
1143
1195
  };
1144
- var ge = function() {
1196
+ var be = function() {
1145
1197
  var e = this, t = e._self._c;
1146
1198
  return t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "modal-append-to-body": !0, "append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
1147
1199
  e.visible = i;
1148
1200
  }, closed: e.closed } }, [t("template", { slot: "title" }, [t("gd-modal-title", { attrs: { title: e.$i18nt("gd.user.userAuthorization", "\u6388\u6743\u7528\u6237"), fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen } })], 1), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [e.visible ? t("UserFormDate", { ref: "userForm", attrs: { height: e.height, openMode: "components", openSelecteKeys: e.selectedRowKeys }, on: { onSelectChange: e.onSelectChange } }) : e._e()], 1)], 2);
1149
- }, fe = [], pe = /* @__PURE__ */ u(
1150
- ue,
1151
- ge,
1152
- fe,
1201
+ }, ve = [], _e = /* @__PURE__ */ g(
1202
+ ye,
1203
+ be,
1204
+ ve,
1153
1205
  !1,
1154
1206
  null,
1155
1207
  "46b57430",
1156
1208
  null,
1157
1209
  null
1158
1210
  );
1159
- const me = pe.exports;
1160
- const ye = {
1211
+ const ke = _e.exports;
1212
+ const we = {
1161
1213
  data() {
1162
1214
  return {
1215
+ defaultKey: [],
1163
1216
  buttons: [
1164
1217
  {
1165
1218
  displayName: "\u786E\u5B9A",
@@ -1173,7 +1226,7 @@ const ye = {
1173
1226
  visible: !1,
1174
1227
  confirmLoading: !1,
1175
1228
  fullscreen: !1,
1176
- width: "80%",
1229
+ width: "90%",
1177
1230
  selectedPath: "/",
1178
1231
  pathDialogVisible: !1,
1179
1232
  tempSelectedPath: "",
@@ -1271,12 +1324,12 @@ const ye = {
1271
1324
  id: ""
1272
1325
  };
1273
1326
  },
1274
- components: { UserFormDate: k },
1327
+ components: { UserFormDate: K },
1275
1328
  computed: {
1276
1329
  height() {
1277
1330
  return this.screenHeight - (this.fullscreen ? 160 : 340);
1278
1331
  },
1279
- ...h(["screenHeight"])
1332
+ ...f(["screenHeight"])
1280
1333
  },
1281
1334
  methods: {
1282
1335
  querySearch(s, e) {
@@ -1327,10 +1380,8 @@ const ye = {
1327
1380
  ...i
1328
1381
  };
1329
1382
  }).map(({ list: t, ...i }) => i);
1330
- this.confirmLoading = !0, K(e).then((t) => {
1331
- t.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok"), this.closed()) : this.$message.error(
1332
- this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + t.message
1333
- ), this.confirmLoading = !1;
1383
+ this.confirmLoading = !0, R(e).then((t) => {
1384
+ t.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok"), this.closed()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + t.message), this.confirmLoading = !1;
1334
1385
  });
1335
1386
  },
1336
1387
  edit() {
@@ -1341,17 +1392,15 @@ const ye = {
1341
1392
  ...i
1342
1393
  };
1343
1394
  }).map(({ list: t, ...i }) => i);
1344
- console.log(e), this.confirmLoading = !0, T(e).then((t) => {
1345
- t.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok"), this.closed()) : this.$message.error(
1346
- this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + t.message
1347
- ), this.confirmLoading = !1;
1395
+ this.confirmLoading = !0, L(e).then((t) => {
1396
+ t.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok"), this.closed()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + t.message), this.confirmLoading = !1;
1348
1397
  });
1349
1398
  },
1350
1399
  open(s) {
1351
1400
  this.record = s, this.visible = !0, this.getallTree(), this.getDetail(s);
1352
1401
  },
1353
1402
  getDetail(s) {
1354
- C({ roleId: s.id }).then((e) => {
1403
+ I({ roleId: s.id }).then((e) => {
1355
1404
  if (e.code == 200 && (this.currentPermissions = [], this.$refs.elTreeRef && this.$refs.elTreeRef.setCheckedKeys([]), e.data.length > 0)) {
1356
1405
  this.id = e.data[0].id, this.currentPermissions = [];
1357
1406
  const t = e.data.map((n) => {
@@ -1381,11 +1430,12 @@ const ye = {
1381
1430
  });
1382
1431
  },
1383
1432
  getallTree() {
1384
- R().then((s) => {
1433
+ x().then((s) => {
1385
1434
  if (s.code == 200) {
1386
1435
  this.restaurants = JSON.parse(JSON.stringify(s.data));
1387
1436
  const e = this.buildTree(JSON.parse(JSON.stringify(s.data)));
1388
- this.folderTree = e, this.selectedPath = "/" + s.data[0].name;
1437
+ let t = [];
1438
+ e[0] && e[0].children && t.push(e[0].id), this.defaultKey = t, this.folderTree = e, console.log(t), this.selectedPath = "/" + s.data[0].name;
1389
1439
  }
1390
1440
  });
1391
1441
  },
@@ -1407,7 +1457,6 @@ const ye = {
1407
1457
  this.pathDialogVisible = !0, this.tempSelectedPath = this.selectedPath;
1408
1458
  },
1409
1459
  delList(s) {
1410
- console.log(s);
1411
1460
  let e = this;
1412
1461
  this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
1413
1462
  confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
@@ -1426,15 +1475,19 @@ const ye = {
1426
1475
  n();
1427
1476
  return;
1428
1477
  }
1429
- i.confirmButtonLoading = !0, i.cancelButtonLoading = !0, i.showCancelButton = !1, s.id === 0 ? e.$message.success(e.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : m({
1478
+ i.confirmButtonLoading = !0, i.cancelButtonLoading = !0, i.showCancelButton = !1, s.id === 0 ? e.$message.success(e.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : v({
1430
1479
  ids: s.id
1431
- }).then((a) => {
1432
- i.confirmButtonLoading = !1, i.cancelButtonLoading = !1, i.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);
1433
- }), n(), e.currentPermissions = e.currentPermissions.filter((a) => a.sysdocobjectid !== s.sysdocobjectid), e.currentPermissions.length == 0 && e.cardList.forEach((a) => {
1434
- Array.isArray(a.list) && a.list.forEach((l) => {
1435
- l.value = "";
1480
+ }).then((l) => {
1481
+ i.confirmButtonLoading = !1, i.cancelButtonLoading = !1, i.showCancelButton = !0, l.success ? e.$message.success(e.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : e.$message.error(e.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + l.message);
1482
+ }), n();
1483
+ let a = 0;
1484
+ for (let l = 0; l < e.currentPermissions.length; l++)
1485
+ e.currentPermissions[l].sysdocobjectid === s.sysdocobjectid && (a = l);
1486
+ console.log(a), e.currentPermissions = e.currentPermissions.filter((l) => l.sysdocobjectid !== s.sysdocobjectid), e.currentPermissions.length == 0 && e.cardList.forEach((l) => {
1487
+ Array.isArray(l.list) && l.list.forEach((r) => {
1488
+ r.value = "";
1436
1489
  });
1437
- }), e.cancelNodeCheck(s.sysdocobjectid);
1490
+ }), e.currentPermissions.length > 0 && e.currentPermissions[a - 1] ? this.handlePermissionClick(e.currentPermissions[a - 1]) : e.currentPermissions.length > 0 && e.currentPermissions[a] && this.handlePermissionClick(e.currentPermissions[a]), e.cancelNodeCheck(s.sysdocobjectid);
1438
1491
  }
1439
1492
  });
1440
1493
  },
@@ -1526,20 +1579,20 @@ const ye = {
1526
1579
  customClass: "custom-alert",
1527
1580
  callback: () => {
1528
1581
  },
1529
- beforeClose: (l, r, d) => {
1582
+ beforeClose: (l, r, u) => {
1530
1583
  if (l !== "confirm") {
1531
- d(), setTimeout(() => {
1584
+ u(), setTimeout(() => {
1532
1585
  this.$nextTick(() => {
1533
1586
  this.$refs.elTreeRef.setChecked(s.id, !0);
1534
1587
  });
1535
1588
  });
1536
1589
  return;
1537
1590
  }
1538
- r.confirmButtonLoading = !0, r.cancelButtonLoading = !0, r.showCancelButton = !1, n[0].id === 0 ? a.$message.success(a.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : m({
1591
+ r.confirmButtonLoading = !0, r.cancelButtonLoading = !0, r.showCancelButton = !1, n[0].id === 0 ? a.$message.success(a.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : v({
1539
1592
  ids: n[0].id
1540
1593
  }).then((o) => {
1541
1594
  r.confirmButtonLoading = !1, r.cancelButtonLoading = !1, r.showCancelButton = !0, o.success ? a.$message.success(a.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : a.$message.error(a.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + o.message);
1542
- }), d(), this.nextclickdel(i);
1595
+ }), u(), this.nextclickdel(i);
1543
1596
  }
1544
1597
  });
1545
1598
  }
@@ -1603,39 +1656,39 @@ const ye = {
1603
1656
  }
1604
1657
  }
1605
1658
  };
1606
- var be = function() {
1659
+ var $e = function() {
1607
1660
  var e = this, t = e._self._c;
1608
- 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(i) {
1661
+ return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "modal-append-to-body": !0, "append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
1609
1662
  e.visible = i;
1610
- }, 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(e._s(e.$i18nt("gd.user.selectDirectory", "\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", { staticStyle: { width: "100%" } }, [t("div", { staticClass: "preview-card" }, [t("div", { staticClass: "card-header" }, [t("span", [e._v(e._s(e.$i18nt("gd.user.permissionPreview", "\u6743\u9650\u9884\u89C8")))])]), t("div", { staticClass: "permission-tags" }, e._l(e.currentPermissions, function(i) {
1663
+ }, 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(e._s(e.$i18nt("gd.user.selectDirectory", "\u9009\u62E9\u76EE\u5F55")))]), t("div", { staticClass: "tree-list" }, [t("el-tree", { ref: "elTreeRef", attrs: { "check-strictly": "", data: e.folderTree, "node-key": "id", "default-expanded-keys": e.defaultKey, "show-checkbox": "", props: e.treeProps }, on: { "check-change": e.handleDirectoryCheck, "node-click": e.handleNodeClick } })], 1)]), t("div", { staticClass: "directory-list" }, [t("div", { staticClass: "preview-card" }, [t("el-alert", { attrs: { title: e.$i18nt("gd.user.permissionPreview", "\u6743\u9650\u9884\u89C8"), type: "info", "show-icon": "", effect: "dark", closable: !1 } }), e.currentPermissions.length > 0 ? t("div", { staticClass: "permission-tags" }, e._l(e.currentPermissions, function(i) {
1611
1664
  return t("div", { key: i.sysdocobjectid, staticClass: "permission-tags-item", class: { checked: i.ischeck }, on: { click: function(n) {
1612
1665
  return e.handlePermissionClick(i);
1613
- } } }, [e._v(" " + e._s(i.name) + " "), t("div", { staticClass: "permission-tags-item-content" }, e._l(i.list, function(n, a) {
1614
- return t("div", { key: a }, [t("span", [e._v(e._s(n.name))]), n.value == "1" ? t("el-tag", [e._v(e._s(e.$i18nt("gd.user.allow", "\u5141\u8BB8")))]) : e._e(), n.value == "2" ? t("el-tag", { attrs: { type: "danger" } }, [e._v(e._s(e.$i18nt("gd.user.refuse", "\u62D2\u7EDD")))]) : e._e()], 1);
1666
+ } } }, [t("div", { staticClass: "item-name" }, [e._v(e._s(i.name))]), t("div", { staticClass: "permission-tags-item-content" }, e._l(i.list, function(n, a) {
1667
+ return t("div", { key: a }, [t("span", [e._v(e._s(n.name))]), n.value == "1" ? t("el-tag", { attrs: { type: "success", effect: "dark", size: "mini" } }, [e._v(e._s(e.$i18nt("gd.user.allow", "\u5141\u8BB8")))]) : e._e(), n.value == "2" ? t("el-tag", { attrs: { type: "danger", effect: "dark", size: "mini" } }, [e._v(e._s(e.$i18nt("gd.user.refuse", "\u62D2\u7EDD")))]) : e._e()], 1);
1615
1668
  }), 0), t("i", { staticClass: "el-icon-close del-btn", on: { click: function(n) {
1616
1669
  return e.delList(i);
1617
1670
  } } })]);
1618
- }), 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(i, n) {
1671
+ }), 0) : t("div", { staticClass: "empty" }, [t("div", { staticClass: "empty-item" }, [t("div", { staticClass: "empty-icon" }, [t("i", { staticClass: "el-icon-receiving" })]), t("div", { staticClass: "empty-title" }, [t("span", [e._v(e._s(e.$i18nt("gd.echarts.noData", "\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])])])], 1), t("div", { staticClass: "permission-section" }, [t("el-alert", { attrs: { title: e.$i18nt("gd.user.setOperationPermissions", "\u8BBE\u7F6E\u64CD\u4F5C\u6743\u9650"), type: "info", "show-icon": "", effect: "dark", closable: !1 } }), t("div", { staticClass: "kuang" }, e._l(e.cardList, function(i, n) {
1619
1672
  return t("div", { key: n }, [t("div", { staticClass: "clearfix", attrs: { slot: "header" }, slot: "header" }, [t("h4", [e._v(e._s(e.$i18nt(i.transkey, i.name)))])]), t("div", { staticClass: "permission-list" }, [t("div", { staticClass: "permission-category" }, e._l(i.list, function(a, l) {
1620
- 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) {
1673
+ return t("el-card", { key: l, staticClass: "permission-item", attrs: { shadow: "hover" } }, [t("div", { staticClass: "perm-info" }, [t("i", { staticClass: "gd-icons", class: a.icon, staticStyle: { "font-size": "14px", "margin-right": "6px" } }), 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) {
1621
1674
  return e.handleReadMetaDataChange(r, a);
1622
1675
  } }, model: { value: a.value, callback: function(r) {
1623
1676
  e.$set(a, "value", r);
1624
- }, 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)]);
1677
+ }, expression: "items.value" } }, [t("el-radio", { attrs: { label: "1" } }, [t("span", { staticStyle: { color: "rgb(82, 196, 26)" } }, [e._v(e._s(e.$i18nt("gd.user.allow", "\u5141\u8BB8")))])]), t("el-radio", { attrs: { label: "2" } }, [t("span", { staticStyle: { color: "red" } }, [e._v(e._s(e.$i18nt("gd.user.refuse", "\u62D2\u7EDD")))])])], 1)], 1)]);
1625
1678
  }), 1)])]);
1626
- })], 2)])])])], 2)], 1);
1627
- }, ve = [], _e = /* @__PURE__ */ u(
1628
- ye,
1629
- be,
1630
- ve,
1679
+ }), 0)], 1)])])], 2)], 1);
1680
+ }, Ke = [], Ce = /* @__PURE__ */ g(
1681
+ we,
1682
+ $e,
1683
+ Ke,
1631
1684
  !1,
1632
1685
  null,
1633
- "daca70b3",
1686
+ "b1dc77ce",
1634
1687
  null,
1635
1688
  null
1636
1689
  );
1637
- const ke = _e.exports;
1638
- const we = {
1690
+ const Te = Ce.exports;
1691
+ const Se = {
1639
1692
  data() {
1640
1693
  return {
1641
1694
  buttons: [
@@ -1666,16 +1719,16 @@ const we = {
1666
1719
  isIndeterminate() {
1667
1720
  return this.allClose ? !1 : this.checkedKeys.length > 0;
1668
1721
  },
1669
- ...h(["screenHeight", "tableLists"])
1722
+ ...f(["screenHeight", "tableLists"])
1670
1723
  },
1671
- components: { LayoutItem: _ },
1724
+ components: { LayoutItem: $ },
1672
1725
  methods: {
1673
1726
  async handleSubmit() {
1674
1727
  const s = (e) => (e = e.filter((t, i) => {
1675
1728
  const n = this.checkedKeys.filter((a) => t.id === a)[0];
1676
1729
  return t.type = n ? 1 : 0, t.formlist && t.formlist.length > 0 && (t.formlist = s(t.formlist)), t.viewlist && t.viewlist.length > 0 && (t.viewlist = s(t.viewlist)), t.btnlist && t.btnlist.length > 0 && (t.btnlist = s(t.btnlist)), !0;
1677
1730
  }), e);
1678
- this.confirmLoading = !0, await s(this.menuAll), S({
1731
+ this.confirmLoading = !0, await s(this.menuAll), D({
1679
1732
  roleid: this.record.id,
1680
1733
  list: this.menuAll
1681
1734
  }).then((e) => {
@@ -1701,12 +1754,12 @@ const we = {
1701
1754
  return;
1702
1755
  let l = [];
1703
1756
  this.findParent(this.menuTreeData, n, l);
1704
- let r = [], d = [];
1757
+ let r = [], u = [];
1705
1758
  l.forEach((o) => {
1706
- this.checkedKeys.filter((g) => o.menuIds.includes(g)).length === o.menuIds.length && o.menuIds.length > 0 && !o.checked ? r.push(o.id) : d.push(o.id);
1759
+ this.checkedKeys.filter((h) => o.menuIds.includes(h)).length === o.menuIds.length && o.menuIds.length > 0 && !o.checked ? r.push(o.id) : u.push(o.id);
1707
1760
  }), r.forEach((o) => {
1708
1761
  this.changeItem(!0, [o], !1);
1709
- }), d.forEach((o) => {
1762
+ }), u.forEach((o) => {
1710
1763
  this.changeItem(!1, [o], !1);
1711
1764
  });
1712
1765
  },
@@ -1726,25 +1779,25 @@ const we = {
1726
1779
  this.confirmLoading = !1;
1727
1780
  let e = JSON.parse(JSON.stringify(this.menuTreeDatad)), t = [];
1728
1781
  const i = (a) => (a = a.filter((l, r) => {
1729
- const d = this.checkedKeys.filter((o) => l.id === o)[0];
1730
- return l.open = !0, l.checked = l.menusType === 1 ? !!d : !1, l.isIndeterminate = !1, t.push(l), l.children && l.children.length > 0 && (l.children = i(l.children)), !0;
1782
+ const u = this.checkedKeys.filter((o) => l.id === o)[0];
1783
+ return l.open = !0, l.checked = l.menusType === 1 ? !!u : !1, l.isIndeterminate = !1, t.push(l), l.children && l.children.length > 0 && (l.children = i(l.children)), !0;
1731
1784
  }), a);
1732
1785
  await i(e);
1733
1786
  let n = [];
1734
1787
  t.forEach((a, l) => {
1735
1788
  const r = this.getMenuIds(a);
1736
- t[l].menuIds = r.arr, t[l].menuBtnIds = r.btn, !(this.checkedKeys.filter((c) => r.arr.includes(c)).length === r.arr.length) && r.arr.length > 0 && n.push(a.id);
1789
+ t[l].menuIds = r.arr, t[l].menuBtnIds = r.btn, !(this.checkedKeys.filter((d) => r.arr.includes(d)).length === r.arr.length) && r.arr.length > 0 && n.push(a.id);
1737
1790
  }), this.list = t, this.allClose = this.checkedKeys.length === this.allCheckedKeys.length && this.allCheckedKeys.length > 0, this.menuTreeData = [...e], this.handleItem(), console.log(this.menuAll, "123");
1738
1791
  });
1739
1792
  },
1740
1793
  getList() {
1741
- return L({ roleId: this.record.id }).then((s) => {
1794
+ return P({ roleId: this.record.id }).then((s) => {
1742
1795
  if (s.code === 200) {
1743
1796
  let e = [], t = [];
1744
- const i = (a, l) => (a = a.filter((r, d) => {
1797
+ const i = (a, l) => (a = a.filter((r, u) => {
1745
1798
  r.parentId = l, r.open = !0, r.checked = !1, r.isIndeterminate = !1, r.transkey = r.transkey ? r.transkey : null, r.title = r.name, r.menusType = r.formlist && r.viewlist ? 0 : r.btnlist ? 1 : 2, t.push(r.id), r.type === 1 && e.push(r.id);
1746
1799
  let o = [];
1747
- return r.viewlist && r.viewlist.length > 0 && (r.viewlist.map((c) => (c.iconClass = "gd-icon-shitumoshi", c)), o = o.concat(r.viewlist)), r.formlist && r.formlist.length > 0 && (r.formlist.map((c) => (c.iconClass = "gd-icon-biaodanmoshi", c)), o = o.concat(r.formlist)), r.btnlist && r.btnlist.length > 0 && (o = o.concat(r.btnlist)), o.length > 0 && (r.children = i(o, r.id)), !0;
1800
+ return r.viewlist && r.viewlist.length > 0 && (r.viewlist.map((d) => (d.iconClass = "gd-icon-shitumoshi", d)), o = o.concat(r.viewlist)), r.formlist && r.formlist.length > 0 && (r.formlist.map((d) => (d.iconClass = "gd-icon-biaodanmoshi", d)), o = o.concat(r.formlist)), r.btnlist && r.btnlist.length > 0 && (o = o.concat(r.btnlist)), o.length > 0 && (r.children = i(o, r.id)), !0;
1748
1801
  }), a);
1749
1802
  this.menuAll = s.data.list;
1750
1803
  let n = JSON.parse(JSON.stringify(this.menuAll));
@@ -1779,25 +1832,25 @@ const we = {
1779
1832
  }
1780
1833
  }
1781
1834
  };
1782
- var $e = function() {
1835
+ var Re = function() {
1783
1836
  var e = this, t = e._self._c;
1784
1837
  return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
1785
1838
  e.visible = i;
1786
1839
  }, closed: e.closed } }, [t("template", { slot: "title" }, [t("gd-modal-title", { attrs: { title: e.$i18nt("gd.user.dataRole", "\u6388\u6743\u6570\u636E"), buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen } })], 1), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticStyle: { "min-height": "400px" } }, [e.visible ? t("LayoutItem", { attrs: { record: e.menuTreeData, checkedKeys: e.checkedKeys }, on: { open: e.openItem, change: e.changeItem, checkedBtn: e.checkedItemBtn } }) : e._e()], 1), t("template", { slot: "footer" }, [t("div", { staticClass: "btoms" }, [t("el-checkbox", { attrs: { disabled: e.confirmLoading, indeterminate: e.isIndeterminate }, on: { change: e.changeAll }, model: { value: e.allClose, callback: function(i) {
1787
1840
  e.allClose = i;
1788
1841
  }, expression: "allClose" } }, [e._v(" " + e._s(e.$i18nt("gd.btn.selectAll", "\u5168\u9009")) + " ")])], 1)])], 2)], 1);
1789
- }, Ke = [], Te = /* @__PURE__ */ u(
1790
- we,
1791
- $e,
1792
- Ke,
1842
+ }, Le = [], Ie = /* @__PURE__ */ g(
1843
+ Se,
1844
+ Re,
1845
+ Le,
1793
1846
  !1,
1794
1847
  null,
1795
1848
  "e6593396",
1796
1849
  null,
1797
1850
  null
1798
1851
  );
1799
- const Ce = Te.exports;
1800
- const Re = {
1852
+ const xe = Ie.exports;
1853
+ const De = {
1801
1854
  name: "GdRole",
1802
1855
  props: {
1803
1856
  height: {
@@ -1813,7 +1866,7 @@ const Re = {
1813
1866
  default: () => []
1814
1867
  }
1815
1868
  },
1816
- mixins: [b, j],
1869
+ mixins: [k, U],
1817
1870
  data() {
1818
1871
  return {
1819
1872
  appsId: "",
@@ -1824,11 +1877,11 @@ const Re = {
1824
1877
  selectedRows: [],
1825
1878
  queryParam: {},
1826
1879
  allRowData: [],
1827
- loadData: (s) => (this.selectedKeep && (this.selectedRowKeys = [...this.openSelecteKeys]), I(Object.assign(s, this.queryParam, { sysAppsId: window.$systemInfo.id })).then((e) => (this.allRowData = e.data, e.data))),
1880
+ loadData: (s) => (this.selectedKeep && (this.selectedRowKeys = [...this.openSelecteKeys]), N(Object.assign(s, this.queryParam, { sysAppsId: window.$systemInfo.id })).then((e) => (this.allRowData = e.data, e.data))),
1828
1881
  isDoc: ""
1829
1882
  };
1830
1883
  },
1831
- components: { RoleGrant: Y, RoleMenu: le, RoleMenuViewForm: Ce, UserAuthorization: me, DocumentAuthorization: ke },
1884
+ components: { RoleGrant: ie, RoleMenu: ue, RoleMenuViewForm: xe, UserAuthorization: ke, DocumentAuthorization: Te },
1832
1885
  computed: {
1833
1886
  getTableButtons() {
1834
1887
  return this.tableButtons.filter((s) => s.functionName === "grantRoleAppMenu" ? !!this.appsId : s.functionName === "documentAuthorizationMenu" ? this.isDoc == 1 : !0);
@@ -1845,18 +1898,18 @@ const Re = {
1845
1898
  getHeight() {
1846
1899
  return this.height;
1847
1900
  },
1848
- ...h(["tablePageSize", "tableSize", "labelPosition", "formMode"])
1901
+ ...f(["tablePageSize", "tableSize", "labelPosition", "formMode"])
1849
1902
  },
1850
1903
  methods: {
1851
1904
  getConfigInfo() {
1852
- y({
1905
+ _({
1853
1906
  code: "GDS_Enable_Doc_Premissions"
1854
1907
  }).then((e) => {
1855
1908
  e.code === 200 && (this.isDoc = e.data.value);
1856
1909
  });
1857
1910
  },
1858
1911
  getAppId() {
1859
- y({ code: "App_Id" }).then((s) => {
1912
+ _({ code: "App_Id" }).then((s) => {
1860
1913
  s.code === 200 && (this.appsId = s.data ? s.data.value : "");
1861
1914
  });
1862
1915
  },
@@ -1964,7 +2017,7 @@ const Re = {
1964
2017
  }
1965
2018
  let i = [];
1966
2019
  this.selectedRows.forEach((n) => {
1967
- let a = x(n).then((l) => l);
2020
+ let a = B(n).then((l) => l);
1968
2021
  i.push(a);
1969
2022
  }), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(i).then((n) => {
1970
2023
  const a = n.filter((l) => !l.success);
@@ -1998,7 +2051,7 @@ const Re = {
1998
2051
  },
1999
2052
  sbumit({ data: s, record: e, btn: t }, i, n) {
2000
2053
  this.formLoading = !0;
2001
- let a = e ? this.transKey === "gd.https.copy" ? D : N : P;
2054
+ let a = e ? this.transKey === "gd.https.copy" ? A : F : M;
2002
2055
  const l = this.transKey !== "gd.https.edit" ? Object.assign(s, { sysappsid: window.$systemInfo.id }) : s;
2003
2056
  a(l).then((r) => {
2004
2057
  r.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), n(), this.refresh()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + r.message), this.formLoading = !1;
@@ -2016,7 +2069,7 @@ const Re = {
2016
2069
  this.getAppId(), this.getConfigInfo();
2017
2070
  }
2018
2071
  };
2019
- var Se = function() {
2072
+ var Pe = function() {
2020
2073
  var e = this, t = e._self._c;
2021
2074
  return t("div", { staticClass: "gd-page-view" }, [t("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [t("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, filtering: !0, selectedKeep: e.selectedKeep, initialLoading: e.initialLoading }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "name", fn: function({ column: i, row: n }) {
2022
2075
  return [t("gd-tooltip", { attrs: { rowKey: "name", row: n, highlight: "" }, on: { click: e.editForm } })];
@@ -2029,20 +2082,20 @@ var Se = function() {
2029
2082
  }, proxy: !0 }, { key: "filtering", fn: function({ colse: i, visible: n }) {
2030
2083
  return [t("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: i, visible: n }, on: { save: e.saveQueries } })];
2031
2084
  } }]) })], 1), t("gd-edit-form", { ref: "editForm", attrs: { formItemWidth: "90%", loading: e.formLoading, transKey: e.transKey, buttons: e.formButtons, columns: e.getFormColumns, labelPosition: e.labelPosition, formMode: e.formMode }, on: { sbumit: e.sbumit } }), t("RoleGrant", { ref: "roleGrant", on: { ok: e.refresh } }), t("RoleMenu", { ref: "roleMenu", on: { ok: e.refresh } }), t("RoleMenuViewForm", { ref: "roleMenuViewForm", on: { ok: e.refresh } }), t("UserAuthorization", { ref: "userAuthorization", on: { ok: e.refresh } }), t("DocumentAuthorization", { ref: "documentAuthorization", on: { ok: e.refresh } })], 1);
2032
- }, Le = [], Ie = /* @__PURE__ */ u(
2033
- Re,
2034
- Se,
2035
- Le,
2085
+ }, Ne = [], Be = /* @__PURE__ */ g(
2086
+ De,
2087
+ Pe,
2088
+ Ne,
2036
2089
  !1,
2037
2090
  null,
2038
2091
  "00f39bc6",
2039
2092
  null,
2040
2093
  null
2041
2094
  );
2042
- const p = Ie.exports;
2043
- p.install = function(s) {
2044
- s.component(p.name, p);
2095
+ const m = Be.exports;
2096
+ m.install = function(s) {
2097
+ s.component(m.name, m);
2045
2098
  };
2046
2099
  export {
2047
- p as G
2100
+ m as G
2048
2101
  };