gds-plus-design-vue 1.2.3 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/lib/{chartbi.06e48153.js → chartbi.5eded588.js} +20 -20
  2. package/lib/{chartbi.cdd1e365.mjs → chartbi.c3bc6adb.mjs} +17 -9
  3. package/lib/gd-initial.js +16 -16
  4. package/lib/gd-initial.mjs +6428 -3567
  5. package/lib/main.00e2ba37.mjs +123 -0
  6. package/lib/main.55fab1ce.mjs +198 -0
  7. package/lib/main.7e1495ec.js +1 -0
  8. package/lib/{main.4aebe1c9.js → main.9c85b10c.js} +1 -1
  9. package/lib/main.a27e1e54.js +1 -0
  10. package/lib/{main.9801708f.js → main.a794f7cf.js} +1 -1
  11. package/lib/{main.a30b25d6.mjs → main.b25a9b4c.mjs} +6 -6
  12. package/lib/{main.eb4b260e.mjs → main.b4ad6d81.mjs} +3 -3
  13. package/lib/{messages.a1335b0f.mjs → messages.bc3bc0e8.mjs} +77 -77
  14. package/lib/{messages.30e41348.js → messages.fa3d97b5.js} +2 -2
  15. package/lib/style.css +2 -2
  16. package/lib/{system.account.20f9e450.mjs → system.account.868f96f9.mjs} +18 -18
  17. package/lib/{system.account.1ff630c9.js → system.account.e82580de.js} +1 -1
  18. package/lib/{system.config.532ab3b8.js → system.config.6aae9ea6.js} +1 -1
  19. package/lib/{system.config.c85c05e9.mjs → system.config.71615d2b.mjs} +2 -2
  20. package/lib/{system.datasource.f64a59de.mjs → system.datasource.009a1673.mjs} +2 -2
  21. package/lib/{system.datasource.272f1add.js → system.datasource.523ae242.js} +1 -1
  22. package/lib/{system.dict.a23e8cdf.js → system.dict.0111a3bc.js} +1 -1
  23. package/lib/{system.dict.565d69ca.mjs → system.dict.8f562e89.mjs} +2 -2
  24. package/lib/{system.duplicatechecking.f66790d1.js → system.duplicatechecking.1865e065.js} +1 -1
  25. package/lib/{system.duplicatechecking.268544dd.mjs → system.duplicatechecking.f517abed.mjs} +2 -2
  26. package/lib/{system.email.ada25702.mjs → system.email.4c484530.mjs} +2 -2
  27. package/lib/{system.email.00a93855.js → system.email.70351605.js} +1 -1
  28. package/lib/{system.fieldsecurity.d14384cc.mjs → system.fieldsecurity.9f9f73df.mjs} +1 -1
  29. package/lib/{system.fieldsecurity.ede73621.js → system.fieldsecurity.d11088e3.js} +1 -1
  30. package/lib/{system.file.aa567566.js → system.file.001a01bc.js} +1 -1
  31. package/lib/{system.file.a23b3c83.mjs → system.file.96b3ce1e.mjs} +2 -2
  32. package/lib/{system.log.8a9f4a4d.mjs → system.log.80feb1c4.mjs} +2 -2
  33. package/lib/{system.log.b3666991.js → system.log.f7afb251.js} +1 -1
  34. package/lib/{system.machine.fc392d7f.mjs → system.machine.52e8a4f3.mjs} +1 -1
  35. package/lib/{system.machine.7fa3e3d1.js → system.machine.6e46b7a3.js} +1 -1
  36. package/lib/system.notice.365ddd35.js +1 -0
  37. package/lib/{system.notice.6d0aa32c.mjs → system.notice.b4247147.mjs} +240 -224
  38. package/lib/{system.noticereceived.e5ef5883.js → system.noticereceived.5545acf8.js} +1 -1
  39. package/lib/{system.noticereceived.70963f1b.mjs → system.noticereceived.eef2cf6e.mjs} +5 -4
  40. package/lib/{system.onlineuser.c58fb6ce.mjs → system.onlineuser.de5f62bf.mjs} +2 -2
  41. package/lib/{system.onlineuser.99e4de37.js → system.onlineuser.fd9fdc66.js} +1 -1
  42. package/lib/{system.org.638db6d1.mjs → system.org.94393315.mjs} +3 -3
  43. package/lib/{system.org.56151be8.js → system.org.d22168d6.js} +1 -1
  44. package/lib/{system.permissions.fcd56f67.js → system.permissions.3c5c3573.js} +1 -1
  45. package/lib/{system.permissions.aa0cc0d6.mjs → system.permissions.ccbe352d.mjs} +3 -3
  46. package/lib/{system.plugin.b17efa53.js → system.plugin.5d47e679.js} +1 -1
  47. package/lib/{system.plugin.beb44900.mjs → system.plugin.8caa5d1f.mjs} +2 -2
  48. package/lib/{system.pos.e8d9c488.js → system.pos.caaef4fc.js} +1 -1
  49. package/lib/{system.pos.699e8dd6.mjs → system.pos.e4be69c4.mjs} +2 -2
  50. package/lib/{system.promptmanagement.2ce3e426.mjs → system.promptmanagement.1ad89863.mjs} +2 -2
  51. package/lib/{system.promptmanagement.109a07f5.js → system.promptmanagement.e73f64a2.js} +1 -1
  52. package/lib/{system.role.230b1445.mjs → system.role.0323ddd5.mjs} +220 -206
  53. package/lib/{system.role.f0d4082c.js → system.role.b5b55ddd.js} +1 -1
  54. package/lib/{system.sumberrules.38017ad1.js → system.sumberrules.2babdd81.js} +1 -1
  55. package/lib/{system.sumberrules.fa1aab86.mjs → system.sumberrules.42965c1e.mjs} +2 -2
  56. package/lib/{system.team.aeaede22.mjs → system.team.28168433.mjs} +80 -49
  57. package/lib/system.team.a3527834.js +1 -0
  58. package/lib/{system.teammembers.2e3309c3.mjs → system.teammembers.08f3ce38.mjs} +3 -3
  59. package/lib/{system.teammembers.29128f16.js → system.teammembers.4b11e49b.js} +1 -1
  60. package/lib/{system.timers.0ec63785.mjs → system.timers.040b9bce.mjs} +2 -2
  61. package/lib/{system.timers.b62568ad.js → system.timers.310b3710.js} +1 -1
  62. package/lib/{system.translation.887fa90d.js → system.translation.a4396166.js} +1 -1
  63. package/lib/{system.translation.e71455aa.mjs → system.translation.c0068d8f.mjs} +3 -3
  64. package/lib/{system.user.bed5f82a.js → system.user.20a5e7b4.js} +5 -5
  65. package/lib/{system.user.84227a85.mjs → system.user.84e77277.mjs} +53 -23
  66. package/lib/{system.useraffiliation.7ec0fcae.js → system.useraffiliation.307e3cd7.js} +1 -1
  67. package/lib/{system.useraffiliation.b3f03a33.mjs → system.useraffiliation.fb961d98.mjs} +3 -3
  68. package/lib/{system.webresource.f8b78dd0.js → system.webresource.0382b6b1.js} +1 -1
  69. package/lib/{system.webresource.e6cb9173.mjs → system.webresource.2d0ab7a6.mjs} +3 -3
  70. package/lib/{system.welcome.472f099b.js → system.welcome.67d20fa4.js} +1 -1
  71. package/lib/{system.welcome.120f4b50.mjs → system.welcome.aaac4a40.mjs} +1 -1
  72. package/locale/en_US.js +47 -8
  73. package/locale/id_ID.js +45 -7
  74. package/locale/vi_VN.js +45 -7
  75. package/locale/zh_CN.js +40 -2
  76. package/package.json +1 -1
  77. package/lib/main.05252737.mjs +0 -87
  78. package/lib/main.458dc0a0.js +0 -1
  79. package/lib/system.notice.5fb1485e.js +0 -1
  80. package/lib/system.team.3826e252.js +0 -1
