liyu-pc-base 1.0.796 → 1.0.799
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/dist/{FieldRender2-8M4uTXFI.js → FieldRender2-CmnQXsr1.js} +705 -459
- package/dist/FieldRender2-CmnQXsr1.js.map +1 -0
- package/dist/{FormRender3-DwciF_F4.js → FormRender3-Ben5Ul3Z.js} +1 -1
- package/dist/{FormRender3-DwciF_F4.js.map → FormRender3-Ben5Ul3Z.js.map} +1 -1
- package/dist/{SearchRender-ByIxdJ4H.js → SearchRender-DOIIuQp0.js} +1 -1
- package/dist/{SearchRender-ByIxdJ4H.js.map → SearchRender-DOIIuQp0.js.map} +1 -1
- package/dist/components/index.js +3 -3
- package/dist/index.js +1 -1
- package/dist/liyu-pc-base.css +1 -1
- package/package.json +1 -1
- package/dist/FieldRender2-8M4uTXFI.js.map +0 -1
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { t as n } from "./
|
|
4
|
-
import { t as r } from "./
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as y } from "./
|
|
15
|
-
import { t as b } from "./
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import {
|
|
25
|
-
import
|
|
1
|
+
import { N as e } from "./init-plugin-CvgtEpwY.js";
|
|
2
|
+
import { t } from "./RemoteSelect-C9PN5B3f.js";
|
|
3
|
+
import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
4
|
+
import { t as r } from "./RemoteCascader-CGdD6rUw.js";
|
|
5
|
+
import { t as i } from "./lodash-CC0qDxjV.js";
|
|
6
|
+
import { getApiData as a } from "./api/api-model.js";
|
|
7
|
+
import { N as o, P as s, k as c, n as l, s as u } from "./function-BPdgB84k.js";
|
|
8
|
+
import { i as d, t as f } from "./RemoteModal-LBD1h5AF.js";
|
|
9
|
+
import { n as p, r as m, t as h } from "./RemoteSelectPro-BZKHySkV.js";
|
|
10
|
+
import { t as g } from "./RemoteFilterSelect-BCv2zIHS.js";
|
|
11
|
+
import { t as _ } from "./AttributeNomTable-HiLsOuv9.js";
|
|
12
|
+
import { t as v } from "./AttributeTable-BeZnyj9P.js";
|
|
13
|
+
import { t as ee } from "./JsonStr-Bx2WI6jK.js";
|
|
14
|
+
import { t as y } from "./JsonObj-DIlhMCbj.js";
|
|
15
|
+
import { t as b } from "./RemoteText-BVqSMfSl.js";
|
|
16
|
+
import { t as x } from "./modal-tools-CrXdI5sg.js";
|
|
17
|
+
import { resolveContextValue as S } from "./components/FormRender/utils.js";
|
|
18
|
+
import { exportJsonToExcelByTokenHeader as te } from "./utils/excel.js";
|
|
19
|
+
import { a as ne, c as re, d as C, f as w, i as ie, l as ae, n as oe, o as T, r as se, s as E, t as ce, u as D } from "./TinymceEditor-VlIMhy_4.js";
|
|
20
|
+
import { Fragment as O, computed as k, createBlock as A, createCommentVNode as j, createElementBlock as M, createElementVNode as N, createSlots as P, createTextVNode as F, createVNode as I, defineAsyncComponent as le, defineComponent as L, h as ue, mergeModels as de, mergeProps as fe, normalizeClass as pe, normalizeStyle as me, onMounted as R, onUnmounted as z, openBlock as B, reactive as V, ref as H, renderList as U, renderSlot as he, resolveComponent as W, resolveDynamicComponent as G, toDisplayString as K, unref as ge, useModel as _e, vShow as ve, watch as q, withCtx as J, withDirectives as ye } from "vue";
|
|
21
|
+
import { Modal as be, message as xe } from "ant-design-vue";
|
|
22
|
+
import { debounce as Se, isArray as Ce } from "lodash-es";
|
|
23
|
+
import Y from "moment";
|
|
24
|
+
import { ExclamationCircleOutlined as we, PlusOutlined as Te } from "@ant-design/icons-vue";
|
|
25
|
+
import { useI18n as Ee } from "vue-i18n";
|
|
26
|
+
import De from "mitt";
|
|
26
27
|
//#region src/components/FormRender/FormTemplate/FormItem.vue?vue&type=script&lang.ts
|
|
27
|
-
var
|
|
28
|
+
var Oe = L({
|
|
28
29
|
name: "FormTemplate",
|
|
29
30
|
components: {},
|
|
30
31
|
props: {
|
|
@@ -82,29 +83,29 @@ var we = z({
|
|
|
82
83
|
},
|
|
83
84
|
emits: ["update:value", "remove"],
|
|
84
85
|
setup(e, { emit: t }) {
|
|
85
|
-
let n =
|
|
86
|
+
let n = V({ ...e.field.form.rules }), r = H({}), i = le(() => import("./FormRender3-Ben5Ul3Z.js").then((e) => e.n)), a, o = () => {
|
|
86
87
|
let e = /* @__PURE__ */ new Uint8Array(16);
|
|
87
88
|
return window.crypto.getRandomValues(e), Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
88
|
-
}, s =
|
|
89
|
+
}, s = H([]), c = o(), l = ([t, i]) => {
|
|
89
90
|
let o = {};
|
|
90
91
|
Object.keys(n).forEach((e) => {
|
|
91
92
|
e in t && !i[e] && (o[e] = n[e]);
|
|
92
93
|
});
|
|
93
|
-
let s =
|
|
94
|
+
let s = d(t, o);
|
|
94
95
|
a = s.validate, r.value = s.validateInfos, e.nestValidate && (e.nestValidate[c] = a);
|
|
95
96
|
};
|
|
96
|
-
return
|
|
97
|
-
|
|
97
|
+
return q(() => e.value, (e) => {
|
|
98
|
+
l([e, s.value]);
|
|
98
99
|
}, {
|
|
99
100
|
deep: !0,
|
|
100
101
|
immediate: !0
|
|
101
|
-
}),
|
|
102
|
+
}), R(() => {}), z(() => {
|
|
102
103
|
e.nestValidate && delete e.nestValidate[c];
|
|
103
104
|
}), {
|
|
104
105
|
FormRender3Async: i,
|
|
105
106
|
validateInfos: r,
|
|
106
107
|
onUpdateModel: async (t) => {
|
|
107
|
-
t.add_key ? (delete s.value[t.add_key],
|
|
108
|
+
t.add_key ? (delete s.value[t.add_key], l([e.value, s.value])) : t.remove_key && (s.value[t.remove_key] = !0, l([e.value, s.value]));
|
|
108
109
|
},
|
|
109
110
|
removeFormItem: () => {
|
|
110
111
|
e.nestValidate && delete e.nestValidate[c], t("remove");
|
|
@@ -114,13 +115,13 @@ var we = z({
|
|
|
114
115
|
data() {
|
|
115
116
|
return { model: this.value };
|
|
116
117
|
}
|
|
117
|
-
}),
|
|
118
|
+
}), ke = { class: "form-wrap" }, Ae = { class: "form-content" }, je = {
|
|
118
119
|
key: 0,
|
|
119
120
|
class: "form-action"
|
|
120
121
|
};
|
|
121
|
-
function
|
|
122
|
-
let o =
|
|
123
|
-
return
|
|
122
|
+
function Me(e, t, n, r, i, a) {
|
|
123
|
+
let o = W("DeleteOutlined"), s = W("a-button");
|
|
124
|
+
return B(), M("div", ke, [N("div", Ae, [(B(), A(G(e.FormRender3Async), {
|
|
124
125
|
form: e.field.form,
|
|
125
126
|
model: e.value,
|
|
126
127
|
"onUpdate:model": t[0] ||= (t) => e.value = t,
|
|
@@ -151,18 +152,18 @@ function Oe(e, t, n, r, i, a) {
|
|
|
151
152
|
"modalType",
|
|
152
153
|
"base-key-path",
|
|
153
154
|
"worker-host-functions"
|
|
154
|
-
]))]), e.field.max_count === e.min_count ?
|
|
155
|
+
]))]), e.field.max_count === e.min_count ? j("", !0) : (B(), M("div", je, [I(s, {
|
|
155
156
|
onClick: e.removeFormItem,
|
|
156
157
|
size: "small",
|
|
157
158
|
type: "link",
|
|
158
159
|
danger: "",
|
|
159
160
|
disabled: e.listLength <= e.min_count
|
|
160
161
|
}, {
|
|
161
|
-
icon:
|
|
162
|
+
icon: J(() => [I(o)]),
|
|
162
163
|
_: 1
|
|
163
164
|
}, 8, ["onClick", "disabled"])]))]);
|
|
164
165
|
}
|
|
165
|
-
var
|
|
166
|
+
var Ne = /*#__PURE__*/ n(Oe, [["render", Me], ["__scopeId", "data-v-d6626b20"]]), Pe = { key: 1 }, Fe = /*#__PURE__*/ n(/* @__PURE__ */ L({
|
|
166
167
|
__name: "TableCell",
|
|
167
168
|
props: {
|
|
168
169
|
field: {
|
|
@@ -210,22 +211,22 @@ var ke = /*#__PURE__*/ t(we, [["render", Oe], ["__scopeId", "data-v-d6626b20"]])
|
|
|
210
211
|
},
|
|
211
212
|
emits: ["update_model", "update_name2"],
|
|
212
213
|
setup(e, { emit: t }) {
|
|
213
|
-
let n = e, r = t, i =
|
|
214
|
+
let n = e, r = t, i = H(!0), a = (e) => {
|
|
214
215
|
r("update_model", e);
|
|
215
216
|
}, o = (e) => {
|
|
216
217
|
r("update_name2", e);
|
|
217
|
-
}, s =
|
|
218
|
+
}, s = k(() => i.value && !n.field.disabled && n.field.type !== "dynamicvaluefield");
|
|
218
219
|
return (t, n) => {
|
|
219
|
-
let r =
|
|
220
|
-
return
|
|
220
|
+
let r = W("a-form");
|
|
221
|
+
return B(), A(r, {
|
|
221
222
|
model: e.model,
|
|
222
223
|
layout: "inline",
|
|
223
224
|
class: "table-cell-form"
|
|
224
225
|
}, {
|
|
225
|
-
default:
|
|
226
|
+
default: J(() => [ye(N("div", { class: pe(["field-cell-item", {
|
|
226
227
|
editable: s.value,
|
|
227
228
|
"item-required": e.has_reqrired
|
|
228
|
-
}]) }, [e.field.type === "dynamicvaluefield" ? (
|
|
229
|
+
}]) }, [e.field.type === "dynamicvaluefield" ? (B(), M("span", Pe, K(e.model[e.field.name]), 1)) : (B(), A(Lt, {
|
|
229
230
|
is_show_label: !1,
|
|
230
231
|
value: e.model[e.field.name],
|
|
231
232
|
"onUpdate:value": n[0] ||= (t) => e.model[e.field.name] = t,
|
|
@@ -262,12 +263,12 @@ var ke = /*#__PURE__*/ t(we, [["render", Oe], ["__scopeId", "data-v-d6626b20"]])
|
|
|
262
263
|
"base-key-path",
|
|
263
264
|
"worker-host-functions",
|
|
264
265
|
"is_form_design"
|
|
265
|
-
]))], 2), [[
|
|
266
|
+
]))], 2), [[ve, i.value]])]),
|
|
266
267
|
_: 1
|
|
267
268
|
}, 8, ["model"]);
|
|
268
269
|
};
|
|
269
270
|
}
|
|
270
|
-
}), [["__scopeId", "data-v-00188241"]]),
|
|
271
|
+
}), [["__scopeId", "data-v-00188241"]]), Ie = { key: 0 }, Le = { key: 1 }, Re = /* @__PURE__ */ L({
|
|
271
272
|
__name: "TableSummary",
|
|
272
273
|
props: {
|
|
273
274
|
summaryParams: {
|
|
@@ -280,7 +281,7 @@ var ke = /*#__PURE__*/ t(we, [["render", Oe], ["__scopeId", "data-v-d6626b20"]])
|
|
|
280
281
|
}
|
|
281
282
|
},
|
|
282
283
|
setup(e) {
|
|
283
|
-
let t = e, n =
|
|
284
|
+
let t = e, n = k(() => {
|
|
284
285
|
let e = 0;
|
|
285
286
|
for (let n of t.tableDataSource) {
|
|
286
287
|
let r = n[t.summaryParams.column.dataIndex];
|
|
@@ -303,22 +304,204 @@ var ke = /*#__PURE__*/ t(we, [["render", Oe], ["__scopeId", "data-v-d6626b20"]])
|
|
|
303
304
|
return parseFloat((e + t).toFixed(n));
|
|
304
305
|
}
|
|
305
306
|
let o = (e, t) => (typeof t == "string" && (e.addonAfter && (t = r(t, e.addonAfter, "")), e.addonBefore && (t = i(t, e.addonBefore, "")), t = parseFloat(t)), t);
|
|
306
|
-
return (t, r) => (
|
|
307
|
-
e.summaryParams?.column?.field?.addonBefore ? (
|
|
308
|
-
|
|
309
|
-
e.summaryParams?.column?.field?.addonAfter ? (
|
|
307
|
+
return (t, r) => (B(), M(O, null, [
|
|
308
|
+
e.summaryParams?.column?.field?.addonBefore ? (B(), M("span", Ie, K(e.summaryParams.column.field.addonBefore), 1)) : j("", !0),
|
|
309
|
+
F(" " + K(n.value) + " ", 1),
|
|
310
|
+
e.summaryParams?.column?.field?.addonAfter ? (B(), M("span", Le, K(e.summaryParams.column.field.addonAfter), 1)) : j("", !0)
|
|
310
311
|
], 64));
|
|
311
312
|
}
|
|
312
|
-
}),
|
|
313
|
+
}), X = (e) => e.valueKey || "id", ze = (e) => e.labelKey || "name", Be = (e) => {
|
|
314
|
+
let t = [], n = e.labelKeyList || [];
|
|
315
|
+
return n.length > 0 && e.labelKeyType !== 1 ? t.push(X(e), ...n) : t.push(X(e), ze(e)), e.extendedFields && e.extendedFields.length > 0 && t.push(...e.extendedFields), [...new Set(t)];
|
|
316
|
+
}, Ve = (e) => {
|
|
317
|
+
let t = e.labelKeyList || [];
|
|
318
|
+
return t.length > 0 && e.labelKeyType !== 1 ? [...t] : [ze(e)];
|
|
319
|
+
}, Z = (e, t, n) => {
|
|
320
|
+
if (n.operator === "not_blank_not_null") t.push({
|
|
321
|
+
field_name: n.field_name,
|
|
322
|
+
operator: n.operator,
|
|
323
|
+
value: [],
|
|
324
|
+
format: n.format,
|
|
325
|
+
class_name: n.class_name
|
|
326
|
+
});
|
|
327
|
+
else if (e instanceof Array) {
|
|
328
|
+
let [r] = e;
|
|
329
|
+
s(r) && t.push({
|
|
330
|
+
field_name: n.field_name,
|
|
331
|
+
operator: n.operator,
|
|
332
|
+
value: l(e, n.class_name),
|
|
333
|
+
format: n.format,
|
|
334
|
+
class_name: n.class_name
|
|
335
|
+
});
|
|
336
|
+
} else if (s(e)) {
|
|
337
|
+
let r = e;
|
|
338
|
+
(n.operator === "in" || n.operator === "notin") && (e.includes("[") ? r = JSON.parse(e) : e.includes(",") && (r = e.split(",")), n.class_name === "int" && (r = r.map(Number))), t.push({
|
|
339
|
+
field_name: n.field_name,
|
|
340
|
+
operator: n.operator,
|
|
341
|
+
value: l(r instanceof Array ? r : [r], n.class_name),
|
|
342
|
+
format: n.format,
|
|
343
|
+
class_name: n.class_name
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
}, He = (t) => {
|
|
347
|
+
let n = t.required_condition, r = {};
|
|
348
|
+
if (n) {
|
|
349
|
+
let t = e();
|
|
350
|
+
n.forEach((e) => {
|
|
351
|
+
let n = t.value_map[e.key];
|
|
352
|
+
n != null && (r[e.field_name] = n);
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
return r;
|
|
356
|
+
}, Ue = (e, t, n, r, i) => {
|
|
357
|
+
let a = [], o = [[{
|
|
358
|
+
searchType: 3,
|
|
359
|
+
field_name: "is_active",
|
|
360
|
+
operator: "eq",
|
|
361
|
+
value: [!0],
|
|
362
|
+
format: "choices",
|
|
363
|
+
class_name: "bool"
|
|
364
|
+
}]];
|
|
365
|
+
return e.searchConditions && (o = e.searchConditions), o.forEach((e) => {
|
|
366
|
+
let o = [];
|
|
367
|
+
e.forEach((e) => {
|
|
368
|
+
e.searchType === 1 ? Object.keys(n || t).forEach((r) => {
|
|
369
|
+
e.select_name == r && Z((n || t)[r], o, e);
|
|
370
|
+
}) : e.searchType === 2 ? Object.keys(t).forEach((n) => {
|
|
371
|
+
e.select_name == n && Z(t[n], o, e);
|
|
372
|
+
}) : e.searchType === 3 ? Z(e.value, o, e) : e.searchType === 4 ? Z(S(e.select_name, r, ["formModel", ...i]), o, e) : Z(e.value, o, e);
|
|
373
|
+
}), a.push(o);
|
|
374
|
+
}), a;
|
|
375
|
+
}, We = (e, t, n, r, i) => {
|
|
376
|
+
let a = {};
|
|
377
|
+
return e.simpleSearchConditions && e.simpleSearchConditions.forEach((e) => {
|
|
378
|
+
e.searchType === 1 ? Object.keys(n || t).forEach((r) => {
|
|
379
|
+
e.select_name == r && (a[e.field_name] = (n || t)[r]);
|
|
380
|
+
}) : e.searchType === 2 ? Object.keys(t).forEach((n) => {
|
|
381
|
+
e.select_name == n && (a[e.field_name] = t[n]);
|
|
382
|
+
}) : e.searchType === 3 ? a[e.field_name] = e.value : e.searchType === 4 && (a[e.field_name] = S(e.select_name, r, ["formModel", ...i]));
|
|
383
|
+
}), a;
|
|
384
|
+
}, Ge = (e, t, n, r, i) => {
|
|
385
|
+
let a = {
|
|
386
|
+
current: 1,
|
|
387
|
+
pageSize: 200,
|
|
388
|
+
is_pagination: !0,
|
|
389
|
+
request_source: "strict",
|
|
390
|
+
is_active: !0,
|
|
391
|
+
...e.init_model || {},
|
|
392
|
+
column_fields: Be(e),
|
|
393
|
+
sort_fields: e.init_model?.sort_fields || Ve(e),
|
|
394
|
+
conditions: [],
|
|
395
|
+
simpleSearchParams: {}
|
|
396
|
+
}, o = He(e);
|
|
397
|
+
if (e.queryType === "simple") {
|
|
398
|
+
let s = We(e, t, n, r, i), c = {
|
|
399
|
+
...a,
|
|
400
|
+
...s,
|
|
401
|
+
required_condition: o
|
|
402
|
+
};
|
|
403
|
+
return delete c.conditions, delete c.simpleSearchParams, c;
|
|
404
|
+
}
|
|
405
|
+
let s = Ue(e, t, n, r, i), c = {
|
|
406
|
+
...a,
|
|
407
|
+
conditions: s,
|
|
408
|
+
required_condition: o
|
|
409
|
+
};
|
|
410
|
+
return delete c.simpleSearchParams, c;
|
|
411
|
+
}, Ke = (e, t, n) => {
|
|
412
|
+
let r = n.every((e) => typeof e == "number" || typeof e == "string" && e.trim() !== "" && !isNaN(Number(e))) ? "int" : "str";
|
|
413
|
+
return t.queryType === "simple" ? e[X(t)] = n.length > 0 ? n.join(",") : "" : (e.conditions && e.conditions.length > 0 || (e.conditions = [[]]), e.conditions[0].push({
|
|
414
|
+
class_name: r,
|
|
415
|
+
operator: "in",
|
|
416
|
+
value: n,
|
|
417
|
+
format: "remote",
|
|
418
|
+
field_name: X(t)
|
|
419
|
+
})), e;
|
|
420
|
+
}, qe = (e, t) => {
|
|
421
|
+
let n = (e) => X(t) === "id" ? isNaN(Number(e)) ? e : Number(e) : e;
|
|
422
|
+
return t.mode === "default" || !t.mode ? e || e === 0 ? [n(e)] : [] : typeof e == "string" ? e.split(",").map(n) : e instanceof Array ? e.map(n) : e == null ? [] : [n(e)];
|
|
423
|
+
}, Je = (e, t) => {
|
|
424
|
+
if (e.labelKeyList && e.labelKeyList.length > 0 && e.labelKeyType !== 1) {
|
|
425
|
+
let n = [];
|
|
426
|
+
for (let r of e.labelKeyList) {
|
|
427
|
+
let e = t[r];
|
|
428
|
+
n.push(e == null ? "" : String(e));
|
|
429
|
+
}
|
|
430
|
+
return n.join(e.labelSpace || "-");
|
|
431
|
+
}
|
|
432
|
+
let n = t[ze(e)];
|
|
433
|
+
return n == null ? "" : String(n);
|
|
434
|
+
};
|
|
435
|
+
async function Ye(e) {
|
|
436
|
+
let { field: t, targets: n, baseKeyPath: r, context: i } = e;
|
|
437
|
+
if (!t.postUrl || !n || n.length === 0) return {};
|
|
438
|
+
let o = /* @__PURE__ */ new Map();
|
|
439
|
+
for (let e of n) {
|
|
440
|
+
let n = [...r, e.rowIndex], a = Ge(t, e.row || {}, {}, i, n), s = qe(e.row?.[t.name], t);
|
|
441
|
+
if (s.length === 0) continue;
|
|
442
|
+
let c = JSON.stringify(a);
|
|
443
|
+
o.has(c) || o.set(c, {
|
|
444
|
+
params: a,
|
|
445
|
+
items: []
|
|
446
|
+
}), o.get(c).items.push({
|
|
447
|
+
rowIndex: e.rowIndex,
|
|
448
|
+
values: s
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
let s = {}, c = /* @__PURE__ */ new Map();
|
|
452
|
+
for (let e of o.values()) {
|
|
453
|
+
let n = [...new Set(e.items.flatMap((e) => e.values))];
|
|
454
|
+
if (n.length !== 0) {
|
|
455
|
+
for (let r = 0; r < n.length; r += 100) {
|
|
456
|
+
let i = n.slice(r, r + 100), o = JSON.parse(JSON.stringify(e.params));
|
|
457
|
+
Ke(o, t, i);
|
|
458
|
+
let s = [];
|
|
459
|
+
try {
|
|
460
|
+
s = (await a(o, t.postUrl, !1, { skip_error: !0 }))?.data || [];
|
|
461
|
+
} catch (e) {
|
|
462
|
+
console.error("resolveRemoteSelectProLabels fetch error:", t.name, e);
|
|
463
|
+
}
|
|
464
|
+
for (let e of s) {
|
|
465
|
+
let n = e[X(t)], r = String(n);
|
|
466
|
+
c.has(r) || c.set(r, {
|
|
467
|
+
label: Je(t, e),
|
|
468
|
+
option: e
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
for (let n of e.items) {
|
|
473
|
+
let e = n.values.map((e) => c.get(String(e))).filter((e) => !!e);
|
|
474
|
+
if (e.length === 0) {
|
|
475
|
+
s[n.rowIndex] = null;
|
|
476
|
+
continue;
|
|
477
|
+
}
|
|
478
|
+
if (t.mode === "default" || !t.mode) {
|
|
479
|
+
let t = e[0];
|
|
480
|
+
s[n.rowIndex] = {
|
|
481
|
+
label: t.label,
|
|
482
|
+
option: t.option
|
|
483
|
+
};
|
|
484
|
+
} else s[n.rowIndex] = {
|
|
485
|
+
label: e.map((e) => e.label),
|
|
486
|
+
option: e.map((e) => e.option)
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
return s;
|
|
492
|
+
}
|
|
493
|
+
//#endregion
|
|
494
|
+
//#region src/components/FormRender/FormTemplate/FormTemplateTable.vue?vue&type=script&setup=true&lang.ts
|
|
495
|
+
var Xe = {
|
|
313
496
|
key: 0,
|
|
314
497
|
class: "required-star"
|
|
315
|
-
},
|
|
498
|
+
}, Ze = {
|
|
316
499
|
key: 0,
|
|
317
500
|
class: "cell-item"
|
|
318
|
-
},
|
|
501
|
+
}, Qe = {
|
|
319
502
|
key: 1,
|
|
320
503
|
class: "cell-item"
|
|
321
|
-
},
|
|
504
|
+
}, $e = /*#__PURE__*/ n(/* @__PURE__ */ L({
|
|
322
505
|
__name: "FormTemplateTable",
|
|
323
506
|
props: {
|
|
324
507
|
value: {},
|
|
@@ -333,56 +516,56 @@ var ke = /*#__PURE__*/ t(we, [["render", Oe], ["__scopeId", "data-v-d6626b20"]])
|
|
|
333
516
|
min_count: {},
|
|
334
517
|
formModel: {}
|
|
335
518
|
},
|
|
336
|
-
emits: ["remove"],
|
|
519
|
+
emits: ["remove", "labels_resolved"],
|
|
337
520
|
setup(e, { emit: t }) {
|
|
338
|
-
let n =
|
|
521
|
+
let n = H({
|
|
339
522
|
showQuickJumper: !0,
|
|
340
523
|
showSizeChanger: !1,
|
|
341
524
|
showTotal: (e) => `共 ${e} 条记录`,
|
|
342
525
|
pageSize: 5,
|
|
343
526
|
current: 1
|
|
344
|
-
}), r = e, i = t, a =
|
|
527
|
+
}), r = e, i = t, a = V({ ...r.field.form?.rules || {} }), o = H([]), s = H([]), c = H([]), l = (() => {
|
|
345
528
|
let e = /* @__PURE__ */ new Uint8Array(16);
|
|
346
529
|
return window.crypto.getRandomValues(e), Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
347
|
-
})(), f =
|
|
530
|
+
})(), f = H([]), p = () => {
|
|
348
531
|
let e = [], t = [];
|
|
349
532
|
(r.value || []).forEach((n, r) => {
|
|
350
|
-
|
|
351
|
-
let i =
|
|
533
|
+
c.value[r] || (c.value[r] = {});
|
|
534
|
+
let i = c.value[r], o = {};
|
|
352
535
|
Object.keys(a).forEach((e) => {
|
|
353
536
|
e in n && !i[e] && (o[e] = a[e]);
|
|
354
537
|
});
|
|
355
|
-
let { validate: s, validateInfos:
|
|
356
|
-
e[r] =
|
|
357
|
-
}), o.value = e, s.value = t, r.nestValidate && (r.nestValidate[
|
|
538
|
+
let { validate: s, validateInfos: l } = d(n, o);
|
|
539
|
+
e[r] = l, t[r] = s;
|
|
540
|
+
}), o.value = e, s.value = t, r.nestValidate && (r.nestValidate[l] = async () => {
|
|
358
541
|
let e = t.map((e) => e());
|
|
359
542
|
return Promise.all(e);
|
|
360
543
|
});
|
|
361
544
|
}, m = (e, t) => {
|
|
362
|
-
|
|
545
|
+
c.value[e] || (c.value[e] = {}), t.add_key ? (delete c.value[e][t.add_key], p()) : t.remove_key && (c.value[e][t.remove_key] = !0, p());
|
|
363
546
|
};
|
|
364
|
-
|
|
547
|
+
q(() => r.value, () => {
|
|
365
548
|
p();
|
|
366
549
|
}, {
|
|
367
550
|
deep: !0,
|
|
368
551
|
immediate: !0
|
|
369
|
-
}),
|
|
370
|
-
v();
|
|
371
|
-
}, { deep: !0 }), Y(() => r.formModel, () => {
|
|
552
|
+
}), q(() => r.field, () => {
|
|
372
553
|
v();
|
|
373
|
-
}, { deep: !0 }),
|
|
554
|
+
}, { deep: !0 }), q(() => r.formModel, () => {
|
|
374
555
|
v();
|
|
375
|
-
}, { deep: !0 }),
|
|
556
|
+
}, { deep: !0 }), q(() => r.context, () => {
|
|
376
557
|
v();
|
|
377
|
-
}),
|
|
378
|
-
|
|
558
|
+
}, { deep: !0 }), R(() => {
|
|
559
|
+
v(), x();
|
|
560
|
+
}), z(() => {
|
|
561
|
+
r.nestValidate && delete r.nestValidate[l], x.cancel(), i("labels_resolved");
|
|
379
562
|
});
|
|
380
|
-
let h =
|
|
563
|
+
let h = k(() => {
|
|
381
564
|
let e = 0;
|
|
382
565
|
return f.value.forEach((t) => {
|
|
383
566
|
e += t._width || 150;
|
|
384
567
|
}), e;
|
|
385
|
-
}), g =
|
|
568
|
+
}), g = k(() => (r.value || []).map((e, t) => ({
|
|
386
569
|
...e,
|
|
387
570
|
_key: t
|
|
388
571
|
}))), _ = (e) => {
|
|
@@ -431,7 +614,7 @@ var ke = /*#__PURE__*/ t(we, [["render", Oe], ["__scopeId", "data-v-d6626b20"]])
|
|
|
431
614
|
}), r.field.dynamicTitle?.enable) {
|
|
432
615
|
let t = r.field.dynamicTitle.code;
|
|
433
616
|
try {
|
|
434
|
-
let n = await
|
|
617
|
+
let n = await u(t, {
|
|
435
618
|
innerModel: r.innerModel,
|
|
436
619
|
globalInnerModel: r.globalInnerModel,
|
|
437
620
|
field: r.field,
|
|
@@ -447,26 +630,81 @@ var ke = /*#__PURE__*/ t(we, [["render", Oe], ["__scopeId", "data-v-d6626b20"]])
|
|
|
447
630
|
}
|
|
448
631
|
}
|
|
449
632
|
f.value = e;
|
|
450
|
-
},
|
|
451
|
-
|
|
452
|
-
},
|
|
633
|
+
}, ee = (e) => {
|
|
634
|
+
c.value.splice(e, 1), i("remove", e);
|
|
635
|
+
}, y = () => {
|
|
636
|
+
let e = [];
|
|
637
|
+
return r.field?.form?.dynamicFieldList?.forEach((t) => {
|
|
638
|
+
t.children instanceof Array && t.children.forEach((t) => {
|
|
639
|
+
t.type === "remoteselectpro" && t.postUrl && !t.is_table_hide_column && e.push(t);
|
|
640
|
+
});
|
|
641
|
+
}), e;
|
|
642
|
+
}, b = (e, t, n) => {
|
|
643
|
+
if (!e) return !1;
|
|
644
|
+
let i = e[t.name];
|
|
645
|
+
if (!(i != null && i !== "" && !(i instanceof Array && i.length === 0))) return !1;
|
|
646
|
+
let a = e[t.name + ".label"];
|
|
647
|
+
if (a == null || a === "" || a instanceof Array && a.length === 0) return !0;
|
|
648
|
+
let o = r.innerModel?.[r.field.name]?.[n];
|
|
649
|
+
return !o || o[t.name] === void 0 || o[t.name] === null;
|
|
650
|
+
}, x = Se(async () => {
|
|
651
|
+
if (!r.is_form_design) try {
|
|
652
|
+
let e = y();
|
|
653
|
+
if (e.length === 0 || !r.value || r.value.length === 0) return;
|
|
654
|
+
let t = r.value;
|
|
655
|
+
for (let n of e) {
|
|
656
|
+
let e = [];
|
|
657
|
+
if (t.forEach((t, r) => {
|
|
658
|
+
b(t, n, r) && e.push({
|
|
659
|
+
rowIndex: r,
|
|
660
|
+
row: t
|
|
661
|
+
});
|
|
662
|
+
}), e.length === 0) continue;
|
|
663
|
+
let i = await Ye({
|
|
664
|
+
field: n,
|
|
665
|
+
targets: e,
|
|
666
|
+
baseKeyPath: [...r.baseKeyPath || [], r.field.name],
|
|
667
|
+
context: r.context
|
|
668
|
+
});
|
|
669
|
+
Object.entries(i).forEach(([e, i]) => {
|
|
670
|
+
if (!i) return;
|
|
671
|
+
let a = Number(e), o = t[a];
|
|
672
|
+
if (o && (i.label !== void 0 && i.label !== null && i.label !== "" && (o[n.name + ".label"] = i.label, n.name2 && (o[n.name2] = typeof i.label == "string" ? i.label : i.label.toString())), r.innerModel)) {
|
|
673
|
+
r.innerModel[r.field.name] || (r.innerModel[r.field.name] = []);
|
|
674
|
+
let e = r.innerModel[r.field.name];
|
|
675
|
+
e[a] || (e[a] = {}), e[a][n.name] = i.option;
|
|
676
|
+
}
|
|
677
|
+
});
|
|
678
|
+
}
|
|
679
|
+
} finally {
|
|
680
|
+
i("labels_resolved");
|
|
681
|
+
}
|
|
682
|
+
}, 300);
|
|
683
|
+
q(() => [
|
|
684
|
+
r.value,
|
|
685
|
+
r.field,
|
|
686
|
+
r.context
|
|
687
|
+
], () => {
|
|
688
|
+
x();
|
|
689
|
+
}, { deep: !0 });
|
|
690
|
+
let S = k(() => {
|
|
453
691
|
if (r.innerModel) {
|
|
454
692
|
let e = r.innerModel[r.field.name] || [];
|
|
455
693
|
return (r.value || []).map((t, n) => e[n] || {});
|
|
456
694
|
}
|
|
457
695
|
return [];
|
|
458
|
-
}),
|
|
696
|
+
}), te = k(() => {
|
|
459
697
|
let e = [], t = 0;
|
|
460
698
|
for (let n of f.value) n.is_summary && e.push({ index: t }), t++;
|
|
461
699
|
return e;
|
|
462
700
|
});
|
|
463
701
|
return (e, t) => {
|
|
464
|
-
let r =
|
|
465
|
-
return
|
|
702
|
+
let r = W("DeleteOutlined"), i = W("a-button"), a = W("s-table-summary-cell"), s = W("s-table-summary-row"), c = W("s-table");
|
|
703
|
+
return B(), A(C, {
|
|
466
704
|
"dynamic-title": e.field.dynamicTitle,
|
|
467
705
|
"onUpdate:dynamicTitle": t[1] ||= (t) => e.field.dynamicTitle = t
|
|
468
706
|
}, {
|
|
469
|
-
default:
|
|
707
|
+
default: J(() => [(B(), A(c, {
|
|
470
708
|
dataSource: g.value,
|
|
471
709
|
columns: f.value,
|
|
472
710
|
autoRowHeight: !0,
|
|
@@ -480,25 +718,25 @@ var ke = /*#__PURE__*/ t(we, [["render", Oe], ["__scopeId", "data-v-d6626b20"]])
|
|
|
480
718
|
pagination: n.value,
|
|
481
719
|
"onUpdate:pagination": t[0] ||= (e) => n.value = e,
|
|
482
720
|
rangeSelection: !1
|
|
483
|
-
},
|
|
484
|
-
headerCell:
|
|
485
|
-
bodyCell:
|
|
486
|
-
onClick: (e) =>
|
|
721
|
+
}, P({
|
|
722
|
+
headerCell: J(({ column: e }) => [N("span", null, K(e.title), 1), e.has_reqrired ? (B(), M("span", Xe, " * ")) : j("", !0)]),
|
|
723
|
+
bodyCell: J(({ column: t, record: n }) => [t.key === "action" ? (B(), M("div", Ze, [I(i, {
|
|
724
|
+
onClick: (e) => ee(n._key),
|
|
487
725
|
size: "small",
|
|
488
726
|
type: "link",
|
|
489
727
|
danger: "",
|
|
490
728
|
disabled: e.value.length <= e.min_count
|
|
491
729
|
}, {
|
|
492
|
-
icon:
|
|
730
|
+
icon: J(() => [I(r)]),
|
|
493
731
|
_: 2
|
|
494
|
-
}, 1032, ["onClick", "disabled"])])) : t.key === "index" ? (
|
|
732
|
+
}, 1032, ["onClick", "disabled"])])) : t.key === "index" ? (B(), M("div", Qe, K(n._key + 1), 1)) : t.field ? (B(), A(Fe, {
|
|
495
733
|
key: `${n._key}_${t.dataIndex}`,
|
|
496
734
|
field: t.field,
|
|
497
735
|
model: e.value[n._key],
|
|
498
736
|
validateInfos: o.value[n._key] || {},
|
|
499
737
|
options: e.field.form?.options || {},
|
|
500
738
|
context: e.context,
|
|
501
|
-
innerModel:
|
|
739
|
+
innerModel: S.value[n._key],
|
|
502
740
|
globalInnerModel: e.globalInnerModel,
|
|
503
741
|
nestValidate: e.nestValidate,
|
|
504
742
|
baseKeyPath: [
|
|
@@ -524,19 +762,19 @@ var ke = /*#__PURE__*/ t(we, [["render", Oe], ["__scopeId", "data-v-d6626b20"]])
|
|
|
524
762
|
"is_form_design",
|
|
525
763
|
"has_reqrired",
|
|
526
764
|
"onUpdate_model"
|
|
527
|
-
])) :
|
|
765
|
+
])) : j("", !0)]),
|
|
528
766
|
_: 2
|
|
529
|
-
}, [
|
|
767
|
+
}, [te.value.length > 0 ? {
|
|
530
768
|
name: "summary",
|
|
531
|
-
fn:
|
|
532
|
-
default:
|
|
533
|
-
default:
|
|
769
|
+
fn: J(() => [I(s, null, {
|
|
770
|
+
default: J(() => [I(a, { index: 0 }, {
|
|
771
|
+
default: J(() => t[2] ||= [F("合计")]),
|
|
534
772
|
_: 1
|
|
535
|
-
}), (
|
|
773
|
+
}), (B(!0), M(O, null, U(te.value, (e) => (B(), A(a, {
|
|
536
774
|
key: e.index,
|
|
537
775
|
index: e.index
|
|
538
776
|
}, {
|
|
539
|
-
default:
|
|
777
|
+
default: J((e) => [I(Re, {
|
|
540
778
|
"summary-params": e,
|
|
541
779
|
tableDataSource: g.value
|
|
542
780
|
}, null, 8, ["summary-params", "tableDataSource"])]),
|
|
@@ -555,15 +793,15 @@ var ke = /*#__PURE__*/ t(we, [["render", Oe], ["__scopeId", "data-v-d6626b20"]])
|
|
|
555
793
|
}, 8, ["dynamic-title"]);
|
|
556
794
|
};
|
|
557
795
|
}
|
|
558
|
-
}), [["__scopeId", "data-v-
|
|
559
|
-
function
|
|
796
|
+
}), [["__scopeId", "data-v-bf14a73c"]]), et = /* @__PURE__ */ new Set();
|
|
797
|
+
function tt(e, t = []) {
|
|
560
798
|
return [...t, e.name || e.code || "field"].join("__");
|
|
561
799
|
}
|
|
562
|
-
async function
|
|
800
|
+
async function nt(e) {
|
|
563
801
|
try {
|
|
564
802
|
let t = e.serialConfig || {};
|
|
565
|
-
return { value: await
|
|
566
|
-
org_id:
|
|
803
|
+
return { value: await a({
|
|
804
|
+
org_id: c(),
|
|
567
805
|
mode: t.mode || "M1",
|
|
568
806
|
kwargs: JSON.stringify(t),
|
|
569
807
|
preview: !0
|
|
@@ -575,8 +813,8 @@ async function Ve(e) {
|
|
|
575
813
|
};
|
|
576
814
|
}
|
|
577
815
|
}
|
|
578
|
-
async function
|
|
579
|
-
let { field: t, currentValue: n, innerModel: r, globalInnerModel:
|
|
816
|
+
async function rt(e) {
|
|
817
|
+
let { field: t, currentValue: n, innerModel: r, globalInnerModel: i, formModel: o, context: s, baseKeyPath: l = [], workerHostFunctions: d = {}, is_form_design: f = !1 } = e;
|
|
580
818
|
if (t.watchType === "scoped") {
|
|
581
819
|
if (t.valueType === "single") {
|
|
582
820
|
let e = r?.[t.fieldName];
|
|
@@ -593,11 +831,11 @@ async function He(e) {
|
|
|
593
831
|
}
|
|
594
832
|
} else if (t.watchType === "global") {
|
|
595
833
|
if (t.valueType === "single") {
|
|
596
|
-
let e =
|
|
834
|
+
let e = i?.[t.fieldName];
|
|
597
835
|
if (t.valueKey && (e = e?.[t.valueKey]), e === void 0 && n !== void 0) return { value: "" };
|
|
598
836
|
if (e !== n) return { value: e };
|
|
599
837
|
} else if (t.valueType === "multiple") {
|
|
600
|
-
let e =
|
|
838
|
+
let e = i?.[t.fieldName];
|
|
601
839
|
if (t.valueKeyList && t.valueKeyList.length) {
|
|
602
840
|
let r = [];
|
|
603
841
|
for (let n of t.valueKeyList) e?.[n] && r.push(e?.[n]);
|
|
@@ -606,7 +844,7 @@ async function He(e) {
|
|
|
606
844
|
}
|
|
607
845
|
}
|
|
608
846
|
} else if (t.watchType === "context") {
|
|
609
|
-
let e =
|
|
847
|
+
let e = S(t.fieldName || "", s, ["formModel", ...l]);
|
|
610
848
|
if (t.valueType === "single") {
|
|
611
849
|
let r = e;
|
|
612
850
|
if (t.valueKey && (r = r?.[t.valueKey]), r === void 0 && n !== void 0) return { value: "" };
|
|
@@ -621,13 +859,13 @@ async function He(e) {
|
|
|
621
859
|
}
|
|
622
860
|
}
|
|
623
861
|
} else if (t.watchType === "code") try {
|
|
624
|
-
let e = await
|
|
862
|
+
let e = await u(t.code, {
|
|
625
863
|
innerModel: r,
|
|
626
|
-
globalInnerModel:
|
|
864
|
+
globalInnerModel: i,
|
|
627
865
|
field: t,
|
|
628
866
|
formModel: o,
|
|
629
|
-
context:
|
|
630
|
-
keyPath: [...
|
|
867
|
+
context: s,
|
|
868
|
+
keyPath: [...l, t.name]
|
|
631
869
|
}, d);
|
|
632
870
|
if (e === void 0 && n !== void 0) return { value: "" };
|
|
633
871
|
if (e !== n) return { value: e };
|
|
@@ -638,14 +876,14 @@ async function He(e) {
|
|
|
638
876
|
};
|
|
639
877
|
}
|
|
640
878
|
else if (t.watchType === "serial") {
|
|
641
|
-
if (f) return await
|
|
879
|
+
if (f) return await nt(t);
|
|
642
880
|
if (n != null && n !== "") return { value: "" };
|
|
643
|
-
let e =
|
|
644
|
-
if (
|
|
645
|
-
|
|
881
|
+
let e = tt(t, l);
|
|
882
|
+
if (et.has(e)) return { value: "" };
|
|
883
|
+
et.add(e);
|
|
646
884
|
try {
|
|
647
|
-
let e = t.serialConfig || {}, r = await
|
|
648
|
-
org_id:
|
|
885
|
+
let e = t.serialConfig || {}, r = await a({
|
|
886
|
+
org_id: c(),
|
|
649
887
|
mode: e.mode || "M1",
|
|
650
888
|
kwargs: JSON.stringify(e)
|
|
651
889
|
}, "/approve/get_approve_serial_number", !1);
|
|
@@ -656,23 +894,23 @@ async function He(e) {
|
|
|
656
894
|
error: e?.message || "流水号分配失败"
|
|
657
895
|
};
|
|
658
896
|
} finally {
|
|
659
|
-
|
|
897
|
+
et.delete(e);
|
|
660
898
|
}
|
|
661
899
|
}
|
|
662
900
|
return null;
|
|
663
901
|
}
|
|
664
902
|
//#endregion
|
|
665
903
|
//#region src/components/FormRender/addonValue.ts
|
|
666
|
-
var
|
|
667
|
-
if (!
|
|
904
|
+
var it = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, at = (e, t) => t && e.endsWith(t) ? e.slice(0, -t.length) : e, ot = (e) => e != null && !(e instanceof Array) && typeof e != "object", st = (e, t) => {
|
|
905
|
+
if (!ot(t)) return t;
|
|
668
906
|
let n = `${t}`;
|
|
669
|
-
return e?.extraAddonAfter && e?.addonAfter && (n =
|
|
670
|
-
},
|
|
671
|
-
let n =
|
|
672
|
-
if (!
|
|
907
|
+
return e?.extraAddonAfter && e?.addonAfter && (n = at(n, e.addonAfter)), e?.extraAddonBefore && e?.addonBefore && (n = it(n, e.addonBefore)), n;
|
|
908
|
+
}, ct = (e, t) => {
|
|
909
|
+
let n = st(e, t);
|
|
910
|
+
if (!ot(n) || n === "") return n;
|
|
673
911
|
let r = `${n}`;
|
|
674
912
|
return e?.extraAddonBefore && e?.addonBefore && (r = `${e.addonBefore}${r}`), e?.extraAddonAfter && e?.addonAfter && (r = `${r}${e.addonAfter}`), r;
|
|
675
|
-
}, Q =
|
|
913
|
+
}, Q = i(), lt = { class: "top_btn" }, ut = /*#__PURE__*/ n(/* @__PURE__ */ L({
|
|
676
914
|
__name: "FormTemplate",
|
|
677
915
|
props: {
|
|
678
916
|
field: {},
|
|
@@ -694,16 +932,16 @@ var Ue = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, We = (e, t) =>
|
|
|
694
932
|
},
|
|
695
933
|
emits: ["update:value"],
|
|
696
934
|
setup(e, { emit: t }) {
|
|
697
|
-
let n = e, r = t, i =
|
|
935
|
+
let n = e, r = t, i = H(0), a = De(), o = [{
|
|
698
936
|
label: "添加(add)",
|
|
699
937
|
value: "add"
|
|
700
938
|
}, {
|
|
701
939
|
label: "整体更新(update)",
|
|
702
940
|
value: "update"
|
|
703
|
-
}], s =
|
|
704
|
-
|
|
941
|
+
}], s = le(() => import("./ImportExcelModal-Dds857L2.js")), c = k(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("download"))), l = k(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("import"))), d = () => {
|
|
942
|
+
be.confirm({
|
|
705
943
|
title: "确认清空吗?",
|
|
706
|
-
icon:
|
|
944
|
+
icon: I(we),
|
|
707
945
|
content: "清空后将无法恢复",
|
|
708
946
|
okText: "确认",
|
|
709
947
|
cancelText: "取消",
|
|
@@ -711,13 +949,13 @@ var Ue = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, We = (e, t) =>
|
|
|
711
949
|
r("update:value", []);
|
|
712
950
|
}
|
|
713
951
|
});
|
|
714
|
-
}, f =
|
|
952
|
+
}, f = k(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("clear"))), p = k(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("add"))), m = {}, h = {}, g = () => {
|
|
715
953
|
let e = [], t = n.field.form?.dynamicFieldList || [];
|
|
716
954
|
t.forEach((t) => {
|
|
717
955
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
718
956
|
if (t.is_table_hide_column || t.type === "dynamicvaluefield") return;
|
|
719
957
|
let r = { ...t };
|
|
720
|
-
t?.name2 && (m[t.name] = t?.name2), [
|
|
958
|
+
t?.name2 && (m[t.name] = t?.name2), t.type === "remoteselectpro" && (h[t.name] = t), [
|
|
721
959
|
"select",
|
|
722
960
|
"radio",
|
|
723
961
|
"checkbox",
|
|
@@ -726,7 +964,7 @@ var Ue = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, We = (e, t) =>
|
|
|
726
964
|
].includes(t.type) && (r.options = n.field.form?.options?.[t.name] || t.options), e.push(r);
|
|
727
965
|
});
|
|
728
966
|
});
|
|
729
|
-
let i =
|
|
967
|
+
let i = V({
|
|
730
968
|
open: !0,
|
|
731
969
|
loading: !1,
|
|
732
970
|
component: s,
|
|
@@ -737,24 +975,29 @@ var Ue = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, We = (e, t) =>
|
|
|
737
975
|
e.forEach((e) => {
|
|
738
976
|
let r = (0, Q.cloneDeep)(n.field.form.model || {});
|
|
739
977
|
Object.keys(e).forEach((t) => {
|
|
740
|
-
e[t].error && a.push(
|
|
978
|
+
e[t].error && a.push(ue("li", e[t].error + "(" + e[t].excel_position + ")")), r[t] = e[t].value, m[t] && (r[m[t]] = e[t].raw_value);
|
|
979
|
+
let n = h[t];
|
|
980
|
+
if (n) {
|
|
981
|
+
let i = e[t].raw_value;
|
|
982
|
+
i != null && i !== "" && (n.mode === "default" || !n.mode) && (r[t + ".label"] = i);
|
|
983
|
+
}
|
|
741
984
|
}), t?.length && t.forEach((e) => {
|
|
742
985
|
e.children instanceof Array && e.children.forEach((e) => {
|
|
743
986
|
e.type === "dynamicvaluefield" && delete r[e.name];
|
|
744
987
|
});
|
|
745
988
|
}), o.push(r);
|
|
746
|
-
}), a.length > 0 ?
|
|
989
|
+
}), a.length > 0 ? be.warning({
|
|
747
990
|
title: "导入Excel报错, 请改正后再尝试导入",
|
|
748
|
-
content:
|
|
749
|
-
icon:
|
|
991
|
+
content: ue("ol", a),
|
|
992
|
+
icon: I(we)
|
|
750
993
|
}) : r("update:value", [...n.value || [], ...o]), i.open = !1;
|
|
751
994
|
},
|
|
752
995
|
onCancel: () => {
|
|
753
996
|
i.open = !1;
|
|
754
997
|
}
|
|
755
998
|
});
|
|
756
|
-
|
|
757
|
-
},
|
|
999
|
+
x(i);
|
|
1000
|
+
}, _ = H(!1), v = (e) => {
|
|
758
1001
|
if (n.field?.form?.rules) {
|
|
759
1002
|
let t = n.field?.form?.rules[e];
|
|
760
1003
|
if (t) {
|
|
@@ -762,25 +1005,25 @@ var Ue = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, We = (e, t) =>
|
|
|
762
1005
|
}
|
|
763
1006
|
}
|
|
764
1007
|
return !1;
|
|
765
|
-
},
|
|
766
|
-
|
|
1008
|
+
}, ee = () => {
|
|
1009
|
+
_.value = !0;
|
|
767
1010
|
let e = [], t = [];
|
|
768
1011
|
(n.field.form?.dynamicFieldList || []).forEach((r) => {
|
|
769
1012
|
r.children instanceof Array && r.children.forEach((r) => {
|
|
770
|
-
r.is_hide || r.is_table_hide_column || r.type !== "dynamicvaluefield" && (e.push(
|
|
1013
|
+
r.is_hide || r.is_table_hide_column || r.type !== "dynamicvaluefield" && (e.push(v(r.name) ? { title: [r.label, {
|
|
771
1014
|
text: "[必填]",
|
|
772
1015
|
color: "FFFF0000"
|
|
773
1016
|
}] } : { title: [r.label] }), n.value && n.value.length > 0 ? t.push(n.value[0][r.name] ? n.value[0][r.name].toString() : "") : t.push(""));
|
|
774
1017
|
});
|
|
775
|
-
}),
|
|
1018
|
+
}), te({
|
|
776
1019
|
data: [t],
|
|
777
1020
|
autoWidth: !0,
|
|
778
1021
|
filename: n.field.label || "导入模板",
|
|
779
1022
|
header: e
|
|
780
1023
|
}), setTimeout(() => {
|
|
781
|
-
|
|
1024
|
+
_.value = !1;
|
|
782
1025
|
}, 1500);
|
|
783
|
-
}, y =
|
|
1026
|
+
}, y = k(() => n.field.min_count ?? 0), b = k(() => {
|
|
784
1027
|
if (n.innerModel) {
|
|
785
1028
|
n.innerModel[n.field.name] || (n.innerModel[n.field.name] = []);
|
|
786
1029
|
for (let e = 0; e < n.value.length; e++) n.innerModel[n.field.name][e] || (n.innerModel[n.field.name][e] = {});
|
|
@@ -791,13 +1034,13 @@ var Ue = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, We = (e, t) =>
|
|
|
791
1034
|
if (e.code) {
|
|
792
1035
|
let t;
|
|
793
1036
|
try {
|
|
794
|
-
t = await
|
|
1037
|
+
t = await u(e.code, {
|
|
795
1038
|
context: n.context,
|
|
796
1039
|
value: n.value,
|
|
797
1040
|
keyPath: [...n.baseKeyPath, n.field.name]
|
|
798
1041
|
}, n.workerHostFunctions || {});
|
|
799
1042
|
} catch (e) {
|
|
800
|
-
|
|
1043
|
+
xe.error(e.message);
|
|
801
1044
|
return;
|
|
802
1045
|
}
|
|
803
1046
|
if (e.action == "add") {
|
|
@@ -816,16 +1059,16 @@ var Ue = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, We = (e, t) =>
|
|
|
816
1059
|
r("update:value", e);
|
|
817
1060
|
}
|
|
818
1061
|
}
|
|
819
|
-
},
|
|
1062
|
+
}, ne = () => {
|
|
820
1063
|
let e = n.value || [];
|
|
821
1064
|
e.push((0, Q.cloneDeep)(n.field.form.model || {})), r("update:value", e);
|
|
822
|
-
},
|
|
1065
|
+
}, re = (e) => {
|
|
823
1066
|
let t = n.value || [];
|
|
824
1067
|
t.splice(e, 1), r("update:value", t);
|
|
825
|
-
},
|
|
1068
|
+
}, w = (0, Q.debounce)(() => {
|
|
826
1069
|
i.value = window.innerHeight - 165;
|
|
827
|
-
}, 200),
|
|
828
|
-
|
|
1070
|
+
}, 200), ie = () => {
|
|
1071
|
+
x(V({
|
|
829
1072
|
open: !0,
|
|
830
1073
|
loading: !1,
|
|
831
1074
|
component: "InnerFormDesignModal",
|
|
@@ -844,42 +1087,44 @@ var Ue = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, We = (e, t) =>
|
|
|
844
1087
|
}
|
|
845
1088
|
}));
|
|
846
1089
|
};
|
|
847
|
-
|
|
1090
|
+
q(() => n.value, (e) => {
|
|
848
1091
|
if (!(e instanceof Array) || e.length < y.value) {
|
|
849
1092
|
let t = [...e || []];
|
|
850
1093
|
for (; t.length < y.value;) t.push((0, Q.cloneDeep)(n.field.form.model || {}));
|
|
851
1094
|
r("update:value", t);
|
|
852
1095
|
}
|
|
853
1096
|
});
|
|
854
|
-
let
|
|
1097
|
+
let ae = k(() => {
|
|
855
1098
|
let e = [];
|
|
856
1099
|
return (n.field?.form?.dynamicFieldList || []).forEach((t) => {
|
|
857
1100
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
858
1101
|
t.type === "dynamicvaluefield" && e.push(t);
|
|
859
1102
|
});
|
|
860
1103
|
}), e;
|
|
861
|
-
}),
|
|
1104
|
+
}), oe = k(() => {
|
|
862
1105
|
let e = [];
|
|
863
1106
|
return (n.field?.form?.dynamicFieldList || []).forEach((t) => {
|
|
864
1107
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
865
1108
|
(t.extraAddonBefore && t.addonBefore || t.extraAddonAfter && t.addonAfter) && e.push(t);
|
|
866
1109
|
});
|
|
867
1110
|
}), e;
|
|
868
|
-
}),
|
|
869
|
-
|
|
870
|
-
|
|
1111
|
+
}), T = H(!1), se = k(() => n.field?.showType !== "table" || n.is_form_design ? !1 : (n.field?.form?.dynamicFieldList || []).some((e) => e.children instanceof Array && e.children.some((e) => e.type === "remoteselectpro" && e.postUrl && !e.is_table_hide_column))), E = H(!1), ce = () => {
|
|
1112
|
+
E.value = !1, D(), P();
|
|
1113
|
+
}, D = (0, Q.debounce)(async () => {
|
|
1114
|
+
if (!T.value && !E.value) {
|
|
1115
|
+
T.value = !0;
|
|
871
1116
|
try {
|
|
872
1117
|
let e = n.value;
|
|
873
|
-
if (!e || e.length === 0 ||
|
|
1118
|
+
if (!e || e.length === 0 || ae.value.length === 0) return;
|
|
874
1119
|
let t = !1, i = [...e];
|
|
875
1120
|
for (let e = 0; e < i.length; e++) {
|
|
876
|
-
let r =
|
|
1121
|
+
let r = b.value[e], a = [
|
|
877
1122
|
...n.baseKeyPath || [],
|
|
878
1123
|
n.field.name,
|
|
879
1124
|
e
|
|
880
1125
|
];
|
|
881
|
-
for (let o of
|
|
882
|
-
let s = i[e]?.[o.name], c = await
|
|
1126
|
+
for (let o of ae.value) {
|
|
1127
|
+
let s = i[e]?.[o.name], c = await rt({
|
|
883
1128
|
field: o,
|
|
884
1129
|
currentValue: s,
|
|
885
1130
|
innerModel: r,
|
|
@@ -898,98 +1143,98 @@ var Ue = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, We = (e, t) =>
|
|
|
898
1143
|
}
|
|
899
1144
|
t && r("update:value", i);
|
|
900
1145
|
} finally {
|
|
901
|
-
|
|
1146
|
+
T.value = !1;
|
|
902
1147
|
}
|
|
903
1148
|
}
|
|
904
|
-
}, 200),
|
|
1149
|
+
}, 200), P = (0, Q.debounce)(() => {
|
|
905
1150
|
let e = n.value;
|
|
906
|
-
if (!e || e.length === 0 ||
|
|
1151
|
+
if (!e || e.length === 0 || oe.value.length === 0) return;
|
|
907
1152
|
let t = !1, i = [...e];
|
|
908
1153
|
for (let e = 0; e < i.length; e++) {
|
|
909
1154
|
let n = i[e];
|
|
910
1155
|
if (!n || typeof n != "object") continue;
|
|
911
1156
|
let r = n;
|
|
912
|
-
for (let e of
|
|
913
|
-
let i = r[e.name], a =
|
|
1157
|
+
for (let e of oe.value) {
|
|
1158
|
+
let i = r[e.name], a = ct(e, i);
|
|
914
1159
|
a !== i && (r === n && (r = { ...n }), r[e.name] = a, t = !0);
|
|
915
1160
|
}
|
|
916
1161
|
i[e] = r;
|
|
917
1162
|
}
|
|
918
1163
|
t && r("update:value", i);
|
|
919
1164
|
}, 200);
|
|
920
|
-
return
|
|
1165
|
+
return q(() => [
|
|
921
1166
|
n.value,
|
|
922
|
-
n.innerModel,
|
|
923
|
-
n.globalInnerModel,
|
|
924
1167
|
n.context,
|
|
925
1168
|
n.field
|
|
926
1169
|
], () => {
|
|
927
|
-
|
|
1170
|
+
se.value ? E.value = !0 : E.value = !1, D(), P();
|
|
928
1171
|
}, {
|
|
929
1172
|
deep: !0,
|
|
930
1173
|
immediate: !0
|
|
931
|
-
}),
|
|
932
|
-
|
|
1174
|
+
}), q(() => [n.innerModel, n.globalInnerModel], () => {
|
|
1175
|
+
D(), P();
|
|
1176
|
+
}, { deep: !0 }), R(() => {
|
|
1177
|
+
if (window.addEventListener("resize", w), w(), !(n.value instanceof Array) || n.value.length < y.value) {
|
|
933
1178
|
let e = [...n.value || []];
|
|
934
1179
|
for (; e.length < y.value;) e.push((0, Q.cloneDeep)(n.field.form.model || {}));
|
|
935
1180
|
r("update:value", e);
|
|
936
1181
|
}
|
|
937
|
-
}),
|
|
938
|
-
window.removeEventListener("resize",
|
|
1182
|
+
}), z(() => {
|
|
1183
|
+
window.removeEventListener("resize", w), w.cancel(), D.cancel(), P.cancel();
|
|
939
1184
|
}), (e, t) => {
|
|
940
|
-
let n =
|
|
941
|
-
return
|
|
942
|
-
e.is_form_design ? (
|
|
1185
|
+
let n = W("a-button");
|
|
1186
|
+
return B(), M(O, null, [N("div", lt, [
|
|
1187
|
+
e.is_form_design ? (B(), A(n, {
|
|
943
1188
|
key: 0,
|
|
944
1189
|
type: "primary",
|
|
945
1190
|
size: "small",
|
|
946
|
-
onClick:
|
|
1191
|
+
onClick: ie,
|
|
947
1192
|
ghost: !0
|
|
948
1193
|
}, {
|
|
949
|
-
default:
|
|
1194
|
+
default: J(() => t[0] ||= [F(" 编辑表单 ")]),
|
|
950
1195
|
_: 1
|
|
951
|
-
})) :
|
|
952
|
-
f.value ? (
|
|
1196
|
+
})) : j("", !0),
|
|
1197
|
+
f.value ? (B(), A(n, {
|
|
953
1198
|
key: 1,
|
|
954
1199
|
size: "small",
|
|
955
1200
|
type: "primary",
|
|
956
1201
|
onClick: d,
|
|
957
1202
|
danger: !0
|
|
958
1203
|
}, {
|
|
959
|
-
default:
|
|
1204
|
+
default: J(() => t[1] ||= [F(" 清空 ")]),
|
|
960
1205
|
_: 1
|
|
961
|
-
})) :
|
|
962
|
-
|
|
1206
|
+
})) : j("", !0),
|
|
1207
|
+
c.value ? (B(), A(n, {
|
|
963
1208
|
key: 2,
|
|
964
1209
|
size: "small",
|
|
965
1210
|
type: "primary",
|
|
966
|
-
loading:
|
|
967
|
-
onClick:
|
|
1211
|
+
loading: _.value,
|
|
1212
|
+
onClick: ee
|
|
968
1213
|
}, {
|
|
969
|
-
default:
|
|
1214
|
+
default: J(() => t[2] ||= [F(" 下载导入模版 ")]),
|
|
970
1215
|
_: 1
|
|
971
|
-
}, 8, ["loading"])) :
|
|
972
|
-
|
|
1216
|
+
}, 8, ["loading"])) : j("", !0),
|
|
1217
|
+
l.value ? (B(), A(n, {
|
|
973
1218
|
key: 3,
|
|
974
1219
|
size: "small",
|
|
975
1220
|
type: "primary",
|
|
976
|
-
onClick:
|
|
1221
|
+
onClick: g
|
|
977
1222
|
}, {
|
|
978
|
-
default:
|
|
1223
|
+
default: J(() => t[3] ||= [F(" 导入Excel数据 ")]),
|
|
979
1224
|
_: 1
|
|
980
|
-
})) :
|
|
981
|
-
p.value && (!e.field.custom_btn_list?.length || e.field.max_count !== y.value) ? (
|
|
1225
|
+
})) : j("", !0),
|
|
1226
|
+
p.value && (!e.field.custom_btn_list?.length || e.field.max_count !== y.value) ? (B(), A(n, {
|
|
982
1227
|
key: 4,
|
|
983
1228
|
type: "primary",
|
|
984
1229
|
size: "small",
|
|
985
|
-
onClick:
|
|
1230
|
+
onClick: ne,
|
|
986
1231
|
disabled: e.field.max_count && e.value.length >= e.field.max_count
|
|
987
1232
|
}, {
|
|
988
|
-
icon:
|
|
989
|
-
default:
|
|
1233
|
+
icon: J(() => [I(ge(Te))]),
|
|
1234
|
+
default: J(() => [F(" " + K(e.field.btn_title || "添加"), 1)]),
|
|
990
1235
|
_: 1
|
|
991
|
-
}, 8, ["disabled"])) :
|
|
992
|
-
(
|
|
1236
|
+
}, 8, ["disabled"])) : j("", !0),
|
|
1237
|
+
(B(!0), M(O, null, U(e.field.custom_btn_list, (t) => (B(), A(C, {
|
|
993
1238
|
action_code_id: t.action_code_id,
|
|
994
1239
|
code: t.code,
|
|
995
1240
|
"onUpdate:code": (e) => t.code = e,
|
|
@@ -997,14 +1242,14 @@ var Ue = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, We = (e, t) =>
|
|
|
997
1242
|
"onUpdate:action": (e) => t.action = e,
|
|
998
1243
|
options: o
|
|
999
1244
|
}, {
|
|
1000
|
-
default:
|
|
1245
|
+
default: J(() => [I(n, {
|
|
1001
1246
|
size: "small",
|
|
1002
1247
|
type: t.type,
|
|
1003
1248
|
danger: t.danger,
|
|
1004
1249
|
onClick: (e) => S(t),
|
|
1005
1250
|
disabled: e.field.max_count && e.value.length >= e.field.max_count && t.action === "add"
|
|
1006
1251
|
}, {
|
|
1007
|
-
default:
|
|
1252
|
+
default: J(() => [F(K(t.label), 1)]),
|
|
1008
1253
|
_: 2
|
|
1009
1254
|
}, 1032, [
|
|
1010
1255
|
"type",
|
|
@@ -1020,7 +1265,7 @@ var Ue = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, We = (e, t) =>
|
|
|
1020
1265
|
"action",
|
|
1021
1266
|
"onUpdate:action"
|
|
1022
1267
|
]))), 256))
|
|
1023
|
-
]), e.field.showType === "table" ? (
|
|
1268
|
+
]), e.field.showType === "table" ? (B(), A($e, {
|
|
1024
1269
|
key: 0,
|
|
1025
1270
|
value: e.value,
|
|
1026
1271
|
field: e.field,
|
|
@@ -1033,7 +1278,8 @@ var Ue = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, We = (e, t) =>
|
|
|
1033
1278
|
"worker-host-functions": e.workerHostFunctions,
|
|
1034
1279
|
min_count: y.value,
|
|
1035
1280
|
formModel: e.formModel,
|
|
1036
|
-
onRemove:
|
|
1281
|
+
onRemove: re,
|
|
1282
|
+
onLabels_resolved: ce
|
|
1037
1283
|
}, null, 8, [
|
|
1038
1284
|
"value",
|
|
1039
1285
|
"field",
|
|
@@ -1046,7 +1292,7 @@ var Ue = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, We = (e, t) =>
|
|
|
1046
1292
|
"worker-host-functions",
|
|
1047
1293
|
"min_count",
|
|
1048
1294
|
"formModel"
|
|
1049
|
-
])) : (
|
|
1295
|
+
])) : (B(!0), M(O, { key: 1 }, U(e.value, (t, n) => (B(), A(Ne, {
|
|
1050
1296
|
form: e.field.form,
|
|
1051
1297
|
field: e.field,
|
|
1052
1298
|
value: e.value[n],
|
|
@@ -1054,7 +1300,7 @@ var Ue = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, We = (e, t) =>
|
|
|
1054
1300
|
options: e.field.form?.options,
|
|
1055
1301
|
alwaysShowGroup: e.alwaysShowGroup,
|
|
1056
1302
|
is_form_design: e.is_form_design,
|
|
1057
|
-
"inner-model":
|
|
1303
|
+
"inner-model": b.value[n],
|
|
1058
1304
|
"global-inner-model": e.globalInnerModel,
|
|
1059
1305
|
modalTypeList: e.modalTypeList,
|
|
1060
1306
|
modalType: e.modalType,
|
|
@@ -1062,7 +1308,7 @@ var Ue = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, We = (e, t) =>
|
|
|
1062
1308
|
min_count: y.value,
|
|
1063
1309
|
listLength: e.value.length,
|
|
1064
1310
|
context: e.context,
|
|
1065
|
-
onRemove: (e) =>
|
|
1311
|
+
onRemove: (e) => re(n),
|
|
1066
1312
|
"base-key-path": [
|
|
1067
1313
|
...e.baseKeyPath,
|
|
1068
1314
|
e.field.name,
|
|
@@ -1091,10 +1337,10 @@ var Ue = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, We = (e, t) =>
|
|
|
1091
1337
|
]))), 256))], 64);
|
|
1092
1338
|
};
|
|
1093
1339
|
}
|
|
1094
|
-
}), [["__scopeId", "data-v-
|
|
1340
|
+
}), [["__scopeId", "data-v-d8afd833"]]), dt = {
|
|
1095
1341
|
key: 0,
|
|
1096
1342
|
class: "error-msg"
|
|
1097
|
-
},
|
|
1343
|
+
}, ft = /*#__PURE__*/ n(/* @__PURE__ */ L({
|
|
1098
1344
|
name: "DynamicValueField",
|
|
1099
1345
|
__name: "DynamicValueField",
|
|
1100
1346
|
props: {
|
|
@@ -1134,8 +1380,8 @@ var Ue = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, We = (e, t) =>
|
|
|
1134
1380
|
},
|
|
1135
1381
|
emits: ["update:value"],
|
|
1136
1382
|
setup(e, { emit: t }) {
|
|
1137
|
-
let n = e, r = t, i =
|
|
1138
|
-
let l = await
|
|
1383
|
+
let n = e, r = t, i = H(null), a = H(n.value || ""), o = k(() => n.is_form_design ? a.value : n.value), s = (0, Q.debounce)(async (e, t, s, c) => {
|
|
1384
|
+
let l = await rt({
|
|
1139
1385
|
field: s,
|
|
1140
1386
|
currentValue: o.value,
|
|
1141
1387
|
innerModel: e,
|
|
@@ -1148,7 +1394,7 @@ var Ue = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, We = (e, t) =>
|
|
|
1148
1394
|
});
|
|
1149
1395
|
l && (n.is_form_design ? a.value = l.value ?? "" : l.value !== void 0 && l.value !== null && r("update:value", l.value), (s.watchType === "code" || s.watchType === "serial") && (i.value = l.error || null));
|
|
1150
1396
|
}, 200);
|
|
1151
|
-
return
|
|
1397
|
+
return q(() => [
|
|
1152
1398
|
n.innerModel,
|
|
1153
1399
|
n.globalInnerModel,
|
|
1154
1400
|
n.field,
|
|
@@ -1160,22 +1406,22 @@ var Ue = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, We = (e, t) =>
|
|
|
1160
1406
|
immediate: !0,
|
|
1161
1407
|
deep: !0
|
|
1162
1408
|
}), (t, n) => {
|
|
1163
|
-
let r =
|
|
1164
|
-
return
|
|
1409
|
+
let r = W("a-input");
|
|
1410
|
+
return B(), M(O, null, [I(C, {
|
|
1165
1411
|
"value-code": e.field,
|
|
1166
1412
|
"show-debug-code": e.field.watchType === "code"
|
|
1167
1413
|
}, {
|
|
1168
|
-
default:
|
|
1414
|
+
default: J(() => [I(r, {
|
|
1169
1415
|
value: o.value,
|
|
1170
1416
|
readonly: "",
|
|
1171
1417
|
size: "small",
|
|
1172
1418
|
style: { "background-color": "#f5f5f5" }
|
|
1173
1419
|
}, null, 8, ["value"])]),
|
|
1174
1420
|
_: 1
|
|
1175
|
-
}, 8, ["value-code", "show-debug-code"]), i.value ? (
|
|
1421
|
+
}, 8, ["value-code", "show-debug-code"]), i.value ? (B(), M("span", dt, K(i.value), 1)) : j("", !0)], 64);
|
|
1176
1422
|
};
|
|
1177
1423
|
}
|
|
1178
|
-
}), [["__scopeId", "data-v-f7dbd183"]]),
|
|
1424
|
+
}), [["__scopeId", "data-v-f7dbd183"]]), pt = L({
|
|
1179
1425
|
name: "FormButton",
|
|
1180
1426
|
components: { debugCode: C },
|
|
1181
1427
|
props: {
|
|
@@ -1224,13 +1470,13 @@ var Ue = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, We = (e, t) =>
|
|
|
1224
1470
|
if (e.field.code) {
|
|
1225
1471
|
let t;
|
|
1226
1472
|
try {
|
|
1227
|
-
t = await
|
|
1473
|
+
t = await u(e.field.code, {
|
|
1228
1474
|
context: e.context,
|
|
1229
1475
|
formModel: e.formModel,
|
|
1230
1476
|
keyPath: [...e.baseKeyPath, e.field.name]
|
|
1231
1477
|
}, e.workerHostFunctions || {});
|
|
1232
1478
|
} catch (e) {
|
|
1233
|
-
|
|
1479
|
+
xe.error(e.message);
|
|
1234
1480
|
return;
|
|
1235
1481
|
}
|
|
1236
1482
|
t && Object.assign(e.formModel, t);
|
|
@@ -1243,21 +1489,21 @@ var Ue = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, We = (e, t) =>
|
|
|
1243
1489
|
});
|
|
1244
1490
|
//#endregion
|
|
1245
1491
|
//#region src/components/FormRender/FormButton/FormButton.vue
|
|
1246
|
-
function
|
|
1247
|
-
let o =
|
|
1248
|
-
return
|
|
1492
|
+
function mt(e, t, n, r, i, a) {
|
|
1493
|
+
let o = W("a-button"), s = W("debug-code");
|
|
1494
|
+
return B(), A(s, {
|
|
1249
1495
|
action_code_id: e.field.action_code_id,
|
|
1250
1496
|
code: e.field.code,
|
|
1251
1497
|
"onUpdate:code": t[0] ||= (t) => e.field.code = t
|
|
1252
1498
|
}, {
|
|
1253
|
-
default:
|
|
1499
|
+
default: J(() => [I(o, {
|
|
1254
1500
|
danger: e.field.danger,
|
|
1255
1501
|
type: e.field.btn_type,
|
|
1256
1502
|
disabled: e.field.disabled,
|
|
1257
1503
|
size: "small",
|
|
1258
1504
|
onClick: e.handlClick
|
|
1259
1505
|
}, {
|
|
1260
|
-
default:
|
|
1506
|
+
default: J(() => [F(K(e.field.label), 1)]),
|
|
1261
1507
|
_: 1
|
|
1262
1508
|
}, 8, [
|
|
1263
1509
|
"danger",
|
|
@@ -1268,7 +1514,7 @@ function $e(e, t, n, r, i, a) {
|
|
|
1268
1514
|
_: 1
|
|
1269
1515
|
}, 8, ["action_code_id", "code"]);
|
|
1270
1516
|
}
|
|
1271
|
-
var
|
|
1517
|
+
var ht = /*#__PURE__*/ n(pt, [["render", mt]]), gt = L({
|
|
1272
1518
|
name: "InputNumberPro",
|
|
1273
1519
|
props: {
|
|
1274
1520
|
field: {
|
|
@@ -1285,18 +1531,18 @@ var et = /*#__PURE__*/ t(Qe, [["render", $e]]), tt = z({
|
|
|
1285
1531
|
setup(e, { emit: t }) {
|
|
1286
1532
|
return {
|
|
1287
1533
|
update: (n) => {
|
|
1288
|
-
t("update:value",
|
|
1534
|
+
t("update:value", ct(e.field, n));
|
|
1289
1535
|
},
|
|
1290
|
-
innerValue:
|
|
1291
|
-
let t =
|
|
1536
|
+
innerValue: k(() => {
|
|
1537
|
+
let t = st(e.field, e.value);
|
|
1292
1538
|
return typeof t == "string" && (t = parseFloat(t), isNaN(t) && (t = null)), t;
|
|
1293
1539
|
})
|
|
1294
1540
|
};
|
|
1295
1541
|
}
|
|
1296
|
-
}),
|
|
1297
|
-
function
|
|
1298
|
-
let o =
|
|
1299
|
-
return
|
|
1542
|
+
}), _t = { key: 0 }, vt = { key: 0 }, yt = { key: 0 };
|
|
1543
|
+
function bt(e, t, n, r, i, a) {
|
|
1544
|
+
let o = W("a-input-number");
|
|
1545
|
+
return B(), A(o, {
|
|
1300
1546
|
value: e.innerValue,
|
|
1301
1547
|
autocomplete: e.field.autocomplete == null ? "off" : e.field.autocomplete,
|
|
1302
1548
|
"default-value": e.field.defaultValue,
|
|
@@ -1309,20 +1555,20 @@ function at(e, t, n, r, i, a) {
|
|
|
1309
1555
|
step: e.field.step,
|
|
1310
1556
|
size: "small",
|
|
1311
1557
|
"onUpdate:value": e.update
|
|
1312
|
-
},
|
|
1558
|
+
}, P({ _: 2 }, [
|
|
1313
1559
|
e.field?.prefix || e.field?.prefixIcon ? {
|
|
1314
1560
|
name: "prefix",
|
|
1315
|
-
fn:
|
|
1561
|
+
fn: J(() => [e.field?.prefix ? (B(), M("span", _t, K(e.field.prefix), 1)) : j("", !0), e.field?.prefixIcon ? (B(), A(G(e.field?.prefixIcon), { key: 1 })) : j("", !0)]),
|
|
1316
1562
|
key: "0"
|
|
1317
1563
|
} : void 0,
|
|
1318
1564
|
e.field?.addonBefore || e.field?.addonBeforeIcon ? {
|
|
1319
1565
|
name: "addonBefore",
|
|
1320
|
-
fn:
|
|
1566
|
+
fn: J(() => [e.field?.addonBefore ? (B(), M("span", vt, K(e.field.addonBefore), 1)) : j("", !0), e.field?.addonBeforeIcon ? (B(), A(G(e.field?.addonBeforeIcon), { key: 1 })) : j("", !0)]),
|
|
1321
1567
|
key: "1"
|
|
1322
1568
|
} : void 0,
|
|
1323
1569
|
e.field?.addonAfter || e.field?.addonAfterIcon ? {
|
|
1324
1570
|
name: "addonAfter",
|
|
1325
|
-
fn:
|
|
1571
|
+
fn: J(() => [e.field?.addonAfter ? (B(), M("span", yt, K(e.field.addonAfter), 1)) : j("", !0), e.field?.addonAfterIcon ? (B(), A(G(e.field?.addonAfterIcon), { key: 1 })) : j("", !0)]),
|
|
1326
1572
|
key: "2"
|
|
1327
1573
|
} : void 0
|
|
1328
1574
|
]), 1032, [
|
|
@@ -1339,9 +1585,9 @@ function at(e, t, n, r, i, a) {
|
|
|
1339
1585
|
"onUpdate:value"
|
|
1340
1586
|
]);
|
|
1341
1587
|
}
|
|
1342
|
-
var
|
|
1588
|
+
var xt = /*#__PURE__*/ n(gt, [["render", bt], ["__scopeId", "data-v-f97da831"]]), St = { key: 0 }, Ct = { key: 0 }, wt = { key: 0 }, Tt = { key: 0 }, Et = /*#__PURE__*/ n(/* @__PURE__ */ L({
|
|
1343
1589
|
__name: "InputPro",
|
|
1344
|
-
props: /*@__PURE__*/
|
|
1590
|
+
props: /*@__PURE__*/ de({ field: {
|
|
1345
1591
|
type: Object,
|
|
1346
1592
|
required: !0
|
|
1347
1593
|
} }, {
|
|
@@ -1350,17 +1596,17 @@ var ot = /*#__PURE__*/ t(tt, [["render", at], ["__scopeId", "data-v-f97da831"]])
|
|
|
1350
1596
|
}),
|
|
1351
1597
|
emits: ["update:value"],
|
|
1352
1598
|
setup(e) {
|
|
1353
|
-
let t =
|
|
1354
|
-
get: () =>
|
|
1599
|
+
let t = _e(e, "value"), n = e, r = k({
|
|
1600
|
+
get: () => st(n.field, t.value),
|
|
1355
1601
|
set: (e) => {
|
|
1356
|
-
t.value =
|
|
1602
|
+
t.value = ct(n.field, e);
|
|
1357
1603
|
}
|
|
1358
1604
|
}), i = (e) => {
|
|
1359
1605
|
r.value = e;
|
|
1360
1606
|
};
|
|
1361
1607
|
return (t, n) => {
|
|
1362
|
-
let a =
|
|
1363
|
-
return
|
|
1608
|
+
let a = W("a-input");
|
|
1609
|
+
return B(), A(a, {
|
|
1364
1610
|
value: r.value,
|
|
1365
1611
|
"onUpdate:value": [n[0] ||= (e) => r.value = e, i],
|
|
1366
1612
|
"allow-clear": e.field.allowClear == null ? !0 : e.field.allowClear,
|
|
@@ -1371,25 +1617,25 @@ var ot = /*#__PURE__*/ t(tt, [["render", at], ["__scopeId", "data-v-f97da831"]])
|
|
|
1371
1617
|
placeholder: e.field.placeholder ? e.field.placeholder : t.$t("请输入") + e.field.label,
|
|
1372
1618
|
type: e.field.inputType ? e.field.inputType : "text",
|
|
1373
1619
|
size: "small"
|
|
1374
|
-
},
|
|
1620
|
+
}, P({ _: 2 }, [
|
|
1375
1621
|
e.field?.prefix || e.field?.prefixIcon ? {
|
|
1376
1622
|
name: "prefix",
|
|
1377
|
-
fn:
|
|
1623
|
+
fn: J(() => [e.field?.prefix ? (B(), M("span", St, K(e.field.prefix), 1)) : j("", !0), e.field?.prefixIcon ? (B(), A(G(e.field?.prefixIcon), { key: 1 })) : j("", !0)]),
|
|
1378
1624
|
key: "0"
|
|
1379
1625
|
} : void 0,
|
|
1380
1626
|
e.field?.suffix || e.field?.suffixIcon ? {
|
|
1381
1627
|
name: "suffix",
|
|
1382
|
-
fn:
|
|
1628
|
+
fn: J(() => [e.field?.suffix ? (B(), M("span", Ct, K(e.field.suffix), 1)) : j("", !0), e.field?.suffixIcon ? (B(), A(G(e.field?.suffixIcon), { key: 1 })) : j("", !0)]),
|
|
1383
1629
|
key: "1"
|
|
1384
1630
|
} : void 0,
|
|
1385
1631
|
e.field?.addonBefore || e.field?.addonBeforeIcon ? {
|
|
1386
1632
|
name: "addonBefore",
|
|
1387
|
-
fn:
|
|
1633
|
+
fn: J(() => [e.field?.addonBefore ? (B(), M("span", wt, K(e.field.addonBefore), 1)) : j("", !0), e.field?.addonBeforeIcon ? (B(), A(G(e.field?.addonBeforeIcon), { key: 1 })) : j("", !0)]),
|
|
1388
1634
|
key: "2"
|
|
1389
1635
|
} : void 0,
|
|
1390
1636
|
e.field?.addonAfter || e.field?.addonAfterIcon ? {
|
|
1391
1637
|
name: "addonAfter",
|
|
1392
|
-
fn:
|
|
1638
|
+
fn: J(() => [e.field?.addonAfter ? (B(), M("span", Tt, K(e.field.addonAfter), 1)) : j("", !0), e.field?.addonAfterIcon ? (B(), A(G(e.field?.addonAfterIcon), { key: 1 })) : j("", !0)]),
|
|
1393
1639
|
key: "3"
|
|
1394
1640
|
} : void 0
|
|
1395
1641
|
]), 1032, [
|
|
@@ -1404,9 +1650,9 @@ var ot = /*#__PURE__*/ t(tt, [["render", at], ["__scopeId", "data-v-f97da831"]])
|
|
|
1404
1650
|
]);
|
|
1405
1651
|
};
|
|
1406
1652
|
}
|
|
1407
|
-
}), [["__scopeId", "data-v-d9fd59f5"]]), $ = (e, t = "YYYY-MM-DD") =>
|
|
1653
|
+
}), [["__scopeId", "data-v-d9fd59f5"]]), $ = (e, t = "YYYY-MM-DD") => Y(e, t, !0).isValid(), Dt = (e, t = "YYYY-MM-DD HH:mm:ss") => Y(e, t, !0).isValid(), Ot = (e, t = "HH:mm:ss") => Y(e, t, !0).isValid(), kt = L({
|
|
1408
1654
|
name: "FieldRender2",
|
|
1409
|
-
methods: { isArray:
|
|
1655
|
+
methods: { isArray: Ce },
|
|
1410
1656
|
props: {
|
|
1411
1657
|
field: {
|
|
1412
1658
|
type: Object,
|
|
@@ -1504,56 +1750,56 @@ var ot = /*#__PURE__*/ t(tt, [["render", at], ["__scopeId", "data-v-f97da831"]])
|
|
|
1504
1750
|
"update_name2"
|
|
1505
1751
|
],
|
|
1506
1752
|
setup(e, { emit: t }) {
|
|
1507
|
-
let n =
|
|
1753
|
+
let n = H({ ...e.formModel }), r = (e) => typeof e == "string" && e.indexOf(",") >= 0 ? e.split(",") : e, i = (e, t) => {
|
|
1508
1754
|
let n;
|
|
1509
|
-
return t == "int" ?
|
|
1510
|
-
|
|
1511
|
-
})) : n =
|
|
1512
|
-
|
|
1513
|
-
})) : n =
|
|
1514
|
-
$(e) && typeof e == "string" ? n.push(
|
|
1515
|
-
})) : n = $(e) && typeof e == "string" ? e.toString() : e : t == "datetime" ?
|
|
1516
|
-
|
|
1517
|
-
})) : n =
|
|
1518
|
-
|
|
1519
|
-
})) : n =
|
|
1520
|
-
|
|
1521
|
-
})) : n =
|
|
1522
|
-
|
|
1523
|
-
})) : n =
|
|
1524
|
-
},
|
|
1755
|
+
return t == "int" ? s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1756
|
+
s(e) && typeof e == "string" ? n.push(Number(e)) : n.push(e);
|
|
1757
|
+
})) : n = s(e) && typeof e == "string" ? Number(e) : e : t == "str" ? s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1758
|
+
s(e) && typeof e == "number" ? n.push(e.toString()) : n.push(e);
|
|
1759
|
+
})) : n = s(e) && typeof e == "number" ? e.toString() : e : t == "date" ? s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1760
|
+
$(e) && typeof e == "string" ? n.push(Y(e, "YYYY-MM-DD")) : n.push(e);
|
|
1761
|
+
})) : n = $(e) && typeof e == "string" ? e.toString() : e : t == "datetime" ? s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1762
|
+
Dt(e) && typeof e == "string" ? n.push(Y(e, "YYYY-MM-DD HH:mm:ss")) : n.push(e);
|
|
1763
|
+
})) : n = Dt(e) && typeof e == "string" ? Y(e, "YYYY-MM-DD HH:mm:ss") : e : t == "time" ? s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1764
|
+
Ot(e) && typeof e == "string" ? n.push(Y(e, "HH:mm:ss")) : n.push(e);
|
|
1765
|
+
})) : n = Ot(e) && typeof e == "string" ? Y(e, "HH:mm:ss") : e : t == "float" ? s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1766
|
+
s(e) && typeof e == "string" ? n.push(Number(e)) : n.push(e);
|
|
1767
|
+
})) : n = s(e) && typeof e == "string" ? Number(e) : e : t == "bool" && (s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1768
|
+
s(e) && typeof e == "string" ? n.push(!!e) : n.push(e);
|
|
1769
|
+
})) : n = s(e) && typeof e == "string" ? !!e : e), n;
|
|
1770
|
+
}, a = H(e.is_show_field), c = H(!1), l = k(() => e.is_form_design && e.field.type === "remotetablepro"), u = () => {
|
|
1525
1771
|
t("update:is_edit", c.value);
|
|
1526
1772
|
}, d = () => {
|
|
1527
1773
|
t("add");
|
|
1528
|
-
}, f =
|
|
1529
|
-
let r =
|
|
1530
|
-
e.field?.is_hide && (
|
|
1774
|
+
}, f = Se(() => {
|
|
1775
|
+
let r = a.value;
|
|
1776
|
+
e.field?.is_hide && (a.value = !1, a.value !== r && (a.value ? (n.value[e.field.name] = null, t("update_model", {
|
|
1531
1777
|
add_key: e.field.name,
|
|
1532
1778
|
value: null
|
|
1533
1779
|
})) : (delete n.value[e.field.name], t("update_model", { remove_key: e.field.name }))));
|
|
1534
|
-
let
|
|
1780
|
+
let s = [];
|
|
1535
1781
|
for (let t in e.field?.conditions) {
|
|
1536
1782
|
let n = e.field?.conditions[t], r = [];
|
|
1537
1783
|
for (let t in n) {
|
|
1538
|
-
let
|
|
1539
|
-
c =
|
|
1784
|
+
let a = n[t], s = e.formModel[a.watchKey], c;
|
|
1785
|
+
c = a.class_name ? i(a.value, a.class_name) : a.value;
|
|
1540
1786
|
let l, u;
|
|
1541
|
-
c instanceof Array && ([l, u] = c),
|
|
1787
|
+
c instanceof Array && ([l, u] = c), a.operator == "lt" ? typeof l == "number" ? o(s) ? r.push(!1) : s < l ? r.push(!0) : r.push(!1) : $(l) && (o(s) ? r.push(!1) : Y(s).isBefore(Y(l)) ? r.push(!0) : r.push(!1)) : a.operator == "lte" ? typeof l == "number" ? o(s) ? r.push(!1) : s <= l ? r.push(!0) : r.push(!1) : $(l) && (o(s) ? r.push(!1) : Y(s).isBefore(Y(l)) || Y(s).isSame(Y(l)) ? r.push(!0) : r.push(!1)) : a.operator == "gt" ? typeof l == "number" ? o(s) ? r.push(!1) : s > l ? r.push(!0) : r.push(!1) : $(l) && (o(s) ? r.push(!1) : Y(s).isAfter(Y(l)) ? r.push(!0) : r.push(!1)) : a.operator == "gte" ? typeof l == "number" ? o(s) ? r.push(!1) : s >= l ? r.push(!0) : r.push(!1) : $(l) && (o(s) ? r.push(!1) : Y(s).isAfter(Y(l)) || Y(s).isSame(Y(l)) ? r.push(!0) : r.push(!1)) : a.operator == "between" ? typeof l == "number" && typeof u == "number" && l && u ? o(s) ? r.push(!1) : s >= l && s <= u ? r.push(!0) : r.push(!1) : $(l) && (o(s) ? r.push(!1) : (Y(s).isAfter(Y(l)) || Y(s).isSame(Y(l))) && (Y(s).isBefore(Y(u)) || Y(s).isSame(Y(u))) ? r.push(!0) : r.push(!1)) : a.operator == "notbetween" ? typeof l == "number" && typeof u == "number" && l && u ? o(s) ? r.push(!1) : s < l || s > u ? r.push(!0) : r.push(!1) : $(l) && (o(s) ? r.push(!1) : Y(s).isBefore(Y(l)) || Y(s).isAfter(Y(u)) ? r.push(!0) : r.push(!1)) : a.operator == "in" ? s instanceof Array ? c.filter((e) => s.includes(e)).length > 0 ? r.push(!0) : r.push(!1) : (typeof s == "string" || typeof s == "number" || o(s)) && (c.find((e) => s == e) ? r.push(!0) : r.push(!1)) : a.operator == "eq" ? s === l ? r.push(!0) : r.push(!1) : a.operator == "contains" ? s.toString().indexOf(l) > -1 ? r.push(!0) : r.push(!1) : a.operator == "startswith" ? s.toString().startsWith(l) ? r.push(!0) : r.push(!1) : a.operator == "notin" ? s instanceof Array ? c.filter((e) => s.includes(e)).length > 0 ? r.push(!0) : r.push(!1) : (typeof s == "string" || typeof s == "number" || o(s)) && (c.find((e) => s == e) ? r.push(!1) : r.push(!0)) : a.operator == "notcontains" ? s.toString().indexOf(l) == -1 ? r.push(!0) : r.push(!1) : a.operator == "_eq" || (a.operator == "json_list_not_blank_not_null" ? s ? r.push(!0) : r.push(!1) : a.operator == "json_list_is_blank_is_null" || a.operator == "not_eq" ? s ? r.push(!1) : r.push(!0) : a.operator == "not_blank_not_null" && (s ? r.push(!0) : r.push(!1)));
|
|
1542
1788
|
}
|
|
1543
|
-
|
|
1789
|
+
s.push(r);
|
|
1544
1790
|
}
|
|
1545
1791
|
let c = [];
|
|
1546
|
-
|
|
1792
|
+
s.forEach((e) => {
|
|
1547
1793
|
let t = e.filter((e) => e === !1);
|
|
1548
1794
|
t && t.length > 0 ? c.push(!1) : c.push(!0);
|
|
1549
1795
|
});
|
|
1550
1796
|
let l = c.filter((e) => e === !0);
|
|
1551
|
-
l && l.length > 0 ? (
|
|
1797
|
+
l && l.length > 0 ? (a.value = !0, t("update:is_show_field", a.value)) : (a.value = !1, t("update:is_show_field", a.value)), a.value !== r && (a.value ? (n.value[e.field.name] = null, t("update_model", {
|
|
1552
1798
|
add_key: e.field.name,
|
|
1553
1799
|
value: null
|
|
1554
1800
|
})) : (delete n.value[e.field.name], t("update_model", { remove_key: e.field.name })));
|
|
1555
|
-
}, 300), p =
|
|
1556
|
-
|
|
1801
|
+
}, 300), p = H(""), m = H(e.label);
|
|
1802
|
+
q(() => p.value, (n) => {
|
|
1557
1803
|
if (t("update:value", n), e.field.name2) {
|
|
1558
1804
|
let r;
|
|
1559
1805
|
if (e.field.type === "radio") r = e.options.find((t) => t[e.field.valueKey ? e.field.valueKey : "value"] == n)?.[e.field.labelKey ? e.field.labelKey : "label"];
|
|
@@ -1564,7 +1810,7 @@ var ot = /*#__PURE__*/ t(tt, [["render", at], ["__scopeId", "data-v-f97da831"]])
|
|
|
1564
1810
|
n == r?.[e.field.valueKey ? e.field.valueKey : "value"] && t.push(r?.[e.field.labelKey ? e.field.labelKey : "label"]);
|
|
1565
1811
|
});
|
|
1566
1812
|
}), r = t.toString();
|
|
1567
|
-
} else if (e.field.type === "select") if (
|
|
1813
|
+
} else if (e.field.type === "select") if (Ce(n)) {
|
|
1568
1814
|
let t = [];
|
|
1569
1815
|
e.options.forEach((r) => {
|
|
1570
1816
|
n.forEach((n) => {
|
|
@@ -1577,28 +1823,28 @@ var ot = /*#__PURE__*/ t(tt, [["render", at], ["__scopeId", "data-v-f97da831"]])
|
|
|
1577
1823
|
value: r
|
|
1578
1824
|
});
|
|
1579
1825
|
}
|
|
1580
|
-
}, { deep: !0 }),
|
|
1826
|
+
}, { deep: !0 }), q(() => e.value, (t) => {
|
|
1581
1827
|
let n = t;
|
|
1582
|
-
e.field.type === "rangepicker" && n ? n = r(n) : e.field.type === "input" && n && (n = n.toString().replace(/(^\s*)|(\s*$)/g, "")),
|
|
1583
|
-
}, { immediate: !0 }),
|
|
1828
|
+
e.field.type === "rangepicker" && n ? n = r(n) : e.field.type === "input" && n && (n = n.toString().replace(/(^\s*)|(\s*$)/g, "")), a.value && (p.value = n);
|
|
1829
|
+
}, { immediate: !0 }), q(() => m.value, (n) => {
|
|
1584
1830
|
t("update:label", n), "name2" in e.field && t("update_name2", {
|
|
1585
1831
|
key: e.field.name2,
|
|
1586
1832
|
value: n.toString()
|
|
1587
1833
|
});
|
|
1588
|
-
}, { deep: !0 }),
|
|
1834
|
+
}, { deep: !0 }), q(() => e.label, (e) => {
|
|
1589
1835
|
m.value = e;
|
|
1590
|
-
}),
|
|
1836
|
+
}), q(() => e.formModel, (e) => {
|
|
1591
1837
|
n.value = { ...e };
|
|
1592
|
-
}, { deep: !0 }),
|
|
1838
|
+
}, { deep: !0 }), q(() => n.value, (t, n) => {
|
|
1593
1839
|
e.field?.conditions && e.field?.conditions.forEach((e) => {
|
|
1594
1840
|
e.forEach((e) => {
|
|
1595
1841
|
n[e.watchKey] != t[e.watchKey] && f();
|
|
1596
1842
|
});
|
|
1597
1843
|
});
|
|
1598
|
-
}, { deep: !0 }),
|
|
1599
|
-
e.field?.is_hide ? (
|
|
1600
|
-
}),
|
|
1601
|
-
if (e.field?.is_hide ? (
|
|
1844
|
+
}, { deep: !0 }), q(() => [e.conditionsVisibleNum, e.isUseConditions], () => {
|
|
1845
|
+
e.field?.is_hide ? (a.value = !1, t("update:is_show_field", a.value)) : e.field?.conditions && e.isUseConditions ? f() : (a.value = !0, t("update:is_show_field", a.value));
|
|
1846
|
+
}), R(() => {
|
|
1847
|
+
if (e.field?.is_hide ? (a.value = !1, t("update:is_show_field", a.value)) : e.field?.conditions instanceof Array && e.field?.conditions.length > 0 ? f() : (a.value = !0, t("update:is_show_field", a.value)), !a.value) delete n.value[e.field.name], t("update_model", { remove_key: e.field.name });
|
|
1602
1848
|
else {
|
|
1603
1849
|
let r = n.value[e.field.name];
|
|
1604
1850
|
r === void 0 && (r = null), t("update_model", {
|
|
@@ -1608,10 +1854,10 @@ var ot = /*#__PURE__*/ t(tt, [["render", at], ["__scopeId", "data-v-f97da831"]])
|
|
|
1608
1854
|
}
|
|
1609
1855
|
l.value && t("update:is_edit", c.value);
|
|
1610
1856
|
});
|
|
1611
|
-
let { t: h } =
|
|
1857
|
+
let { t: h } = Ee();
|
|
1612
1858
|
return {
|
|
1613
1859
|
t: h,
|
|
1614
|
-
is_show_field:
|
|
1860
|
+
is_show_field: a,
|
|
1615
1861
|
self_is_edit: c,
|
|
1616
1862
|
handleToggleEdit: u,
|
|
1617
1863
|
rangeDate: r,
|
|
@@ -1622,49 +1868,49 @@ var ot = /*#__PURE__*/ t(tt, [["render", at], ["__scopeId", "data-v-f97da831"]])
|
|
|
1622
1868
|
};
|
|
1623
1869
|
},
|
|
1624
1870
|
components: {
|
|
1625
|
-
IconSelect:
|
|
1626
|
-
RichTextEditor:
|
|
1627
|
-
Upload:
|
|
1628
|
-
RemoteCascaderPro:
|
|
1629
|
-
RemoteTreeSelectPro:
|
|
1630
|
-
RemoteSelectPro:
|
|
1631
|
-
RemoteComplete:
|
|
1632
|
-
AttributeTable:
|
|
1633
|
-
AttributeNomTable:
|
|
1634
|
-
RemoteFilterSelect:
|
|
1635
|
-
RemoteModal:
|
|
1636
|
-
RemoteSelect:
|
|
1637
|
-
RemoteCascader:
|
|
1638
|
-
RemoteTreeSelect:
|
|
1639
|
-
RemoteTable:
|
|
1640
|
-
JsonStr:
|
|
1641
|
-
JsonObj:
|
|
1642
|
-
RemoteText:
|
|
1643
|
-
RemoteTablePro:
|
|
1644
|
-
FormTemplate:
|
|
1645
|
-
DynamicValueField:
|
|
1646
|
-
FormButton:
|
|
1647
|
-
PlusOutlined:
|
|
1648
|
-
MonthPicker:
|
|
1649
|
-
MonthRangePicker:
|
|
1871
|
+
IconSelect: ie,
|
|
1872
|
+
RichTextEditor: ne,
|
|
1873
|
+
Upload: T,
|
|
1874
|
+
RemoteCascaderPro: E,
|
|
1875
|
+
RemoteTreeSelectPro: re,
|
|
1876
|
+
RemoteSelectPro: h,
|
|
1877
|
+
RemoteComplete: ae,
|
|
1878
|
+
AttributeTable: v,
|
|
1879
|
+
AttributeNomTable: _,
|
|
1880
|
+
RemoteFilterSelect: g,
|
|
1881
|
+
RemoteModal: f,
|
|
1882
|
+
RemoteSelect: t,
|
|
1883
|
+
RemoteCascader: r,
|
|
1884
|
+
RemoteTreeSelect: m,
|
|
1885
|
+
RemoteTable: p,
|
|
1886
|
+
JsonStr: ee,
|
|
1887
|
+
JsonObj: y,
|
|
1888
|
+
RemoteText: b,
|
|
1889
|
+
RemoteTablePro: D,
|
|
1890
|
+
FormTemplate: ut,
|
|
1891
|
+
DynamicValueField: ft,
|
|
1892
|
+
FormButton: ht,
|
|
1893
|
+
PlusOutlined: Te,
|
|
1894
|
+
MonthPicker: se,
|
|
1895
|
+
MonthRangePicker: oe,
|
|
1650
1896
|
CodeEditor: w,
|
|
1651
|
-
TinymceEditor:
|
|
1652
|
-
InputNumberPro:
|
|
1653
|
-
InputPro:
|
|
1897
|
+
TinymceEditor: ce,
|
|
1898
|
+
InputNumberPro: xt,
|
|
1899
|
+
InputPro: Et
|
|
1654
1900
|
}
|
|
1655
|
-
}),
|
|
1901
|
+
}), At = {
|
|
1656
1902
|
key: 0,
|
|
1657
1903
|
style: {
|
|
1658
1904
|
height: "62px",
|
|
1659
1905
|
width: "100%"
|
|
1660
1906
|
}
|
|
1661
|
-
},
|
|
1907
|
+
}, jt = { key: 1 }, Mt = { key: 0 }, Nt = { key: 1 }, Pt = {
|
|
1662
1908
|
key: 3,
|
|
1663
1909
|
style: {
|
|
1664
1910
|
height: "30px",
|
|
1665
1911
|
position: "relative"
|
|
1666
1912
|
}
|
|
1667
|
-
},
|
|
1913
|
+
}, Ft = { style: {
|
|
1668
1914
|
position: "absolute",
|
|
1669
1915
|
bottom: "0",
|
|
1670
1916
|
padding: "0",
|
|
@@ -1672,39 +1918,39 @@ var ot = /*#__PURE__*/ t(tt, [["render", at], ["__scopeId", "data-v-f97da831"]])
|
|
|
1672
1918
|
"font-weight": "bolder",
|
|
1673
1919
|
"font-size": "17px"
|
|
1674
1920
|
} };
|
|
1675
|
-
function
|
|
1676
|
-
let o =
|
|
1677
|
-
return
|
|
1678
|
-
e.field.type !== "divider" && e.field.type !== "button" && (e.field?.is_search_show !== !1 || e.field_render_show) ? (
|
|
1921
|
+
function It(e, t, n, r, i, a) {
|
|
1922
|
+
let o = W("a-switch"), s = W("plus-outlined"), c = W("a-button"), l = W("a-tag"), u = W("a-rate"), d = W("InputPro"), f = W("a-input-number"), p = W("InputNumberPro"), m = W("a-input"), h = W("attribute-table"), g = W("attribute-nom-table"), _ = W("a-textarea"), v = W("json-str"), ee = W("json-obj"), y = W("rich-text-editor"), b = W("a-input-password"), x = W("a-select-option"), S = W("a-select"), te = W("a-cascader"), ne = W("remote-cascader"), re = W("remote-cascader-pro"), C = W("month-picker"), w = W("a-date-picker"), ie = W("a-range-picker"), ae = W("month-range-picker"), oe = W("a-time-picker"), T = W("a-time-range-picker"), se = W("a-radio"), E = W("a-radio-group"), ce = W("a-checkbox"), D = W("a-checkbox-group"), k = W("a-tree-select"), le = W("remote-filter-select"), L = W("remote-select"), ue = W("remote-select-pro"), de = W("remote-complete"), pe = W("remote-tree-select"), R = W("remote-tree-select-pro"), z = W("remote-modal"), V = W("remote-table"), H = W("remote-table-pro"), ge = W("FormTemplate"), _e = W("DynamicValueField"), ve = W("remote-text"), q = W("upload"), ye = W("code-editor"), be = W("TinymceEditor"), xe = W("icon-select"), Se = W("a-form-item"), Ce = W("a-divider"), Y = W("FormButton");
|
|
1923
|
+
return B(), M(O, null, [
|
|
1924
|
+
e.field.type !== "divider" && e.field.type !== "button" && (e.field?.is_search_show !== !1 || e.field_render_show) ? (B(), A(Se, fe({
|
|
1679
1925
|
key: 0,
|
|
1680
1926
|
extra: e.field.extra,
|
|
1681
1927
|
name: e.field.name
|
|
1682
|
-
}, e.validateInfos ? e.validateInfos[e.field.name] : null),
|
|
1683
|
-
default:
|
|
1684
|
-
|
|
1685
|
-
e.field.type === "kong" ? (
|
|
1686
|
-
e.field.type === "tag" ? (
|
|
1928
|
+
}, e.validateInfos ? e.validateInfos[e.field.name] : null), P({
|
|
1929
|
+
default: J(() => [
|
|
1930
|
+
he(e.$slots, "default", {}, void 0, !0),
|
|
1931
|
+
e.field.type === "kong" ? (B(), M("div", At)) : j("", !0),
|
|
1932
|
+
e.field.type === "tag" ? (B(), M("div", jt, [e.field.content && e.field.content(e.field, e.model) || e.model ? (B(), A(l, {
|
|
1687
1933
|
key: 0,
|
|
1688
1934
|
color: e.field.color ? e.field.color(e.field, e.model) : "green",
|
|
1689
|
-
style:
|
|
1935
|
+
style: me(e.field.style),
|
|
1690
1936
|
onClick: t[1] ||= (t) => e.field.cb ? e.field.cb(e.field, e.model) : ""
|
|
1691
1937
|
}, {
|
|
1692
|
-
default:
|
|
1938
|
+
default: J(() => [e.field.content ? (B(), M("span", Mt, K(e.field.content(e.field, e.model)), 1)) : (B(), M("span", Nt, K(e.model), 1))]),
|
|
1693
1939
|
_: 1
|
|
1694
|
-
}, 8, ["color", "style"])) :
|
|
1695
|
-
e.field.type === "kong_title" ? (
|
|
1940
|
+
}, 8, ["color", "style"])) : j("", !0)])) : j("", !0),
|
|
1941
|
+
e.field.type === "kong_title" ? (B(), M("div", {
|
|
1696
1942
|
key: 2,
|
|
1697
|
-
style:
|
|
1698
|
-
}, null, 4)) :
|
|
1699
|
-
e.field.type === "title" ? (
|
|
1700
|
-
e.field.type === "rate" ? (
|
|
1943
|
+
style: me("height: " + e.field.height + "px")
|
|
1944
|
+
}, null, 4)) : j("", !0),
|
|
1945
|
+
e.field.type === "title" ? (B(), M("div", Pt, [N("span", Ft, K(e.field.name), 1)])) : j("", !0),
|
|
1946
|
+
e.field.type === "rate" ? (B(), A(u, {
|
|
1701
1947
|
key: 4,
|
|
1702
1948
|
value: e.model,
|
|
1703
1949
|
"onUpdate:value": t[2] ||= (t) => e.model = t,
|
|
1704
1950
|
disabled: e.field.disabled,
|
|
1705
1951
|
"allow-half": ""
|
|
1706
|
-
}, null, 8, ["value", "disabled"])) :
|
|
1707
|
-
e.field.type === "input" ? (
|
|
1952
|
+
}, null, 8, ["value", "disabled"])) : j("", !0),
|
|
1953
|
+
e.field.type === "input" ? (B(), A(d, {
|
|
1708
1954
|
key: 5,
|
|
1709
1955
|
field: e.field,
|
|
1710
1956
|
value: e.model,
|
|
@@ -1716,8 +1962,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
1716
1962
|
"value",
|
|
1717
1963
|
"base-key-path",
|
|
1718
1964
|
"worker-host-functions"
|
|
1719
|
-
])) :
|
|
1720
|
-
e.field.type === "money" ? (
|
|
1965
|
+
])) : j("", !0),
|
|
1966
|
+
e.field.type === "money" ? (B(), A(f, {
|
|
1721
1967
|
key: 6,
|
|
1722
1968
|
size: "small",
|
|
1723
1969
|
value: e.model,
|
|
@@ -1743,8 +1989,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
1743
1989
|
"precision",
|
|
1744
1990
|
"step",
|
|
1745
1991
|
"placeholder"
|
|
1746
|
-
])) :
|
|
1747
|
-
e.field.type === "number" ? (
|
|
1992
|
+
])) : j("", !0),
|
|
1993
|
+
e.field.type === "number" ? (B(), A(p, {
|
|
1748
1994
|
key: 7,
|
|
1749
1995
|
value: e.model,
|
|
1750
1996
|
"onUpdate:value": t[5] ||= (t) => e.model = t,
|
|
@@ -1757,8 +2003,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
1757
2003
|
"field",
|
|
1758
2004
|
"base-key-path",
|
|
1759
2005
|
"worker-host-functions"
|
|
1760
|
-
])) :
|
|
1761
|
-
e.field.type === "volume" ? (
|
|
2006
|
+
])) : j("", !0),
|
|
2007
|
+
e.field.type === "volume" ? (B(), A(m, {
|
|
1762
2008
|
key: 8,
|
|
1763
2009
|
value: e.model,
|
|
1764
2010
|
"onUpdate:value": t[6] ||= (t) => e.model = t,
|
|
@@ -1779,8 +2025,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
1779
2025
|
"disabled",
|
|
1780
2026
|
"maxlength",
|
|
1781
2027
|
"placeholder"
|
|
1782
|
-
])) :
|
|
1783
|
-
e.field.type === "weight" ? (
|
|
2028
|
+
])) : j("", !0),
|
|
2029
|
+
e.field.type === "weight" ? (B(), A(m, {
|
|
1784
2030
|
key: 9,
|
|
1785
2031
|
value: e.model,
|
|
1786
2032
|
"onUpdate:value": t[7] ||= (t) => e.model = t,
|
|
@@ -1801,8 +2047,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
1801
2047
|
"disabled",
|
|
1802
2048
|
"maxlength",
|
|
1803
2049
|
"placeholder"
|
|
1804
|
-
])) :
|
|
1805
|
-
e.field.type === "attributetable" ? (
|
|
2050
|
+
])) : j("", !0),
|
|
2051
|
+
e.field.type === "attributetable" ? (B(), A(h, {
|
|
1806
2052
|
key: 10,
|
|
1807
2053
|
value: e.model,
|
|
1808
2054
|
"onUpdate:value": t[8] ||= (t) => e.model = t,
|
|
@@ -1819,8 +2065,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
1819
2065
|
"init_model",
|
|
1820
2066
|
"base-key-path",
|
|
1821
2067
|
"worker-host-functions"
|
|
1822
|
-
])) :
|
|
1823
|
-
e.field.type === "attributenomtable" ? (
|
|
2068
|
+
])) : j("", !0),
|
|
2069
|
+
e.field.type === "attributenomtable" ? (B(), A(g, {
|
|
1824
2070
|
key: 11,
|
|
1825
2071
|
size: "small",
|
|
1826
2072
|
value: e.model,
|
|
@@ -1837,8 +2083,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
1837
2083
|
"init_model",
|
|
1838
2084
|
"base-key-path",
|
|
1839
2085
|
"worker-host-functions"
|
|
1840
|
-
])) :
|
|
1841
|
-
e.field.type === "textarea" ? (
|
|
2086
|
+
])) : j("", !0),
|
|
2087
|
+
e.field.type === "textarea" ? (B(), A(_, {
|
|
1842
2088
|
key: 12,
|
|
1843
2089
|
value: e.model,
|
|
1844
2090
|
"onUpdate:value": t[10] ||= (t) => e.model = t,
|
|
@@ -1857,8 +2103,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
1857
2103
|
"autocomplete",
|
|
1858
2104
|
"disabled",
|
|
1859
2105
|
"placeholder"
|
|
1860
|
-
])) :
|
|
1861
|
-
e.field.type === "jsonstr" ? (
|
|
2106
|
+
])) : j("", !0),
|
|
2107
|
+
e.field.type === "jsonstr" ? (B(), A(v, {
|
|
1862
2108
|
key: 13,
|
|
1863
2109
|
value: e.model,
|
|
1864
2110
|
"onUpdate:value": t[11] ||= (t) => e.model = t,
|
|
@@ -1872,8 +2118,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
1872
2118
|
"disabled",
|
|
1873
2119
|
"rows",
|
|
1874
2120
|
"placeholder"
|
|
1875
|
-
])) :
|
|
1876
|
-
e.field.type === "jsonobj" ? (
|
|
2121
|
+
])) : j("", !0),
|
|
2122
|
+
e.field.type === "jsonobj" ? (B(), A(ee, {
|
|
1877
2123
|
key: 14,
|
|
1878
2124
|
value: e.model,
|
|
1879
2125
|
"onUpdate:value": t[12] ||= (t) => e.model = t,
|
|
@@ -1889,8 +2135,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
1889
2135
|
"mode",
|
|
1890
2136
|
"fullWidthButton",
|
|
1891
2137
|
"darkTheme"
|
|
1892
|
-
])) :
|
|
1893
|
-
e.field.type === "richtexteditor" ? (
|
|
2138
|
+
])) : j("", !0),
|
|
2139
|
+
e.field.type === "richtexteditor" ? (B(), A(y, {
|
|
1894
2140
|
key: 15,
|
|
1895
2141
|
value: e.model,
|
|
1896
2142
|
"onUpdate:value": t[13] ||= (t) => e.model = t,
|
|
@@ -1900,8 +2146,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
1900
2146
|
"value",
|
|
1901
2147
|
"readOnly",
|
|
1902
2148
|
"placeholder"
|
|
1903
|
-
])) :
|
|
1904
|
-
e.field.type === "password" ? (
|
|
2149
|
+
])) : j("", !0),
|
|
2150
|
+
e.field.type === "password" ? (B(), A(b, {
|
|
1905
2151
|
key: 16,
|
|
1906
2152
|
value: e.model,
|
|
1907
2153
|
"onUpdate:value": t[14] ||= (t) => e.model = t,
|
|
@@ -1932,8 +2178,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
1932
2178
|
"precision",
|
|
1933
2179
|
"step",
|
|
1934
2180
|
"visibilityToggle"
|
|
1935
|
-
])) :
|
|
1936
|
-
e.field.type === "select" ? (
|
|
2181
|
+
])) : j("", !0),
|
|
2182
|
+
e.field.type === "select" ? (B(), M(O, { key: 17 }, [e.field.mode === "default" ? (B(), A(S, {
|
|
1937
2183
|
key: 0,
|
|
1938
2184
|
value: e.model,
|
|
1939
2185
|
"onUpdate:value": t[16] ||= (t) => e.model = t,
|
|
@@ -1948,11 +2194,11 @@ function xt(e, t, n, r, i, a) {
|
|
|
1948
2194
|
size: "small",
|
|
1949
2195
|
style: { width: "100%" }
|
|
1950
2196
|
}, {
|
|
1951
|
-
default:
|
|
2197
|
+
default: J(() => [(B(!0), M(O, null, U(e.options, (t) => (B(), A(x, {
|
|
1952
2198
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
1953
2199
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
1954
2200
|
}, {
|
|
1955
|
-
default:
|
|
2201
|
+
default: J(() => [F(K(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
1956
2202
|
_: 2
|
|
1957
2203
|
}, 1032, ["value"]))), 128))]),
|
|
1958
2204
|
_: 1
|
|
@@ -1965,7 +2211,7 @@ function xt(e, t, n, r, i, a) {
|
|
|
1965
2211
|
"maxTagCount",
|
|
1966
2212
|
"placeholder",
|
|
1967
2213
|
"show-search"
|
|
1968
|
-
])) : (
|
|
2214
|
+
])) : (B(), A(S, {
|
|
1969
2215
|
key: 1,
|
|
1970
2216
|
value: e.model,
|
|
1971
2217
|
"onUpdate:value": t[17] ||= (t) => e.model = t,
|
|
@@ -1980,11 +2226,11 @@ function xt(e, t, n, r, i, a) {
|
|
|
1980
2226
|
size: "small",
|
|
1981
2227
|
style: { "min-width": "150px" }
|
|
1982
2228
|
}, {
|
|
1983
|
-
default:
|
|
2229
|
+
default: J(() => [(B(!0), M(O, null, U(e.options, (t, n) => (B(), A(x, {
|
|
1984
2230
|
key: n,
|
|
1985
2231
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
1986
2232
|
}, {
|
|
1987
|
-
default:
|
|
2233
|
+
default: J(() => [F(K(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
1988
2234
|
_: 2
|
|
1989
2235
|
}, 1032, ["value"]))), 128))]),
|
|
1990
2236
|
_: 1
|
|
@@ -1997,8 +2243,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
1997
2243
|
"mode",
|
|
1998
2244
|
"placeholder",
|
|
1999
2245
|
"show-search"
|
|
2000
|
-
]))], 64)) :
|
|
2001
|
-
e.field.type === "groupselect" ? (
|
|
2246
|
+
]))], 64)) : j("", !0),
|
|
2247
|
+
e.field.type === "groupselect" ? (B(), M(O, { key: 18 }, [e.field.mode === "default" ? (B(), A(S, {
|
|
2002
2248
|
key: 0,
|
|
2003
2249
|
value: e.model,
|
|
2004
2250
|
"onUpdate:value": t[18] ||= (t) => e.model = t,
|
|
@@ -2027,7 +2273,7 @@ function xt(e, t, n, r, i, a) {
|
|
|
2027
2273
|
"options",
|
|
2028
2274
|
"placeholder",
|
|
2029
2275
|
"show-search"
|
|
2030
|
-
])) : (
|
|
2276
|
+
])) : (B(), A(S, {
|
|
2031
2277
|
key: 1,
|
|
2032
2278
|
value: e.model,
|
|
2033
2279
|
"onUpdate:value": t[19] ||= (t) => e.model = t,
|
|
@@ -2056,8 +2302,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2056
2302
|
"options",
|
|
2057
2303
|
"placeholder",
|
|
2058
2304
|
"show-search"
|
|
2059
|
-
]))], 64)) :
|
|
2060
|
-
e.field.type === "cascader" ? (
|
|
2305
|
+
]))], 64)) : j("", !0),
|
|
2306
|
+
e.field.type === "cascader" ? (B(), A(te, {
|
|
2061
2307
|
key: 19,
|
|
2062
2308
|
value: e.model,
|
|
2063
2309
|
"onUpdate:value": t[20] ||= (t) => e.model = t,
|
|
@@ -2080,8 +2326,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2080
2326
|
"changeOnSelect",
|
|
2081
2327
|
"options",
|
|
2082
2328
|
"placeholder"
|
|
2083
|
-
])) :
|
|
2084
|
-
e.field.type === "remotecascader" ? (
|
|
2329
|
+
])) : j("", !0),
|
|
2330
|
+
e.field.type === "remotecascader" ? (B(), A(ne, {
|
|
2085
2331
|
key: 20,
|
|
2086
2332
|
value: e.model,
|
|
2087
2333
|
"onUpdate:value": t[21] ||= (t) => e.model = t,
|
|
@@ -2106,8 +2352,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2106
2352
|
"label-space",
|
|
2107
2353
|
"search_config",
|
|
2108
2354
|
"value-key"
|
|
2109
|
-
])) :
|
|
2110
|
-
e.field.type === "remotecascaderpro" ? (
|
|
2355
|
+
])) : j("", !0),
|
|
2356
|
+
e.field.type === "remotecascaderpro" ? (B(), A(re, {
|
|
2111
2357
|
key: 21,
|
|
2112
2358
|
label: e.labelModel,
|
|
2113
2359
|
"onUpdate:label": t[23] ||= (t) => e.labelModel = t,
|
|
@@ -2154,8 +2400,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2154
2400
|
"init_watch",
|
|
2155
2401
|
"is_form_design",
|
|
2156
2402
|
"placeholder"
|
|
2157
|
-
])) :
|
|
2158
|
-
e.field.type === "monthpicker" ? (
|
|
2403
|
+
])) : j("", !0),
|
|
2404
|
+
e.field.type === "monthpicker" ? (B(), A(C, {
|
|
2159
2405
|
key: 22,
|
|
2160
2406
|
value: e.model,
|
|
2161
2407
|
"onUpdate:value": t[25] ||= (t) => e.model = t,
|
|
@@ -2183,8 +2429,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2183
2429
|
"start_offset_day",
|
|
2184
2430
|
"end_offset_day",
|
|
2185
2431
|
"fix_day"
|
|
2186
|
-
])) :
|
|
2187
|
-
e.field.type === "datepicker" ? (
|
|
2432
|
+
])) : j("", !0),
|
|
2433
|
+
e.field.type === "datepicker" ? (B(), A(w, {
|
|
2188
2434
|
key: 23,
|
|
2189
2435
|
value: e.model,
|
|
2190
2436
|
"onUpdate:value": t[26] ||= (t) => e.model = t,
|
|
@@ -2210,8 +2456,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2210
2456
|
"placeholder",
|
|
2211
2457
|
"show-time",
|
|
2212
2458
|
"value-format"
|
|
2213
|
-
])) :
|
|
2214
|
-
e.field.type === "rangepicker" ? (
|
|
2459
|
+
])) : j("", !0),
|
|
2460
|
+
e.field.type === "rangepicker" ? (B(), A(ie, {
|
|
2215
2461
|
key: 24,
|
|
2216
2462
|
value: e.model,
|
|
2217
2463
|
"onUpdate:value": t[27] ||= (t) => e.model = t,
|
|
@@ -2235,8 +2481,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2235
2481
|
"show-time",
|
|
2236
2482
|
"value-format",
|
|
2237
2483
|
"picker"
|
|
2238
|
-
])) :
|
|
2239
|
-
e.field.type === "monthrangepicker" ? (
|
|
2484
|
+
])) : j("", !0),
|
|
2485
|
+
e.field.type === "monthrangepicker" ? (B(), A(ae, {
|
|
2240
2486
|
key: 25,
|
|
2241
2487
|
value: e.model,
|
|
2242
2488
|
"onUpdate:value": t[28] ||= (t) => e.model = t,
|
|
@@ -2262,8 +2508,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2262
2508
|
"start_offset_day",
|
|
2263
2509
|
"end_offset_day",
|
|
2264
2510
|
"fix_day"
|
|
2265
|
-
])) :
|
|
2266
|
-
e.field.type === "timepicker" ? (
|
|
2511
|
+
])) : j("", !0),
|
|
2512
|
+
e.field.type === "timepicker" ? (B(), A(oe, {
|
|
2267
2513
|
key: 26,
|
|
2268
2514
|
value: e.model,
|
|
2269
2515
|
"onUpdate:value": t[29] ||= (t) => e.model = t,
|
|
@@ -2283,8 +2529,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2283
2529
|
"format",
|
|
2284
2530
|
"placeholder",
|
|
2285
2531
|
"value-format"
|
|
2286
|
-
])) :
|
|
2287
|
-
e.field.type === "timerangepicker" ? (
|
|
2532
|
+
])) : j("", !0),
|
|
2533
|
+
e.field.type === "timerangepicker" ? (B(), A(T, {
|
|
2288
2534
|
key: 27,
|
|
2289
2535
|
value: e.model,
|
|
2290
2536
|
"onUpdate:value": t[30] ||= (t) => e.model = t,
|
|
@@ -2304,8 +2550,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2304
2550
|
"format",
|
|
2305
2551
|
"placeholder",
|
|
2306
2552
|
"value-format"
|
|
2307
|
-
])) :
|
|
2308
|
-
e.field.type === "radio" ? (
|
|
2553
|
+
])) : j("", !0),
|
|
2554
|
+
e.field.type === "radio" ? (B(), A(E, {
|
|
2309
2555
|
key: 28,
|
|
2310
2556
|
value: e.model,
|
|
2311
2557
|
"onUpdate:value": t[31] ||= (t) => e.model = t,
|
|
@@ -2313,12 +2559,12 @@ function xt(e, t, n, r, i, a) {
|
|
|
2313
2559
|
disabled: e.field.disabled,
|
|
2314
2560
|
size: "small"
|
|
2315
2561
|
}, {
|
|
2316
|
-
default:
|
|
2562
|
+
default: J(() => [(B(!0), M(O, null, U(e.options, (t) => (B(), A(se, {
|
|
2317
2563
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2318
2564
|
disabled: t.disabled,
|
|
2319
2565
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2320
2566
|
}, {
|
|
2321
|
-
default:
|
|
2567
|
+
default: J(() => [F(K(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
2322
2568
|
_: 2
|
|
2323
2569
|
}, 1032, ["disabled", "value"]))), 128))]),
|
|
2324
2570
|
_: 1
|
|
@@ -2326,8 +2572,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2326
2572
|
"value",
|
|
2327
2573
|
"default-value",
|
|
2328
2574
|
"disabled"
|
|
2329
|
-
])) :
|
|
2330
|
-
e.field.type === "checkbox" ? (
|
|
2575
|
+
])) : j("", !0),
|
|
2576
|
+
e.field.type === "checkbox" ? (B(), A(D, {
|
|
2331
2577
|
key: 29,
|
|
2332
2578
|
value: e.model,
|
|
2333
2579
|
"onUpdate:value": t[32] ||= (t) => e.model = t,
|
|
@@ -2335,12 +2581,12 @@ function xt(e, t, n, r, i, a) {
|
|
|
2335
2581
|
disabled: e.field.disabled,
|
|
2336
2582
|
size: "small"
|
|
2337
2583
|
}, {
|
|
2338
|
-
default:
|
|
2584
|
+
default: J(() => [(B(!0), M(O, null, U(e.options, (t) => (B(), A(ce, {
|
|
2339
2585
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2340
2586
|
disabled: t.disabled,
|
|
2341
2587
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2342
2588
|
}, {
|
|
2343
|
-
default:
|
|
2589
|
+
default: J(() => [F(K(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
2344
2590
|
_: 2
|
|
2345
2591
|
}, 1032, ["disabled", "value"]))), 128))]),
|
|
2346
2592
|
_: 1
|
|
@@ -2348,8 +2594,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2348
2594
|
"value",
|
|
2349
2595
|
"default-value",
|
|
2350
2596
|
"disabled"
|
|
2351
|
-
])) :
|
|
2352
|
-
e.field.type === "treeselect" ? (
|
|
2597
|
+
])) : j("", !0),
|
|
2598
|
+
e.field.type === "treeselect" ? (B(), A(k, {
|
|
2353
2599
|
key: 30,
|
|
2354
2600
|
value: e.model,
|
|
2355
2601
|
"onUpdate:value": t[33] ||= (t) => e.model = t,
|
|
@@ -2375,8 +2621,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2375
2621
|
"tree-data",
|
|
2376
2622
|
"tree-label-prop",
|
|
2377
2623
|
"tree-node-filter-prop"
|
|
2378
|
-
])) :
|
|
2379
|
-
e.field.type === "remotefilterselect" ? (
|
|
2624
|
+
])) : j("", !0),
|
|
2625
|
+
e.field.type === "remotefilterselect" ? (B(), A(le, {
|
|
2380
2626
|
key: 31,
|
|
2381
2627
|
label: e.labelModel,
|
|
2382
2628
|
"onUpdate:label": t[34] ||= (t) => e.labelModel = t,
|
|
@@ -2403,8 +2649,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2403
2649
|
"label-space",
|
|
2404
2650
|
"search_config",
|
|
2405
2651
|
"value-key"
|
|
2406
|
-
])) :
|
|
2407
|
-
e.field.type === "remoteselect" ? (
|
|
2652
|
+
])) : j("", !0),
|
|
2653
|
+
e.field.type === "remoteselect" ? (B(), A(L, {
|
|
2408
2654
|
key: 32,
|
|
2409
2655
|
label: e.labelModel,
|
|
2410
2656
|
"onUpdate:label": t[36] ||= (t) => e.labelModel = t,
|
|
@@ -2431,8 +2677,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2431
2677
|
"label-space",
|
|
2432
2678
|
"search_config",
|
|
2433
2679
|
"value-key"
|
|
2434
|
-
])) :
|
|
2435
|
-
e.field.type === "remoteselectpro" ? (
|
|
2680
|
+
])) : j("", !0),
|
|
2681
|
+
e.field.type === "remoteselectpro" ? (B(), A(ue, {
|
|
2436
2682
|
key: 33,
|
|
2437
2683
|
label: e.labelModel,
|
|
2438
2684
|
"onUpdate:label": t[38] ||= (t) => e.labelModel = t,
|
|
@@ -2479,8 +2725,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2479
2725
|
"context",
|
|
2480
2726
|
"base-key-path",
|
|
2481
2727
|
"placeholder"
|
|
2482
|
-
])) :
|
|
2483
|
-
e.field.type === "remotecomplete" ? (
|
|
2728
|
+
])) : j("", !0),
|
|
2729
|
+
e.field.type === "remotecomplete" ? (B(), A(de, {
|
|
2484
2730
|
key: 34,
|
|
2485
2731
|
value: e.model,
|
|
2486
2732
|
"onUpdate:value": t[40] ||= (t) => e.model = t,
|
|
@@ -2518,8 +2764,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2518
2764
|
"is_input",
|
|
2519
2765
|
"is_form_design",
|
|
2520
2766
|
"placeholder"
|
|
2521
|
-
])) :
|
|
2522
|
-
e.field.type === "remotetreeselect" ? (
|
|
2767
|
+
])) : j("", !0),
|
|
2768
|
+
e.field.type === "remotetreeselect" ? (B(), A(pe, {
|
|
2523
2769
|
key: 35,
|
|
2524
2770
|
label: e.labelModel,
|
|
2525
2771
|
"onUpdate:label": t[41] ||= (t) => e.labelModel = t,
|
|
@@ -2546,8 +2792,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2546
2792
|
"label-key",
|
|
2547
2793
|
"search_config",
|
|
2548
2794
|
"value-key"
|
|
2549
|
-
])) :
|
|
2550
|
-
e.field.type === "remotetreeselectpro" ? (
|
|
2795
|
+
])) : j("", !0),
|
|
2796
|
+
e.field.type === "remotetreeselectpro" ? (B(), A(R, {
|
|
2551
2797
|
key: 36,
|
|
2552
2798
|
label: e.labelModel,
|
|
2553
2799
|
"onUpdate:label": t[43] ||= (t) => e.labelModel = t,
|
|
@@ -2592,8 +2838,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2592
2838
|
"init_watch",
|
|
2593
2839
|
"is_form_design",
|
|
2594
2840
|
"placeholder"
|
|
2595
|
-
])) :
|
|
2596
|
-
e.field.type === "remotemodal" ? (
|
|
2841
|
+
])) : j("", !0),
|
|
2842
|
+
e.field.type === "remotemodal" ? (B(), A(z, {
|
|
2597
2843
|
key: 37,
|
|
2598
2844
|
label: e.labelModel,
|
|
2599
2845
|
"onUpdate:label": t[45] ||= (t) => e.labelModel = t,
|
|
@@ -2618,8 +2864,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2618
2864
|
"modalType",
|
|
2619
2865
|
"search_config",
|
|
2620
2866
|
"watch"
|
|
2621
|
-
])) :
|
|
2622
|
-
e.field.type === "remotetable" ? (
|
|
2867
|
+
])) : j("", !0),
|
|
2868
|
+
e.field.type === "remotetable" ? (B(), A(V, {
|
|
2623
2869
|
key: 38,
|
|
2624
2870
|
value: e.model,
|
|
2625
2871
|
"onUpdate:value": t[47] ||= (t) => e.model = t,
|
|
@@ -2647,8 +2893,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2647
2893
|
"watch",
|
|
2648
2894
|
"base-key-path",
|
|
2649
2895
|
"worker-host-functions"
|
|
2650
|
-
])) :
|
|
2651
|
-
e.field.type === "remotetablepro" && !e.self_is_edit ? (
|
|
2896
|
+
])) : j("", !0),
|
|
2897
|
+
e.field.type === "remotetablepro" && !e.self_is_edit ? (B(), A(H, {
|
|
2652
2898
|
key: 39,
|
|
2653
2899
|
value: e.model,
|
|
2654
2900
|
"onUpdate:value": t[48] ||= (t) => e.model = t,
|
|
@@ -2682,8 +2928,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2682
2928
|
"global-inner-model",
|
|
2683
2929
|
"base-key-path",
|
|
2684
2930
|
"worker-host-functions"
|
|
2685
|
-
])) :
|
|
2686
|
-
e.field.type === "formtemplate" ? (
|
|
2931
|
+
])) : j("", !0),
|
|
2932
|
+
e.field.type === "formtemplate" ? (B(), A(ge, {
|
|
2687
2933
|
key: 40,
|
|
2688
2934
|
value: e.model,
|
|
2689
2935
|
"onUpdate:value": t[49] ||= (t) => e.model = t,
|
|
@@ -2727,8 +2973,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2727
2973
|
"base-key-path",
|
|
2728
2974
|
"worker-host-functions",
|
|
2729
2975
|
"contextOptions"
|
|
2730
|
-
])) :
|
|
2731
|
-
e.field.type === "dynamicvaluefield" ? (
|
|
2976
|
+
])) : j("", !0),
|
|
2977
|
+
e.field.type === "dynamicvaluefield" ? (B(), A(_e, {
|
|
2732
2978
|
key: 41,
|
|
2733
2979
|
value: e.model,
|
|
2734
2980
|
"onUpdate:value": t[50] ||= (t) => e.model = t,
|
|
@@ -2766,8 +3012,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2766
3012
|
"context",
|
|
2767
3013
|
"base-key-path",
|
|
2768
3014
|
"worker-host-functions"
|
|
2769
|
-
])) :
|
|
2770
|
-
e.field.type === "remotetext" ? (
|
|
3015
|
+
])) : j("", !0),
|
|
3016
|
+
e.field.type === "remotetext" ? (B(), A(ve, {
|
|
2771
3017
|
key: 42,
|
|
2772
3018
|
value: e.model,
|
|
2773
3019
|
"onUpdate:value": t[51] ||= (t) => e.model = t,
|
|
@@ -2789,8 +3035,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2789
3035
|
"modalType",
|
|
2790
3036
|
"search_config",
|
|
2791
3037
|
"watch"
|
|
2792
|
-
])) :
|
|
2793
|
-
e.field.type === "upload" ? (
|
|
3038
|
+
])) : j("", !0),
|
|
3039
|
+
e.field.type === "upload" ? (B(), A(q, {
|
|
2794
3040
|
key: 43,
|
|
2795
3041
|
value: e.model,
|
|
2796
3042
|
"onUpdate:value": t[52] ||= (t) => e.model = t,
|
|
@@ -2806,8 +3052,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2806
3052
|
"listType",
|
|
2807
3053
|
"maxCount",
|
|
2808
3054
|
"acceptList"
|
|
2809
|
-
])) :
|
|
2810
|
-
e.field.type === "codeeditor" ? (
|
|
3055
|
+
])) : j("", !0),
|
|
3056
|
+
e.field.type === "codeeditor" ? (B(), A(ye, {
|
|
2811
3057
|
key: 44,
|
|
2812
3058
|
editorValue: e.model,
|
|
2813
3059
|
"onUpdate:editorValue": t[53] ||= (t) => e.model = t,
|
|
@@ -2819,8 +3065,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2819
3065
|
"options",
|
|
2820
3066
|
"mode",
|
|
2821
3067
|
"lineWrapping"
|
|
2822
|
-
])) :
|
|
2823
|
-
e.field.type === "tinymceeditor" ? (
|
|
3068
|
+
])) : j("", !0),
|
|
3069
|
+
e.field.type === "tinymceeditor" ? (B(), A(be, {
|
|
2824
3070
|
key: 45,
|
|
2825
3071
|
modelValue: e.model,
|
|
2826
3072
|
"onUpdate:modelValue": t[54] ||= (t) => e.model = t,
|
|
@@ -2830,14 +3076,14 @@ function xt(e, t, n, r, i, a) {
|
|
|
2830
3076
|
"modelValue",
|
|
2831
3077
|
"options",
|
|
2832
3078
|
"mode"
|
|
2833
|
-
])) :
|
|
2834
|
-
e.field.type === "iconselect" ? (
|
|
3079
|
+
])) : j("", !0),
|
|
3080
|
+
e.field.type === "iconselect" ? (B(), A(xe, {
|
|
2835
3081
|
key: 46,
|
|
2836
3082
|
value: e.model,
|
|
2837
3083
|
"onUpdate:value": t[55] ||= (t) => e.model = t,
|
|
2838
3084
|
placeholder: e.field.placeholder_i18n == null ? e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label : e.t(e.field.placeholder_i18n)
|
|
2839
|
-
}, null, 8, ["value", "placeholder"])) :
|
|
2840
|
-
e.field.type === "rate" ? (
|
|
3085
|
+
}, null, 8, ["value", "placeholder"])) : j("", !0),
|
|
3086
|
+
e.field.type === "rate" ? (B(), A(u, {
|
|
2841
3087
|
key: 47,
|
|
2842
3088
|
value: e.model,
|
|
2843
3089
|
"onUpdate:value": t[56] ||= (t) => e.model = t,
|
|
@@ -2847,8 +3093,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2847
3093
|
"value",
|
|
2848
3094
|
"count",
|
|
2849
3095
|
"allow-half"
|
|
2850
|
-
])) :
|
|
2851
|
-
e.field.type === "radio-color" ? (
|
|
3096
|
+
])) : j("", !0),
|
|
3097
|
+
e.field.type === "radio-color" ? (B(), A(E, {
|
|
2852
3098
|
key: 48,
|
|
2853
3099
|
value: e.model,
|
|
2854
3100
|
"onUpdate:value": t[57] ||= (t) => e.model = t,
|
|
@@ -2856,12 +3102,12 @@ function xt(e, t, n, r, i, a) {
|
|
|
2856
3102
|
disabled: e.field.disabled,
|
|
2857
3103
|
size: "small"
|
|
2858
3104
|
}, {
|
|
2859
|
-
default:
|
|
3105
|
+
default: J(() => [(B(!0), M(O, null, U(e.options, (t) => (B(), A(se, {
|
|
2860
3106
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2861
3107
|
disabled: t.disabled,
|
|
2862
3108
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2863
3109
|
}, {
|
|
2864
|
-
default:
|
|
3110
|
+
default: J(() => [N("div", { style: me({
|
|
2865
3111
|
width: "20px",
|
|
2866
3112
|
height: "20px",
|
|
2867
3113
|
backgroundColor: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
@@ -2873,8 +3119,8 @@ function xt(e, t, n, r, i, a) {
|
|
|
2873
3119
|
"value",
|
|
2874
3120
|
"default-value",
|
|
2875
3121
|
"disabled"
|
|
2876
|
-
])) :
|
|
2877
|
-
e.field.type?.startsWith("CustomField") ? (
|
|
3122
|
+
])) : j("", !0),
|
|
3123
|
+
e.field.type?.startsWith("CustomField") ? (B(), A(G(e.field.type), {
|
|
2878
3124
|
key: 49,
|
|
2879
3125
|
label: e.labelModel,
|
|
2880
3126
|
"onUpdate:label": t[58] ||= (t) => e.labelModel = t,
|
|
@@ -2899,14 +3145,14 @@ function xt(e, t, n, r, i, a) {
|
|
|
2899
3145
|
"init_watch",
|
|
2900
3146
|
"is_form_design",
|
|
2901
3147
|
"placeholder"
|
|
2902
|
-
])) :
|
|
3148
|
+
])) : j("", !0)
|
|
2903
3149
|
]),
|
|
2904
3150
|
_: 2
|
|
2905
3151
|
}, [e.is_show_label ? {
|
|
2906
3152
|
name: "label",
|
|
2907
|
-
fn:
|
|
2908
|
-
|
|
2909
|
-
e.is_show_edit ? (
|
|
3153
|
+
fn: J(() => [
|
|
3154
|
+
F(K(e.is_show_label ? e.field.label_i18n == null ? e.field.label : e.t(e.field.label_i18n) : null) + " ", 1),
|
|
3155
|
+
e.is_show_edit ? (B(), A(o, {
|
|
2910
3156
|
key: 0,
|
|
2911
3157
|
checked: e.self_is_edit,
|
|
2912
3158
|
"onUpdate:checked": t[0] ||= (t) => e.self_is_edit = t,
|
|
@@ -2914,28 +3160,28 @@ function xt(e, t, n, r, i, a) {
|
|
|
2914
3160
|
onChange: e.handleToggleEdit,
|
|
2915
3161
|
"checked-children": "表单",
|
|
2916
3162
|
"un-checked-children": "列表"
|
|
2917
|
-
}, null, 8, ["checked", "onChange"])) :
|
|
2918
|
-
e.is_show_edit && e.self_is_edit ? (
|
|
3163
|
+
}, null, 8, ["checked", "onChange"])) : j("", !0),
|
|
3164
|
+
e.is_show_edit && e.self_is_edit ? (B(), A(c, {
|
|
2919
3165
|
key: 1,
|
|
2920
3166
|
size: "small",
|
|
2921
3167
|
type: "primary",
|
|
2922
3168
|
onClick: e.handleAdd
|
|
2923
3169
|
}, {
|
|
2924
|
-
icon:
|
|
2925
|
-
default:
|
|
3170
|
+
icon: J(() => [I(s)]),
|
|
3171
|
+
default: J(() => [t[61] ||= F(" 添加分组 ")]),
|
|
2926
3172
|
_: 1
|
|
2927
|
-
}, 8, ["onClick"])) :
|
|
3173
|
+
}, 8, ["onClick"])) : j("", !0)
|
|
2928
3174
|
]),
|
|
2929
3175
|
key: "0"
|
|
2930
|
-
} : void 0]), 1040, ["extra", "name"])) :
|
|
2931
|
-
e.field.type === "divider" ? (
|
|
3176
|
+
} : void 0]), 1040, ["extra", "name"])) : j("", !0),
|
|
3177
|
+
e.field.type === "divider" ? (B(), A(Ce, {
|
|
2932
3178
|
key: 1,
|
|
2933
3179
|
orientation: e.field.orientation
|
|
2934
3180
|
}, {
|
|
2935
|
-
default:
|
|
3181
|
+
default: J(() => [F(K(e.field.label), 1)]),
|
|
2936
3182
|
_: 1
|
|
2937
|
-
}, 8, ["orientation"])) :
|
|
2938
|
-
e.field.type === "button" ? (
|
|
3183
|
+
}, 8, ["orientation"])) : j("", !0),
|
|
3184
|
+
e.field.type === "button" ? (B(), A(Y, {
|
|
2939
3185
|
key: 2,
|
|
2940
3186
|
value: e.model,
|
|
2941
3187
|
"onUpdate:value": t[60] ||= (t) => e.model = t,
|
|
@@ -2957,9 +3203,9 @@ function xt(e, t, n, r, i, a) {
|
|
|
2957
3203
|
"context",
|
|
2958
3204
|
"base-key-path",
|
|
2959
3205
|
"worker-host-functions"
|
|
2960
|
-
])) :
|
|
3206
|
+
])) : j("", !0)
|
|
2961
3207
|
], 64);
|
|
2962
3208
|
}
|
|
2963
|
-
var
|
|
3209
|
+
var Lt = /*#__PURE__*/ n(kt, [["render", It], ["__scopeId", "data-v-4d903c12"]]);
|
|
2964
3210
|
//#endregion
|
|
2965
|
-
export {
|
|
3211
|
+
export { Lt as t };
|