@jeecg/online 3.5.3-beta3 → 3.6.0-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 (163) hide show
  1. package/AuthButtonConfig-b6a674fa.mjs +125 -0
  2. package/AuthButtonTree-09e57bc4.mjs +156 -0
  3. package/AuthDataConfig-6e7e61ec.mjs +212 -0
  4. package/AuthDataTree-e83286c5.mjs +139 -0
  5. package/AuthFieldConfig-f1ec2708.mjs +139 -0
  6. package/AuthFieldTree-bb72e21f.mjs +232 -0
  7. package/AuthManagerDrawer-28a2d108.mjs +114 -0
  8. package/AuthSetterModal-2990d553.mjs +261 -0
  9. package/CgformCopyList-36a4cbf0.mjs +246 -0
  10. package/CgformModal-7399a5ac.mjs +611 -0
  11. package/CgreportModal-2eb9c9e1.mjs +13 -0
  12. package/CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs +566 -0
  13. package/CheckDictTable-3a8a54b3.mjs +211 -0
  14. package/CodeFileListModal-72f0d3bb.mjs +158 -0
  15. package/CodeFileViewModal-9eb88c47.mjs +244 -0
  16. package/CodeGeneratorModal-a89958f5.mjs +233 -0
  17. package/CustomButtonList-c44aec5a.mjs +363 -0
  18. package/DBAttributeTable-7d285e8d.mjs +473 -0
  19. package/DbToOnlineModal-d23cbeb1.mjs +160 -0
  20. package/DetailForm-2901d215.mjs +461 -0
  21. package/EnhanceJavaModal-153899a9.mjs +264 -0
  22. package/EnhanceJsHistory-7f5db3b1.mjs +184 -0
  23. package/EnhanceJsModal-c2fb75b8.mjs +311 -0
  24. package/EnhanceSqlModal-965e9b0a.mjs +268 -0
  25. package/ExtendConfigModal-8f08466f.mjs +111 -0
  26. package/FieldExtendJsonModal-adfcf5a7.mjs +219 -0
  27. package/FileSelectModal-432d4521.mjs +103 -0
  28. package/ForeignKeyTable-faab7ccf.mjs +69 -0
  29. package/IndexTable-0a2d3718.mjs +89 -0
  30. package/JModalTip-e1938b49.mjs +46 -0
  31. package/JOnlineSearchSelect-7e908492.mjs +95 -0
  32. package/LeftDepart-54f245b3.mjs +82 -0
  33. package/LeftRole-c138f892.mjs +86 -0
  34. package/LeftUser-9c812f8a.mjs +105 -0
  35. package/LinkTableConfigModal-c2c5c7e6.mjs +230 -0
  36. package/LinkTableFieldConfigModal-a3553b1f.mjs +176 -0
  37. package/LinkTableListPiece-7f793b08.mjs +34 -0
  38. package/ModalFormDemo-65685b0e.mjs +78 -0
  39. package/OnlCgformErpList-52c87ed3.mjs +449 -0
  40. package/OnlCgformErpSubTable-6e7fb17b.mjs +398 -0
  41. package/OnlCgformInnerSubTable-f0727b8f.mjs +248 -0
  42. package/OnlCgformInnerTableList-9f89c173.mjs +430 -0
  43. package/OnlCgformTabList-15516315.mjs +390 -0
  44. package/OnlineAutoList-63a0224f.mjs +474 -0
  45. package/OnlineAutoModal-ffe19c3f.mjs +206 -0
  46. package/OnlineAutoTreeList-317c7105.mjs +495 -0
  47. package/OnlineCustomModal-3939ce78.mjs +227 -0
  48. package/OnlineDetailModal-bfb1375f.mjs +177 -0
  49. package/OnlineForm-069f6092.mjs +749 -0
  50. package/OnlineFormDetail-ad5735fb.mjs +296 -0
  51. package/OnlineQueryForm-0771c80f.mjs +385 -0
  52. package/OnlineSearchFormItem-0db5834f.mjs +348 -0
  53. package/OnlineSelectCascade-a05c30f4.mjs +159 -0
  54. package/OnlineSubFormDetail-583d01eb.mjs +142 -0
  55. package/OnlineTabAutoModal-747e071d.mjs +253 -0
  56. package/OnlineTabDetailModal-887f0174.mjs +222 -0
  57. package/OnlineTabForm-b1dcd4b4.mjs +765 -0
  58. package/OnlineTabFormDetail-8e494a96.mjs +323 -0
  59. package/PageAttributeTable-5966b201.mjs +404 -0
  60. package/ProcessOnlineForm-4382bea7.mjs +177 -0
  61. package/QueryTable-6e8053ad.mjs +115 -0
  62. package/README.md +2 -1
  63. package/SuperQuery-78db6998.mjs +841 -0
  64. package/SuperQueryValComponent-471110b5.mjs +8 -0
  65. package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
  66. package/auth.api-d3a6c4b3.mjs +39 -0
  67. package/auth.data-8be5c9e3.mjs +141 -0
  68. package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
  69. package/constant-754f1a9d.mjs +9 -0
  70. package/enhance.api-138e6826.mjs +104 -0
  71. package/enhance.data-efc7e155.mjs +175 -0
  72. package/index-0a93652b.mjs +237 -0
  73. package/index-7e9a23f2.mjs +1494 -0
  74. package/index-b70302f2.mjs +56 -0
  75. package/main.index.js +7 -1
  76. package/package.json +1 -1
  77. package/style.css +1 -1
  78. package/useCgformList-0c603af1.mjs +424 -0
  79. package/useCustomHook-acb00837.mjs +53 -0
  80. package/useExtendComponent-aa1cdfc8.mjs +3917 -0
  81. package/useListButton-0f18bf6a.mjs +671 -0
  82. package/useOnlinePopEvent-687070b7.mjs +19 -0
  83. package/useOnlineTest-e4bd8be3.mjs +42 -0
  84. package/useSchemas-43429d80.mjs +685 -0
  85. package/useTableSync-774c3774.mjs +87 -0
  86. package/AuthButtonConfig.js +0 -147
  87. package/AuthButtonTree.js +0 -183
  88. package/AuthDataConfig.js +0 -246
  89. package/AuthDataTree.js +0 -160
  90. package/AuthFieldConfig.js +0 -170
  91. package/AuthFieldTree.js +0 -281
  92. package/AuthManagerDrawer.js +0 -125
  93. package/AuthSetterModal.js +0 -316
  94. package/CgformCopyList.js +0 -266
  95. package/CgformModal.js +0 -780
  96. package/CgreportModal.js +0 -667
  97. package/CheckDictTable.js +0 -242
  98. package/CodeFileListModal.js +0 -175
  99. package/CodeFileViewModal.js +0 -325
  100. package/CodeGeneratorModal.js +0 -297
  101. package/CustomButtonList.js +0 -410
  102. package/DBAttributeTable.js +0 -526
  103. package/DbToOnlineModal.js +0 -192
  104. package/DetailForm.js +0 -608
  105. package/EnhanceJavaModal.js +0 -298
  106. package/EnhanceJsHistory.js +0 -229
  107. package/EnhanceJsModal.js +0 -293
  108. package/EnhanceSqlModal.js +0 -299
  109. package/ExtendConfigModal.js +0 -151
  110. package/FieldExtendJsonModal.js +0 -283
  111. package/FileSelectModal.js +0 -102
  112. package/ForeignKeyTable.js +0 -79
  113. package/IndexTable.js +0 -97
  114. package/JModalTip.js +0 -54
  115. package/JOnlineSearchSelect.js +0 -115
  116. package/LICENSE +0 -9
  117. package/LeftDepart.js +0 -96
  118. package/LeftRole.js +0 -98
  119. package/LeftUser.js +0 -117
  120. package/LinkTableConfigModal.js +0 -289
  121. package/LinkTableFieldConfigModal.js +0 -218
  122. package/LinkTableListPiece.js +0 -36
  123. package/ModalFormDemo.js +0 -85
  124. package/OnlineAutoList.js +0 -523
  125. package/OnlineAutoModal.js +0 -226
  126. package/OnlineAutoTreeList.js +0 -552
  127. package/OnlineCustomModal.js +0 -286
  128. package/OnlineDetailModal.js +0 -190
  129. package/OnlineForm.js +0 -1016
  130. package/OnlineFormDetail.js +0 -347
  131. package/OnlineQueryForm.js +0 -484
  132. package/OnlineSearchFormItem.js +0 -436
  133. package/OnlineSelectCascade.js +0 -228
  134. package/OnlineSubFormDetail.js +0 -166
  135. package/PageAttributeTable.js +0 -486
  136. package/ProcessOnlineForm.js +0 -208
  137. package/QueryTable.js +0 -129
  138. package/SuperQuery.js +0 -1020
  139. package/SuperQueryValComponent.js +0 -8
  140. package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -168
  141. package/_arrayPush.js +0 -278
  142. package/_baseClone.js +0 -471
  143. package/_baseSlice.js +0 -18
  144. package/_commonjsHelpers.js +0 -5
  145. package/_flatRest.js +0 -174
  146. package/auth.api.js +0 -43
  147. package/auth.data.js +0 -142
  148. package/clipboard.js +0 -565
  149. package/enhance.api.js +0 -129
  150. package/enhance.data.js +0 -196
  151. package/index.js +0 -87
  152. package/index2.js +0 -340
  153. package/index3.js +0 -264
  154. package/isArray.js +0 -47
  155. package/omit.js +0 -60
  156. package/pick.js +0 -68
  157. package/toString.js +0 -31
  158. package/useCgformList.js +0 -470
  159. package/useExtendComponent.js +0 -5205
  160. package/useListButton.js +0 -923
  161. package/useOnlineTest.js +0 -44
  162. package/useSchemas.js +0 -653
  163. package/useTableSync.js +0 -117
