@jeecg/online 3.7.0-beta → 3.7.1-RC

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 (95) hide show
  1. package/{AiModal-fe3988fb.mjs → AiModal-6de335e3.mjs} +1 -1
  2. package/AuthButtonConfig-89763932.mjs +154 -0
  3. package/{AuthButtonTree-589395ed.mjs → AuthButtonTree-2d87d0b3.mjs} +6 -5
  4. package/{AuthDataConfig-7bb0cd85.mjs → AuthDataConfig-5c3a8e6b.mjs} +11 -10
  5. package/{AuthDataTree-6e3bb86f.mjs → AuthDataTree-dd7a1240.mjs} +6 -6
  6. package/AuthFieldConfig-9f6fa06c.mjs +245 -0
  7. package/{AuthFieldTree-b7cd091e.mjs → AuthFieldTree-e326fc38.mjs} +2 -2
  8. package/{AuthManagerDrawer-5e2ed5ce.mjs → AuthManagerDrawer-76f15e8d.mjs} +9 -8
  9. package/{AuthSetterModal-6f74449c.mjs → AuthSetterModal-f5d2e87f.mjs} +12 -11
  10. package/{CgformCopyList-8077ccc6.mjs → CgformCopyList-365b3e8f.mjs} +43 -42
  11. package/CgformModal-21c5c387.mjs +671 -0
  12. package/{CgreportModal-5a23d089.mjs → CgreportModal-edefa8e3.mjs} +15 -14
  13. package/{CheckDictTable-b5cb0e2b.mjs → CheckDictTable-1bc8322d.mjs} +36 -33
  14. package/{CodeFileListModal-0e26b7e0.mjs → CodeFileListModal-24601898.mjs} +5 -4
  15. package/{CodeFileViewModal-9d4a5b5f.mjs → CodeFileViewModal-2fe911f4.mjs} +89 -84
  16. package/CodeGeneratorModal-f09fe903.mjs +282 -0
  17. package/{CustomButtonList-37639061.mjs → CustomButtonList-f07bc695.mjs} +108 -92
  18. package/{DBAttributeTable-95dc66c1.mjs → DBAttributeTable-285d40db.mjs} +79 -71
  19. package/DbToOnlineModal-5dcb67c3.mjs +169 -0
  20. package/{DetailForm-4aa2570b.mjs → DetailForm-deecbf3d.mjs} +50 -49
  21. package/{EnhanceJavaModal-98934198.mjs → EnhanceJavaModal-45c66cd5.mjs} +2 -2
  22. package/{EnhanceJsHistory-9c4acdaf.mjs → EnhanceJsHistory-fab3102e.mjs} +1 -1
  23. package/{EnhanceJsModal-247f640d.mjs → EnhanceJsModal-175357a1.mjs} +119 -103
  24. package/{EnhanceSqlModal-65b74b0f.mjs → EnhanceSqlModal-7ea1b300.mjs} +2 -2
  25. package/{ExtendConfigModal-00f2fb55.mjs → ExtendConfigModal-a89ae052.mjs} +2 -2
  26. package/{FieldExtendJsonModal-cc7fce26.mjs → FieldExtendJsonModal-32135634.mjs} +2 -2
  27. package/{FileSelectModal-38660e3c.mjs → FileSelectModal-1643c8b9.mjs} +1 -1
  28. package/{ForeignKeyTable-a78cb5ad.mjs → ForeignKeyTable-7f7e28a7.mjs} +2 -2
  29. package/{IndexTable-1b496559.mjs → IndexTable-cdcc2b48.mjs} +27 -19
  30. package/{JModalTip-4a83aaed.mjs → JModalTip-b055ab60.mjs} +1 -1
  31. package/JOnlineSearchSelect-22aae934.mjs +128 -0
  32. package/{LeftDepart-8ade4bf7.mjs → LeftDepart-d5615ed9.mjs} +1 -1
  33. package/{LeftRole-7d8c5acc.mjs → LeftRole-2ed8a2bf.mjs} +1 -1
  34. package/{LeftUser-b4d1372a.mjs → LeftUser-22baa378.mjs} +1 -1
  35. package/{LinkTableConfigModal-a138c85e.mjs → LinkTableConfigModal-9242d750.mjs} +1 -1
  36. package/{LinkTableFieldConfigModal-17b413b0.mjs → LinkTableFieldConfigModal-24adc50c.mjs} +1 -1
  37. package/{LinkTableListPiece-2660d709.mjs → LinkTableListPiece-f3a8e0d7.mjs} +1 -1
  38. package/{ModalFormDemo-0544737d.mjs → ModalFormDemo-711418db.mjs} +1 -1
  39. package/{OnlCgformErpList-30e416c8.mjs → OnlCgformErpList-58acdfa0.mjs} +121 -121
  40. package/{OnlCgformErpSubTable-9a876058.mjs → OnlCgformErpSubTable-9b1e1938.mjs} +149 -150
  41. package/{OnlCgformInnerSubTable-290ace5d.mjs → OnlCgformInnerSubTable-6c23781f.mjs} +96 -97
  42. package/{OnlCgformInnerTableList-f89b6687.mjs → OnlCgformInnerTableList-4b5e14ed.mjs} +156 -156
  43. package/{OnlCgformTabList-7a2f2c03.mjs → OnlCgformTabList-019ad753.mjs} +138 -138
  44. package/{OnlineAutoList-46c6c8b9.mjs → OnlineAutoList-48589d09.mjs} +90 -90
  45. package/{OnlineAutoModal-971bef13.mjs → OnlineAutoModal-c2928847.mjs} +64 -61
  46. package/{OnlineAutoTreeList-3b92454c.mjs → OnlineAutoTreeList-3baa1d00.mjs} +20 -19
  47. package/{OnlineCustomModal-594244f3.mjs → OnlineCustomModal-9e17b6ce.mjs} +8 -8
  48. package/{OnlineDetailModal-2a271e0b.mjs → OnlineDetailModal-d5895734.mjs} +8 -8
  49. package/OnlineForm-9f1153ba.mjs +985 -0
  50. package/{OnlineFormDetail-e036cd11.mjs → OnlineFormDetail-022ca117.mjs} +7 -7
  51. package/{OnlineFormUrlAdd-7fb3dcca.mjs → OnlineFormUrlAdd-9715d70a.mjs} +10 -10
  52. package/{OnlineFormUrlDetail-b2292137.mjs → OnlineFormUrlDetail-8f864b1a.mjs} +12 -12
  53. package/{OnlineFormUrlEdit-44080fb3.mjs → OnlineFormUrlEdit-ac985b36.mjs} +10 -10
  54. package/{OnlineFormUrlSuccess-af285b02.mjs → OnlineFormUrlSuccess-3dfc54ab.mjs} +1 -1
  55. package/OnlineQueryForm-eedb9a60.mjs +466 -0
  56. package/{OnlineSearchFormItem-6feacae6.mjs → OnlineSearchFormItem-6c557343.mjs} +2 -2
  57. package/{OnlineSelectCascade-471fcc76.mjs → OnlineSelectCascade-05c40fef.mjs} +1 -1
  58. package/{OnlineSubFormDetail-03f8ee5c.mjs → OnlineSubFormDetail-58e896ce.mjs} +7 -7
  59. package/{OnlineTabAutoModal-7b9bcd0b.mjs → OnlineTabAutoModal-47b18ad6.mjs} +7 -7
  60. package/{OnlineTabDetailModal-88143301.mjs → OnlineTabDetailModal-82de1465.mjs} +8 -8
  61. package/{OnlineTabForm-9ad7d29a.mjs → OnlineTabForm-27655c83.mjs} +236 -224
  62. package/{OnlineTabFormDetail-bbf23caa.mjs → OnlineTabFormDetail-8d0c40c0.mjs} +7 -7
  63. package/{PageAttributeTable-6c23547b.mjs → PageAttributeTable-25e3b7da.mjs} +156 -136
  64. package/{ProcessOnlineForm-b42198f5.mjs → ProcessOnlineForm-148632fe.mjs} +61 -55
  65. package/{QueryTable-96b3dbd0.mjs → QueryTable-f7bfca7f.mjs} +39 -36
  66. package/{SetSwitchOptions-a452fa0f.mjs → SetSwitchOptions-b2af757f.mjs} +1 -1
  67. package/SuperQuery-a8592995.mjs +967 -0
  68. package/auth.api-ea1d33d4.mjs +41 -0
  69. package/{auth.data-22948e87.mjs → auth.data-511e5197.mjs} +62 -28
  70. package/{enhance.data-3304d553.mjs → enhance.data-a67572e1.mjs} +8 -7
  71. package/index-1d1a6e56.mjs +57 -0
  72. package/{index-d2abb8a0.mjs → index-30e0e923.mjs} +48 -47
  73. package/{index-581bef24.mjs → index-f30613d1.mjs} +2 -2
  74. package/main.index.js +1 -1
  75. package/package.json +1 -1
  76. package/style.css +1 -1
  77. package/{useCgformList-8755a94e.mjs → useCgformList-f41d4dc1.mjs} +1 -1
  78. package/useExtendComponent-dcae5c78.mjs +4399 -0
  79. package/{useListButton-7ddb9a46.mjs → useListButton-bfac4ecf.mjs} +45 -45
  80. package/{useSchemas-47e45edc.mjs → useSchemas-a9c75b0f.mjs} +55 -46
  81. package/useTableSync-d7e9f18d.mjs +89 -0
  82. package/AuthButtonConfig-d50a0a65.mjs +0 -134
  83. package/AuthFieldConfig-490fc0ab.mjs +0 -139
  84. package/CgformModal-36faf29a.mjs +0 -621
  85. package/CodeGeneratorModal-b722d976.mjs +0 -238
  86. package/DbToOnlineModal-f49b9530.mjs +0 -166
  87. package/JOnlineSearchSelect-34a37ec9.mjs +0 -95
  88. package/OnlineForm-018981b2.mjs +0 -924
  89. package/OnlineQueryForm-998c12a4.mjs +0 -444
  90. package/SuperQuery-cbfba908.mjs +0 -975
  91. package/auth.api-d3a6c4b3.mjs +0 -39
  92. package/index-173949bb.mjs +0 -57
  93. package/useExtendComponent-bb7cca20.mjs +0 -4295
  94. package/useTableSync-f6089e8a.mjs +0 -87
  95. /package/{OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs} +0 -0
