@jeecg/online 3.7.0-beta → 3.7.1-RC
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.
- package/{AiModal-fe3988fb.mjs → AiModal-6de335e3.mjs} +1 -1
- package/AuthButtonConfig-89763932.mjs +154 -0
- package/{AuthButtonTree-589395ed.mjs → AuthButtonTree-2d87d0b3.mjs} +6 -5
- package/{AuthDataConfig-7bb0cd85.mjs → AuthDataConfig-5c3a8e6b.mjs} +11 -10
- package/{AuthDataTree-6e3bb86f.mjs → AuthDataTree-dd7a1240.mjs} +6 -6
- package/AuthFieldConfig-9f6fa06c.mjs +245 -0
- package/{AuthFieldTree-b7cd091e.mjs → AuthFieldTree-e326fc38.mjs} +2 -2
- package/{AuthManagerDrawer-5e2ed5ce.mjs → AuthManagerDrawer-76f15e8d.mjs} +9 -8
- package/{AuthSetterModal-6f74449c.mjs → AuthSetterModal-f5d2e87f.mjs} +12 -11
- package/{CgformCopyList-8077ccc6.mjs → CgformCopyList-365b3e8f.mjs} +43 -42
- package/CgformModal-21c5c387.mjs +671 -0
- package/{CgreportModal-5a23d089.mjs → CgreportModal-edefa8e3.mjs} +15 -14
- package/{CheckDictTable-b5cb0e2b.mjs → CheckDictTable-1bc8322d.mjs} +36 -33
- package/{CodeFileListModal-0e26b7e0.mjs → CodeFileListModal-24601898.mjs} +5 -4
- package/{CodeFileViewModal-9d4a5b5f.mjs → CodeFileViewModal-2fe911f4.mjs} +89 -84
- package/CodeGeneratorModal-f09fe903.mjs +282 -0
- package/{CustomButtonList-37639061.mjs → CustomButtonList-f07bc695.mjs} +108 -92
- package/{DBAttributeTable-95dc66c1.mjs → DBAttributeTable-285d40db.mjs} +79 -71
- package/DbToOnlineModal-5dcb67c3.mjs +169 -0
- package/{DetailForm-4aa2570b.mjs → DetailForm-deecbf3d.mjs} +50 -49
- package/{EnhanceJavaModal-98934198.mjs → EnhanceJavaModal-45c66cd5.mjs} +2 -2
- package/{EnhanceJsHistory-9c4acdaf.mjs → EnhanceJsHistory-fab3102e.mjs} +1 -1
- package/{EnhanceJsModal-247f640d.mjs → EnhanceJsModal-175357a1.mjs} +119 -103
- package/{EnhanceSqlModal-65b74b0f.mjs → EnhanceSqlModal-7ea1b300.mjs} +2 -2
- package/{ExtendConfigModal-00f2fb55.mjs → ExtendConfigModal-a89ae052.mjs} +2 -2
- package/{FieldExtendJsonModal-cc7fce26.mjs → FieldExtendJsonModal-32135634.mjs} +2 -2
- package/{FileSelectModal-38660e3c.mjs → FileSelectModal-1643c8b9.mjs} +1 -1
- package/{ForeignKeyTable-a78cb5ad.mjs → ForeignKeyTable-7f7e28a7.mjs} +2 -2
- package/{IndexTable-1b496559.mjs → IndexTable-cdcc2b48.mjs} +27 -19
- package/{JModalTip-4a83aaed.mjs → JModalTip-b055ab60.mjs} +1 -1
- package/JOnlineSearchSelect-22aae934.mjs +128 -0
- package/{LeftDepart-8ade4bf7.mjs → LeftDepart-d5615ed9.mjs} +1 -1
- package/{LeftRole-7d8c5acc.mjs → LeftRole-2ed8a2bf.mjs} +1 -1
- package/{LeftUser-b4d1372a.mjs → LeftUser-22baa378.mjs} +1 -1
- package/{LinkTableConfigModal-a138c85e.mjs → LinkTableConfigModal-9242d750.mjs} +1 -1
- package/{LinkTableFieldConfigModal-17b413b0.mjs → LinkTableFieldConfigModal-24adc50c.mjs} +1 -1
- package/{LinkTableListPiece-2660d709.mjs → LinkTableListPiece-f3a8e0d7.mjs} +1 -1
- package/{ModalFormDemo-0544737d.mjs → ModalFormDemo-711418db.mjs} +1 -1
- package/{OnlCgformErpList-30e416c8.mjs → OnlCgformErpList-58acdfa0.mjs} +121 -121
- package/{OnlCgformErpSubTable-9a876058.mjs → OnlCgformErpSubTable-9b1e1938.mjs} +149 -150
- package/{OnlCgformInnerSubTable-290ace5d.mjs → OnlCgformInnerSubTable-6c23781f.mjs} +96 -97
- package/{OnlCgformInnerTableList-f89b6687.mjs → OnlCgformInnerTableList-4b5e14ed.mjs} +156 -156
- package/{OnlCgformTabList-7a2f2c03.mjs → OnlCgformTabList-019ad753.mjs} +138 -138
- package/{OnlineAutoList-46c6c8b9.mjs → OnlineAutoList-48589d09.mjs} +90 -90
- package/{OnlineAutoModal-971bef13.mjs → OnlineAutoModal-c2928847.mjs} +64 -61
- package/{OnlineAutoTreeList-3b92454c.mjs → OnlineAutoTreeList-3baa1d00.mjs} +20 -19
- package/{OnlineCustomModal-594244f3.mjs → OnlineCustomModal-9e17b6ce.mjs} +8 -8
- package/{OnlineDetailModal-2a271e0b.mjs → OnlineDetailModal-d5895734.mjs} +8 -8
- package/OnlineForm-9f1153ba.mjs +985 -0
- package/{OnlineFormDetail-e036cd11.mjs → OnlineFormDetail-022ca117.mjs} +7 -7
- package/{OnlineFormUrlAdd-7fb3dcca.mjs → OnlineFormUrlAdd-9715d70a.mjs} +10 -10
- package/{OnlineFormUrlDetail-b2292137.mjs → OnlineFormUrlDetail-8f864b1a.mjs} +12 -12
- package/{OnlineFormUrlEdit-44080fb3.mjs → OnlineFormUrlEdit-ac985b36.mjs} +10 -10
- package/{OnlineFormUrlSuccess-af285b02.mjs → OnlineFormUrlSuccess-3dfc54ab.mjs} +1 -1
- package/OnlineQueryForm-eedb9a60.mjs +466 -0
- package/{OnlineSearchFormItem-6feacae6.mjs → OnlineSearchFormItem-6c557343.mjs} +2 -2
- package/{OnlineSelectCascade-471fcc76.mjs → OnlineSelectCascade-05c40fef.mjs} +1 -1
- package/{OnlineSubFormDetail-03f8ee5c.mjs → OnlineSubFormDetail-58e896ce.mjs} +7 -7
- package/{OnlineTabAutoModal-7b9bcd0b.mjs → OnlineTabAutoModal-47b18ad6.mjs} +7 -7
- package/{OnlineTabDetailModal-88143301.mjs → OnlineTabDetailModal-82de1465.mjs} +8 -8
- package/{OnlineTabForm-9ad7d29a.mjs → OnlineTabForm-27655c83.mjs} +236 -224
- package/{OnlineTabFormDetail-bbf23caa.mjs → OnlineTabFormDetail-8d0c40c0.mjs} +7 -7
- package/{PageAttributeTable-6c23547b.mjs → PageAttributeTable-25e3b7da.mjs} +156 -136
- package/{ProcessOnlineForm-b42198f5.mjs → ProcessOnlineForm-148632fe.mjs} +61 -55
- package/{QueryTable-96b3dbd0.mjs → QueryTable-f7bfca7f.mjs} +39 -36
- package/{SetSwitchOptions-a452fa0f.mjs → SetSwitchOptions-b2af757f.mjs} +1 -1
- package/SuperQuery-a8592995.mjs +967 -0
- package/auth.api-ea1d33d4.mjs +41 -0
- package/{auth.data-22948e87.mjs → auth.data-511e5197.mjs} +62 -28
- package/{enhance.data-3304d553.mjs → enhance.data-a67572e1.mjs} +8 -7
- package/index-1d1a6e56.mjs +57 -0
- package/{index-d2abb8a0.mjs → index-30e0e923.mjs} +48 -47
- package/{index-581bef24.mjs → index-f30613d1.mjs} +2 -2
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/{useCgformList-8755a94e.mjs → useCgformList-f41d4dc1.mjs} +1 -1
- package/useExtendComponent-dcae5c78.mjs +4399 -0
- package/{useListButton-7ddb9a46.mjs → useListButton-bfac4ecf.mjs} +45 -45
- package/{useSchemas-47e45edc.mjs → useSchemas-a9c75b0f.mjs} +55 -46
- package/useTableSync-d7e9f18d.mjs +89 -0
- package/AuthButtonConfig-d50a0a65.mjs +0 -134
- package/AuthFieldConfig-490fc0ab.mjs +0 -139
- package/CgformModal-36faf29a.mjs +0 -621
- package/CodeGeneratorModal-b722d976.mjs +0 -238
- package/DbToOnlineModal-f49b9530.mjs +0 -166
- package/JOnlineSearchSelect-34a37ec9.mjs +0 -95
- package/OnlineForm-018981b2.mjs +0 -924
- package/OnlineQueryForm-998c12a4.mjs +0 -444
- package/SuperQuery-cbfba908.mjs +0 -975
- package/auth.api-d3a6c4b3.mjs +0 -39
- package/index-173949bb.mjs +0 -57
- package/useExtendComponent-bb7cca20.mjs +0 -4295
- package/useTableSync-f6089e8a.mjs +0 -87
- /package/{OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs} +0 -0
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var U = Object.defineProperty;
|
|
2
|
+
var P = Object.getOwnPropertySymbols;
|
|
3
3
|
var K = Object.prototype.hasOwnProperty, Z = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
4
|
+
var T = (e, o, t) => o in e ? U(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t, A = (e, o) => {
|
|
5
5
|
for (var t in o || (o = {}))
|
|
6
|
-
K.call(o, t) &&
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
9
|
-
Z.call(o, t) &&
|
|
6
|
+
K.call(o, t) && T(e, t, o[t]);
|
|
7
|
+
if (P)
|
|
8
|
+
for (var t of P(o))
|
|
9
|
+
Z.call(o, t) && T(e, t, o[t]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var
|
|
12
|
+
var C = (e, o, t) => new Promise((c, s) => {
|
|
13
|
+
var m = (r) => {
|
|
14
14
|
try {
|
|
15
15
|
u(t.next(r));
|
|
16
|
-
} catch (
|
|
17
|
-
p
|
|
16
|
+
} catch (p) {
|
|
17
|
+
s(p);
|
|
18
18
|
}
|
|
19
|
-
},
|
|
19
|
+
}, d = (r) => {
|
|
20
20
|
try {
|
|
21
21
|
u(t.throw(r));
|
|
22
|
-
} catch (
|
|
23
|
-
p
|
|
22
|
+
} catch (p) {
|
|
23
|
+
s(p);
|
|
24
24
|
}
|
|
25
|
-
}, u = (r) => r.done ?
|
|
25
|
+
}, u = (r) => r.done ? c(r.value) : Promise.resolve(r.value).then(m, d);
|
|
26
26
|
u((t = t.apply(e, o)).next());
|
|
27
27
|
});
|
|
28
|
-
import { defineComponent as J, ref as
|
|
28
|
+
import { defineComponent as J, ref as I, reactive as Q, computed as W, nextTick as X, resolveComponent as i, openBlock as k, createBlock as R, withCtx as l, createVNode as a, createTextVNode as w, createElementBlock as Y, createCommentVNode as F, normalizeProps as ee, guardReactiveProps as oe } from "vue";
|
|
29
29
|
import { u as te } from "./useOnlineTest-e4bd8be3.mjs";
|
|
30
30
|
import { useListPage as ne } from "/@/hooks/system/useListPage";
|
|
31
31
|
import { BasicTable as le, TableAction as ae } from "/@/components/Table";
|
|
32
|
-
import { BasicModal as re, useModalInner as ie, useModal as
|
|
33
|
-
import { BasicForm as
|
|
34
|
-
import { defHttp as
|
|
35
|
-
import { _ as de } from "./index-
|
|
32
|
+
import { BasicModal as re, useModalInner as ie, useModal as se } from "/@/components/Modal";
|
|
33
|
+
import { BasicForm as ue, useForm as ce } from "/@/components/Form";
|
|
34
|
+
import { defHttp as y } from "/@/utils/http/axios";
|
|
35
|
+
import { _ as de } from "./index-1d1a6e56.mjs";
|
|
36
36
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
37
37
|
import "/@/hooks/web/useMessage";
|
|
38
38
|
import "vue-router";
|
|
39
|
-
const me = (e, o) =>
|
|
39
|
+
const me = (e, o) => y.get({ url: "/online/cgform/button/list/" + e, params: o });
|
|
40
40
|
function D(e) {
|
|
41
|
-
return
|
|
41
|
+
return y.delete(
|
|
42
42
|
{
|
|
43
43
|
url: "/online/cgform/button/deleteBatch",
|
|
44
44
|
params: {
|
|
@@ -48,7 +48,7 @@ function D(e) {
|
|
|
48
48
|
{ joinParamsToUrl: !0 }
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
|
-
const pe = (e, o) => o ?
|
|
51
|
+
const pe = (e, o) => o ? y.put({ url: "/online/cgform/button/edit", params: e }) : y.post({ url: "/online/cgform/button/add", params: e }), fe = [
|
|
52
52
|
{ title: "按钮编码", align: "center", dataIndex: "buttonCode" },
|
|
53
53
|
{ title: "按钮名称", align: "center", dataIndex: "buttonName" },
|
|
54
54
|
{
|
|
@@ -75,7 +75,7 @@ const pe = (e, o) => o ? C.put({ url: "/online/cgform/button/edit", params: e })
|
|
|
75
75
|
return e == 1 ? "激活" : "未激活";
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
], be = [
|
|
78
|
+
], be = ({ redoModalHeight: e }) => [
|
|
79
79
|
{
|
|
80
80
|
label: "按钮编码",
|
|
81
81
|
field: "buttonCode",
|
|
@@ -84,10 +84,17 @@ const pe = (e, o) => o ? C.put({ url: "/online/cgform/button/edit", params: e })
|
|
|
84
84
|
// update-begin--author:liaozhiyang---date:20240521---for:【TV360X-139】按钮编码加上正则校验
|
|
85
85
|
dynamicRules: () => [
|
|
86
86
|
{
|
|
87
|
-
validator: (
|
|
88
|
-
/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(
|
|
87
|
+
validator: (o, t) => new Promise((c, s) => {
|
|
88
|
+
/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(t) ? c() : s("编码只能包含字母、数字、下划线 (_) 和美元符号 ($)且不能以数字开头");
|
|
89
|
+
})
|
|
90
|
+
},
|
|
91
|
+
// update-begin--author:liaozhiyang---date:20240701---for:【TV360X-1693】自定义按钮编码排除sql和java系统内置编码
|
|
92
|
+
{
|
|
93
|
+
validator: (o, t) => new Promise((c, s) => {
|
|
94
|
+
["add", "edit", "delete", "import", "export", "query"].includes(t) ? s("属于系统内置编码") : c();
|
|
89
95
|
})
|
|
90
96
|
}
|
|
97
|
+
// update-end--author:liaozhiyang---date:20240701---for:【TV360X-1693】自定义按钮编码排除sql和java系统内置编码
|
|
91
98
|
]
|
|
92
99
|
// update-end--author:liaozhiyang---date:20240521---for:【TV360X-139】按钮编码加上正则校验
|
|
93
100
|
},
|
|
@@ -106,7 +113,12 @@ const pe = (e, o) => o ? C.put({ url: "/online/cgform/button/edit", params: e })
|
|
|
106
113
|
{ label: "Link", value: "link" },
|
|
107
114
|
{ label: "Button", value: "button" },
|
|
108
115
|
{ label: "Form", value: "form" }
|
|
109
|
-
]
|
|
116
|
+
],
|
|
117
|
+
// update-begin--author:liaozhiyang---date:20240618---for:【TV360X-1306】自定义按钮弹窗按钮样式切换是重置弹窗高度
|
|
118
|
+
onChange: () => {
|
|
119
|
+
e();
|
|
120
|
+
}
|
|
121
|
+
// update-end--author:liaozhiyang---date:20240618---for:【TV360X-1306】自定义按钮弹窗按钮样式切换是重置弹窗高度
|
|
110
122
|
},
|
|
111
123
|
defaultValue: "link"
|
|
112
124
|
},
|
|
@@ -115,19 +127,21 @@ const pe = (e, o) => o ? C.put({ url: "/online/cgform/button/edit", params: e })
|
|
|
115
127
|
field: "optPosition",
|
|
116
128
|
component: "Select",
|
|
117
129
|
componentProps: {
|
|
130
|
+
allowClear: !1,
|
|
118
131
|
options: [
|
|
119
|
-
{ label:
|
|
132
|
+
// { label: '侧面', value: '1' },
|
|
120
133
|
{ label: "底部", value: "2" }
|
|
121
134
|
]
|
|
122
135
|
},
|
|
123
136
|
defaultValue: "2",
|
|
124
|
-
show: ({ model:
|
|
137
|
+
show: ({ model: o }) => o.buttonStyle === "form"
|
|
125
138
|
},
|
|
126
139
|
{
|
|
127
140
|
label: "按钮类型",
|
|
128
141
|
field: "optType",
|
|
129
142
|
component: "Select",
|
|
130
143
|
componentProps: {
|
|
144
|
+
allowClear: !1,
|
|
131
145
|
options: [
|
|
132
146
|
{ label: "Js", value: "js" },
|
|
133
147
|
{ label: "Action", value: "action" }
|
|
@@ -153,14 +167,14 @@ const pe = (e, o) => o ? C.put({ url: "/online/cgform/button/edit", params: e })
|
|
|
153
167
|
iconPrefixSave: !1
|
|
154
168
|
},
|
|
155
169
|
// update-end--author:liaozhiyang---date:20240528---for:【TV360X-136】按钮图标改成图标组件选择
|
|
156
|
-
ifShow: ({ values:
|
|
170
|
+
ifShow: ({ values: o, model: t }) => o.buttonStyle == "button" || o.buttonStyle == "form"
|
|
157
171
|
},
|
|
158
172
|
{
|
|
159
173
|
label: "表达式",
|
|
160
174
|
field: "exp",
|
|
161
175
|
component: "Input",
|
|
162
176
|
// update-begin--author:liaozhiyang---date:20240603---for:【TV360X-89】自定义按钮样式是link时,展示表达式配置
|
|
163
|
-
ifShow: ({ values:
|
|
177
|
+
ifShow: ({ values: o, model: t }) => o.buttonStyle == "link" ? !0 : (t.exp = "", !1)
|
|
164
178
|
// update-end--author:liaozhiyang---date:20240603---for:【TV360X-89】自定义按钮样式是link时,展示表达式配置
|
|
165
179
|
},
|
|
166
180
|
{
|
|
@@ -177,10 +191,10 @@ const pe = (e, o) => o ? C.put({ url: "/online/cgform/button/edit", params: e })
|
|
|
177
191
|
}
|
|
178
192
|
], ge = J({
|
|
179
193
|
name: "CustomButtonList",
|
|
180
|
-
components: { BasicModal: re, BasicTable: le, TableAction: ae, BasicForm:
|
|
194
|
+
components: { BasicModal: re, BasicTable: le, TableAction: ae, BasicForm: ue },
|
|
181
195
|
emits: ["register"],
|
|
182
196
|
setup() {
|
|
183
|
-
const e =
|
|
197
|
+
const e = I(""), { doRequest: o, doDeleteRecord: t, tableContext: c } = ne({
|
|
184
198
|
tableProps: {
|
|
185
199
|
api: (n) => me(e.value, n),
|
|
186
200
|
columns: fe,
|
|
@@ -190,56 +204,58 @@ const pe = (e, o) => o ? C.put({ url: "/online/cgform/button/edit", params: e })
|
|
|
190
204
|
return Object.assign(n, { column: "orderNum", order: "asc" });
|
|
191
205
|
}
|
|
192
206
|
}
|
|
193
|
-
}), [
|
|
194
|
-
e.value = n.row.id,
|
|
195
|
-
})), { aiTestMode:
|
|
196
|
-
onRegister:
|
|
197
|
-
title: W(() =>
|
|
207
|
+
}), [s, { reload: m }, { rowSelection: d, selectedRowKeys: u }] = c, [r, { closeModal: p }] = ie((n) => C(this, null, function* () {
|
|
208
|
+
e.value = n.row.id, m();
|
|
209
|
+
})), { aiTestMode: B, genButtons: v } = te(), [h, b] = se(), f = I(!1), g = Q({
|
|
210
|
+
onRegister: h,
|
|
211
|
+
title: W(() => f != null && f.value ? "修改" : "新增"),
|
|
198
212
|
width: 800,
|
|
199
213
|
confirmLoading: !1,
|
|
200
|
-
onOk:
|
|
201
|
-
onCancel:
|
|
214
|
+
onOk: z,
|
|
215
|
+
onCancel: b.closeModal
|
|
202
216
|
});
|
|
203
|
-
let
|
|
217
|
+
let _ = {};
|
|
204
218
|
const [N, { resetFields: E, setFieldsValue: L, validate: V }] = ce({
|
|
205
|
-
|
|
219
|
+
// update-begin--author:liaozhiyang---date:20240618---for:【TV360X-1306】自定义按钮弹窗按钮样式切换是重置弹窗高度
|
|
220
|
+
schemas: be({ redoModalHeight: b.redoModalHeight }),
|
|
221
|
+
// update-end--author:liaozhiyang---date:20240618---for:【TV360X-1306】自定义按钮弹窗按钮样式切换是重置弹窗高度
|
|
206
222
|
showActionButtonGroup: !1
|
|
207
223
|
});
|
|
208
|
-
function
|
|
209
|
-
return
|
|
210
|
-
var
|
|
211
|
-
|
|
224
|
+
function S(n) {
|
|
225
|
+
return C(this, null, function* () {
|
|
226
|
+
var M;
|
|
227
|
+
f.value = n.isUpdate, _ = A({}, (M = n.record) != null ? M : {}), b.openModal(), yield X(), yield E(), L(_);
|
|
212
228
|
});
|
|
213
229
|
}
|
|
214
230
|
function $() {
|
|
215
|
-
|
|
231
|
+
S({ isUpdate: !1 });
|
|
216
232
|
}
|
|
217
233
|
function j(n) {
|
|
218
|
-
|
|
234
|
+
S({ isUpdate: !0, record: n });
|
|
219
235
|
}
|
|
220
|
-
function
|
|
221
|
-
|
|
236
|
+
function x() {
|
|
237
|
+
p();
|
|
222
238
|
}
|
|
223
|
-
function
|
|
239
|
+
function O() {
|
|
224
240
|
v(e.value);
|
|
225
241
|
}
|
|
226
|
-
function
|
|
227
|
-
return
|
|
242
|
+
function q() {
|
|
243
|
+
return C(this, null, function* () {
|
|
228
244
|
o(() => D(u.value));
|
|
229
245
|
});
|
|
230
246
|
}
|
|
231
|
-
function
|
|
232
|
-
return
|
|
247
|
+
function z() {
|
|
248
|
+
return C(this, null, function* () {
|
|
233
249
|
try {
|
|
234
|
-
|
|
250
|
+
g.confirmLoading = !0;
|
|
235
251
|
let n = yield V();
|
|
236
|
-
n = Object.assign({ cgformHeadId: e.value },
|
|
252
|
+
n = Object.assign({ cgformHeadId: e.value }, _, n), yield pe(n, f.value), m(), b.closeModal();
|
|
237
253
|
} finally {
|
|
238
|
-
|
|
254
|
+
g.confirmLoading = !1;
|
|
239
255
|
}
|
|
240
256
|
});
|
|
241
257
|
}
|
|
242
|
-
function
|
|
258
|
+
function G(n) {
|
|
243
259
|
return [
|
|
244
260
|
{
|
|
245
261
|
label: "编辑",
|
|
@@ -247,7 +263,7 @@ const pe = (e, o) => o ? C.put({ url: "/online/cgform/button/edit", params: e })
|
|
|
247
263
|
}
|
|
248
264
|
];
|
|
249
265
|
}
|
|
250
|
-
function
|
|
266
|
+
function H(n) {
|
|
251
267
|
return [
|
|
252
268
|
{
|
|
253
269
|
label: "删除",
|
|
@@ -261,27 +277,27 @@ const pe = (e, o) => o ? C.put({ url: "/online/cgform/button/edit", params: e })
|
|
|
261
277
|
}
|
|
262
278
|
return {
|
|
263
279
|
onAdd: $,
|
|
264
|
-
onBatchDelete:
|
|
265
|
-
aiTestMode:
|
|
266
|
-
onGenButtons:
|
|
280
|
+
onBatchDelete: q,
|
|
281
|
+
aiTestMode: B,
|
|
282
|
+
onGenButtons: O,
|
|
267
283
|
registerModal: r,
|
|
268
|
-
registerTable:
|
|
284
|
+
registerTable: s,
|
|
269
285
|
selectedRowKeys: u,
|
|
270
|
-
rowSelection:
|
|
271
|
-
onCancel:
|
|
272
|
-
getTableAction:
|
|
273
|
-
getDropDownAction:
|
|
286
|
+
rowSelection: d,
|
|
287
|
+
onCancel: x,
|
|
288
|
+
getTableAction: G,
|
|
289
|
+
getDropDownAction: H,
|
|
274
290
|
registerForm: N,
|
|
275
|
-
formModalProps:
|
|
291
|
+
formModalProps: g
|
|
276
292
|
};
|
|
277
293
|
}
|
|
278
294
|
}), _e = {
|
|
279
295
|
key: 0,
|
|
280
296
|
style: { float: "left" }
|
|
281
297
|
};
|
|
282
|
-
function
|
|
283
|
-
const
|
|
284
|
-
return
|
|
298
|
+
function Ce(e, o, t, c, s, m) {
|
|
299
|
+
const d = i("a-button"), u = i("a-icon"), r = i("a-menu-item"), p = i("a-menu"), B = i("a-dropdown"), v = i("TableAction"), h = i("BasicTable"), b = i("BasicForm"), f = i("a-spin"), g = i("BasicModal");
|
|
300
|
+
return k(), R(g, {
|
|
285
301
|
onRegister: e.registerModal,
|
|
286
302
|
title: "自定义按钮",
|
|
287
303
|
width: 1200,
|
|
@@ -289,40 +305,40 @@ function ye(e, o, t, m, p, g) {
|
|
|
289
305
|
onCancel: e.onCancel
|
|
290
306
|
}, {
|
|
291
307
|
footer: l(() => [
|
|
292
|
-
a(
|
|
308
|
+
a(d, { onClick: e.onCancel }, {
|
|
293
309
|
default: l(() => [
|
|
294
|
-
|
|
310
|
+
w("关闭")
|
|
295
311
|
]),
|
|
296
312
|
_: 1
|
|
297
313
|
}, 8, ["onClick"]),
|
|
298
|
-
e.aiTestMode ? (
|
|
299
|
-
a(
|
|
314
|
+
e.aiTestMode ? (k(), Y("div", _e, [
|
|
315
|
+
a(d, { onClick: e.onGenButtons }, {
|
|
300
316
|
default: l(() => [
|
|
301
|
-
|
|
317
|
+
w("生成测试数据")
|
|
302
318
|
]),
|
|
303
319
|
_: 1
|
|
304
320
|
}, 8, ["onClick"])
|
|
305
321
|
])) : F("", !0)
|
|
306
322
|
]),
|
|
307
323
|
default: l(() => [
|
|
308
|
-
a(
|
|
324
|
+
a(h, {
|
|
309
325
|
onRegister: e.registerTable,
|
|
310
326
|
rowSelection: e.rowSelection
|
|
311
327
|
}, {
|
|
312
328
|
tableTitle: l(() => [
|
|
313
|
-
a(
|
|
329
|
+
a(d, {
|
|
314
330
|
onClick: e.onAdd,
|
|
315
331
|
type: "primary",
|
|
316
332
|
preIcon: "ant-design:plus"
|
|
317
333
|
}, {
|
|
318
334
|
default: l(() => [
|
|
319
|
-
|
|
335
|
+
w("新增")
|
|
320
336
|
]),
|
|
321
337
|
_: 1
|
|
322
338
|
}, 8, ["onClick"]),
|
|
323
|
-
e.selectedRowKeys.length > 0 ? (
|
|
339
|
+
e.selectedRowKeys.length > 0 ? (k(), R(B, { key: 0 }, {
|
|
324
340
|
overlay: l(() => [
|
|
325
|
-
a(
|
|
341
|
+
a(p, null, {
|
|
326
342
|
default: l(() => [
|
|
327
343
|
a(r, {
|
|
328
344
|
key: "1",
|
|
@@ -330,7 +346,7 @@ function ye(e, o, t, m, p, g) {
|
|
|
330
346
|
}, {
|
|
331
347
|
default: l(() => [
|
|
332
348
|
a(u, { type: "delete" }),
|
|
333
|
-
|
|
349
|
+
w(" 删除 ")
|
|
334
350
|
]),
|
|
335
351
|
_: 1
|
|
336
352
|
}, 8, ["onClick"])
|
|
@@ -339,9 +355,9 @@ function ye(e, o, t, m, p, g) {
|
|
|
339
355
|
})
|
|
340
356
|
]),
|
|
341
357
|
default: l(() => [
|
|
342
|
-
a(
|
|
358
|
+
a(d, { style: { "margin-left": "8px" } }, {
|
|
343
359
|
default: l(() => [
|
|
344
|
-
|
|
360
|
+
w(" 批量操作 "),
|
|
345
361
|
a(u, { type: "down" })
|
|
346
362
|
]),
|
|
347
363
|
_: 1
|
|
@@ -350,21 +366,21 @@ function ye(e, o, t, m, p, g) {
|
|
|
350
366
|
_: 1
|
|
351
367
|
})) : F("", !0)
|
|
352
368
|
]),
|
|
353
|
-
action: l(({ record:
|
|
369
|
+
action: l(({ record: _ }) => [
|
|
354
370
|
a(v, {
|
|
355
|
-
actions: e.getTableAction(
|
|
356
|
-
dropDownActions: e.getDropDownAction(
|
|
371
|
+
actions: e.getTableAction(_),
|
|
372
|
+
dropDownActions: e.getDropDownAction(_)
|
|
357
373
|
}, null, 8, ["actions", "dropDownActions"])
|
|
358
374
|
]),
|
|
359
375
|
_: 1
|
|
360
376
|
}, 8, ["onRegister", "rowSelection"]),
|
|
361
|
-
a(
|
|
377
|
+
a(g, ee(oe(e.formModalProps)), {
|
|
362
378
|
default: l(() => [
|
|
363
|
-
a(
|
|
379
|
+
a(f, {
|
|
364
380
|
spinning: e.formModalProps.confirmLoading
|
|
365
381
|
}, {
|
|
366
382
|
default: l(() => [
|
|
367
|
-
a(
|
|
383
|
+
a(b, { onRegister: e.registerForm }, null, 8, ["onRegister"])
|
|
368
384
|
]),
|
|
369
385
|
_: 1
|
|
370
386
|
}, 8, ["spinning"])
|
|
@@ -375,7 +391,7 @@ function ye(e, o, t, m, p, g) {
|
|
|
375
391
|
_: 1
|
|
376
392
|
}, 8, ["onRegister", "onCancel"]);
|
|
377
393
|
}
|
|
378
|
-
const Re = /* @__PURE__ */ de(ge, [["render",
|
|
394
|
+
const Re = /* @__PURE__ */ de(ge, [["render", Ce]]);
|
|
379
395
|
export {
|
|
380
396
|
Re as default
|
|
381
397
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Y = Object.defineProperty, $ = Object.defineProperties;
|
|
2
2
|
var k = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var b = Object.getOwnPropertySymbols;
|
|
4
4
|
var K = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var c = (e, a, d) => a in e ? Y(e, a, { enumerable: !0, configurable: !0, writable: !0, value: d }) : e[a] = d, D = (e, a) => {
|
|
6
6
|
for (var d in a || (a = {}))
|
|
7
|
-
K.call(a, d) &&
|
|
8
|
-
if (
|
|
9
|
-
for (var d of
|
|
10
|
-
W.call(a, d) &&
|
|
7
|
+
K.call(a, d) && c(e, d, a[d]);
|
|
8
|
+
if (b)
|
|
9
|
+
for (var d of b(a))
|
|
10
|
+
W.call(a, d) && c(e, d, a[d]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
import { defineComponent as X, getCurrentInstance as Q, ref as
|
|
12
|
+
}, S = (e, a) => $(e, k(a));
|
|
13
|
+
import { defineComponent as X, getCurrentInstance as Q, ref as f, resolveComponent as q, openBlock as J, createBlock as Z, mergeProps as z } from "vue";
|
|
14
14
|
import { JVxeTypes as E } from "/@/components/jeecg/JVxeTable/types";
|
|
15
|
-
import { u as j } from "./useTableSync-
|
|
16
|
-
import { _ as ee } from "./index-
|
|
15
|
+
import { u as j } from "./useTableSync-d7e9f18d.mjs";
|
|
16
|
+
import { _ as ee } from "./index-1d1a6e56.mjs";
|
|
17
17
|
import "./cgform.data-475d4984.mjs";
|
|
18
18
|
import "/@/utils/dict";
|
|
19
19
|
import "/@/utils/dict/JDictSelectUtil";
|
|
@@ -255,7 +255,7 @@ const te = [
|
|
|
255
255
|
},
|
|
256
256
|
emits: ["added", "removed", "inserted", "dragged", "syncDbType", "syncDbIsPersist", "syncDbIsNull"],
|
|
257
257
|
setup(e, { emit: a }) {
|
|
258
|
-
const d = Q(),
|
|
258
|
+
const d = Q(), R = f(!1), N = f([
|
|
259
259
|
{
|
|
260
260
|
title: "字段名称",
|
|
261
261
|
key: "dbFieldName",
|
|
@@ -275,7 +275,7 @@ const te = [
|
|
|
275
275
|
te.includes(t.toUpperCase()) ? i(!1, t + "是关键字,不能作为字段名称使用!") : i(!0);
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
|
-
{ handler:
|
|
278
|
+
{ handler: O },
|
|
279
279
|
// update-begin--author:liaozhiyang---date:20240603---for:【TV360X-631】表名字段名表描述字段备注长度校验
|
|
280
280
|
{
|
|
281
281
|
handler({ cellValue: t }, i) {
|
|
@@ -350,7 +350,7 @@ const te = [
|
|
|
350
350
|
defaultValue: "string",
|
|
351
351
|
placeholder: "请选择${title}",
|
|
352
352
|
disabled: !e.actionButton,
|
|
353
|
-
validateRules: [{ required: !0, message: "请选择${title}" }, { handler:
|
|
353
|
+
validateRules: [{ required: !0, message: "请选择${title}" }, { handler: x }]
|
|
354
354
|
},
|
|
355
355
|
{
|
|
356
356
|
title: "主键",
|
|
@@ -382,89 +382,97 @@ const te = [
|
|
|
382
382
|
},
|
|
383
383
|
{ title: "orderNum", key: "orderNum", type: E.hidden }
|
|
384
384
|
]);
|
|
385
|
-
let
|
|
386
|
-
const
|
|
387
|
-
function
|
|
385
|
+
let s = [];
|
|
386
|
+
const I = j(N), { tableRef: A, loading: L, dataSource: g, tableHeight: m, tableProps: h, setDataSource: p, validateData: y } = I;
|
|
387
|
+
function U() {
|
|
388
388
|
a("added", d);
|
|
389
389
|
}
|
|
390
|
-
function U(t) {
|
|
391
|
-
u = u.concat(t.deleteRows.map((i) => i.id)), a("removed", O(D({}, t), { removeIds: u, target: d }));
|
|
392
|
-
}
|
|
393
390
|
function B(t) {
|
|
391
|
+
s = s.concat(t.deleteRows.map((i) => i.id)), a("removed", S(D({}, t), { removeIds: s, target: d }));
|
|
392
|
+
}
|
|
393
|
+
function _(t) {
|
|
394
394
|
a("dragged", {
|
|
395
395
|
oldIndex: t.oldIndex,
|
|
396
396
|
newIndex: t.newIndex,
|
|
397
397
|
target: d
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
|
-
function
|
|
401
|
-
a("inserted",
|
|
400
|
+
function M(t) {
|
|
401
|
+
a("inserted", S(D({}, t), { target: d }));
|
|
402
402
|
}
|
|
403
|
-
function
|
|
404
|
-
return
|
|
403
|
+
function v() {
|
|
404
|
+
return s;
|
|
405
405
|
}
|
|
406
|
-
function
|
|
407
|
-
let { type: i, row: l, col:
|
|
408
|
-
i === E.select &&
|
|
406
|
+
function F(t) {
|
|
407
|
+
let { type: i, row: l, col: o, value: n, target: u, oldValue: r } = t;
|
|
408
|
+
i === E.select && o.key === "dbType" ? ((n === "Date" || n === "Datetime") && a("syncDbType", { row: l, value: n, target: d }), (n !== "Date" || n !== "Datetime") && (r == "Date" || r == "Datetime") && a("syncDbType", { row: l, value: n, target: d }), n === "Blob" || n === "Text" || n === "Date" ? u.setValues([{ rowKey: l.id, values: { dbLength: "0" } }]) : n === "string" ? u.setValues([{ rowKey: l.id, values: { dbLength: "32" } }]) : n === "int" || n === "double" || n === "BigDecimal" ? u.setValues([{ rowKey: l.id, values: { dbLength: "10" } }]) : l.dbLength === "0" && u.setValues([{ rowKey: l.id, values: { dbLength: "32" } }])) : o.key === "dbIsPersist" ? a("syncDbIsPersist", { row: l, value: n, target: d }) : o.key === "dbIsNull" && a("syncDbIsNull", { row: l, value: n, target: d });
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
410
|
+
function V(t, i, l) {
|
|
411
|
+
var o;
|
|
412
|
+
if (t === "has_child")
|
|
413
|
+
return !0;
|
|
414
|
+
if (t === "id") {
|
|
415
|
+
const { tables: n } = I, r = ((o = n.dbTable.value.tableRef.getTableData()) != null ? o : []).findIndex((T) => T.dbFieldName === "id");
|
|
416
|
+
if ((r === -1 ? 0 : r) === l)
|
|
417
|
+
return !0;
|
|
418
|
+
}
|
|
419
|
+
return !1;
|
|
415
420
|
}
|
|
416
421
|
function P(t) {
|
|
417
|
-
|
|
422
|
+
A.value.pushRows(t), R.value || a("added", d);
|
|
418
423
|
}
|
|
419
|
-
function H() {
|
|
420
|
-
|
|
424
|
+
function H(t) {
|
|
425
|
+
return A.value.removeRowsById(t);
|
|
421
426
|
}
|
|
422
427
|
function G() {
|
|
423
|
-
|
|
428
|
+
R.value = !0, L.value = !0;
|
|
429
|
+
}
|
|
430
|
+
function w() {
|
|
431
|
+
R.value = !1, L.value = !1, a("added", d);
|
|
424
432
|
}
|
|
425
|
-
function
|
|
426
|
-
const { tables:
|
|
427
|
-
if (
|
|
428
|
-
let
|
|
429
|
-
(!
|
|
430
|
-
let
|
|
431
|
-
|
|
432
|
-
let
|
|
433
|
-
for (let
|
|
434
|
-
|
|
433
|
+
function O({ cellValue: t, row: i }, l) {
|
|
434
|
+
const { tables: o } = I;
|
|
435
|
+
if (o) {
|
|
436
|
+
let u = o.dbTable.value.tableRef.dataSource.filter((T) => T.id === i.id);
|
|
437
|
+
(!u || u.length <= 0) && l(!0);
|
|
438
|
+
let r = u[0].dbFieldName;
|
|
439
|
+
r == t && l(!0);
|
|
440
|
+
let C = o.idxTable.value.tableRef.getTableData();
|
|
441
|
+
for (let T of C)
|
|
442
|
+
T.indexField.split(",").indexOf(r) >= 0 && l(!1, "当前字段存在索引配置,请先删除索引再修改字段");
|
|
435
443
|
}
|
|
436
444
|
l(!0);
|
|
437
445
|
}
|
|
438
|
-
function
|
|
446
|
+
function x({ cellValue: t, row: i }, l) {
|
|
439
447
|
i.dbType == "int" && i.dbPointLength > 0 && l(!1, "设置了小数点不可设置integer类型"), l(!0);
|
|
440
448
|
}
|
|
441
449
|
return {
|
|
442
|
-
tableRef:
|
|
443
|
-
loading:
|
|
444
|
-
columns:
|
|
445
|
-
dataSource:
|
|
446
|
-
setDataSource:
|
|
447
|
-
addBatchBegin:
|
|
448
|
-
addBatchEnd:
|
|
449
|
-
tableAddLine:
|
|
450
|
-
tableHeight:
|
|
450
|
+
tableRef: A,
|
|
451
|
+
loading: L,
|
|
452
|
+
columns: N,
|
|
453
|
+
dataSource: g,
|
|
454
|
+
setDataSource: p,
|
|
455
|
+
addBatchBegin: G,
|
|
456
|
+
addBatchEnd: w,
|
|
457
|
+
tableAddLine: P,
|
|
458
|
+
tableHeight: m,
|
|
451
459
|
tableProps: h,
|
|
452
|
-
tableDeleteLines:
|
|
453
|
-
handleAdded:
|
|
454
|
-
handleRemoved:
|
|
455
|
-
handleDragged:
|
|
456
|
-
handleInserted:
|
|
457
|
-
handleValueChange:
|
|
458
|
-
handleDisabledDbFieldName:
|
|
459
|
-
validateData:
|
|
460
|
-
getRemoveIds:
|
|
461
|
-
validateExistIndex:
|
|
460
|
+
tableDeleteLines: H,
|
|
461
|
+
handleAdded: U,
|
|
462
|
+
handleRemoved: B,
|
|
463
|
+
handleDragged: _,
|
|
464
|
+
handleInserted: M,
|
|
465
|
+
handleValueChange: F,
|
|
466
|
+
handleDisabledDbFieldName: V,
|
|
467
|
+
validateData: y,
|
|
468
|
+
getRemoveIds: v,
|
|
469
|
+
validateExistIndex: O
|
|
462
470
|
};
|
|
463
471
|
}
|
|
464
472
|
});
|
|
465
|
-
function de(e, a, d,
|
|
466
|
-
const
|
|
467
|
-
return J(), Z(
|
|
473
|
+
function de(e, a, d, R, N, s) {
|
|
474
|
+
const I = q("JVxeTable");
|
|
475
|
+
return J(), Z(I, z({
|
|
468
476
|
class: "dBAttributeTable",
|
|
469
477
|
ref: "tableRef",
|
|
470
478
|
rowNumber: "",
|
|
@@ -488,7 +496,7 @@ function de(e, a, d, I, R, u) {
|
|
|
488
496
|
onValueChange: e.handleValueChange
|
|
489
497
|
}), null, 16, ["loading", "columns", "dataSource", "toolbar", "maxHeight", "disabledRows", "onAdded", "onRemoved", "onDragged", "onInserted", "onValueChange"]);
|
|
490
498
|
}
|
|
491
|
-
const
|
|
499
|
+
const Se = /* @__PURE__ */ ee(ae, [["render", de], ["__scopeId", "data-v-7723c158"]]);
|
|
492
500
|
export {
|
|
493
|
-
|
|
501
|
+
Se as default
|
|
494
502
|
};
|