@jeecg/online 3.7.0-beta → 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 (150) 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-7bb0cd85.mjs → AuthDataConfig-d3b7afa4.mjs} +30 -29
  13. package/{AuthDataTree-6e3bb86f.mjs → AuthDataTree-f14a98d9.mjs} +47 -47
  14. package/AuthFieldConfig-f1e224cc.mjs +245 -0
  15. package/AuthFieldTree-5cc0da05.mjs +232 -0
  16. package/{AuthManagerDrawer-5e2ed5ce.mjs → AuthManagerDrawer-32556109.mjs} +9 -8
  17. package/{AuthSetterModal-6f74449c.mjs → AuthSetterModal-364f1f67.mjs} +12 -11
  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-c4a4e0c2.mjs +667 -0
  23. package/{CgreportModal-5a23d089.mjs → CgreportModal-8a84aae5.mjs} +186 -172
  24. package/{CheckDictTable-b5cb0e2b.mjs → CheckDictTable-8a938e3a.mjs} +37 -34
  25. package/CodeFileListModal-a924902a.mjs +159 -0
  26. package/CodeFileViewModal-405e2b58.mjs +253 -0
  27. package/CodeGeneratorModal-2e1dc13d.mjs +281 -0
  28. package/CustomButtonList-c453b654.mjs +274 -0
  29. package/{DBAttributeTable-95dc66c1.mjs → DBAttributeTable-1a45c7b7.mjs} +80 -72
  30. package/DbToOnlineModal-f28ff0a3.mjs +168 -0
  31. package/{DetailForm-4aa2570b.mjs → DetailForm-c592b8d8.mjs} +50 -49
  32. package/DropMenuItem-1e49abea.mjs +44 -0
  33. package/{EnhanceJavaModal-98934198.mjs → EnhanceJavaModal-d5a93f2a.mjs} +62 -62
  34. package/{EnhanceJsHistory-9c4acdaf.mjs → EnhanceJsHistory-8ddb0657.mjs} +35 -35
  35. package/{EnhanceJsModal-247f640d.mjs → EnhanceJsModal-dc4f9ade.mjs} +154 -138
  36. package/{EnhanceSqlModal-65b74b0f.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-00f2fb55.mjs → ExtendConfigModal-7d70f362.mjs} +2 -2
  40. package/{FieldExtendJsonModal-cc7fce26.mjs → FieldExtendJsonModal-bf04d70e.mjs} +2 -2
  41. package/{FileSelectModal-38660e3c.mjs → FileSelectModal-ffc69d4a.mjs} +23 -23
  42. package/{ForeignKeyTable-a78cb5ad.mjs → ForeignKeyTable-92decaea.mjs} +3 -3
  43. package/{IndexTable-1b496559.mjs → IndexTable-2ded2014.mjs} +28 -20
  44. package/JModalTip-a927f85d.mjs +49 -0
  45. package/JOnlineSearchSelect-04ec87d0.mjs +128 -0
  46. package/{LeftDepart-8ade4bf7.mjs → LeftDepart-52cb6743.mjs} +1 -1
  47. package/LeftRole-b0e0b496.mjs +86 -0
  48. package/{LeftUser-b4d1372a.mjs → LeftUser-dd4b10e2.mjs} +30 -30
  49. package/{LinkTableConfigModal-a138c85e.mjs → LinkTableConfigModal-7eeb3e58.mjs} +43 -31
  50. package/{LinkTableFieldConfigModal-17b413b0.mjs → LinkTableFieldConfigModal-b078fcef.mjs} +1 -1
  51. package/{LinkTableListPiece-2660d709.mjs → LinkTableListPiece-e016b8e6.mjs} +1 -1
  52. package/{ModalFormDemo-0544737d.mjs → ModalFormDemo-aaa719a7.mjs} +1 -1
  53. package/OnlCgformErpList-5c5acdaa.mjs +488 -0
  54. package/OnlCgformErpSubTable-e1b88312.mjs +441 -0
  55. package/{OnlCgformInnerSubTable-290ace5d.mjs → OnlCgformInnerSubTable-6b6fa15a.mjs} +106 -107
  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-2a271e0b.mjs → OnlineDetailModal-5b412bb9.mjs} +74 -65
  63. package/OnlineForm-58282699.mjs +1012 -0
  64. package/{OnlineFormDetail-e036cd11.mjs → OnlineFormDetail-fc087725.mjs} +7 -7
  65. package/{OnlineFormUrlAdd-7fb3dcca.mjs → OnlineFormUrlAdd-bc9105bb.mjs} +10 -10
  66. package/{OnlineFormUrlDetail-b2292137.mjs → OnlineFormUrlDetail-ad912560.mjs} +12 -12
  67. package/{OnlineFormUrlEdit-44080fb3.mjs → OnlineFormUrlEdit-f2fa79ff.mjs} +10 -10
  68. package/OnlineFormUrlSuccess-76813d45.mjs +59 -0
  69. package/OnlineQueryForm-9248341f.mjs +484 -0
  70. package/{OnlineSearchFormItem-6feacae6.mjs → OnlineSearchFormItem-1e437bd3.mjs} +82 -82
  71. package/{OnlineSelectCascade-471fcc76.mjs → OnlineSelectCascade-d631ed72.mjs} +1 -1
  72. package/{OnlineSubFormDetail-03f8ee5c.mjs → OnlineSubFormDetail-8be879b9.mjs} +53 -54
  73. package/{OnlineTabAutoModal-7b9bcd0b.mjs → OnlineTabAutoModal-c9ca3c24.mjs} +108 -95
  74. package/{OnlineTabDetailModal-88143301.mjs → OnlineTabDetailModal-fd4c9a72.mjs} +36 -36
  75. package/OnlineTabForm-1940e88b.mjs +814 -0
  76. package/{OnlineTabFormDetail-bbf23caa.mjs → OnlineTabFormDetail-2aa67564.mjs} +17 -17
  77. package/{PageAttributeTable-6c23547b.mjs → PageAttributeTable-66e7b485.mjs} +169 -149
  78. package/PhoneLoginForm-86437a9d.mjs +214 -0
  79. package/{ProcessOnlineForm-b42198f5.mjs → ProcessOnlineForm-98ede18d.mjs} +64 -58
  80. package/{QueryTable-96b3dbd0.mjs → QueryTable-65d3f54f.mjs} +40 -37
  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-53df4c33.mjs +41 -0
  92. package/{auth.data-22948e87.mjs → auth.data-626c5083.mjs} +68 -30
  93. package/button.data-fe45d43b.mjs +12 -0
  94. package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
  95. package/{enhance.data-3304d553.mjs → enhance.data-6601ff44.mjs} +9 -8
  96. package/index-19eaef11.mjs +11 -0
  97. package/index-1a2e8832.mjs +135 -0
  98. package/{index-581bef24.mjs → index-2fb8e07f.mjs} +59 -59
  99. package/index-5e89258d.mjs +8 -0
  100. package/index-9e1e1e53.mjs +57 -0
  101. package/{index-d2abb8a0.mjs → index-a039036e.mjs} +273 -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-47e45edc.mjs → useSchemas-b074f3a1.mjs} +88 -46
  113. package/useTableSync-075826a1.mjs +89 -0
  114. package/utils-9fce7606.mjs +16 -0
  115. package/AiModal-fe3988fb.mjs +0 -84
  116. package/AuthButtonConfig-d50a0a65.mjs +0 -134
  117. package/AuthButtonTree-589395ed.mjs +0 -156
  118. package/AuthFieldConfig-490fc0ab.mjs +0 -139
  119. package/AuthFieldTree-b7cd091e.mjs +0 -232
  120. package/CgformCopyList-8077ccc6.mjs +0 -250
  121. package/CgformModal-36faf29a.mjs +0 -621
  122. package/CodeFileListModal-0e26b7e0.mjs +0 -158
  123. package/CodeFileViewModal-9d4a5b5f.mjs +0 -248
  124. package/CodeGeneratorModal-b722d976.mjs +0 -238
  125. package/CustomButtonList-37639061.mjs +0 -381
  126. package/DbToOnlineModal-f49b9530.mjs +0 -166
  127. package/JModalTip-4a83aaed.mjs +0 -49
  128. package/JOnlineSearchSelect-34a37ec9.mjs +0 -95
  129. package/LeftRole-7d8c5acc.mjs +0 -86
  130. package/OnlCgformErpList-30e416c8.mjs +0 -470
  131. package/OnlCgformErpSubTable-9a876058.mjs +0 -427
  132. package/OnlCgformInnerTableList-f89b6687.mjs +0 -458
  133. package/OnlCgformTabList-7a2f2c03.mjs +0 -408
  134. package/OnlineAutoList-46c6c8b9.mjs +0 -493
  135. package/OnlineAutoModal-971bef13.mjs +0 -236
  136. package/OnlineAutoTreeList-3b92454c.mjs +0 -502
  137. package/OnlineCustomModal-594244f3.mjs +0 -232
  138. package/OnlineForm-018981b2.mjs +0 -924
  139. package/OnlineFormUrlSuccess-af285b02.mjs +0 -59
  140. package/OnlineQueryForm-998c12a4.mjs +0 -444
  141. package/OnlineTabForm-9ad7d29a.mjs +0 -805
  142. package/SetSwitchOptions-a452fa0f.mjs +0 -62
  143. package/SuperQuery-cbfba908.mjs +0 -975
  144. package/auth.api-d3a6c4b3.mjs +0 -39
  145. package/index-173949bb.mjs +0 -57
  146. package/useCgformList-8755a94e.mjs +0 -426
  147. package/useExtendComponent-bb7cca20.mjs +0 -4295
  148. package/useListButton-7ddb9a46.mjs +0 -697
  149. package/useTableSync-f6089e8a.mjs +0 -87
  150. /package/{OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs} +0 -0