@@ -2,7 +2,7 @@ import { ref as l, resolveComponent as c, openBlock as x, createBlock as I, unre
2
2
  import { useModalInner as S, BasicModal as V } from "/@/components/Modal";
3
3
  import { useMessage as z } from "/@/hooks/web/useMessage";
4
4
  import { defHttp as N } from "/@/utils/http/axios";
5
- import { _ as $ } from "./index-173949bb.mjs";
5
+ import { _ as $ } from "./index-1d1a6e56.mjs";
6
6
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
7
7
  import "vue-router";
8
8
  const u = (o) => (y("data-v-4ab211b3"), o = o(), B(), o), R = { class: "aiWrap" }, U = /* @__PURE__ */ u(() => /* @__PURE__ */ e("div", { class: "titleArea" }, [
@@ -0,0 +1,154 @@
1
+ var h = (s, r, l) => new Promise((p, m) => {
2
+ var b = (a) => {
3
+ try {
4
+ c(l.next(a));
5
+ } catch (u) {
6
+ m(u);
7
+ }
8
+ }, f = (a) => {
9
+ try {
10
+ c(l.throw(a));
11
+ } catch (u) {
12
+ m(u);
13
+ }
14
+ }, c = (a) => a.done ? p(a.value) : Promise.resolve(a.value).then(b, f);
15
+ c((l = l.apply(s, r)).next());
16
+ });
17
+ import { defineComponent as R, ref as g, watch as S, resolveComponent as B, openBlock as A, createElementBlock as E, createVNode as C, withCtx as w, createTextVNode as N } from "vue";
18
+ import { cloneDeep as $ } from "lodash-es";
19
+ import { BasicTable as q, useTable as F } from "/@/components/Table";
20
+ import { f as j, g as z, h as O } from "./auth.api-ea1d33d4.mjs";
21
+ import { b as U, c as V } from "./auth.data-511e5197.mjs";
22
+ import { _ as K } from "./index-1d1a6e56.mjs";
23
+ import "/@/utils/http/axios";
24
+ import "/@/utils/index";
25
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
26
+ import "/@/hooks/web/useMessage";
27
+ import "vue-router";
28
+ const P = R({
29
+ name: "AuthButtonConfig",
30
+ components: { BasicTable: q },
31
+ props: {
32
+ headId: {
33
+ type: String,
34
+ default: "",
35
+ required: !0
36
+ },
37
+ // 1单表 2主表 3附表
38
+ tableType: {
39
+ type: Number,
40
+ default: 1
41
+ }
42
+ },
43
+ setup(s) {
44
+ const r = g(""), l = g(2), p = g(3), m = g(5), [b, { reload: f, getTableRef: c, setPagination: a }] = F({
45
+ api: T,
46
+ rowKey: "code",
47
+ bordered: !0,
48
+ columns: U,
49
+ showIndexColumn: !1
50
+ });
51
+ S(
52
+ () => s.headId,
53
+ (t) => {
54
+ r.value = t.split("?")[0], c().value && a({ current: 1, pageSize: 10 }), f().catch(() => null);
55
+ },
56
+ { immediate: !0 }
57
+ );
58
+ const u = (t) => {
59
+ const e = $(V);
60
+ if (t.mainRelationType != null && t.mainThemeTemplate != null && s.tableType == 3) {
61
+ let n = [];
62
+ switch (t.mainThemeTemplate) {
63
+ case "normal":
64
+ case "innerTable":
65
+ case "tab":
66
+ t.mainRelationType == 1 ? n = [] : n = e.filter((o) => ["add", "update", "batch_delete"].includes(o.code));
67
+ break;
68
+ case "erp":
69
+ n = e.filter((o) => !["super_query"].includes(o.code));
70
+ break;
71
+ }
72
+ return n;
73
+ } else
74
+ return e;
75
+ };
76
+ function T(t) {
77
+ return h(this, null, function* () {
78
+ let e = yield j(r.value, t), { authList: n, buttonList: o } = e, d = [];
79
+ const _ = u(e);
80
+ for (let i of _) {
81
+ let y = {
82
+ status: 0,
83
+ page: p.value
84
+ }, L = n.find((D) => D.code == i.code);
85
+ Object.assign(i, y, L), d.push(i);
86
+ }
87
+ if (s.tableType == 3) {
88
+ const i = d.findIndex((y) => y.code === "super_query");
89
+ i != -1 && d.splice(i, 1);
90
+ }
91
+ return v(n, o, d);
92
+ });
93
+ }
94
+ function v(t, e, n) {
95
+ for (let o of e) {
96
+ let d = t.find((i) => i.code == o.buttonCode), _ = {
97
+ code: o.buttonCode,
98
+ title: o.buttonName,
99
+ status: 0,
100
+ page: o.buttonStyle == "form" ? m.value : p.value
101
+ };
102
+ n.push(Object.assign(_, d));
103
+ }
104
+ return n;
105
+ }
106
+ function x(t, e) {
107
+ return h(this, null, function* () {
108
+ t ? I(e) : k(e);
109
+ });
110
+ }
111
+ function I(t) {
112
+ return h(this, null, function* () {
113
+ let e = yield z({
114
+ id: t.id,
115
+ code: t.code,
116
+ page: t.page,
117
+ cgformId: r.value,
118
+ type: l.value,
119
+ control: 5,
120
+ status: 1
121
+ });
122
+ t.id = e.id, t.status = 1;
123
+ });
124
+ }
125
+ function k(t) {
126
+ return h(this, null, function* () {
127
+ yield O(t.id), t.status = 0;
128
+ });
129
+ }
130
+ return { registerTable: b, onUpdateStatus: x };
131
+ }
132
+ }), G = { class: "auth-field-config" };
133
+ function H(s, r, l, p, m, b) {
134
+ const f = B("a-switch"), c = B("BasicTable");
135
+ return A(), E("div", G, [
136
+ C(c, { onRegister: s.registerTable }, {
137
+ switch: w(({ text: a, record: u }) => [
138
+ C(f, {
139
+ size: "small",
140
+ checked: u.status === 1,
141
+ onChange: (T) => s.onUpdateStatus(T, u)
142
+ }, null, 8, ["checked", "onChange"])
143
+ ]),
144
+ control: w(() => [
145
+ N(" 可见 ")
146
+ ]),
147
+ _: 1
148
+ }, 8, ["onRegister"])
149
+ ]);
150
+ }
151
+ const st = /* @__PURE__ */ K(P, [["render", H]]);
152
+ export {
153
+ st as default
154
+ };
@@ -16,9 +16,10 @@ var y = (e, l, a) => new Promise((f, i) => {
16
16
  });
17
17
  import { defineComponent as w, ref as d, computed as A, watch as N, resolveComponent as g, openBlock as v, createElementBlock as E, createBlock as I, Fragment as M, createElementVNode as P, createVNode as k, withCtx as B, createTextVNode as C } from "vue";
18
18
  import { useMessage as S } from "/@/hooks/web/useMessage";
19
- import { c as R } from "./auth.data-22948e87.mjs";
20
- import { m as V, l as $, n as z } from "./auth.api-d3a6c4b3.mjs";
21
- import { _ as L } from "./index-173949bb.mjs";
19
+ import { c as R } from "./auth.data-511e5197.mjs";
20
+ import { o as V, n as $, p as z } from "./auth.api-ea1d33d4.mjs";
21
+ import { _ as L } from "./index-1d1a6e56.mjs";
22
+ import "/@/utils/index";
22
23
  import "/@/utils/http/axios";
23
24
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
24
25
  import "vue-router";
@@ -150,7 +151,7 @@ function O(e, l, a, f, i, m) {
150
151
  ], 64))
151
152
  ]);
