@jeecg/online 3.9.0-beta2 → 3.9.1-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 (170) hide show
  1. package/{AccountLoginForm-634a76b1.mjs → AccountLoginForm-BQNZnal-.mjs} +50 -53
  2. package/{AiModal-204a2146.mjs → AiModal-Dj6smA0D.mjs} +18 -20
  3. package/{AppForgetPassword-f9a6258a.mjs → AppForgetPassword-DETh8QGQ.mjs} +59 -63
  4. package/AppLogin-Core4rl7.mjs +272 -0
  5. package/AppLoginHeader-DkMH3nDB.mjs +23 -0
  6. package/{AppNameEmail-54026ea8.mjs → AppNameEmail-DZeWwYlf.mjs} +20 -24
  7. package/{AppRegister-043efc45.mjs → AppRegister-DpQVSbzm.mjs} +33 -37
  8. package/{AppTenant-c7bb8700.mjs → AppTenant-BV1ztSwV.mjs} +49 -55
  9. package/AppThirdForm-C6uV5Gzd.mjs +185 -0
  10. package/AuthButtonConfig-CpQ38BcP.mjs +155 -0
  11. package/AuthButtonTree-CQIeTMAV.mjs +159 -0
  12. package/{AuthDataConfig-3cd10ca2.mjs → AuthDataConfig-C63dpxCs.mjs} +57 -62
  13. package/AuthDataTree-CTip8ZtW.mjs +134 -0
  14. package/{AuthFieldConfig-bb65f78b.mjs → AuthFieldConfig-CRGCjoXB.mjs} +95 -101
  15. package/{AuthFieldTree-3e38b12b.mjs → AuthFieldTree-Bpj9QUm6.mjs} +94 -99
  16. package/AuthManagerDrawer-Du8Hr9bQ.mjs +108 -0
  17. package/{AuthSetterModal-f176c221.mjs → AuthSetterModal-BJzwhsZn.mjs} +89 -100
  18. package/BuiltInButtonList-Cgg5maxI.mjs +4 -0
  19. package/{BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs → BuiltInButtonList.vue_vue_type_script_setup_true_lang-5-4hU0bi.mjs} +8 -8
  20. package/{CgformAddressModal-a3903b24.mjs → CgformAddressModal-DOcieUw2.mjs} +57 -63
  21. package/CgformCopyList-BanghzBW.mjs +176 -0
  22. package/{CgformModal-115710a6.mjs → CgformModal-xktwfaX1.mjs} +240 -241
  23. package/{CgreportAigcModal-3bef8abe.mjs → CgreportAigcModal-g925RtBH.mjs} +35 -38
  24. package/{CgreportModal-0cc48587.mjs → CgreportModal-GXyoH79T.mjs} +49 -50
  25. package/{CheckDictTable-65157c48.mjs → CheckDictTable-DUdNJrAx.mjs} +44 -52
  26. package/{CodeFileListModal-305c1a62.mjs → CodeFileListModal-CFDK1gP9.mjs} +32 -36
  27. package/{CodeFileViewModal-320d7acf.mjs → CodeFileViewModal-uGoHy1QM.mjs} +78 -81
  28. package/CodeGeneratorModal-viKXvb1o.mjs +291 -0
  29. package/{CustomButtonList-98db8fd2.mjs → CustomButtonList-BBihaOG7.mjs} +82 -85
  30. package/{DBAttributeTable-56701599.mjs → DBAttributeTable-BqVDPbcC.mjs} +50 -60
  31. package/{DbToOnlineModal-a82cdeb5.mjs → DbToOnlineModal-BFIu1ZAg.mjs} +43 -45
  32. package/DetailForm-Gp8NeqBh.mjs +472 -0
  33. package/{DropMenuItem-b3a9cd6a.mjs → DropMenuItem-DVbpiw9y.mjs} +8 -11
  34. package/EnhanceJavaModal-DhDf7GhT.mjs +255 -0
  35. package/{EnhanceJsHistory-bb6ba865.mjs → EnhanceJsHistory-De17P14L.mjs} +48 -49
  36. package/{EnhanceJsModal-b0527cbf.mjs → EnhanceJsModal-BPBW520t.mjs} +95 -104
  37. package/EnhanceSqlModal-D3bXi6z4.mjs +258 -0
  38. package/ErrorTip-BDS1uxkW.mjs +4 -0
  39. package/{ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs → ErrorTip.vue_vue_type_script_setup_true_lang-Bl9zMjvW.mjs} +11 -11
  40. package/ExtendConfigModal-Be-gEamS.mjs +102 -0
  41. package/{FieldExtendJsonModal-536e6d5b.mjs → FieldExtendJsonModal-C9MvnALf.mjs} +27 -30
  42. package/{FileSelectModal-eb026170.mjs → FileSelectModal-DynYW6cD.mjs} +27 -31
  43. package/{ForeignKeyTable-97a5827f.mjs → ForeignKeyTable-CkyhWTGf.mjs} +17 -25
  44. package/{IndexTable-4d350e4e.mjs → IndexTable-C_17s8Lj.mjs} +9 -17
  45. package/JModalTip-VeUmOvUx.mjs +46 -0
  46. package/{JOnlineSearchSelect-ffeac61d.mjs → JOnlineSearchSelect-Dqht_jA7.mjs} +21 -23
  47. package/{LeftDepart-a727aab7.mjs → LeftDepart-TEh4ybua.mjs} +8 -11
  48. package/{LeftRole-b533dcf6.mjs → LeftRole-DhQUYRZN.mjs} +16 -19
  49. package/{LeftUser-aaac52cb.mjs → LeftUser-CzR0qnp5.mjs} +7 -10
  50. package/{LinkTableConfigModal-4053b62d.mjs → LinkTableConfigModal-5WVlPPIx.mjs} +38 -40
  51. package/{LinkTableFieldConfigModal-93552099.mjs → LinkTableFieldConfigModal-ZG9xTFfN.mjs} +50 -52
  52. package/LinkTableListPiece-DrNSark7.mjs +31 -0
  53. package/{ModalFormDemo-b8478356.mjs → ModalFormDemo-7uSpoHXT.mjs} +13 -16
  54. package/{OnlCgformErpList-b0605798.mjs → OnlCgformErpList-zAxYY8ts.mjs} +139 -199
  55. package/OnlCgformErpSubTable-HAaY8yX0.mjs +382 -0
  56. package/OnlCgformInnerSubTable-DQbA0oPy.mjs +213 -0
  57. package/OnlCgformInnerTableList-BMA9YKHb.mjs +421 -0
  58. package/OnlCgformTabList-BSd0KkxQ.mjs +371 -0
  59. package/OnlineAutoList-CoUnzGtI.mjs +500 -0
  60. package/OnlineAutoModal-B5XvLBiD.mjs +222 -0
  61. package/{OnlineAutoTreeList-624106c1.mjs → OnlineAutoTreeList-umZhoErd.mjs} +124 -181
  62. package/OnlineCustomModal-DDbFQrQY.mjs +209 -0
  63. package/OnlineDetailModal-DrOui3kM.mjs +160 -0
  64. package/{OnlineForm-86b5966d.mjs → OnlineForm-XYVwvG5y.mjs} +47 -73
  65. package/OnlineFormDetail-B_zriMe5.mjs +321 -0
  66. package/OnlineFormUrlAdd-D_NQnALZ.mjs +86 -0
  67. package/OnlineFormUrlDetail-Dq0L-5DU.mjs +85 -0
  68. package/OnlineFormUrlEdit-D5KWDhC9.mjs +84 -0
  69. package/{OnlineFormUrlSuccess-0c2431a4.mjs → OnlineFormUrlSuccess-S-ko5YNj.mjs} +27 -30
  70. package/{OnlineQueryForm-3017a4ca.mjs → OnlineQueryForm-DEZu3hUq.mjs} +139 -167
  71. package/{OnlineSearchFormItem-1b54585f.mjs → OnlineSearchFormItem-D9rUfuZo.mjs} +112 -118
  72. package/{OnlineSelectCascade-fab4426d.mjs → OnlineSelectCascade-BWTVAfOS.mjs} +31 -33
  73. package/OnlineSubFormDetail-BQCmvSrP.mjs +109 -0
  74. package/OnlineTabAutoModal-Cz0UIpcl.mjs +285 -0
  75. package/OnlineTabDetailModal-DXtO4NSY.mjs +187 -0
  76. package/{OnlineTabForm-5c04cbc5.mjs → OnlineTabForm-CtoX9jVn.mjs} +228 -253
  77. package/OnlineTabFormDetail-BZzXzM64.mjs +299 -0
  78. package/{PageAttributeTable-18aabf81.mjs → PageAttributeTable-8udeqqVG.mjs} +46 -59
  79. package/{PhoneLoginForm-4a9d7869.mjs → PhoneLoginForm-BZXf1qlC.mjs} +40 -43
  80. package/ProcessOnlineForm-B5PeLMHK.mjs +182 -0
  81. package/{QueryTable-342fd89a.mjs → QueryTable-ChFnaZj3.mjs} +23 -31
  82. package/SetSwitchOptions-CVRgZH8g.mjs +58 -0
  83. package/ShareAddView-Bje0Nb4M.mjs +11 -0
  84. package/ShareEditView-CLs8Cg0I.mjs +17 -0
  85. package/ShareView-BazttKrG.mjs +4 -0
  86. package/{ShareView.vue_vue_type_script_setup_true_lang-9ea579c2.mjs → ShareView.vue_vue_type_script_setup_true_lang-B2o9S6nG.mjs} +21 -21
  87. package/SingleView-DfwENTBN.mjs +4 -0
  88. package/{SingleView.vue_vue_type_style_index_0_lang-24d417dc.mjs → SingleView.vue_vue_type_style_index_0_lang-C0TAVO6d.mjs} +27 -27
  89. package/{SuperQuery-270b0968.mjs → SuperQuery-D-nFsX69.mjs} +342 -370
  90. package/SuperQueryValComponent-UO10kRg5.mjs +4 -0
  91. package/TaskOpinionList-eOcI0in3.mjs +10 -0
  92. package/{aiModal-e7362c3f.mjs → aiModal-CbxEF4yF.mjs} +33 -36
  93. package/{enhance.data-6601ff44.mjs → enhance.data-DRCzy5Bx.mjs} +5 -5
  94. package/{index-e2c3e6f3.mjs → index-BZY_jOoG.mjs} +474 -608
  95. package/{index-6d1a78e2.mjs → index-BnYLB1_h.mjs} +32 -36
  96. package/{index-b5fe9bd4.mjs → index-CY2fowrc.mjs} +17 -20
  97. package/{index-b811abb9.mjs → index-CfxrjmZ5.mjs} +35 -38
  98. package/{index-d95bb7c2.mjs → index-ClcEPtNS.mjs} +32 -44
  99. package/index-DyY6izsu.mjs +195 -0
  100. package/{index-19eaef11.mjs → index-dmWvLQET.mjs} +2 -2
  101. package/index-oWamYvLb.mjs +56 -0
  102. package/main.index.js +6 -9
  103. package/online.css +1 -0
  104. package/package.json +1 -1
  105. package/{useCgformList-6d5547ff.mjs → useCgformList-23f3R71E.mjs} +3 -3
  106. package/useExtendComponent-D3N4jqMD.mjs +4479 -0
  107. package/{useListButton-73071548.mjs → useListButton-BaTZwDMS.mjs} +7 -9
  108. package/{useSchemas-b074f3a1.mjs → useSchemas-svH7q1tm.mjs} +69 -42
  109. package/{useTableSync-dbfba20e.mjs → useTableSync-BAWujyoc.mjs} +1 -1
  110. package/{utils-9fce7606.mjs → utils-DcQ65Qmw.mjs} +1 -1
  111. package/AppLogin-bf783eab.mjs +0 -287
  112. package/AppLoginHeader-55594326.mjs +0 -27
  113. package/AppThirdForm-5e7e1144.mjs +0 -189
  114. package/AuthButtonConfig-4887be0d.mjs +0 -160
  115. package/AuthButtonTree-7e47b44b.mjs +0 -165
  116. package/AuthDataTree-714c259c.mjs +0 -139
  117. package/AuthManagerDrawer-dee39b07.mjs +0 -119
  118. package/BuiltInButtonList-bb6cf95c.mjs +0 -10
  119. package/CgformCopyList-4be1000f.mjs +0 -259
  120. package/CodeGeneratorModal-2ba18bd1.mjs +0 -298
  121. package/DetailForm-7d4f630e.mjs +0 -497
  122. package/EnhanceJavaModal-469e645e.mjs +0 -264
  123. package/EnhanceSqlModal-c6e8bce1.mjs +0 -268
  124. package/ErrorTip-bb616e32.mjs +0 -7
  125. package/ExtendConfigModal-7b00b49a.mjs +0 -117
  126. package/JModalTip-c3e6726c.mjs +0 -49
  127. package/LinkTableListPiece-0f4ca559.mjs +0 -34
  128. package/OnlCgformErpSubTable-89699bc9.mjs +0 -443
  129. package/OnlCgformInnerSubTable-f2722f77.mjs +0 -269
  130. package/OnlCgformInnerTableList-992aa7e9.mjs +0 -481
  131. package/OnlCgformTabList-882a0e0c.mjs +0 -431
  132. package/OnlineAutoList-caedb54a.mjs +0 -558
  133. package/OnlineAutoModal-a0d1a6b8.mjs +0 -260
  134. package/OnlineCustomModal-f4e17bed.mjs +0 -246
  135. package/OnlineDetailModal-35394778.mjs +0 -198
  136. package/OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs +0 -1
  137. package/OnlineFormDetail-4b3ad130.mjs +0 -349
  138. package/OnlineFormUrlAdd-708c91fb.mjs +0 -116
  139. package/OnlineFormUrlDetail-5c8efaeb.mjs +0 -121
  140. package/OnlineFormUrlEdit-8f08474e.mjs +0 -114
  141. package/OnlineSubFormDetail-bbc48c3e.mjs +0 -147
  142. package/OnlineTabAutoModal-b0f9fce8.mjs +0 -319
  143. package/OnlineTabDetailModal-401a26ad.mjs +0 -226
  144. package/OnlineTabFormDetail-2a28febf.mjs +0 -328
  145. package/ProcessOnlineForm-0ddce4fb.mjs +0 -218
  146. package/SetSwitchOptions-e1d5a6b4.mjs +0 -62
  147. package/ShareAddView-a5154da3.mjs +0 -88
  148. package/ShareEditView-cf761cf3.mjs +0 -94
  149. package/ShareView-3b2f5457.mjs +0 -82
  150. package/SingleView-3cab20a9.mjs +0 -70
  151. package/SuperQueryValComponent-5a9ccfd4.mjs +0 -8
  152. package/TaskOpinionList-60cf4080.mjs +0 -13
  153. package/index-740b2c4a.mjs +0 -57
  154. package/index-8fd12d0f.mjs +0 -219
  155. package/style.css +0 -1
  156. package/useExtendComponent-95ce0719.mjs +0 -4460
  157. /package/{SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs → SuperQueryValComponent.vue_vue_type_script_lang-BM-iwlLi.mjs} +0 -0
  158. /package/{auth.api-53df4c33.mjs → auth.api-2QmzY0ji.mjs} +0 -0
  159. /package/{auth.data-e44c7975.mjs → auth.data-Cp8D9uZ7.mjs} +0 -0
  160. /package/{button.data-fe45d43b.mjs → button.data-CyUX77GQ.mjs} +0 -0
  161. /package/{cgform.data-0ca62d09.mjs → cgform.data-CviSPXEg.mjs} +0 -0
  162. /package/{cgformState-d9f8ec42.mjs → cgformState-CUyRXfhW.mjs} +0 -0
  163. /package/{constant-fa63bd66.mjs → constant-DnbpmwZg.mjs} +0 -0
  164. /package/{enhance.api-138e6826.mjs → enhance.api-BqHb-YGL.mjs} +0 -0
  165. /package/{index-5e89258d.mjs → index-aVGkB_J9.mjs} +0 -0
  166. /package/{shareStore-7de6c7a6.mjs → shareStore-k-kzyga5.mjs} +0 -0
  167. /package/{useCustomHook-3a17a690.mjs → useCustomHook-B35kFqDB.mjs} +0 -0
  168. /package/{useFormUrl-2ee1a82d.mjs → useFormUrl-D8ASmaz6.mjs} +0 -0
  169. /package/{useOnlinePopEvent-687070b7.mjs → useOnlinePopEvent-FOvbs0Ta.mjs} +0 -0
  170. /package/{useOnlineTest-e4bd8be3.mjs → useOnlineTest-_onDRxjY.mjs} +0 -0
