@jeecg/online 1.0.1

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 (82) hide show
  1. package/AuthButtonConfig.js +140 -0
  2. package/AuthButtonTree.js +183 -0
  3. package/AuthDataConfig.js +243 -0
  4. package/AuthDataTree.js +160 -0
  5. package/AuthFieldConfig.js +167 -0
  6. package/AuthFieldTree.js +273 -0
  7. package/AuthManagerDrawer.js +125 -0
  8. package/AuthSetterModal.js +317 -0
  9. package/CgformCopyList.js +253 -0
  10. package/CgformModal.js +748 -0
  11. package/CgreportModal.js +673 -0
  12. package/ChartAutoRender.js +69 -0
  13. package/ChartDoubleRender.js +154 -0
  14. package/ChartSingleRender.js +132 -0
  15. package/ChartTabsRender.js +218 -0
  16. package/CheckDictTable.js +121 -0
  17. package/CodeGeneratorModal.js +293 -0
  18. package/CustomButtonList.js +413 -0
  19. package/DBAttributeTable.js +278 -0
  20. package/DbToOnlineModal.js +190 -0
  21. package/EnhanceJavaModal.js +304 -0
  22. package/EnhanceJsHistory.js +231 -0
  23. package/EnhanceJsModal.js +293 -0
  24. package/EnhanceSqlModal.js +305 -0
  25. package/ErrorTip.js +21 -0
  26. package/ExtendConfigModal.js +142 -0
  27. package/FieldTable.js +185 -0
  28. package/FileSelectModal.js +102 -0
  29. package/ForeignKeyTable.js +78 -0
  30. package/FormSchemaFactory.js +938 -0
  31. package/GraphreportAutoChart.js +352 -0
  32. package/GraphreportList.js +239 -0
  33. package/GraphreportModal.js +559 -0
  34. package/IndexTable.js +96 -0
  35. package/JOnlineSearchSelect.js +107 -0
  36. package/LICENSE +7 -0
  37. package/LeftDepart.js +96 -0
  38. package/LeftRole.js +95 -0
  39. package/LeftUser.js +114 -0
  40. package/ModalFormDemo.js +84 -0
  41. package/OnlineAutoList.js +410 -0
  42. package/OnlineAutoModal.js +265 -0
  43. package/OnlineAutoTreeList.js +513 -0
  44. package/OnlineCustomModal.js +269 -0
  45. package/OnlineForm.js +809 -0
  46. package/OnlineQueryForm.js +442 -0
  47. package/OnlineSearchFormItem.js +428 -0
  48. package/OnlineSelectCascade.js +217 -0
  49. package/OnlineSubForm.js +200 -0
  50. package/OnlineSuperQuery.js +912 -0
  51. package/OnlineSuperQueryValComponent.js +8 -0
  52. package/OnlineSuperQueryValComponent.vue_vue_type_script_lang.js +172 -0
  53. package/PageAttributeTable.js +242 -0
  54. package/ParamsTable.js +71 -0
  55. package/ProcessOnlineForm.js +183 -0
  56. package/QueryTable.js +128 -0
  57. package/README.md +23 -0
  58. package/_arrayPush.js +276 -0
  59. package/auth.api.js +43 -0
  60. package/auth.data.js +144 -0
  61. package/cgform.data.js +235 -0
  62. package/cloneDeep.js +475 -0
  63. package/enhance.api.js +120 -0
  64. package/enhance.data.js +196 -0
  65. package/graphreport.api.js +23 -0
  66. package/index.js +64 -0
  67. package/index2.js +336 -0
  68. package/index3.js +799 -0
  69. package/isArray.js +47 -0
  70. package/main.index.js +6 -0
  71. package/package.json +6 -0
  72. package/pick.js +238 -0
  73. package/style.css +1 -0
  74. package/toString.js +31 -0
  75. package/useAutoForm.js +4274 -0
  76. package/useCgformList.js +353 -0
  77. package/useChartRender.js +405 -0
  78. package/useMessageOnline.js +71 -0
  79. package/useOnlineTest.js +26866 -0
  80. package/useSchemas.js +505 -0
  81. package/useTableColumns.js +1154 -0
  82. package/useTableSync.js +105 -0
