@jeecg/online 3.5.3-beta2 → 3.5.3-vite4

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 (154) hide show
  1. package/AuthButtonConfig-2f71787c.mjs +125 -0
  2. package/AuthButtonTree-d73bccf5.mjs +156 -0
  3. package/AuthDataConfig-32cf23d2.mjs +212 -0
  4. package/AuthDataTree-03d62d3f.mjs +139 -0
  5. package/AuthFieldConfig-b1217a0c.mjs +139 -0
  6. package/AuthFieldTree-888e04a9.mjs +232 -0
  7. package/AuthManagerDrawer-f127b8a2.mjs +114 -0
  8. package/AuthSetterModal-37da78ed.mjs +261 -0
  9. package/CgformCopyList-3adab58f.mjs +245 -0
  10. package/CgformModal-6938d8c2.mjs +613 -0
  11. package/CgreportModal-77ec8c17.mjs +12 -0
  12. package/CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs +567 -0
  13. package/CheckDictTable-414313f2.mjs +211 -0
  14. package/CodeFileListModal-4831ce3d.mjs +158 -0
  15. package/CodeFileViewModal-5990dac4.mjs +244 -0
  16. package/CodeGeneratorModal-7df9e25d.mjs +234 -0
  17. package/CustomButtonList-1c9bd859.mjs +363 -0
  18. package/DBAttributeTable-cd1c41e5.mjs +473 -0
  19. package/DbToOnlineModal-dc5d2030.mjs +160 -0
  20. package/DetailForm-e4538e7a.mjs +446 -0
  21. package/EnhanceJavaModal-7f53d2ca.mjs +260 -0
  22. package/EnhanceJsHistory-c30805ce.mjs +184 -0
  23. package/EnhanceJsModal-0b133341.mjs +233 -0
  24. package/EnhanceSqlModal-33a94c83.mjs +259 -0
  25. package/ExtendConfigModal-60f2cf86.mjs +111 -0
  26. package/FieldExtendJsonModal-48f7d67f.mjs +220 -0
  27. package/FileSelectModal-64aaf623.mjs +91 -0
  28. package/ForeignKeyTable-cb1abd1d.mjs +69 -0
  29. package/IndexTable-4e94cd1f.mjs +89 -0
  30. package/JModalTip-abe1515a.mjs +46 -0
  31. package/JOnlineSearchSelect-5608a5cf.mjs +94 -0
  32. package/LeftDepart-ca7a7375.mjs +82 -0
  33. package/LeftRole-d0fa8398.mjs +86 -0
  34. package/LeftUser-0c88c240.mjs +105 -0
  35. package/LinkTableConfigModal-77d7c0b9.mjs +230 -0
  36. package/LinkTableFieldConfigModal-c5689ab0.mjs +178 -0
  37. package/LinkTableListPiece-34266919.mjs +34 -0
  38. package/ModalFormDemo-0eeea994.mjs +78 -0
  39. package/OnlCgformErpList-7a0388d8.mjs +425 -0
  40. package/OnlCgformErpSubTable-fc6ade76.mjs +388 -0
  41. package/OnlineAutoList-85e6a30d.mjs +472 -0
  42. package/OnlineAutoModal-2a146238.mjs +206 -0
  43. package/OnlineAutoTreeList-f8d0e100.mjs +495 -0
  44. package/OnlineCustomModal-456a85a6.mjs +227 -0
  45. package/OnlineDetailModal-f967f080.mjs +177 -0
  46. package/OnlineForm-630a22c2.mjs +778 -0
  47. package/OnlineFormDetail-1b216792.mjs +296 -0
  48. package/OnlineQueryForm-1c5949a7.mjs +378 -0
  49. package/OnlineSearchFormItem-7c2ea9ed.mjs +352 -0
  50. package/OnlineSelectCascade-c7baf52b.mjs +160 -0
  51. package/OnlineSubFormDetail-0aa4966c.mjs +140 -0
  52. package/PageAttributeTable-811185fd.mjs +404 -0
  53. package/ProcessOnlineForm-27be6f6f.mjs +177 -0
  54. package/QueryTable-4ba771ef.mjs +115 -0
  55. package/SuperQuery-3821f984.mjs +845 -0
  56. package/SuperQueryValComponent-471110b5.mjs +8 -0
  57. package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
  58. package/auth.api-d3a6c4b3.mjs +39 -0
  59. package/auth.data-8be5c9e3.mjs +141 -0
  60. package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
  61. package/constant-fe20103a.mjs +6 -0
  62. package/enhance.api-138e6826.mjs +104 -0
  63. package/enhance.data-efc7e155.mjs +175 -0
  64. package/index-074b92e5.mjs +236 -0
  65. package/index-6a09a912.mjs +58 -0
  66. package/index-9d32ae88.mjs +313 -0
  67. package/main.index.js +7 -1
  68. package/package.json +1 -1
  69. package/style.css +1 -1
  70. package/useCgformList-2d6a5955.mjs +388 -0
  71. package/useExtendComponent-48d37d9b.mjs +3919 -0
  72. package/useListButton-cef1371a.mjs +656 -0
  73. package/useOnlinePopEvent-e9a042f8.mjs +19 -0
  74. package/useOnlineTest-0df0ae86.mjs +43 -0
  75. package/useSchemas-fc8d97ce.mjs +669 -0
  76. package/useTableSync-dc333087.mjs +83 -0
  77. package/AuthButtonConfig.js +0 -147
  78. package/AuthButtonTree.js +0 -183
  79. package/AuthDataConfig.js +0 -246
  80. package/AuthDataTree.js +0 -160
  81. package/AuthFieldConfig.js +0 -170
  82. package/AuthFieldTree.js +0 -281
  83. package/AuthManagerDrawer.js +0 -125
  84. package/AuthSetterModal.js +0 -316
  85. package/CgformCopyList.js +0 -266
  86. package/CgformModal.js +0 -780
  87. package/CgreportModal.js +0 -667
  88. package/CheckDictTable.js +0 -242
  89. package/CodeFileListModal.js +0 -175
  90. package/CodeFileViewModal.js +0 -325
  91. package/CodeGeneratorModal.js +0 -297
  92. package/CustomButtonList.js +0 -410
  93. package/DBAttributeTable.js +0 -526
  94. package/DbToOnlineModal.js +0 -192
  95. package/DetailForm.js +0 -608
  96. package/EnhanceJavaModal.js +0 -298
  97. package/EnhanceJsHistory.js +0 -229
  98. package/EnhanceJsModal.js +0 -293
  99. package/EnhanceSqlModal.js +0 -299
  100. package/ExtendConfigModal.js +0 -151
  101. package/FieldExtendJsonModal.js +0 -283
  102. package/FileSelectModal.js +0 -102
  103. package/ForeignKeyTable.js +0 -79
  104. package/IndexTable.js +0 -97
  105. package/JModalTip.js +0 -54
  106. package/JOnlineSearchSelect.js +0 -115
  107. package/LICENSE +0 -9
  108. package/LeftDepart.js +0 -96
  109. package/LeftRole.js +0 -98
  110. package/LeftUser.js +0 -117
  111. package/LinkTableConfigModal.js +0 -289
  112. package/LinkTableFieldConfigModal.js +0 -218
  113. package/LinkTableListPiece.js +0 -36
  114. package/ModalFormDemo.js +0 -85
  115. package/OnlineAutoList.js +0 -524
  116. package/OnlineAutoModal.js +0 -226
  117. package/OnlineAutoTreeList.js +0 -553
  118. package/OnlineCustomModal.js +0 -286
  119. package/OnlineDetailModal.js +0 -190
  120. package/OnlineForm.js +0 -1018
  121. package/OnlineFormDetail.js +0 -347
  122. package/OnlineQueryForm.js +0 -484
  123. package/OnlineSearchFormItem.js +0 -436
  124. package/OnlineSelectCascade.js +0 -228
  125. package/OnlineSubFormDetail.js +0 -166
  126. package/PageAttributeTable.js +0 -486
  127. package/ProcessOnlineForm.js +0 -208
  128. package/QueryTable.js +0 -129
  129. package/SuperQuery.js +0 -1021
  130. package/SuperQueryValComponent.js +0 -9
  131. package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -162
  132. package/_arrayPush.js +0 -278
  133. package/_baseClone.js +0 -471
  134. package/_baseSlice.js +0 -18
  135. package/_commonjsHelpers.js +0 -5
  136. package/_flatRest.js +0 -174
  137. package/auth.api.js +0 -43
  138. package/auth.data.js +0 -142
  139. package/clipboard.js +0 -565
  140. package/enhance.api.js +0 -129
  141. package/enhance.data.js +0 -196
  142. package/index.js +0 -87
  143. package/index2.js +0 -340
  144. package/index3.js +0 -264
  145. package/isArray.js +0 -47
  146. package/omit.js +0 -60
  147. package/pick.js +0 -68
  148. package/toString.js +0 -31
  149. package/useCgformList.js +0 -470
  150. package/useExtendComponent.js +0 -5205
  151. package/useListButton.js +0 -923
  152. package/useOnlineTest.js +0 -44
  153. package/useSchemas.js +0 -653
  154. 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-6a09a912.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-6a09a912.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-b1217a0c.mjs";
4
+ import v from "./AuthButtonConfig-2f71787c.mjs";
5
+ import k from "./AuthDataConfig-32cf23d2.mjs";
6
+ import { _ as K } from "./index-6a09a912.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
+ };