152
153
  }
153
- const ee = /* @__PURE__ */ L(q, [["render", O], ["__scopeId", "data-v-d165a23e"]]);
154
+ const te = /* @__PURE__ */ L(q, [["render", O], ["__scopeId", "data-v-d165a23e"]]);
154
155
  export {
155
- ee as default
156
+ te as default
156
157
  };
@@ -9,7 +9,7 @@ var M = (t, n, o) => n in t ? K(t, n, { enumerable: !0, configurable: !0, writab
9
9
  for (var o of F(n))
10
10
  X.call(n, o) && M(t, o, n[o]);
11
11
  return t;
12
- }, y = (t, n) => Q(t, H(n));
12
+ }, k = (t, n) => Q(t, H(n));
13
13
  var A = (t, n, o) => new Promise((u, f) => {
14
14
  var p = (a) => {
15
15
  try {
@@ -26,14 +26,15 @@ var A = (t, n, o) => new Promise((u, f) => {
26
26
  }, i = (a) => a.done ? u(a.value) : Promise.resolve(a.value).then(p, g);
27
27
  i((o = o.apply(t, n)).next());
28
28
  });
29
- import { defineComponent as Y, ref as Z, watch as k, reactive as ee, nextTick as te, resolveComponent as r, openBlock as ne, createElementBlock as oe, createVNode as c, withCtx as d, createTextVNode as ae, mergeProps as ie } from "vue";
29
+ import { defineComponent as Y, ref as Z, watch as y, reactive as ee, nextTick as te, resolveComponent as r, openBlock as ne, createElementBlock as oe, createVNode as c, withCtx as d, createTextVNode as ae, mergeProps as ie } from "vue";
30
30
  import { BasicTable as le, TableAction as se, useTable as re } from "/@/components/Table";
31
31
  import { BasicModal as ce, useModal as ue } from "/@/components/Modal";
32
32
  import { BasicForm as me, useForm as de } from "/@/components/Form";
33
- import { g as fe, h as pe, i as ge, j as he } from "./auth.api-d3a6c4b3.mjs";
34
- import { d as Ce, u as be, U as v } from "./auth.data-22948e87.mjs";
35
- import { _ as _e } from "./index-173949bb.mjs";
33
+ import { i as fe, j as pe, k as ge, l as he } from "./auth.api-ea1d33d4.mjs";
34
+ import { d as Ce, u as be, U as v } from "./auth.data-511e5197.mjs";
35
+ import { _ as _e } from "./index-1d1a6e56.mjs";
36
36
  import "/@/utils/http/axios";
37
+ import "/@/utils/index";
37
38
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
38
39
  import "/@/hooks/web/useMessage";
39
40
  import "vue-router";
@@ -60,7 +61,7 @@ const we = Y({
60
61
  slots: { customRender: "action" }
61
62
  }
62
63
  });
63
- k(n, (e) => f(e));
64
+ y(n, (e) => f(e));
64
65
  const [p, { openModal: g, closeModal: i }] = ue(), a = ee({
65
66
  title: "",
66
67
  width: 800,
@@ -79,7 +80,7 @@ const we = Y({
79
80
  showActionButtonGroup: !1,
80
81
  labelAlign: "right"
81
82
  });
82
- k(
83
+ y(
83
84
  () => t.cgformId,
84
85
  () => {
85
86
  u().catch(() => null);
@@ -115,7 +116,7 @@ const we = Y({
115
116
  function N(e) {
116
117
  n.value = !0;
117
118
  let s = Math.abs(e.status - 1);
118
- ge(y(S({}, e), { status: s })).then(() => {
119
+ ge(k(S({}, e), { status: s })).then(() => {
119
120
  e.status = s;
120
121
  }).finally(() => {
121
122
  n.value = !1;
@@ -231,7 +232,7 @@ function Ae(t, n, o, u, f, p) {
231
232
  }, 16, ["onOpenChange"])
232
233
  ]);
233
234
  }
234
- const Ue = /* @__PURE__ */ _e(we, [["render", Ae]]);
235
+ const Ve = /* @__PURE__ */ _e(we, [["render", Ae]]);
235
236
  export {
236
- Ue as default
237
+ Ve as default
237
238
  };
@@ -16,12 +16,12 @@ var f = (e, s, t) => new Promise((l, c) => {
16
16
  });
17
17
  import { defineComponent as A, ref as r, computed as B, watch as F, resolveComponent as y, openBlock as h, createElementBlock as _, createBlock as g, Fragment as N, createElementVNode as M, createVNode as v, withCtx as E, createTextVNode as D } from "vue";
18
18
  import { useMessage as P } from "/@/hooks/web/useMessage";
19
- import { o as S, l as R, p as V } from "./auth.api-d3a6c4b3.mjs";
20
- import { _ as $ } from "./index-173949bb.mjs";
19
+ import { q as S, n as R, r as V } from "./auth.api-ea1d33d4.mjs";
20
+ import { _ as $ } from "./index-1d1a6e56.mjs";
21
21
  import "/@/utils/http/axios";
22
22
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
23
23
  import "vue-router";
24
- const z = A({
24
+ const q = A({
25
25
  name: "AuthDataTree",
26
26
  props: {
27
27
  cgformId: { type: String, required: !0 }
@@ -84,7 +84,7 @@ const z = A({
84
84
  };
85
85
  }
86
86
  });
87
- const q = { class: "onl-auth-tree-btns" };
87
+ const z = { class: "onl-auth-tree-btns" };
88
88
  function J(e, s, t, l, c, i) {
89
89
  const n = y("a-empty"), o = y("a-button"), a = y("a-tree");
90
90
  return h(), _("div", null, [
@@ -95,7 +95,7 @@ function J(e, s, t, l, c, i) {
95
95
  key: 1,
96
96
  description: "无权限信息"
97
97
  })) : (h(), _(N, { key: 2 }, [
98
- M("div", q, [
98
+ M("div", z, [
99
99
  v(o, {
100
100
  onClick: e.onRefresh,
101
101
  size: "small",
@@ -133,7 +133,7 @@ function J(e, s, t, l, c, i) {
133
133
  ], 64))
134
134
  ]);
135
135
  }
136
- const X = /* @__PURE__ */ $(z, [["render", J], ["__scopeId", "data-v-c6be2157"]]);
136
+ const X = /* @__PURE__ */ $(q, [["render", J], ["__scopeId", "data-v-c6be2157"]]);
137
137
  export {
138
138
  X as default
139
139
  };
@@ -0,0 +1,245 @@
1
+ var S = (s, g, m) => new Promise((y, k) => {
2
+ var r = (h) => {
3
+ try {
4
+ f(m.next(h));
5
+ } catch (u) {
6
+ k(u);
7
+ }
8
+ }, w = (h) => {
9
+ try {
10
+ f(m.throw(h));
11
+ } catch (u) {
12
+ k(u);
13
+ }
14
+ }, f = (h) => h.done ? y(h.value) : Promise.resolve(h.value).then(r, w);
15
+ f((m = m.apply(s, g)).next());
16
+ });
17
+ import { defineComponent as z, ref as p, watch as V, resolveComponent as L, openBlock as E, createElementBlock as U, createVNode as b, withCtx as C, Fragment as B, createTextVNode as v, createBlock as P, toDisplayString as _ } from "vue";
18
+ import { BasicTable as q, useTable as K } from "/@/components/Table";
19
+ import { a as M, b as O, c as j, d as G, e as x } from "./auth.api-ea1d33d4.mjs";
20
+ import { a as H } from "./auth.data-511e5197.mjs";
21
+ import { _ as J } from "./index-1d1a6e56.mjs";
22
+ import "/@/utils/http/axios";
23
+ import "/@/utils/index";
24
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
25
+ import "/@/hooks/web/useMessage";
26
+ import "vue-router";
27
+ const Q = z({
28
+ name: "AuthFieldConfig",
29
+ components: { BasicTable: q },
30
+ props: {
31
+ headId: {
32
+ type: String,
33
+ default: "",
34
+ required: !0
35
+ }
36
+ },
37
+ emits: ["update:authFields"],
38
+ setup(s, { emit: g }) {
39
+ const m = p(""), [y, { reload: k, getTableRef: r, setPagination: w }] = K({
40
+ api: A,
41
+ rowKey: "code",
42
+ bordered: !0,
43
+ columns: H,
44
+ showIndexColumn: !1
45
+ }), f = p(!1), h = p(!1), u = p(!1), i = p(!1), c = p(!1), I = p(!1), F = p(!1);
46
+ V(
47
+ () => s.headId,
48
+ (l) => {
49
+ m.value = l.split("?")[0], r().value && w({ current: 1, pageSize: 10 }), k().catch(() => null);
50
+ },
51
+ { immediate: !0 }
52
+ );
53
+ function A(l) {
54
+ return S(this, null, function* () {
55
+ const e = ["id"];
56
+ let n = yield M(m.value, l), t = [], d = [];
57
+ return n.forEach((o) => {
58
+ e.indexOf(o.code) < 0 && ((o.isShowForm == 1 || o.isShowList == 1) && d.push(o), o.dbIsPersist == 1 && t.push({
59
+ text: o.title,
60
+ value: o.code,
61
+ // -update-begin--author:liaozhiyang---date:20240617---for:【TV360X-201】权限管理条件根据控件过滤
62
+ view: o.fieldShowType,
63
+ dbType: o.dbType
64
+ // -update-end--author:liaozhiyang---date:20240617---for:【TV360X-201】权限管理条件根据控件过滤
65
+ }));
66
+ }), g("update:authFields", t), T(l.pageNo, l.pageSize, d), d;
67
+ });
68
+ }
69
+ function $(l, e) {
70
+ return S(this, null, function* () {
71
+ yield O({
72
+ cgformId: m.value,
73
+ code: e.code,
74
+ status: l ? 1 : 0
75
+ }), e.formEditable || e.formShow || e.listShow || (e.formEditable = !0, e.formShow = !0, e.listShow = !0), e.status = Math.abs(e.status - 1), R();
76
+ });
77
+ }
78
+ function N(l, e, n) {
79
+ return S(this, null, function* () {
80
+ let t = l.target.checked;
81
+ yield j({
82
+ cgformId: m.value,
83
+ code: e.code,
84
+ switchFlag: n,
85
+ listShow: t,
86
+ formShow: t,
87
+ formEditable: t
88
+ }), n == 1 ? e.listShow = t : n == 2 ? e.formShow = t : n == 3 && (e.formEditable = t), e.listShow === !1 && e.formShow === !1 && e.formEditable === !1 && (e.status = 0), R();
89
+ });
90
+ }
91
+ function T(l, e, n) {
92
+ const t = [];
93
+ if (n != null && n.length) {
94
+ const d = l * e > n.length ? n.length : l * e;
95
+ for (let o = l * e - e; o < d; o++) {
96
+ const a = n[o];
97
+ t.push(a);
98
+ }
99
+ }
100
+ t.length ? (f.value = !0, h.value = !0, u.value = !0, t.forEach((d) => {
101
+ f.value && d.status == 0 && (f.value = !1), h.value && d.listShow == !1 && (h.value = !1), u.value && (d.formEditable == !1 || d.formShow == !1) && (u.value = !1);
102
+ }), h.value == !0 ? F.value = !1 : t.find((o) => o.listShow) ? F.value = !0 : F.value = !1, u.value == !0 ? I.value = !1 : t.find((o) => o.formEditable || o.formShow) ? I.value = !0 : I.value = !1) : (f.value = !1, h.value = !1, u.value = !1);
103
+ }
104
+ const R = () => {
105
+ const { current: l, pageSize: e } = r().value.getPaginationRef(), n = r().value.getDataSource();
106
+ T(l, e, n);
107
+ }, D = (l, e) => {
108
+ const n = [], t = r().value.getDataSource();
109
+ if (t != null && t.length) {
110
+ const d = l * e > t.length ? t.length : l * e;
111
+ for (let o = l * e - e; o < d; o++) {
112
+ const a = t[o];
113
+ n.push(a);
114
+ }
115
+ }
116
+ return n;
117
+ };
118
+ return { registerTable: y, onUpdateStatus: $, onCheckboxChange: N, handleChangeSwitch: (l) => S(this, null, function* () {
119
+ c.value = !0, f.value = l;
120
+ const { current: e, pageSize: n } = r().value.getPaginationRef(), t = D(e, n);
121
+ let d = t.map((a) => ({ cgformId: a.cgformId, code: a.code, status: l ? 1 : 0 }));
122
+ i.value = !0, yield G(d), t.forEach((a) => {
123
+ l ? a.status = 1 : a.status = 0, a.formEditable || a.formShow || a.listShow || (a.formEditable = !0, a.formShow = !0, a.listShow = !0);
124
+ }), i.value = !1, c.value = !1;
125
+ const o = r().value.getDataSource();
126
+ T(e, n, o);
127
+ }), allSwitch: f, allFormControl: u, allListControl: h, allSloading: i, handleTableChange: (l) => {
128
+ }, handleChangeList: (l) => S(this, null, function* () {
129
+ c.value = !0;
130
+ const e = l.target.checked;
131
+ h.value = e;
132
+ const { current: n, pageSize: t } = r().value.getPaginationRef(), d = D(n, t);
133
+ let o = d.map((a) => ({ cgformId: a.cgformId, code: a.code, switchFlag: 1, listShow: !!e }));
134
+ yield x(o), d.forEach((a) => {
135
+ a.listShow = !!e, a.listShow === !1 && a.formShow === !1 && a.formEditable === !1 && (a.status = 0, f.value = !1);
136
+ }), e && (F.value = !1), c.value = !1;
137
+ }), handleChangeForm: (l) => S(this, null, function* () {
138
+ c.value = !0;
139
+ const e = l.target.checked;
140
+ u.value = e;
141
+ const { current: n, pageSize: t } = r().value.getPaginationRef(), d = D(n, t), o = [
142
+ ...d.map((a) => ({ cgformId: a.cgformId, code: a.code, switchFlag: 4, formShow: !!e, formEditable: !!e }))
143
+ ];
144
+ yield x(o), d.forEach((a) => {
145
+ a.formEditable = !!e, a.formShow = !!e, a.listShow === !1 && a.formShow === !1 && a.formEditable === !1 && (a.status = 0, f.value = !1);
146
+ }), e && (I.value = !1), c.value = !1;
147
+ }), tableLoading: c, formIndeterminate: I, listIndeterminate: F };
148
+ }
149
+ });
150
+ const W = { class: "auth-field-config" };
151
+ function X(s, g, m, y, k, r) {
152
+ const w = L("a-switch"), f = L("a-checkbox"), h = L("BasicTable");
153
+ return E(), U("div", W, [
154
+ b(h, {
155
+ onRegister: s.registerTable,
156
+ onChange: s.handleTableChange,
157
+ loading: s.tableLoading
158
+ }, {
159
+ headerCell: C(({ column: u }) => [
160
+ u.dataIndex === "switch" ? (E(), U(B, { key: 0 }, [
161
+ b(w, {
162
+ loading: s.allSloading,
163
+ checked: s.allSwitch,
164
+ "onUpdate:checked": g[0] || (g[0] = (i) => s.allSwitch = i),
165
+ size: "small",
166
+ onChange: s.handleChangeSwitch
167
+ }, null, 8, ["loading", "checked", "onChange"]),
168
+ v("启用 ")
169
+ ], 64)) : u.dataIndex === "list" ? (E(), P(f, {
170
+ key: 1,
171
+ indeterminate: s.listIndeterminate,
172
+ checked: s.allListControl,
173
+ "onUpdate:checked": g[1] || (g[1] = (i) => s.allListControl = i),
174
+ disabled: !s.allSwitch,
175
+ onChange: s.handleChangeList
176
+ }, {
177
+ default: C(() => [
178
+ v(_(u.customTitle), 1)
179
+ ]),
180
+ _: 2
181
+ }, 1032, ["indeterminate", "checked", "disabled", "onChange"])) : u.dataIndex === "form" ? (E(), P(f, {
182
+ key: 2,
183
+ indeterminate: s.formIndeterminate,
184
+ checked: s.allFormControl,
185
+ "onUpdate:checked": g[2] || (g[2] = (i) => s.allFormControl = i),
186
+ disabled: !s.allSwitch,
187
+ onChange: s.handleChangeForm
188
+ }, {
189
+ default: C(() => [
190
+ v(_(u.customTitle), 1)
191
+ ]),
192
+ _: 2
193
+ }, 1032, ["indeterminate", "checked", "disabled", "onChange"])) : (E(), U(B, { key: 3 }, [
194
+ v(_(u.customTitle), 1)
195
+ ], 64))
196
+ ]),
197
+ switch: C(({ text: u, record: i }) => [
198
+ b(w, {
199
+ size: "small",
200
+ checked: i.status === 1,
201
+ onChange: (c) => s.onUpdateStatus(c, i)
202
+ }, null, 8, ["checked", "onChange"])
203
+ ]),
204
+ list: C(({ text: u, record: i }) => [
205
+ b(f, {
206
+ checked: i.listShow,
207
+ disabled: i.status === 0,
208
+ onChange: (c) => s.onCheckboxChange(c, i, 1)
209
+ }, {
210
+ default: C(() => [
211
+ v(" 可见 ")
212
+ ]),
213
+ _: 2
214
+ }, 1032, ["checked", "disabled", "onChange"])
215
+ ]),
216
+ form: C(({ text: u, record: i }) => [
217
+ b(f, {
218
+ checked: i.formShow,
219
+ disabled: i.status === 0,
220
+ onChange: (c) => s.onCheckboxChange(c, i, 2)
221
+ }, {
222
+ default: C(() => [
223
+ v(" 可见 ")
224
+ ]),
225
+ _: 2
226
+ }, 1032, ["checked", "disabled", "onChange"]),
227
+ b(f, {
228
+ checked: i.formEditable,
229
+ disabled: i.status === 0,
230
+ onChange: (c) => s.onCheckboxChange(c, i, 3)
231
+ }, {
232
+ default: C(() => [
233
+ v(" 可编辑 ")
234
+ ]),
235
+ _: 2
236
+ }, 1032, ["checked", "disabled", "onChange"])
237
+ ]),
238
+ _: 1
239
+ }, 8, ["onRegister", "onChange", "loading"])
240
+ ]);
241
+ }
242
+ const re = /* @__PURE__ */ J(Q, [["render", X], ["__scopeId", "data-v-c48da65c"]]);
243
+ export {
244
+ re as default
245
+ };
@@ -16,9 +16,9 @@ var g = (e, m, u) => new Promise((C, h) => {
16
16
  });
17
17
  import { defineComponent as P, ref as p, computed as R, watch as V, unref as $, resolveComponent as f, openBlock as E, createElementBlock as A, createBlock as b, Fragment as q, createElementVNode as H, createVNode as d, withCtx as v, createTextVNode as k } from "vue";
18
18
  import { useMessage as J } from "/@/hooks/web/useMessage";
19
- import { k as L, l as j, s as G } from "./auth.api-d3a6c4b3.mjs";
19
+ import { m as L, n as j, s as G } from "./auth.api-ea1d33d4.mjs";
20
20
  import { DownCircleOutlined as Q, HomeOutlined as W, UpCircleOutlined as X, UndoOutlined as Y, CheckOutlined as Z } from "@ant-design/icons-vue";
21
- import { _ as ee } from "./index-173949bb.mjs";
21
+ import { _ as ee } from "./index-1d1a6e56.mjs";
22
22
  import "/@/utils/http/axios";
23
23
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
24
24
  import "vue-router";
@@ -1,13 +1,14 @@
1
1
  import { defineComponent as b, ref as n, computed as C, resolveComponent as a, openBlock as g, createBlock as A, withCtx as u, createVNode as o, createElementBlock as D, Fragment as B, createCommentVNode as F } from "vue";
2
2
  import { BasicDrawer as I, useDrawerInner as _ } from "/@/components/Drawer";
3
- import v from "./AuthFieldConfig-490fc0ab.mjs";
4
- import w from "./AuthButtonConfig-d50a0a65.mjs";
5
- import T from "./AuthDataConfig-7bb0cd85.mjs";
6
- import { _ as k } from "./index-173949bb.mjs";
3
+ import v from "./AuthFieldConfig-9f6fa06c.mjs";
4
+ import w from "./AuthButtonConfig-89763932.mjs";
5
+ import T from "./AuthDataConfig-5c3a8e6b.mjs";
6
+ import { _ as k } from "./index-1d1a6e56.mjs";
7
7
  import "/@/components/Table";
8
- import "./auth.api-d3a6c4b3.mjs";
8
+ import "./auth.api-ea1d33d4.mjs";
9
9
  import "/@/utils/http/axios";
10
- import "./auth.data-22948e87.mjs";
10
+ import "./auth.data-511e5197.mjs";
11
+ import "/@/utils/index";
11
12
  import "lodash-es";
12
13
  import "/@/components/Modal";
13
14
  import "/@/components/Form";
@@ -112,7 +113,7 @@ function R(e, t, d, h, s, l) {
112
113
  _: 1
113
114
  }, 8, ["onRegister", "onClose"]);
114
115
  }
115
- const S = /* @__PURE__ */ k(K, [["render", R]]);
116
+ const W = /* @__PURE__ */ k(K, [["render", R]]);
116
117
  export {
117
- S as default
118
+ W as default
118
119
  };
@@ -26,23 +26,24 @@ var T = (e, t, o) => new Promise((p, l) => {
26
26
  }, c = (f) => f.done ? p(f.value) : Promise.resolve(f.value).then(n, i);
27
27
  c((o = o.apply(e, t)).next());
28
28
  });
29
- import P from "./LeftRole-7d8c5acc.mjs";
30
- import j from "./LeftDepart-8ade4bf7.mjs";
31
- import q from "./LeftUser-b4d1372a.mjs";
32
- import z from "./AuthFieldTree-b7cd091e.mjs";
33
- import G from "./AuthButtonTree-589395ed.mjs";
34
- import H from "./AuthDataTree-6e3bb86f.mjs";
29
+ import P from "./LeftRole-2ed8a2bf.mjs";
30
+ import j from "./LeftDepart-d5615ed9.mjs";
31
+ import q from "./LeftUser-22baa378.mjs";
32
+ import z from "./AuthFieldTree-e326fc38.mjs";
33
+ import G from "./AuthButtonTree-2d87d0b3.mjs";
34
+ import H from "./AuthDataTree-dd7a1240.mjs";
35
35
  import { defineComponent as J, ref as d, computed as Q, nextTick as L, resolveComponent as s, openBlock as b, createBlock as w, withCtx as u, createVNode as a, createElementBlock as W, Fragment as X, createCommentVNode as K } from "vue";
36
36
  import { BasicModal as Y, useModalInner as Z } from "/@/components/Modal";
37
- import { _ as x } from "./index-173949bb.mjs";
37
+ import { _ as x } from "./index-1d1a6e56.mjs";
38
38
  import "/@/utils/http/axios";
39
39
  import "/@/components/Table";
40
40
  import "/@/hooks/system/useListPage";
41
41
  import "/@/api/common/api";
42
42
  import "/@/hooks/web/useMessage";
43
- import "./auth.api-d3a6c4b3.mjs";
43
+ import "./auth.api-ea1d33d4.mjs";
44
44
  import "@ant-design/icons-vue";
45
- import "./auth.data-22948e87.mjs";
45
+ import "./auth.data-511e5197.mjs";
46
+ import "/@/utils/index";
46
47
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
47
48
  import "vue-router";
48
49
  const ee = J({
@@ -267,7 +268,7 @@ function te(e, t, o, p, l, n) {
267
268
  _: 1
268
269
  }, 8, ["onCancel", "onRegister", "onOpenChange"]);
269
270
  }
270
- const Ce = /* @__PURE__ */ x(ee, [["render", te], ["__scopeId", "data-v-e2407ec1"]]);
271
+ const Ae = /* @__PURE__ */ x(ee, [["render", te], ["__scopeId", "data-v-e2407ec1"]]);
271
272
  export {
272
- Ce as default
273
+ Ae as default
273
274
  };