@@ -1,8 +1,8 @@
1
- import { s as w, b as $, d as K, c as T, e as C, f as R, h as m, i as L, j as S, g as I, k as x, l as D, m as N, n as P } from "./system.fieldsecurity.d14384cc.mjs";
2
- import { m as h, n as u } from "./chartbi.cdd1e365.mjs";
3
- import { t as b } from "./messages.a1335b0f.mjs";
4
- import { a as v, e as B, f as F } from "./system.notice.6d0aa32c.mjs";
5
- import { S as M, b as A, d as O, p as E, e as z, f as y } from "./system.account.20f9e450.mjs";
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
6
  const j = {
7
7
  data() {
8
8
  return {
@@ -275,8 +275,8 @@ const q = {
275
275
  };
276
276
  var G = function() {
277
277
  var e = this, t = e._self._c;
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(n) {
279
- e.visible = n;
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
+ 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
281
  }, V = [], H = /* @__PURE__ */ u(
282
282
  q,
@@ -413,8 +413,8 @@ const J = {
413
413
  e[s.index][s.name] = [...s.checkedKeys].join(","), this.loadData = [...e], this.refresh(), this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F"));
414
414
  },
415
415
  openList(s, e, t) {
416
- const n = this.$refs.table.tableData, i = `${s.prop.replace("grantd", "")}custom`, a = n[t][i], l = a ? a.split(",").map(Number) : [];
417
- this.$refs.roleScope.open({ index: t, item: s, checkedKeys: l, data: e, name: i });
416
+ const i = this.$refs.table.tableData, n = `${s.prop.replace("grantd", "")}custom`, a = i[t][n], l = a ? a.split(",").map(Number) : [];
417
+ this.$refs.roleScope.open({ index: t, item: s, checkedKeys: l, data: e, name: n });
418
418
  },
419
419
  getUserControlData() {
420
420
  this.confirmLoading = !0, F({ roleId: this.record.id }).then((s) => {
@@ -450,16 +450,16 @@ const J = {
450
450
  };
451
451
  var Q = function() {
452
452
  var e = this, t = e._self._c;
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(n) {
454
- e.visible = n;
455
- }, 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: { "margin-top": "-12px" } }, [e.visible ? t("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) {
456
- return { key: n.prop, fn: function({ column: i, row: a, index: l }) {
457
- return [n.prop === "sysCodeGenName" ? t("div", [e._v(" " + e._s(e.$i18nt(`Dynamics.${a.transkey}`, a.syscodegenname)) + " ")]) : t("div", { staticClass: "grant-select" }, [t("el-select", { staticStyle: { flex: "1" }, attrs: { placeholder: e.$i18nt("gd.xlsxImport.mapFieldsTip", "\u8BF7\u9009\u62E9\u6620\u5C04\u5B57\u6BB5"), filterable: "", clearable: "", multiple: "" }, model: { value: a[n.prop], callback: function(r) {
458
- e.$set(a, n.prop, r);
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
+ e.visible = i;
455
+ }, 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: { "margin-top": "-12px" } }, [e.visible ? t("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(i) {
456
+ return { key: i.prop, fn: function({ column: n, row: a, index: l }) {
457
+ return [i.prop === "sysCodeGenName" ? t("div", [e._v(" " + e._s(e.$i18nt(`Dynamics.${a.transkey}`, a.syscodegenname)) + " ")]) : t("div", { staticClass: "grant-select" }, [t("el-select", { staticStyle: { flex: "1" }, attrs: { placeholder: e.$i18nt("gd.xlsxImport.mapFieldsTip", "\u8BF7\u9009\u62E9\u6620\u5C04\u5B57\u6BB5"), filterable: "", clearable: "", multiple: "" }, model: { value: a[i.prop], callback: function(r) {
458
+ e.$set(a, i.prop, r);
459
459
  }, expression: "row[item.prop]" } }, [e._l(e.getDictionary("data_scope_type"), function(r) {
460
460
  return [t("el-option", { attrs: { label: e.$i18nt(`Dynamics.${r.transkey}`, r.name), value: r.code } })];
461
- })], 2), a[n.prop].includes("5") ? t("el-button", { staticClass: "active-color flex-center", attrs: { type: "text" }, on: { click: function(r) {
462
- return e.openList(n, a, l);
461
+ })], 2), a[i.prop].includes("5") ? t("el-button", { staticClass: "active-color flex-center", attrs: { type: "text" }, on: { click: function(r) {
462
+ return e.openList(i, a, l);
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);
@@ -515,29 +515,29 @@ const Z = {
515
515
  return !!this.checkedKeys.filter((t) => t === s.id)[0];
516
516
  },
517
517
  fadeColor(s, e) {
518
- let t = parseInt(s.substring(1, 3), 16), n = parseInt(s.substring(3, 5), 16), i = parseInt(s.substring(5, 7), 16);
519
- return `rgba(${t},${n},${i},${e})`;
518
+ let t = parseInt(s.substring(1, 3), 16), i = parseInt(s.substring(3, 5), 16), n = parseInt(s.substring(5, 7), 16);
519
+ return `rgba(${t},${i},${n},${e})`;
520
520
  }
521
521
  }
522
522
  };
523
523
  var ee = function() {
524
524
  var e = this, t = e._self._c;
525
- return t("div", { style: { "--fadecolor": e.fadeColord } }, [e._l(e.record, function(n) {
526
- return [t("div", { staticClass: "list-item" }, [e.menusType === 0 ? t("i", { class: n.open ? "el-icon-caret-bottom" : "el-icon-caret-right", on: { click: function(i) {
527
- return e.open(n);
528
- } } }) : e._e(), e.menusType !== 2 ? t("div", { staticClass: "item-name" }, [t("el-checkbox", { attrs: { indeterminate: n.isIndeterminate }, on: { change: function(i) {
529
- return e.change(i, [n.id]);
530
- } }, model: { value: n.checked, callback: function(i) {
531
- e.$set(n, "checked", i);
532
- }, expression: "item.checked" } }, [n.iconClass ? t("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 ? t("el-button", { staticStyle: { "margin-left": "12px", padding: "5px 15px" }, attrs: { size: "mini" } }, [e.hasAll(n) ? t("span", { on: { click: function(i) {
533
- return e.checkedBtn(n, 1);
534
- } } }, [e._v(" " + e._s(e.$i18nt("gd.btn.selectAll", "\u5168\u9009")) + " ")]) : t("span", { on: { click: function(i) {
535
- return e.checkedBtn(n, 0);
536
- } } }, [e._v(" " + e._s(e.$i18nt("gd.btn.cancel", "\u53D6\u6D88")) + " ")])]) : e._e()], 1) : e._e(), t("div", { staticClass: "item-data" }, [n.children && n.children.length > 0 && n.children[0].menusType === 2 ? t("div", { staticClass: "item-data-list" }, [e._l(n.children, function(i) {
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) {
527
+ return e.open(i);
528
+ } } }) : e._e(), e.menusType !== 2 ? t("div", { staticClass: "item-name" }, [t("el-checkbox", { attrs: { indeterminate: i.isIndeterminate }, on: { change: function(n) {
529
+ return e.change(n, [i.id]);
530
+ } }, model: { value: i.checked, callback: function(n) {
531
+ e.$set(i, "checked", n);
532
+ }, expression: "item.checked" } }, [i.iconClass ? t("i", { staticClass: "gd-icons", class: i.iconClass, staticStyle: { "font-size": "15px" } }) : e._e(), e._v(" " + e._s(e.$i18nt(`Dynamics.${i.transkey}`, i.title)) + " ")]), i.children && i.children.length > 0 && e.menusType === 1 ? t("el-button", { staticStyle: { "margin-left": "12px", padding: "5px 15px" }, attrs: { size: "mini" } }, [e.hasAll(i) ? t("span", { on: { click: function(n) {
533
+ return e.checkedBtn(i, 1);
534
+ } } }, [e._v(" " + e._s(e.$i18nt("gd.btn.selectAll", "\u5168\u9009")) + " ")]) : t("span", { on: { click: function(n) {
535
+ return e.checkedBtn(i, 0);
536
+ } } }, [e._v(" " + e._s(e.$i18nt("gd.btn.cancel", "\u53D6\u6D88")) + " ")])]) : e._e()], 1) : e._e(), t("div", { staticClass: "item-data" }, [i.children && i.children.length > 0 && i.children[0].menusType === 2 ? t("div", { staticClass: "item-data-list" }, [e._l(i.children, function(n) {
537
537
  return [t("div", { staticClass: "item-name item-named", on: { click: function(a) {
538
- return e.change(!i.checked, [i.id]);
539
- } } }, [i.checked ? t("i", { staticClass: "gd-icons gd-icon-quanxuan active-color" }) : t("div", { staticClass: "item-named-kuang" }), t("div", { staticClass: "item-named-title", class: i.checked ? "active-color" : "" }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${i.transkey}`, i.title)) + " ")])])];
540
- })], 2) : e._e()])]), n.children && n.children.length > 0 && n.children[0].menusType !== 2 ? t("div", { staticClass: "list-more" }, [n.open ? t("LayoutItem", { attrs: { record: n.children, checkedKeys: e.checkedKeys }, on: { open: e.open, change: e.change, checkedBtn: e.checkedBtn } }) : e._e()], 1) : e._e()];
538
+ return e.change(!n.checked, [n.id]);
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
+ })], 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
542
  }, te = [], se = /* @__PURE__ */ u(
543
543
  Z,
@@ -550,7 +550,7 @@ var ee = function() {
550
550
  null
551
551
  );
552
552
  const _ = se.exports;
553
- const ne = {
553
+ const ie = {
554
554
  data() {
555
555
  return {
556
556
  buttons: [
@@ -594,22 +594,22 @@ const ne = {
594
594
  });
595
595
  },
596
596
  checkedItemBtn(s, e) {
597
- let t = [...this.checkedKeys].filter((n) => !s.menuBtnIds.includes(n));
597
+ let t = [...this.checkedKeys].filter((i) => !s.menuBtnIds.includes(i));
598
598
  e === 1 && (t = t.concat(s.menuBtnIds)), this.checkedKeys = [...t], this.handleItem();
599
599
  },
600
600
  openItem(s) {
601
601
  let e = [...this.menuTreeData];
602
- const t = (n) => (n = n.filter((i, a) => (i.id === s.id && (i.open = !i.open), i.children && i.children.length > 0 && (i.children = t(i.children)), !0)), n);
602
+ const t = (i) => (i = i.filter((n, a) => (n.id === s.id && (n.open = !n.open), n.children && n.children.length > 0 && (n.children = t(n.children)), !0)), i);
603
603
  t(e), this.menuTreeData = [...e];
604
604
  },
605
605
  changeItem(s, e, t = !0) {
606
- let n = [...this.checkedKeys];
606
+ let i = [...this.checkedKeys];
607
607
  this.checkedKeys.filter((o) => e.includes(o))[0];
608
- const i = this.list.filter((o) => e.includes(o.id))[0], a = t && i ? i.menuIds : [];
609
- if (s ? n = this.checkedKeys.concat(e).concat(a) : n = this.checkedKeys.filter((o) => !e.includes(o)).filter((o) => !a.includes(o)), this.checkedKeys = [...n], this.handleItem(), i.menusType === 2)
608
+ const n = this.list.filter((o) => e.includes(o.id))[0], a = t && n ? n.menuIds : [];
609
+ if (s ? i = this.checkedKeys.concat(e).concat(a) : i = this.checkedKeys.filter((o) => !e.includes(o)).filter((o) => !a.includes(o)), this.checkedKeys = [...i], this.handleItem(), n.menusType === 2)
610
610
  return;
611
611
  let l = [];
612
- this.findParent(this.menuTreeData, i, l);
612
+ this.findParent(this.menuTreeData, n, l);
613
613
  let r = [], d = [];
614
614
  l.forEach((o) => {
615
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);
@@ -621,9 +621,9 @@ const ne = {
621
621
  },
622
622
  handleItem() {
623
623
  let s = [...this.menuTreeData];
624
- const e = (t) => (t = t.filter((n, i) => {
625
- const a = this.checkedKeys.filter((l) => n.menuIds.includes(l));
626
- return this.checkedKeys.includes(n.id) ? (n.checked = !0, n.isIndeterminate = !1) : (n.checked = !1, n.isIndeterminate = a.length > 0 && n.menuIds.length > 0), n.children && n.children.length > 0 && (n.children = e(n.children)), !0;
624
+ const e = (t) => (t = t.filter((i, n) => {
625
+ const a = this.checkedKeys.filter((l) => i.menuIds.includes(l));
626
+ 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
627
  }), t);
628
628
  e(s), this.menuTreeData = [...s], this.allClose = this.checkedKeys.length === this.allCheckedKeys.length && this.allCheckedKeys.length > 0;
629
629
  },
@@ -633,26 +633,26 @@ const ne = {
633
633
  init() {
634
634
  this.confirmLoading = !0, Promise.all([this.getMenuTree(), this.expandedMenuKeys(), this.getMenuList()]).then(async (s) => {
635
635
  let e = [], t = [];
636
- const n = (r) => (r = r.filter((d, o) => {
636
+ const i = (r) => (r = r.filter((d, o) => {
637
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 = n(d.children)), !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
639
  }), r);
640
- let i = this.menuAll.filter((r) => !!this.systemMenuAll.filter((o) => o.id === r.id)[0]);
641
- await n(i), this.allCheckedKeys = e;
640
+ let n = this.menuAll.filter((r) => !!this.systemMenuAll.filter((o) => o.id === r.id)[0]);
641
+ await i(n), this.allCheckedKeys = e;
642
642
  let a = [];
643
643
  t.forEach((r, d) => {
644
644
  const o = this.getMenuIds(r);
645
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);
646
646
  }), this.list = t;
647
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 = [...i], this.handleItem(), this.confirmLoading = !1;
648
+ this.checkedKeys = l, this.allClose = this.checkedKeys.length === e.length && e.length > 0, this.menuTreeData = [...n], this.handleItem(), this.confirmLoading = !1;
649
649
  });
650
650
  },
651
651
  open(s, e) {
652
652
  this.record = s, this.appsId = e || window.$systemInfo.id, this.visible = !0, this.init();
653
653
  },
654
654
  getMenuTree() {
655
- return M({ roleId: this.record.id }).then((s) => (s.code === 200 && (this.menuAll = s.data), s));
655
+ return A({ roleId: this.record.id }).then((s) => (s.code === 200 && (this.menuAll = s.data), s));
656
656
  },
657
657
  expandedMenuKeys() {
658
658
  return $({
@@ -661,17 +661,17 @@ const ne = {
661
661
  },
662
662
  getMenuList() {
663
663
  let s = { AppsId: this.appsId };
664
- return A(s).then((e) => (e.code === 200 && (this.systemMenuAll = e.data), e));
664
+ return M(s).then((e) => (e.code === 200 && (this.systemMenuAll = e.data), e));
665
665
  },
666
666
  getMenuIds(s) {
667
667
  let e = [], t = [];
668
- const n = (i) => (i = i.filter((a, l) => (a.menusType !== 2 ? e.push(a.id) : t.push(a.id), a.children && a.children.length > 0 && (a.children = n(a.children)), !0)), i);
669
- return s.children && n(s.children), { arr: e, btn: t };
668
+ const i = (n) => (n = n.filter((a, l) => (a.menusType !== 2 ? e.push(a.id) : t.push(a.id), a.children && a.children.length > 0 && (a.children = i(a.children)), !0)), n);
669
+ return s.children && i(s.children), { arr: e, btn: t };
670
670
  },
671
671
  findParent(s, e, t) {
672
- for (let n of s)
673
- if (n.id === e.parentId || n.children && n.children.length > 0 && this.findParent(n.children, e, t))
674
- return t.unshift(n), !0;
672
+ for (let i of s)
673
+ if (i.id === e.parentId || i.children && i.children.length > 0 && this.findParent(i.children, e, t))
674
+ return t.unshift(i), !0;
675
675
  return !1;
676
676
  },
677
677
  closed() {
@@ -686,16 +686,16 @@ const ne = {
686
686
  }
687
687
  }
688
688
  };
689
- var ie = function() {
689
+ var ne = function() {
690
690
  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(n) {
692
- e.visible = n;
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(n) {
694
- e.allClose = n;
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) {
692
+ 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) {
694
+ e.allClose = i;
695
695
  }, expression: "allClose" } }, [e._v(" " + e._s(e.$i18nt("gd.btn.selectAll", "\u5168\u9009")) + " ")])], 1)])], 2)], 1);
696
696
  }, ae = [], re = /* @__PURE__ */ u(
697
- ne,
698
697
  ie,
698
+ ne,
699
699
  ae,
700
700
  !1,
701
701
  null,
@@ -737,7 +737,7 @@ const oe = {
737
737
  value: "value"
738
738
  },
739
739
  defaultExpandedKeys: "",
740
- loadData: (s) => O({ roleId: this.openSelecteKeys[0] }).then((e) => (this.getRowId(e.data), { pageNo: 1, pageSize: 1e3, totalRows: 0, rows: e.data })),
740
+ loadData: (s) => E({ roleId: this.openSelecteKeys[0] }).then((e) => (this.getRowId(e.data), { pageNo: 1, pageSize: 1e3, totalRows: 0, rows: e.data })),
741
741
  disableBtn: [],
742
742
  fileList: [],
743
743
  needLoad: !1,
@@ -984,7 +984,7 @@ const oe = {
984
984
  getOrgTree() {
985
985
  v({}).then((s) => {
986
986
  if (s.code === 200) {
987
- const e = (t) => (t = t.filter((n, i) => (n.value = String(n.value), n.children && n.children.length > 0 && (n.children = e(n.children)), !0)), t);
987
+ 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
988
  this.orgTree = e(s.data);
989
989
  }
990
990
  this.loading = !1;
@@ -1019,7 +1019,7 @@ const oe = {
1019
1019
  this.$refs.engineSearch.closed();
1020
1020
  return;
1021
1021
  }
1022
- this.$refs.engineSearch.confirmLoading = !0, E({
1022
+ this.$refs.engineSearch.confirmLoading = !0, O({
1023
1023
  roleId: this.openSelecteKeys[0],
1024
1024
  userIdList: s.data
1025
1025
  }).then((e) => {
@@ -1052,16 +1052,16 @@ const oe = {
1052
1052
  customClass: "custom-alert",
1053
1053
  callback: () => {
1054
1054
  },
1055
- beforeClose: (e, t, n) => {
1055
+ beforeClose: (e, t, i) => {
1056
1056
  if (e !== "confirm") {
1057
- n();
1057
+ i();
1058
1058
  return;
1059
1059
  }
1060
1060
  t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, z({
1061
1061
  roleId: s.openSelecteKeys[0],
1062
1062
  userIdList: s.selectedRowKeys
1063
- }).then((i) => {
1064
- i.success ? (s.$message.success(s.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")), s.disabledRowId = s.disabledRowId.filter((a) => !s.selectedRows.filter((r) => r.id === a)[0]), t.confirmButtonLoading = !1, t.cancelButtonLoading = !1, t.showCancelButton = !0, n(), s.refresh()) : s.$message.error(s.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + i.message);
1063
+ }).then((n) => {
1064
+ n.success ? (s.$message.success(s.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")), s.disabledRowId = s.disabledRowId.filter((a) => !s.selectedRows.filter((r) => r.id === a)[0]), t.confirmButtonLoading = !1, t.cancelButtonLoading = !1, t.showCancelButton = !0, i(), s.refresh()) : s.$message.error(s.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + n.message);
1065
1065
  });
1066
1066
  }
1067
1067
  });
@@ -1074,16 +1074,16 @@ var de = function() {
1074
1074
  var e = this, t = e._self._c;
1075
1075
  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
1076
  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)])];
1077
- }, proxy: !0 }, { key: "name", fn: function({ column: n, row: i }) {
1078
- return [t("span", { staticClass: "active-color", staticStyle: { cursor: "pointer" } }, [e._v(" " + e._s(i.name) + " ")])];
1079
- } }, { key: "nickname", fn: function({ column: n, row: i }) {
1080
- return [t("span", { staticStyle: { cursor: "pointer" } }, [e._v(" " + e._s(i.nickname) + " ")])];
1081
- } }, { key: "orgname", fn: function({ column: n, row: i }) {
1082
- return [t("span", { staticStyle: { cursor: "pointer" } }, [e._v(" " + e._s(i.orgname) + " ")])];
1083
- } }, { key: "sex", fn: function({ column: n, row: i }) {
1084
- return [t("span", [e._v(" " + e._s(e._f("dictType")("gender", i.gender)) + " ")])];
1085
- } }, { key: "status", fn: function({ column: n, row: i }) {
1086
- return [t("span", [e._v(" " + e._s(e._f("dictType")("state_code", i.statecodes)) + " ")])];
1077
+ }, proxy: !0 }, { key: "name", fn: function({ column: i, row: n }) {
1078
+ return [t("span", { staticClass: "active-color", staticStyle: { cursor: "pointer" } }, [e._v(" " + e._s(n.name) + " ")])];
1079
+ } }, { key: "nickname", fn: function({ column: i, row: n }) {
1080
+ return [t("span", { staticStyle: { cursor: "pointer" } }, [e._v(" " + e._s(n.nickname) + " ")])];
1081
+ } }, { key: "orgname", fn: function({ column: i, row: n }) {
1082
+ return [t("span", { staticStyle: { cursor: "pointer" } }, [e._v(" " + e._s(n.orgname) + " ")])];
1083
+ } }, { key: "sex", fn: function({ column: i, row: n }) {
1084
+ return [t("span", [e._v(" " + e._s(e._f("dictType")("gender", n.gender)) + " ")])];
1085
+ } }, { key: "status", fn: function({ column: i, row: n }) {
1086
+ return [t("span", [e._v(" " + e._s(e._f("dictType")("state_code", n.statecodes)) + " ")])];
1087
1087
  } }]) }), t("gd-search", { ref: "engineSearch", attrs: { appendToBody: !0, disabledRowId: e.disabledRowId }, on: { lookupSeled: e.lookupSeled } })], 1)]);
1088
1088
  }, ce = [], he = /* @__PURE__ */ u(
1089
1089
  oe,
@@ -1143,8 +1143,8 @@ const ue = {
1143
1143
  };
1144
1144
  var ge = function() {
1145
1145
  var e = this, t = e._self._c;
1146
- 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(n) {
1147
- e.visible = n;
1146
+ 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
+ e.visible = i;
1148
1148
  }, 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
1149
  }, fe = [], pe = /* @__PURE__ */ u(
1150
1150
  ue,
@@ -1280,8 +1280,6 @@ const ye = {
1280
1280
  },
1281
1281
  methods: {
1282
1282
  querySearch(s, e) {
1283
- var t = this.restaurants, n = s ? t.filter(this.createFilter(s)) : t;
1284
- e(n);
1285
1283
  },
1286
1284
  createFilter(s) {
1287
1285
  return (e) => e.name.toLowerCase().indexOf(s.toLowerCase()) === 0;
@@ -1308,27 +1306,27 @@ const ye = {
1308
1306
  const l = t[a.parentid];
1309
1307
  l ? l.children.some((r) => r.id === a.id) || l.children.push(t[a.id]) : t[e.id].children.push(t[a.id]);
1310
1308
  });
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)));
1309
+ function i(a) {
1310
+ a.children && a.children.length > 0 && (a.children.sort((l, r) => l.name.localeCompare(r.name)), a.children.forEach((l) => i(l)));
1313
1311
  }
1314
- const i = {
1312
+ const n = {
1315
1313
  name: e.name,
1316
1314
  id: e.id,
1317
1315
  children: t[e.id].children
1318
1316
  };
1319
- return n(i), [i];
1317
+ return i(n), [n];
1320
1318
  },
1321
1319
  handleSubmit() {
1322
1320
  this.id != "" ? this.edit() : this.add();
1323
1321
  },
1324
1322
  add() {
1325
1323
  const e = this.currentPermissions.map((t) => {
1326
- const n = t.list.reduce((i, a) => (i[a.code] = a.value, i), {});
1324
+ const i = t.list.reduce((n, a) => (n[a.code] = a.value, n), {});
1327
1325
  return {
1328
1326
  ...t,
1329
- ...n
1327
+ ...i
1330
1328
  };
1331
- }).map(({ list: t, ...n }) => n);
1329
+ }).map(({ list: t, ...i }) => i);
1332
1330
  this.confirmLoading = !0, K(e).then((t) => {
1333
1331
  t.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok"), this.closed()) : this.$message.error(
1334
1332
  this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + t.message
@@ -1337,12 +1335,12 @@ const ye = {
1337
1335
  },
1338
1336
  edit() {
1339
1337
  const e = this.currentPermissions.map((t) => {
1340
- const n = t.list.reduce((i, a) => (i[a.code] = a.value, i), {});
1338
+ const i = t.list.reduce((n, a) => (n[a.code] = a.value, n), {});
1341
1339
  return {
1342
1340
  ...t,
1343
- ...n
1341
+ ...i
1344
1342
  };
1345
- }).map(({ list: t, ...n }) => n);
1343
+ }).map(({ list: t, ...i }) => i);
1346
1344
  console.log(e), this.confirmLoading = !0, T(e).then((t) => {
1347
1345
  t.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok"), this.closed()) : this.$message.error(
1348
1346
  this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + t.message
@@ -1356,36 +1354,36 @@ const ye = {
1356
1354
  C({ roleId: s.id }).then((e) => {
1357
1355
  if (e.code == 200 && (this.currentPermissions = [], this.$refs.elTreeRef && this.$refs.elTreeRef.setCheckedKeys([]), e.data.length > 0)) {
1358
1356
  this.id = e.data[0].id, this.currentPermissions = [];
1359
- const t = e.data.map((i) => {
1357
+ const t = e.data.map((n) => {
1360
1358
  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 }
1359
+ { name: "\u67E5\u770B", code: "readmetadata", value: n.readmetadata },
1360
+ { name: "\u91CD\u547D\u540D", code: "rename", value: n.rename },
1361
+ { name: "\u5220\u9664", code: "delete", value: n.delete },
1362
+ { name: "\u7BA1\u7406\u6743\u9650", code: "manageprem", value: n.manageprem },
1363
+ { name: "\u79FB\u52A8", code: "move", value: n.move },
1364
+ { name: "\u521B\u5EFA\u6587\u4EF6", code: "createfile", value: n.createfile },
1365
+ { name: "\u521B\u5EFA\u5B50\u6587\u4EF6\u5939", code: "createsubfolder", value: n.createsubfolder },
1366
+ { name: "\u4E0B\u8F7D", code: "download", value: n.download }
1369
1367
  ];
1370
1368
  return {
1371
- id: i.id,
1372
- name: i.name,
1369
+ id: n.id,
1370
+ name: n.name,
1373
1371
  ischeck: !1,
1374
- sysdocobjectid: i.sysdocobjectid,
1375
- sysroleid: i.sysroleid,
1372
+ sysdocobjectid: n.sysdocobjectid,
1373
+ sysroleid: n.sysroleid,
1376
1374
  list: a
1377
1375
  };
1378
1376
  });
1379
1377
  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);
1378
+ const i = t.map((n) => n.sysdocobjectid);
1379
+ this.$refs.elTreeRef && this.$refs.elTreeRef.setCheckedKeys(i);
1382
1380
  }
1383
1381
  });
1384
1382
  },
1385
1383
  getallTree() {
1386
1384
  R().then((s) => {
1387
1385
  if (s.code == 200) {
1388
- this.restaurants = s.data;
1386
+ this.restaurants = JSON.parse(JSON.stringify(s.data));
1389
1387
  const e = this.buildTree(JSON.parse(JSON.stringify(s.data)));
1390
1388
  this.folderTree = e, this.selectedPath = "/" + s.data[0].name;
1391
1389
  }
@@ -1423,16 +1421,16 @@ const ye = {
1423
1421
  customClass: "custom-alert",
1424
1422
  callback: () => {
1425
1423
  },
1426
- beforeClose: (t, n, i) => {
1424
+ beforeClose: (t, i, n) => {
1427
1425
  if (t !== "confirm") {
1428
- i();
1426
+ n();
1429
1427
  return;
1430
1428
  }
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({
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({
1432
1430
  ids: s.id
1433
1431
  }).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) => {
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) => {
1436
1434
  Array.isArray(a.list) && a.list.forEach((l) => {
1437
1435
  l.value = "";
1438
1436
  });
@@ -1448,12 +1446,20 @@ const ye = {
1448
1446
  console.log(s);
1449
1447
  },
1450
1448
  handleDirectoryCheck(s, e) {
1451
- const t = s.id, n = JSON.parse(JSON.stringify(this.currentPermissions)).filter((i) => i.sysdocobjectid === s.id);
1449
+ let t = s.name;
1450
+ if (e) {
1451
+ const a = this.restaurants.find((r) => r.id === s.id);
1452
+ let l = a ? a.parentid : "";
1453
+ (l != "" || l == 0) && this.restaurants.forEach((r) => {
1454
+ r.id == l && (t = r.name + "/" + s.name);
1455
+ });
1456
+ }
1457
+ const i = s.id, n = JSON.parse(JSON.stringify(this.currentPermissions)).filter((a) => a.sysdocobjectid === s.id);
1452
1458
  if (e && n.length === 0) {
1453
- const i = {
1454
- sysdocobjectid: t,
1459
+ const a = {
1460
+ sysdocobjectid: i,
1455
1461
  sysroleid: this.record.id,
1456
- name: s.name,
1462
+ name: t,
1457
1463
  ischeck: !0,
1458
1464
  id: 0,
1459
1465
  list: [
@@ -1499,15 +1505,15 @@ const ye = {
1499
1505
  }
1500
1506
  ]
1501
1507
  };
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 = "";
1508
+ this.currentPermissions.push(a), this.currentPermissions.forEach((l) => {
1509
+ l.ischeck = !1, l.sysdocobjectid === i && (l.ischeck = !0);
1510
+ }), this.cardList.forEach((l) => {
1511
+ Array.isArray(l.list) && l.list.forEach((r) => {
1512
+ r.value = "";
1507
1513
  });
1508
1514
  });
1509
1515
  } else if (!e && n.length > 0 && this.currentPermissions.length > 0) {
1510
- let i = this;
1516
+ let a = this;
1511
1517
  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
1518
  confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
1513
1519
  cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
@@ -1520,20 +1526,20 @@ const ye = {
1520
1526
  customClass: "custom-alert",
1521
1527
  callback: () => {
1522
1528
  },
1523
- beforeClose: (a, l, r) => {
1524
- if (a !== "confirm") {
1525
- r(), setTimeout(() => {
1529
+ beforeClose: (l, r, d) => {
1530
+ if (l !== "confirm") {
1531
+ d(), setTimeout(() => {
1526
1532
  this.$nextTick(() => {
1527
1533
  this.$refs.elTreeRef.setChecked(s.id, !0);
1528
1534
  });
1529
1535
  });
1530
1536
  return;
1531
1537
  }
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({
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({
1533
1539
  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);
1540
+ }).then((o) => {
1541
+ 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);
1537
1543
  }
1538
1544
  });
1539
1545
  }
@@ -1546,17 +1552,21 @@ const ye = {
1546
1552
  this.currentPermissions[this.currentPermissions.length - 1].list.forEach((t) => {
1547
1553
  e[t.name] = t.value;
1548
1554
  }), 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());
1555
+ Array.isArray(t.list) && t.list.forEach((i) => {
1556
+ i.value = "";
1557
+ });
1558
+ }), this.cardList.forEach((t) => {
1559
+ Array.isArray(t.list) && t.list.forEach((i) => {
1560
+ const n = e[i.name];
1561
+ n !== void 0 && n !== "" && n !== null && (i.value = n.toString());
1552
1562
  });
1553
1563
  });
1554
1564
  },
1555
1565
  handleNodeClick(s, e) {
1556
1566
  this.objectId = s.id;
1557
- let t = [], n = e;
1558
- for (; n; )
1559
- t.unshift(n.data.name), n = n.parent;
1567
+ let t = [], i = e;
1568
+ for (; i; )
1569
+ t.unshift(i.data.name), i = i.parent;
1560
1570
  this.tempSelectedPath = "" + t.join("/");
1561
1571
  },
1562
1572
  handlePermissionClick(s) {
@@ -1567,9 +1577,13 @@ const ye = {
1567
1577
  s.list.forEach((t) => {
1568
1578
  e[t.name] = t.value;
1569
1579
  }), 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());
1580
+ Array.isArray(t.list) && t.list.forEach((i) => {
1581
+ i.value = "";
1582
+ });
1583
+ }), this.cardList.forEach((t) => {
1584
+ Array.isArray(t.list) && t.list.forEach((i) => {
1585
+ const n = e[i.name];
1586
+ n != null && (i.value = n.toString());
1573
1587
  });
1574
1588
  });
1575
1589
  },
@@ -1579,10 +1593,10 @@ const ye = {
1579
1593
  handleReadMetaDataChange(s, e) {
1580
1594
  s.target.tagName === "INPUT" && s.target.type === "radio" && (e.value === "" ? e.value = s.target.value : e.value = null, setTimeout(() => {
1581
1595
  if (this.currentPermissions.length > 0) {
1582
- const t = this.currentPermissions.find((n) => n.ischeck);
1596
+ const t = this.currentPermissions.find((i) => i.ischeck);
1583
1597
  if (t) {
1584
- const n = t.list.find((i) => i.name === e.name);
1585
- n && (n.value = e.value);
1598
+ const i = t.list.find((n) => n.name === e.name);
1599
+ i && (i.value = e.value);
1586
1600
  }
1587
1601
  }
1588
1602
  }, 10));
@@ -1591,18 +1605,18 @@ const ye = {
1591
1605
  };
1592
1606
  var be = function() {
1593
1607
  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);
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) {
1609
+ 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) {
1611
+ return t("div", { key: i.sysdocobjectid, staticClass: "permission-tags-item", class: { checked: i.ischeck }, on: { click: function(n) {
1612
+ 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);
1615
+ }), 0), t("i", { staticClass: "el-icon-close del-btn", on: { click: function(n) {
1616
+ return e.delList(i);
1603
1617
  } } })]);
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) {
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) {
1619
+ 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) {
1606
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) {
1607
1621
  return e.handleReadMetaDataChange(r, a);
1608
1622
  } }, model: { value: a.value, callback: function(r) {
@@ -1616,7 +1630,7 @@ var be = function() {
1616
1630
  ve,
1617
1631
  !1,
1618
1632
  null,
1619
- "5fe0b6ad",
1633
+ "daca70b3",
1620
1634
  null,
1621
1635
  null
1622
1636
  );
@@ -1657,11 +1671,11 @@ const we = {
1657
1671
  components: { LayoutItem: _ },
1658
1672
  methods: {
1659
1673
  async handleSubmit() {
1660
- const s = (e) => (e = e.filter((t, n) => {
1661
- const i = this.checkedKeys.filter((a) => t.id === a)[0];
1662
- return t.type = i ? 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;
1674
+ const s = (e) => (e = e.filter((t, i) => {
1675
+ const n = this.checkedKeys.filter((a) => t.id === a)[0];
1676
+ 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;
1663
1677
  }), e);
1664
- this.confirmLoading = !0, await s(this.menuAll), L({
1678
+ this.confirmLoading = !0, await s(this.menuAll), S({
1665
1679
  roleid: this.record.id,
1666
1680
  list: this.menuAll
1667
1681
  }).then((e) => {
@@ -1671,22 +1685,22 @@ const we = {
1671
1685
  });
1672
1686
  },
1673
1687
  checkedItemBtn(s, e) {
1674
- let t = [...this.checkedKeys].filter((n) => !s.menuBtnIds.includes(n));
1688
+ let t = [...this.checkedKeys].filter((i) => !s.menuBtnIds.includes(i));
1675
1689
  e === 1 && (t = t.concat(s.menuBtnIds)), this.checkedKeys = [...t], this.handleItem();
1676
1690
  },
1677
1691
  openItem(s) {
1678
1692
  let e = [...this.menuTreeData];
1679
- const t = (n) => (n = n.filter((i, a) => (i.id === s.id && (i.open = !i.open), i.children && i.children.length > 0 && (i.children = t(i.children)), !0)), n);
1693
+ const t = (i) => (i = i.filter((n, a) => (n.id === s.id && (n.open = !n.open), n.children && n.children.length > 0 && (n.children = t(n.children)), !0)), i);
1680
1694
  t(e), this.menuTreeData = [...e];
1681
1695
  },
1682
1696
  changeItem(s, e, t = !0) {
1683
- let n = [...this.checkedKeys];
1697
+ let i = [...this.checkedKeys];
1684
1698
  this.checkedKeys.filter((o) => e.includes(o))[0];
1685
- const i = this.list.filter((o) => e.includes(o.id))[0], a = t && i ? i.menuIds : [];
1686
- if (s ? n = this.checkedKeys.concat(e).concat(a) : n = this.checkedKeys.filter((o) => !e.includes(o)).filter((o) => !a.includes(o)), this.checkedKeys = [...n], this.handleItem(), i.menusType === 2)
1699
+ const n = this.list.filter((o) => e.includes(o.id))[0], a = t && n ? n.menuIds : [];
1700
+ if (s ? i = this.checkedKeys.concat(e).concat(a) : i = this.checkedKeys.filter((o) => !e.includes(o)).filter((o) => !a.includes(o)), this.checkedKeys = [...i], this.handleItem(), n.menusType === 2)
1687
1701
  return;
1688
1702
  let l = [];
1689
- this.findParent(this.menuTreeData, i, l);
1703
+ this.findParent(this.menuTreeData, n, l);
1690
1704
  let r = [], d = [];
1691
1705
  l.forEach((o) => {
1692
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);
@@ -1698,9 +1712,9 @@ const we = {
1698
1712
  },
1699
1713
  handleItem() {
1700
1714
  let s = [...this.menuTreeData];
1701
- const e = (t) => (t = t.filter((n, i) => {
1702
- const a = this.checkedKeys.filter((l) => n.menuIds.includes(l));
1703
- return this.checkedKeys.includes(n.id) ? (n.checked = !0, n.isIndeterminate = !1) : (n.checked = !1, n.isIndeterminate = a.length > 0 && n.menuIds.length > 0), n.children && n.children.length > 0 && (n.children = e(n.children)), !0;
1715
+ const e = (t) => (t = t.filter((i, n) => {
1716
+ const a = this.checkedKeys.filter((l) => i.menuIds.includes(l));
1717
+ 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;
1704
1718
  }), t);
1705
1719
  e(s), this.menuTreeData = [...s], this.allClose = this.checkedKeys.length === this.allCheckedKeys.length && this.allCheckedKeys.length > 0;
1706
1720
  },
@@ -1711,43 +1725,43 @@ const we = {
1711
1725
  this.confirmLoading = !0, Promise.all([this.getList()]).then(async (s) => {
1712
1726
  this.confirmLoading = !1;
1713
1727
  let e = JSON.parse(JSON.stringify(this.menuTreeDatad)), t = [];
1714
- const n = (a) => (a = a.filter((l, r) => {
1728
+ const i = (a) => (a = a.filter((l, r) => {
1715
1729
  const d = this.checkedKeys.filter((o) => l.id === o)[0];
1716
- 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 = n(l.children)), !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;
1717
1731
  }), a);
1718
- await n(e);
1719
- let i = [];
1732
+ await i(e);
1733
+ let n = [];
1720
1734
  t.forEach((a, l) => {
1721
1735
  const r = this.getMenuIds(a);
1722
- 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 && i.push(a.id);
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);
1723
1737
  }), 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");
1724
1738
  });
1725
1739
  },
1726
1740
  getList() {
1727
- return S({ roleId: this.record.id }).then((s) => {
1741
+ return L({ roleId: this.record.id }).then((s) => {
1728
1742
  if (s.code === 200) {
1729
1743
  let e = [], t = [];
1730
- const n = (a, l) => (a = a.filter((r, d) => {
1744
+ const i = (a, l) => (a = a.filter((r, d) => {
1731
1745
  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);
1732
1746
  let o = [];
1733
- 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 = n(o, r.id)), !0;
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;
1734
1748
  }), a);
1735
1749
  this.menuAll = s.data.list;
1736
- let i = JSON.parse(JSON.stringify(this.menuAll));
1737
- n(i, 0), this.checkedKeys = e, this.allCheckedKeys = t, this.menuTreeDatad = [...i];
1750
+ let n = JSON.parse(JSON.stringify(this.menuAll));
1751
+ i(n, 0), this.checkedKeys = e, this.allCheckedKeys = t, this.menuTreeDatad = [...n];
1738
1752
  }
1739
1753
  return s;
1740
1754
  });
1741
1755
  },
1742
1756
  getMenuIds(s) {
1743
1757
  let e = [], t = [];
1744
- const n = (i) => (i = i.filter((a, l) => (a.menusType !== 2 ? e.push(a.id) : t.push(a.id), a.children && a.children.length > 0 && (a.children = n(a.children)), !0)), i);
1745
- return s.children && n(s.children), { arr: e, btn: t };
1758
+ const i = (n) => (n = n.filter((a, l) => (a.menusType !== 2 ? e.push(a.id) : t.push(a.id), a.children && a.children.length > 0 && (a.children = i(a.children)), !0)), n);
1759
+ return s.children && i(s.children), { arr: e, btn: t };
1746
1760
  },
1747
1761
  findParent(s, e, t) {
1748
- for (let n of s)
1749
- if (n.id === e.parentId || n.children && n.children.length > 0 && this.findParent(n.children, e, t))
1750
- return t.unshift(n), !0;
1762
+ for (let i of s)
1763
+ if (i.id === e.parentId || i.children && i.children.length > 0 && this.findParent(i.children, e, t))
1764
+ return t.unshift(i), !0;
1751
1765
  return !1;
1752
1766
  },
1753
1767
  open(s) {
@@ -1767,10 +1781,10 @@ const we = {
1767
1781
  };
1768
1782
  var $e = function() {
1769
1783
  var e = this, t = e._self._c;
1770
- 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(n) {
1771
- e.visible = n;
1772
- }, 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(n) {
1773
- e.allClose = n;
1784
+ 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
+ e.visible = i;
1786
+ }, 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
+ e.allClose = i;
1774
1788
  }, expression: "allClose" } }, [e._v(" " + e._s(e.$i18nt("gd.btn.selectAll", "\u5168\u9009")) + " ")])], 1)])], 2)], 1);
1775
1789
  }, Ke = [], Te = /* @__PURE__ */ u(
1776
1790
  we,
@@ -1948,12 +1962,12 @@ const Re = {
1948
1962
  t();
1949
1963
  return;
1950
1964
  }
1951
- let n = [];
1952
- this.selectedRows.forEach((i) => {
1953
- let a = x(i).then((l) => l);
1954
- n.push(a);
1955
- }), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(n).then((i) => {
1956
- const a = i.filter((l) => !l.success);
1965
+ let i = [];
1966
+ this.selectedRows.forEach((n) => {
1967
+ let a = x(n).then((l) => l);
1968
+ i.push(a);
1969
+ }), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(i).then((n) => {
1970
+ const a = n.filter((l) => !l.success);
1957
1971
  a.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") + a[0].message), t(), this.refresh(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
1958
1972
  });
1959
1973
  },
@@ -1982,12 +1996,12 @@ const Re = {
1982
1996
  }
1983
1997
  this.transKey = "gd.https.copy", this.$refs.editForm.open(Object.assign({ ...this.selectedRows[0] }, { roleId: this.selectedRows[0].id }));
1984
1998
  },
1985
- sbumit({ data: s, record: e, btn: t }, n, i) {
1999
+ sbumit({ data: s, record: e, btn: t }, i, n) {
1986
2000
  this.formLoading = !0;
1987
2001
  let a = e ? this.transKey === "gd.https.copy" ? D : N : P;
1988
2002
  const l = this.transKey !== "gd.https.edit" ? Object.assign(s, { sysappsid: window.$systemInfo.id }) : s;
1989
2003
  a(l).then((r) => {
1990
- r.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") + r.message), this.formLoading = !1;
2004
+ 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;
1991
2005
  });
1992
2006
  },
1993
2007
  onSelectChange(s, e) {
@@ -2002,23 +2016,23 @@ const Re = {
2002
2016
  this.getAppId(), this.getConfigInfo();
2003
2017
  }
2004
2018
  };
2005
- var Le = function() {
2019
+ var Se = function() {
2006
2020
  var e = this, t = e._self._c;
2007
- 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: n, row: i }) {
2008
- return [t("gd-tooltip", { attrs: { rowKey: "name", row: i, highlight: "" }, on: { click: e.editForm } })];
2021
+ 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
+ return [t("gd-tooltip", { attrs: { rowKey: "name", row: n, highlight: "" }, on: { click: e.editForm } })];
2009
2023
  } }, { key: "operator", fn: function() {
2010
- return [t("div", { staticClass: "gd-table-operator" }, [t("div", { staticClass: "gd-table-operatorl" }, [t("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.user.roleName", "\u89D2\u8272\u540D"), clearable: "" }, nativeOn: { keyup: function(n) {
2011
- return !n.type.indexOf("key") && e._k(n.keyCode, "enter", 13, n.key, "Enter") ? null : e.refresh.apply(null, arguments);
2012
- } }, model: { value: e.queryParam.name, callback: function(n) {
2013
- e.$set(e.queryParam, "name", n);
2024
+ return [t("div", { staticClass: "gd-table-operator" }, [t("div", { staticClass: "gd-table-operatorl" }, [t("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.user.roleName", "\u89D2\u8272\u540D"), clearable: "" }, nativeOn: { keyup: function(i) {
2025
+ return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.refresh.apply(null, arguments);
2026
+ } }, model: { value: e.queryParam.name, callback: function(i) {
2027
+ e.$set(e.queryParam, "name", i);
2014
2028
  }, expression: "queryParam.name" } }), t("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [t("i", { staticClass: "el-input__icon el-icon-search" })])], 1), t("div", { staticClass: "gd-table-operatorr" }, [e.openMode === "page" ? t("gd-btn-list", { attrs: { sysViewButtons: e.getTableButtons }, on: { functionName: e.doEvent } }) : e._e()], 1)])];
2015
- }, proxy: !0 }, { key: "filtering", fn: function({ colse: n, visible: i }) {
2016
- return [t("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: n, visible: i }, on: { save: e.saveQueries } })];
2029
+ }, proxy: !0 }, { key: "filtering", fn: function({ colse: i, visible: n }) {
2030
+ return [t("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: i, visible: n }, on: { save: e.saveQueries } })];
2017
2031
  } }]) })], 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);
2018
- }, Se = [], Ie = /* @__PURE__ */ u(
2032
+ }, Le = [], Ie = /* @__PURE__ */ u(
2019
2033
  Re,
2020
- Le,
2021
2034
  Se,
2035
+ Le,
2022
2036
  !1,
2023
2037
  null,
2024
2038
  "00f39bc6",