@@ -0,0 +1,159 @@
1
+ var h = (e, o, l) => new Promise((d, f) => {
2
+ var m = (r) => {
3
+ try {
4
+ n(l.next(r));
5
+ } catch (c) {
6
+ f(c);
7
+ }
8
+ }, u = (r) => {
9
+ try {
10
+ n(l.throw(r));
11
+ } catch (c) {
12
+ f(c);
13
+ }
14
+ }, n = (r) => r.done ? d(r.value) : Promise.resolve(r.value).then(m, u);
15
+ n((l = l.apply(e, o)).next());
16
+ });
17
+ import { defineComponent as D, ref as i, computed as M, watch as S, resolveComponent as g, createElementBlock as I, openBlock as v, createBlock as E, Fragment as P, createElementVNode as $, createVNode as k, withCtx as C, createTextVNode as K } from "vue";
18
+ import { useMessage as R } from "/@/hooks/web/useMessage";
19
+ import { c as V } from "./auth.data-Cp8D9uZ7.mjs";
20
+ import { o as z, n as F, p as L } from "./auth.api-2QmzY0ji.mjs";
21
+ import { _ as j } from "./index-oWamYvLb.mjs";
22
+ const q = D({
23
+ name: "AuthButtonTree",
24
+ props: {
25
+ cgformId: { type: String, required: !0 }
26
+ },
27
+ setup(e) {
28
+ const { createMessage: o, createSuccessModal: l } = R(), d = i(""), f = i(2), m = i(!0), u = i([]), n = i([]), r = i([]), c = i(""), _ = M(() => !d.value);
29
+ S(() => e.cgformId, y, { immediate: !0 });
30
+ function y() {
31
+ return h(this, null, function* () {
32
+ if (!e.cgformId) return;
33
+ let t = yield z(e.cgformId, f.value);
34
+ t.forEach((a) => {
35
+ for (const p of V)
36
+ if (a.code == p.code) {
37
+ a.title || (a.title = p.title);
38
+ break;
39
+ }
40
+ });
41
+ let s = [];
42
+ for (let a of t) {
43
+ let p = N(a);
44
+ s.push({ key: a.id, title: p });
45
+ }
46
+ r.value = s;
47
+ });
48
+ }
49
+ function x() {
50
+ y(), b(d.value, c.value);
51
+ }
52
+ function b(t, s) {
53
+ return h(this, null, function* () {
54
+ d.value = t, c.value = s, n.value = [], yield y();
55
+ let a = yield F({
56
+ roleId: t,
57
+ cgformId: e.cgformId,
58
+ type: f.value,
59
+ authMode: s
60
+ });
61
+ n.value = a.map((p) => p.authId);
62
+ });
63
+ }
64
+ function B() {
65
+ d.value = "", y();
66
+ }
67
+ function T() {
68
+ return h(this, null, function* () {
69
+ try {
70
+ const { success: t, message: s, result: a } = yield L(d.value, e.cgformId, {
71
+ authId: JSON.stringify(n.value),
72
+ authMode: c.value
73
+ });
74
+ t ? Array.isArray(a == null ? void 0 : a.disabledNames) ? l({
75
+ title: "保存成功",
76
+ content: `由于以下按钮未激活,所以权限未生效。<br>${a.disabledNames.join("<br>")}`
77
+ }) : o.success("保存成功") : o.error(s);
78
+ } catch (t) {
79
+ o.error("保存出现异常");
80
+ }
81
+ });
82
+ }
83
+ function N(t) {
84
+ let s = t.title + "-";
85
+ return t.code && t.code.includes("form_sub") ? s += "表单可见(附表)" : t.page == 3 ? s += "列表可见" : t.page == 5 && (s += "表单可见"), s;
86
+ }
87
+ function w(t) {
88
+ u.value = t, m.value = !1;
89
+ }
90
+ function A() {
91
+ d.value = "", n.value = [];
92
+ }
93
+ return {
94
+ loadChecked: b,
95
+ clear: A,
96
+ expandedKeys: u,
97
+ autoExpandParent: m,
98
+ checkedKeys: n,
99
+ treeData: r,
100
+ disabled: _,
101
+ onSave: T,
102
+ onExpand: w,
103
+ onRefresh: x,
104
+ clearChecked: B
105
+ };
106
+ }
107
+ }), J = { class: "onl-auth-tree-btns" };
108
+ function O(e, o, l, d, f, m) {
109
+ const u = g("a-empty"), n = g("a-button"), r = g("a-tree");
110
+ return v(), I("div", null, [
111
+ e.disabled ? (v(), E(u, {
112
+ key: 0,
113
+ description: "请先选中左侧角色/部门/用户"
114
+ })) : e.treeData.length === 0 ? (v(), E(u, {
115
+ key: 1,
116
+ description: "无权限信息"
117
+ })) : (v(), I(P, { key: 2 }, [
118
+ $("div", J, [
119
+ k(n, {
120
+ onClick: e.onRefresh,
121
+ size: "small",
122
+ type: "primary",
123
+ preIcon: "ant-design:redo",
124
+ ghost: ""
125
+ }, {
126
+ default: C(() => [...o[1] || (o[1] = [
127
+ K("刷新", -1)
128
+ ])]),
129
+ _: 1
130
+ }, 8, ["onClick"]),
131
+ k(n, {
132
+ onClick: e.onSave,
133
+ size: "small",
134
+ type: "primary",
135
+ preIcon: "ant-design:save",
136
+ ghost: ""
137
+ }, {
138
+ default: C(() => [...o[2] || (o[2] = [
139
+ K("保存", -1)
140
+ ])]),
141
+ _: 1
142
+ }, 8, ["onClick"])
143
+ ]),
144
+ k(r, {
145
+ checkable: "",
146
+ checkedKeys: e.checkedKeys,
147
+ "onUpdate:checkedKeys": o[0] || (o[0] = (c) => e.checkedKeys = c),
148
+ expandedKeys: e.expandedKeys,
149
+ autoExpandParent: e.autoExpandParent,
150
+ treeData: e.treeData,
151
+ onExpand: e.onExpand
152
+ }, null, 8, ["checkedKeys", "expandedKeys", "autoExpandParent", "treeData", "onExpand"])
153
+ ], 64))
154
+ ]);
155
+ }
156
+ const Y = /* @__PURE__ */ j(q, [["render", O], ["__scopeId", "data-v-b62449eb"]]);
157
+ export {
158
+ Y as default
159
+ };
@@ -1,52 +1,47 @@
1
1
  var K = Object.defineProperty, Q = Object.defineProperties;
