@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
@@ -1,381 +0,0 @@
1
- var H = Object.defineProperty;
2
- var M = Object.getOwnPropertySymbols;
3
- var K = Object.prototype.hasOwnProperty, Z = Object.prototype.propertyIsEnumerable;
4
- var P = (e, o, t) => o in e ? H(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t, T = (e, o) => {
5
- for (var t in o || (o = {}))
6
- K.call(o, t) && P(e, t, o[t]);
7
- if (M)
8
- for (var t of M(o))
9
- Z.call(o, t) && P(e, t, o[t]);
10
- return e;
11
- };
12
- var y = (e, o, t) => new Promise((m, p) => {
13
- var g = (r) => {
14
- try {
15
- u(t.next(r));
16
- } catch (c) {
17
- p(c);
18
- }
19
- }, s = (r) => {
20
- try {
21
- u(t.throw(r));
22
- } catch (c) {
23
- p(c);
24
- }
25
- }, u = (r) => r.done ? m(r.value) : Promise.resolve(r.value).then(g, s);
26
- u((t = t.apply(e, o)).next());
27
- });
28
- import { defineComponent as J, ref as A, reactive as Q, computed as W, nextTick as X, resolveComponent as i, openBlock as S, createBlock as R, withCtx as l, createVNode as a, createTextVNode as B, createElementBlock as Y, createCommentVNode as F, normalizeProps as ee, guardReactiveProps as oe } from "vue";
29
- import { u as te } from "./useOnlineTest-e4bd8be3.mjs";
30
- import { useListPage as ne } from "/@/hooks/system/useListPage";
31
- import { BasicTable as le, TableAction as ae } from "/@/components/Table";
32
- import { BasicModal as re, useModalInner as ie, useModal as ue } from "/@/components/Modal";
33
- import { BasicForm as se, useForm as ce } from "/@/components/Form";
34
- import { defHttp as C } from "/@/utils/http/axios";
35
- import { _ as de } from "./index-173949bb.mjs";
36
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
37
- import "/@/hooks/web/useMessage";
38
- import "vue-router";
39
- const me = (e, o) => C.get({ url: "/online/cgform/button/list/" + e, params: o });
40
- function D(e) {
41
- return C.delete(
42
- {
43
- url: "/online/cgform/button/deleteBatch",
44
- params: {
45
- ids: e.join(",")
46
- }
47
- },
48
- { joinParamsToUrl: !0 }
49
- );
50
- }
51
- const pe = (e, o) => o ? C.put({ url: "/online/cgform/button/edit", params: e }) : C.post({ url: "/online/cgform/button/add", params: e }), fe = [
52
- { title: "按钮编码", align: "center", dataIndex: "buttonCode" },
53
- { title: "按钮名称", align: "center", dataIndex: "buttonName" },
54
- {
55
- title: "按钮样式",
56
- align: "center",
57
- dataIndex: "buttonStyle",
58
- customRender({ text: e, record: o }) {
59
- if (e === "form") {
60
- let t = o.optPosition;
61
- return e + "(" + (t == "2" ? "底部" : "侧面") + ")";
62
- } else
63
- return e;
64
- }
65
- },
66
- { title: "按钮类型", align: "center", dataIndex: "optType" },
67
- { title: "排序", align: "center", dataIndex: "orderNum" },
68
- { title: "按钮图标", align: "center", dataIndex: "buttonIcon" },
69
- { title: "表达式", align: "center", dataIndex: "exp" },
70
- {
71
- title: "按钮状态",
72
- align: "center",
73
- dataIndex: "buttonStatus",
74
- customRender({ text: e }) {
75
- return e == 1 ? "激活" : "未激活";
76
- }
77
- }
78
- ], be = [
79
- {
80
- label: "按钮编码",
81
- field: "buttonCode",
82
- component: "Input",
83
- required: !0,
84
- // update-begin--author:liaozhiyang---date:20240521---for:【TV360X-139】按钮编码加上正则校验
85
- dynamicRules: () => [
86
- {
87
- validator: (e, o) => new Promise((t, m) => {
88
- /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(o) ? t() : m("编码只能包含字母、数字、下划线 (_) 和美元符号 ($)且不能以数字开头");
89
- })
90
- }
91
- ]
92
- // update-end--author:liaozhiyang---date:20240521---for:【TV360X-139】按钮编码加上正则校验
93
- },
94
- {
95
- label: "按钮名称",
96
- field: "buttonName",
97
- component: "Input",
98
- required: !0
99
- },
100
- {
101
- label: "按钮样式",
102
- field: "buttonStyle",
103
- component: "Select",
104
- componentProps: {
105
- options: [
106
- { label: "Link", value: "link" },
107
- { label: "Button", value: "button" },
108
- { label: "Form", value: "form" }
109
- ]
110
- },
111
- defaultValue: "link"
112
- },
113
- {
114
- label: "按钮位置",
115
- field: "optPosition",
116
- component: "Select",
117
- componentProps: {
118
- options: [
119
- { label: "侧面", value: "1" },
120
- { label: "底部", value: "2" }
121
- ]
122
- },
123
- defaultValue: "2",
124
- show: ({ model: e }) => e.buttonStyle === "form"
125
- },
126
- {
127
- label: "按钮类型",
128
- field: "optType",
129
- component: "Select",
130
- componentProps: {
131
- options: [
132
- { label: "Js", value: "js" },
133
- { label: "Action", value: "action" }
134
- ]
135
- },
136
- defaultValue: "js"
137
- },
138
- {
139
- label: "排序",
140
- field: "orderNum",
141
- component: "InputNumber",
142
- componentProps: {
143
- style: "width: 100%"
144
- }
145
- },
146
- {
147
- label: "按钮图标",
148
- field: "buttonIcon",
149
- // update-begin--author:liaozhiyang---date:20240528---for:【TV360X-136】按钮图标改成图标组件选择
150
- component: "IconPicker",
151
- componentProps: {
152
- clearSelect: !0,
153
- iconPrefixSave: !1
154
- },
155
- // update-end--author:liaozhiyang---date:20240528---for:【TV360X-136】按钮图标改成图标组件选择
156
- ifShow: ({ values: e, model: o }) => e.buttonStyle == "button" || e.buttonStyle == "form" ? !0 : (o.buttonIcon = null, !1)
157
- },
158
- {
159
- label: "表达式",
160
- field: "exp",
161
- component: "Input",
162
- // update-begin--author:liaozhiyang---date:20240603---for:【TV360X-89】自定义按钮样式是link时,展示表达式配置
163
- ifShow: ({ values: e, model: o }) => e.buttonStyle == "link" ? !0 : (o.exp = "", !1)
164
- // update-end--author:liaozhiyang---date:20240603---for:【TV360X-89】自定义按钮样式是link时,展示表达式配置
165
- },
166
- {
167
- label: "按钮状态",
168
- field: "buttonStatus",
169
- component: "RadioButtonGroup",
170
- componentProps: {
171
- options: [
172
- { label: "激活", value: "1" },
173
- { label: "未激活", value: "0" }
174
- ]
175
- },
176
- defaultValue: "1"
177
- }
178
- ], ge = J({
179
- name: "CustomButtonList",
180
- components: { BasicModal: re, BasicTable: le, TableAction: ae, BasicForm: se },
181
- emits: ["register"],
182
- setup() {
183
- const e = A(""), { doRequest: o, doDeleteRecord: t, tableContext: m } = ne({
184
- tableProps: {
185
- api: (n) => me(e.value, n),
186
- columns: fe,
187
- canResize: !1,
188
- useSearchForm: !1,
189
- beforeFetch(n) {
190
- return Object.assign(n, { column: "orderNum", order: "asc" });
191
- }
192
- }
193
- }), [p, { reload: g }, { rowSelection: s, selectedRowKeys: u }] = m, [r, { closeModal: c }] = ie((n) => y(this, null, function* () {
194
- e.value = n.row.id, g();
195
- })), { aiTestMode: w, genButtons: v } = te(), [k, _] = ue(), d = A(!1), f = Q({
196
- onRegister: k,
197
- title: W(() => d != null && d.value ? "修改" : "新增"),
198
- width: 800,
199
- confirmLoading: !1,
200
- onOk: U,
201
- onCancel: _.closeModal
202
- });
203
- let b = {};
204
- const [N, { resetFields: E, setFieldsValue: L, validate: V }] = ce({
205
- schemas: be,
206
- showActionButtonGroup: !1
207
- });
208
- function h(n) {
209
- return y(this, null, function* () {
210
- var I;
211
- d.value = n.isUpdate, b = T({}, (I = n.record) != null ? I : {}), _.openModal(), yield X(), yield E(), L(b);
212
- });
213
- }
214
- function $() {
215
- h({ isUpdate: !1 });
216
- }
217
- function j(n) {
218
- h({ isUpdate: !0, record: n });
219
- }
220
- function O() {
221
- c();
222
- }
223
- function z() {
224
- v(e.value);
225
- }
226
- function G() {
227
- return y(this, null, function* () {
228
- o(() => D(u.value));
229
- });
230
- }
231
- function U() {
232
- return y(this, null, function* () {
233
- try {
234
- f.confirmLoading = !0;
235
- let n = yield V();
236
- n = Object.assign({ cgformHeadId: e.value }, b, n), yield pe(n, d.value), g(), _.closeModal();
237
- } finally {
238
- f.confirmLoading = !1;
239
- }
240
- });
241
- }
242
- function q(n) {
243
- return [
244
- {
245
- label: "编辑",
246
- onClick: () => j(n)
247
- }
248
- ];
249
- }
250
- function x(n) {
251
- return [
252
- {
253
- label: "删除",
254
- popConfirm: {
255
- title: "确定删除吗?",
256
- placement: "left",
257
- confirm: () => t(() => D([n.id]))
258
- }
259
- }
260
- ];
261
- }
262
- return {
263
- onAdd: $,
264
- onBatchDelete: G,
265
- aiTestMode: w,
266
- onGenButtons: z,
267
- registerModal: r,
268
- registerTable: p,
269
- selectedRowKeys: u,
270
- rowSelection: s,
271
- onCancel: O,
272
- getTableAction: q,
273
- getDropDownAction: x,
274
- registerForm: N,
275
- formModalProps: f
276
- };
277
- }
278
- }), _e = {
279
- key: 0,
280
- style: { float: "left" }
281
- };
282
- function ye(e, o, t, m, p, g) {
283
- const s = i("a-button"), u = i("a-icon"), r = i("a-menu-item"), c = i("a-menu"), w = i("a-dropdown"), v = i("TableAction"), k = i("BasicTable"), _ = i("BasicForm"), d = i("a-spin"), f = i("BasicModal");
284
- return S(), R(f, {
285
- onRegister: e.registerModal,
286
- title: "自定义按钮",
287
- width: 1200,
288
- defaultFullscreen: "",
289
- onCancel: e.onCancel
290
- }, {
291
- footer: l(() => [
292
- a(s, { onClick: e.onCancel }, {
293
- default: l(() => [
294
- B("关闭")
295
- ]),
296
- _: 1
297
- }, 8, ["onClick"]),
298
- e.aiTestMode ? (S(), Y("div", _e, [
299
- a(s, { onClick: e.onGenButtons }, {
300
- default: l(() => [
301
- B("生成测试数据")
302
- ]),
303
- _: 1
304
- }, 8, ["onClick"])
305
- ])) : F("", !0)
306
- ]),
307
- default: l(() => [
308
- a(k, {
309
- onRegister: e.registerTable,
310
- rowSelection: e.rowSelection
311
- }, {
312
- tableTitle: l(() => [
313
- a(s, {
314
- onClick: e.onAdd,
315
- type: "primary",
316
- preIcon: "ant-design:plus"
317
- }, {
318
- default: l(() => [
319
- B("新增")
320
- ]),
321
- _: 1
322
- }, 8, ["onClick"]),
323
- e.selectedRowKeys.length > 0 ? (S(), R(w, { key: 0 }, {
324
- overlay: l(() => [
325
- a(c, null, {
326
- default: l(() => [
327
- a(r, {
328
- key: "1",
329
- onClick: e.onBatchDelete
330
- }, {
331
- default: l(() => [
332
- a(u, { type: "delete" }),
333
- B(" 删除 ")
334
- ]),
335
- _: 1
336
- }, 8, ["onClick"])
337
- ]),
338
- _: 1
339
- })
340
- ]),
341
- default: l(() => [
342
- a(s, { style: { "margin-left": "8px" } }, {
343
- default: l(() => [
344
- B(" 批量操作 "),
345
- a(u, { type: "down" })
346
- ]),
347
- _: 1
348
- })
349
- ]),
350
- _: 1
351
- })) : F("", !0)
352
- ]),
353
- action: l(({ record: b }) => [
354
- a(v, {
355
- actions: e.getTableAction(b),
356
- dropDownActions: e.getDropDownAction(b)
357
- }, null, 8, ["actions", "dropDownActions"])
358
- ]),
359
- _: 1
360
- }, 8, ["onRegister", "rowSelection"]),
361
- a(f, ee(oe(e.formModalProps)), {
362
- default: l(() => [
363
- a(d, {
364
- spinning: e.formModalProps.confirmLoading
365
- }, {
366
- default: l(() => [
367
- a(_, { onRegister: e.registerForm }, null, 8, ["onRegister"])
368
- ]),
369
- _: 1
370
- }, 8, ["spinning"])
371
- ]),
372
- _: 1
373
- }, 16)
374
- ]),
375
- _: 1
376
- }, 8, ["onRegister", "onCancel"]);
377
- }
378
- const Re = /* @__PURE__ */ de(ge, [["render", ye]]);
379
- export {
380
- Re as default
381
- };
@@ -1,166 +0,0 @@
1
- import { defineComponent as S, ref as r, resolveComponent as d, openBlock as D, createBlock as H, withCtx as l, createVNode as f, createTextVNode as g, createElementVNode as w } from "vue";
2
- import { defHttp as _ } from "/@/utils/http/axios";
3
- import { BasicTable as I } from "/@/components/Table";
4
- import { BasicModal as $, useModalInner as A } from "/@/components/Modal";
5
- import { useListTable as P } from "/@/hooks/system/useListPage";
6
- import { useMessage as q } from "/@/hooks/web/useMessage";
7
- import { useDesign as O } from "/@/hooks/web/useDesign";
8
- import { _ as V } from "./index-173949bb.mjs";
9
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
10
- import "vue-router";
11
- const j = S({
12
- name: "TransDb2Online",
13
- components: { BasicModal: $, BasicTable: I },
14
- emits: ["success", "register"],
15
- setup(e, { emit: h }) {
16
- const { createMessage: p } = q(), t = r("暂无数据"), u = r(!1), s = r(!1), n = r([]), a = r([]), [c, { closeModal: m }] = A(() => {
17
- s.value = !1, t.value = "暂无数据", i.value = [], v();
18
- }), { prefixCls: T } = O("online-db-import-form-modal"), M = T, C = document.documentElement.clientHeight, b = C - 180, L = b > 690 ? 690 : b, [y, { setPagination: B }, { rowSelection: E, selectedRowKeys: i }] = P({
19
- bordered: !0,
20
- columns: [{ title: "表名", align: "left", dataIndex: "id" }],
21
- dataSource: a,
22
- maxHeight: C - 400,
23
- locale: { emptyText: t },
24
- pagination: {
25
- showQuickJumper: !1,
26
- showSizeChanger: !1
27
- },
28
- clickToRowSelect: !0,
29
- showIndexColumn: !0,
30
- showActionColumn: !1,
31
- formConfig: {
32
- schemas: [
33
- {
34
- label: "表名",
35
- field: "tableName",
36
- component: "Input",
37
- componentProps: {
38
- style: { width: "100%" },
39
- placeholder: "请输入表名以模糊筛选",
40
- onChange: (o) => F(o.target.value)
41
- },
42
- disabledLabelWidth: !0,
43
- itemProps: {
44
- labelCol: { sm: 0, md: 0 },
45
- wrapperCol: { sm: 24, md: 20 }
46
- }
47
- }
48
- ],
49
- baseColProps: { xs: 24, sm: 24, md: 24, lg: 24, xl: 24, xxl: 24 },
50
- showActionButtonGroup: !1
51
- }
52
- });
53
- function v() {
54
- return u.value = !0, _.get(
55
- {
56
- url: "/online/cgform/head/queryTables"
57
- /* query */
58
- },
59
- {
60
- errorMessageMode: "none"
61
- }
62
- ).then(
63
- (o) => (a.value = o, n.value = [...o], o),
64
- (o) => {
65
- o.message == "noadminauth" && (t.value = "非admin用户无权限操作!", p.warn(t.value)), a.value = [], n.value = [];
66
- }
67
- ).finally(() => {
68
- u.value = !1;
69
- });
70
- }
71
- function F(o) {
72
- n.value.length !== 0 && (o ? (a.value = n.value.filter((R) => R.id.toLowerCase().includes(o.toLowerCase())), t.value = a.value.length === 0 ? "无筛选结果" : "暂无数据") : a.value = [...n.value], B({ current: 1 }));
73
- }
74
- function N() {
75
- m();
76
- }
77
- function k() {
78
- if (!i.value || i.value.length == 0) {
79
- p.warning("请选择一张表");
80
- return;
81
- } else {
82
- s.value = !0;
83
- let o = i.value.join(",");
84
- _.post({ url: "/online/cgform/head/transTables/" + o }).then(() => {
85
- m(), h("success");
86
- }).finally(() => s.value = !1);
87
- }
88
- }
89
- return {
90
- emptyText: t,
91
- confirmLoading: u,
92
- btnLoading: s,
93
- metaSource: n,
94
- handleTrans: k,
95
- handleCancel: N,
96
- queryTables: v,
97
- registerModal: c,
98
- registerTable: y,
99
- rowSelection: E,
100
- selectedRowKeys: i,
101
- wrapClassName: M,
102
- modalHeight: L
103
- };
104
- }
105
- });
106
- const x = /* @__PURE__ */ w("div", null, [
107
- /* @__PURE__ */ g(" 注:导入表会排除配置前缀表 "),
108
- /* @__PURE__ */ w("a", {
109
- href: "http://doc.jeecg.com/2043924",
110
- target: "_blank"
111
- }, " 参考文档")
112
- ], -1);
113
- function z(e, h, p, t, u, s) {
114
- const n = d("BasicTable"), a = d("a-spin"), c = d("a-button"), m = d("BasicModal");
115
- return D(), H(m, {
116
- onRegister: e.registerModal,
117
- height: e.modalHeight,
118
- width: 500,
119
- title: "从数据库导入表单",
120
- confirmLoading: e.confirmLoading,
121
- onCancel: e.handleCancel,
122
- wrapClassName: e.wrapClassName
123
- }, {
124
- footer: l(() => [
125
- f(c, { onClick: e.handleCancel }, {
126
- default: l(() => [
127
- g("关闭")
128
- ]),
129
- _: 1
130
- }, 8, ["onClick"]),
131
- f(c, {
132
- onClick: e.handleTrans,
133
- type: "primary",
134
- preIcon: "ant-design:swap",
135
- loading: e.confirmLoading || e.btnLoading
136
- }, {
137
- default: l(() => [
138
- g(" 生成表单 ")
139
- ]),
140
- _: 1
141
- }, 8, ["onClick", "loading"])
142
- ]),
143
- default: l(() => [
144
- f(a, { spinning: e.confirmLoading }, {
145
- default: l(() => [
146
- f(n, {
147
- onRegister: e.registerTable,
148
- rowSelection: e.rowSelection,
149
- onTableRedo: e.queryTables
150
- }, {
151
- tableTitle: l(() => [
152
- x
153
- ]),
154
- _: 1
155
- }, 8, ["onRegister", "rowSelection", "onTableRedo"])
156
- ]),
157
- _: 1
158
- }, 8, ["spinning"])
159
- ]),
160
- _: 1
161
- }, 8, ["onRegister", "height", "confirmLoading", "onCancel", "wrapClassName"]);
162
- }
163
- const oe = /* @__PURE__ */ V(j, [["render", z]]);
164
- export {
165
- oe as default
166
- };
@@ -1,49 +0,0 @@
1
- import { computed as c, openBlock as n, createElementBlock as l, normalizeClass as p, createElementVNode as t, createCommentVNode as d, pushScopeId as r, popScopeId as _ } from "vue";
2
- import { useAppInject as m } from "/@/hooks/web/useAppInject";
3
- import { _ as v } from "./index-173949bb.mjs";
4
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
5
- import "/@/hooks/web/useMessage";
6
- import "vue-router";
7
- const f = {
8
- name: "JModalTip",
9
- props: {
10
- visible: {
11
- type: Boolean,
12
- default: !1
13
- }
14
- },
15
- emits: ["save", "cancel"],
16
- setup(e) {
17
- const { getIsMobile: o } = m();
18
- return {
19
- flag: c(() => e.visible),
20
- getIsMobile: o
21
- };
22
- }
23
- }, u = (e) => (r("data-v-dc9246f4"), e = e(), _(), e), g = { class: "container" }, I = { class: "outer" }, b = { class: "inner" }, $ = /* @__PURE__ */ u(() => /* @__PURE__ */ t("span", { class: "tip" }, "正在修改表单数据 ···", -1));
24
- function k(e, o, i, s, M, y) {
25
- return s.flag ? (n(), l("div", {
26
- key: 0,
27
- class: p(["jeecg-update-tip-bar", { mobile: s.getIsMobile }])
28
- }, [
29
- t("div", g, [
30
- t("div", I, [
31
- t("div", b, [
32
- $,
33
- t("div", {
34
- class: "cancel",
35
- onClick: o[0] || (o[0] = (a) => e.$emit("cancel"))
36
- }, "取消"),
37
- t("div", {
38
- class: "save",
39
- onClick: o[1] || (o[1] = (a) => e.$emit("save"))
40
- }, "保存")
41
- ])
42
- ])
43
- ])
44
- ], 2)) : d("", !0);
45
- }
46
- const j = /* @__PURE__ */ v(f, [["render", k], ["__scopeId", "data-v-dc9246f4"]]);
47
- export {
48
- j as default
49
- };
@@ -1,95 +0,0 @@
1
- import { useDebounceFn as v } from "@vueuse/core";
2
- import { defHttp as S } from "/@/utils/http/axios";
3
- import { useMessage as w } from "/@/hooks/web/useMessage";
4
- import { ref as d, watch as f, resolveComponent as p, openBlock as c, createBlock as m, withCtx as h, createElementBlock as y, Fragment as C, renderList as x, createTextVNode as k, toDisplayString as O } from "vue";
5
- import { _ as B } from "./index-173949bb.mjs";
6
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
7
- import "vue-router";
8
- const { createMessage: I } = w(), q = {
9
- name: "JOnlineSearchSelect",
10
- props: {
11
- placeholder: {
12
- type: String,
13
- default: "",
14
- required: !1
15
- },
16
- value: {
17
- type: String,
18
- required: !1
19
- },
20
- // online CgReport item id
21
- fieldId: {
22
- type: String,
23
- required: !0
24
- }
25
- },
26
- emits: ["update:value"],
27
- setup(r, { emit: i }) {
28
- let n = d(""), t = d([]);
29
- f(
30
- () => r.value,
31
- (e) => {
32
- e ? n.value = e : n.value = void 0;
33
- },
34
- { immediate: !0 }
35
- ), f(
36
- () => r.fieldId,
37
- () => {
38
- a();
39
- },
40
- { immediate: !0 }
41
- );
42
- const u = v(o, 800);
43
- function o(e = "") {
44
- let g = {
45
- keyword: e
46
- }, _ = "/online/cgreport/api/getReportDictList?fieldId=" + r.fieldId;
47
- S.get({ url: _, params: g }, { isTransformResponse: !1 }).then((l) => {
48
- l.success ? l.result && l.result.length > 0 ? t.value = l.result : t.value = [] : I.warning(l.message);
49
- });
50
- }
51
- function s(e) {
52
- i("update:value", e), (!e || e == "") && a();
53
- }
54
- function a() {
55
- t.value = [], o();
56
- }
57
- return {
58
- selectOptions: t,
59
- handleSearch: u,
60
- handleChange: s,
61
- selected: n
62
- };
63
- }
64
- };
65
- function D(r, i, n, t, u, o) {
66
- const s = p("a-select-option"), a = p("a-select");
67
- return c(), m(a, {
68
- value: t.selected,
69
- placeholder: n.placeholder,
70
- "show-search": "",
71
- "default-active-first-option": !1,
72
- "show-arrow": !0,
73
- "filter-option": !1,
74
- "not-found-content": null,
75
- onSearch: t.handleSearch,
76
- onChange: t.handleChange,
77
- allowClear: ""
78
- }, {
79
- default: h(() => [
80
- (c(!0), y(C, null, x(t.selectOptions, (e) => (c(), m(s, {
81
- key: e.value
82
- }, {
83
- default: h(() => [
84
- k(O(e.text), 1)
85
- ]),
86
- _: 2
87
- }, 1024))), 128))
88
- ]),
89
- _: 1
90
- }, 8, ["value", "placeholder", "onSearch", "onChange"]);
91
- }
92
- const E = /* @__PURE__ */ B(q, [["render", D]]);
93
- export {
94
- E as default
95
- };