@@ -0,0 +1,139 @@
1
+ var r = (n, f, s) => new Promise((m, u) => {
2
+ var p = (a) => {
3
+ try {
4
+ i(s.next(a));
5
+ } catch (e) {
6
+ u(e);
7
+ }
8
+ }, c = (a) => {
9
+ try {
10
+ i(s.throw(a));
11
+ } catch (e) {
12
+ u(e);
13
+ }
14
+ }, i = (a) => a.done ? m(a.value) : Promise.resolve(a.value).then(p, c);
15
+ i((s = s.apply(n, f)).next());
16
+ });
17
+ import { defineComponent as g, ref as k, watch as w, resolveComponent as _, openBlock as S, createElementBlock as x, createVNode as h, withCtx as l, createTextVNode as b } from "vue";
18
+ import { BasicTable as F, useTable as v } from "/@/components/Table";
19
+ import { a as E, b as I, c as y } from "./auth.api-d3a6c4b3.mjs";
20
+ import { a as T } from "./auth.data-8be5c9e3.mjs";
21
+ import { _ as B } from "./index-b70302f2.mjs";
22
+ import "/@/utils/http/axios";
23
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
24
+ import "/@/hooks/web/useMessage";
25
+ import "vue-router";
26
+ const U = g({
27
+ name: "AuthFieldConfig",
28
+ components: { BasicTable: F },
29
+ props: {
30
+ headId: {
31
+ type: String,
32
+ default: "",
33
+ required: !0
34
+ }
35
+ },
36
+ emits: ["update:authFields"],
37
+ setup(n, { emit: f }) {
38
+ const s = k(""), [m, { reload: u }] = v({
39
+ api: p,
40
+ rowKey: "code",
41
+ bordered: !0,
42
+ columns: T,
43
+ showIndexColumn: !1
44
+ });
45
+ w(
46
+ () => n.headId,
47
+ (a) => {
48
+ s.value = a.split("?")[0], u().catch(() => null);
49
+ },
50
+ { immediate: !0 }
51
+ );
52
+ function p(a) {
53
+ return r(this, null, function* () {
54
+ const e = ["id"];
55
+ let t = yield E(s.value, a), o = [], C = [];
56
+ return t.forEach((d) => {
57
+ e.indexOf(d.code) < 0 && ((d.isShowForm == 1 || d.isShowList == 1) && C.push(d), d.dbIsPersist == 1 && o.push({ text: d.title, value: d.code }));
58
+ }), f("update:authFields", o), C;
59
+ });
60
+ }
61
+ function c(a, e) {
62
+ return r(this, null, function* () {
63
+ yield I({
64
+ cgformId: s.value,
65
+ code: e.code,
66
+ status: a ? 1 : 0
67
+ }), e.formEditable || e.formShow || e.listShow || (e.formEditable = !0, e.formShow = !0, e.listShow = !0), e.status = Math.abs(e.status - 1);
68
+ });
69
+ }
70
+ function i(a, e, t) {
71
+ return r(this, null, function* () {
72
+ let o = a.target.checked;
73
+ yield y({
74
+ cgformId: s.value,
75
+ code: e.code,
76
+ switchFlag: t,
77
+ listShow: o,
78
+ formShow: o,
79
+ formEditable: o
80
+ }), t == 1 ? e.listShow = o : t == 2 ? e.formShow = o : t == 3 && (e.formEditable = o);
81
+ });
82
+ }
83
+ return { registerTable: m, onUpdateStatus: c, onCheckboxChange: i };
84
+ }
85
+ });
86
+ const $ = { class: "auth-field-config" };
87
+ function A(n, f, s, m, u, p) {
88
+ const c = _("a-switch"), i = _("a-checkbox"), a = _("BasicTable");
89
+ return S(), x("div", $, [
90
+ h(a, { onRegister: n.registerTable }, {
91
+ switch: l(({ text: e, record: t }) => [
92
+ h(c, {
93
+ size: "small",
94
+ checked: t.status === 1,
95
+ onChange: (o) => n.onUpdateStatus(o, t)
96
+ }, null, 8, ["checked", "onChange"])
97
+ ]),
98
+ list: l(({ text: e, record: t }) => [
99
+ h(i, {
100
+ checked: t.listShow,
101
+ disabled: t.status === 0,
102
+ onChange: (o) => n.onCheckboxChange(o, t, 1)
103
+ }, {
104
+ default: l(() => [
105
+ b(" 可见 ")
106
+ ]),
107
+ _: 2
108
+ }, 1032, ["checked", "disabled", "onChange"])
109
+ ]),
110
+ form: l(({ text: e, record: t }) => [
111
+ h(i, {
112
+ checked: t.formShow,
113
+ disabled: t.status === 0,
114
+ onChange: (o) => n.onCheckboxChange(o, t, 2)
115
+ }, {
116
+ default: l(() => [
117
+ b(" 可见 ")
118
+ ]),
119
+ _: 2
120
+ }, 1032, ["checked", "disabled", "onChange"]),
121
+ h(i, {
122
+ checked: t.formEditable,
123
+ disabled: t.status === 0,
124
+ onChange: (o) => n.onCheckboxChange(o, t, 3)
125
+ }, {
126
+ default: l(() => [
127
+ b(" 可编辑 ")
128
+ ]),
129
+ _: 2
130
+ }, 1032, ["checked", "disabled", "onChange"])
131
+ ]),
132
+ _: 1
133
+ }, 8, ["onRegister"])
134
+ ]);
135
+ }
136
+ const P = /* @__PURE__ */ B(U, [["render", A], ["__scopeId", "data-v-d597c946"]]);
137
+ export {
138
+ P as default
139
+ };
@@ -0,0 +1,232 @@
1
+ var g = (e, m, u) => new Promise((C, h) => {
2
+ var s = (a) => {
3
+ try {
4
+ o(u.next(a));
5
+ } catch (i) {
6
+ h(i);
7
+ }
8
+ }, l = (a) => {
9
+ try {
10
+ o(u.throw(a));
11
+ } catch (i) {
12
+ h(i);
13
+ }
14
+ }, o = (a) => a.done ? C(a.value) : Promise.resolve(a.value).then(s, l);
15
+ o((u = u.apply(e, m)).next());
16
+ });
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
+ import { useMessage as J } from "/@/hooks/web/useMessage";
19
+ import { k as L, l as j, s as G } from "./auth.api-d3a6c4b3.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-b70302f2.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: m } = J(), u = p(""), C = p(1), h = p(!0), s = p([]), l = p([]), o = p([]), a = p([]), i = p(""), O = R(() => !u.value);
39
+ V(() => e.cgformId, y, { immediate: !0 });
40
+ function y() {
41
+ return g(this, null, function* () {
42
+ if (!e.cgformId)
43
+ return;
44
+ let n = yield L(e.cgformId, C.value), t = [], c = [];
45
+ n.forEach((r) => {
46
+ c.includes(r.code) || (c.push(r.code), t.push({ key: r.code, title: r.title }));
47
+ });
48
+ for (let r of t) {
49
+ let I = [];
50
+ for (let F of n)
51
+ if (r.key === F.code) {
52
+ let M = D(F);
53
+ I.push({ key: F.id, title: M });
54
+ }
55
+ r.children = I;
56
+ }
57
+ a.value = t, s.value = [...c], o.value = c;
58
+ });
59
+ }
60
+ function D(n) {
61
+ let t = "";
62
+ return n.page == 3 ? t += "列表" : n.page == 5 && (t += "表单"), n.control == 3 ? t += "可编辑" : n.control == 5 && (t += "可见"), t;
63
+ }
64
+ function _(n, t) {
65
+ return g(this, null, function* () {
66
+ u.value = n, i.value = t, l.value = [], yield y();
67
+ let c = yield j({
68
+ roleId: n,
69
+ cgformId: e.cgformId,
70
+ type: C.value,
71
+ authMode: t
72
+ });
73
+ l.value = c.map((r) => r.authId);
74
+ });
75
+ }
76
+ function K() {
77
+ u.value = "", y();
78
+ }
79
+ function w() {
80
+ y(), _(u.value, i.value);
81
+ }
82
+ function T() {
83
+ return g(this, null, function* () {
84
+ let n = l.value.filter((t) => o.value.indexOf(t) < 0);
85
+ yield G(u.value, e.cgformId, {
86
+ authId: JSON.stringify(n),
87
+ authMode: i.value
88
+ }), m.success("保存成功");
89
+ });
90
+ }
91
+ function S() {
92
+ s.value = [...o.value];
93
+ }
94
+ function x() {
95
+ s.value = [];
96
+ }
97
+ function U(n) {
98
+ s.value = n, h.value = !1;
99
+ }
100
+ function z() {
101
+ u.value = "", l.value = [];
102
+ }
103
+ function B() {
104
+ l.value = [];
105
+ }
106
+ function N() {
107
+ const n = function(t) {
108
+ for (let c of t)
109
+ l.value.push(c.key), c.children && c.children.length > 0 && n.call(null, c.children);
110
+ };
111
+ l.value = [], n.call(null, $(a));
112
+ }
113
+ return {
114
+ loadChecked: _,
115
+ clear: z,
116
+ expandedKeys: s,
117
+ autoExpandParent: h,
118
+ checkedKeys: l,
119
+ treeData: a,
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, m, u, C, h, s) {
134
+ const l = f("a-empty"), o = f("a-button"), a = f("DownCircleOutlined"), i = f("UpCircleOutlined"), O = f("CheckOutlined"), y = f("UndoOutlined"), D = f("a-tree");
135
+ return E(), A("div", null, [
136
+ e.disabled ? (E(), b(l, {
137
+ key: 0,
138
+ description: "请先选中左侧角色/部门/用户"
139
+ })) : e.treeData.length === 0 ? (E(), b(l, {
140
+ key: 1,
141
+ description: "无权限信息"
142
+ })) : (E(), A(q, { key: 2 }, [
143
+ H("div", te, [
144
+ d(o, {
145
+ onClick: e.onRefresh,
146
+ size: "small",
147
+ type: "primary",
148
+ preIcon: "ant-design:redo",
149
+ ghost: ""
150
+ }, {
151
+ default: v(() => [
152
+ k("刷新")
153
+ ]),
154
+ _: 1
155
+ }, 8, ["onClick"]),
156
+ d(o, {
157
+ onClick: e.onExpandAll,
158
+ size: "small",
159
+ type: "primary",
160
+ ghost: ""
161
+ }, {
162
+ default: v(() => [
163
+ d(a),
164
+ k("展开")
165
+ ]),
166
+ _: 1
167
+ }, 8, ["onClick"]),
168
+ d(o, {
169
+ onClick: e.onCloseAll,
170
+ size: "small",
171
+ type: "primary",
172
+ ghost: ""
173
+ }, {
174
+ default: v(() => [
175
+ d(i),
176
+ k("折叠")
177
+ ]),
178
+ _: 1
179
+ }, 8, ["onClick"]),
180
+ d(o, {
181
+ onClick: e.onSave,
182
+ size: "small",
183
+ type: "primary",
184
+ preIcon: "ant-design:save",
185
+ ghost: ""
186
+ }, {
187
+ default: v(() => [
188
+ k("保存")
189
+ ]),
190
+ _: 1
191
+ }, 8, ["onClick"]),
192
+ d(o, {
193
+ onClick: e.onSelectAll,
194
+ size: "small",
195
+ type: "primary",
196
+ ghost: ""
197
+ }, {
198
+ default: v(() => [
199
+ d(O),
200
+ k("全选")
201
+ ]),
202
+ _: 1
203
+ }, 8, ["onClick"]),
204
+ d(o, {
205
+ onClick: e.onClearSelected,
206
+ size: "small",
207
+ type: "primary",
208
+ ghost: ""
209
+ }, {
210
+ default: v(() => [
211
+ d(y),
212
+ k("重置")
213
+ ]),
214
+ _: 1
215
+ }, 8, ["onClick"])
216
+ ]),
217
+ d(D, {
218
+ checkable: "",
219
+ checkedKeys: e.checkedKeys,
220
+ "onUpdate:checkedKeys": m[0] || (m[0] = (_) => e.checkedKeys = _),
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
+ };
@@ -0,0 +1,114 @@
1
+ import { defineComponent as A, ref as u, computed as D, resolveComponent as a, openBlock as h, createBlock as y, withCtx as r, createVNode as o, createElementBlock as _, Fragment as B, createCommentVNode as F } from "vue";
2
+ import { BasicDrawer as I, useDrawerInner as b } from "/@/components/Drawer";
3
+ import w from "./AuthFieldConfig-f1ec2708.mjs";
4
+ import v from "./AuthButtonConfig-b6a674fa.mjs";
5
+ import k from "./AuthDataConfig-6e7e61ec.mjs";
6
+ import { _ as K } from "./index-b70302f2.mjs";
7
+ import "/@/components/Table";
8
+ import "./auth.api-d3a6c4b3.mjs";
9
+ import "/@/utils/http/axios";
10
+ import "./auth.data-8be5c9e3.mjs";
11
+ import "lodash-es";
12
+ import "/@/components/Modal";
13
+ import "/@/components/Form";
14
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
15
+ import "/@/hooks/web/useMessage";
16
+ import "vue-router";
17
+ const R = A({
18
+ name: "AuthManagerDrawer",
19
+ components: {
20
+ BasicDrawer: I,
21
+ AuthFieldConfig: w,
22
+ AuthButtonConfig: v,
23
+ AuthDataConfig: k
24
+ },
25
+ props: {
26
+ // 1单表 2主表 3附表
27
+ tableType: {
28
+ type: Number,
29
+ default: 1
30
+ }
31
+ },
32
+ emits: ["register"],
33
+ setup(e) {
34
+ const t = u(""), i = u(""), f = u([]), d = u("field"), c = D(() => e.tableType == 1 || e.tableType == 2), [s, { closeDrawer: n }] = b((m) => {
35
+ t.value = m.cgformId, i.value = t.value + "?" + (/* @__PURE__ */ new Date()).getTime(), d.value = "field";
36
+ });
37
+ function l() {
38
+ n();
39
+ }
40
+ return {
41
+ activeKey: d,
42
+ cgformId: t,
43
+ headId: i,
44
+ authFields: f,
45
+ hasDataAuth: c,
46
+ onClose: l,
47
+ registerDrawer: s
48
+ };
49
+ }
50
+ });
51
+ function T(e, t, i, f, d, c) {
52
+ const s = a("AuthFieldConfig"), n = a("a-tab-pane"), l = a("AuthButtonConfig"), m = a("AuthDataConfig"), g = a("a-tabs"), C = a("BasicDrawer");
53
+ return h(), y(C, {
54
+ onRegister: e.registerDrawer,
55
+ title: "权限管理",
56
+ width: 800,
57
+ onClose: e.onClose
58
+ }, {
59
+ default: r(() => [
60
+ o(g, {
61
+ activeKey: e.activeKey,
62
+ "onUpdate:activeKey": t[1] || (t[1] = (p) => e.activeKey = p)
63
+ }, {
64
+ default: r(() => [
65
+ o(n, {
66
+ tab: "字段权限",
67
+ key: "field",
68
+ forceRender: ""
69
+ }, {
70
+ default: r(() => [
71
+ o(s, {
72
+ headId: e.headId,
73
+ authFields: e.authFields,
74
+ "onUpdate:authFields": t[0] || (t[0] = (p) => e.authFields = p)
75
+ }, null, 8, ["headId", "authFields"])
76
+ ]),
77
+ _: 1
78
+ }),
79
+ e.hasDataAuth ? (h(), _(B, { key: 0 }, [
80
+ o(n, {
81
+ tab: "按钮权限",
82
+ key: "button",
83
+ forceRender: ""
84
+ }, {
85
+ default: r(() => [
86
+ o(l, { headId: e.headId }, null, 8, ["headId"])
87
+ ]),
88
+ _: 1
89
+ }),
90
+ o(n, {
91
+ tab: "数据权限",
92
+ key: "data",
93
+ forceRender: ""
94
+ }, {
95
+ default: r(() => [
96
+ o(m, {
97
+ cgformId: e.cgformId,
98
+ authFields: e.authFields
99
+ }, null, 8, ["cgformId", "authFields"])
100
+ ]),
101
+ _: 1
102
+ })
103
+ ], 64)) : F("", !0)
104
+ ]),
105
+ _: 1
106
+ }, 8, ["activeKey"])
107
+ ]),
108
+ _: 1
109
+ }, 8, ["onRegister", "onClose"]);
110
+ }
111
+ const S = /* @__PURE__ */ K(R, [["render", T]]);
112
+ export {
113
+ S as default
114
+ };