2
2
  var H = Object.getOwnPropertyDescriptors;
3
- var F = Object.getOwnPropertySymbols;
3
+ var M = Object.getOwnPropertySymbols;
4
4
  var W = Object.prototype.hasOwnProperty, X = Object.prototype.propertyIsEnumerable;
5
- var M = (t, n, o) => n in t ? K(t, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[n] = o, S = (t, n) => {
6
- for (var o in n || (n = {}))
7
- W.call(n, o) && M(t, o, n[o]);
8
- if (F)
9
- for (var o of F(n))
10
- X.call(n, o) && M(t, o, n[o]);
5
+ var S = (t, n, a) => n in t ? K(t, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[n] = a, k = (t, n) => {
6
+ for (var a in n || (n = {}))
7
+ W.call(n, a) && S(t, a, n[a]);
8
+ if (M)
9
+ for (var a of M(n))
10
+ X.call(n, a) && S(t, a, n[a]);
11
11
  return t;
12
- }, k = (t, n) => Q(t, H(n));
13
- var A = (t, n, o) => new Promise((c, f) => {
14
- var p = (a) => {
12
+ }, y = (t, n) => Q(t, H(n));
13
+ var A = (t, n, a) => new Promise((c, f) => {
14
+ var p = (o) => {
15
15
  try {
16
- i(o.next(a));
16
+ i(a.next(o));
17
17
  } catch (l) {
18
18
  f(l);
19
19
  }
20
- }, g = (a) => {
20
+ }, g = (o) => {
21
21
  try {
22
- i(o.throw(a));
22
+ i(a.throw(o));
23
23
  } catch (l) {
24
24
  f(l);
25
25
  }
26
- }, i = (a) => a.done ? c(a.value) : Promise.resolve(a.value).then(p, g);
27
- i((o = o.apply(t, n)).next());
26
+ }, i = (o) => o.done ? c(o.value) : Promise.resolve(o.value).then(p, g);
27
+ i((a = a.apply(t, n)).next());
28
28
  });
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 u, withCtx as d, createTextVNode as ae, mergeProps as ie } from "vue";
30
- import { BasicTable as le, TableAction as se, useTable as re } from "/@/components/Table";
29
+ import { defineComponent as Y, ref as Z, watch as B, reactive as ee, nextTick as te, resolveComponent as r, createElementBlock as ne, openBlock as ae, createVNode as u, withCtx as m, createTextVNode as oe, mergeProps as ie } from "vue";
30
+ import { TableAction as le, BasicTable as se, useTable as re } from "/@/components/Table";
31
31
  import { BasicModal as ue, useModal as ce } from "/@/components/Modal";
32
- import { BasicForm as me, useForm as de } from "/@/components/Form";
33
- import { i as fe, j as pe, k as ge, l as he } from "./auth.api-53df4c33.mjs";
34
- import { d as Ce, u as be, U as v } from "./auth.data-e44c7975.mjs";
35
- import { _ as _e } from "./index-740b2c4a.mjs";
36
- import "/@/utils/http/axios";
37
- import "/@/utils/index";
38
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
39
- import "/@/hooks/web/useMessage";
40
- import "vue-router";
32
+ import { BasicForm as de, useForm as me } from "/@/components/Form";
33
+ import { i as fe, j as pe, k as ge, l as he } from "./auth.api-2QmzY0ji.mjs";
34
+ import { d as Ce, u as be, U as v } from "./auth.data-Cp8D9uZ7.mjs";
35
+ import { _ as _e } from "./index-oWamYvLb.mjs";
41
36
  const we = Y({
42
37
  name: "AuthDataConfig",
43
- components: { BasicTable: le, TableAction: se, BasicModal: ue, BasicForm: me },
38
+ components: { BasicTable: se, TableAction: le, BasicModal: ue, BasicForm: de },
44
39
  props: {
45
40
  cgformId: { type: String, required: !0 },
46
41
  authFields: { type: Array, required: !0 }
47
42
  },
48
43
  setup(t) {
49
- const n = Z(!1), [o, { reload: c, setLoading: f }] = re({
44
+ const n = Z(!1), [a, { reload: c, setLoading: f }] = re({
50
45
  api: (e) => fe(t.cgformId, e),
51
46
  rowKey: "id",
52
47
  bordered: !0,
@@ -61,26 +56,26 @@ const we = Y({
61
56
  slots: { customRender: "action" }
62
57
  }
63
58
  });
64
- y(n, (e) => f(e));
65
- const [p, { openModal: g, closeModal: i }] = ce(), a = ee({
59
+ B(n, (e) => f(e));
60
+ const [p, { openModal: g, closeModal: i }] = ce(), o = ee({
66
61
  title: "",
67
62
  width: 800,
68
63
  confirmLoading: !1,
69
- onOk: E,
64
+ onOk: N,
70
65
  onCancel: i,
71
66
  onRegister: p
72
67
  });
73
- let l = !1, h = {}, m = !1;
68
+ let l = !1, h = {}, d = !1;
74
69
  const { formSchemas: _ } = be(t, {
75
70
  onRuleOperatorChange: P,
76
71
  onRuleColumnChange: $,
77
72
  onRuleNameChange: j
78
- }), [C, { validate: b, resetFields: I, setFieldsValue: w, getFieldsValue: R, clearValidate: O, updateSchema: D }] = de({
73
+ }), [C, { validate: b, resetFields: I, setFieldsValue: w, getFieldsValue: R, clearValidate: O, updateSchema: D }] = me({
79
74
  schemas: _,
80
75
  showActionButtonGroup: !1,
81
76
  labelAlign: "right"
82
77
  });
83
- y(
78
+ B(
84
79
  () => t.cgformId,
85
80
  () => {
86
81
  c().catch(() => null);
@@ -90,7 +85,7 @@ const we = Y({
90
85
  function T(e) {
91
86
  return A(this, null, function* () {
92
87
  var s;
93
- l = (s = e.isUpdate) != null ? s : !1, a.title = e.title, g(), yield te(), yield I(), h = Object.assign({}, e.record), yield w(h);
88
+ l = (s = e.isUpdate) != null ? s : !1, o.title = e.title, g(), yield te(), yield I(), h = Object.assign({}, e.record), yield w(h);
94
89
  });
95
90
  }
96
91
  function U() {
@@ -102,21 +97,21 @@ const we = Y({
102
97
  function L(e) {
103
98
  n.value = !0, he(e).then(c).finally(() => n.value = !1);
104
99
  }
105
- function E() {
100
+ function N() {
106
101
  return A(this, null, function* () {
107
102
  try {
108
- a.confirmLoading = !0;
103
+ o.confirmLoading = !0;
109
104
  let e = yield b();
110
105
  e = Object.assign({}, h, e), e.ruleOperator == v && (e.ruleColumn = ""), e.cgformId = t.cgformId, yield pe(e, l), c(), i();
111
106
  } finally {
112
- a.confirmLoading = !1;
107
+ o.confirmLoading = !1;
113
108
  }
114
109
  });
115
110
  }
116
- function N(e) {
111
+ function E(e) {
117
112
  n.value = !0;
118
113
  let s = Math.abs(e.status - 1);
119
- ge(k(S({}, e), { status: s })).then(() => {
114
+ ge(y(k({}, e), { status: s })).then(() => {
120
115
  e.status = s;
121
116
  }).finally(() => {
122
117
  n.value = !1;
@@ -136,18 +131,18 @@ const we = Y({
136
131
  }
137
132
  function $(e) {
138
133
  const s = R();
139
- if (!s.ruleName || s.ruleName && !m) {
140
- const B = t.authFields.find((J) => J.value === e), G = B ? B.text : e;
134
+ if (!s.ruleName || s.ruleName && !d) {
135
+ const F = t.authFields.find((J) => J.value === e), G = F ? F.text : e;
141
136
  w({
142
137
  ruleName: G
143
138
  });
144
139
  }
145
140
  }
146
141
  function j(e) {
147
- e.target.value.length ? m = !0 : m = !1;
142
+ e.target.value.length ? d = !0 : d = !1;
148
143
  }
149
144
  function x(e) {
150
- e && (m = !1);
145
+ e && (d = !1);
151
146
  }
152
147
  function q(e) {
153
148
  return [
@@ -171,46 +166,46 @@ const we = Y({
171
166
  }
172
167
  return {
173
168
  loading: n,
174
- formModalProps: a,
169
+ formModalProps: o,
175
170
  onAdd: U,
176
- onUpdateStatus: N,
171
+ onUpdateStatus: E,
177
172
  getTableAction: q,
178
173
  getDropDownAction: z,
179
- registerTable: o,
174
+ registerTable: a,
180
175
  registerModal: p,
181
176
  registerForm: C,
182
177
  handleOpenChange: x
183
178
  };
184
179
  }
185
180
  });
186
- function Ae(t, n, o, c, f, p) {
187
- const g = r("a-button"), i = r("a-switch"), a = r("TableAction"), l = r("BasicTable"), h = r("BasicForm"), m = r("a-spin"), _ = r("BasicModal");
188
- return ne(), oe("div", null, [
181
+ function Ae(t, n, a, c, f, p) {
182
+ const g = r("a-button"), i = r("a-switch"), o = r("TableAction"), l = r("BasicTable"), h = r("BasicForm"), d = r("a-spin"), _ = r("BasicModal");
183
+ return ae(), ne("div", null, [
189
184
  u(l, {
190
185
  onRegister: t.registerTable,
191
186
  loading: t.loading
192
187
  }, {
193
- tableTitle: d(() => [
188
+ tableTitle: m(() => [
194
189
  u(g, {
195
190
  onClick: t.onAdd,
196
191
  type: "primary",
197
192
  preIcon: "ant-design:plus"
198
193
  }, {
199
- default: d(() => n[0] || (n[0] = [
200
- ae("新增")
201
- ])),
194
+ default: m(() => [...n[0] || (n[0] = [
195
+ oe("新增", -1)
196
+ ])]),
202
197
  _: 1
203
198
  }, 8, ["onClick"])
204
199
  ]),
205
- switch: d(({ text: C, record: b }) => [
200
+ switch: m(({ text: C, record: b }) => [
206
201
  u(i, {
207
202
  size: "small",
208
203
  checked: b.status === 1,
209
204
  onClick: () => t.onUpdateStatus(b)
210
205
  }, null, 8, ["checked", "onClick"])
211
206
  ]),
212
- action: d(({ record: C }) => [
213
- u(a, {
207
+ action: m(({ record: C }) => [
208
+ u(o, {
214
209
  actions: t.getTableAction(C),
215
210
  dropDownActions: t.getDropDownAction(C)
216
211
  }, null, 8, ["actions", "dropDownActions"])
@@ -218,11 +213,11 @@ function Ae(t, n, o, c, f, p) {
218
213
  _: 1
219
214
  }, 8, ["onRegister", "loading"]),
220
215
  u(_, ie(t.formModalProps, { onOpenChange: t.handleOpenChange }), {
221
- default: d(() => [
222
- u(m, {
216
+ default: m(() => [
217
+ u(d, {
223
218
  spinning: t.formModalProps.confirmLoading
224
219
  }, {
225
- default: d(() => [
220
+ default: m(() => [
226
221
  u(h, { onRegister: t.registerForm }, null, 8, ["onRegister"])
227
222
  ]),
228
223
  _: 1
@@ -232,7 +227,7 @@ function Ae(t, n, o, c, f, p) {
232
227
  }, 16, ["onOpenChange"])
233
228
  ]);
234
229
  }
235
- const Ve = /* @__PURE__ */ _e(we, [["render", Ae]]);
230
+ const ve = /* @__PURE__ */ _e(we, [["render", Ae]]);
236
231
  export {
237
- Ve as default
232
+ ve as default
238
233
  };
@@ -0,0 +1,134 @@
1
+ var f = (e, n, t) => new Promise((l, c) => {
2
+ var i = (a) => {
3
+ try {
4
+ r(t.next(a));
5
+ } catch (s) {
6
+ c(s);
7
+ }
8
+ }, o = (a) => {
9
+ try {
10
+ r(t.throw(a));
11
+ } catch (s) {
12
+ c(s);
13
+ }
14
+ }, r = (a) => a.done ? l(a.value) : Promise.resolve(a.value).then(i, o);
15
+ r((t = t.apply(e, n)).next());
16
+ });
17
+ import { defineComponent as N, ref as d, computed as A, watch as M, resolveComponent as v, createElementBlock as g, openBlock as y, createBlock as I, Fragment as P, createElementVNode as S, createVNode as h, withCtx as C, createTextVNode as E } from "vue";
18
+ import { useMessage as B } from "/@/hooks/web/useMessage";
19
+ import { q as R, n as V, r as $ } from "./auth.api-2QmzY0ji.mjs";
20
+ import { _ as q } from "./index-oWamYvLb.mjs";
21
+ const z = N({
22
+ name: "AuthDataTree",
23
+ props: {
24
+ cgformId: { type: String, required: !0 }
25
+ },
26
+ setup(e) {
27
+ const { createMessage: n } = B(), t = d(""), l = d(3), c = d(!0), i = d([]), o = d([]), r = d([]), a = d(""), s = A(() => !t.value);
28
+ M(() => e.cgformId, m, { immediate: !0 });
29
+ function m() {
30
+ return f(this, null, function* () {
31
+ if (!e.cgformId) return;
32
+ let u = yield R(e.cgformId, l.value);
33
+ r.value = u.map((p) => ({ key: p.id, title: p.ruleName }));
34
+ });
35
+ }
36
+ function k(u, p) {
37
+ return f(this, null, function* () {
38
+ t.value = u, a.value = p, o.value = [], yield m();
39
+ let w = yield V({
40
+ roleId: u,
41
+ cgformId: e.cgformId,
42
+ type: l.value,
43
+ authMode: p
44
+ });
45
+ o.value = w.map((T) => T.authId);
46
+ });
47
+ }
48
+ function K() {
49
+ t.value = "", m();
50
+ }
51
+ function D() {
52
+ m(), k(t.value, a.value);
53
+ }
54
+ function _() {
55
+ return f(this, null, function* () {
56
+ yield $(t.value, e.cgformId, {
57
+ authId: JSON.stringify(o.value),
58
+ authMode: a.value
59
+ }), n.success("保存成功");
60
+ });
61
+ }
62
+ function b(u) {
63
+ i.value = u, c.value = !1;
64
+ }
65
+ function x() {
66
+ t.value = "", o.value = [];
67
+ }
68
+ return {
69
+ loadChecked: k,
70
+ clear: x,
71
+ expandedKeys: i,
72
+ autoExpandParent: c,
73
+ checkedKeys: o,
74
+ treeData: r,
75
+ disabled: s,
76
+ onSave: _,
77
+ onExpand: b,
78
+ onRefresh: D,
79
+ clearChecked: K
80
+ };
81
+ }
82
+ }), F = { class: "onl-auth-tree-btns" };
83
+ function J(e, n, t, l, c, i) {
84
+ const o = v("a-empty"), r = v("a-button"), a = v("a-tree");
85
+ return y(), g("div", null, [
86
+ e.disabled ? (y(), I(o, {
87
+ key: 0,
88
+ description: "请先选中左侧角色/部门/用户"
89
+ })) : e.treeData.length === 0 ? (y(), I(o, {
90
+ key: 1,
91
+ description: "无权限信息"
92
+ })) : (y(), g(P, { key: 2 }, [
93
+ S("div", F, [
94
+ h(r, {
95
+ onClick: e.onRefresh,
96
+ size: "small",
97
+ type: "primary",
98
+ preIcon: "ant-design:redo",
99
+ ghost: ""
100
+ }, {
101
+ default: C(() => [...n[1] || (n[1] = [
102
+ E("刷新", -1)
103
+ ])]),
104
+ _: 1
105
+ }, 8, ["onClick"]),
106
+ h(r, {
107
+ onClick: e.onSave,
108
+ size: "small",
109
+ type: "primary",
110
+ preIcon: "ant-design:save",
111
+ ghost: ""
112
+ }, {
113
+ default: C(() => [...n[2] || (n[2] = [
114
+ E("保存", -1)
115
+ ])]),
116
+ _: 1
117
+ }, 8, ["onClick"])
118
+ ]),
119
+ h(a, {
120
+ checkable: "",
121
+ checkedKeys: e.checkedKeys,
122
+ "onUpdate:checkedKeys": n[0] || (n[0] = (s) => e.checkedKeys = s),
123
+ expandedKeys: e.expandedKeys,
124
+ autoExpandParent: e.autoExpandParent,
125
+ treeData: e.treeData,
126
+ onExpand: e.onExpand
127
+ }, null, 8, ["checkedKeys", "expandedKeys", "autoExpandParent", "treeData", "onExpand"])
128
+ ], 64))
129
+ ]);
130
+ }
131
+ const H = /* @__PURE__ */ q(z, [["render", J], ["__scopeId", "data-v-c6be2157"]]);
132
+ export {
133
+ H as default
134
+ };