@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,261 @@
1
+ var K = Object.defineProperty, E = Object.defineProperties;
2
+ var U = Object.getOwnPropertyDescriptors;
3
+ var k = Object.getOwnPropertySymbols;
4
+ var w = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
5
+ var M = (e, t, a) => t in e ? K(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a, B = (e, t) => {
6
+ for (var a in t || (t = {}))
7
+ w.call(t, a) && M(e, a, t[a]);
8
+ if (k)
9
+ for (var a of k(t))
10
+ F.call(t, a) && M(e, a, t[a]);
11
+ return e;
12
+ }, D = (e, t) => E(e, U(t));
13
+ var C = (e, t, a) => new Promise((i, r) => {
14
+ var n = (f) => {
15
+ try {
16
+ u(a.next(f));
17
+ } catch (m) {
18
+ r(m);
19
+ }
20
+ }, p = (f) => {
21
+ try {
22
+ u(a.throw(f));
23
+ } catch (m) {
24
+ r(m);
25
+ }
26
+ }, u = (f) => f.done ? i(f.value) : Promise.resolve(f.value).then(n, p);
27
+ u((a = a.apply(e, t)).next());
28
+ });
29
+ import $ from "./LeftRole-d0fa8398.mjs";
30
+ import N from "./LeftDepart-ca7a7375.mjs";
31
+ import O from "./LeftUser-0c88c240.mjs";
32
+ import V from "./AuthFieldTree-888e04a9.mjs";
33
+ import P from "./AuthButtonTree-d73bccf5.mjs";
34
+ import j from "./AuthDataTree-03d62d3f.mjs";
35
+ import { defineComponent as q, ref as s, computed as z, nextTick as I, resolveComponent as c, openBlock as L, createBlock as G, withCtx as l, createVNode as o, createElementBlock as H, Fragment as J, createCommentVNode as Q } from "vue";
36
+ import { BasicModal as W, useModalInner as X } from "/@/components/Modal";
37
+ import { _ as Y } from "./index-6a09a912.mjs";
38
+ import "/@/utils/http/axios";
39
+ import "/@/components/Table";
40
+ import "/@/hooks/system/useListPage";
41
+ import "/@/api/common/api";
42
+ import "/@/hooks/web/useMessage";
43
+ import "./auth.api-d3a6c4b3.mjs";
44
+ import "@ant-design/icons-vue";
45
+ import "./auth.data-8be5c9e3.mjs";
46
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
47
+ import "vue-router";
48
+ const Z = q({
49
+ name: "AuthSetterModal",
50
+ components: {
51
+ BasicModal: W,
52
+ LeftRole: $,
53
+ LeftDepart: N,
54
+ LeftUser: O,
55
+ AuthFieldTree: V,
56
+ AuthButtonTree: P,
57
+ AuthDataTree: j
58
+ },
59
+ props: {
60
+ // 1单表 2主表 3附表
61
+ tableType: { type: Number, default: 1 }
62
+ },
63
+ setup(e) {
64
+ const t = s(""), a = s(!1), i = s("field"), r = s("role"), n = {
65
+ fieldRef: s(),
66
+ buttonRef: s(),
67
+ dataRef: s(),
68
+ roleRef: s(),
69
+ userRef: s(),
70
+ departRef: s()
71
+ }, p = s(""), u = z(() => e.tableType == 1 || e.tableType == 2), [f, { closeModal: m }] = X((d) => {
72
+ i.value = "field", t.value = d.cgformId, h();
73
+ });
74
+ function v(d = i.value) {
75
+ var T;
76
+ return (T = n[d + "Ref"]) == null ? void 0 : T.value;
77
+ }
78
+ function h() {
79
+ return C(this, null, function* () {
80
+ yield I(), y(), v().clear();
81
+ });
82
+ }
83
+ function S(d) {
84
+ p.value = d, R(i.value), _();
85
+ }
86
+ function b(d) {
87
+ p.value = d, R(i.value), _();
88
+ }
89
+ function A(d) {
90
+ p.value = d, R(i.value), _();
91
+ }
92
+ function _() {
93
+ r.value == "role" ? (n.departRef.value.clearSelected(), n.userRef.value.clearSelected()) : r.value == "depart" ? (n.roleRef.value.clearSelected(), n.userRef.value.clearSelected()) : r.value == "user" && (n.departRef.value.clearSelected(), n.roleRef.value.clearSelected());
94
+ }
95
+ function y() {
96
+ r.value == "role" ? n.roleRef.value.clearSelected() : r.value == "depart" ? n.departRef.value.clearSelected() : r.value == "user" && n.userRef.value.clearSelected(), v().clearChecked();
97
+ }
98
+ function R(d) {
99
+ return C(this, null, function* () {
100
+ yield I(), p.value && v(d).loadChecked(p.value, r.value);
101
+ });
102
+ }
103
+ function g() {
104
+ y();
105
+ }
106
+ return D(B({}, n), {
107
+ cgformId: t,
108
+ loading: a,
109
+ activeKey: i,
110
+ hasDataAuth: u,
111
+ authMode: r,
112
+ onAuthModeChange: g,
113
+ onAuthTypeChange: R,
114
+ closeModal: m,
115
+ onSelectRole: S,
116
+ onSelectDepart: b,
117
+ onSelectUser: A,
118
+ registerModal: f
119
+ });
120
+ }
121
+ });
122
+ function x(e, t, a, i, r, n) {
123
+ const p = c("LeftRole"), u = c("a-tab-pane"), f = c("LeftDepart"), m = c("LeftUser"), v = c("a-tabs"), h = c("a-col"), S = c("AuthFieldTree"), b = c("AuthButtonTree"), A = c("AuthDataTree"), _ = c("a-row"), y = c("a-spin"), R = c("BasicModal");
124
+ return L(), G(R, {
125
+ title: "Online权限授权",
126
+ width: 900,
127
+ maskClosable: !1,
128
+ defaultFullscreen: "",
129
+ okButtonProps: { style: { display: "none" } },
130
+ cancelText: "关闭",
131
+ onCancel: e.closeModal,
132
+ onRegister: e.registerModal
133
+ }, {
134
+ default: l(() => [
135
+ o(y, { spinning: e.loading }, {
136
+ default: l(() => [
137
+ o(_, null, {
138
+ default: l(() => [
139
+ o(h, { span: 12 }, {
140
+ default: l(() => [
141
+ o(v, {
142
+ activeKey: e.authMode,
143
+ "onUpdate:activeKey": t[0] || (t[0] = (g) => e.authMode = g),
144
+ onChange: e.onAuthModeChange
145
+ }, {
146
+ default: l(() => [
147
+ o(u, {
148
+ tab: "角色授权",
149
+ key: "role",
150
+ forceRender: ""
151
+ }, {
152
+ default: l(() => [
153
+ o(p, {
154
+ ref: "roleRef",
155
+ onSelect: e.onSelectRole
156
+ }, null, 8, ["onSelect"])
157
+ ]),
158
+ _: 1
159
+ }),
160
+ o(u, {
161
+ tab: "部门授权",
162
+ key: "depart",
163
+ forceRender: ""
164
+ }, {
165
+ default: l(() => [
166
+ o(f, {
167
+ ref: "departRef",
168
+ onSelect: e.onSelectDepart
169
+ }, null, 8, ["onSelect"])
170
+ ]),
171
+ _: 1
172
+ }),
173
+ o(u, {
174
+ tab: "人员授权",
175
+ key: "user",
176
+ forceRender: ""
177
+ }, {
178
+ default: l(() => [
179
+ o(m, {
180
+ ref: "userRef",
181
+ onSelect: e.onSelectUser
182
+ }, null, 8, ["onSelect"])
183
+ ]),
184
+ _: 1
185
+ })
186
+ ]),
187
+ _: 1
188
+ }, 8, ["activeKey", "onChange"])
189
+ ]),
190
+ _: 1
191
+ }),
192
+ o(h, { span: 1 }),
193
+ o(h, { span: 11 }, {
194
+ default: l(() => [
195
+ o(v, {
196
+ activeKey: e.activeKey,
197
+ "onUpdate:activeKey": t[1] || (t[1] = (g) => e.activeKey = g),
198
+ onChange: e.onAuthTypeChange
199
+ }, {
200
+ default: l(() => [
201
+ o(u, {
202
+ tab: "字段权限",
203
+ key: "field",
204
+ forceRender: ""
205
+ }, {
206
+ default: l(() => [
207
+ o(S, {
208
+ ref: "fieldRef",
209
+ cgformId: e.cgformId
210
+ }, null, 8, ["cgformId"])
211
+ ]),
212
+ _: 1
213
+ }),
214
+ e.hasDataAuth ? (L(), H(J, { key: 0 }, [
215
+ o(u, {
216
+ tab: "按钮权限",
217
+ key: "button",
218
+ forceRender: ""
219
+ }, {
220
+ default: l(() => [
221
+ o(b, {
222
+ ref: "buttonRef",
223
+ cgformId: e.cgformId
224
+ }, null, 8, ["cgformId"])
225
+ ]),
226
+ _: 1
227
+ }),
228
+ o(u, {
229
+ tab: "数据权限",
230
+ key: "data",
231
+ forceRender: ""
232
+ }, {
233
+ default: l(() => [
234
+ o(A, {
235
+ ref: "dataRef",
236
+ cgformId: e.cgformId
237
+ }, null, 8, ["cgformId"])
238
+ ]),
239
+ _: 1
240
+ })
241
+ ], 64)) : Q("", !0)
242
+ ]),
243
+ _: 1
244
+ }, 8, ["activeKey", "onChange"])
245
+ ]),
246
+ _: 1
247
+ })
248
+ ]),
249
+ _: 1
250
+ })
251
+ ]),
252
+ _: 1
253
+ }, 8, ["spinning"])
254
+ ]),
255
+ _: 1
256
+ }, 8, ["onCancel", "onRegister"]);
257
+ }
258
+ const ye = /* @__PURE__ */ Y(Z, [["render", x]]);
259
+ export {
260
+ ye as default
261
+ };
@@ -0,0 +1,245 @@
1
+ import { defineComponent as J, provide as B, watch as k, resolveComponent as e, openBlock as C, createElementBlock as M, Fragment as v, createElementVNode as I, normalizeClass as q, createVNode as t, withCtx as n, createTextVNode as a, createCommentVNode as T } from "vue";
2
+ import { BasicTable as L, TableAction as N } from "/@/components/Table";
3
+ import { C as V } from "./CgformModal-6938d8c2.mjs";
4
+ import F from "./DbToOnlineModal-dc5d2030.mjs";
5
+ import O from "./CustomButtonList-1c9bd859.mjs";
6
+ import $ from "./EnhanceJsModal-0b133341.mjs";
7
+ import P from "./EnhanceJavaModal-7f53d2ca.mjs";
8
+ import z from "./EnhanceSqlModal-33a94c83.mjs";
9
+ import Q from "./AuthManagerDrawer-f127b8a2.mjs";
10
+ import Y from "./AuthSetterModal-37da78ed.mjs";
11
+ import { C as j, u as G } from "./useCgformList-2d6a5955.mjs";
12
+ import { _ as H } from "./index-6a09a912.mjs";
13
+ import "/@/components/Icon";
14
+ import "/@/components/Modal";
15
+ import "/@/components/Form/index";
16
+ import "/@/hooks/web/useMessage";
17
+ import "./useSchemas-fc8d97ce.mjs";
18
+ import "ant-design-vue";
19
+ import "@ant-design/icons-vue";
20
+ import "/@/utils/common/compUtils";
21
+ import "/@/hooks/web/usePermission";
22
+ import "/@/utils/helper/validator";
23
+ import "./DBAttributeTable-cd1c41e5.mjs";
24
+ import "/@/components/jeecg/JVxeTable/types";
25
+ import "./useTableSync-dc333087.mjs";
26
+ import "./cgform.data-cbdd88c3.mjs";
27
+ import "/@/utils/dict";
28
+ import "/@/utils/dict/JDictSelectUtil";
29
+ import "/@/utils/uuid";
30
+ import "lodash-es";
31
+ import "./PageAttributeTable-811185fd.mjs";
32
+ import "./LinkTableConfigModal-77d7c0b9.mjs";
33
+ import "/@/utils/http/axios";
34
+ import "./LinkTableFieldConfigModal-c5689ab0.mjs";
35
+ import "./FieldExtendJsonModal-48f7d67f.mjs";
36
+ import "./CheckDictTable-414313f2.mjs";
37
+ import "/@/components/jeecg/JPrompt";
38
+ import "/@/hooks/web/useDesign";
39
+ import "./ForeignKeyTable-cb1abd1d.mjs";
40
+ import "./IndexTable-4e94cd1f.mjs";
41
+ import "./QueryTable-4ba771ef.mjs";
42
+ import "./ExtendConfigModal-60f2cf86.mjs";
43
+ import "/@/components/Form";
44
+ import "./useOnlineTest-0df0ae86.mjs";
45
+ import "/@/utils";
46
+ import "./useExtendComponent-48d37d9b.mjs";
47
+ import "/@/components/Form/src/componentMap";
48
+ import "/@/utils/propTypes";
49
+ import "/@/components/Form/src/jeecg/components/JUpload";
50
+ import "/@/views/system/user/user.api";
51
+ import "/@/store/modules/user";
52
+ import "/@/utils/desform/customExpression";
53
+ import "/@/store/modules/permission";
54
+ import "/@/hooks/system/useListPage";
55
+ import "vue-router";
56
+ import "/@/components/Form/src/utils/Area";
57
+ import "/@/components/Preview/index";
58
+ import "./LinkTableListPiece-34266919.mjs";
59
+ import "./OnlineSelectCascade-c7baf52b.mjs";
60
+ import "/@/components/Loading";
61
+ import "/@/utils/auth";
62
+ import "./JModalTip-abe1515a.mjs";
63
+ import "@vueuse/core";
64
+ import "./EnhanceJsHistory-c30805ce.mjs";
65
+ import "/@/utils/dateUtil";
66
+ import "/@/store";
67
+ import "pinia";
68
+ import "/@/utils/cache";
69
+ import "./enhance.api-138e6826.mjs";
70
+ import "/@/utils/is";
71
+ import "./enhance.data-efc7e155.mjs";
72
+ import "/@/components/Drawer";
73
+ import "./AuthFieldConfig-b1217a0c.mjs";
74
+ import "./auth.api-d3a6c4b3.mjs";
75
+ import "./auth.data-8be5c9e3.mjs";
76
+ import "./AuthButtonConfig-2f71787c.mjs";
77
+ import "./AuthDataConfig-32cf23d2.mjs";
78
+ import "./LeftRole-d0fa8398.mjs";
79
+ import "./LeftDepart-ca7a7375.mjs";
80
+ import "/@/api/common/api";
81
+ import "./LeftUser-0c88c240.mjs";
82
+ import "./AuthFieldTree-888e04a9.mjs";
83
+ import "./AuthButtonTree-d73bccf5.mjs";
84
+ import "./AuthDataTree-03d62d3f.mjs";
85
+ import "clipboard";
86
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
87
+ const K = J({
88
+ name: "CgformCopyList",
89
+ components: {
90
+ BasicTable: L,
91
+ TableAction: N,
92
+ CgformModal: V,
93
+ DbToOnlineModal: F,
94
+ CustomButtonList: O,
95
+ EnhanceJsModal: $,
96
+ EnhanceJavaModal: P,
97
+ EnhanceSqlModal: z,
98
+ AuthManagerDrawer: Q,
99
+ AuthSetterModal: Y
100
+ },
101
+ setup() {
102
+ const o = j.copy;
103
+ B("cgformPageType", o);
104
+ const {
105
+ router: S,
106
+ pageContext: E,
107
+ getTableAction: A,
108
+ getDropDownAction: b,
109
+ onShowCustomButton: w,
110
+ onShowEnhanceJs: i,
111
+ onShowEnhanceSql: m,
112
+ onShowEnhanceJava: p,
113
+ registerCustomButtonModal: l,
114
+ registerEnhanceJsModal: s,
115
+ registerEnhanceSqlModal: c,
116
+ registerEnhanceJavaModal: u,
117
+ registerAuthManagerDrawer: g,
118
+ registerAuthSetterModal: d,
119
+ registerCgformModal: h,
120
+ registerDbToOnlineModal: f
121
+ } = G({
122
+ pageType: o,
123
+ designScope: "online-cgform-list",
124
+ columns: [
125
+ { title: "视图表名", dataIndex: "tableName" },
126
+ { title: "视图表描述", dataIndex: "tableTxt" },
127
+ { title: "原表版本", dataIndex: "copyVersion" },
128
+ { title: "视图版本", dataIndex: "tableVersion" }
129
+ ],
130
+ formSchemas: [{ label: "表名", field: "tableName", component: "JInput" }]
131
+ }), { prefixCls: r, tableContext: y } = E, [R, { reload: _ }, { rowSelection: D }] = y;
132
+ return k(S.currentRoute, () => _()), {
133
+ prefixCls: r,
134
+ reload: _,
135
+ rowSelection: D,
136
+ getTableAction: A,
137
+ getDropDownAction: b,
138
+ onShowCustomButton: w,
139
+ onShowEnhanceJs: i,
140
+ onShowEnhanceSql: m,
141
+ onShowEnhanceJava: p,
142
+ registerCustomButtonModal: l,
143
+ registerEnhanceJsModal: s,
144
+ registerEnhanceSqlModal: c,
145
+ registerEnhanceJavaModal: u,
146
+ registerAuthManagerDrawer: g,
147
+ registerAuthSetterModal: d,
148
+ registerTable: R,
149
+ registerCgformModal: h,
150
+ registerDbToOnlineModal: f
151
+ };
152
+ }
153
+ }), U = {
154
+ key: 0,
155
+ style: { color: "limegreen" }
156
+ }, W = {
157
+ key: 1,
158
+ style: { color: "red" }
159
+ };
160
+ function X(o, S, E, A, b, w) {
161
+ const i = e("a-button"), m = e("TableAction"), p = e("BasicTable"), l = e("CgformModal"), s = e("EnhanceJsModal"), c = e("EnhanceJavaModal"), u = e("EnhanceSqlModal"), g = e("DbToOnlineModal"), d = e("CustomButtonList"), h = e("AuthManagerDrawer"), f = e("AuthSetterModal");
162
+ return C(), M(v, null, [
163
+ I("div", {
164
+ class: q(o.prefixCls)
165
+ }, [
166
+ t(p, {
167
+ onRegister: o.registerTable,
168
+ rowSelection: o.rowSelection
169
+ }, {
170
+ tableTitle: n(() => [
171
+ t(i, {
172
+ onClick: o.onShowCustomButton,
173
+ type: "primary",
174
+ preIcon: "ant-design:highlight"
175
+ }, {
176
+ default: n(() => [
177
+ a("自定义按钮")
178
+ ]),
179
+ _: 1
180
+ }, 8, ["onClick"]),
181
+ t(i, {
182
+ onClick: o.onShowEnhanceJs,
183
+ type: "primary",
184
+ preIcon: "ant-design:strikethrough"
185
+ }, {
186
+ default: n(() => [
187
+ a("JS增强")
188
+ ]),
189
+ _: 1
190
+ }, 8, ["onClick"]),
191
+ t(i, {
192
+ onClick: o.onShowEnhanceSql,
193
+ type: "primary",
194
+ preIcon: "ant-design:filter"
195
+ }, {
196
+ default: n(() => [
197
+ a("SQL增强")
198
+ ]),
199
+ _: 1
200
+ }, 8, ["onClick"]),
201
+ t(i, {
202
+ onClick: o.onShowEnhanceJava,
203
+ type: "primary",
204
+ preIcon: "ant-design:tool"
205
+ }, {
206
+ default: n(() => [
207
+ a("Java增强")
208
+ ]),
209
+ _: 1
210
+ }, 8, ["onClick"])
211
+ ]),
212
+ dbSync: n(({ text: r }) => [
213
+ r === "Y" ? (C(), M("span", U, "已同步")) : T("", !0),
214
+ r === "N" ? (C(), M("span", W, "未同步")) : T("", !0)
215
+ ]),
216
+ action: n(({ record: r }) => [
217
+ t(m, {
218
+ actions: o.getTableAction(r),
219
+ dropDownActions: o.getDropDownAction(r)
220
+ }, null, 8, ["actions", "dropDownActions"])
221
+ ]),
222
+ _: 1
223
+ }, 8, ["onRegister", "rowSelection"])
224
+ ], 2),
225
+ t(l, {
226
+ onRegister: o.registerCgformModal,
227
+ actionButton: !1,
228
+ onSuccess: o.reload
229
+ }, null, 8, ["onRegister", "onSuccess"]),
230
+ t(s, { onRegister: o.registerEnhanceJsModal }, null, 8, ["onRegister"]),
231
+ t(c, { onRegister: o.registerEnhanceJavaModal }, null, 8, ["onRegister"]),
232
+ t(u, { onRegister: o.registerEnhanceSqlModal }, null, 8, ["onRegister"]),
233
+ t(g, {
234
+ onRegister: o.registerDbToOnlineModal,
235
+ onSuccess: o.reload
236
+ }, null, 8, ["onRegister", "onSuccess"]),
237
+ t(d, { onRegister: o.registerCustomButtonModal }, null, 8, ["onRegister"]),
238
+ t(h, { onRegister: o.registerAuthManagerDrawer }, null, 8, ["onRegister"]),
239
+ t(f, { onRegister: o.registerAuthSetterModal }, null, 8, ["onRegister"])
240
+ ], 64);
241
+ }
242
+ const kt = /* @__PURE__ */ H(K, [["render", X]]);
243
+ export {
244
+ kt as default
245
+ };