@jeecg/online 3.7.0-beta → 3.7.4-beta

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 (150) hide show
  1. package/AccountLoginForm-84cbd344.mjs +254 -0
  2. package/AiModal-26903538.mjs +84 -0
  3. package/AppForgetPassword-52443f23.mjs +310 -0
  4. package/AppLogin-ecf798fa.mjs +287 -0
  5. package/AppLoginHeader-4432c584.mjs +27 -0
  6. package/AppNameEmail-3303a037.mjs +180 -0
  7. package/AppRegister-79a62c59.mjs +303 -0
  8. package/AppTenant-f0bef7ca.mjs +373 -0
  9. package/AppThirdForm-fd8b4604.mjs +189 -0
  10. package/AuthButtonConfig-d5bffca0.mjs +156 -0
  11. package/AuthButtonTree-b0bd6c40.mjs +165 -0
  12. package/{AuthDataConfig-7bb0cd85.mjs → AuthDataConfig-d3b7afa4.mjs} +30 -29
  13. package/{AuthDataTree-6e3bb86f.mjs → AuthDataTree-f14a98d9.mjs} +47 -47
  14. package/AuthFieldConfig-f1e224cc.mjs +245 -0
  15. package/AuthFieldTree-5cc0da05.mjs +232 -0
  16. package/{AuthManagerDrawer-5e2ed5ce.mjs → AuthManagerDrawer-32556109.mjs} +9 -8
  17. package/{AuthSetterModal-6f74449c.mjs → AuthSetterModal-364f1f67.mjs} +12 -11
  18. package/BuiltInButtonList-bb6cf95c.mjs +10 -0
  19. package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
  20. package/CgformAddressModal-1131274c.mjs +260 -0
  21. package/CgformCopyList-5fba0810.mjs +252 -0
  22. package/CgformModal-c4a4e0c2.mjs +667 -0
  23. package/{CgreportModal-5a23d089.mjs → CgreportModal-8a84aae5.mjs} +186 -172
  24. package/{CheckDictTable-b5cb0e2b.mjs → CheckDictTable-8a938e3a.mjs} +37 -34
  25. package/CodeFileListModal-a924902a.mjs +159 -0
  26. package/CodeFileViewModal-405e2b58.mjs +253 -0
  27. package/CodeGeneratorModal-2e1dc13d.mjs +281 -0
  28. package/CustomButtonList-c453b654.mjs +274 -0
  29. package/{DBAttributeTable-95dc66c1.mjs → DBAttributeTable-1a45c7b7.mjs} +80 -72
  30. package/DbToOnlineModal-f28ff0a3.mjs +168 -0
  31. package/{DetailForm-4aa2570b.mjs → DetailForm-c592b8d8.mjs} +50 -49
  32. package/DropMenuItem-1e49abea.mjs +44 -0
  33. package/{EnhanceJavaModal-98934198.mjs → EnhanceJavaModal-d5a93f2a.mjs} +62 -62
  34. package/{EnhanceJsHistory-9c4acdaf.mjs → EnhanceJsHistory-8ddb0657.mjs} +35 -35
  35. package/{EnhanceJsModal-247f640d.mjs → EnhanceJsModal-dc4f9ade.mjs} +154 -138
  36. package/{EnhanceSqlModal-65b74b0f.mjs → EnhanceSqlModal-984f045d.mjs} +67 -67
  37. package/ErrorTip-bb616e32.mjs +7 -0
  38. package/ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs +60 -0
  39. package/{ExtendConfigModal-00f2fb55.mjs → ExtendConfigModal-7d70f362.mjs} +2 -2
  40. package/{FieldExtendJsonModal-cc7fce26.mjs → FieldExtendJsonModal-bf04d70e.mjs} +2 -2
  41. package/{FileSelectModal-38660e3c.mjs → FileSelectModal-ffc69d4a.mjs} +23 -23
  42. package/{ForeignKeyTable-a78cb5ad.mjs → ForeignKeyTable-92decaea.mjs} +3 -3
  43. package/{IndexTable-1b496559.mjs → IndexTable-2ded2014.mjs} +28 -20
  44. package/JModalTip-a927f85d.mjs +49 -0
  45. package/JOnlineSearchSelect-04ec87d0.mjs +128 -0
  46. package/{LeftDepart-8ade4bf7.mjs → LeftDepart-52cb6743.mjs} +1 -1
  47. package/LeftRole-b0e0b496.mjs +86 -0
  48. package/{LeftUser-b4d1372a.mjs → LeftUser-dd4b10e2.mjs} +30 -30
  49. package/{LinkTableConfigModal-a138c85e.mjs → LinkTableConfigModal-7eeb3e58.mjs} +43 -31
  50. package/{LinkTableFieldConfigModal-17b413b0.mjs → LinkTableFieldConfigModal-b078fcef.mjs} +1 -1
  51. package/{LinkTableListPiece-2660d709.mjs → LinkTableListPiece-e016b8e6.mjs} +1 -1
  52. package/{ModalFormDemo-0544737d.mjs → ModalFormDemo-aaa719a7.mjs} +1 -1
  53. package/OnlCgformErpList-5c5acdaa.mjs +488 -0
  54. package/OnlCgformErpSubTable-e1b88312.mjs +441 -0
  55. package/{OnlCgformInnerSubTable-290ace5d.mjs → OnlCgformInnerSubTable-6b6fa15a.mjs} +106 -107
  56. package/OnlCgformInnerTableList-b283a525.mjs +474 -0
  57. package/OnlCgformTabList-91e3dd78.mjs +424 -0
  58. package/OnlineAutoList-84475f1b.mjs +513 -0
  59. package/OnlineAutoModal-95f46901.mjs +260 -0
  60. package/OnlineAutoTreeList-20b9ce04.mjs +523 -0
  61. package/OnlineCustomModal-c8b1e780.mjs +232 -0
  62. package/{OnlineDetailModal-2a271e0b.mjs → OnlineDetailModal-5b412bb9.mjs} +74 -65
  63. package/OnlineForm-58282699.mjs +1012 -0
  64. package/{OnlineFormDetail-e036cd11.mjs → OnlineFormDetail-fc087725.mjs} +7 -7
  65. package/{OnlineFormUrlAdd-7fb3dcca.mjs → OnlineFormUrlAdd-bc9105bb.mjs} +10 -10
  66. package/{OnlineFormUrlDetail-b2292137.mjs → OnlineFormUrlDetail-ad912560.mjs} +12 -12
  67. package/{OnlineFormUrlEdit-44080fb3.mjs → OnlineFormUrlEdit-f2fa79ff.mjs} +10 -10
  68. package/OnlineFormUrlSuccess-76813d45.mjs +59 -0
  69. package/OnlineQueryForm-9248341f.mjs +484 -0
  70. package/{OnlineSearchFormItem-6feacae6.mjs → OnlineSearchFormItem-1e437bd3.mjs} +82 -82
  71. package/{OnlineSelectCascade-471fcc76.mjs → OnlineSelectCascade-d631ed72.mjs} +1 -1
  72. package/{OnlineSubFormDetail-03f8ee5c.mjs → OnlineSubFormDetail-8be879b9.mjs} +53 -54
  73. package/{OnlineTabAutoModal-7b9bcd0b.mjs → OnlineTabAutoModal-c9ca3c24.mjs} +108 -95
  74. package/{OnlineTabDetailModal-88143301.mjs → OnlineTabDetailModal-fd4c9a72.mjs} +36 -36
  75. package/OnlineTabForm-1940e88b.mjs +814 -0
  76. package/{OnlineTabFormDetail-bbf23caa.mjs → OnlineTabFormDetail-2aa67564.mjs} +17 -17
  77. package/{PageAttributeTable-6c23547b.mjs → PageAttributeTable-66e7b485.mjs} +169 -149
  78. package/PhoneLoginForm-86437a9d.mjs +214 -0
  79. package/{ProcessOnlineForm-b42198f5.mjs → ProcessOnlineForm-98ede18d.mjs} +64 -58
  80. package/{QueryTable-96b3dbd0.mjs → QueryTable-65d3f54f.mjs} +40 -37
  81. package/SetSwitchOptions-f914bc17.mjs +62 -0
  82. package/ShareAddView-657f0f8b.mjs +86 -0
  83. package/ShareEditView-1b945fd3.mjs +92 -0
  84. package/ShareView-222ed3d8.mjs +80 -0
  85. package/ShareView.vue_vue_type_script_setup_true_lang-44fbeaff.mjs +162 -0
  86. package/SingleView-23b0cb4e.mjs +68 -0
  87. package/SingleView.vue_vue_type_style_index_0_lang-e0f2f6c0.mjs +131 -0
  88. package/SuperQuery-46032e66.mjs +974 -0
  89. package/{SuperQueryValComponent-7ad86d4b.mjs → SuperQueryValComponent-5a9ccfd4.mjs} +1 -1
  90. package/{SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs → SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs} +11 -11
  91. package/auth.api-53df4c33.mjs +41 -0
  92. package/{auth.data-22948e87.mjs → auth.data-626c5083.mjs} +68 -30
  93. package/button.data-fe45d43b.mjs +12 -0
  94. package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
  95. package/{enhance.data-3304d553.mjs → enhance.data-6601ff44.mjs} +9 -8
  96. package/index-19eaef11.mjs +11 -0
  97. package/index-1a2e8832.mjs +135 -0
  98. package/{index-581bef24.mjs → index-2fb8e07f.mjs} +59 -59
  99. package/index-5e89258d.mjs +8 -0
  100. package/index-9e1e1e53.mjs +57 -0
  101. package/{index-d2abb8a0.mjs → index-a039036e.mjs} +273 -262
  102. package/index-c5a79b0b.mjs +219 -0
  103. package/index-cce225be.mjs +110 -0
  104. package/index-f2c2d1cf.mjs +74 -0
  105. package/main.index.js +1 -1
  106. package/package.json +1 -1
  107. package/shareStore-7de6c7a6.mjs +67 -0
  108. package/style.css +1 -1
  109. package/useCgformList-f3cb9156.mjs +378 -0
  110. package/useExtendComponent-bb98e568.mjs +4460 -0
  111. package/useListButton-98908683.mjs +719 -0
  112. package/{useSchemas-47e45edc.mjs → useSchemas-b074f3a1.mjs} +88 -46
  113. package/useTableSync-075826a1.mjs +89 -0
  114. package/utils-9fce7606.mjs +16 -0
  115. package/AiModal-fe3988fb.mjs +0 -84
  116. package/AuthButtonConfig-d50a0a65.mjs +0 -134
  117. package/AuthButtonTree-589395ed.mjs +0 -156
  118. package/AuthFieldConfig-490fc0ab.mjs +0 -139
  119. package/AuthFieldTree-b7cd091e.mjs +0 -232
  120. package/CgformCopyList-8077ccc6.mjs +0 -250
  121. package/CgformModal-36faf29a.mjs +0 -621
  122. package/CodeFileListModal-0e26b7e0.mjs +0 -158
  123. package/CodeFileViewModal-9d4a5b5f.mjs +0 -248
  124. package/CodeGeneratorModal-b722d976.mjs +0 -238
  125. package/CustomButtonList-37639061.mjs +0 -381
  126. package/DbToOnlineModal-f49b9530.mjs +0 -166
  127. package/JModalTip-4a83aaed.mjs +0 -49
  128. package/JOnlineSearchSelect-34a37ec9.mjs +0 -95
  129. package/LeftRole-7d8c5acc.mjs +0 -86
  130. package/OnlCgformErpList-30e416c8.mjs +0 -470
  131. package/OnlCgformErpSubTable-9a876058.mjs +0 -427
  132. package/OnlCgformInnerTableList-f89b6687.mjs +0 -458
  133. package/OnlCgformTabList-7a2f2c03.mjs +0 -408
  134. package/OnlineAutoList-46c6c8b9.mjs +0 -493
  135. package/OnlineAutoModal-971bef13.mjs +0 -236
  136. package/OnlineAutoTreeList-3b92454c.mjs +0 -502
  137. package/OnlineCustomModal-594244f3.mjs +0 -232
  138. package/OnlineForm-018981b2.mjs +0 -924
  139. package/OnlineFormUrlSuccess-af285b02.mjs +0 -59
  140. package/OnlineQueryForm-998c12a4.mjs +0 -444
  141. package/OnlineTabForm-9ad7d29a.mjs +0 -805
  142. package/SetSwitchOptions-a452fa0f.mjs +0 -62
  143. package/SuperQuery-cbfba908.mjs +0 -975
  144. package/auth.api-d3a6c4b3.mjs +0 -39
  145. package/index-173949bb.mjs +0 -57
  146. package/useCgformList-8755a94e.mjs +0 -426
  147. package/useExtendComponent-bb7cca20.mjs +0 -4295
  148. package/useListButton-7ddb9a46.mjs +0 -697
  149. package/useTableSync-f6089e8a.mjs +0 -87
  150. /package/{OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs} +0 -0
