gds-plus-design-vue 1.2.3 → 1.2.21

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