@jeecg/online 3.7.1-RC → 3.7.4-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 (143) hide show
  1. package/AccountLoginForm-84cbd344.mjs +254 -0
  2. package/AiModal-26903538.mjs +84 -0
  3. package/AppForgetPassword-52443f23.mjs +310 -0
  4. package/AppLogin-ecf798fa.mjs +287 -0
  5. package/AppLoginHeader-4432c584.mjs +27 -0
  6. package/AppNameEmail-3303a037.mjs +180 -0
  7. package/AppRegister-79a62c59.mjs +303 -0
  8. package/AppTenant-f0bef7ca.mjs +373 -0
  9. package/AppThirdForm-fd8b4604.mjs +189 -0
  10. package/AuthButtonConfig-d5bffca0.mjs +156 -0
  11. package/AuthButtonTree-b0bd6c40.mjs +165 -0
  12. package/{AuthDataConfig-5c3a8e6b.mjs → AuthDataConfig-d3b7afa4.mjs} +23 -23
  13. package/{AuthDataTree-dd7a1240.mjs → AuthDataTree-f14a98d9.mjs} +43 -43
  14. package/{AuthFieldConfig-9f6fa06c.mjs → AuthFieldConfig-f1e224cc.mjs} +71 -71
  15. package/AuthFieldTree-5cc0da05.mjs +232 -0
  16. package/{AuthManagerDrawer-76f15e8d.mjs → AuthManagerDrawer-32556109.mjs} +6 -6
  17. package/{AuthSetterModal-f5d2e87f.mjs → AuthSetterModal-364f1f67.mjs} +9 -9
  18. package/BuiltInButtonList-bb6cf95c.mjs +10 -0
  19. package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
  20. package/CgformAddressModal-1131274c.mjs +260 -0
  21. package/CgformCopyList-5fba0810.mjs +252 -0
  22. package/{CgformModal-21c5c387.mjs → CgformModal-c4a4e0c2.mjs} +190 -194
  23. package/{CgreportModal-edefa8e3.mjs → CgreportModal-8a84aae5.mjs} +181 -168
  24. package/{CheckDictTable-1bc8322d.mjs → CheckDictTable-8a938e3a.mjs} +3 -3
  25. package/CodeFileListModal-a924902a.mjs +159 -0
  26. package/{CodeFileViewModal-2fe911f4.mjs → CodeFileViewModal-405e2b58.mjs} +66 -66
  27. package/CodeGeneratorModal-2e1dc13d.mjs +281 -0
  28. package/CustomButtonList-c453b654.mjs +274 -0
  29. package/{DBAttributeTable-285d40db.mjs → DBAttributeTable-1a45c7b7.mjs} +3 -3
  30. package/{DbToOnlineModal-5dcb67c3.mjs → DbToOnlineModal-f28ff0a3.mjs} +53 -54
  31. package/{DetailForm-deecbf3d.mjs → DetailForm-c592b8d8.mjs} +5 -5
  32. package/DropMenuItem-1e49abea.mjs +44 -0
  33. package/{EnhanceJavaModal-45c66cd5.mjs → EnhanceJavaModal-d5a93f2a.mjs} +62 -62
  34. package/{EnhanceJsHistory-fab3102e.mjs → EnhanceJsHistory-8ddb0657.mjs} +35 -35
  35. package/{EnhanceJsModal-175357a1.mjs → EnhanceJsModal-dc4f9ade.mjs} +104 -104
  36. package/{EnhanceSqlModal-7ea1b300.mjs → EnhanceSqlModal-984f045d.mjs} +67 -67
  37. package/ErrorTip-bb616e32.mjs +7 -0
  38. package/ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs +60 -0
  39. package/{ExtendConfigModal-a89ae052.mjs → ExtendConfigModal-7d70f362.mjs} +2 -2
  40. package/{FieldExtendJsonModal-32135634.mjs → FieldExtendJsonModal-bf04d70e.mjs} +2 -2
  41. package/{FileSelectModal-1643c8b9.mjs → FileSelectModal-ffc69d4a.mjs} +23 -23
  42. package/{ForeignKeyTable-7f7e28a7.mjs → ForeignKeyTable-92decaea.mjs} +3 -3
  43. package/{IndexTable-cdcc2b48.mjs → IndexTable-2ded2014.mjs} +3 -3
  44. package/JModalTip-a927f85d.mjs +49 -0
  45. package/{JOnlineSearchSelect-22aae934.mjs → JOnlineSearchSelect-04ec87d0.mjs} +1 -1
  46. package/{LeftDepart-d5615ed9.mjs → LeftDepart-52cb6743.mjs} +1 -1
  47. package/LeftRole-b0e0b496.mjs +86 -0
  48. package/{LeftUser-22baa378.mjs → LeftUser-dd4b10e2.mjs} +30 -30
  49. package/{LinkTableConfigModal-9242d750.mjs → LinkTableConfigModal-7eeb3e58.mjs} +43 -31
  50. package/{LinkTableFieldConfigModal-24adc50c.mjs → LinkTableFieldConfigModal-b078fcef.mjs} +1 -1
  51. package/{LinkTableListPiece-f3a8e0d7.mjs → LinkTableListPiece-e016b8e6.mjs} +1 -1
  52. package/{ModalFormDemo-711418db.mjs → ModalFormDemo-aaa719a7.mjs} +1 -1
  53. package/OnlCgformErpList-5c5acdaa.mjs +488 -0
  54. package/OnlCgformErpSubTable-e1b88312.mjs +441 -0
  55. package/{OnlCgformInnerSubTable-6c23781f.mjs → OnlCgformInnerSubTable-6b6fa15a.mjs} +38 -38
  56. package/OnlCgformInnerTableList-b283a525.mjs +474 -0
  57. package/OnlCgformTabList-91e3dd78.mjs +424 -0
  58. package/OnlineAutoList-84475f1b.mjs +513 -0
  59. package/OnlineAutoModal-95f46901.mjs +260 -0
  60. package/OnlineAutoTreeList-20b9ce04.mjs +523 -0
  61. package/OnlineCustomModal-c8b1e780.mjs +232 -0
  62. package/{OnlineDetailModal-d5895734.mjs → OnlineDetailModal-5b412bb9.mjs} +74 -65
  63. package/OnlineForm-58282699.mjs +1012 -0
  64. package/{OnlineFormDetail-022ca117.mjs → OnlineFormDetail-fc087725.mjs} +7 -7
  65. package/{OnlineFormUrlAdd-9715d70a.mjs → OnlineFormUrlAdd-bc9105bb.mjs} +9 -9
  66. package/{OnlineFormUrlDetail-8f864b1a.mjs → OnlineFormUrlDetail-ad912560.mjs} +11 -11
  67. package/{OnlineFormUrlEdit-ac985b36.mjs → OnlineFormUrlEdit-f2fa79ff.mjs} +9 -9
  68. package/OnlineFormUrlSuccess-76813d45.mjs +59 -0
  69. package/OnlineQueryForm-9248341f.mjs +484 -0
  70. package/{OnlineSearchFormItem-6c557343.mjs → OnlineSearchFormItem-1e437bd3.mjs} +82 -82
  71. package/{OnlineSelectCascade-05c40fef.mjs → OnlineSelectCascade-d631ed72.mjs} +1 -1
  72. package/{OnlineSubFormDetail-58e896ce.mjs → OnlineSubFormDetail-8be879b9.mjs} +52 -53
  73. package/{OnlineTabAutoModal-47b18ad6.mjs → OnlineTabAutoModal-c9ca3c24.mjs} +108 -95
  74. package/{OnlineTabDetailModal-82de1465.mjs → OnlineTabDetailModal-fd4c9a72.mjs} +36 -36
  75. package/OnlineTabForm-1940e88b.mjs +814 -0
  76. package/{OnlineTabFormDetail-8d0c40c0.mjs → OnlineTabFormDetail-2aa67564.mjs} +17 -17
  77. package/{PageAttributeTable-25e3b7da.mjs → PageAttributeTable-66e7b485.mjs} +108 -108
  78. package/PhoneLoginForm-86437a9d.mjs +214 -0
  79. package/{ProcessOnlineForm-148632fe.mjs → ProcessOnlineForm-98ede18d.mjs} +32 -32
  80. package/{QueryTable-f7bfca7f.mjs → QueryTable-65d3f54f.mjs} +3 -3
  81. package/SetSwitchOptions-f914bc17.mjs +62 -0
  82. package/ShareAddView-657f0f8b.mjs +86 -0
  83. package/ShareEditView-1b945fd3.mjs +92 -0
  84. package/ShareView-222ed3d8.mjs +80 -0
  85. package/ShareView.vue_vue_type_script_setup_true_lang-44fbeaff.mjs +162 -0
  86. package/SingleView-23b0cb4e.mjs +68 -0
  87. package/SingleView.vue_vue_type_style_index_0_lang-e0f2f6c0.mjs +131 -0
  88. package/SuperQuery-46032e66.mjs +974 -0
  89. package/{SuperQueryValComponent-7ad86d4b.mjs → SuperQueryValComponent-5a9ccfd4.mjs} +1 -1
  90. package/{SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs → SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs} +11 -11
  91. package/{auth.api-ea1d33d4.mjs → auth.api-53df4c33.mjs} +17 -17
  92. package/{auth.data-511e5197.mjs → auth.data-626c5083.mjs} +16 -12
  93. package/button.data-fe45d43b.mjs +12 -0
  94. package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
  95. package/{enhance.data-a67572e1.mjs → enhance.data-6601ff44.mjs} +1 -1
  96. package/index-19eaef11.mjs +11 -0
  97. package/index-1a2e8832.mjs +135 -0
  98. package/{index-f30613d1.mjs → index-2fb8e07f.mjs} +59 -59
  99. package/index-5e89258d.mjs +8 -0
  100. package/index-9e1e1e53.mjs +57 -0
  101. package/{index-30e0e923.mjs → index-a039036e.mjs} +272 -262
  102. package/index-c5a79b0b.mjs +219 -0
  103. package/index-cce225be.mjs +110 -0
  104. package/index-f2c2d1cf.mjs +74 -0
  105. package/main.index.js +1 -1
  106. package/package.json +1 -1
  107. package/shareStore-7de6c7a6.mjs +67 -0
  108. package/style.css +1 -1
  109. package/useCgformList-f3cb9156.mjs +378 -0
  110. package/useExtendComponent-bb98e568.mjs +4460 -0
  111. package/useListButton-98908683.mjs +719 -0
  112. package/{useSchemas-a9c75b0f.mjs → useSchemas-b074f3a1.mjs} +33 -0
  113. package/{useTableSync-d7e9f18d.mjs → useTableSync-075826a1.mjs} +1 -1
  114. package/utils-9fce7606.mjs +16 -0
  115. package/AiModal-6de335e3.mjs +0 -84
  116. package/AuthButtonConfig-89763932.mjs +0 -154
  117. package/AuthButtonTree-2d87d0b3.mjs +0 -157
  118. package/AuthFieldTree-e326fc38.mjs +0 -232
  119. package/CgformCopyList-365b3e8f.mjs +0 -251
  120. package/CodeFileListModal-24601898.mjs +0 -159
  121. package/CodeGeneratorModal-f09fe903.mjs +0 -282
  122. package/CustomButtonList-f07bc695.mjs +0 -397
  123. package/JModalTip-b055ab60.mjs +0 -49
  124. package/LeftRole-2ed8a2bf.mjs +0 -86
  125. package/OnlCgformErpList-58acdfa0.mjs +0 -470
  126. package/OnlCgformErpSubTable-9b1e1938.mjs +0 -426
  127. package/OnlCgformInnerTableList-4b5e14ed.mjs +0 -458
  128. package/OnlCgformTabList-019ad753.mjs +0 -408
  129. package/OnlineAutoList-48589d09.mjs +0 -493
  130. package/OnlineAutoModal-c2928847.mjs +0 -239
  131. package/OnlineAutoTreeList-3baa1d00.mjs +0 -503
  132. package/OnlineCustomModal-9e17b6ce.mjs +0 -232
  133. package/OnlineForm-9f1153ba.mjs +0 -985
  134. package/OnlineFormUrlSuccess-3dfc54ab.mjs +0 -59
  135. package/OnlineQueryForm-eedb9a60.mjs +0 -466
  136. package/OnlineTabForm-27655c83.mjs +0 -817
  137. package/SetSwitchOptions-b2af757f.mjs +0 -62
  138. package/SuperQuery-a8592995.mjs +0 -967
  139. package/index-1d1a6e56.mjs +0 -57
  140. package/useCgformList-f41d4dc1.mjs +0 -426
  141. package/useExtendComponent-dcae5c78.mjs +0 -4399
  142. package/useListButton-bfac4ecf.mjs +0 -697
  143. /package/{OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs} +0 -0