@@ -1,52 +1,52 @@
1
- var f = (e, s, t) => new Promise((l, c) => {
1
+ var f = (e, n, t) => new Promise((l, d) => {
2
2
  var i = (a) => {
3
3
  try {
4
- o(t.next(a));
5
- } catch (u) {
6
- c(u);
4
+ u(t.next(a));
5
+ } catch (r) {
6
+ d(r);
7
7
  }
8
- }, n = (a) => {
8
+ }, o = (a) => {
9
9
  try {
10
- o(t.throw(a));
11
- } catch (u) {
12
- c(u);
10
+ u(t.throw(a));
11
+ } catch (r) {
12
+ d(r);
13
13
  }
14
- }, o = (a) => a.done ? l(a.value) : Promise.resolve(a.value).then(i, n);
15
- o((t = t.apply(e, s)).next());
14
+ }, u = (a) => a.done ? l(a.value) : Promise.resolve(a.value).then(i, o);
15
+ u((t = t.apply(e, n)).next());
16
16
  });
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";
17
+ import { defineComponent as A, ref as s, computed as B, watch as F, resolveComponent as v, openBlock as y, createElementBlock as g, createBlock as _, Fragment as N, createElementVNode as M, createVNode as h, 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-53df4c33.mjs";
20
+ import { _ as $ } from "./index-9e1e1e53.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 }
28
28
  },
29
29
  setup(e) {
30
- const { createMessage: s } = P(), t = r(""), l = r(3), c = r(!0), i = r([]), n = r([]), o = r([]), a = r(""), u = B(() => !t.value);
30
+ const { createMessage: n } = P(), t = s(""), l = s(3), d = s(!0), i = s([]), o = s([]), u = s([]), a = s(""), r = B(() => !t.value);
31
31
  F(() => e.cgformId, m, { immediate: !0 });
32
32
  function m() {
33
33
  return f(this, null, function* () {
34
34
  if (!e.cgformId)
35
35
  return;
36
- let d = yield S(e.cgformId, l.value);
37
- o.value = d.map((p) => ({ key: p.id, title: p.ruleName }));
36
+ let c = yield S(e.cgformId, l.value);
37
+ u.value = c.map((p) => ({ key: p.id, title: p.ruleName }));
38
38
  });
39
39
  }
40
- function k(d, p) {
40
+ function k(c, p) {
41
41
  return f(this, null, function* () {
42
- t.value = d, a.value = p, n.value = [], yield m();
42
+ t.value = c, a.value = p, o.value = [], yield m();
43
43
  let T = yield R({
44
- roleId: d,
44
+ roleId: c,
45
45
  cgformId: e.cgformId,
46
46
  type: l.value,
47
47
  authMode: p
48
48
  });
49
- n.value = T.map((w) => w.authId);
49
+ o.value = T.map((w) => w.authId);
50
50
  });
51
51
  }
52
52
  function I() {
@@ -58,25 +58,25 @@ const z = A({
58
58
  function K() {
59
59
  return f(this, null, function* () {
60
60
  yield V(t.value, e.cgformId, {
61
- authId: JSON.stringify(n.value),
61
+ authId: JSON.stringify(o.value),
62
62
  authMode: a.value
63
- }), s.success("保存成功");
63
+ }), n.success("保存成功");
64
64
  });
65
65
  }
66
- function b(d) {
67
- i.value = d, c.value = !1;
66
+ function b(c) {
67
+ i.value = c, d.value = !1;
68
68
  }
69
69
  function x() {
70
- t.value = "", n.value = [];
70
+ t.value = "", o.value = [];
71
71
  }
72
72
  return {
73
73
  loadChecked: k,
74
74
  clear: x,
75
75
  expandedKeys: i,
76
- autoExpandParent: c,
77
- checkedKeys: n,
78
- treeData: o,
79
- disabled: u,
76
+ autoExpandParent: d,
77
+ checkedKeys: o,
78
+ treeData: u,
79
+ disabled: r,
80
80
  onSave: K,
81
81
  onExpand: b,
82
82
  onRefresh: C,
@@ -84,47 +84,47 @@ const z = A({
84
84
  };
85
85
  }
86
86
  });
87
- const q = { class: "onl-auth-tree-btns" };
88
- function J(e, s, t, l, c, i) {
89
- const n = y("a-empty"), o = y("a-button"), a = y("a-tree");
90
- return h(), _("div", null, [
91
- e.disabled ? (h(), g(n, {
87
+ const z = { class: "onl-auth-tree-btns" };
88
+ function J(e, n, t, l, d, i) {
89
+ const o = v("a-empty"), u = v("a-button"), a = v("a-tree");
90
+ return y(), g("div", null, [
91
+ e.disabled ? (y(), _(o, {
92
92
  key: 0,
93
93
  description: "请先选中左侧角色/部门/用户"
94
- })) : e.treeData.length === 0 ? (h(), g(n, {
94
+ })) : e.treeData.length === 0 ? (y(), _(o, {
95
95
  key: 1,
96
96
  description: "无权限信息"
97
- })) : (h(), _(N, { key: 2 }, [
98
- M("div", q, [
99
- v(o, {
97
+ })) : (y(), g(N, { key: 2 }, [
98
+ M("div", z, [
99
+ h(u, {
100
100
  onClick: e.onRefresh,
101
101
  size: "small",
102
102
  type: "primary",
103
103
  preIcon: "ant-design:redo",
104
104
  ghost: ""
105
105
  }, {
106
- default: E(() => [
106
+ default: E(() => n[1] || (n[1] = [
107
107
  D("刷新")
108
- ]),
108
+ ])),
109
109
  _: 1
110
110
  }, 8, ["onClick"]),
111
- v(o, {
111
+ h(u, {
112
112
  onClick: e.onSave,
113
113
  size: "small",
114
114
  type: "primary",
115
115
  preIcon: "ant-design:save",
116
116
  ghost: ""
117
117
  }, {
118
- default: E(() => [
118
+ default: E(() => n[2] || (n[2] = [
119
119
  D("保存")
120
- ]),
120
+ ])),
121
121
  _: 1
122
122
  }, 8, ["onClick"])
123
123
  ]),
124
- v(a, {
124
+ h(a, {
125
125
  checkable: "",
126
126
  checkedKeys: e.checkedKeys,
127
- "onUpdate:checkedKeys": s[0] || (s[0] = (u) => e.checkedKeys = u),
127
+ "onUpdate:checkedKeys": n[0] || (n[0] = (r) => e.checkedKeys = r),
128
128
  expandedKeys: e.expandedKeys,
129
129
  autoExpandParent: e.autoExpandParent,
130
130
  treeData: e.treeData,
@@ -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, f, m) => new Promise((y, k) => {
2
+ var g = (r) => {
3
+ try {
4
+ h(m.next(r));
5
+ } catch (u) {
6
+ k(u);
7
+ }
8
+ }, w = (r) => {
9
+ try {
10
+ h(m.throw(r));
11
+ } catch (u) {
12
+ k(u);
13
+ }
14
+ }, h = (r) => r.done ? y(r.value) : Promise.resolve(r.value).then(g, w);
15
+ h((m = m.apply(s, f)).next());
16
+ });
17
+ import { defineComponent as V, ref as p, watch as q, resolveComponent as L, openBlock as E, createElementBlock as U, createVNode as b, withCtx as C, Fragment as P, createTextVNode as v, createBlock as x, toDisplayString as R } from "vue";
18
+ import { BasicTable as K, useTable as M } from "/@/components/Table";
19
+ import { a as O, b as _, c as j, d as G, e as A } from "./auth.api-53df4c33.mjs";
20
+ import { a as H } from "./auth.data-626c5083.mjs";
21
+ import { _ as J } from "./index-9e1e1e53.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 = V({
28
+ name: "AuthFieldConfig",
29
+ components: { BasicTable: K },
30
+ props: {
31
+ headId: {
32
+ type: String,
33
+ default: "",
34
+ required: !0
35
+ }
36
+ },
37
+ emits: ["update:authFields"],
38
+ setup(s, { emit: f }) {
39
+ const m = p(""), [y, { reload: k, getTableRef: g, setPagination: w }] = M({
40
+ api: $,
41
+ rowKey: "code",
42
+ bordered: !0,
43
+ columns: H,
44
+ showIndexColumn: !1
45
+ }), h = p(!1), r = p(!1), u = p(!1), i = p(!1), c = p(!1), I = p(!1), F = p(!1);
46
+ q(
47
+ () => s.headId,
48
+ (l) => {
49
+ m.value = l.split("?")[0], g().value && w({ current: 1, pageSize: 10 }), k().catch(() => null);
50
+ },
51
+ { immediate: !0 }
52
+ );
53
+ function $(l) {
54
+ return S(this, null, function* () {
55
+ const e = ["id"];
56
+ let n = yield O(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
+ }), f("update:authFields", t), T(l.pageNo, l.pageSize, d), d;
67
+ });
68
+ }
69
+ function N(l, e) {
70
+ return S(this, null, function* () {
71
+ yield _({
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), B();
76
+ });
77
+ }
78
+ function z(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), B();
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 ? (h.value = !0, r.value = !0, u.value = !0, t.forEach((d) => {
101
+ h.value && d.status == 0 && (h.value = !1), r.value && d.listShow == !1 && (r.value = !1), u.value && (d.formEditable == !1 || d.formShow == !1) && (u.value = !1);
102
+ }), r.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) : (h.value = !1, r.value = !1, u.value = !1);
103
+ }
104
+ const B = () => {
105
+ const { current: l, pageSize: e } = g().value.getPaginationRef(), n = g().value.getDataSource();
106
+ T(l, e, n);
107
+ }, D = (l, e) => {
108
+ const n = [], t = g().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: N, onCheckboxChange: z, handleChangeSwitch: (l) => S(this, null, function* () {
119
+ c.value = !0, h.value = l;
120
+ const { current: e, pageSize: n } = g().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 = g().value.getDataSource();
126
+ T(e, n, o);
127
+ }), allSwitch: h, allFormControl: u, allListControl: r, allSloading: i, handleTableChange: (l) => {
128
+ }, handleChangeList: (l) => S(this, null, function* () {
129
+ c.value = !0;
130
+ const e = l.target.checked;
131
+ r.value = e;
132
+ const { current: n, pageSize: t } = g().value.getPaginationRef(), d = D(n, t);
133
+ let o = d.map((a) => ({ cgformId: a.cgformId, code: a.code, switchFlag: 1, listShow: !!e }));
134
+ yield A(o), d.forEach((a) => {
135
+ a.listShow = !!e, a.listShow === !1 && a.formShow === !1 && a.formEditable === !1 && (a.status = 0, h.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 } = g().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 A(o), d.forEach((a) => {
145
+ a.formEditable = !!e, a.formShow = !!e, a.listShow === !1 && a.formShow === !1 && a.formEditable === !1 && (a.status = 0, h.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, f, m, y, k, g) {
152
+ const w = L("a-switch"), h = L("a-checkbox"), r = L("BasicTable");
153
+ return E(), U("div", W, [
154
+ b(r, {
155
+ onRegister: s.registerTable,
156
+ onChange: s.handleTableChange,
157
+ loading: s.tableLoading
158
+ }, {
159
+ headerCell: C(({ column: u }) => [
160
+ u.dataIndex === "switch" ? (E(), U(P, { key: 0 }, [
161
+ b(w, {
162
+ loading: s.allSloading,
163
+ checked: s.allSwitch,
164
+ "onUpdate:checked": f[0] || (f[0] = (i) => s.allSwitch = i),
165
+ size: "small",
166
+ onChange: s.handleChangeSwitch
167
+ }, null, 8, ["loading", "checked", "onChange"]),
168
+ f[3] || (f[3] = v("启用 "))
169
+ ], 64)) : u.dataIndex === "list" ? (E(), x(h, {
170
+ key: 1,
171
+ indeterminate: s.listIndeterminate,
172
+ checked: s.allListControl,
173
+ "onUpdate:checked": f[1] || (f[1] = (i) => s.allListControl = i),
174
+ disabled: !s.allSwitch,
175
+ onChange: s.handleChangeList
176
+ }, {
177
+ default: C(() => [
178
+ v(R(u.customTitle), 1)
179
+ ]),
180
+ _: 2
181
+ }, 1032, ["indeterminate", "checked", "disabled", "onChange"])) : u.dataIndex === "form" ? (E(), x(h, {
182
+ key: 2,
183
+ indeterminate: s.formIndeterminate,
184
+ checked: s.allFormControl,
185
+ "onUpdate:checked": f[2] || (f[2] = (i) => s.allFormControl = i),
186
+ disabled: !s.allSwitch,
187
+ onChange: s.handleChangeForm
188
+ }, {
189
+ default: C(() => [
190
+ v(R(u.customTitle), 1)
191
+ ]),
192
+ _: 2
193
+ }, 1032, ["indeterminate", "checked", "disabled", "onChange"])) : (E(), U(P, { key: 3 }, [
194
+ v(R(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(h, {
206
+ checked: i.listShow,
207
+ disabled: i.status === 0,
208
+ onChange: (c) => s.onCheckboxChange(c, i, 1)
209
+ }, {
210
+ default: C(() => f[4] || (f[4] = [
211
+ v(" 可见 ")
212
+ ])),
213
+ _: 2
214
+ }, 1032, ["checked", "disabled", "onChange"])
215
+ ]),
216
+ form: C(({ text: u, record: i }) => [
217
+ b(h, {
218
+ checked: i.formShow,
219
+ disabled: i.status === 0,
220
+ onChange: (c) => s.onCheckboxChange(c, i, 2)
221
+ }, {
222
+ default: C(() => f[5] || (f[5] = [
223
+ v(" 可见 ")
224
+ ])),
225
+ _: 2
226
+ }, 1032, ["checked", "disabled", "onChange"]),
227
+ b(h, {
228
+ checked: i.formEditable,
229
+ disabled: i.status === 0,
230
+ onChange: (c) => s.onCheckboxChange(c, i, 3)
231
+ }, {
232
+ default: C(() => f[6] || (f[6] = [
233
+ v(" 可编辑 ")
234
+ ])),
235
+ _: 2
236
+ }, 1032, ["checked", "disabled", "onChange"])
237
+ ]),
238
+ _: 1
239
+ }, 8, ["onRegister", "onChange", "loading"])
240
+ ]);
241
+ }
242
+ const ce = /* @__PURE__ */ J(Q, [["render", X], ["__scopeId", "data-v-c48da65c"]]);
243
+ export {
244
+ ce as default
245
+ };
@@ -0,0 +1,232 @@
1
+ var E = (e, n, d) => new Promise((C, y) => {
2
+ var p = (u) => {
3
+ try {
4
+ l(d.next(u));
5
+ } catch (s) {
6
+ y(s);
7
+ }
8
+ }, a = (u) => {
9
+ try {
10
+ l(d.throw(u));
11
+ } catch (s) {
12
+ y(s);
13
+ }
14
+ }, l = (u) => u.done ? C(u.value) : Promise.resolve(u.value).then(p, a);
15
+ l((d = d.apply(e, n)).next());
16
+ });
17
+ import { defineComponent as P, ref as f, computed as R, watch as V, unref as $, resolveComponent as m, openBlock as _, createElementBlock as A, createBlock as b, Fragment as q, createElementVNode as H, createVNode as r, withCtx as h, createTextVNode as k } from "vue";
18
+ import { useMessage as J } from "/@/hooks/web/useMessage";
19
+ import { m as L, n as j, s as G } from "./auth.api-53df4c33.mjs";
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-9e1e1e53.mjs";
22
+ import "/@/utils/http/axios";
23
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
24
+ import "vue-router";
25
+ const ne = P({
26
+ name: "AuthFieldTree",
27
+ components: {
28
+ DownCircleOutlined: Q,
29
+ HomeOutlined: W,
30
+ UpCircleOutlined: X,
31
+ UndoOutlined: Y,
32
+ CheckOutlined: Z
33
+ },
34
+ props: {
35
+ cgformId: { type: String, required: !0 }
36
+ },
37
+ setup(e) {
38
+ const { createMessage: n } = J(), d = f(""), C = f(1), y = f(!0), p = f([]), a = f([]), l = f([]), u = f([]), s = f(""), O = R(() => !d.value);
39
+ V(() => e.cgformId, v, { immediate: !0 });
40
+ function v() {
41
+ return E(this, null, function* () {
42
+ if (!e.cgformId)
43
+ return;
44
+ let t = yield L(e.cgformId, C.value), o = [], i = [];
45
+ t.forEach((c) => {
46
+ i.includes(c.code) || (i.push(c.code), o.push({ key: c.code, title: c.title }));
47
+ });
48
+ for (let c of o) {
49
+ let I = [];
50
+ for (let F of t)
51
+ if (c.key === F.code) {
52
+ let M = D(F);
53
+ I.push({ key: F.id, title: M });
54
+ }
55
+ c.children = I;
56
+ }
57
+ u.value = o, p.value = [...i], l.value = i;
58
+ });
59
+ }
60
+ function D(t) {
61
+ let o = "";
62
+ return t.page == 3 ? o += "列表" : t.page == 5 && (o += "表单"), t.control == 3 ? o += "可编辑" : t.control == 5 && (o += "可见"), o;
63
+ }
64
+ function g(t, o) {
65
+ return E(this, null, function* () {
66
+ d.value = t, s.value = o, a.value = [], yield v();
67
+ let i = yield j({
68
+ roleId: t,
69
+ cgformId: e.cgformId,
70
+ type: C.value,
71
+ authMode: o
72
+ });
73
+ a.value = i.map((c) => c.authId);
74
+ });
75
+ }
76
+ function K() {
77
+ d.value = "", v();
78
+ }
79
+ function w() {
80
+ v(), g(d.value, s.value);
81
+ }
82
+ function T() {
83
+ return E(this, null, function* () {
84
+ let t = a.value.filter((o) => l.value.indexOf(o) < 0);
85
+ yield G(d.value, e.cgformId, {
86
+ authId: JSON.stringify(t),
87
+ authMode: s.value
88
+ }), n.success("保存成功");
89
+ });
90
+ }
91
+ function S() {
92
+ p.value = [...l.value];
93
+ }
94
+ function x() {
95
+ p.value = [];
96
+ }
97
+ function U(t) {
98
+ p.value = t, y.value = !1;
99
+ }
100
+ function z() {
101
+ d.value = "", a.value = [];
102
+ }
103
+ function B() {
104
+ a.value = [];
105
+ }
106
+ function N() {
107
+ const t = function(o) {
108
+ for (let i of o)
109
+ a.value.push(i.key), i.children && i.children.length > 0 && t.call(null, i.children);
110
+ };
111
+ a.value = [], t.call(null, $(u));
112
+ }
113
+ return {
114
+ loadChecked: g,
115
+ clear: z,
116
+ expandedKeys: p,
117
+ autoExpandParent: y,
118
+ checkedKeys: a,
119
+ treeData: u,
120
+ disabled: O,
121
+ onSave: T,
122
+ onExpand: U,
123
+ clearChecked: K,
124
+ onCloseAll: x,
125
+ onExpandAll: S,
126
+ onRefresh: w,
127
+ onClearSelected: B,
128
+ onSelectAll: N
129
+ };
130
+ }
131
+ });
132
+ const te = { class: "onl-auth-tree-btns" };
133
+ function oe(e, n, d, C, y, p) {
134
+ const a = m("a-empty"), l = m("a-button"), u = m("DownCircleOutlined"), s = m("UpCircleOutlined"), O = m("CheckOutlined"), v = m("UndoOutlined"), D = m("a-tree");
135
+ return _(), A("div", null, [
136
+ e.disabled ? (_(), b(a, {
137
+ key: 0,
138
+ description: "请先选中左侧角色/部门/用户"
139
+ })) : e.treeData.length === 0 ? (_(), b(a, {
140
+ key: 1,
141
+ description: "无权限信息"
142
+ })) : (_(), A(q, { key: 2 }, [
143
+ H("div", te, [
144
+ r(l, {
145
+ onClick: e.onRefresh,
146
+ size: "small",
147
+ type: "primary",
148
+ preIcon: "ant-design:redo",
149
+ ghost: ""
150
+ }, {
151
+ default: h(() => n[1] || (n[1] = [
152
+ k("刷新")
153
+ ])),
154
+ _: 1
155
+ }, 8, ["onClick"]),
156
+ r(l, {
157
+ onClick: e.onExpandAll,
158
+ size: "small",
159
+ type: "primary",
160
+ ghost: ""
161
+ }, {
162
+ default: h(() => [
163
+ r(u),
164
+ n[2] || (n[2] = k("展开"))
165
+ ]),
166
+ _: 1
167
+ }, 8, ["onClick"]),
168
+ r(l, {
169
+ onClick: e.onCloseAll,
170
+ size: "small",
171
+ type: "primary",
172
+ ghost: ""
173
+ }, {
174
+ default: h(() => [
175
+ r(s),
176
+ n[3] || (n[3] = k("折叠"))
177
+ ]),
178
+ _: 1
179
+ }, 8, ["onClick"]),
180
+ r(l, {
181
+ onClick: e.onSave,
182
+ size: "small",
183
+ type: "primary",
184
+ preIcon: "ant-design:save",
185
+ ghost: ""
186
+ }, {
187
+ default: h(() => n[4] || (n[4] = [
188
+ k("保存")
189
+ ])),
190
+ _: 1
191
+ }, 8, ["onClick"]),
192
+ r(l, {
193
+ onClick: e.onSelectAll,
194
+ size: "small",
195
+ type: "primary",
196
+ ghost: ""
197
+ }, {
198
+ default: h(() => [
199
+ r(O),
200
+ n[5] || (n[5] = k("全选"))
201
+ ]),
202
+ _: 1
203
+ }, 8, ["onClick"]),
204
+ r(l, {
205
+ onClick: e.onClearSelected,
206
+ size: "small",
207
+ type: "primary",
208
+ ghost: ""
209
+ }, {
210
+ default: h(() => [
211
+ r(v),
212
+ n[6] || (n[6] = k("重置"))
213
+ ]),
214
+ _: 1
215
+ }, 8, ["onClick"])
216
+ ]),
217
+ r(D, {
218
+ checkable: "",
219
+ checkedKeys: e.checkedKeys,
220
+ "onUpdate:checkedKeys": n[0] || (n[0] = (g) => e.checkedKeys = g),
221
+ expandedKeys: e.expandedKeys,
222
+ autoExpandParent: e.autoExpandParent,
223
+ treeData: e.treeData,
224
+ onExpand: e.onExpand
225
+ }, null, 8, ["checkedKeys", "expandedKeys", "autoExpandParent", "treeData", "onExpand"])
226
+ ], 64))
227
+ ]);
228
+ }
229
+ const fe = /* @__PURE__ */ ee(ne, [["render", oe], ["__scopeId", "data-v-e6dabb1d"]]);
230
+ export {
231
+ fe as default
232
+ };
@@ -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-f1e224cc.mjs";
4
+ import w from "./AuthButtonConfig-d5bffca0.mjs";
5
+ import T from "./AuthDataConfig-d3b7afa4.mjs";
6
+ import { _ as k } from "./index-9e1e1e53.mjs";
7
7
  import "/@/components/Table";
8
- import "./auth.api-d3a6c4b3.mjs";
8
+ import "./auth.api-53df4c33.mjs";
9
9
  import "/@/utils/http/axios";
10
- import "./auth.data-22948e87.mjs";
10
+ import "./auth.data-626c5083.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
  };