@@ -0,0 +1,125 @@
1
+ import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementBlock, Fragment, createCommentVNode } from "vue";
2
+ import { BasicDrawer, useDrawerInner } from "/@/components/Drawer";
3
+ import AuthFieldConfig from "./AuthFieldConfig.js";
4
+ import AuthButtonConfig from "./AuthButtonConfig.js";
5
+ import AuthDataConfig from "./AuthDataConfig.js";
6
+ import { _ as _export_sfc } from "./index.js";
7
+ import "/@/components/Table";
8
+ import "./auth.api.js";
9
+ import "/@/utils/http/axios";
10
+ import "./auth.data.js";
11
+ import "./cloneDeep.js";
12
+ import "./_arrayPush.js";
13
+ import "./isArray.js";
14
+ import "/@/components/Modal";
15
+ import "/@/components/Form";
16
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
17
+ import "/@/hooks/web/useMessage";
18
+ import "vue-router";
19
+ const _sfc_main = defineComponent({
20
+ name: "AuthManagerDrawer",
21
+ components: {
22
+ BasicDrawer,
23
+ AuthFieldConfig,
24
+ AuthButtonConfig,
25
+ AuthDataConfig
26
+ },
27
+ props: {
28
+ tableType: {
29
+ type: Number,
30
+ default: 1
31
+ }
32
+ },
33
+ emits: ["register"],
34
+ setup(props) {
35
+ const cgformId = ref("");
36
+ const headId = ref("");
37
+ const authFields = ref([]);
38
+ const activeKey = ref("field");
39
+ const hasDataAuth = computed(() => props.tableType == 1 || props.tableType == 2);
40
+ const [registerDrawer, { closeDrawer }] = useDrawerInner((data) => {
41
+ cgformId.value = data.cgformId;
42
+ headId.value = cgformId.value + "?" + new Date().getTime();
43
+ activeKey.value = "field";
44
+ });
45
+ function onClose() {
46
+ closeDrawer();
47
+ }
48
+ return {
49
+ activeKey,
50
+ cgformId,
51
+ headId,
52
+ authFields,
53
+ hasDataAuth,
54
+ onClose,
55
+ registerDrawer
56
+ };
57
+ }
58
+ });
59
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
60
+ const _component_AuthFieldConfig = resolveComponent("AuthFieldConfig");
61
+ const _component_a_tab_pane = resolveComponent("a-tab-pane");
62
+ const _component_AuthButtonConfig = resolveComponent("AuthButtonConfig");
63
+ const _component_AuthDataConfig = resolveComponent("AuthDataConfig");
64
+ const _component_a_tabs = resolveComponent("a-tabs");
65
+ const _component_BasicDrawer = resolveComponent("BasicDrawer");
66
+ return openBlock(), createBlock(_component_BasicDrawer, {
67
+ onRegister: _ctx.registerDrawer,
68
+ title: "\u6743\u9650\u7BA1\u7406",
69
+ width: 800,
70
+ onClose: _ctx.onClose
71
+ }, {
72
+ default: withCtx(() => [
73
+ createVNode(_component_a_tabs, {
74
+ activeKey: _ctx.activeKey,
75
+ "onUpdate:activeKey": _cache[1] || (_cache[1] = ($event) => _ctx.activeKey = $event)
76
+ }, {
77
+ default: withCtx(() => [
78
+ createVNode(_component_a_tab_pane, {
79
+ tab: "\u5B57\u6BB5\u6743\u9650",
80
+ key: "field",
81
+ forceRender: ""
82
+ }, {
83
+ default: withCtx(() => [
84
+ createVNode(_component_AuthFieldConfig, {
85
+ headId: _ctx.headId,
86
+ authFields: _ctx.authFields,
87
+ "onUpdate:authFields": _cache[0] || (_cache[0] = ($event) => _ctx.authFields = $event)
88
+ }, null, 8, ["headId", "authFields"])
89
+ ]),
90
+ _: 1
91
+ }),
92
+ _ctx.hasDataAuth ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
93
+ createVNode(_component_a_tab_pane, {
94
+ tab: "\u6309\u94AE\u6743\u9650",
95
+ key: "button",
96
+ forceRender: ""
97
+ }, {
98
+ default: withCtx(() => [
99
+ createVNode(_component_AuthButtonConfig, { headId: _ctx.headId }, null, 8, ["headId"])
100
+ ]),
101
+ _: 1
102
+ }),
103
+ createVNode(_component_a_tab_pane, {
104
+ tab: "\u6570\u636E\u6743\u9650",
105
+ key: "data",
106
+ forceRender: ""
107
+ }, {
108
+ default: withCtx(() => [
109
+ createVNode(_component_AuthDataConfig, {
110
+ cgformId: _ctx.cgformId,
111
+ authFields: _ctx.authFields
112
+ }, null, 8, ["cgformId", "authFields"])
113
+ ]),
114
+ _: 1
115
+ })
116
+ ], 64)) : createCommentVNode("", true)
117
+ ]),
118
+ _: 1
119
+ }, 8, ["activeKey"])
120
+ ]),
121
+ _: 1
122
+ }, 8, ["onRegister", "onClose"]);
123
+ }
124
+ var AuthManagerDrawer = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
125
+ export { AuthManagerDrawer as default };
@@ -0,0 +1,317 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __async = (__this, __arguments, generator) => {
21
+ return new Promise((resolve, reject) => {
22
+ var fulfilled = (value) => {
23
+ try {
24
+ step(generator.next(value));
25
+ } catch (e) {
26
+ reject(e);
27
+ }
28
+ };
29
+ var rejected = (value) => {
30
+ try {
31
+ step(generator.throw(value));
32
+ } catch (e) {
33
+ reject(e);
34
+ }
35
+ };
36
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
37
+ step((generator = generator.apply(__this, __arguments)).next());
38
+ });
39
+ };
40
+ import LeftRole from "./LeftRole.js";
41
+ import LeftDepart from "./LeftDepart.js";
42
+ import LeftUser from "./LeftUser.js";
43
+ import AuthFieldTree from "./AuthFieldTree.js";
44
+ import AuthButtonTree from "./AuthButtonTree.js";
45
+ import AuthDataTree from "./AuthDataTree.js";
46
+ import { defineComponent, ref, computed, nextTick, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementBlock, Fragment, createCommentVNode } from "vue";
47
+ import { BasicModal, useModalInner } from "/@/components/Modal";
48
+ import { _ as _export_sfc } from "./index.js";
49
+ import "/@/utils/http/axios";
50
+ import "/@/components/Table";
51
+ import "/@/hooks/system/useListPage";
52
+ import "/@/api/common/api";
53
+ import "/@/hooks/web/useMessage";
54
+ import "./auth.api.js";
55
+ import "./auth.data.js";
56
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
57
+ import "vue-router";
58
+ const _sfc_main = defineComponent({
59
+ name: "AuthSetterModal",
60
+ components: {
61
+ BasicModal,
62
+ LeftRole,
63
+ LeftDepart,
64
+ LeftUser,
65
+ AuthFieldTree,
66
+ AuthButtonTree,
67
+ AuthDataTree
68
+ },
69
+ props: {
70
+ tableType: { type: Number, default: 1 }
71
+ },
72
+ setup(props) {
73
+ const cgformId = ref("");
74
+ const loading = ref(false);
75
+ const activeKey = ref("field");
76
+ const authMode = ref("role");
77
+ const refs = {
78
+ fieldRef: ref(),
79
+ buttonRef: ref(),
80
+ dataRef: ref(),
81
+ roleRef: ref(),
82
+ userRef: ref(),
83
+ departRef: ref()
84
+ };
85
+ const activeRole = ref("");
86
+ const hasDataAuth = computed(() => props.tableType == 1 || props.tableType == 2);
87
+ const [registerModal, { closeModal }] = useModalInner((data) => {
88
+ activeKey.value = "field";
89
+ if (cgformId.value != data.cgformId) {
90
+ cgformId.value = data.cgformId;
91
+ reset();
92
+ }
93
+ });
94
+ function getActiveRef(key = activeKey.value) {
95
+ var _a;
96
+ return (_a = refs[key + "Ref"]) == null ? void 0 : _a.value;
97
+ }
98
+ function reset() {
99
+ return __async(this, null, function* () {
100
+ yield nextTick();
101
+ clearLeftCurrentTabSelect();
102
+ getActiveRef().clear();
103
+ });
104
+ }
105
+ function onSelectRole(roleId) {
106
+ activeRole.value = roleId;
107
+ onAuthTypeChange(activeKey.value);
108
+ clearLeftOtherTabSelect();
109
+ }
110
+ function onSelectDepart(departid) {
111
+ activeRole.value = departid;
112
+ onAuthTypeChange(activeKey.value);
113
+ clearLeftOtherTabSelect();
114
+ }
115
+ function onSelectUser(userId) {
116
+ activeRole.value = userId;
117
+ onAuthTypeChange(activeKey.value);
118
+ clearLeftOtherTabSelect();
119
+ }
120
+ function clearLeftOtherTabSelect() {
121
+ if (authMode.value == "role") {
122
+ refs.departRef.value.clearSelected();
123
+ refs.userRef.value.clearSelected();
124
+ } else if (authMode.value == "depart") {
125
+ refs.roleRef.value.clearSelected();
126
+ refs.userRef.value.clearSelected();
127
+ } else if (authMode.value == "user") {
128
+ refs.departRef.value.clearSelected();
129
+ refs.roleRef.value.clearSelected();
130
+ }
131
+ }
132
+ function clearLeftCurrentTabSelect() {
133
+ if (authMode.value == "role") {
134
+ refs.roleRef.value.clearSelected();
135
+ } else if (authMode.value == "depart") {
136
+ refs.departRef.value.clearSelected();
137
+ } else if (authMode.value == "user") {
138
+ refs.userRef.value.clearSelected();
139
+ }
140
+ getActiveRef().clearChecked();
141
+ }
142
+ function onAuthTypeChange(key) {
143
+ return __async(this, null, function* () {
144
+ yield nextTick();
145
+ if (activeRole.value) {
146
+ getActiveRef(key).loadChecked(activeRole.value, authMode.value);
147
+ }
148
+ });
149
+ }
150
+ function onAuthModeChange() {
151
+ clearLeftCurrentTabSelect();
152
+ }
153
+ return __spreadProps(__spreadValues({}, refs), {
154
+ cgformId,
155
+ loading,
156
+ activeKey,
157
+ hasDataAuth,
158
+ authMode,
159
+ onAuthModeChange,
160
+ onAuthTypeChange,
161
+ closeModal,
162
+ onSelectRole,
163
+ onSelectDepart,
164
+ onSelectUser,
165
+ registerModal
166
+ });
167
+ }
168
+ });
169
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
170
+ const _component_LeftRole = resolveComponent("LeftRole");
171
+ const _component_a_tab_pane = resolveComponent("a-tab-pane");
172
+ const _component_LeftDepart = resolveComponent("LeftDepart");
173
+ const _component_LeftUser = resolveComponent("LeftUser");
174
+ const _component_a_tabs = resolveComponent("a-tabs");
175
+ const _component_a_col = resolveComponent("a-col");
176
+ const _component_AuthFieldTree = resolveComponent("AuthFieldTree");
177
+ const _component_AuthButtonTree = resolveComponent("AuthButtonTree");
178
+ const _component_AuthDataTree = resolveComponent("AuthDataTree");
179
+ const _component_a_row = resolveComponent("a-row");
180
+ const _component_a_spin = resolveComponent("a-spin");
181
+ const _component_BasicModal = resolveComponent("BasicModal");
182
+ return openBlock(), createBlock(_component_BasicModal, {
183
+ title: "Online\u6743\u9650\u6388\u6743",
184
+ width: 900,
185
+ maskClosable: false,
186
+ defaultFullscreen: "",
187
+ okButtonProps: { style: { display: "none" } },
188
+ cancelText: "\u5173\u95ED",
189
+ onCancel: _ctx.closeModal,
190
+ onRegister: _ctx.registerModal
191
+ }, {
192
+ default: withCtx(() => [
193
+ createVNode(_component_a_spin, { spinning: _ctx.loading }, {
194
+ default: withCtx(() => [
195
+ createVNode(_component_a_row, null, {
196
+ default: withCtx(() => [
197
+ createVNode(_component_a_col, { span: 12 }, {
198
+ default: withCtx(() => [
199
+ createVNode(_component_a_tabs, {
200
+ activeKey: _ctx.authMode,
201
+ "onUpdate:activeKey": _cache[0] || (_cache[0] = ($event) => _ctx.authMode = $event),
202
+ onChange: _ctx.onAuthModeChange
203
+ }, {
204
+ default: withCtx(() => [
205
+ createVNode(_component_a_tab_pane, {
206
+ tab: "\u89D2\u8272\u6388\u6743",
207
+ key: "role",
208
+ forceRender: ""
209
+ }, {
210
+ default: withCtx(() => [
211
+ createVNode(_component_LeftRole, {
212
+ ref: "roleRef",
213
+ onSelect: _ctx.onSelectRole
214
+ }, null, 8, ["onSelect"])
215
+ ]),
216
+ _: 1
217
+ }),
218
+ createVNode(_component_a_tab_pane, {
219
+ tab: "\u90E8\u95E8\u6388\u6743",
220
+ key: "depart",
221
+ forceRender: ""
222
+ }, {
223
+ default: withCtx(() => [
224
+ createVNode(_component_LeftDepart, {
225
+ ref: "departRef",
226
+ onSelect: _ctx.onSelectDepart
227
+ }, null, 8, ["onSelect"])
228
+ ]),
229
+ _: 1
230
+ }),
231
+ createVNode(_component_a_tab_pane, {
232
+ tab: "\u4EBA\u5458\u6388\u6743",
233
+ key: "user",
234
+ forceRender: ""
235
+ }, {
236
+ default: withCtx(() => [
237
+ createVNode(_component_LeftUser, {
238
+ ref: "userRef",
239
+ onSelect: _ctx.onSelectUser
240
+ }, null, 8, ["onSelect"])
241
+ ]),
242
+ _: 1
243
+ })
244
+ ]),
245
+ _: 1
246
+ }, 8, ["activeKey", "onChange"])
247
+ ]),
248
+ _: 1
249
+ }),
250
+ createVNode(_component_a_col, { span: 1 }),
251
+ createVNode(_component_a_col, { span: 11 }, {
252
+ default: withCtx(() => [
253
+ createVNode(_component_a_tabs, {
254
+ activeKey: _ctx.activeKey,
255
+ "onUpdate:activeKey": _cache[1] || (_cache[1] = ($event) => _ctx.activeKey = $event),
256
+ onChange: _ctx.onAuthTypeChange
257
+ }, {
258
+ default: withCtx(() => [
259
+ createVNode(_component_a_tab_pane, {
260
+ tab: "\u5B57\u6BB5\u6743\u9650",
261
+ key: "field",
262
+ forceRender: ""
263
+ }, {
264
+ default: withCtx(() => [
265
+ createVNode(_component_AuthFieldTree, {
266
+ ref: "fieldRef",
267
+ cgformId: _ctx.cgformId
268
+ }, null, 8, ["cgformId"])
269
+ ]),
270
+ _: 1
271
+ }),
272
+ _ctx.hasDataAuth ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
273
+ createVNode(_component_a_tab_pane, {
274
+ tab: "\u6309\u94AE\u6743\u9650",
275
+ key: "button",
276
+ forceRender: ""
277
+ }, {
278
+ default: withCtx(() => [
279
+ createVNode(_component_AuthButtonTree, {
280
+ ref: "buttonRef",
281
+ cgformId: _ctx.cgformId
282
+ }, null, 8, ["cgformId"])
283
+ ]),
284
+ _: 1
285
+ }),
286
+ createVNode(_component_a_tab_pane, {
287
+ tab: "\u6570\u636E\u6743\u9650",
288
+ key: "data",
289
+ forceRender: ""
290
+ }, {
291
+ default: withCtx(() => [
292
+ createVNode(_component_AuthDataTree, {
293
+ ref: "dataRef",
294
+ cgformId: _ctx.cgformId
295
+ }, null, 8, ["cgformId"])
296
+ ]),
297
+ _: 1
298
+ })
299
+ ], 64)) : createCommentVNode("", true)
300
+ ]),
301
+ _: 1
302
+ }, 8, ["activeKey", "onChange"])
303
+ ]),
304
+ _: 1
305
+ })
306
+ ]),
307
+ _: 1
308
+ })
309
+ ]),
310
+ _: 1
311
+ }, 8, ["spinning"])
312
+ ]),
313
+ _: 1
314
+ }, 8, ["onCancel", "onRegister"]);
315
+ }
316
+ var AuthSetterModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
317
+ export { AuthSetterModal as default };
@@ -0,0 +1,253 @@
1
+ import { defineComponent, provide, watch, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, createVNode, withCtx, createCommentVNode, createTextVNode } from "vue";
2
+ import { BasicTable, TableAction } from "/@/components/Table";
3
+ import { C as CgformModal } from "./CgformModal.js";
4
+ import DbToOnlineModal from "./DbToOnlineModal.js";
5
+ import CustomButtonList from "./CustomButtonList.js";
6
+ import EnhanceJsModal from "./EnhanceJsModal.js";
7
+ import EnhanceJavaModal from "./EnhanceJavaModal.js";
8
+ import EnhanceSqlModal from "./EnhanceSqlModal.js";
9
+ import AuthManagerDrawer from "./AuthManagerDrawer.js";
10
+ import AuthSetterModal from "./AuthSetterModal.js";
11
+ import { u as useCgformList } from "./useCgformList.js";
12
+ import { C as CgformPageType } from "./useOnlineTest.js";
13
+ import { _ as _export_sfc } from "./index.js";
14
+ import "/@/components/Modal";
15
+ import "/@/components/Form/index";
16
+ import "/@/hooks/web/useMessage";
17
+ import "./useSchemas.js";
18
+ import "ant-design-vue";
19
+ import "@ant-design/icons-vue";
20
+ import "/@/utils/common/compUtils";
21
+ import "./DBAttributeTable.js";
22
+ import "/@/components/jeecg/JVxeTable/types";
23
+ import "./useTableSync.js";
24
+ import "./cgform.data.js";
25
+ import "/@/utils/dict";
26
+ import "/@/utils/dict/JDictSelectUtil";
27
+ import "/@/utils/uuid";
28
+ import "./pick.js";
29
+ import "./isArray.js";
30
+ import "./toString.js";
31
+ import "./_arrayPush.js";
32
+ import "./PageAttributeTable.js";
33
+ import "./CheckDictTable.js";
34
+ import "./ForeignKeyTable.js";
35
+ import "./IndexTable.js";
36
+ import "./QueryTable.js";
37
+ import "./ExtendConfigModal.js";
38
+ import "/@/components/Form";
39
+ import "/@/utils/http/axios";
40
+ import "/@/utils";
41
+ import "./useAutoForm.js";
42
+ import "./FormSchemaFactory.js";
43
+ import "/@/components/Form/src/jeecg/components/JUpload";
44
+ import "/@/views/system/user/user.api";
45
+ import "/@/store/modules/user";
46
+ import "/@/utils/desform/customExpression";
47
+ import "/@/components/Form/src/componentMap";
48
+ import "./OnlineSelectCascade.js";
49
+ import "/@/hooks/system/useListPage";
50
+ import "./EnhanceJsHistory.js";
51
+ import "/@/utils/dateUtil";
52
+ import "/@/store";
53
+ import "pinia";
54
+ import "/@/utils/cache";
55
+ import "./enhance.api.js";
56
+ import "/@/utils/is";
57
+ import "./enhance.data.js";
58
+ import "/@/components/Drawer";
59
+ import "./AuthFieldConfig.js";
60
+ import "./auth.api.js";
61
+ import "./auth.data.js";
62
+ import "./AuthButtonConfig.js";
63
+ import "./cloneDeep.js";
64
+ import "./AuthDataConfig.js";
65
+ import "./LeftRole.js";
66
+ import "./LeftDepart.js";
67
+ import "/@/api/common/api";
68
+ import "./LeftUser.js";
69
+ import "./AuthFieldTree.js";
70
+ import "./AuthButtonTree.js";
71
+ import "./AuthDataTree.js";
72
+ import "vue-router";
73
+ import "./useMessageOnline.js";
74
+ import "/@/hooks/web/useCopyModal";
75
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
76
+ const _sfc_main = defineComponent({
77
+ name: "CgformCopyList",
78
+ components: {
79
+ BasicTable,
80
+ TableAction,
81
+ CgformModal,
82
+ DbToOnlineModal,
83
+ CustomButtonList,
84
+ EnhanceJsModal,
85
+ EnhanceJavaModal,
86
+ EnhanceSqlModal,
87
+ AuthManagerDrawer,
88
+ AuthSetterModal
89
+ },
90
+ setup() {
91
+ const pageType = CgformPageType.copy;
92
+ provide("cgformPageType", pageType);
93
+ const {
94
+ router,
95
+ pageContext,
96
+ getTableAction,
97
+ getDropDownAction,
98
+ onShowCustomButton,
99
+ onShowEnhanceJs,
100
+ onShowEnhanceSql,
101
+ onShowEnhanceJava,
102
+ registerCustomButtonModal,
103
+ registerEnhanceJsModal,
104
+ registerEnhanceSqlModal,
105
+ registerEnhanceJavaModal,
106
+ registerAuthManagerDrawer,
107
+ registerAuthSetterModal,
108
+ registerCgformModal,
109
+ registerDbToOnlineModal
110
+ } = useCgformList({
111
+ pageType,
112
+ designScope: "online-cgform-list",
113
+ columns: [
114
+ { title: "\u89C6\u56FE\u8868\u540D", dataIndex: "tableName" },
115
+ { title: "\u89C6\u56FE\u8868\u63CF\u8FF0", dataIndex: "tableTxt" },
116
+ { title: "\u539F\u8868\u7248\u672C", dataIndex: "copyVersion" },
117
+ { title: "\u89C6\u56FE\u7248\u672C", dataIndex: "tableVersion" }
118
+ ],
119
+ formSchemas: [
120
+ { label: "\u8868\u540D", field: "tableName", component: "JInput" }
121
+ ]
122
+ });
123
+ const { prefixCls, tableContext } = pageContext;
124
+ const [registerTable, { reload }, { rowSelection }] = tableContext;
125
+ watch(router.currentRoute, () => reload());
126
+ return {
127
+ prefixCls,
128
+ reload,
129
+ rowSelection,
130
+ getTableAction,
131
+ getDropDownAction,
132
+ onShowCustomButton,
133
+ onShowEnhanceJs,
134
+ onShowEnhanceSql,
135
+ onShowEnhanceJava,
136
+ registerCustomButtonModal,
137
+ registerEnhanceJsModal,
138
+ registerEnhanceSqlModal,
139
+ registerEnhanceJavaModal,
140
+ registerAuthManagerDrawer,
141
+ registerAuthSetterModal,
142
+ registerTable,
143
+ registerCgformModal,
144
+ registerDbToOnlineModal
145
+ };
146
+ }
147
+ });
148
+ const _hoisted_1 = /* @__PURE__ */ createTextVNode("\u81EA\u5B9A\u4E49\u6309\u94AE");
149
+ const _hoisted_2 = /* @__PURE__ */ createTextVNode("JS\u589E\u5F3A");
150
+ const _hoisted_3 = /* @__PURE__ */ createTextVNode("SQL\u589E\u5F3A");
151
+ const _hoisted_4 = /* @__PURE__ */ createTextVNode("Java\u589E\u5F3A");
152
+ const _hoisted_5 = {
153
+ key: 0,
154
+ style: { "color": "limegreen" }
155
+ };
156
+ const _hoisted_6 = {
157
+ key: 1,
158
+ style: { "color": "red" }
159
+ };
160
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
161
+ const _component_a_button = resolveComponent("a-button");
162
+ const _component_TableAction = resolveComponent("TableAction");
163
+ const _component_BasicTable = resolveComponent("BasicTable");
164
+ const _component_CgformModal = resolveComponent("CgformModal");
165
+ const _component_EnhanceJsModal = resolveComponent("EnhanceJsModal");
166
+ const _component_EnhanceJavaModal = resolveComponent("EnhanceJavaModal");
167
+ const _component_EnhanceSqlModal = resolveComponent("EnhanceSqlModal");
168
+ const _component_DbToOnlineModal = resolveComponent("DbToOnlineModal");
169
+ const _component_CustomButtonList = resolveComponent("CustomButtonList");
170
+ const _component_AuthManagerDrawer = resolveComponent("AuthManagerDrawer");
171
+ const _component_AuthSetterModal = resolveComponent("AuthSetterModal");
172
+ return openBlock(), createElementBlock(Fragment, null, [
173
+ createElementVNode("div", {
174
+ class: normalizeClass(_ctx.prefixCls)
175
+ }, [
176
+ createVNode(_component_BasicTable, {
177
+ onRegister: _ctx.registerTable,
178
+ rowSelection: _ctx.rowSelection
179
+ }, {
180
+ tableTitle: withCtx(() => [
181
+ createVNode(_component_a_button, {
182
+ onClick: _ctx.onShowCustomButton,
183
+ type: "primary",
184
+ preIcon: "ant-design:highlight"
185
+ }, {
186
+ default: withCtx(() => [
187
+ _hoisted_1
188
+ ]),
189
+ _: 1
190
+ }, 8, ["onClick"]),
191
+ createVNode(_component_a_button, {
192
+ onClick: _ctx.onShowEnhanceJs,
193
+ type: "primary",
194
+ preIcon: "ant-design:strikethrough"
195
+ }, {
196
+ default: withCtx(() => [
197
+ _hoisted_2
198
+ ]),
199
+ _: 1
200
+ }, 8, ["onClick"]),
201
+ createVNode(_component_a_button, {
202
+ onClick: _ctx.onShowEnhanceSql,
203
+ type: "primary",
204
+ preIcon: "ant-design:filter"
205
+ }, {
206
+ default: withCtx(() => [
207
+ _hoisted_3
208
+ ]),
209
+ _: 1
210
+ }, 8, ["onClick"]),
211
+ createVNode(_component_a_button, {
212
+ onClick: _ctx.onShowEnhanceJava,
213
+ type: "primary",
214
+ preIcon: "ant-design:tool"
215
+ }, {
216
+ default: withCtx(() => [
217
+ _hoisted_4
218
+ ]),
219
+ _: 1
220
+ }, 8, ["onClick"])
221
+ ]),
222
+ dbSync: withCtx(({ text }) => [
223
+ text === "Y" ? (openBlock(), createElementBlock("span", _hoisted_5, "\u5DF2\u540C\u6B65")) : createCommentVNode("", true),
224
+ text === "N" ? (openBlock(), createElementBlock("span", _hoisted_6, "\u672A\u540C\u6B65")) : createCommentVNode("", true)
225
+ ]),
226
+ action: withCtx(({ record }) => [
227
+ createVNode(_component_TableAction, {
228
+ actions: _ctx.getTableAction(record),
229
+ dropDownActions: _ctx.getDropDownAction(record)
230
+ }, null, 8, ["actions", "dropDownActions"])
231
+ ]),
232
+ _: 1
233
+ }, 8, ["onRegister", "rowSelection"])
234
+ ], 2),
235
+ createVNode(_component_CgformModal, {
236
+ onRegister: _ctx.registerCgformModal,
237
+ actionButton: false,
238
+ onSuccess: _ctx.reload
239
+ }, null, 8, ["onRegister", "onSuccess"]),
240
+ createVNode(_component_EnhanceJsModal, { onRegister: _ctx.registerEnhanceJsModal }, null, 8, ["onRegister"]),
241
+ createVNode(_component_EnhanceJavaModal, { onRegister: _ctx.registerEnhanceJavaModal }, null, 8, ["onRegister"]),
242
+ createVNode(_component_EnhanceSqlModal, { onRegister: _ctx.registerEnhanceSqlModal }, null, 8, ["onRegister"]),
243
+ createVNode(_component_DbToOnlineModal, {
244
+ onRegister: _ctx.registerDbToOnlineModal,
245
+ onSuccess: _ctx.reload
246
+ }, null, 8, ["onRegister", "onSuccess"]),
247
+ createVNode(_component_CustomButtonList, { onRegister: _ctx.registerCustomButtonModal }, null, 8, ["onRegister"]),
248
+ createVNode(_component_AuthManagerDrawer, { onRegister: _ctx.registerAuthManagerDrawer }, null, 8, ["onRegister"]),
249
+ createVNode(_component_AuthSetterModal, { onRegister: _ctx.registerAuthSetterModal }, null, 8, ["onRegister"])
250
+ ], 64);
251
+ }
252
+ var CgformCopyList = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
253
+ export { CgformCopyList as default };