@@ -0,0 +1,281 @@
1
+ var E = (t, o, c) => new Promise((F, p) => {
2
+ var T = (n) => {
3
+ try {
4
+ l(c.next(n));
5
+ } catch (f) {
6
+ p(f);
7
+ }
8
+ }, d = (n) => {
9
+ try {
10
+ l(c.throw(n));
11
+ } catch (f) {
12
+ p(f);
13
+ }
14
+ }, l = (n) => n.done ? F(n.value) : Promise.resolve(n.value).then(T, d);
15
+ l((c = c.apply(t, o)).next());
16
+ });
17
+ import { defineComponent as ie, ref as M, computed as G, reactive as P, nextTick as ue, resolveComponent as i, openBlock as L, createElementBlock as me, Fragment as ce, createVNode as u, withCtx as r, createElementVNode as J, createTextVNode as V, createBlock as I, createCommentVNode as $, mergeProps as pe } from "vue";
18
+ import { defHttp as H } from "/@/utils/http/axios";
19
+ import { BasicForm as de, useForm as fe } from "/@/components/Form";
20
+ import { BasicModal as ge, useModalInner as Fe, useModal as U } from "/@/components/Modal";
21
+ import { JVxeTypes as R } from "/@/components/jeecg/JVxeTable/types";
22
+ import { b as be } from "./useSchemas-b074f3a1.mjs";
23
+ import { underLine2CamelCase as q } from "/@/utils/common/compUtils";
24
+ import Ce from "./CodeFileListModal-a924902a.mjs";
25
+ import _e from "./FileSelectModal-ffc69d4a.mjs";
26
+ import { message as ve } from "ant-design-vue";
27
+ import { useDesign as Me } from "/@/hooks/web/useDesign";
28
+ import { _ as Ne } from "./index-9e1e1e53.mjs";
29
+ import "@ant-design/icons-vue";
30
+ import "/@/hooks/web/usePermission";
31
+ import "/@/utils/helper/validator";
32
+ import "./CodeFileViewModal-405e2b58.mjs";
33
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
34
+ import "/@/hooks/web/useMessage";
35
+ import "vue-router";
36
+ import "/@/utils/file/download";
37
+ const ye = ie({
38
+ name: "CodeGenerator",
39
+ components: { BasicForm: de, BasicModal: ge, FileSelectModal: _e, CodeFileListModal: Ce },
40
+ emits: ["register"],
41
+ setup(t) {
42
+ const o = "JEECG_ONL_PROJECT_PATH", c = "JEECG_ONL_PROJECT_NAME", F = M(!0), p = M(), T = G(() => F.value ? 800 : 1200), d = M("代码生成"), l = M(!1), { prefixCls: n } = Me("code-generator-modal"), f = n, N = M(""), h = 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
+ }), a = P({}), y = M([]), b = 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(() => b.dataSource.length > 0), { formSchemas: C } = be(
75
+ t,
76
+ {
77
+ onProjectPathChange: se,
78
+ onProjectPathSearch: oe,
79
+ jspModeOptions: y
80
+ },
81
+ F
82
+ ), [S, { resetFields: j, setFieldsValue: k, validate: K }] = fe({
83
+ schemas: C,
84
+ showActionButtonGroup: !1,
85
+ labelAlign: "right"
86
+ }), [x, { closeModal: O }] = Fe((e) => E(this, null, function* () {
87
+ yield j(), N.value = e.code, l.value = !1, b.dataSource = [], y.value = [], ne(), Object.assign(a, h), W();
88
+ }));
89
+ function W() {
90
+ return E(this, null, function* () {
91
+ let { main: e, sub: s, jspModeList: _, projectPath: m } = yield H.get({
92
+ url: "/online/cgform/head/tableInfo",
93
+ params: { code: N.value }
94
+ }), v = [];
95
+ for (let g of _) {
96
+ const { code: D, note: re } = g;
97
+ D == "many" || v.push({
98
+ label: re,
99
+ value: D
100
+ });
101
+ }
102
+ y.value = v, e.isTree == "Y" ? a.jspMode = "tree" : v.find((g) => g.value === e.themeTemplate) ? a.jspMode = e.themeTemplate : a.jspMode = v[0].value, F.value = e.tableType == 1, d.value = "代码生成【" + e.tableName + "】", a.projectPath || (a.projectPath = m, window.localStorage.setItem(o, m));
103
+ const w = localStorage.getItem(c);
104
+ w && (a.entityPackage = w), a.jformType = e.tableType + "", a.tableName_tmp = e.tableName, a.ftlDescription = e.tableTxt;
105
+ let A = q(e.tableName);
106
+ a.entityName = A.substring(0, 1).toUpperCase() + A.substring(1), yield ue(), k(a), s && s.length > 0 && (b.dataSource = s.map((g) => ({
107
+ tableName: g.tableName,
108
+ entityName: le(g.tableName),
109
+ ftlDescription: g.tableTxt
110
+ })));
111
+ });
112
+ }
113
+ const [z, { openModal: Y }] = U();
114
+ function Q() {
115
+ return E(this, null, function* () {
116
+ try {
117
+ const e = yield K();
118
+ let s = Object.assign({}, e, { code: N.value, tableName: e.tableName_tmp });
119
+ if (B.value) {
120
+ if (yield p.value.validateTable())
121
+ return;
122
+ s.subList = p.value.getTableData();
123
+ }
124
+ l.value = !0;
125
+ let _ = yield X(s);
126
+ Y(!0, {
127
+ codeList: _.codeList,
128
+ pathKey: _.pathKey,
129
+ tableName: e.tableName_tmp
130
+ }), O(), localStorage.setItem(c, e.entityPackage);
131
+ } catch (e) {
132
+ } finally {
133
+ l.value = !1;
134
+ }
135
+ });
136
+ }
137
+ function X(e) {
138
+ return new Promise((s, _) => {
139
+ H.post({ url: "/online/cgform/api/codeGenerate", params: e }, { isTransformResponse: !1 }).then((m) => {
140
+ if (m.success) {
141
+ let v = m.result, w = m.message;
142
+ s({
143
+ codeList: v,
144
+ pathKey: w
145
+ });
146
+ } else
147
+ ve.error(m.message), _(m.message);
148
+ });
149
+ });
150
+ }
151
+ function Z() {
152
+ O();
153
+ }
154
+ const [ee, te] = U();
155
+ function oe() {
156
+ te.openModal(!0, {});
157
+ }
158
+ function ae(e) {
159
+ window.localStorage.setItem(o, e), k({ projectPath: e });
160
+ }
161
+ function le(e) {
162
+ let s = q(e);
163
+ return s.substring(0, 1).toUpperCase() + s.substring(1);
164
+ }
165
+ function ne() {
166
+ let e = window.localStorage.getItem(o);
167
+ e && (h.projectPath = e);
168
+ }
169
+ function se(e) {
170
+ e.target.value && window.localStorage.setItem(o, e.target.value);
171
+ }
172
+ return {
173
+ title: d,
174
+ modalWidth: T,
175
+ confirmLoading: l,
176
+ subTable: b,
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
+ function Te(t, o, c, F, p, T) {
191
+ const d = i("a-radio"), l = i("a-tooltip"), n = i("a-radio-group"), f = i("BasicForm"), N = i("JVxeTable"), h = i("a-card"), a = i("a-spin"), y = i("BasicModal"), b = i("FileSelectModal"), B = i("code-file-list-modal");
192
+ return L(), me(ce, null, [
193
+ u(y, {
194
+ onRegister: t.registerModal,
195
+ title: t.title,
196
+ width: t.modalWidth,
197
+ confirmLoading: t.confirmLoading,
198
+ okText: "开始生成",
199
+ cancelText: "取消",
200
+ onOk: t.onSubmit,
201
+ onCancel: t.onCancel,
202
+ wrapClassName: t.wrapClassName
203
+ }, {
204
+ default: r(() => [
205
+ u(a, { spinning: t.confirmLoading }, {
206
+ default: r(() => [
207
+ u(f, { onRegister: t.registerForm }, {
208
+ pageCode: r(({ model: C, field: S }) => [
209
+ u(n, {
210
+ value: C[S],
211
+ "onUpdate:value": (j) => C[S] = j
212
+ }, {
213
+ default: r(() => [
214
+ u(l, { placement: "top" }, {
215
+ title: r(() => o[0] || (o[0] = [
216
+ J("span", null, "深度封装表单,用户只需定义字段json即可渲染表单,优点简单便捷,缺点扩展有难度", -1)
217
+ ])),
218
+ default: r(() => [
219
+ u(d, { value: "vue3" }, {
220
+ default: r(() => o[1] || (o[1] = [
221
+ V("封装表单(BasicForm)")
222
+ ])),
223
+ _: 1
224
+ })
225
+ ]),
226
+ _: 1
227
+ }),
228
+ u(l, { placement: "top" }, {
229
+ title: r(() => o[2] || (o[2] = [
230
+ J("span", null, "antd的原生表单,所有字段都需要硬编码,缺点编码繁琐,优点扩展容易", -1)
231
+ ])),
232
+ default: r(() => [
233
+ C.jspMode == "innerTable" || C.jspMode == "tab" ? $("", !0) : (L(), I(d, {
234
+ key: 0,
235
+ value: "vue3Native"
236
+ }, {
237
+ default: r(() => o[3] || (o[3] = [
238
+ V("原生表单(a-form)")
239
+ ])),
240
+ _: 1
241
+ }))
242
+ ]),
243
+ _: 2
244
+ }, 1024)
245
+ ]),
246
+ _: 2
247
+ }, 1032, ["value", "onUpdate:value"])
248
+ ]),
249
+ _: 1
250
+ }, 8, ["onRegister"]),
251
+ t.showSubTable ? (L(), I(h, {
252
+ key: 0,
253
+ title: "子表信息",
254
+ size: "small"
255
+ }, {
256
+ default: r(() => [
257
+ u(N, pe({
258
+ ref: "subTableRef",
259
+ rowNumber: "",
260
+ maxHeight: 580
261
+ }, t.subTable), null, 16)
262
+ ]),
263
+ _: 1
264
+ })) : $("", !0)
265
+ ]),
266
+ _: 1
267
+ }, 8, ["spinning"])
268
+ ]),
269
+ _: 1
270
+ }, 8, ["onRegister", "title", "width", "confirmLoading", "onOk", "onCancel", "wrapClassName"]),
271
+ u(b, {
272
+ onRegister: t.registerFileSelectModal,
273
+ onSelect: t.onFileSelect
274
+ }, null, 8, ["onRegister", "onSelect"]),
275
+ u(B, { onRegister: t.registerCodeFileListModal }, null, 8, ["onRegister"])
276
+ ], 64);
277
+ }
278
+ const Ke = /* @__PURE__ */ Ne(ye, [["render", Te]]);
279
+ export {
280
+ Ke as default
281
+ };
@@ -0,0 +1,274 @@
1
+ var Y = Object.defineProperty;
2
+ var I = Object.getOwnPropertySymbols;
3
+ var Z = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
4
+ var E = (o, e, t) => e in o ? Y(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, L = (o, e) => {
5
+ for (var t in e || (e = {}))
6
+ Z.call(e, t) && E(o, t, e[t]);
7
+ if (I)
8
+ for (var t of I(e))
9
+ x.call(e, t) && E(o, t, e[t]);
10
+ return o;
11
+ };
12
+ var B = (o, e, t) => new Promise((C, g) => {
13
+ var M = (r) => {
14
+ try {
15
+ u(t.next(r));
16
+ } catch (c) {
17
+ g(c);
18
+ }
19
+ }, l = (r) => {
20
+ try {
21
+ u(t.throw(r));
22
+ } catch (c) {
23
+ g(c);
24
+ }
25
+ }, u = (r) => r.done ? C(r.value) : Promise.resolve(r.value).then(M, l);
26
+ u((t = t.apply(o, e)).next());
27
+ });
28
+ import { defineComponent as ee, ref as F, reactive as oe, computed as ne, nextTick as te, resolveComponent as i, openBlock as A, createElementBlock as O, Fragment as se, createVNode as s, withCtx as a, createTextVNode as f, createCommentVNode as P, createBlock as ae, normalizeProps as re, guardReactiveProps as ie } from "vue";
29
+ import { u as le } from "./useOnlineTest-e4bd8be3.mjs";
30
+ import { useListPage as ue } from "/@/hooks/system/useListPage";
31
+ import { BasicTable as ce, TableAction as de } from "/@/components/Table";
32
+ import { BasicModal as me, useModalInner as pe, useModal as S } from "/@/components/Modal";
33
+ import { BasicForm as fe, useForm as ge } from "/@/components/Form";
34
+ import { _ as Be, l as Ce, c as Me, f as _e, s as we, d as $ } from "./BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs";
35
+ import { useMessage as be } from "/@/hooks/web/useMessage";
36
+ import { _ as ke } from "./index-9e1e1e53.mjs";
37
+ import "/@/utils/http/axios";
38
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
39
+ import "vue-router";
40
+ const ye = ee({
41
+ name: "CustomButtonList",
42
+ components: { BasicModal: me, BasicTable: ce, TableAction: de, BasicForm: fe, BuiltInButtonList: Be },
43
+ emits: ["register"],
44
+ setup() {
45
+ const { createMessage: o } = be(), e = F(""), t = F(), { doRequest: C, doDeleteRecord: g, tableContext: M } = ue({
46
+ tableProps: {
47
+ api: (n) => Ce(e.value, n),
48
+ columns: Me,
49
+ canResize: !1,
50
+ useSearchForm: !1,
51
+ beforeFetch(n) {
52
+ return Object.assign(n, { column: "orderNum", order: "asc" });
53
+ }
54
+ }
55
+ }), [l, { reload: u }, { rowSelection: r, selectedRowKeys: c }] = M, [_, { closeModal: w }] = pe((n) => B(this, null, function* () {
56
+ e.value = n.row.id, t.value = n.row, u();
57
+ })), { aiTestMode: b, genButtons: k } = le(), [y, d] = S(), m = F(!1), p = oe({
58
+ onRegister: y,
59
+ title: ne(() => m != null && m.value ? "修改" : "新增"),
60
+ width: 800,
61
+ confirmLoading: !1,
62
+ onOk: K,
63
+ onCancel: d.closeModal
64
+ });
65
+ let v = {};
66
+ const [h, { resetFields: N, setFieldsValue: V, validate: G }] = ge({
67
+ // update-begin--author:liaozhiyang---date:20240618---for:【TV360X-1306】自定义按钮弹窗按钮样式切换是重置弹窗高度
68
+ schemas: _e({ redoModalHeight: d.redoModalHeight }),
69
+ // update-end--author:liaozhiyang---date:20240618---for:【TV360X-1306】自定义按钮弹窗按钮样式切换是重置弹窗高度
70
+ showActionButtonGroup: !1
71
+ });
72
+ function T(n) {
73
+ return B(this, null, function* () {
74
+ var D;
75
+ m.value = n.isUpdate, v = L({}, (D = n.record) != null ? D : {}), d.openModal(), yield te(), yield N(), V(v);
76
+ });
77
+ }
78
+ function H() {
79
+ T({ isUpdate: !1 });
80
+ }
81
+ function R(n) {
82
+ T({ isUpdate: !0, record: n });
83
+ }
84
+ function U() {
85
+ w();
86
+ }
87
+ function j() {
88
+ k(e.value);
89
+ }
90
+ function z() {
91
+ return B(this, null, function* () {
92
+ C(() => $(c.value));
93
+ });
94
+ }
95
+ function K() {
96
+ return B(this, null, function* () {
97
+ try {
98
+ p.confirmLoading = !0;
99
+ let n = yield G();
100
+ n = Object.assign({ cgformHeadId: e.value }, v, n), yield we(n, m.value), u(), d.closeModal();
101
+ } finally {
102
+ p.confirmLoading = !1;
103
+ }
104
+ });
105
+ }
106
+ const [q, J] = S();
107
+ function Q() {
108
+ var n;
109
+ if (((n = t.value) == null ? void 0 : n.tableType) == 3) {
110
+ o.warn("附表不支持管理内置按钮,请选择对应主表");
111
+ return;
112
+ }
113
+ J.openModal(!0, {});
114
+ }
115
+ function W(n) {
116
+ return [
117
+ {
118
+ label: "编辑",
119
+ onClick: () => R(n)
120
+ }
121
+ ];
122
+ }
123
+ function X(n) {
124
+ return [
125
+ {
126
+ label: "删除",
127
+ popConfirm: {
128
+ title: "确定删除吗?",
129
+ placement: "left",
130
+ confirm: () => g(() => $([n.id]))
131
+ }
132
+ }
133
+ ];
134
+ }
135
+ return {
136
+ code: e,
137
+ record: t,
138
+ onAdd: H,
139
+ onEdit: R,
140
+ onBatchDelete: z,
141
+ aiTestMode: b,
142
+ onGenButtons: j,
143
+ registerModal: _,
144
+ registerTable: l,
145
+ selectedRowKeys: c,
146
+ rowSelection: r,
147
+ onCancel: U,
148
+ getTableAction: W,
149
+ getDropDownAction: X,
150
+ registerForm: h,
151
+ formModalProps: p,
152
+ registerBIButtonModal: q,
153
+ onOpenBIButton: Q
154
+ };
155
+ }
156
+ }), ve = {
157
+ key: 0,
158
+ style: { float: "left" }
159
+ };
160
+ function Fe(o, e, t, C, g, M) {
161
+ const l = i("a-button"), u = i("a-icon"), r = i("a-menu-item"), c = i("a-menu"), _ = i("a-dropdown"), w = i("TableAction"), b = i("BasicTable"), k = i("BasicForm"), y = i("a-spin"), d = i("BasicModal"), m = i("BuiltInButtonList");
162
+ return A(), O(se, null, [
163
+ s(d, {
164
+ onRegister: o.registerModal,
165
+ title: "自定义按钮",
166
+ width: 1200,
167
+ defaultFullscreen: "",
168
+ onCancel: o.onCancel
169
+ }, {
170
+ footer: a(() => [
171
+ s(l, { onClick: o.onCancel }, {
172
+ default: a(() => e[0] || (e[0] = [
173
+ f("关闭")
174
+ ])),
175
+ _: 1
176
+ }, 8, ["onClick"]),
177
+ o.aiTestMode ? (A(), O("div", ve, [
178
+ s(l, { onClick: o.onGenButtons }, {
179
+ default: a(() => e[1] || (e[1] = [
180
+ f("生成测试数据")
181
+ ])),
182
+ _: 1
183
+ }, 8, ["onClick"])
184
+ ])) : P("", !0)
185
+ ]),
186
+ default: a(() => [
187
+ s(b, {
188
+ onRegister: o.registerTable,
189
+ rowSelection: o.rowSelection
190
+ }, {
191
+ tableTitle: a(() => [
192
+ s(l, {
193
+ onClick: o.onAdd,
194
+ type: "primary",
195
+ preIcon: "ant-design:plus"
196
+ }, {
197
+ default: a(() => e[2] || (e[2] = [
198
+ f("新增")
199
+ ])),
200
+ _: 1
201
+ }, 8, ["onClick"]),
202
+ s(l, {
203
+ onClick: o.onOpenBIButton,
204
+ preIcon: "ant-design:setting"
205
+ }, {
206
+ default: a(() => e[3] || (e[3] = [
207
+ f("管理内置按钮")
208
+ ])),
209
+ _: 1
210
+ }, 8, ["onClick"]),
211
+ o.selectedRowKeys.length > 0 ? (A(), ae(_, { key: 0 }, {
212
+ overlay: a(() => [
213
+ s(c, null, {
214
+ default: a(() => [
215
+ s(r, {
216
+ key: "1",
217
+ onClick: o.onBatchDelete
218
+ }, {
219
+ default: a(() => [
220
+ s(u, { type: "delete" }),
221
+ e[4] || (e[4] = f(" 删除 "))
222
+ ]),
223
+ _: 1
224
+ }, 8, ["onClick"])
225
+ ]),
226
+ _: 1
227
+ })
228
+ ]),
229
+ default: a(() => [
230
+ s(l, { style: { "margin-left": "8px" } }, {
231
+ default: a(() => [
232
+ e[5] || (e[5] = f(" 批量操作 ")),
233
+ s(u, { type: "down" })
234
+ ]),
235
+ _: 1
236
+ })
237
+ ]),
238
+ _: 1
239
+ })) : P("", !0)
240
+ ]),
241
+ action: a(({ record: p }) => [
242
+ s(w, {
243
+ actions: o.getTableAction(p),
244
+ dropDownActions: o.getDropDownAction(p)
245
+ }, null, 8, ["actions", "dropDownActions"])
246
+ ]),
247
+ _: 1
248
+ }, 8, ["onRegister", "rowSelection"]),
249
+ s(d, re(ie(o.formModalProps)), {
250
+ default: a(() => [
251
+ s(y, {
252
+ spinning: o.formModalProps.confirmLoading
253
+ }, {
254
+ default: a(() => [
255
+ s(k, { onRegister: o.registerForm }, null, 8, ["onRegister"])
256
+ ]),
257
+ _: 1
258
+ }, 8, ["spinning"])
259
+ ]),
260
+ _: 1
261
+ }, 16)
262
+ ]),
263
+ _: 1
264
+ }, 8, ["onRegister", "onCancel"]),
265
+ s(m, {
266
+ onRegister: o.registerBIButtonModal,
267
+ record: o.record
268
+ }, null, 8, ["onRegister", "record"])
269
+ ], 64);
270
+ }
271
+ const Ve = /* @__PURE__ */ ke(ye, [["render", Fe]]);
272
+ export {
273
+ Ve as default
274
+ };