@jeecg/online 3.6.2-GA → 3.7.0-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.
- package/AiModal-fe3988fb.mjs +84 -0
- package/AuthButtonConfig-d50a0a65.mjs +134 -0
- package/{AuthButtonTree-c2602a7c.mjs → AuthButtonTree-589395ed.mjs} +2 -2
- package/AuthDataConfig-7bb0cd85.mjs +237 -0
- package/{AuthDataTree-9dc58b20.mjs → AuthDataTree-6e3bb86f.mjs} +1 -1
- package/AuthFieldConfig-490fc0ab.mjs +139 -0
- package/{AuthFieldTree-d836be59.mjs → AuthFieldTree-b7cd091e.mjs} +1 -1
- package/AuthManagerDrawer-5e2ed5ce.mjs +118 -0
- package/AuthSetterModal-6f74449c.mjs +273 -0
- package/{CgformCopyList-86157923.mjs → CgformCopyList-8077ccc6.mjs} +47 -45
- package/{CgformModal-5cf02d51.mjs → CgformModal-36faf29a.mjs} +256 -246
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs → CgreportModal-5a23d089.mjs} +140 -117
- package/CheckDictTable-b5cb0e2b.mjs +226 -0
- package/{CodeFileListModal-f747daae.mjs → CodeFileListModal-0e26b7e0.mjs} +2 -2
- package/{CodeFileViewModal-a9fb2900.mjs → CodeFileViewModal-9d4a5b5f.mjs} +36 -32
- package/CodeGeneratorModal-b722d976.mjs +238 -0
- package/{CustomButtonList-b9b27a93.mjs → CustomButtonList-37639061.mjs} +118 -100
- package/{DBAttributeTable-6bdcb1e8.mjs → DBAttributeTable-95dc66c1.mjs} +110 -89
- package/{DbToOnlineModal-3705e91a.mjs → DbToOnlineModal-f49b9530.mjs} +56 -50
- package/DetailForm-4aa2570b.mjs +485 -0
- package/{EnhanceJavaModal-c13de6e0.mjs → EnhanceJavaModal-98934198.mjs} +3 -3
- package/{EnhanceJsHistory-154101f0.mjs → EnhanceJsHistory-9c4acdaf.mjs} +2 -2
- package/EnhanceJsModal-247f640d.mjs +532 -0
- package/{EnhanceSqlModal-221c22dc.mjs → EnhanceSqlModal-65b74b0f.mjs} +3 -3
- package/ExtendConfigModal-00f2fb55.mjs +117 -0
- package/FieldExtendJsonModal-cc7fce26.mjs +277 -0
- package/{FileSelectModal-de40a706.mjs → FileSelectModal-38660e3c.mjs} +1 -1
- package/{ForeignKeyTable-22989042.mjs → ForeignKeyTable-a78cb5ad.mjs} +3 -3
- package/{IndexTable-833d34ff.mjs → IndexTable-1b496559.mjs} +10 -10
- package/{JModalTip-0413ad6a.mjs → JModalTip-4a83aaed.mjs} +1 -1
- package/{JOnlineSearchSelect-9ea89e13.mjs → JOnlineSearchSelect-34a37ec9.mjs} +1 -1
- package/{LeftDepart-b0a535c0.mjs → LeftDepart-8ade4bf7.mjs} +1 -1
- package/{LeftRole-22c90d6b.mjs → LeftRole-7d8c5acc.mjs} +1 -1
- package/{LeftUser-a44d63dd.mjs → LeftUser-b4d1372a.mjs} +3 -3
- package/LinkTableConfigModal-a138c85e.mjs +240 -0
- package/{LinkTableFieldConfigModal-06693eaa.mjs → LinkTableFieldConfigModal-17b413b0.mjs} +41 -41
- package/{LinkTableListPiece-46e8af51.mjs → LinkTableListPiece-2660d709.mjs} +1 -1
- package/{ModalFormDemo-d107fa87.mjs → ModalFormDemo-0544737d.mjs} +1 -1
- package/OnlCgformErpList-30e416c8.mjs +470 -0
- package/OnlCgformErpSubTable-9a876058.mjs +427 -0
- package/OnlCgformInnerSubTable-290ace5d.mjs +266 -0
- package/OnlCgformInnerTableList-f89b6687.mjs +458 -0
- package/OnlCgformTabList-7a2f2c03.mjs +408 -0
- package/OnlineAutoList-46c6c8b9.mjs +493 -0
- package/OnlineAutoModal-971bef13.mjs +236 -0
- package/{OnlineAutoTreeList-ec27d271.mjs → OnlineAutoTreeList-3b92454c.mjs} +206 -204
- package/{OnlineCustomModal-3e6792d3.mjs → OnlineCustomModal-594244f3.mjs} +15 -11
- package/{OnlineDetailModal-f40e37e1.mjs → OnlineDetailModal-2a271e0b.mjs} +74 -64
- package/OnlineForm-018981b2.mjs +924 -0
- package/OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs +1 -0
- package/OnlineFormDetail-e036cd11.mjs +342 -0
- package/OnlineFormUrlAdd-7fb3dcca.mjs +115 -0
- package/OnlineFormUrlDetail-b2292137.mjs +119 -0
- package/OnlineFormUrlEdit-44080fb3.mjs +113 -0
- package/OnlineFormUrlSuccess-af285b02.mjs +59 -0
- package/OnlineQueryForm-998c12a4.mjs +444 -0
- package/{OnlineSearchFormItem-fe308194.mjs → OnlineSearchFormItem-6feacae6.mjs} +2 -2
- package/{OnlineSelectCascade-abc345f9.mjs → OnlineSelectCascade-471fcc76.mjs} +1 -1
- package/{OnlineSubFormDetail-02326a8c.mjs → OnlineSubFormDetail-03f8ee5c.mjs} +29 -27
- package/OnlineTabAutoModal-7b9bcd0b.mjs +306 -0
- package/{OnlineTabDetailModal-d23bd4c9.mjs → OnlineTabDetailModal-88143301.mjs} +22 -20
- package/OnlineTabForm-9ad7d29a.mjs +805 -0
- package/OnlineTabFormDetail-bbf23caa.mjs +327 -0
- package/PageAttributeTable-6c23547b.mjs +446 -0
- package/{ProcessOnlineForm-84f4d02d.mjs → ProcessOnlineForm-b42198f5.mjs} +32 -28
- package/QueryTable-96b3dbd0.mjs +144 -0
- package/SetSwitchOptions-a452fa0f.mjs +62 -0
- package/SuperQuery-cbfba908.mjs +975 -0
- package/{auth.data-8be5c9e3.mjs → auth.data-22948e87.mjs} +56 -14
- package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
- package/constant-fa63bd66.mjs +10 -0
- package/{enhance.data-efc7e155.mjs → enhance.data-3304d553.mjs} +3 -3
- package/index-173949bb.mjs +57 -0
- package/{index-0a93652b.mjs → index-581bef24.mjs} +29 -27
- package/{index-e1bda35b.mjs → index-d2abb8a0.mjs} +394 -361
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-8755a94e.mjs +426 -0
- package/useExtendComponent-bb7cca20.mjs +4295 -0
- package/useFormUrl-2ee1a82d.mjs +24 -0
- package/useListButton-7ddb9a46.mjs +697 -0
- package/{useSchemas-0433a403.mjs → useSchemas-47e45edc.mjs} +167 -86
- package/{useTableSync-774c3774.mjs → useTableSync-f6089e8a.mjs} +1 -1
- package/AuthButtonConfig-f142147a.mjs +0 -125
- package/AuthDataConfig-8e5c7b0c.mjs +0 -212
- package/AuthFieldConfig-e9a45f94.mjs +0 -139
- package/AuthManagerDrawer-5b558c23.mjs +0 -114
- package/AuthSetterModal-0cc557cf.mjs +0 -267
- package/CgreportModal-2eb9c9e1.mjs +0 -13
- package/CheckDictTable-27102064.mjs +0 -211
- package/CodeGeneratorModal-3a0e9f0e.mjs +0 -233
- package/DetailForm-cdeb54e3.mjs +0 -462
- package/EnhanceJsModal-6158804c.mjs +0 -311
- package/ExtendConfigModal-0564ef83.mjs +0 -111
- package/FieldExtendJsonModal-40d961c1.mjs +0 -219
- package/LinkTableConfigModal-5edaa08d.mjs +0 -230
- package/OnlCgformErpList-4c51cdb3.mjs +0 -454
- package/OnlCgformErpSubTable-d7081b9f.mjs +0 -403
- package/OnlCgformInnerSubTable-4c3925bb.mjs +0 -253
- package/OnlCgformInnerTableList-1e5014fa.mjs +0 -444
- package/OnlCgformTabList-c59c7cc7.mjs +0 -395
- package/OnlineAutoList-a7a9de5d.mjs +0 -479
- package/OnlineAutoModal-a33f1a63.mjs +0 -207
- package/OnlineForm-fb3a2379.mjs +0 -750
- package/OnlineFormDetail-52b1c303.mjs +0 -297
- package/OnlineQueryForm-7c70734e.mjs +0 -386
- package/OnlineTabAutoModal-6d9da8b0.mjs +0 -254
- package/OnlineTabForm-29ca07f7.mjs +0 -766
- package/OnlineTabFormDetail-aa7e1144.mjs +0 -324
- package/PageAttributeTable-d82946c5.mjs +0 -404
- package/QueryTable-d4599fca.mjs +0 -115
- package/SuperQuery-07162778.mjs +0 -843
- package/constant-754f1a9d.mjs +0 -9
- package/index-73993b18.mjs +0 -56
- package/useCgformList-b135794d.mjs +0 -400
- package/useExtendComponent-f4e29152.mjs +0 -3926
- package/useListButton-4dd33e7a.mjs +0 -676
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
var P = Object.defineProperty, G = Object.defineProperties;
|
|
2
|
+
var I = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var F = Object.getOwnPropertySymbols;
|
|
4
|
+
var T = Object.prototype.hasOwnProperty, V = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var L = (t, a, n) => a in t ? P(t, a, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[a] = n, _ = (t, a) => {
|
|
6
|
+
for (var n in a || (a = {}))
|
|
7
|
+
T.call(a, n) && L(t, n, a[n]);
|
|
8
|
+
if (F)
|
|
9
|
+
for (var n of F(a))
|
|
10
|
+
V.call(a, n) && L(t, n, a[n]);
|
|
11
|
+
return t;
|
|
12
|
+
}, N = (t, a) => G(t, I(a));
|
|
13
|
+
var R = (t, a, n) => new Promise((f, i) => {
|
|
14
|
+
var l = (r) => {
|
|
15
|
+
try {
|
|
16
|
+
p(n.next(r));
|
|
17
|
+
} catch (c) {
|
|
18
|
+
i(c);
|
|
19
|
+
}
|
|
20
|
+
}, d = (r) => {
|
|
21
|
+
try {
|
|
22
|
+
p(n.throw(r));
|
|
23
|
+
} catch (c) {
|
|
24
|
+
i(c);
|
|
25
|
+
}
|
|
26
|
+
}, p = (r) => r.done ? f(r.value) : Promise.resolve(r.value).then(l, d);
|
|
27
|
+
p((n = n.apply(t, a)).next());
|
|
28
|
+
});
|
|
29
|
+
import { defineComponent as C, ref as m, reactive as j, toRaw as D, toRefs as K, resolveComponent as w, openBlock as $, createBlock as A, mergeProps as J, withCtx as y, createVNode as O } from "vue";
|
|
30
|
+
import { BasicModal as U, useModalInner as Y } from "/@/components/Modal";
|
|
31
|
+
import q from "./SetSwitchOptions-a452fa0f.mjs";
|
|
32
|
+
import { BasicForm as H, useForm as W } from "/@/components/Form/index";
|
|
33
|
+
import { pick as z } from "lodash-es";
|
|
34
|
+
import { L as x } from "./constant-fa63bd66.mjs";
|
|
35
|
+
import { isArray as Q } from "/@/utils/is";
|
|
36
|
+
import { _ as X } from "./index-173949bb.mjs";
|
|
37
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
38
|
+
import "/@/hooks/web/useMessage";
|
|
39
|
+
import "vue-router";
|
|
40
|
+
const Z = C({
|
|
41
|
+
name: "FieldExtendJsonModal",
|
|
42
|
+
components: {
|
|
43
|
+
BasicModal: U,
|
|
44
|
+
BasicForm: H,
|
|
45
|
+
SetSwitchOptions: q
|
|
46
|
+
},
|
|
47
|
+
emits: ["success", "register"],
|
|
48
|
+
setup(t, { emit: a }) {
|
|
49
|
+
const n = m(!1);
|
|
50
|
+
function f() {
|
|
51
|
+
i.uploadnum = 0, i.showLength = "", i.popupMulti = !0, i.multiSelect = !0, i.store = "", i.text = "", i.orderRule = "", i.validateError = "", i.labelLength = x;
|
|
52
|
+
}
|
|
53
|
+
const i = j({
|
|
54
|
+
uploadnum: 0,
|
|
55
|
+
showLength: "",
|
|
56
|
+
popupMulti: !0,
|
|
57
|
+
store: "",
|
|
58
|
+
text: "",
|
|
59
|
+
multiSelect: !0,
|
|
60
|
+
orderRule: "",
|
|
61
|
+
validateError: "",
|
|
62
|
+
labelLength: x
|
|
63
|
+
}), l = m(""), d = m(""), p = m("0"), r = m(""), c = [
|
|
64
|
+
{
|
|
65
|
+
label: "rowKey",
|
|
66
|
+
field: "rowKey",
|
|
67
|
+
component: "Input",
|
|
68
|
+
show: !1
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
label: "文件上传数量",
|
|
72
|
+
field: "uploadnum",
|
|
73
|
+
component: "InputNumber",
|
|
74
|
+
componentProps: {
|
|
75
|
+
style: {
|
|
76
|
+
width: "100%"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
ifShow: () => l.value === "file" || l.value === "image"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
label: "是否多选",
|
|
83
|
+
field: "popupMulti",
|
|
84
|
+
component: "RadioGroup",
|
|
85
|
+
defaultValue: !0,
|
|
86
|
+
componentProps: {
|
|
87
|
+
options: [
|
|
88
|
+
{ label: "否", value: !1 },
|
|
89
|
+
{ label: "是", value: !0 }
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
ifShow: () => l.value === "popup" || l.value === "popup_dict"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
label: "是否多选",
|
|
96
|
+
field: "multiSelect",
|
|
97
|
+
component: "RadioGroup",
|
|
98
|
+
defaultValue: !0,
|
|
99
|
+
componentProps: {
|
|
100
|
+
options: [
|
|
101
|
+
{ label: "否", value: !1 },
|
|
102
|
+
{ label: "是", value: !0 }
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
ifShow: () => l.value === "sel_user" || l.value === "sel_depart"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
label: "存储字段",
|
|
109
|
+
field: "store",
|
|
110
|
+
component: "Input",
|
|
111
|
+
ifShow: () => l.value === "sel_user" || l.value === "sel_depart"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
label: "展示字段",
|
|
115
|
+
field: "text",
|
|
116
|
+
component: "Input",
|
|
117
|
+
ifShow: () => l.value === "sel_user" || l.value === "sel_depart"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
label: "默认排序",
|
|
121
|
+
field: "orderRule",
|
|
122
|
+
component: "RadioGroup",
|
|
123
|
+
defaultValue: "",
|
|
124
|
+
componentProps: {
|
|
125
|
+
options: [
|
|
126
|
+
{ label: "降序", value: "desc" },
|
|
127
|
+
{ label: "升序", value: "asc" },
|
|
128
|
+
{ label: "不默认排序", value: "" }
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
ifShow: () => p.value === "1" || ["Datetime", "string", "Date", "int", "BigDecimal", "double"].includes(r.value)
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
label: "校验提示",
|
|
135
|
+
field: "validateError",
|
|
136
|
+
component: "Input",
|
|
137
|
+
componentProps: {
|
|
138
|
+
placeholder: "请输入校验提示文本"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
label: "查询label长度",
|
|
143
|
+
field: "labelLength",
|
|
144
|
+
component: "InputNumber",
|
|
145
|
+
componentProps: {
|
|
146
|
+
placeholder: "请输入label长度"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
label: "是否固定",
|
|
151
|
+
field: "isFixed",
|
|
152
|
+
component: "RadioGroup",
|
|
153
|
+
defaultValue: 0,
|
|
154
|
+
componentProps: {
|
|
155
|
+
options: [
|
|
156
|
+
{ label: "是", value: 1 },
|
|
157
|
+
{ label: "否", value: 0 }
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
// update-begin--author:liaozhiyang---date:20240105---for:【QQYUN-7499】多列风格富文本、markdown增加独占一行功能
|
|
162
|
+
{
|
|
163
|
+
label: "是否独占一行",
|
|
164
|
+
field: "isOneRow",
|
|
165
|
+
component: "RadioGroup",
|
|
166
|
+
defaultValue: !1,
|
|
167
|
+
componentProps: {
|
|
168
|
+
options: [
|
|
169
|
+
{ label: "否", value: !1 },
|
|
170
|
+
{ label: "是", value: !0 }
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
ifShow: () => l.value === "markdown" || l.value === "umeditor"
|
|
174
|
+
},
|
|
175
|
+
// update-end--author:liaozhiyang---date:20240105---for:【QQYUN-7499】多列风格富文本、markdown增加独占一行功能
|
|
176
|
+
// update-begin--author:liaozhiyang---date:20240430---for:【issues/6094】online 日期(年月日)控件增加年、年月,年周,年季度等格式
|
|
177
|
+
{
|
|
178
|
+
label: "日期格式",
|
|
179
|
+
field: "picker",
|
|
180
|
+
component: "RadioGroup",
|
|
181
|
+
defaultValue: "default",
|
|
182
|
+
componentProps: {
|
|
183
|
+
options: [
|
|
184
|
+
{ label: "年", value: "year" },
|
|
185
|
+
{ label: "年月", value: "month" },
|
|
186
|
+
{ label: "年周", value: "week" },
|
|
187
|
+
{ label: "年季度", value: "quarter" },
|
|
188
|
+
{ label: "年月日", value: "default" }
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
ifShow: () => l.value === "date"
|
|
192
|
+
},
|
|
193
|
+
// update-end--author:liaozhiyang---date:20240430---for:【issues/6094】online 日期(年月日)控件增加年、年月,年周,年季度等格式
|
|
194
|
+
// update-begin--author:liaozhiyang---date:20240308---for:【TV360X-25】扩展参数配置中增加开关是否选项配置
|
|
195
|
+
{
|
|
196
|
+
label: "开关值",
|
|
197
|
+
field: "switchOptions",
|
|
198
|
+
component: "Input",
|
|
199
|
+
slot: "switchOptions",
|
|
200
|
+
ifShow: () => l.value === "switch"
|
|
201
|
+
}
|
|
202
|
+
// update-end--author:liaozhiyang---date:20240308---for:【TV360X-25】扩展参数配置中增加开关是否选项配置
|
|
203
|
+
], [h, { validate: b, setFieldsValue: v, resetFields: B }] = W({
|
|
204
|
+
schemas: c,
|
|
205
|
+
showActionButtonGroup: !1,
|
|
206
|
+
labelAlign: "right",
|
|
207
|
+
labelWidth: 100
|
|
208
|
+
}), [M, { closeModal: k }] = Y((e) => R(this, null, function* () {
|
|
209
|
+
if (f(), e.jsonStr) {
|
|
210
|
+
let o = JSON.parse(e.jsonStr);
|
|
211
|
+
e.fieldShowType === "switch" && Q(o) && o.length == 2 && (i.switchOptions = o), Object.keys(o).map((u) => {
|
|
212
|
+
i[u] = o[u];
|
|
213
|
+
});
|
|
214
|
+
} else
|
|
215
|
+
e.fieldShowType === "switch" && (i.switchOptions = ["Y", "N"]);
|
|
216
|
+
l.value = e.fieldShowType, d.value = e.id, p.value = e.sortFlag, r.value = e.dbType;
|
|
217
|
+
let s = D(i);
|
|
218
|
+
yield B(), yield v(N(_({}, s), {
|
|
219
|
+
rowKey: e.id
|
|
220
|
+
}));
|
|
221
|
+
}));
|
|
222
|
+
function E() {
|
|
223
|
+
return R(this, null, function* () {
|
|
224
|
+
let e = yield b(), s = l.value, o = {};
|
|
225
|
+
if (s === "file" || s === "image" ? e.uploadnum && e.uploadnum > 0 && (o.uploadnum = e.uploadnum) : s === "textarea" || s === "text" ? e.showLength && e.showLength > 0 && (o.showLength = e.showLength) : s === "sel_user" || s === "sel_depart" ? o = z(e, "store", "text", "multiSelect") : (s === "popup" || s === "popup_dict") && (o.popupMulti = e.popupMulti), e.orderRule && (o.orderRule = e.orderRule), e.validateError && (o.validateError = e.validateError), e.labelLength && (o.labelLength = e.labelLength), e.isFixed && (o.isFixed = e.isFixed), e.isOneRow && (o.isOneRow = e.isOneRow), e.picker && (o.picker = e.picker), e.switchOptions) {
|
|
226
|
+
const u = e.switchOptions.split(",");
|
|
227
|
+
let g = Number(u[0]), S = Number(u[1]);
|
|
228
|
+
(Number.isNaN(g) || Number.isNaN(S)) && (g = u[0], S = u[1]), o.switchOptions = [g, S];
|
|
229
|
+
}
|
|
230
|
+
for (let u in o)
|
|
231
|
+
o[u] === "" && delete o[u];
|
|
232
|
+
a("success", o, e.rowKey), k();
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
return _({
|
|
236
|
+
spinningLoading: n,
|
|
237
|
+
registerModal: M,
|
|
238
|
+
registerForm: h,
|
|
239
|
+
fieldShowType: l,
|
|
240
|
+
rowKey: d,
|
|
241
|
+
handleSubmit: E
|
|
242
|
+
}, K(i));
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
function ee(t, a, n, f, i, l) {
|
|
246
|
+
const d = w("SetSwitchOptions"), p = w("BasicForm"), r = w("a-spin"), c = w("BasicModal");
|
|
247
|
+
return $(), A(c, J({ wrapClassName: "field-extend-config-modal" }, t.$attrs, {
|
|
248
|
+
title: "字段扩展配置项",
|
|
249
|
+
onRegister: t.registerModal,
|
|
250
|
+
keyboard: "",
|
|
251
|
+
canFullscreen: !1,
|
|
252
|
+
cancelText: "关闭",
|
|
253
|
+
onOk: t.handleSubmit
|
|
254
|
+
}), {
|
|
255
|
+
default: y(() => [
|
|
256
|
+
O(r, { spinning: t.spinningLoading }, {
|
|
257
|
+
default: y(() => [
|
|
258
|
+
O(p, { onRegister: t.registerForm }, {
|
|
259
|
+
switchOptions: y(({ model: h, field: b }) => [
|
|
260
|
+
O(d, {
|
|
261
|
+
value: h[b],
|
|
262
|
+
"onUpdate:value": (v) => h[b] = v
|
|
263
|
+
}, null, 8, ["value", "onUpdate:value"])
|
|
264
|
+
]),
|
|
265
|
+
_: 1
|
|
266
|
+
}, 8, ["onRegister"])
|
|
267
|
+
]),
|
|
268
|
+
_: 1
|
|
269
|
+
}, 8, ["spinning"])
|
|
270
|
+
]),
|
|
271
|
+
_: 1
|
|
272
|
+
}, 16, ["onRegister", "onOk"]);
|
|
273
|
+
}
|
|
274
|
+
const me = /* @__PURE__ */ X(Z, [["render", ee]]);
|
|
275
|
+
export {
|
|
276
|
+
me as default
|
|
277
|
+
};
|
|
@@ -17,7 +17,7 @@ var u = (e, d, o) => new Promise((n, a) => {
|
|
|
17
17
|
import { defineComponent as R, ref as f, resolveComponent as p, openBlock as h, createBlock as v, withCtx as m, createVNode as g, createElementVNode as k, createTextVNode as D, createCommentVNode as w } from "vue";
|
|
18
18
|
import { defHttp as y } from "/@/utils/http/axios";
|
|
19
19
|
import { BasicModal as B, useModalInner as b } from "/@/components/Modal";
|
|
20
|
-
import { _ as F } from "./index-
|
|
20
|
+
import { _ as F } from "./index-173949bb.mjs";
|
|
21
21
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
22
22
|
import "/@/hooks/web/useMessage";
|
|
23
23
|
import "vue-router";
|
|
@@ -12,9 +12,9 @@ var i = (e, t, o) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
}, n = (e, t) => m(e, s(t));
|
|
13
13
|
import { defineComponent as b, ref as f, resolveComponent as y, openBlock as h, createBlock as g, mergeProps as T } from "vue";
|
|
14
14
|
import { JVxeTypes as l } from "/@/components/jeecg/JVxeTable/types";
|
|
15
|
-
import { u as k } from "./useTableSync-
|
|
16
|
-
import { _ as w } from "./index-
|
|
17
|
-
import "./cgform.data-
|
|
15
|
+
import { u as k } from "./useTableSync-f6089e8a.mjs";
|
|
16
|
+
import { _ as w } from "./index-173949bb.mjs";
|
|
17
|
+
import "./cgform.data-475d4984.mjs";
|
|
18
18
|
import "/@/utils/dict";
|
|
19
19
|
import "/@/utils/dict/JDictSelectUtil";
|
|
20
20
|
import "/@/utils/uuid";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as f, ref as b, resolveComponent as g, openBlock as h, createBlock as y, mergeProps as
|
|
1
|
+
import { defineComponent as f, ref as b, resolveComponent as g, openBlock as h, createBlock as y, mergeProps as T } from "vue";
|
|
2
2
|
import { JVxeTypes as a } from "/@/components/jeecg/JVxeTable/types";
|
|
3
|
-
import { u as
|
|
4
|
-
import { _ as v } from "./index-
|
|
5
|
-
import "./cgform.data-
|
|
3
|
+
import { u as $ } from "./useTableSync-f6089e8a.mjs";
|
|
4
|
+
import { _ as v } from "./index-173949bb.mjs";
|
|
5
|
+
import "./cgform.data-475d4984.mjs";
|
|
6
6
|
import "/@/utils/dict";
|
|
7
7
|
import "/@/utils/dict/JDictSelectUtil";
|
|
8
8
|
import "/@/utils/uuid";
|
|
@@ -10,7 +10,7 @@ import "lodash-es";
|
|
|
10
10
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
11
11
|
import "/@/hooks/web/useMessage";
|
|
12
12
|
import "vue-router";
|
|
13
|
-
const
|
|
13
|
+
const x = f({
|
|
14
14
|
name: "IndexTable",
|
|
15
15
|
components: {},
|
|
16
16
|
props: {
|
|
@@ -54,12 +54,12 @@ const S = f({
|
|
|
54
54
|
placeholder: "请选择${title}",
|
|
55
55
|
validateRules: [{ required: !0, message: "请选择${title}" }]
|
|
56
56
|
}
|
|
57
|
-
]), l =
|
|
57
|
+
]), l = $(e), { tableRef: r, loading: i, dataSource: n, tableHeight: u, tableProps: t, setDataSource: s, validateData: p } = l;
|
|
58
58
|
function m(c) {
|
|
59
59
|
let d = [];
|
|
60
60
|
c.value.tableRef.getTableData().forEach((o) => {
|
|
61
61
|
o.dbFieldName && d.push({
|
|
62
|
-
title: o.
|
|
62
|
+
title: o.dbFieldTxt,
|
|
63
63
|
value: o.dbFieldName
|
|
64
64
|
});
|
|
65
65
|
}), e.value[1].options = d;
|
|
@@ -67,9 +67,9 @@ const S = f({
|
|
|
67
67
|
return { tableRef: r, loading: i, dataSource: n, columns: e, tableHeight: u, tableProps: t, syncTable: m, setDataSource: s, validateData: p };
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
|
-
function
|
|
70
|
+
function S(e, l, r, i, n, u) {
|
|
71
71
|
const t = g("JVxeTable");
|
|
72
|
-
return h(), y(t,
|
|
72
|
+
return h(), y(t, T({
|
|
73
73
|
ref: "tableRef",
|
|
74
74
|
rowNumber: "",
|
|
75
75
|
rowSelection: "",
|
|
@@ -83,7 +83,7 @@ function x(e, l, r, i, n, u) {
|
|
|
83
83
|
toolbar: e.actionButton
|
|
84
84
|
}, e.tableProps), null, 16, ["maxHeight", "loading", "columns", "dataSource", "toolbar"]);
|
|
85
85
|
}
|
|
86
|
-
const C = /* @__PURE__ */ v(
|
|
86
|
+
const C = /* @__PURE__ */ v(x, [["render", S]]);
|
|
87
87
|
export {
|
|
88
88
|
C as default
|
|
89
89
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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
2
|
import { useAppInject as m } from "/@/hooks/web/useAppInject";
|
|
3
|
-
import { _ as v } from "./index-
|
|
3
|
+
import { _ as v } from "./index-173949bb.mjs";
|
|
4
4
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
5
5
|
import "/@/hooks/web/useMessage";
|
|
6
6
|
import "vue-router";
|
|
@@ -2,7 +2,7 @@ import { useDebounceFn as v } from "@vueuse/core";
|
|
|
2
2
|
import { defHttp as S } from "/@/utils/http/axios";
|
|
3
3
|
import { useMessage as w } from "/@/hooks/web/useMessage";
|
|
4
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-
|
|
5
|
+
import { _ as B } from "./index-173949bb.mjs";
|
|
6
6
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
7
7
|
import "vue-router";
|
|
8
8
|
const { createMessage: I } = w(), q = {
|
|
@@ -16,7 +16,7 @@ var f = (n, r, o) => new Promise((s, c) => {
|
|
|
16
16
|
});
|
|
17
17
|
import { defineComponent as h, ref as u, resolveComponent as m, openBlock as y, createElementBlock as K, createBlock as _, withCtx as D, createVNode as v, normalizeStyle as S, createCommentVNode as k } from "vue";
|
|
18
18
|
import { queryTreeList as x } from "/@/api/common/api";
|
|
19
|
-
import { _ as C } from "./index-
|
|
19
|
+
import { _ as C } from "./index-173949bb.mjs";
|
|
20
20
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
21
21
|
import "/@/hooks/web/useMessage";
|
|
22
22
|
import "vue-router";
|
|
@@ -18,7 +18,7 @@ import { defineComponent as g, resolveComponent as _, openBlock as w, createBloc
|
|
|
18
18
|
import { defHttp as h } from "/@/utils/http/axios";
|
|
19
19
|
import { BasicTable as C } from "/@/components/Table";
|
|
20
20
|
import { useListPage as R } from "/@/hooks/system/useListPage";
|
|
21
|
-
import { _ as x } from "./index-
|
|
21
|
+
import { _ as x } from "./index-173949bb.mjs";
|
|
22
22
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
23
23
|
import "/@/hooks/web/useMessage";
|
|
24
24
|
import "vue-router";
|
|
@@ -18,7 +18,7 @@ import { defineComponent as g, resolveComponent as w, openBlock as _, createBloc
|
|
|
18
18
|
import { defHttp as T } from "/@/utils/http/axios";
|
|
19
19
|
import { BasicTable as C } from "/@/components/Table";
|
|
20
20
|
import { useListPage as x } from "/@/hooks/system/useListPage";
|
|
21
|
-
import { _ as B } from "./index-
|
|
21
|
+
import { _ as B } from "./index-173949bb.mjs";
|
|
22
22
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
23
23
|
import "/@/hooks/web/useMessage";
|
|
24
24
|
import "vue-router";
|
|
@@ -50,7 +50,7 @@ const R = g({
|
|
|
50
50
|
field: "username",
|
|
51
51
|
component: "JInput",
|
|
52
52
|
componentProps: {
|
|
53
|
-
placeholder: "
|
|
53
|
+
placeholder: "输入账号"
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
{
|
|
@@ -58,7 +58,7 @@ const R = g({
|
|
|
58
58
|
field: "realname",
|
|
59
59
|
component: "JInput",
|
|
60
60
|
componentProps: {
|
|
61
|
-
placeholder: "
|
|
61
|
+
placeholder: "输入姓名"
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
]
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
var R = Object.defineProperty;
|
|
2
|
+
var C = Object.getOwnPropertySymbols;
|
|
3
|
+
var J = Object.prototype.hasOwnProperty, q = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var S = (i, a, l) => a in i ? R(i, a, { enumerable: !0, configurable: !0, writable: !0, value: l }) : i[a] = l, T = (i, a) => {
|
|
5
|
+
for (var l in a || (a = {}))
|
|
6
|
+
J.call(a, l) && S(i, l, a[l]);
|
|
7
|
+
if (C)
|
|
8
|
+
for (var l of C(a))
|
|
9
|
+
q.call(a, l) && S(i, l, a[l]);
|
|
10
|
+
return i;
|
|
11
|
+
};
|
|
12
|
+
var u = (i, a, l) => new Promise((s, f) => {
|
|
13
|
+
var n = (o) => {
|
|
14
|
+
try {
|
|
15
|
+
d(l.next(o));
|
|
16
|
+
} catch (c) {
|
|
17
|
+
f(c);
|
|
18
|
+
}
|
|
19
|
+
}, h = (o) => {
|
|
20
|
+
try {
|
|
21
|
+
d(l.throw(o));
|
|
22
|
+
} catch (c) {
|
|
23
|
+
f(c);
|
|
24
|
+
}
|
|
25
|
+
}, d = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(n, h);
|
|
26
|
+
d((l = l.apply(i, a)).next());
|
|
27
|
+
});
|
|
28
|
+
import { BasicModal as A, useModalInner as G } from "/@/components/Modal";
|
|
29
|
+
import { ref as b, computed as H, resolveComponent as _, openBlock as K, createBlock as $, mergeProps as j, withCtx as k, createVNode as M } from "vue";
|
|
30
|
+
import { BasicForm as z, useForm as D } from "/@/components/Form/index";
|
|
31
|
+
import { defHttp as E } from "/@/utils/http/axios";
|
|
32
|
+
import { omit as Q } from "lodash-es";
|
|
33
|
+
import { useMessage as U } from "/@/hooks/web/useMessage";
|
|
34
|
+
import { _ as W } from "./index-173949bb.mjs";
|
|
35
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
36
|
+
import "vue-router";
|
|
37
|
+
const X = {
|
|
38
|
+
name: "LinkTableConfigModal",
|
|
39
|
+
emits: ["success", "register"],
|
|
40
|
+
components: {
|
|
41
|
+
BasicModal: A,
|
|
42
|
+
BasicForm: z
|
|
43
|
+
},
|
|
44
|
+
setup(i, { emit: a }) {
|
|
45
|
+
const l = b(!1), { createMessage: s } = U(), f = b("");
|
|
46
|
+
let n = {};
|
|
47
|
+
const [h, { closeModal: d }] = G((e) => u(this, null, function* () {
|
|
48
|
+
n = T({}, e.record), yield w({ dictTable: e.record.dictTable }), setTimeout(() => u(this, null, function* () {
|
|
49
|
+
let r = Q(e.record, "dictTable");
|
|
50
|
+
yield w(r), yield I();
|
|
51
|
+
}), 200), f.value = e.fieldName;
|
|
52
|
+
})), o = b(""), c = b(""), F = b([]), v = b([]);
|
|
53
|
+
function x(e) {
|
|
54
|
+
return u(this, null, function* () {
|
|
55
|
+
if (e) {
|
|
56
|
+
const r = "/online/cgform/field/listByHeadCode", m = yield E.get({ url: r, params: { headCode: e } });
|
|
57
|
+
if (m && m.length > 0) {
|
|
58
|
+
let p = m.filter((t) => t.dbFieldName != "id" && t.dbIsPersist == 1 && t.isShowList == 1);
|
|
59
|
+
p.length > 0 ? F.value = p.map((t) => ({
|
|
60
|
+
text: t.dbFieldTxt,
|
|
61
|
+
value: t.dbFieldName
|
|
62
|
+
})) : F.value = [];
|
|
63
|
+
let g = m.filter((t) => t.dbFieldName != "id" && t.fieldShowType == "image" && t.dbIsPersist == 1);
|
|
64
|
+
g.length > 0 ? v.value = g.map((t) => ({
|
|
65
|
+
text: t.dbFieldTxt,
|
|
66
|
+
value: t.dbFieldName
|
|
67
|
+
})) : v.value = [{ text: "无图片字段可以选择", value: "", key: "", disabled: !0 }];
|
|
68
|
+
} else
|
|
69
|
+
F.value = [], v.value = [{ text: "无图片字段可以选择", value: "", key: "", disabled: !0 }];
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function N(e) {
|
|
74
|
+
return u(this, null, function* () {
|
|
75
|
+
o.value = "", c.value = "", yield x(e);
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
const V = H(() => {
|
|
79
|
+
let e = F.value, r = o.value, m = c.value;
|
|
80
|
+
return e.filter((p) => p.value != r && p.value != m);
|
|
81
|
+
}), B = [
|
|
82
|
+
{
|
|
83
|
+
label: "rowKey",
|
|
84
|
+
field: "rowKey",
|
|
85
|
+
component: "Input",
|
|
86
|
+
show: !1
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
label: "dictField",
|
|
90
|
+
field: "dictField",
|
|
91
|
+
component: "Input",
|
|
92
|
+
defaultValue: "id",
|
|
93
|
+
show: !1
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
label: "字段描述",
|
|
97
|
+
field: "dbFieldTxt",
|
|
98
|
+
component: "Input",
|
|
99
|
+
required: !0
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
label: "关联表",
|
|
103
|
+
field: "dictTable",
|
|
104
|
+
component: "JSearchSelect",
|
|
105
|
+
required: !0,
|
|
106
|
+
componentProps: ({ formActionType: e }) => ({
|
|
107
|
+
dict: "onl_cgform_head where copy_type = 0,table_txt,table_name",
|
|
108
|
+
pageSize: 10,
|
|
109
|
+
async: !0,
|
|
110
|
+
immediateChange: !0,
|
|
111
|
+
popContainer: ".link-table-config-modal",
|
|
112
|
+
params: { order: "desc", column: "create_time" },
|
|
113
|
+
onChange: (r) => u(this, null, function* () {
|
|
114
|
+
(n.titleField || n.otherFields) && (yield e.setFieldsValue({
|
|
115
|
+
titleField: "",
|
|
116
|
+
otherFields: "",
|
|
117
|
+
imageField: ""
|
|
118
|
+
}), yield e.clearValidate()), yield N(r);
|
|
119
|
+
})
|
|
120
|
+
})
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
label: "标题字段",
|
|
124
|
+
field: "titleField",
|
|
125
|
+
component: "JSearchSelect",
|
|
126
|
+
required: !0,
|
|
127
|
+
componentProps: {
|
|
128
|
+
async: !1,
|
|
129
|
+
popContainer: ".link-table-config-modal",
|
|
130
|
+
dictOptions: F,
|
|
131
|
+
immediateChange: !0,
|
|
132
|
+
onChange: (e) => {
|
|
133
|
+
o.value = e, n.titleField = e;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
label: "封面图片",
|
|
139
|
+
field: "imageField",
|
|
140
|
+
component: "JSearchSelect",
|
|
141
|
+
componentProps: {
|
|
142
|
+
async: !1,
|
|
143
|
+
popContainer: ".link-table-config-modal",
|
|
144
|
+
dictOptions: v,
|
|
145
|
+
immediateChange: !0,
|
|
146
|
+
onChange: (e) => {
|
|
147
|
+
c.value = e, n.imageFieldName = e;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
label: "其他字段",
|
|
153
|
+
field: "otherFields",
|
|
154
|
+
component: "JSelectMultiple",
|
|
155
|
+
// update-begin--author:liaozhiyang---date:20240320---for:【QQYUN-8574】关联记录最多选6个字段
|
|
156
|
+
componentProps: ({ schema: e, tableAction: r, formActionType: m, formModel: p }) => ({
|
|
157
|
+
popContainer: ".link-table-config-modal",
|
|
158
|
+
options: V.value,
|
|
159
|
+
onChange: (g) => {
|
|
160
|
+
if (g.split(",").length > 6) {
|
|
161
|
+
const t = g.split(",");
|
|
162
|
+
t.pop();
|
|
163
|
+
const y = t.join(",");
|
|
164
|
+
setTimeout(() => {
|
|
165
|
+
p.otherFields = y, n.otherFields = y;
|
|
166
|
+
}, 0), s.warning("最多选择6个字段~");
|
|
167
|
+
} else
|
|
168
|
+
n.otherFields = g;
|
|
169
|
+
}
|
|
170
|
+
})
|
|
171
|
+
// update-end--author:liaozhiyang---date:20240320---for:【QQYUN-8574】关联记录最多选6个字段
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
label: "显示方式",
|
|
175
|
+
field: "showType",
|
|
176
|
+
component: "Select",
|
|
177
|
+
defaultValue: "card",
|
|
178
|
+
componentProps: {
|
|
179
|
+
options: [
|
|
180
|
+
{ label: "卡片", value: "card" },
|
|
181
|
+
{ label: "下拉框", value: "select" }
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
label: "是否多选",
|
|
187
|
+
field: "multiSelect",
|
|
188
|
+
component: "RadioGroup",
|
|
189
|
+
defaultValue: !1,
|
|
190
|
+
componentProps: {
|
|
191
|
+
options: [
|
|
192
|
+
{ label: "否", value: !1 },
|
|
193
|
+
{ label: "是", value: !0 }
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
], [P, { validate: O, setFieldsValue: w, clearValidate: I, resetFields: Z }] = D({
|
|
198
|
+
schemas: B,
|
|
199
|
+
showActionButtonGroup: !1,
|
|
200
|
+
labelAlign: "right"
|
|
201
|
+
});
|
|
202
|
+
function L() {
|
|
203
|
+
return u(this, null, function* () {
|
|
204
|
+
let e = yield O();
|
|
205
|
+
e.fieldName = f.value, a("success", e), d();
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
return {
|
|
209
|
+
registerModal: h,
|
|
210
|
+
spinningLoading: l,
|
|
211
|
+
registerForm: P,
|
|
212
|
+
handleSubmit: L
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
function Y(i, a, l, s, f, n) {
|
|
217
|
+
const h = _("BasicForm"), d = _("a-spin"), o = _("BasicModal");
|
|
218
|
+
return K(), $(o, j({ wrapClassName: "link-table-config-modal" }, i.$attrs, {
|
|
219
|
+
title: "关联记录配置",
|
|
220
|
+
onRegister: s.registerModal,
|
|
221
|
+
keyboard: "",
|
|
222
|
+
canFullscreen: !1,
|
|
223
|
+
cancelText: "关闭",
|
|
224
|
+
onOk: s.handleSubmit
|
|
225
|
+
}), {
|
|
226
|
+
default: k(() => [
|
|
227
|
+
M(d, { spinning: s.spinningLoading }, {
|
|
228
|
+
default: k(() => [
|
|
229
|
+
M(h, { onRegister: s.registerForm }, null, 8, ["onRegister"])
|
|
230
|
+
]),
|
|
231
|
+
_: 1
|
|
232
|
+
}, 8, ["spinning"])
|
|
233
|
+
]),
|
|
234
|
+
_: 1
|
|
235
|
+
}, 16, ["onRegister", "onOk"]);
|
|
236
|
+
}
|
|
237
|
+
const ce = /* @__PURE__ */ W(X, [["render", Y]]);
|
|
238
|
+
export {
|
|
239
|
+
ce as default
|
|
240
|
+
};
|