@@ -1,251 +0,0 @@
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-21c5c387.mjs";
4
- import F from "./DbToOnlineModal-5dcb67c3.mjs";
5
- import O from "./CustomButtonList-f07bc695.mjs";
6
- import $ from "./EnhanceJsModal-175357a1.mjs";
7
- import P from "./EnhanceJavaModal-45c66cd5.mjs";
8
- import z from "./EnhanceSqlModal-7ea1b300.mjs";
9
- import Q from "./AuthManagerDrawer-76f15e8d.mjs";
10
- import Y from "./AuthSetterModal-f5d2e87f.mjs";
11
- import { C as j, u as G } from "./useCgformList-f41d4dc1.mjs";
12
- import { _ as H } from "./index-1d1a6e56.mjs";
13
- import "/@/components/Icon";
14
- import "/@/components/Modal";
15
- import "/@/components/Form/index";
16
- import "/@/hooks/web/useMessage";
17
- import "./useSchemas-a9c75b0f.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-285d40db.mjs";
24
- import "/@/components/jeecg/JVxeTable/types";
25
- import "./useTableSync-d7e9f18d.mjs";
26
- import "./cgform.data-475d4984.mjs";
27
- import "/@/utils/dict";
28
- import "/@/utils/dict/JDictSelectUtil";
29
- import "/@/utils/uuid";
30
- import "lodash-es";
31
- import "./PageAttributeTable-25e3b7da.mjs";
32
- import "./LinkTableConfigModal-9242d750.mjs";
33
- import "/@/utils/http/axios";
34
- import "./LinkTableFieldConfigModal-24adc50c.mjs";
35
- import "./FieldExtendJsonModal-32135634.mjs";
36
- import "./SetSwitchOptions-b2af757f.mjs";
37
- import "/@/utils/is";
38
- import "./constant-fa63bd66.mjs";
39
- import "./CheckDictTable-1bc8322d.mjs";
40
- import "/@/components/jeecg/JPrompt";
41
- import "/@/hooks/web/useDesign";
42
- import "./ForeignKeyTable-7f7e28a7.mjs";
43
- import "./IndexTable-cdcc2b48.mjs";
44
- import "./QueryTable-f7bfca7f.mjs";
45
- import "./ExtendConfigModal-a89ae052.mjs";
46
- import "/@/components/Form";
47
- import "./useOnlineTest-e4bd8be3.mjs";
48
- import "/@/utils";
49
- import "./useExtendComponent-dcae5c78.mjs";
50
- import "/@/components/Form/src/componentMap";
51
- import "/@/utils/propTypes";
52
- import "/@/components/Form/src/jeecg/components/JUpload";
53
- import "/@/views/system/user/user.api";
54
- import "/@/store/modules/user";
55
- import "/@/utils/desform/customExpression";
56
- import "/@/store/modules/permission";
57
- import "/@/hooks/system/useListPage";
58
- import "vue-router";
59
- import "/@/components/Form/src/utils/Area";
60
- import "/@/components/Preview/index";
61
- import "./LinkTableListPiece-f3a8e0d7.mjs";
62
- import "/@/utils/auth";
63
- import "/@/api/common/api";
64
- import "/@/hooks/web/useAppInject";
65
- import "/@/assets/images/placeholderImage.png";
66
- import "./OnlineSelectCascade-05c40fef.mjs";
67
- import "/@/components/Loading";
68
- import "./JModalTip-b055ab60.mjs";
69
- import "@vueuse/core";
70
- import "./EnhanceJsHistory-fab3102e.mjs";
71
- import "/@/utils/dateUtil";
72
- import "/@/store";
73
- import "pinia";
74
- import "/@/utils/cache";
75
- import "./enhance.api-138e6826.mjs";
76
- import "./enhance.data-a67572e1.mjs";
77
- import "/@/components/Drawer";
78
- import "./AuthFieldConfig-9f6fa06c.mjs";
79
- import "./auth.api-ea1d33d4.mjs";
80
- import "./auth.data-511e5197.mjs";
81
- import "/@/utils/index";
82
- import "./AuthButtonConfig-89763932.mjs";
83
- import "./AuthDataConfig-5c3a8e6b.mjs";
84
- import "./LeftRole-2ed8a2bf.mjs";
85
- import "./LeftDepart-d5615ed9.mjs";
86
- import "./LeftUser-22baa378.mjs";
87
- import "./AuthFieldTree-e326fc38.mjs";
88
- import "./AuthButtonTree-2d87d0b3.mjs";
89
- import "./AuthDataTree-dd7a1240.mjs";
90
- import "clipboard";
91
- import "./cgformState-d9f8ec42.mjs";
92
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
93
- const K = J({
94
- name: "CgformCopyList",
95
- components: {
96
- BasicTable: L,
97
- TableAction: N,
98
- CgformModal: V,
99
- DbToOnlineModal: F,
100
- CustomButtonList: O,
101
- EnhanceJsModal: $,
102
- EnhanceJavaModal: P,
103
- EnhanceSqlModal: z,
104
- AuthManagerDrawer: Q,
105
- AuthSetterModal: Y
106
- },
107
- setup() {
108
- const o = j.copy;
109
- B("cgformPageType", o);
110
- const {
111
- router: S,
112
- pageContext: E,
113
- getTableAction: A,
114
- getDropDownAction: b,
115
- onShowCustomButton: w,
116
- onShowEnhanceJs: i,
117
- onShowEnhanceSql: m,
118
- onShowEnhanceJava: p,
119
- registerCustomButtonModal: l,
120
- registerEnhanceJsModal: s,
121
- registerEnhanceSqlModal: c,
122
- registerEnhanceJavaModal: u,
123
- registerAuthManagerDrawer: g,
124
- registerAuthSetterModal: d,
125
- registerCgformModal: h,
126
- registerDbToOnlineModal: f
127
- } = G({
128
- pageType: o,
129
- designScope: "online-cgform-list",
130
- columns: [
131
- { title: "视图表名", dataIndex: "tableName" },
132
- { title: "视图表描述", dataIndex: "tableTxt" },
133
- { title: "原表版本", dataIndex: "copyVersion" },
134
- { title: "视图版本", dataIndex: "tableVersion" }
135
- ],
136
- formSchemas: [{ label: "表名", field: "tableName", component: "JInput" }]
137
- }), { prefixCls: r, tableContext: y } = E, [R, { reload: _ }, { rowSelection: D }] = y;
138
- return k(S.currentRoute, () => _()), {
139
- prefixCls: r,
140
- reload: _,
141
- rowSelection: D,
142
- getTableAction: A,
143
- getDropDownAction: b,
144
- onShowCustomButton: w,
145
- onShowEnhanceJs: i,
146
- onShowEnhanceSql: m,
147
- onShowEnhanceJava: p,
148
- registerCustomButtonModal: l,
149
- registerEnhanceJsModal: s,
150
- registerEnhanceSqlModal: c,
151
- registerEnhanceJavaModal: u,
152
- registerAuthManagerDrawer: g,
153
- registerAuthSetterModal: d,
154
- registerTable: R,
155
- registerCgformModal: h,
156
- registerDbToOnlineModal: f
157
- };
158
- }
159
- }), U = {
160
- key: 0,
161
- style: { color: "limegreen" }
162
- }, W = {
163
- key: 1,
164
- style: { color: "red" }
165
- };
166
- function X(o, S, E, A, b, w) {
167
- 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");
168
- return C(), M(v, null, [
169
- I("div", {
170
- class: q(o.prefixCls)
171
- }, [
172
- t(p, {
173
- onRegister: o.registerTable,
174
- rowSelection: o.rowSelection
175
- }, {
176
- tableTitle: n(() => [
177
- t(i, {
178
- onClick: o.onShowCustomButton,
179
- type: "primary",
180
- preIcon: "ant-design:highlight"
181
- }, {
182
- default: n(() => [
183
- a("自定义按钮")
184
- ]),
185
- _: 1
186
- }, 8, ["onClick"]),
187
- t(i, {
188
- onClick: o.onShowEnhanceJs,
189
- type: "primary",
190
- preIcon: "ant-design:strikethrough"
191
- }, {
192
- default: n(() => [
193
- a("JS增强")
194
- ]),
195
- _: 1
196
- }, 8, ["onClick"]),
197
- t(i, {
198
- onClick: o.onShowEnhanceSql,
199
- type: "primary",
200
- preIcon: "ant-design:filter"
201
- }, {
202
- default: n(() => [
203
- a("SQL增强")
204
- ]),
205
- _: 1
206
- }, 8, ["onClick"]),
207
- t(i, {
208
- onClick: o.onShowEnhanceJava,
209
- type: "primary",
210
- preIcon: "ant-design:tool"
211
- }, {
212
- default: n(() => [
213
- a("Java增强")
214
- ]),
215
- _: 1
216
- }, 8, ["onClick"])
217
- ]),
218
- dbSync: n(({ text: r }) => [
219
- r === "Y" ? (C(), M("span", U, "已同步")) : T("", !0),
220
- r === "N" ? (C(), M("span", W, "未同步")) : T("", !0)
221
- ]),
222
- action: n(({ record: r }) => [
223
- t(m, {
224
- actions: o.getTableAction(r),
225
- dropDownActions: o.getDropDownAction(r)
226
- }, null, 8, ["actions", "dropDownActions"])
227
- ]),
228
- _: 1
229
- }, 8, ["onRegister", "rowSelection"])
230
- ], 2),
231
- t(l, {
232
- onRegister: o.registerCgformModal,
233
- actionButton: !1,
234
- onSuccess: o.reload
235
- }, null, 8, ["onRegister", "onSuccess"]),
236
- t(s, { onRegister: o.registerEnhanceJsModal }, null, 8, ["onRegister"]),
237
- t(c, { onRegister: o.registerEnhanceJavaModal }, null, 8, ["onRegister"]),
238
- t(u, { onRegister: o.registerEnhanceSqlModal }, null, 8, ["onRegister"]),
239
- t(g, {
240
- onRegister: o.registerDbToOnlineModal,
241
- onSuccess: o.reload
242
- }, null, 8, ["onRegister", "onSuccess"]),
243
- t(d, { onRegister: o.registerCustomButtonModal }, null, 8, ["onRegister"]),
244
- t(h, { onRegister: o.registerAuthManagerDrawer }, null, 8, ["onRegister"]),
245
- t(f, { onRegister: o.registerAuthSetterModal }, null, 8, ["onRegister"])
246
- ], 64);
247
- }
248
- const Vt = /* @__PURE__ */ H(K, [["render", X]]);
249
- export {
250
- Vt as default
251
- };
@@ -1,159 +0,0 @@
1
- var M = (d, l, i) => new Promise((e, m) => {
2
- var p = (o) => {
3
- try {
4
- n(i.next(o));
5
- } catch (r) {
6
- m(r);
7
- }
8
- }, a = (o) => {
9
- try {
10
- n(i.throw(o));
11
- } catch (r) {
12
- m(r);
13
- }
14
- }, n = (o) => o.done ? e(o.value) : Promise.resolve(o.value).then(p, a);
15
- n((i = i.apply(d, l)).next());
16
- });
17
- import { ref as u, reactive as x, resolveComponent as _, openBlock as C, createElementBlock as h, Fragment as v, createVNode as s, withCtx as c, createTextVNode as f, createElementVNode as y, normalizeStyle as F, renderList as B, toDisplayString as N } from "vue";
18
- import { defHttp as R } from "/@/utils/http/axios";
19
- import "/@/components/Form";
20
- import { BasicModal as T, useModalInner as z, useModal as G } from "/@/components/Modal";
21
- import { InfoCircleTwoTone as K } from "@ant-design/icons-vue";
22
- import S from "./CodeFileViewModal-2fe911f4.mjs";
23
- import { useMessage as H } from "/@/hooks/web/useMessage";
24
- import { downloadByData as I } from "/@/utils/file/download";
25
- import { _ as E } from "./index-1d1a6e56.mjs";
26
- import "ant-design-vue";
27
- import "/@/hooks/web/useDesign";
28
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
29
- import "vue-router";
30
- const j = {
31
- name: "CodeFileListModal",
32
- components: {
33
- BasicModal: T,
34
- InfoCircleTwoTone: K,
35
- CodeFileViewModal: S
36
- },
37
- emits: ["register"],
38
- setup() {
39
- const { createMessage: d } = H(), l = u([]), i = window.innerHeight - 150, e = x({
40
- overflowY: "auto",
41
- maxHeight: i + "px"
42
- }), m = u(!1), p = u(""), a = u(""), [n, { closeModal: o }] = z((t) => M(this, null, function* () {
43
- l.value = t.codeList, p.value = t.tableName, a.value = t.pathKey;
44
- }));
45
- function r() {
46
- o();
47
- }
48
- function g() {
49
- let t = l.value;
50
- if (!t || t.length == 0) {
51
- d.warning("无代码!");
52
- return;
53
- }
54
- let V = t.join(",");
55
- return R.post(
56
- {
57
- url: "/online/cgform/api/downGenerateCode",
58
- params: {
59
- fileList: encodeURI(V),
60
- pathKey: a.value
61
- },
62
- responseType: "blob"
63
- },
64
- { isTransformResponse: !1 }
65
- ).then((w) => {
66
- if (!w || w.size == 0) {
67
- d.warning("导出代码失败!");
68
- return;
69
- }
70
- let b = "导到生成代码_" + p.value + "_" + (/* @__PURE__ */ new Date()).getTime() + ".zip";
71
- I(w, b, "application/zip");
72
- });
73
- }
74
- const [L, { openModal: k }] = G();
75
- function D() {
76
- let t = l.value;
77
- k(!0, {
78
- codeList: t,
79
- pathKey: a.value
80
- });
81
- }
82
- return {
83
- registerModal: n,
84
- registerCodeViewModal: L,
85
- divStyle: e,
86
- codeList: l,
87
- onDownloadGenerateCode: g,
88
- handleClose: r,
89
- handleView: D,
90
- loading: m
91
- };
92
- }
93
- }, U = /* @__PURE__ */ y("br", null, null, -1);
94
- function Y(d, l, i, e, m, p) {
95
- const a = _("info-circle-two-tone"), n = _("a-button"), o = _("BasicModal"), r = _("code-file-view-modal");
96
- return C(), h(v, null, [
97
- s(o, {
98
- onRegister: e.registerModal,
99
- width: 1200,
100
- defaultFullscreen: !1,
101
- canFullscreen: !1
102
- }, {
103
- title: c(() => [
104
- s(a),
105
- f(" 代码生成结果 ")
106
- ]),
107
- footer: c(() => [
108
- s(n, { onClick: e.handleClose }, {
109
- default: c(() => [
110
- f("关闭")
111
- ]),
112
- _: 1
113
- }, 8, ["onClick"]),
114
- s(n, {
115
- type: "primary",
116
- ghost: "",
117
- onClick: e.handleView
118
- }, {
119
- default: c(() => [
120
- f("在线预览")
121
- ]),
122
- _: 1
123
- }, 8, ["onClick"]),
124
- s(n, {
125
- type: "primary",
126
- onClick: e.onDownloadGenerateCode,
127
- loading: e.loading
128
- }, {
129
- default: c(() => [
130
- f("下载到本地")
131
- ]),
132
- _: 1
133
- }, 8, ["onClick", "loading"])
134
- ]),
135
- default: c(() => [
136
- y("div", {
137
- style: F(e.divStyle)
138
- }, [
139
- y("p", null, [
140
- (C(!0), h(v, null, B(e.codeList, (g) => (C(), h(v, null, [
141
- f(N(g), 1),
142
- U
143
- ], 64))), 256))
144
- ])
145
- ], 4)
146
- ]),
147
- _: 1
148
- }, 8, ["onRegister"]),
149
- s(r, {
150
- onRegister: e.registerCodeViewModal,
151
- onDownload: e.onDownloadGenerateCode,
152
- onClose: e.handleClose
153
- }, null, 8, ["onRegister", "onDownload", "onClose"])
154
- ], 64);
155
- }
156
- const le = /* @__PURE__ */ E(j, [["render", Y]]);
157
- export {
158
- le as default
159
- };
@@ -1,282 +0,0 @@
1
- var E = (t, m, c) => new Promise((_, p) => {
2
- var y = (l) => {
3
- try {
4
- a(c.next(l));
5
- } catch (f) {
6
- p(f);
7
- }
8
- }, d = (l) => {
9
- try {
10
- a(c.throw(l));
11
- } catch (f) {
12
- p(f);
13
- }
14
- }, a = (l) => l.done ? _(l.value) : Promise.resolve(l.value).then(y, d);
15
- a((c = c.apply(t, m)).next());
16
- });
17
- import { defineComponent as ie, ref as h, computed as G, reactive as P, nextTick as ue, resolveComponent as r, openBlock as L, createElementBlock as ce, Fragment as me, createVNode as i, withCtx as s, createTextVNode as J, createBlock as V, createCommentVNode as I, mergeProps as pe, createElementVNode as q } from "vue";
18
- import { defHttp as $ } from "/@/utils/http/axios";
19
- import { BasicForm as de, useForm as fe } from "/@/components/Form";
20
- import { BasicModal as ge, useModalInner as _e, useModal as H } from "/@/components/Modal";
21
- import { JVxeTypes as R } from "/@/components/jeecg/JVxeTable/types";
22
- import { b as Fe } from "./useSchemas-a9c75b0f.mjs";
23
- import { underLine2CamelCase as U } from "/@/utils/common/compUtils";
24
- import be from "./CodeFileListModal-24601898.mjs";
25
- import Ce from "./FileSelectModal-1643c8b9.mjs";
26
- import { message as ve } from "ant-design-vue";
27
- import { useDesign as he } from "/@/hooks/web/useDesign";
28
- import { _ as Me } from "./index-1d1a6e56.mjs";
29
- import "@ant-design/icons-vue";
30
- import "/@/hooks/web/usePermission";
31
- import "/@/utils/helper/validator";
32
- import "./CodeFileViewModal-2fe911f4.mjs";
33
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
34
- import "/@/hooks/web/useMessage";
35
- import "vue-router";
36
- import "/@/utils/file/download";
37
- const Ne = ie({
38
- name: "CodeGenerator",
39
- components: { BasicForm: de, BasicModal: ge, FileSelectModal: Ce, CodeFileListModal: be },
40
- emits: ["register"],
41
- setup(t) {
42
- const m = "JEECG_ONL_PROJECT_PATH", c = "JEECG_ONL_PROJECT_NAME", _ = h(!0), p = h(), y = G(() => _.value ? 800 : 1200), d = h("代码生成"), a = h(!1), { prefixCls: l } = he("code-generator-modal"), f = l, M = h(""), T = P({
43
- projectPath: "",
44
- packageStyle: "service",
45
- jspMode: "",
46
- jformType: "1",
47
- tableName_tmp: "",
48
- ftlDescription: "",
49
- entityName: "",
50
- codeTypes: "controller,service,dao,mapper,entity,vue"
51
- }), o = P({}), N = h([]), F = P({
52
- dataSource: [],
53
- columns: [
54
- {
55
- title: "子表名",
56
- key: "tableName",
57
- type: R.input,
58
- disabled: !0,
59
- validateRules: [{ required: !0, message: "请输入${title}" }]
60
- },
61
- {
62
- title: "子表实体",
63
- key: "entityName",
64
- type: R.input,
65
- validateRules: [{ required: !0, message: "请输入${title}" }]
66
- },
67
- {
68
- title: "功能说明",
69
- key: "ftlDescription",
70
- type: R.input,
71
- validateRules: [{ required: !0, message: "请输入${title}" }]
72
- }
73
- ]
74
- }), B = G(() => F.dataSource.length > 0), { formSchemas: b } = Fe(
75
- t,
76
- {
77
- onProjectPathChange: se,
78
- onProjectPathSearch: oe,
79
- jspModeOptions: N
80
- },
81
- _
82
- ), [S, { resetFields: j, setFieldsValue: k, validate: K }] = fe({
83
- schemas: b,
84
- showActionButtonGroup: !1,
85
- labelAlign: "right"
86
- }), [x, { closeModal: O }] = _e((e) => E(this, null, function* () {
87
- yield j(), M.value = e.code, a.value = !1, F.dataSource = [], N.value = [], ne(), Object.assign(o, T), W();
88
- }));
89
- function W() {
90
- return E(this, null, function* () {
91
- let { main: e, sub: n, jspModeList: C, projectPath: u } = yield $.get({
92
- url: "/online/cgform/head/tableInfo",
93
- params: { code: M.value }
94
- }), v = [];
95
- for (let g of C) {
96
- const { code: D, note: re } = g;
97
- D == "many" || v.push({
98
- label: re,
99
- value: D
100
- });
101
- }
102
- N.value = v, e.isTree == "Y" ? o.jspMode = "tree" : v.find((g) => g.value === e.themeTemplate) ? o.jspMode = e.themeTemplate : o.jspMode = v[0].value, _.value = e.tableType == 1, d.value = "代码生成【" + e.tableName + "】", o.projectPath || (o.projectPath = u, window.localStorage.setItem(m, u));
103
- const w = localStorage.getItem(c);
104
- w && (o.entityPackage = w), o.jformType = e.tableType + "", o.tableName_tmp = e.tableName, o.ftlDescription = e.tableTxt;
105
- let A = U(e.tableName);
106
- o.entityName = A.substring(0, 1).toUpperCase() + A.substring(1), yield ue(), k(o), n && n.length > 0 && (F.dataSource = n.map((g) => ({
107
- tableName: g.tableName,
108
- entityName: le(g.tableName),
109
- ftlDescription: g.tableTxt
110
- })));
111
- });
112
- }
113
- const [z, { openModal: Y }] = H();
114
- function Q() {
115
- return E(this, null, function* () {
116
- try {
117
- const e = yield K();
118
- let n = Object.assign({}, e, { code: M.value, tableName: e.tableName_tmp });
119
- if (B.value) {
120
- if (yield p.value.validateTable())
121
- return;
122
- n.subList = p.value.getTableData();
123
- }
124
- a.value = !0;
125
- let C = yield X(n);
126
- Y(!0, {
127
- codeList: C.codeList,
128
- pathKey: C.pathKey,
129
- tableName: e.tableName_tmp
130
- }), O(), localStorage.setItem(c, e.entityPackage);
131
- } catch (e) {
132
- } finally {
133
- a.value = !1;
134
- }
135
- });
136
- }
137
- function X(e) {
138
- return new Promise((n, C) => {
139
- $.post({ url: "/online/cgform/api/codeGenerate", params: e }, { isTransformResponse: !1 }).then((u) => {
140
- if (u.success) {
141
- let v = u.result, w = u.message;
142
- n({
143
- codeList: v,
144
- pathKey: w
145
- });
146
- } else
147
- ve.error(u.message), C(u.message);
148
- });
149
- });
150
- }
151
- function Z() {
152
- O();
153
- }
154
- const [ee, te] = H();
155
- function oe() {
156
- te.openModal(!0, {});
157
- }
158
- function ae(e) {
159
- window.localStorage.setItem(m, e), k({ projectPath: e });
160
- }
161
- function le(e) {
162
- let n = U(e);
163
- return n.substring(0, 1).toUpperCase() + n.substring(1);
164
- }
165
- function ne() {
166
- let e = window.localStorage.getItem(m);
167
- e && (T.projectPath = e);
168
- }
169
- function se(e) {
170
- e.target.value && window.localStorage.setItem(m, e.target.value);
171
- }
172
- return {
173
- title: d,
174
- modalWidth: y,
175
- confirmLoading: a,
176
- subTable: F,
177
- showSubTable: B,
178
- onSubmit: Q,
179
- onCancel: Z,
180
- onFileSelect: ae,
181
- registerFileSelectModal: ee,
182
- subTableRef: p,
183
- registerForm: S,
184
- registerModal: x,
185
- registerCodeFileListModal: z,
186
- wrapClassName: f
187
- };
188
- }
189
- });
190
- const ye = /* @__PURE__ */ q("span", null, "深度封装表单,用户只需定义字段json即可渲染表单,优点简单便捷,缺点扩展有难度", -1), Te = /* @__PURE__ */ q("span", null, "antd的原生表单,所有字段都需要硬编码,缺点编码繁琐,优点扩展容易", -1);
191
- function Be(t, m, c, _, p, y) {
192
- const d = r("a-radio"), a = r("a-tooltip"), l = r("a-radio-group"), f = r("BasicForm"), M = r("JVxeTable"), T = r("a-card"), o = r("a-spin"), N = r("BasicModal"), F = r("FileSelectModal"), B = r("code-file-list-modal");
193
- return L(), ce(me, null, [
194
- i(N, {
195
- onRegister: t.registerModal,
196
- title: t.title,
197
- width: t.modalWidth,
198
- confirmLoading: t.confirmLoading,
199
- okText: "开始生成",
200
- cancelText: "取消",
201
- onOk: t.onSubmit,
202
- onCancel: t.onCancel,
203
- wrapClassName: t.wrapClassName
204
- }, {
205
- default: s(() => [
206
- i(o, { spinning: t.confirmLoading }, {
207
- default: s(() => [
208
- i(f, { onRegister: t.registerForm }, {
209
- pageCode: s(({ model: b, field: S }) => [
210
- i(l, {
211
- value: b[S],
212
- "onUpdate:value": (j) => b[S] = j
213
- }, {
214
- default: s(() => [
215
- i(a, { placement: "top" }, {
216
- title: s(() => [
217
- ye
218
- ]),
219
- default: s(() => [
220
- i(d, { value: "vue3" }, {
221
- default: s(() => [
222
- J("封装表单(BasicForm)")
223
- ]),
224
- _: 1
225
- })
226
- ]),
227
- _: 1
228
- }),
229
- i(a, { placement: "top" }, {
230
- title: s(() => [
231
- Te
232
- ]),
233
- default: s(() => [
234
- b.jspMode == "innerTable" || b.jspMode == "tab" ? I("", !0) : (L(), V(d, {
235
- key: 0,
236
- value: "vue3Native"
237
- }, {
238
- default: s(() => [
239
- J("原生表单(a-form)")
240
- ]),
241
- _: 1
242
- }))
243
- ]),
244
- _: 2
245
- }, 1024)
246
- ]),
247
- _: 2
248
- }, 1032, ["value", "onUpdate:value"])
249
- ]),
250
- _: 1
251
- }, 8, ["onRegister"]),
252
- t.showSubTable ? (L(), V(T, {
253
- key: 0,
254
- title: "子表信息",
255
- size: "small"
256
- }, {
257
- default: s(() => [
258
- i(M, pe({
259
- ref: "subTableRef",
260
- rowNumber: "",
261
- maxHeight: 580
262
- }, t.subTable), null, 16)
263
- ]),
264
- _: 1
265
- })) : I("", !0)
266
- ]),
267
- _: 1
268
- }, 8, ["spinning"])
269
- ]),
270
- _: 1
271
- }, 8, ["onRegister", "title", "width", "confirmLoading", "onOk", "onCancel", "wrapClassName"]),
272
- i(F, {
273
- onRegister: t.registerFileSelectModal,
274
- onSelect: t.onFileSelect
275
- }, null, 8, ["onRegister", "onSelect"]),
276
- i(B, { onRegister: t.registerCodeFileListModal }, null, 8, ["onRegister"])
277
- ], 64);
278
- }
279
- const We = /* @__PURE__ */ Me(Ne, [["render", Be]]);
280
- export {
281
- We as default
282
- };