liyu-pc-base 1.0.829 → 1.0.831
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-DXkt6Dbo.js → FieldRender2-B9zYViPc.js} +530 -461
- package/dist/FieldRender2-B9zYViPc.js.map +1 -0
- package/dist/{FormRender3-Coihr6aF.js → FormRender3-COq33cXi.js} +1 -1
- package/dist/{FormRender3-Coihr6aF.js.map → FormRender3-COq33cXi.js.map} +1 -1
- package/dist/{SearchRender-Cw770Ovx.js → SearchRender-IcwbHvfl.js} +1 -1
- package/dist/{SearchRender-Cw770Ovx.js.map → SearchRender-IcwbHvfl.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-DXkt6Dbo.js.map +0 -1
|
@@ -6,26 +6,26 @@ import { t as i } from "./lodash-CMVwnWxD.js";
|
|
|
6
6
|
import { getApiData as a } from "./api/api-model.js";
|
|
7
7
|
import { N as o, P as s, k as c, n as l, s as u } from "./function-aZC5WIb7.js";
|
|
8
8
|
import { i as d, t as f } from "./RemoteModal-B7gZHfEy.js";
|
|
9
|
-
import { n as p, r as m, t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { resolveContextValue as
|
|
18
|
-
import { exportJsonToExcelByTokenHeader as
|
|
19
|
-
import { a as
|
|
20
|
-
import { Fragment as
|
|
21
|
-
import { Modal as
|
|
22
|
-
import { debounce as
|
|
23
|
-
import
|
|
24
|
-
import { ExclamationCircleOutlined as
|
|
25
|
-
import { useI18n as
|
|
26
|
-
import
|
|
9
|
+
import { n as p, r as m, t as ee } from "./RemoteSelectPro-UGspfCN0.js";
|
|
10
|
+
import { t as h } from "./RemoteFilterSelect-BthY6Fyt.js";
|
|
11
|
+
import { t as g } from "./AttributeNomTable-DHED22ju.js";
|
|
12
|
+
import { t as _ } from "./AttributeTable-muxdKpWW.js";
|
|
13
|
+
import { t as v } from "./JsonStr-JwOPdAYW.js";
|
|
14
|
+
import { t as te } from "./JsonObj-CmylW4Or.js";
|
|
15
|
+
import { t as ne } from "./RemoteText-DwRLI0xq.js";
|
|
16
|
+
import { t as y } from "./modal-tools-CrXdI5sg.js";
|
|
17
|
+
import { resolveContextValue as b } from "./components/FormRender/utils.js";
|
|
18
|
+
import { exportJsonToExcelByTokenHeader as re } from "./utils/excel.js";
|
|
19
|
+
import { a as ie, c as ae, d as x, f as oe, i as se, l as S, n as ce, o as C, r as w, s as T, t as le, u as E } from "./TinymceEditor-C_nD6tb-.js";
|
|
20
|
+
import { Fragment as D, computed as O, createBlock as k, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createSlots as N, createTextVNode as P, createVNode as F, defineAsyncComponent as ue, defineComponent as I, h as de, inject as fe, mergeModels as L, mergeProps as pe, normalizeClass as me, normalizeStyle as he, onMounted as R, onUnmounted as ge, openBlock as z, reactive as B, ref as V, renderList as H, renderSlot as _e, resolveComponent as U, resolveDynamicComponent as W, toDisplayString as G, unref as ve, useModel as ye, vShow as be, watch as K, withCtx as q, withDirectives as xe } from "vue";
|
|
21
|
+
import { Modal as Se, message as Ce } from "ant-design-vue";
|
|
22
|
+
import { debounce as we, isArray as Te } from "lodash-es";
|
|
23
|
+
import J from "moment";
|
|
24
|
+
import { ExclamationCircleOutlined as Ee, PlusOutlined as De } from "@ant-design/icons-vue";
|
|
25
|
+
import { useI18n as Oe } from "vue-i18n";
|
|
26
|
+
import ke from "mitt";
|
|
27
27
|
//#region src/components/FormRender/FormTemplate/FormItem.vue?vue&type=script&lang.ts
|
|
28
|
-
var
|
|
28
|
+
var Ae = I({
|
|
29
29
|
name: "FormTemplate",
|
|
30
30
|
components: {},
|
|
31
31
|
props: {
|
|
@@ -87,10 +87,10 @@ var ke = L({
|
|
|
87
87
|
},
|
|
88
88
|
emits: ["update:value", "remove"],
|
|
89
89
|
setup(e, { emit: t }) {
|
|
90
|
-
let n =
|
|
90
|
+
let n = B({ ...e.field.form.rules }), r = V({}), i = ue(() => import("./FormRender3-COq33cXi.js").then((e) => e.n)), a, o = () => {
|
|
91
91
|
let e = /* @__PURE__ */ new Uint8Array(16);
|
|
92
92
|
return window.crypto.getRandomValues(e), Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
93
|
-
}, s =
|
|
93
|
+
}, s = V([]), c = o(), l = ([t, i]) => {
|
|
94
94
|
let o = {};
|
|
95
95
|
Object.keys(n).forEach((e) => {
|
|
96
96
|
e in t && !i[e] && (o[e] = n[e]);
|
|
@@ -98,12 +98,12 @@ var ke = L({
|
|
|
98
98
|
let s = d(t, o);
|
|
99
99
|
a = s.validate, r.value = s.validateInfos, e.nestValidate && (e.nestValidate[c] = a);
|
|
100
100
|
};
|
|
101
|
-
return
|
|
101
|
+
return K(() => e.value, (e) => {
|
|
102
102
|
l([e, s.value]);
|
|
103
103
|
}, {
|
|
104
104
|
deep: !0,
|
|
105
105
|
immediate: !0
|
|
106
|
-
}),
|
|
106
|
+
}), R(() => {}), ge(() => {
|
|
107
107
|
e.nestValidate && delete e.nestValidate[c];
|
|
108
108
|
}), {
|
|
109
109
|
FormRender3Async: i,
|
|
@@ -119,13 +119,13 @@ var ke = L({
|
|
|
119
119
|
data() {
|
|
120
120
|
return { model: this.value };
|
|
121
121
|
}
|
|
122
|
-
}),
|
|
122
|
+
}), je = { class: "form-wrap" }, Me = { class: "form-content" }, Ne = {
|
|
123
123
|
key: 0,
|
|
124
124
|
class: "form-action"
|
|
125
125
|
};
|
|
126
|
-
function
|
|
127
|
-
let o =
|
|
128
|
-
return
|
|
126
|
+
function Pe(e, t, n, r, i, a) {
|
|
127
|
+
let o = U("DeleteOutlined"), s = U("a-button");
|
|
128
|
+
return z(), j("div", je, [M("div", Me, [(z(), k(W(e.FormRender3Async), {
|
|
129
129
|
form: e.field.form,
|
|
130
130
|
model: e.value,
|
|
131
131
|
"onUpdate:model": t[0] ||= (t) => e.value = t,
|
|
@@ -158,18 +158,18 @@ function Ne(e, t, n, r, i, a) {
|
|
|
158
158
|
"base-key-path",
|
|
159
159
|
"worker-host-functions",
|
|
160
160
|
"lock-structure"
|
|
161
|
-
]))]), e.field.max_count !== e.min_count && !e.lockStructure ? (
|
|
161
|
+
]))]), e.field.max_count !== e.min_count && !e.lockStructure ? (z(), j("div", Ne, [F(s, {
|
|
162
162
|
onClick: e.removeFormItem,
|
|
163
163
|
size: "small",
|
|
164
164
|
type: "link",
|
|
165
165
|
danger: "",
|
|
166
166
|
disabled: e.listLength <= e.min_count
|
|
167
167
|
}, {
|
|
168
|
-
icon:
|
|
168
|
+
icon: q(() => [F(o)]),
|
|
169
169
|
_: 1
|
|
170
|
-
}, 8, ["onClick", "disabled"])])) :
|
|
170
|
+
}, 8, ["onClick", "disabled"])])) : A("", !0)]);
|
|
171
171
|
}
|
|
172
|
-
var
|
|
172
|
+
var Fe = /*#__PURE__*/ n(Ae, [["render", Pe], ["__scopeId", "data-v-eef02fa2"]]), Ie = { key: 1 }, Le = /*#__PURE__*/ n(/* @__PURE__ */ I({
|
|
173
173
|
__name: "TableCell",
|
|
174
174
|
props: {
|
|
175
175
|
field: {
|
|
@@ -217,22 +217,22 @@ var Pe = /*#__PURE__*/ n(ke, [["render", Ne], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
217
217
|
},
|
|
218
218
|
emits: ["update_model", "update_name2"],
|
|
219
219
|
setup(e, { emit: t }) {
|
|
220
|
-
let n = e, r = t, i =
|
|
220
|
+
let n = e, r = t, i = V(!0), a = (e) => {
|
|
221
221
|
r("update_model", e);
|
|
222
222
|
}, o = (e) => {
|
|
223
223
|
r("update_name2", e);
|
|
224
|
-
}, s =
|
|
224
|
+
}, s = O(() => i.value && !n.field.disabled && n.field.type !== "dynamicvaluefield");
|
|
225
225
|
return (t, n) => {
|
|
226
|
-
let r =
|
|
227
|
-
return
|
|
226
|
+
let r = U("a-form");
|
|
227
|
+
return z(), k(r, {
|
|
228
228
|
model: e.model,
|
|
229
229
|
layout: "inline",
|
|
230
230
|
class: "table-cell-form"
|
|
231
231
|
}, {
|
|
232
|
-
default:
|
|
232
|
+
default: q(() => [xe(M("div", { class: me(["field-cell-item", {
|
|
233
233
|
editable: s.value,
|
|
234
234
|
"item-required": e.has_reqrired
|
|
235
|
-
}]) }, [e.field.type === "dynamicvaluefield" ? (
|
|
235
|
+
}]) }, [e.field.type === "dynamicvaluefield" ? (z(), j("span", Ie, G(e.model[e.field.name]), 1)) : (z(), k(Ht, {
|
|
236
236
|
is_show_label: !1,
|
|
237
237
|
value: e.model[e.field.name],
|
|
238
238
|
"onUpdate:value": n[0] ||= (t) => e.model[e.field.name] = t,
|
|
@@ -269,12 +269,12 @@ var Pe = /*#__PURE__*/ n(ke, [["render", Ne], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
269
269
|
"base-key-path",
|
|
270
270
|
"worker-host-functions",
|
|
271
271
|
"is_form_design"
|
|
272
|
-
]))], 2), [[
|
|
272
|
+
]))], 2), [[be, i.value]])]),
|
|
273
273
|
_: 1
|
|
274
274
|
}, 8, ["model"]);
|
|
275
275
|
};
|
|
276
276
|
}
|
|
277
|
-
}), [["__scopeId", "data-v-00188241"]]),
|
|
277
|
+
}), [["__scopeId", "data-v-00188241"]]), Re = { key: 0 }, ze = { key: 1 }, Be = /* @__PURE__ */ I({
|
|
278
278
|
__name: "TableSummary",
|
|
279
279
|
props: {
|
|
280
280
|
summaryParams: {
|
|
@@ -287,7 +287,7 @@ var Pe = /*#__PURE__*/ n(ke, [["render", Ne], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
287
287
|
}
|
|
288
288
|
},
|
|
289
289
|
setup(e) {
|
|
290
|
-
let t = e, n =
|
|
290
|
+
let t = e, n = O(() => {
|
|
291
291
|
let e = 0;
|
|
292
292
|
for (let n of t.tableDataSource) {
|
|
293
293
|
let r = n[t.summaryParams.column.dataIndex];
|
|
@@ -310,19 +310,19 @@ var Pe = /*#__PURE__*/ n(ke, [["render", Ne], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
310
310
|
return parseFloat((e + t).toFixed(n));
|
|
311
311
|
}
|
|
312
312
|
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);
|
|
313
|
-
return (t, r) => (
|
|
314
|
-
e.summaryParams?.column?.field?.addonBefore ? (
|
|
315
|
-
|
|
316
|
-
e.summaryParams?.column?.field?.addonAfter ? (
|
|
313
|
+
return (t, r) => (z(), j(D, null, [
|
|
314
|
+
e.summaryParams?.column?.field?.addonBefore ? (z(), j("span", Re, G(e.summaryParams.column.field.addonBefore), 1)) : A("", !0),
|
|
315
|
+
P(" " + G(n.value) + " ", 1),
|
|
316
|
+
e.summaryParams?.column?.field?.addonAfter ? (z(), j("span", ze, G(e.summaryParams.column.field.addonAfter), 1)) : A("", !0)
|
|
317
317
|
], 64));
|
|
318
318
|
}
|
|
319
|
-
}),
|
|
319
|
+
}), Y = (e) => e.valueKey || "id", Ve = (e) => e.labelKey || "name", He = (e) => {
|
|
320
320
|
let t = [], n = e.labelKeyList || [];
|
|
321
|
-
return n.length > 0 && e.labelKeyType !== 1 ? t.push(
|
|
322
|
-
},
|
|
321
|
+
return n.length > 0 && e.labelKeyType !== 1 ? t.push(Y(e), ...n) : t.push(Y(e), Ve(e)), e.extendedFields && e.extendedFields.length > 0 && t.push(...e.extendedFields), [...new Set(t)];
|
|
322
|
+
}, Ue = (e) => {
|
|
323
323
|
let t = e.labelKeyList || [];
|
|
324
|
-
return t.length > 0 && e.labelKeyType !== 1 ? [...t] : [
|
|
325
|
-
},
|
|
324
|
+
return t.length > 0 && e.labelKeyType !== 1 ? [...t] : [Ve(e)];
|
|
325
|
+
}, X = (e, t, n) => {
|
|
326
326
|
if (n.operator === "not_blank_not_null") t.push({
|
|
327
327
|
field_name: n.field_name,
|
|
328
328
|
operator: n.operator,
|
|
@@ -349,7 +349,7 @@ var Pe = /*#__PURE__*/ n(ke, [["render", Ne], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
349
349
|
class_name: n.class_name
|
|
350
350
|
});
|
|
351
351
|
}
|
|
352
|
-
},
|
|
352
|
+
}, We = (t) => {
|
|
353
353
|
let n = t.required_condition, r = {};
|
|
354
354
|
if (n) {
|
|
355
355
|
let t = e();
|
|
@@ -359,7 +359,7 @@ var Pe = /*#__PURE__*/ n(ke, [["render", Ne], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
359
359
|
});
|
|
360
360
|
}
|
|
361
361
|
return r;
|
|
362
|
-
},
|
|
362
|
+
}, Ge = (e, t, n, r, i) => {
|
|
363
363
|
let a = [], o = [[{
|
|
364
364
|
searchType: 3,
|
|
365
365
|
field_name: "is_active",
|
|
@@ -372,22 +372,22 @@ var Pe = /*#__PURE__*/ n(ke, [["render", Ne], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
372
372
|
let o = [];
|
|
373
373
|
e.forEach((e) => {
|
|
374
374
|
e.searchType === 1 ? Object.keys(n || t).forEach((r) => {
|
|
375
|
-
e.select_name == r &&
|
|
375
|
+
e.select_name == r && X((n || t)[r], o, e);
|
|
376
376
|
}) : e.searchType === 2 ? Object.keys(t).forEach((n) => {
|
|
377
|
-
e.select_name == n &&
|
|
378
|
-
}) : e.searchType === 3 ?
|
|
377
|
+
e.select_name == n && X(t[n], o, e);
|
|
378
|
+
}) : e.searchType === 3 ? X(e.value, o, e) : e.searchType === 4 ? X(b(e.select_name, r, ["formModel", ...i]), o, e) : X(e.value, o, e);
|
|
379
379
|
}), a.push(o);
|
|
380
380
|
}), a;
|
|
381
|
-
},
|
|
381
|
+
}, Ke = (e, t, n, r, i) => {
|
|
382
382
|
let a = {};
|
|
383
383
|
return e.simpleSearchConditions && e.simpleSearchConditions.forEach((e) => {
|
|
384
384
|
e.searchType === 1 ? Object.keys(n || t).forEach((r) => {
|
|
385
385
|
e.select_name == r && (a[e.field_name] = (n || t)[r]);
|
|
386
386
|
}) : e.searchType === 2 ? Object.keys(t).forEach((n) => {
|
|
387
387
|
e.select_name == n && (a[e.field_name] = t[n]);
|
|
388
|
-
}) : e.searchType === 3 ? a[e.field_name] = e.value : e.searchType === 4 && (a[e.field_name] =
|
|
388
|
+
}) : e.searchType === 3 ? a[e.field_name] = e.value : e.searchType === 4 && (a[e.field_name] = b(e.select_name, r, ["formModel", ...i]));
|
|
389
389
|
}), a;
|
|
390
|
-
},
|
|
390
|
+
}, qe = (e, t, n, r, i) => {
|
|
391
391
|
let a = {
|
|
392
392
|
current: 1,
|
|
393
393
|
pageSize: 200,
|
|
@@ -395,38 +395,38 @@ var Pe = /*#__PURE__*/ n(ke, [["render", Ne], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
395
395
|
request_source: "strict",
|
|
396
396
|
is_active: !0,
|
|
397
397
|
...e.init_model || {},
|
|
398
|
-
column_fields:
|
|
399
|
-
sort_fields: e.init_model?.sort_fields ||
|
|
398
|
+
column_fields: He(e),
|
|
399
|
+
sort_fields: e.init_model?.sort_fields || Ue(e),
|
|
400
400
|
conditions: [],
|
|
401
401
|
simpleSearchParams: {}
|
|
402
|
-
}, o =
|
|
402
|
+
}, o = We(e);
|
|
403
403
|
if (e.queryType === "simple") {
|
|
404
|
-
let s =
|
|
404
|
+
let s = Ke(e, t, n, r, i), c = {
|
|
405
405
|
...a,
|
|
406
406
|
...s,
|
|
407
407
|
required_condition: o
|
|
408
408
|
};
|
|
409
409
|
return delete c.conditions, delete c.simpleSearchParams, c;
|
|
410
410
|
}
|
|
411
|
-
let s =
|
|
411
|
+
let s = Ge(e, t, n, r, i), c = {
|
|
412
412
|
...a,
|
|
413
413
|
conditions: s,
|
|
414
414
|
required_condition: o
|
|
415
415
|
};
|
|
416
416
|
return delete c.simpleSearchParams, c;
|
|
417
|
-
},
|
|
417
|
+
}, Je = (e, t, n) => {
|
|
418
418
|
let r = n.every((e) => typeof e == "number" || typeof e == "string" && e.trim() !== "" && !isNaN(Number(e))) ? "int" : "str";
|
|
419
|
-
return t.queryType === "simple" ? e[
|
|
419
|
+
return t.queryType === "simple" ? e[Y(t)] = n.length > 0 ? n.join(",") : "" : (e.conditions && e.conditions.length > 0 || (e.conditions = [[]]), e.conditions[0].push({
|
|
420
420
|
class_name: r,
|
|
421
421
|
operator: "in",
|
|
422
422
|
value: n,
|
|
423
423
|
format: "remote",
|
|
424
|
-
field_name:
|
|
424
|
+
field_name: Y(t)
|
|
425
425
|
})), e;
|
|
426
|
-
}, Je = (e, t) => {
|
|
427
|
-
let n = (e) => X(t) === "id" ? isNaN(Number(e)) ? e : Number(e) : e;
|
|
428
|
-
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)];
|
|
429
426
|
}, Ye = (e, t) => {
|
|
427
|
+
let n = (e) => Y(t) === "id" ? isNaN(Number(e)) ? e : Number(e) : e;
|
|
428
|
+
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)];
|
|
429
|
+
}, Xe = (e, t) => {
|
|
430
430
|
if (e.labelKeyList && e.labelKeyList.length > 0 && e.labelKeyType !== 1) {
|
|
431
431
|
let n = [];
|
|
432
432
|
for (let r of e.labelKeyList) {
|
|
@@ -435,15 +435,15 @@ var Pe = /*#__PURE__*/ n(ke, [["render", Ne], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
435
435
|
}
|
|
436
436
|
return n.join(e.labelSpace || "-");
|
|
437
437
|
}
|
|
438
|
-
let n = t[
|
|
438
|
+
let n = t[Ve(e)];
|
|
439
439
|
return n == null ? "" : String(n);
|
|
440
440
|
};
|
|
441
|
-
async function
|
|
441
|
+
async function Ze(e) {
|
|
442
442
|
let { field: t, targets: n, baseKeyPath: r, context: i } = e;
|
|
443
443
|
if (!t.postUrl || !n || n.length === 0) return {};
|
|
444
444
|
let o = /* @__PURE__ */ new Map();
|
|
445
445
|
for (let e of n) {
|
|
446
|
-
let n = [...r, e.rowIndex], a =
|
|
446
|
+
let n = [...r, e.rowIndex], a = qe(t, e.row || {}, {}, i, n), s = Ye(e.row?.[t.name], t);
|
|
447
447
|
if (s.length === 0) continue;
|
|
448
448
|
let c = JSON.stringify(a);
|
|
449
449
|
o.has(c) || o.set(c, {
|
|
@@ -460,7 +460,7 @@ async function Xe(e) {
|
|
|
460
460
|
if (n.length !== 0) {
|
|
461
461
|
for (let r = 0; r < n.length; r += 100) {
|
|
462
462
|
let i = n.slice(r, r + 100), o = JSON.parse(JSON.stringify(e.params));
|
|
463
|
-
|
|
463
|
+
Je(o, t, i);
|
|
464
464
|
let s = [];
|
|
465
465
|
try {
|
|
466
466
|
s = (await a(o, t.postUrl, !1, { skip_error: !0 }))?.data || [];
|
|
@@ -468,9 +468,9 @@ async function Xe(e) {
|
|
|
468
468
|
console.error("resolveRemoteSelectProLabels fetch error:", t.name, e);
|
|
469
469
|
}
|
|
470
470
|
for (let e of s) {
|
|
471
|
-
let n = e[
|
|
471
|
+
let n = e[Y(t)], r = String(n);
|
|
472
472
|
c.has(r) || c.set(r, {
|
|
473
|
-
label:
|
|
473
|
+
label: Xe(t, e),
|
|
474
474
|
option: e
|
|
475
475
|
});
|
|
476
476
|
}
|
|
@@ -498,16 +498,16 @@ async function Xe(e) {
|
|
|
498
498
|
}
|
|
499
499
|
//#endregion
|
|
500
500
|
//#region src/components/FormRender/FormTemplate/FormTemplateTable.vue?vue&type=script&setup=true&lang.ts
|
|
501
|
-
var
|
|
501
|
+
var Qe = {
|
|
502
502
|
key: 0,
|
|
503
503
|
class: "required-star"
|
|
504
|
-
},
|
|
504
|
+
}, $e = {
|
|
505
505
|
key: 0,
|
|
506
506
|
class: "cell-item"
|
|
507
|
-
},
|
|
507
|
+
}, et = {
|
|
508
508
|
key: 1,
|
|
509
509
|
class: "cell-item"
|
|
510
|
-
},
|
|
510
|
+
}, tt = /*#__PURE__*/ n(/* @__PURE__ */ I({
|
|
511
511
|
__name: "FormTemplateTable",
|
|
512
512
|
props: {
|
|
513
513
|
value: {},
|
|
@@ -525,16 +525,16 @@ var Ze = {
|
|
|
525
525
|
},
|
|
526
526
|
emits: ["remove", "labels_resolved"],
|
|
527
527
|
setup(e, { emit: t }) {
|
|
528
|
-
let n =
|
|
528
|
+
let n = V({
|
|
529
529
|
showQuickJumper: !0,
|
|
530
530
|
showSizeChanger: !1,
|
|
531
531
|
showTotal: (e) => `共 ${e} 条记录`,
|
|
532
532
|
pageSize: 5,
|
|
533
533
|
current: 1
|
|
534
|
-
}), r = e, i = t, a =
|
|
534
|
+
}), r = e, i = t, a = B({ ...r.field.form?.rules || {} }), o = V([]), s = V([]), c = V([]), l = (() => {
|
|
535
535
|
let e = /* @__PURE__ */ new Uint8Array(16);
|
|
536
536
|
return window.crypto.getRandomValues(e), Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
537
|
-
})(), f =
|
|
537
|
+
})(), f = V([]), p = () => {
|
|
538
538
|
let e = [], t = [];
|
|
539
539
|
(r.value || []).forEach((n, r) => {
|
|
540
540
|
c.value[r] || (c.value[r] = {});
|
|
@@ -551,31 +551,31 @@ var Ze = {
|
|
|
551
551
|
}, m = (e, t) => {
|
|
552
552
|
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());
|
|
553
553
|
};
|
|
554
|
-
|
|
554
|
+
K(() => r.value, () => {
|
|
555
555
|
p();
|
|
556
556
|
}, {
|
|
557
557
|
deep: !0,
|
|
558
558
|
immediate: !0
|
|
559
|
-
}),
|
|
560
|
-
|
|
561
|
-
}, { deep: !0 }),
|
|
562
|
-
|
|
563
|
-
}, { deep: !0 }),
|
|
564
|
-
|
|
565
|
-
}, { deep: !0 }),
|
|
566
|
-
|
|
567
|
-
}),
|
|
568
|
-
r.nestValidate && delete r.nestValidate[l],
|
|
559
|
+
}), K(() => r.field, () => {
|
|
560
|
+
_();
|
|
561
|
+
}, { deep: !0 }), K(() => r.formModel, () => {
|
|
562
|
+
_();
|
|
563
|
+
}, { deep: !0 }), K(() => r.context, () => {
|
|
564
|
+
_();
|
|
565
|
+
}, { deep: !0 }), R(() => {
|
|
566
|
+
_(), y();
|
|
567
|
+
}), ge(() => {
|
|
568
|
+
r.nestValidate && delete r.nestValidate[l], y.cancel(), i("labels_resolved");
|
|
569
569
|
});
|
|
570
|
-
let
|
|
570
|
+
let ee = O(() => {
|
|
571
571
|
let e = 0;
|
|
572
572
|
return f.value.forEach((t) => {
|
|
573
573
|
e += t._width || 150;
|
|
574
574
|
}), e;
|
|
575
|
-
}),
|
|
575
|
+
}), h = O(() => (r.value || []).map((e, t) => ({
|
|
576
576
|
...e,
|
|
577
577
|
_key: t
|
|
578
|
-
}))),
|
|
578
|
+
}))), g = (e) => {
|
|
579
579
|
if (r.field?.form?.rules) {
|
|
580
580
|
let t = r.field?.form?.rules[e];
|
|
581
581
|
if (t) {
|
|
@@ -583,7 +583,7 @@ var Ze = {
|
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
return !1;
|
|
586
|
-
},
|
|
586
|
+
}, _ = async () => {
|
|
587
587
|
let e = [], t = {};
|
|
588
588
|
if (e.push({
|
|
589
589
|
title: "序号",
|
|
@@ -596,7 +596,7 @@ var Ze = {
|
|
|
596
596
|
t[n.name] = !0;
|
|
597
597
|
let r = n.is_table_auto_width;
|
|
598
598
|
(r == null || r === "") && (r = !0);
|
|
599
|
-
let i =
|
|
599
|
+
let i = g(n.name), a = {
|
|
600
600
|
title: n.label,
|
|
601
601
|
dataIndex: n.name,
|
|
602
602
|
key: n.name,
|
|
@@ -637,16 +637,16 @@ var Ze = {
|
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
639
|
f.value = e;
|
|
640
|
-
},
|
|
640
|
+
}, v = (e) => {
|
|
641
641
|
c.value.splice(e, 1), i("remove", e);
|
|
642
|
-
},
|
|
642
|
+
}, te = () => {
|
|
643
643
|
let e = [];
|
|
644
644
|
return r.field?.form?.dynamicFieldList?.forEach((t) => {
|
|
645
645
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
646
646
|
t.type === "remoteselectpro" && t.postUrl && !t.is_table_hide_column && e.push(t);
|
|
647
647
|
});
|
|
648
648
|
}), e;
|
|
649
|
-
},
|
|
649
|
+
}, ne = (e, t, n) => {
|
|
650
650
|
if (!e) return !1;
|
|
651
651
|
let i = e[t.name];
|
|
652
652
|
if (!(i != null && i !== "" && !(i instanceof Array && i.length === 0))) return !1;
|
|
@@ -654,20 +654,20 @@ var Ze = {
|
|
|
654
654
|
if (a == null || a === "" || a instanceof Array && a.length === 0) return !0;
|
|
655
655
|
let o = r.innerModel?.[r.field.name]?.[n];
|
|
656
656
|
return !o || o[t.name] === void 0 || o[t.name] === null;
|
|
657
|
-
},
|
|
657
|
+
}, y = we(async () => {
|
|
658
658
|
if (!r.is_form_design) try {
|
|
659
|
-
let e =
|
|
659
|
+
let e = te();
|
|
660
660
|
if (e.length === 0 || !r.value || r.value.length === 0) return;
|
|
661
661
|
let t = r.value;
|
|
662
662
|
for (let n of e) {
|
|
663
663
|
let e = [];
|
|
664
664
|
if (t.forEach((t, r) => {
|
|
665
|
-
|
|
665
|
+
ne(t, n, r) && e.push({
|
|
666
666
|
rowIndex: r,
|
|
667
667
|
row: t
|
|
668
668
|
});
|
|
669
669
|
}), e.length === 0) continue;
|
|
670
|
-
let i = await
|
|
670
|
+
let i = await Ze({
|
|
671
671
|
field: n,
|
|
672
672
|
targets: e,
|
|
673
673
|
baseKeyPath: [...r.baseKeyPath || [], r.field.name],
|
|
@@ -687,63 +687,63 @@ var Ze = {
|
|
|
687
687
|
i("labels_resolved");
|
|
688
688
|
}
|
|
689
689
|
}, 300);
|
|
690
|
-
|
|
690
|
+
K(() => [
|
|
691
691
|
r.value,
|
|
692
692
|
r.field,
|
|
693
693
|
r.context
|
|
694
694
|
], () => {
|
|
695
|
-
|
|
695
|
+
y();
|
|
696
696
|
}, { deep: !0 });
|
|
697
|
-
let
|
|
697
|
+
let b = O(() => {
|
|
698
698
|
if (r.innerModel) {
|
|
699
699
|
let e = r.innerModel[r.field.name] || [];
|
|
700
700
|
return (r.value || []).map((t, n) => e[n] || {});
|
|
701
701
|
}
|
|
702
702
|
return [];
|
|
703
|
-
}),
|
|
703
|
+
}), re = O(() => {
|
|
704
704
|
let e = [], t = 0;
|
|
705
705
|
for (let n of f.value) n.is_summary && e.push({ index: t }), t++;
|
|
706
706
|
return e;
|
|
707
707
|
});
|
|
708
708
|
return (e, t) => {
|
|
709
|
-
let r =
|
|
710
|
-
return
|
|
709
|
+
let r = U("DeleteOutlined"), i = U("a-button"), a = U("s-table-summary-cell"), s = U("s-table-summary-row"), c = U("s-table");
|
|
710
|
+
return z(), k(x, {
|
|
711
711
|
"dynamic-title": e.field.dynamicTitle,
|
|
712
712
|
"onUpdate:dynamicTitle": t[1] ||= (t) => e.field.dynamicTitle = t
|
|
713
713
|
}, {
|
|
714
|
-
default:
|
|
715
|
-
dataSource:
|
|
714
|
+
default: q(() => [(z(), k(c, {
|
|
715
|
+
dataSource: h.value,
|
|
716
716
|
columns: f.value,
|
|
717
717
|
autoRowHeight: !0,
|
|
718
718
|
bordered: !0,
|
|
719
719
|
stripe: "",
|
|
720
720
|
"summary-fixed": "",
|
|
721
|
-
scroll: { x:
|
|
721
|
+
scroll: { x: ee.value },
|
|
722
722
|
size: "small",
|
|
723
723
|
"row-key": "_key",
|
|
724
724
|
key: f.value.length,
|
|
725
725
|
pagination: n.value,
|
|
726
726
|
"onUpdate:pagination": t[0] ||= (e) => n.value = e,
|
|
727
727
|
rangeSelection: !1
|
|
728
|
-
},
|
|
729
|
-
headerCell:
|
|
730
|
-
bodyCell:
|
|
731
|
-
onClick: (e) =>
|
|
728
|
+
}, N({
|
|
729
|
+
headerCell: q(({ column: e }) => [M("span", null, G(e.title), 1), e.has_reqrired ? (z(), j("span", Qe, " * ")) : A("", !0)]),
|
|
730
|
+
bodyCell: q(({ column: t, record: n }) => [t.key === "action" ? (z(), j(D, { key: 0 }, [e.lockStructure ? A("", !0) : (z(), j("div", $e, [F(i, {
|
|
731
|
+
onClick: (e) => v(n._key),
|
|
732
732
|
size: "small",
|
|
733
733
|
type: "link",
|
|
734
734
|
danger: "",
|
|
735
735
|
disabled: e.value.length <= e.min_count
|
|
736
736
|
}, {
|
|
737
|
-
icon:
|
|
737
|
+
icon: q(() => [F(r)]),
|
|
738
738
|
_: 2
|
|
739
|
-
}, 1032, ["onClick", "disabled"])]))], 64)) : t.key === "index" ? (
|
|
739
|
+
}, 1032, ["onClick", "disabled"])]))], 64)) : t.key === "index" ? (z(), j("div", et, G(n._key + 1), 1)) : t.field ? (z(), k(Le, {
|
|
740
740
|
key: `${n._key}_${t.dataIndex}`,
|
|
741
741
|
field: t.field,
|
|
742
742
|
model: e.value[n._key],
|
|
743
743
|
validateInfos: o.value[n._key] || {},
|
|
744
744
|
options: e.field.form?.options || {},
|
|
745
745
|
context: e.context,
|
|
746
|
-
innerModel:
|
|
746
|
+
innerModel: b.value[n._key],
|
|
747
747
|
globalInnerModel: e.globalInnerModel,
|
|
748
748
|
nestValidate: e.nestValidate,
|
|
749
749
|
baseKeyPath: [
|
|
@@ -769,21 +769,21 @@ var Ze = {
|
|
|
769
769
|
"is_form_design",
|
|
770
770
|
"has_reqrired",
|
|
771
771
|
"onUpdate_model"
|
|
772
|
-
])) :
|
|
772
|
+
])) : A("", !0)]),
|
|
773
773
|
_: 2
|
|
774
|
-
}, [
|
|
774
|
+
}, [re.value.length > 0 ? {
|
|
775
775
|
name: "summary",
|
|
776
|
-
fn:
|
|
777
|
-
default:
|
|
778
|
-
default:
|
|
776
|
+
fn: q(() => [F(s, null, {
|
|
777
|
+
default: q(() => [F(a, { index: 0 }, {
|
|
778
|
+
default: q(() => t[2] ||= [P("合计")]),
|
|
779
779
|
_: 1
|
|
780
|
-
}), (
|
|
780
|
+
}), (z(!0), j(D, null, H(re.value, (e) => (z(), k(a, {
|
|
781
781
|
key: e.index,
|
|
782
782
|
index: e.index
|
|
783
783
|
}, {
|
|
784
|
-
default:
|
|
784
|
+
default: q((e) => [F(Be, {
|
|
785
785
|
"summary-params": e,
|
|
786
|
-
tableDataSource:
|
|
786
|
+
tableDataSource: h.value
|
|
787
787
|
}, null, 8, ["summary-params", "tableDataSource"])]),
|
|
788
788
|
_: 2
|
|
789
789
|
}, 1032, ["index"]))), 128))]),
|
|
@@ -800,11 +800,34 @@ var Ze = {
|
|
|
800
800
|
}, 8, ["dynamic-title"]);
|
|
801
801
|
};
|
|
802
802
|
}
|
|
803
|
-
}), [["__scopeId", "data-v-45a6db00"]]),
|
|
803
|
+
}), [["__scopeId", "data-v-45a6db00"]]), Z = /* @__PURE__ */ new Set();
|
|
804
804
|
function nt(e, t = []) {
|
|
805
805
|
return [...t, e.name || e.code || "field"].join("__");
|
|
806
806
|
}
|
|
807
|
-
|
|
807
|
+
function rt(e) {
|
|
808
|
+
return Z.has(e);
|
|
809
|
+
}
|
|
810
|
+
function it(e) {
|
|
811
|
+
return e.some((e) => Z.has(e)) ? !1 : (e.forEach((e) => Z.add(e)), !0);
|
|
812
|
+
}
|
|
813
|
+
function at(e) {
|
|
814
|
+
e.forEach((e) => Z.delete(e));
|
|
815
|
+
}
|
|
816
|
+
async function ot(e, t) {
|
|
817
|
+
let n = e.serialConfig || {};
|
|
818
|
+
try {
|
|
819
|
+
let e = await a({
|
|
820
|
+
org_id: c(),
|
|
821
|
+
mode: n.mode || "M1",
|
|
822
|
+
kwargs: JSON.stringify(n),
|
|
823
|
+
count: t
|
|
824
|
+
}, "/approve/get_approve_serial_number", !1);
|
|
825
|
+
return !Array.isArray(e) || e.length !== t ? { error: "流水号批量分配返回数量不符" } : { codes: e };
|
|
826
|
+
} catch (e) {
|
|
827
|
+
return console.error(e), { error: e?.message || "流水号批量分配失败" };
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
async function st(e) {
|
|
808
831
|
try {
|
|
809
832
|
let t = e.serialConfig || {};
|
|
810
833
|
return { value: await a({
|
|
@@ -820,7 +843,7 @@ async function rt(e) {
|
|
|
820
843
|
};
|
|
821
844
|
}
|
|
822
845
|
}
|
|
823
|
-
async function
|
|
846
|
+
async function ct(e) {
|
|
824
847
|
let { field: t, currentValue: n, innerModel: r, globalInnerModel: i, formModel: o, context: s, baseKeyPath: l = [], workerHostFunctions: d = {}, is_form_design: f = !1, lock_structure: p = !1 } = e;
|
|
825
848
|
if (t.watchType === "scoped") {
|
|
826
849
|
if (t.valueType === "single") {
|
|
@@ -851,7 +874,7 @@ async function it(e) {
|
|
|
851
874
|
}
|
|
852
875
|
}
|
|
853
876
|
} else if (t.watchType === "context") {
|
|
854
|
-
let e =
|
|
877
|
+
let e = b(t.fieldName || "", s, ["formModel", ...l]);
|
|
855
878
|
if (t.valueType === "single") {
|
|
856
879
|
let r = e;
|
|
857
880
|
if (t.valueKey && (r = r?.[t.valueKey]), r === void 0 && n !== void 0) return { value: "" };
|
|
@@ -885,11 +908,11 @@ async function it(e) {
|
|
|
885
908
|
else if (t.watchType === "serial") {
|
|
886
909
|
let e = t.serialConfig || {};
|
|
887
910
|
if (p && e.mode === "M5") return null;
|
|
888
|
-
if (f) return await
|
|
911
|
+
if (f) return await st(t);
|
|
889
912
|
if (n != null && n !== "") return null;
|
|
890
913
|
let r = nt(t, l);
|
|
891
|
-
if (
|
|
892
|
-
|
|
914
|
+
if (Z.has(r)) return null;
|
|
915
|
+
Z.add(r);
|
|
893
916
|
try {
|
|
894
917
|
let t = await a({
|
|
895
918
|
org_id: c(),
|
|
@@ -903,23 +926,23 @@ async function it(e) {
|
|
|
903
926
|
error: e?.message || "流水号分配失败"
|
|
904
927
|
};
|
|
905
928
|
} finally {
|
|
906
|
-
|
|
929
|
+
Z.delete(r);
|
|
907
930
|
}
|
|
908
931
|
}
|
|
909
932
|
return null;
|
|
910
933
|
}
|
|
911
934
|
//#endregion
|
|
912
935
|
//#region src/components/FormRender/addonValue.ts
|
|
913
|
-
var
|
|
914
|
-
if (!
|
|
936
|
+
var lt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ut = (e, t) => t && e.endsWith(t) ? e.slice(0, -t.length) : e, dt = (e) => e != null && !(e instanceof Array) && typeof e != "object", ft = (e, t) => {
|
|
937
|
+
if (!dt(t)) return t;
|
|
915
938
|
let n = `${t}`;
|
|
916
|
-
return e?.extraAddonAfter && e?.addonAfter && (n =
|
|
917
|
-
},
|
|
918
|
-
let n =
|
|
919
|
-
if (!
|
|
939
|
+
return e?.extraAddonAfter && e?.addonAfter && (n = ut(n, e.addonAfter)), e?.extraAddonBefore && e?.addonBefore && (n = lt(n, e.addonBefore)), n;
|
|
940
|
+
}, pt = (e, t) => {
|
|
941
|
+
let n = ft(e, t);
|
|
942
|
+
if (!dt(n) || n === "") return n;
|
|
920
943
|
let r = `${n}`;
|
|
921
944
|
return e?.extraAddonBefore && e?.addonBefore && (r = `${e.addonBefore}${r}`), e?.extraAddonAfter && e?.addonAfter && (r = `${r}${e.addonAfter}`), r;
|
|
922
|
-
}, Q = i(),
|
|
945
|
+
}, Q = i(), mt = { class: "top_btn" }, ht = /*#__PURE__*/ n(/* @__PURE__ */ I({
|
|
923
946
|
__name: "FormTemplate",
|
|
924
947
|
props: {
|
|
925
948
|
field: {},
|
|
@@ -942,16 +965,16 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
942
965
|
},
|
|
943
966
|
emits: ["update:value"],
|
|
944
967
|
setup(e, { emit: t }) {
|
|
945
|
-
let n = e, r =
|
|
968
|
+
let n = e, r = fe("FORM_LOCK_STRUCTURE", V(!1)), i = O(() => !!n.lockStructure || !!ve(r)), a = t, o = V(0), s = ke(), c = [{
|
|
946
969
|
label: "添加(add)",
|
|
947
970
|
value: "add"
|
|
948
971
|
}, {
|
|
949
972
|
label: "整体更新(update)",
|
|
950
973
|
value: "update"
|
|
951
|
-
}], l =
|
|
952
|
-
|
|
974
|
+
}], l = ue(() => import("./ImportExcelModal-Dds857L2.js")), d = O(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("download"))), f = O(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("import"))), p = () => {
|
|
975
|
+
Se.confirm({
|
|
953
976
|
title: "确认清空吗?",
|
|
954
|
-
icon:
|
|
977
|
+
icon: F(Ee),
|
|
955
978
|
content: "清空后将无法恢复",
|
|
956
979
|
okText: "确认",
|
|
957
980
|
cancelText: "取消",
|
|
@@ -959,13 +982,13 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
959
982
|
a("update:value", []);
|
|
960
983
|
}
|
|
961
984
|
});
|
|
962
|
-
}, m =
|
|
985
|
+
}, m = O(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("clear"))), ee = O(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("add"))), h = {}, g = {}, _ = () => {
|
|
963
986
|
let e = [], t = n.field.form?.dynamicFieldList || [];
|
|
964
987
|
t.forEach((t) => {
|
|
965
988
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
966
989
|
if (t.is_table_hide_column || t.type === "dynamicvaluefield") return;
|
|
967
990
|
let r = { ...t };
|
|
968
|
-
t?.name2 && (
|
|
991
|
+
t?.name2 && (h[t.name] = t?.name2), t.type === "remoteselectpro" && (g[t.name] = t), [
|
|
969
992
|
"select",
|
|
970
993
|
"radio",
|
|
971
994
|
"checkbox",
|
|
@@ -974,7 +997,7 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
974
997
|
].includes(t.type) && (r.options = n.field.form?.options?.[t.name] || t.options), e.push(r);
|
|
975
998
|
});
|
|
976
999
|
});
|
|
977
|
-
let r =
|
|
1000
|
+
let r = B({
|
|
978
1001
|
open: !0,
|
|
979
1002
|
loading: !1,
|
|
980
1003
|
component: l,
|
|
@@ -985,8 +1008,8 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
985
1008
|
e.forEach((e) => {
|
|
986
1009
|
let r = (0, Q.cloneDeep)(n.field.form.model || {});
|
|
987
1010
|
Object.keys(e).forEach((t) => {
|
|
988
|
-
e[t].error && i.push(
|
|
989
|
-
let n =
|
|
1011
|
+
e[t].error && i.push(de("li", e[t].error + "(" + e[t].excel_position + ")")), r[t] = e[t].value, h[t] && (r[h[t]] = e[t].raw_value);
|
|
1012
|
+
let n = g[t];
|
|
990
1013
|
if (n) {
|
|
991
1014
|
let i = e[t].raw_value;
|
|
992
1015
|
i != null && i !== "" && (n.mode === "default" || !n.mode) && (r[t + ".label"] = i);
|
|
@@ -996,18 +1019,18 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
996
1019
|
e.type === "dynamicvaluefield" && delete r[e.name];
|
|
997
1020
|
});
|
|
998
1021
|
}), o.push(r);
|
|
999
|
-
}), i.length > 0 ?
|
|
1022
|
+
}), i.length > 0 ? Se.warning({
|
|
1000
1023
|
title: "导入Excel报错, 请改正后再尝试导入",
|
|
1001
|
-
content:
|
|
1002
|
-
icon:
|
|
1024
|
+
content: de("ol", i),
|
|
1025
|
+
icon: F(Ee)
|
|
1003
1026
|
}) : a("update:value", [...n.value || [], ...o]), r.open = !1;
|
|
1004
1027
|
},
|
|
1005
1028
|
onCancel: () => {
|
|
1006
1029
|
r.open = !1;
|
|
1007
1030
|
}
|
|
1008
1031
|
});
|
|
1009
|
-
|
|
1010
|
-
},
|
|
1032
|
+
y(r);
|
|
1033
|
+
}, v = V(!1), te = (e) => {
|
|
1011
1034
|
if (n.field?.form?.rules) {
|
|
1012
1035
|
let t = n.field?.form?.rules[e];
|
|
1013
1036
|
if (t) {
|
|
@@ -1015,32 +1038,32 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1015
1038
|
}
|
|
1016
1039
|
}
|
|
1017
1040
|
return !1;
|
|
1018
|
-
},
|
|
1019
|
-
|
|
1041
|
+
}, ne = () => {
|
|
1042
|
+
v.value = !0;
|
|
1020
1043
|
let e = [], t = [];
|
|
1021
1044
|
(n.field.form?.dynamicFieldList || []).forEach((r) => {
|
|
1022
1045
|
r.children instanceof Array && r.children.forEach((r) => {
|
|
1023
|
-
r.is_hide || r.is_table_hide_column || r.type !== "dynamicvaluefield" && (e.push(
|
|
1046
|
+
r.is_hide || r.is_table_hide_column || r.type !== "dynamicvaluefield" && (e.push(te(r.name) ? { title: [r.label, {
|
|
1024
1047
|
text: "[必填]",
|
|
1025
1048
|
color: "FFFF0000"
|
|
1026
1049
|
}] } : { title: [r.label] }), n.value && n.value.length > 0 ? t.push(n.value[0][r.name] ? n.value[0][r.name].toString() : "") : t.push(""));
|
|
1027
1050
|
});
|
|
1028
|
-
}),
|
|
1051
|
+
}), re({
|
|
1029
1052
|
data: [t],
|
|
1030
1053
|
autoWidth: !0,
|
|
1031
1054
|
filename: n.field.label || "导入模板",
|
|
1032
1055
|
header: e
|
|
1033
1056
|
}), setTimeout(() => {
|
|
1034
|
-
|
|
1057
|
+
v.value = !1;
|
|
1035
1058
|
}, 1500);
|
|
1036
|
-
},
|
|
1059
|
+
}, b = O(() => n.field.min_count ?? 0), ie = O(() => {
|
|
1037
1060
|
if (n.innerModel) {
|
|
1038
1061
|
n.innerModel[n.field.name] || (n.innerModel[n.field.name] = []);
|
|
1039
1062
|
for (let e = 0; e < n.value.length; e++) n.innerModel[n.field.name][e] || (n.innerModel[n.field.name][e] = {});
|
|
1040
1063
|
return n.innerModel[n.field.name];
|
|
1041
1064
|
}
|
|
1042
1065
|
return [];
|
|
1043
|
-
}),
|
|
1066
|
+
}), ae = async (e) => {
|
|
1044
1067
|
if (e.code) {
|
|
1045
1068
|
let t;
|
|
1046
1069
|
try {
|
|
@@ -1050,7 +1073,7 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1050
1073
|
keyPath: [...n.baseKeyPath, n.field.name]
|
|
1051
1074
|
}, n.workerHostFunctions || {});
|
|
1052
1075
|
} catch (e) {
|
|
1053
|
-
|
|
1076
|
+
Ce.error(e.message);
|
|
1054
1077
|
return;
|
|
1055
1078
|
}
|
|
1056
1079
|
if (e.action == "add") {
|
|
@@ -1069,16 +1092,16 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1069
1092
|
a("update:value", e);
|
|
1070
1093
|
}
|
|
1071
1094
|
}
|
|
1072
|
-
},
|
|
1095
|
+
}, oe = () => {
|
|
1073
1096
|
let e = n.value || [];
|
|
1074
1097
|
e.push((0, Q.cloneDeep)(n.field.form.model || {})), a("update:value", e);
|
|
1075
|
-
},
|
|
1098
|
+
}, se = (e) => {
|
|
1076
1099
|
let t = n.value || [];
|
|
1077
1100
|
t.splice(e, 1), a("update:value", t);
|
|
1078
|
-
},
|
|
1101
|
+
}, S = (0, Q.debounce)(() => {
|
|
1079
1102
|
o.value = window.innerHeight - 165;
|
|
1080
|
-
}, 200),
|
|
1081
|
-
|
|
1103
|
+
}, 200), ce = () => {
|
|
1104
|
+
y(B({
|
|
1082
1105
|
open: !0,
|
|
1083
1106
|
loading: !1,
|
|
1084
1107
|
component: "InnerFormDesignModal",
|
|
@@ -1097,44 +1120,90 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1097
1120
|
}
|
|
1098
1121
|
}));
|
|
1099
1122
|
};
|
|
1100
|
-
|
|
1101
|
-
if (!(e instanceof Array) || e.length <
|
|
1123
|
+
K(() => n.value, (e) => {
|
|
1124
|
+
if (!(e instanceof Array) || e.length < b.value) {
|
|
1102
1125
|
let t = [...e || []];
|
|
1103
|
-
for (; t.length <
|
|
1126
|
+
for (; t.length < b.value;) t.push((0, Q.cloneDeep)(n.field.form.model || {}));
|
|
1104
1127
|
a("update:value", t);
|
|
1105
1128
|
}
|
|
1106
1129
|
});
|
|
1107
|
-
let
|
|
1130
|
+
let C = O(() => {
|
|
1108
1131
|
let e = [];
|
|
1109
1132
|
return (n.field?.form?.dynamicFieldList || []).forEach((t) => {
|
|
1110
1133
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
1111
1134
|
t.type === "dynamicvaluefield" && e.push(t);
|
|
1112
1135
|
});
|
|
1113
1136
|
}), e;
|
|
1114
|
-
}),
|
|
1137
|
+
}), w = O(() => {
|
|
1115
1138
|
let e = [];
|
|
1116
1139
|
return (n.field?.form?.dynamicFieldList || []).forEach((t) => {
|
|
1117
1140
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
1118
1141
|
(t.extraAddonBefore && t.addonBefore || t.extraAddonAfter && t.addonAfter) && e.push(t);
|
|
1119
1142
|
});
|
|
1120
1143
|
}), e;
|
|
1121
|
-
}),
|
|
1122
|
-
|
|
1123
|
-
},
|
|
1124
|
-
if (!
|
|
1125
|
-
|
|
1144
|
+
}), T = V(!1), le = O(() => 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 = V(!1), N = () => {
|
|
1145
|
+
E.value = !1, I(), L();
|
|
1146
|
+
}, I = (0, Q.debounce)(async () => {
|
|
1147
|
+
if (!T.value && !E.value) {
|
|
1148
|
+
T.value = !0;
|
|
1126
1149
|
try {
|
|
1127
1150
|
let e = n.value;
|
|
1128
|
-
if (!e || e.length === 0 ||
|
|
1151
|
+
if (!e || e.length === 0 || C.value.length === 0) return;
|
|
1129
1152
|
let t = !1, r = [...e];
|
|
1153
|
+
for (let e of C.value) {
|
|
1154
|
+
if (e.watchType !== "serial" || i.value && e.serialConfig?.mode === "M5") continue;
|
|
1155
|
+
let a = [];
|
|
1156
|
+
for (let t = 0; t < r.length; t++) {
|
|
1157
|
+
let n = r[t]?.[e.name];
|
|
1158
|
+
(n == null || n === "") && a.push(t);
|
|
1159
|
+
}
|
|
1160
|
+
if (a.length === 0) continue;
|
|
1161
|
+
if (n.is_form_design) {
|
|
1162
|
+
let o = await ct({
|
|
1163
|
+
field: e,
|
|
1164
|
+
currentValue: void 0,
|
|
1165
|
+
innerModel: null,
|
|
1166
|
+
globalInnerModel: n.globalInnerModel,
|
|
1167
|
+
formModel: null,
|
|
1168
|
+
context: n.context,
|
|
1169
|
+
baseKeyPath: [...n.baseKeyPath || [], n.field.name],
|
|
1170
|
+
workerHostFunctions: n.workerHostFunctions || {},
|
|
1171
|
+
is_form_design: !0,
|
|
1172
|
+
lock_structure: i.value
|
|
1173
|
+
});
|
|
1174
|
+
if (o && o.value !== void 0 && o.value !== null) for (let n of a) r[n] = {
|
|
1175
|
+
...r[n],
|
|
1176
|
+
[e.name]: o.value
|
|
1177
|
+
}, t = !0;
|
|
1178
|
+
continue;
|
|
1179
|
+
}
|
|
1180
|
+
let o = [...n.baseKeyPath || [], n.field.name], s = a.map((t) => ({
|
|
1181
|
+
row: t,
|
|
1182
|
+
key: nt(e, [...o, t])
|
|
1183
|
+
})).filter((e) => !rt(e.key));
|
|
1184
|
+
if (s.length === 0) continue;
|
|
1185
|
+
let c = s.map((e) => e.key);
|
|
1186
|
+
if (it(c)) try {
|
|
1187
|
+
let { codes: n, error: i } = await ot(e, s.length);
|
|
1188
|
+
i || !n ? console.error("流水号批量分配失败:", i) : s.forEach((i, a) => {
|
|
1189
|
+
r[i.row] = {
|
|
1190
|
+
...r[i.row],
|
|
1191
|
+
[e.name]: n[a]
|
|
1192
|
+
}, t = !0;
|
|
1193
|
+
});
|
|
1194
|
+
} finally {
|
|
1195
|
+
at(c);
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1130
1198
|
for (let e = 0; e < r.length; e++) {
|
|
1131
|
-
let a =
|
|
1199
|
+
let a = ie.value[e], o = [
|
|
1132
1200
|
...n.baseKeyPath || [],
|
|
1133
1201
|
n.field.name,
|
|
1134
1202
|
e
|
|
1135
1203
|
];
|
|
1136
|
-
for (let s of
|
|
1137
|
-
|
|
1204
|
+
for (let s of C.value) {
|
|
1205
|
+
if (s.watchType === "serial") continue;
|
|
1206
|
+
let c = r[e]?.[s.name], l = await ct({
|
|
1138
1207
|
field: s,
|
|
1139
1208
|
currentValue: c,
|
|
1140
1209
|
innerModel: a,
|
|
@@ -1154,98 +1223,98 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1154
1223
|
}
|
|
1155
1224
|
t && a("update:value", r);
|
|
1156
1225
|
} finally {
|
|
1157
|
-
|
|
1226
|
+
T.value = !1;
|
|
1158
1227
|
}
|
|
1159
1228
|
}
|
|
1160
|
-
}, 200),
|
|
1229
|
+
}, 200), L = (0, Q.debounce)(() => {
|
|
1161
1230
|
let e = n.value;
|
|
1162
|
-
if (!e || e.length === 0 ||
|
|
1231
|
+
if (!e || e.length === 0 || w.value.length === 0) return;
|
|
1163
1232
|
let t = !1, r = [...e];
|
|
1164
1233
|
for (let e = 0; e < r.length; e++) {
|
|
1165
1234
|
let n = r[e];
|
|
1166
1235
|
if (!n || typeof n != "object") continue;
|
|
1167
1236
|
let i = n;
|
|
1168
|
-
for (let e of
|
|
1169
|
-
let r = i[e.name], a =
|
|
1237
|
+
for (let e of w.value) {
|
|
1238
|
+
let r = i[e.name], a = pt(e, r);
|
|
1170
1239
|
a !== r && (i === n && (i = { ...n }), i[e.name] = a, t = !0);
|
|
1171
1240
|
}
|
|
1172
1241
|
r[e] = i;
|
|
1173
1242
|
}
|
|
1174
1243
|
t && a("update:value", r);
|
|
1175
1244
|
}, 200);
|
|
1176
|
-
return
|
|
1245
|
+
return K(() => [
|
|
1177
1246
|
n.value,
|
|
1178
1247
|
n.context,
|
|
1179
1248
|
n.field
|
|
1180
1249
|
], () => {
|
|
1181
|
-
|
|
1250
|
+
le.value ? E.value = !0 : E.value = !1, I(), L();
|
|
1182
1251
|
}, {
|
|
1183
1252
|
deep: !0,
|
|
1184
1253
|
immediate: !0
|
|
1185
|
-
}),
|
|
1186
|
-
|
|
1187
|
-
}, { deep: !0 }),
|
|
1188
|
-
if (window.addEventListener("resize",
|
|
1254
|
+
}), K(() => [n.innerModel, n.globalInnerModel], () => {
|
|
1255
|
+
I(), L();
|
|
1256
|
+
}, { deep: !0 }), R(() => {
|
|
1257
|
+
if (window.addEventListener("resize", S), S(), !(n.value instanceof Array) || n.value.length < b.value) {
|
|
1189
1258
|
let e = [...n.value || []];
|
|
1190
|
-
for (; e.length <
|
|
1259
|
+
for (; e.length < b.value;) e.push((0, Q.cloneDeep)(n.field.form.model || {}));
|
|
1191
1260
|
a("update:value", e);
|
|
1192
1261
|
}
|
|
1193
|
-
}),
|
|
1194
|
-
window.removeEventListener("resize",
|
|
1262
|
+
}), ge(() => {
|
|
1263
|
+
window.removeEventListener("resize", S), S.cancel(), I.cancel(), L.cancel();
|
|
1195
1264
|
}), (e, t) => {
|
|
1196
|
-
let n =
|
|
1197
|
-
return
|
|
1198
|
-
e.is_form_design ? (
|
|
1265
|
+
let n = U("a-button");
|
|
1266
|
+
return z(), j(D, null, [M("div", mt, [
|
|
1267
|
+
e.is_form_design ? (z(), k(n, {
|
|
1199
1268
|
key: 0,
|
|
1200
1269
|
type: "primary",
|
|
1201
1270
|
size: "small",
|
|
1202
|
-
onClick:
|
|
1271
|
+
onClick: ce,
|
|
1203
1272
|
ghost: !0
|
|
1204
1273
|
}, {
|
|
1205
|
-
default:
|
|
1274
|
+
default: q(() => t[0] ||= [P(" 编辑表单 ")]),
|
|
1206
1275
|
_: 1
|
|
1207
|
-
})) :
|
|
1208
|
-
m.value && !i.value ? (
|
|
1276
|
+
})) : A("", !0),
|
|
1277
|
+
m.value && !i.value ? (z(), k(n, {
|
|
1209
1278
|
key: 1,
|
|
1210
1279
|
size: "small",
|
|
1211
1280
|
type: "primary",
|
|
1212
1281
|
onClick: p,
|
|
1213
1282
|
danger: !0
|
|
1214
1283
|
}, {
|
|
1215
|
-
default:
|
|
1284
|
+
default: q(() => t[1] ||= [P(" 清空 ")]),
|
|
1216
1285
|
_: 1
|
|
1217
|
-
})) :
|
|
1218
|
-
d.value && !i.value ? (
|
|
1286
|
+
})) : A("", !0),
|
|
1287
|
+
d.value && !i.value ? (z(), k(n, {
|
|
1219
1288
|
key: 2,
|
|
1220
1289
|
size: "small",
|
|
1221
1290
|
type: "primary",
|
|
1222
|
-
loading:
|
|
1223
|
-
onClick:
|
|
1291
|
+
loading: v.value,
|
|
1292
|
+
onClick: ne
|
|
1224
1293
|
}, {
|
|
1225
|
-
default:
|
|
1294
|
+
default: q(() => t[2] ||= [P(" 下载导入模版 ")]),
|
|
1226
1295
|
_: 1
|
|
1227
|
-
}, 8, ["loading"])) :
|
|
1228
|
-
f.value && !i.value ? (
|
|
1296
|
+
}, 8, ["loading"])) : A("", !0),
|
|
1297
|
+
f.value && !i.value ? (z(), k(n, {
|
|
1229
1298
|
key: 3,
|
|
1230
1299
|
size: "small",
|
|
1231
1300
|
type: "primary",
|
|
1232
|
-
onClick:
|
|
1301
|
+
onClick: _
|
|
1233
1302
|
}, {
|
|
1234
|
-
default:
|
|
1303
|
+
default: q(() => t[3] ||= [P(" 导入Excel数据 ")]),
|
|
1235
1304
|
_: 1
|
|
1236
|
-
})) :
|
|
1237
|
-
|
|
1305
|
+
})) : A("", !0),
|
|
1306
|
+
ee.value && (!e.field.custom_btn_list?.length || e.field.max_count !== b.value) && !i.value ? (z(), k(n, {
|
|
1238
1307
|
key: 4,
|
|
1239
1308
|
type: "primary",
|
|
1240
1309
|
size: "small",
|
|
1241
|
-
onClick:
|
|
1310
|
+
onClick: oe,
|
|
1242
1311
|
disabled: e.field.max_count && e.value.length >= e.field.max_count
|
|
1243
1312
|
}, {
|
|
1244
|
-
icon:
|
|
1245
|
-
default:
|
|
1313
|
+
icon: q(() => [F(ve(De))]),
|
|
1314
|
+
default: q(() => [P(" " + G(e.field.btn_title || "添加"), 1)]),
|
|
1246
1315
|
_: 1
|
|
1247
|
-
}, 8, ["disabled"])) :
|
|
1248
|
-
(
|
|
1316
|
+
}, 8, ["disabled"])) : A("", !0),
|
|
1317
|
+
(z(!0), j(D, null, H(e.field.custom_btn_list, (t) => (z(), k(x, {
|
|
1249
1318
|
action_code_id: t.action_code_id,
|
|
1250
1319
|
code: t.code,
|
|
1251
1320
|
"onUpdate:code": (e) => t.code = e,
|
|
@@ -1253,22 +1322,22 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1253
1322
|
"onUpdate:action": (e) => t.action = e,
|
|
1254
1323
|
options: c
|
|
1255
1324
|
}, {
|
|
1256
|
-
default:
|
|
1325
|
+
default: q(() => [!i.value || t.show_on_modify ? (z(), k(n, {
|
|
1257
1326
|
key: 0,
|
|
1258
1327
|
size: "small",
|
|
1259
1328
|
type: t.type,
|
|
1260
1329
|
danger: t.danger,
|
|
1261
|
-
onClick: (e) =>
|
|
1330
|
+
onClick: (e) => ae(t),
|
|
1262
1331
|
disabled: e.field.max_count && e.value.length >= e.field.max_count && t.action === "add"
|
|
1263
1332
|
}, {
|
|
1264
|
-
default:
|
|
1333
|
+
default: q(() => [P(G(t.label), 1)]),
|
|
1265
1334
|
_: 2
|
|
1266
1335
|
}, 1032, [
|
|
1267
1336
|
"type",
|
|
1268
1337
|
"danger",
|
|
1269
1338
|
"onClick",
|
|
1270
1339
|
"disabled"
|
|
1271
|
-
])) :
|
|
1340
|
+
])) : A("", !0)]),
|
|
1272
1341
|
_: 2
|
|
1273
1342
|
}, 1032, [
|
|
1274
1343
|
"action_code_id",
|
|
@@ -1277,7 +1346,7 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1277
1346
|
"action",
|
|
1278
1347
|
"onUpdate:action"
|
|
1279
1348
|
]))), 256))
|
|
1280
|
-
]), e.field.showType === "table" ? (
|
|
1349
|
+
]), e.field.showType === "table" ? (z(), k(tt, {
|
|
1281
1350
|
key: 0,
|
|
1282
1351
|
value: e.value,
|
|
1283
1352
|
field: e.field,
|
|
@@ -1288,11 +1357,11 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1288
1357
|
nestValidate: e.nestValidate,
|
|
1289
1358
|
"base-key-path": e.baseKeyPath,
|
|
1290
1359
|
"worker-host-functions": e.workerHostFunctions,
|
|
1291
|
-
min_count:
|
|
1360
|
+
min_count: b.value,
|
|
1292
1361
|
"lock-structure": i.value,
|
|
1293
1362
|
formModel: e.formModel,
|
|
1294
|
-
onRemove:
|
|
1295
|
-
onLabels_resolved:
|
|
1363
|
+
onRemove: se,
|
|
1364
|
+
onLabels_resolved: N
|
|
1296
1365
|
}, null, 8, [
|
|
1297
1366
|
"value",
|
|
1298
1367
|
"field",
|
|
@@ -1306,7 +1375,7 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1306
1375
|
"min_count",
|
|
1307
1376
|
"lock-structure",
|
|
1308
1377
|
"formModel"
|
|
1309
|
-
])) : (
|
|
1378
|
+
])) : (z(!0), j(D, { key: 1 }, H(e.value, (t, n) => (z(), k(Fe, {
|
|
1310
1379
|
form: e.field.form,
|
|
1311
1380
|
field: e.field,
|
|
1312
1381
|
value: e.value[n],
|
|
@@ -1314,16 +1383,16 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1314
1383
|
options: e.field.form?.options,
|
|
1315
1384
|
alwaysShowGroup: e.alwaysShowGroup,
|
|
1316
1385
|
is_form_design: e.is_form_design,
|
|
1317
|
-
"inner-model":
|
|
1386
|
+
"inner-model": ie.value[n],
|
|
1318
1387
|
"global-inner-model": e.globalInnerModel,
|
|
1319
1388
|
modalTypeList: e.modalTypeList,
|
|
1320
1389
|
modalType: e.modalType,
|
|
1321
1390
|
nestValidate: e.nestValidate,
|
|
1322
|
-
min_count:
|
|
1391
|
+
min_count: b.value,
|
|
1323
1392
|
listLength: e.value.length,
|
|
1324
1393
|
context: e.context,
|
|
1325
1394
|
"lock-structure": i.value,
|
|
1326
|
-
onRemove: (e) =>
|
|
1395
|
+
onRemove: (e) => se(n),
|
|
1327
1396
|
"base-key-path": [
|
|
1328
1397
|
...e.baseKeyPath,
|
|
1329
1398
|
e.field.name,
|
|
@@ -1353,10 +1422,10 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1353
1422
|
]))), 256))], 64);
|
|
1354
1423
|
};
|
|
1355
1424
|
}
|
|
1356
|
-
}), [["__scopeId", "data-v-
|
|
1425
|
+
}), [["__scopeId", "data-v-463c9ad1"]]), gt = {
|
|
1357
1426
|
key: 0,
|
|
1358
1427
|
class: "error-msg"
|
|
1359
|
-
},
|
|
1428
|
+
}, _t = /*#__PURE__*/ n(/* @__PURE__ */ I({
|
|
1360
1429
|
name: "DynamicValueField",
|
|
1361
1430
|
__name: "DynamicValueField",
|
|
1362
1431
|
props: {
|
|
@@ -1396,8 +1465,8 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1396
1465
|
},
|
|
1397
1466
|
emits: ["update:value"],
|
|
1398
1467
|
setup(e, { emit: t }) {
|
|
1399
|
-
let n = e, r = t, i =
|
|
1400
|
-
let u = await
|
|
1468
|
+
let n = e, r = t, i = fe("FORM_LOCK_STRUCTURE", V(!1)), a = O(() => !!ve(i)), o = V(null), s = V(n.value || ""), c = O(() => n.is_form_design ? s.value : n.value), l = (0, Q.debounce)(async (e, t, i, l) => {
|
|
1469
|
+
let u = await ct({
|
|
1401
1470
|
field: i,
|
|
1402
1471
|
currentValue: c.value,
|
|
1403
1472
|
innerModel: e,
|
|
@@ -1411,7 +1480,7 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1411
1480
|
});
|
|
1412
1481
|
u && (n.is_form_design ? s.value = u.value ?? "" : u.value !== void 0 && u.value !== null && r("update:value", u.value), (i.watchType === "code" || i.watchType === "serial") && (o.value = u.error || null));
|
|
1413
1482
|
}, 200);
|
|
1414
|
-
return
|
|
1483
|
+
return K(() => [
|
|
1415
1484
|
n.innerModel,
|
|
1416
1485
|
n.globalInnerModel,
|
|
1417
1486
|
n.field,
|
|
@@ -1423,24 +1492,24 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1423
1492
|
immediate: !0,
|
|
1424
1493
|
deep: !0
|
|
1425
1494
|
}), (t, n) => {
|
|
1426
|
-
let r =
|
|
1427
|
-
return
|
|
1495
|
+
let r = U("a-input");
|
|
1496
|
+
return z(), j(D, null, [F(x, {
|
|
1428
1497
|
"value-code": e.field,
|
|
1429
1498
|
"show-debug-code": e.field.watchType === "code"
|
|
1430
1499
|
}, {
|
|
1431
|
-
default:
|
|
1500
|
+
default: q(() => [F(r, {
|
|
1432
1501
|
value: c.value,
|
|
1433
1502
|
readonly: "",
|
|
1434
1503
|
size: "small",
|
|
1435
1504
|
style: { "background-color": "#f5f5f5" }
|
|
1436
1505
|
}, null, 8, ["value"])]),
|
|
1437
1506
|
_: 1
|
|
1438
|
-
}, 8, ["value-code", "show-debug-code"]), o.value ? (
|
|
1507
|
+
}, 8, ["value-code", "show-debug-code"]), o.value ? (z(), j("span", gt, G(o.value), 1)) : A("", !0)], 64);
|
|
1439
1508
|
};
|
|
1440
1509
|
}
|
|
1441
|
-
}), [["__scopeId", "data-v-b40513b5"]]),
|
|
1510
|
+
}), [["__scopeId", "data-v-b40513b5"]]), vt = I({
|
|
1442
1511
|
name: "FormButton",
|
|
1443
|
-
components: { debugCode:
|
|
1512
|
+
components: { debugCode: x },
|
|
1444
1513
|
props: {
|
|
1445
1514
|
field: {
|
|
1446
1515
|
type: Object,
|
|
@@ -1493,7 +1562,7 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1493
1562
|
keyPath: [...e.baseKeyPath, e.field.name]
|
|
1494
1563
|
}, e.workerHostFunctions || {});
|
|
1495
1564
|
} catch (e) {
|
|
1496
|
-
|
|
1565
|
+
Ce.error(e.message);
|
|
1497
1566
|
return;
|
|
1498
1567
|
}
|
|
1499
1568
|
t && Object.assign(e.formModel, t);
|
|
@@ -1506,21 +1575,21 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1506
1575
|
});
|
|
1507
1576
|
//#endregion
|
|
1508
1577
|
//#region src/components/FormRender/FormButton/FormButton.vue
|
|
1509
|
-
function
|
|
1510
|
-
let o =
|
|
1511
|
-
return
|
|
1578
|
+
function yt(e, t, n, r, i, a) {
|
|
1579
|
+
let o = U("a-button"), s = U("debug-code");
|
|
1580
|
+
return z(), k(s, {
|
|
1512
1581
|
action_code_id: e.field.action_code_id,
|
|
1513
1582
|
code: e.field.code,
|
|
1514
1583
|
"onUpdate:code": t[0] ||= (t) => e.field.code = t
|
|
1515
1584
|
}, {
|
|
1516
|
-
default:
|
|
1585
|
+
default: q(() => [F(o, {
|
|
1517
1586
|
danger: e.field.danger,
|
|
1518
1587
|
type: e.field.btn_type,
|
|
1519
1588
|
disabled: e.field.disabled,
|
|
1520
1589
|
size: "small",
|
|
1521
1590
|
onClick: e.handlClick
|
|
1522
1591
|
}, {
|
|
1523
|
-
default:
|
|
1592
|
+
default: q(() => [P(G(e.field.label), 1)]),
|
|
1524
1593
|
_: 1
|
|
1525
1594
|
}, 8, [
|
|
1526
1595
|
"danger",
|
|
@@ -1531,7 +1600,7 @@ function ht(e, t, n, r, i, a) {
|
|
|
1531
1600
|
_: 1
|
|
1532
1601
|
}, 8, ["action_code_id", "code"]);
|
|
1533
1602
|
}
|
|
1534
|
-
var
|
|
1603
|
+
var bt = /*#__PURE__*/ n(vt, [["render", yt]]), xt = I({
|
|
1535
1604
|
name: "InputNumberPro",
|
|
1536
1605
|
props: {
|
|
1537
1606
|
field: {
|
|
@@ -1548,18 +1617,18 @@ var gt = /*#__PURE__*/ n(mt, [["render", ht]]), _t = L({
|
|
|
1548
1617
|
setup(e, { emit: t }) {
|
|
1549
1618
|
return {
|
|
1550
1619
|
update: (n) => {
|
|
1551
|
-
t("update:value",
|
|
1620
|
+
t("update:value", pt(e.field, n));
|
|
1552
1621
|
},
|
|
1553
|
-
innerValue:
|
|
1554
|
-
let t =
|
|
1622
|
+
innerValue: O(() => {
|
|
1623
|
+
let t = ft(e.field, e.value);
|
|
1555
1624
|
return typeof t == "string" && (t = parseFloat(t), isNaN(t) && (t = null)), t;
|
|
1556
1625
|
})
|
|
1557
1626
|
};
|
|
1558
1627
|
}
|
|
1559
|
-
}),
|
|
1560
|
-
function
|
|
1561
|
-
let o =
|
|
1562
|
-
return
|
|
1628
|
+
}), St = { key: 0 }, Ct = { key: 0 }, wt = { key: 0 };
|
|
1629
|
+
function Tt(e, t, n, r, i, a) {
|
|
1630
|
+
let o = U("a-input-number");
|
|
1631
|
+
return z(), k(o, {
|
|
1563
1632
|
value: e.innerValue,
|
|
1564
1633
|
autocomplete: e.field.autocomplete == null ? "off" : e.field.autocomplete,
|
|
1565
1634
|
"default-value": e.field.defaultValue,
|
|
@@ -1572,20 +1641,20 @@ function xt(e, t, n, r, i, a) {
|
|
|
1572
1641
|
step: e.field.step,
|
|
1573
1642
|
size: "small",
|
|
1574
1643
|
"onUpdate:value": e.update
|
|
1575
|
-
},
|
|
1644
|
+
}, N({ _: 2 }, [
|
|
1576
1645
|
e.field?.prefix || e.field?.prefixIcon ? {
|
|
1577
1646
|
name: "prefix",
|
|
1578
|
-
fn:
|
|
1647
|
+
fn: q(() => [e.field?.prefix ? (z(), j("span", St, G(e.field.prefix), 1)) : A("", !0), e.field?.prefixIcon ? (z(), k(W(e.field?.prefixIcon), { key: 1 })) : A("", !0)]),
|
|
1579
1648
|
key: "0"
|
|
1580
1649
|
} : void 0,
|
|
1581
1650
|
e.field?.addonBefore || e.field?.addonBeforeIcon ? {
|
|
1582
1651
|
name: "addonBefore",
|
|
1583
|
-
fn:
|
|
1652
|
+
fn: q(() => [e.field?.addonBefore ? (z(), j("span", Ct, G(e.field.addonBefore), 1)) : A("", !0), e.field?.addonBeforeIcon ? (z(), k(W(e.field?.addonBeforeIcon), { key: 1 })) : A("", !0)]),
|
|
1584
1653
|
key: "1"
|
|
1585
1654
|
} : void 0,
|
|
1586
1655
|
e.field?.addonAfter || e.field?.addonAfterIcon ? {
|
|
1587
1656
|
name: "addonAfter",
|
|
1588
|
-
fn:
|
|
1657
|
+
fn: q(() => [e.field?.addonAfter ? (z(), j("span", wt, G(e.field.addonAfter), 1)) : A("", !0), e.field?.addonAfterIcon ? (z(), k(W(e.field?.addonAfterIcon), { key: 1 })) : A("", !0)]),
|
|
1589
1658
|
key: "2"
|
|
1590
1659
|
} : void 0
|
|
1591
1660
|
]), 1032, [
|
|
@@ -1602,9 +1671,9 @@ function xt(e, t, n, r, i, a) {
|
|
|
1602
1671
|
"onUpdate:value"
|
|
1603
1672
|
]);
|
|
1604
1673
|
}
|
|
1605
|
-
var
|
|
1674
|
+
var Et = /*#__PURE__*/ n(xt, [["render", Tt], ["__scopeId", "data-v-f97da831"]]), Dt = { key: 0 }, Ot = { key: 0 }, kt = { key: 0 }, At = { key: 0 }, jt = /*#__PURE__*/ n(/* @__PURE__ */ I({
|
|
1606
1675
|
__name: "InputPro",
|
|
1607
|
-
props: /*@__PURE__*/
|
|
1676
|
+
props: /*@__PURE__*/ L({ field: {
|
|
1608
1677
|
type: Object,
|
|
1609
1678
|
required: !0
|
|
1610
1679
|
} }, {
|
|
@@ -1613,17 +1682,17 @@ var St = /*#__PURE__*/ n(_t, [["render", xt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1613
1682
|
}),
|
|
1614
1683
|
emits: ["update:value"],
|
|
1615
1684
|
setup(e) {
|
|
1616
|
-
let t =
|
|
1617
|
-
get: () =>
|
|
1685
|
+
let t = ye(e, "value"), n = e, r = O({
|
|
1686
|
+
get: () => ft(n.field, t.value),
|
|
1618
1687
|
set: (e) => {
|
|
1619
|
-
t.value =
|
|
1688
|
+
t.value = pt(n.field, e);
|
|
1620
1689
|
}
|
|
1621
1690
|
}), i = (e) => {
|
|
1622
1691
|
r.value = e;
|
|
1623
1692
|
};
|
|
1624
1693
|
return (t, n) => {
|
|
1625
|
-
let a =
|
|
1626
|
-
return
|
|
1694
|
+
let a = U("a-input");
|
|
1695
|
+
return z(), k(a, {
|
|
1627
1696
|
value: r.value,
|
|
1628
1697
|
"onUpdate:value": [n[0] ||= (e) => r.value = e, i],
|
|
1629
1698
|
"allow-clear": e.field.allowClear == null ? !0 : e.field.allowClear,
|
|
@@ -1634,25 +1703,25 @@ var St = /*#__PURE__*/ n(_t, [["render", xt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1634
1703
|
placeholder: e.field.placeholder ? e.field.placeholder : t.$t("请输入") + e.field.label,
|
|
1635
1704
|
type: e.field.inputType ? e.field.inputType : "text",
|
|
1636
1705
|
size: "small"
|
|
1637
|
-
},
|
|
1706
|
+
}, N({ _: 2 }, [
|
|
1638
1707
|
e.field?.prefix || e.field?.prefixIcon ? {
|
|
1639
1708
|
name: "prefix",
|
|
1640
|
-
fn:
|
|
1709
|
+
fn: q(() => [e.field?.prefix ? (z(), j("span", Dt, G(e.field.prefix), 1)) : A("", !0), e.field?.prefixIcon ? (z(), k(W(e.field?.prefixIcon), { key: 1 })) : A("", !0)]),
|
|
1641
1710
|
key: "0"
|
|
1642
1711
|
} : void 0,
|
|
1643
1712
|
e.field?.suffix || e.field?.suffixIcon ? {
|
|
1644
1713
|
name: "suffix",
|
|
1645
|
-
fn:
|
|
1714
|
+
fn: q(() => [e.field?.suffix ? (z(), j("span", Ot, G(e.field.suffix), 1)) : A("", !0), e.field?.suffixIcon ? (z(), k(W(e.field?.suffixIcon), { key: 1 })) : A("", !0)]),
|
|
1646
1715
|
key: "1"
|
|
1647
1716
|
} : void 0,
|
|
1648
1717
|
e.field?.addonBefore || e.field?.addonBeforeIcon ? {
|
|
1649
1718
|
name: "addonBefore",
|
|
1650
|
-
fn:
|
|
1719
|
+
fn: q(() => [e.field?.addonBefore ? (z(), j("span", kt, G(e.field.addonBefore), 1)) : A("", !0), e.field?.addonBeforeIcon ? (z(), k(W(e.field?.addonBeforeIcon), { key: 1 })) : A("", !0)]),
|
|
1651
1720
|
key: "2"
|
|
1652
1721
|
} : void 0,
|
|
1653
1722
|
e.field?.addonAfter || e.field?.addonAfterIcon ? {
|
|
1654
1723
|
name: "addonAfter",
|
|
1655
|
-
fn:
|
|
1724
|
+
fn: q(() => [e.field?.addonAfter ? (z(), j("span", At, G(e.field.addonAfter), 1)) : A("", !0), e.field?.addonAfterIcon ? (z(), k(W(e.field?.addonAfterIcon), { key: 1 })) : A("", !0)]),
|
|
1656
1725
|
key: "3"
|
|
1657
1726
|
} : void 0
|
|
1658
1727
|
]), 1032, [
|
|
@@ -1667,9 +1736,9 @@ var St = /*#__PURE__*/ n(_t, [["render", xt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1667
1736
|
]);
|
|
1668
1737
|
};
|
|
1669
1738
|
}
|
|
1670
|
-
}), [["__scopeId", "data-v-d9fd59f5"]]), $ = (e, t = "YYYY-MM-DD") =>
|
|
1739
|
+
}), [["__scopeId", "data-v-d9fd59f5"]]), $ = (e, t = "YYYY-MM-DD") => J(e, t, !0).isValid(), Mt = (e, t = "YYYY-MM-DD HH:mm:ss") => J(e, t, !0).isValid(), Nt = (e, t = "HH:mm:ss") => J(e, t, !0).isValid(), Pt = I({
|
|
1671
1740
|
name: "FieldRender2",
|
|
1672
|
-
methods: { isArray:
|
|
1741
|
+
methods: { isArray: Te },
|
|
1673
1742
|
props: {
|
|
1674
1743
|
field: {
|
|
1675
1744
|
type: Object,
|
|
@@ -1767,28 +1836,28 @@ var St = /*#__PURE__*/ n(_t, [["render", xt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1767
1836
|
"update_name2"
|
|
1768
1837
|
],
|
|
1769
1838
|
setup(e, { emit: t }) {
|
|
1770
|
-
let n =
|
|
1839
|
+
let n = V({ ...e.formModel }), r = (e) => typeof e == "string" && e.indexOf(",") >= 0 ? e.split(",") : e, i = (e, t) => {
|
|
1771
1840
|
let n;
|
|
1772
1841
|
return t == "int" ? s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1773
1842
|
s(e) && typeof e == "string" ? n.push(Number(e)) : n.push(e);
|
|
1774
1843
|
})) : n = s(e) && typeof e == "string" ? Number(e) : e : t == "str" ? s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1775
1844
|
s(e) && typeof e == "number" ? n.push(e.toString()) : n.push(e);
|
|
1776
1845
|
})) : n = s(e) && typeof e == "number" ? e.toString() : e : t == "date" ? s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1777
|
-
$(e) && typeof e == "string" ? n.push(
|
|
1846
|
+
$(e) && typeof e == "string" ? n.push(J(e, "YYYY-MM-DD")) : n.push(e);
|
|
1778
1847
|
})) : n = $(e) && typeof e == "string" ? e.toString() : e : t == "datetime" ? s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1779
|
-
|
|
1780
|
-
})) : n =
|
|
1781
|
-
|
|
1782
|
-
})) : n =
|
|
1848
|
+
Mt(e) && typeof e == "string" ? n.push(J(e, "YYYY-MM-DD HH:mm:ss")) : n.push(e);
|
|
1849
|
+
})) : n = Mt(e) && typeof e == "string" ? J(e, "YYYY-MM-DD HH:mm:ss") : e : t == "time" ? s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1850
|
+
Nt(e) && typeof e == "string" ? n.push(J(e, "HH:mm:ss")) : n.push(e);
|
|
1851
|
+
})) : n = Nt(e) && typeof e == "string" ? J(e, "HH:mm:ss") : e : t == "float" ? s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1783
1852
|
s(e) && typeof e == "string" ? n.push(Number(e)) : n.push(e);
|
|
1784
1853
|
})) : n = s(e) && typeof e == "string" ? Number(e) : e : t == "bool" && (s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1785
1854
|
s(e) && typeof e == "string" ? n.push(!!e) : n.push(e);
|
|
1786
1855
|
})) : n = s(e) && typeof e == "string" ? !!e : e), n;
|
|
1787
|
-
}, a =
|
|
1856
|
+
}, a = V(e.is_show_field), c = V(!1), l = O(() => e.is_form_design && e.field.type === "remotetablepro"), u = () => {
|
|
1788
1857
|
t("update:is_edit", c.value);
|
|
1789
1858
|
}, d = () => {
|
|
1790
1859
|
t("add");
|
|
1791
|
-
}, f =
|
|
1860
|
+
}, f = we(() => {
|
|
1792
1861
|
let r = a.value;
|
|
1793
1862
|
e.field?.is_hide && (a.value = !1, a.value !== r && (a.value ? (n.value[e.field.name] = null, t("update_model", {
|
|
1794
1863
|
add_key: e.field.name,
|
|
@@ -1801,7 +1870,7 @@ var St = /*#__PURE__*/ n(_t, [["render", xt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1801
1870
|
let a = n[t], s = e.formModel[a.watchKey], c;
|
|
1802
1871
|
c = a.class_name ? i(a.value, a.class_name) : a.value;
|
|
1803
1872
|
let l, u;
|
|
1804
|
-
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) :
|
|
1873
|
+
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) : J(s).isBefore(J(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) : J(s).isBefore(J(l)) || J(s).isSame(J(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) : J(s).isAfter(J(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) : J(s).isAfter(J(l)) || J(s).isSame(J(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) : (J(s).isAfter(J(l)) || J(s).isSame(J(l))) && (J(s).isBefore(J(u)) || J(s).isSame(J(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) : J(s).isBefore(J(l)) || J(s).isAfter(J(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)));
|
|
1805
1874
|
}
|
|
1806
1875
|
s.push(r);
|
|
1807
1876
|
}
|
|
@@ -1815,8 +1884,8 @@ var St = /*#__PURE__*/ n(_t, [["render", xt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1815
1884
|
add_key: e.field.name,
|
|
1816
1885
|
value: null
|
|
1817
1886
|
})) : (delete n.value[e.field.name], t("update_model", { remove_key: e.field.name })));
|
|
1818
|
-
}, 300), p =
|
|
1819
|
-
|
|
1887
|
+
}, 300), p = V(""), m = V(e.label);
|
|
1888
|
+
K(() => p.value, (n) => {
|
|
1820
1889
|
if (t("update:value", n), e.field.name2) {
|
|
1821
1890
|
let r;
|
|
1822
1891
|
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"];
|
|
@@ -1827,7 +1896,7 @@ var St = /*#__PURE__*/ n(_t, [["render", xt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1827
1896
|
n == r?.[e.field.valueKey ? e.field.valueKey : "value"] && t.push(r?.[e.field.labelKey ? e.field.labelKey : "label"]);
|
|
1828
1897
|
});
|
|
1829
1898
|
}), r = t.toString();
|
|
1830
|
-
} else if (e.field.type === "select") if (
|
|
1899
|
+
} else if (e.field.type === "select") if (Te(n)) {
|
|
1831
1900
|
let t = [];
|
|
1832
1901
|
e.options.forEach((r) => {
|
|
1833
1902
|
n.forEach((n) => {
|
|
@@ -1840,27 +1909,27 @@ var St = /*#__PURE__*/ n(_t, [["render", xt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1840
1909
|
value: r
|
|
1841
1910
|
});
|
|
1842
1911
|
}
|
|
1843
|
-
}, { deep: !0 }),
|
|
1912
|
+
}, { deep: !0 }), K(() => e.value, (t) => {
|
|
1844
1913
|
let n = t;
|
|
1845
1914
|
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);
|
|
1846
|
-
}, { immediate: !0 }),
|
|
1915
|
+
}, { immediate: !0 }), K(() => m.value, (n) => {
|
|
1847
1916
|
t("update:label", n), "name2" in e.field && t("update_name2", {
|
|
1848
1917
|
key: e.field.name2,
|
|
1849
1918
|
value: n.toString()
|
|
1850
1919
|
});
|
|
1851
|
-
}, { deep: !0 }),
|
|
1920
|
+
}, { deep: !0 }), K(() => e.label, (e) => {
|
|
1852
1921
|
m.value = e;
|
|
1853
|
-
}),
|
|
1922
|
+
}), K(() => e.formModel, (e) => {
|
|
1854
1923
|
n.value = { ...e };
|
|
1855
|
-
}, { deep: !0 }),
|
|
1924
|
+
}, { deep: !0 }), K(() => n.value, (t, n) => {
|
|
1856
1925
|
e.field?.conditions && e.field?.conditions.forEach((e) => {
|
|
1857
1926
|
e.forEach((e) => {
|
|
1858
1927
|
n[e.watchKey] != t[e.watchKey] && f();
|
|
1859
1928
|
});
|
|
1860
1929
|
});
|
|
1861
|
-
}, { deep: !0 }),
|
|
1930
|
+
}, { deep: !0 }), K(() => [e.conditionsVisibleNum, e.isUseConditions], () => {
|
|
1862
1931
|
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));
|
|
1863
|
-
}),
|
|
1932
|
+
}), R(() => {
|
|
1864
1933
|
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 });
|
|
1865
1934
|
else {
|
|
1866
1935
|
let r = n.value[e.field.name];
|
|
@@ -1871,9 +1940,9 @@ var St = /*#__PURE__*/ n(_t, [["render", xt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1871
1940
|
}
|
|
1872
1941
|
l.value && t("update:is_edit", c.value);
|
|
1873
1942
|
});
|
|
1874
|
-
let { t:
|
|
1943
|
+
let { t: ee } = Oe();
|
|
1875
1944
|
return {
|
|
1876
|
-
t:
|
|
1945
|
+
t: ee,
|
|
1877
1946
|
is_show_field: a,
|
|
1878
1947
|
self_is_edit: c,
|
|
1879
1948
|
handleToggleEdit: u,
|
|
@@ -1885,49 +1954,49 @@ var St = /*#__PURE__*/ n(_t, [["render", xt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1885
1954
|
};
|
|
1886
1955
|
},
|
|
1887
1956
|
components: {
|
|
1888
|
-
IconSelect:
|
|
1889
|
-
RichTextEditor:
|
|
1890
|
-
Upload:
|
|
1891
|
-
RemoteCascaderPro:
|
|
1892
|
-
RemoteTreeSelectPro:
|
|
1893
|
-
RemoteSelectPro:
|
|
1894
|
-
RemoteComplete:
|
|
1895
|
-
AttributeTable:
|
|
1896
|
-
AttributeNomTable:
|
|
1897
|
-
RemoteFilterSelect:
|
|
1957
|
+
IconSelect: se,
|
|
1958
|
+
RichTextEditor: ie,
|
|
1959
|
+
Upload: C,
|
|
1960
|
+
RemoteCascaderPro: T,
|
|
1961
|
+
RemoteTreeSelectPro: ae,
|
|
1962
|
+
RemoteSelectPro: ee,
|
|
1963
|
+
RemoteComplete: S,
|
|
1964
|
+
AttributeTable: _,
|
|
1965
|
+
AttributeNomTable: g,
|
|
1966
|
+
RemoteFilterSelect: h,
|
|
1898
1967
|
RemoteModal: f,
|
|
1899
1968
|
RemoteSelect: t,
|
|
1900
1969
|
RemoteCascader: r,
|
|
1901
1970
|
RemoteTreeSelect: m,
|
|
1902
1971
|
RemoteTable: p,
|
|
1903
|
-
JsonStr:
|
|
1904
|
-
JsonObj:
|
|
1905
|
-
RemoteText:
|
|
1906
|
-
RemoteTablePro:
|
|
1907
|
-
FormTemplate:
|
|
1908
|
-
DynamicValueField:
|
|
1909
|
-
FormButton:
|
|
1910
|
-
PlusOutlined:
|
|
1911
|
-
MonthPicker:
|
|
1912
|
-
MonthRangePicker:
|
|
1913
|
-
CodeEditor:
|
|
1914
|
-
TinymceEditor:
|
|
1915
|
-
InputNumberPro:
|
|
1916
|
-
InputPro:
|
|
1972
|
+
JsonStr: v,
|
|
1973
|
+
JsonObj: te,
|
|
1974
|
+
RemoteText: ne,
|
|
1975
|
+
RemoteTablePro: E,
|
|
1976
|
+
FormTemplate: ht,
|
|
1977
|
+
DynamicValueField: _t,
|
|
1978
|
+
FormButton: bt,
|
|
1979
|
+
PlusOutlined: De,
|
|
1980
|
+
MonthPicker: w,
|
|
1981
|
+
MonthRangePicker: ce,
|
|
1982
|
+
CodeEditor: oe,
|
|
1983
|
+
TinymceEditor: le,
|
|
1984
|
+
InputNumberPro: Et,
|
|
1985
|
+
InputPro: jt
|
|
1917
1986
|
}
|
|
1918
|
-
}),
|
|
1987
|
+
}), Ft = {
|
|
1919
1988
|
key: 0,
|
|
1920
1989
|
style: {
|
|
1921
1990
|
height: "62px",
|
|
1922
1991
|
width: "100%"
|
|
1923
1992
|
}
|
|
1924
|
-
},
|
|
1993
|
+
}, It = { key: 1 }, Lt = { key: 0 }, Rt = { key: 1 }, zt = {
|
|
1925
1994
|
key: 3,
|
|
1926
1995
|
style: {
|
|
1927
1996
|
height: "30px",
|
|
1928
1997
|
position: "relative"
|
|
1929
1998
|
}
|
|
1930
|
-
},
|
|
1999
|
+
}, Bt = { style: {
|
|
1931
2000
|
position: "absolute",
|
|
1932
2001
|
bottom: "0",
|
|
1933
2002
|
padding: "0",
|
|
@@ -1935,39 +2004,39 @@ var St = /*#__PURE__*/ n(_t, [["render", xt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1935
2004
|
"font-weight": "bolder",
|
|
1936
2005
|
"font-size": "17px"
|
|
1937
2006
|
} };
|
|
1938
|
-
function
|
|
1939
|
-
let o =
|
|
1940
|
-
return
|
|
1941
|
-
e.field.type !== "divider" && e.field.type !== "button" && (e.field?.is_search_show !== !1 || e.field_render_show) ? (
|
|
2007
|
+
function Vt(e, t, n, r, i, a) {
|
|
2008
|
+
let o = U("a-switch"), s = U("plus-outlined"), c = U("a-button"), l = U("a-tag"), u = U("a-rate"), d = U("InputPro"), f = U("a-input-number"), p = U("InputNumberPro"), m = U("a-input"), ee = U("attribute-table"), h = U("attribute-nom-table"), g = U("a-textarea"), _ = U("json-str"), v = U("json-obj"), te = U("rich-text-editor"), ne = U("a-input-password"), y = U("a-select-option"), b = U("a-select"), re = U("a-cascader"), ie = U("remote-cascader"), ae = U("remote-cascader-pro"), x = U("month-picker"), oe = U("a-date-picker"), se = U("a-range-picker"), S = U("month-range-picker"), ce = U("a-time-picker"), C = U("a-time-range-picker"), w = U("a-radio"), T = U("a-radio-group"), le = U("a-checkbox"), E = U("a-checkbox-group"), O = U("a-tree-select"), ue = U("remote-filter-select"), I = U("remote-select"), de = U("remote-select-pro"), fe = U("remote-complete"), L = U("remote-tree-select"), me = U("remote-tree-select-pro"), R = U("remote-modal"), ge = U("remote-table"), B = U("remote-table-pro"), V = U("FormTemplate"), ve = U("DynamicValueField"), ye = U("remote-text"), be = U("upload"), K = U("code-editor"), xe = U("TinymceEditor"), Se = U("icon-select"), Ce = U("a-form-item"), we = U("a-divider"), Te = U("FormButton");
|
|
2009
|
+
return z(), j(D, null, [
|
|
2010
|
+
e.field.type !== "divider" && e.field.type !== "button" && (e.field?.is_search_show !== !1 || e.field_render_show) ? (z(), k(Ce, pe({
|
|
1942
2011
|
key: 0,
|
|
1943
2012
|
extra: e.field.extra,
|
|
1944
2013
|
name: e.field.name
|
|
1945
|
-
}, e.validateInfos ? e.validateInfos[e.field.name] : null),
|
|
1946
|
-
default:
|
|
1947
|
-
|
|
1948
|
-
e.field.type === "kong" ? (
|
|
1949
|
-
e.field.type === "tag" ? (
|
|
2014
|
+
}, e.validateInfos ? e.validateInfos[e.field.name] : null), N({
|
|
2015
|
+
default: q(() => [
|
|
2016
|
+
_e(e.$slots, "default", {}, void 0, !0),
|
|
2017
|
+
e.field.type === "kong" ? (z(), j("div", Ft)) : A("", !0),
|
|
2018
|
+
e.field.type === "tag" ? (z(), j("div", It, [e.field.content && e.field.content(e.field, e.model) || e.model ? (z(), k(l, {
|
|
1950
2019
|
key: 0,
|
|
1951
2020
|
color: e.field.color ? e.field.color(e.field, e.model) : "green",
|
|
1952
|
-
style:
|
|
2021
|
+
style: he(e.field.style),
|
|
1953
2022
|
onClick: t[1] ||= (t) => e.field.cb ? e.field.cb(e.field, e.model) : ""
|
|
1954
2023
|
}, {
|
|
1955
|
-
default:
|
|
2024
|
+
default: q(() => [e.field.content ? (z(), j("span", Lt, G(e.field.content(e.field, e.model)), 1)) : (z(), j("span", Rt, G(e.model), 1))]),
|
|
1956
2025
|
_: 1
|
|
1957
|
-
}, 8, ["color", "style"])) :
|
|
1958
|
-
e.field.type === "kong_title" ? (
|
|
2026
|
+
}, 8, ["color", "style"])) : A("", !0)])) : A("", !0),
|
|
2027
|
+
e.field.type === "kong_title" ? (z(), j("div", {
|
|
1959
2028
|
key: 2,
|
|
1960
|
-
style:
|
|
1961
|
-
}, null, 4)) :
|
|
1962
|
-
e.field.type === "title" ? (
|
|
1963
|
-
e.field.type === "rate" ? (
|
|
2029
|
+
style: he("height: " + e.field.height + "px")
|
|
2030
|
+
}, null, 4)) : A("", !0),
|
|
2031
|
+
e.field.type === "title" ? (z(), j("div", zt, [M("span", Bt, G(e.field.name), 1)])) : A("", !0),
|
|
2032
|
+
e.field.type === "rate" ? (z(), k(u, {
|
|
1964
2033
|
key: 4,
|
|
1965
2034
|
value: e.model,
|
|
1966
2035
|
"onUpdate:value": t[2] ||= (t) => e.model = t,
|
|
1967
2036
|
disabled: e.field.disabled,
|
|
1968
2037
|
"allow-half": ""
|
|
1969
|
-
}, null, 8, ["value", "disabled"])) :
|
|
1970
|
-
e.field.type === "input" ? (
|
|
2038
|
+
}, null, 8, ["value", "disabled"])) : A("", !0),
|
|
2039
|
+
e.field.type === "input" ? (z(), k(d, {
|
|
1971
2040
|
key: 5,
|
|
1972
2041
|
field: e.field,
|
|
1973
2042
|
value: e.model,
|
|
@@ -1979,8 +2048,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
1979
2048
|
"value",
|
|
1980
2049
|
"base-key-path",
|
|
1981
2050
|
"worker-host-functions"
|
|
1982
|
-
])) :
|
|
1983
|
-
e.field.type === "money" ? (
|
|
2051
|
+
])) : A("", !0),
|
|
2052
|
+
e.field.type === "money" ? (z(), k(f, {
|
|
1984
2053
|
key: 6,
|
|
1985
2054
|
size: "small",
|
|
1986
2055
|
value: e.model,
|
|
@@ -2006,8 +2075,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2006
2075
|
"precision",
|
|
2007
2076
|
"step",
|
|
2008
2077
|
"placeholder"
|
|
2009
|
-
])) :
|
|
2010
|
-
e.field.type === "number" ? (
|
|
2078
|
+
])) : A("", !0),
|
|
2079
|
+
e.field.type === "number" ? (z(), k(p, {
|
|
2011
2080
|
key: 7,
|
|
2012
2081
|
value: e.model,
|
|
2013
2082
|
"onUpdate:value": t[5] ||= (t) => e.model = t,
|
|
@@ -2020,8 +2089,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2020
2089
|
"field",
|
|
2021
2090
|
"base-key-path",
|
|
2022
2091
|
"worker-host-functions"
|
|
2023
|
-
])) :
|
|
2024
|
-
e.field.type === "volume" ? (
|
|
2092
|
+
])) : A("", !0),
|
|
2093
|
+
e.field.type === "volume" ? (z(), k(m, {
|
|
2025
2094
|
key: 8,
|
|
2026
2095
|
value: e.model,
|
|
2027
2096
|
"onUpdate:value": t[6] ||= (t) => e.model = t,
|
|
@@ -2042,8 +2111,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2042
2111
|
"disabled",
|
|
2043
2112
|
"maxlength",
|
|
2044
2113
|
"placeholder"
|
|
2045
|
-
])) :
|
|
2046
|
-
e.field.type === "weight" ? (
|
|
2114
|
+
])) : A("", !0),
|
|
2115
|
+
e.field.type === "weight" ? (z(), k(m, {
|
|
2047
2116
|
key: 9,
|
|
2048
2117
|
value: e.model,
|
|
2049
2118
|
"onUpdate:value": t[7] ||= (t) => e.model = t,
|
|
@@ -2064,8 +2133,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2064
2133
|
"disabled",
|
|
2065
2134
|
"maxlength",
|
|
2066
2135
|
"placeholder"
|
|
2067
|
-
])) :
|
|
2068
|
-
e.field.type === "attributetable" ? (
|
|
2136
|
+
])) : A("", !0),
|
|
2137
|
+
e.field.type === "attributetable" ? (z(), k(ee, {
|
|
2069
2138
|
key: 10,
|
|
2070
2139
|
value: e.model,
|
|
2071
2140
|
"onUpdate:value": t[8] ||= (t) => e.model = t,
|
|
@@ -2082,8 +2151,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2082
2151
|
"init_model",
|
|
2083
2152
|
"base-key-path",
|
|
2084
2153
|
"worker-host-functions"
|
|
2085
|
-
])) :
|
|
2086
|
-
e.field.type === "attributenomtable" ? (
|
|
2154
|
+
])) : A("", !0),
|
|
2155
|
+
e.field.type === "attributenomtable" ? (z(), k(h, {
|
|
2087
2156
|
key: 11,
|
|
2088
2157
|
size: "small",
|
|
2089
2158
|
value: e.model,
|
|
@@ -2100,8 +2169,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2100
2169
|
"init_model",
|
|
2101
2170
|
"base-key-path",
|
|
2102
2171
|
"worker-host-functions"
|
|
2103
|
-
])) :
|
|
2104
|
-
e.field.type === "textarea" ? (
|
|
2172
|
+
])) : A("", !0),
|
|
2173
|
+
e.field.type === "textarea" ? (z(), k(g, {
|
|
2105
2174
|
key: 12,
|
|
2106
2175
|
value: e.model,
|
|
2107
2176
|
"onUpdate:value": t[10] ||= (t) => e.model = t,
|
|
@@ -2120,8 +2189,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2120
2189
|
"autocomplete",
|
|
2121
2190
|
"disabled",
|
|
2122
2191
|
"placeholder"
|
|
2123
|
-
])) :
|
|
2124
|
-
e.field.type === "jsonstr" ? (
|
|
2192
|
+
])) : A("", !0),
|
|
2193
|
+
e.field.type === "jsonstr" ? (z(), k(_, {
|
|
2125
2194
|
key: 13,
|
|
2126
2195
|
value: e.model,
|
|
2127
2196
|
"onUpdate:value": t[11] ||= (t) => e.model = t,
|
|
@@ -2135,8 +2204,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2135
2204
|
"disabled",
|
|
2136
2205
|
"rows",
|
|
2137
2206
|
"placeholder"
|
|
2138
|
-
])) :
|
|
2139
|
-
e.field.type === "jsonobj" ? (
|
|
2207
|
+
])) : A("", !0),
|
|
2208
|
+
e.field.type === "jsonobj" ? (z(), k(v, {
|
|
2140
2209
|
key: 14,
|
|
2141
2210
|
value: e.model,
|
|
2142
2211
|
"onUpdate:value": t[12] ||= (t) => e.model = t,
|
|
@@ -2152,8 +2221,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2152
2221
|
"mode",
|
|
2153
2222
|
"fullWidthButton",
|
|
2154
2223
|
"darkTheme"
|
|
2155
|
-
])) :
|
|
2156
|
-
e.field.type === "richtexteditor" ? (
|
|
2224
|
+
])) : A("", !0),
|
|
2225
|
+
e.field.type === "richtexteditor" ? (z(), k(te, {
|
|
2157
2226
|
key: 15,
|
|
2158
2227
|
value: e.model,
|
|
2159
2228
|
"onUpdate:value": t[13] ||= (t) => e.model = t,
|
|
@@ -2163,8 +2232,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2163
2232
|
"value",
|
|
2164
2233
|
"readOnly",
|
|
2165
2234
|
"placeholder"
|
|
2166
|
-
])) :
|
|
2167
|
-
e.field.type === "password" ? (
|
|
2235
|
+
])) : A("", !0),
|
|
2236
|
+
e.field.type === "password" ? (z(), k(ne, {
|
|
2168
2237
|
key: 16,
|
|
2169
2238
|
value: e.model,
|
|
2170
2239
|
"onUpdate:value": t[14] ||= (t) => e.model = t,
|
|
@@ -2195,8 +2264,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2195
2264
|
"precision",
|
|
2196
2265
|
"step",
|
|
2197
2266
|
"visibilityToggle"
|
|
2198
|
-
])) :
|
|
2199
|
-
e.field.type === "select" ? (
|
|
2267
|
+
])) : A("", !0),
|
|
2268
|
+
e.field.type === "select" ? (z(), j(D, { key: 17 }, [e.field.mode === "default" ? (z(), k(b, {
|
|
2200
2269
|
key: 0,
|
|
2201
2270
|
value: e.model,
|
|
2202
2271
|
"onUpdate:value": t[16] ||= (t) => e.model = t,
|
|
@@ -2211,11 +2280,11 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2211
2280
|
size: "small",
|
|
2212
2281
|
style: { width: "100%" }
|
|
2213
2282
|
}, {
|
|
2214
|
-
default:
|
|
2283
|
+
default: q(() => [(z(!0), j(D, null, H(e.options, (t) => (z(), k(y, {
|
|
2215
2284
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2216
2285
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2217
2286
|
}, {
|
|
2218
|
-
default:
|
|
2287
|
+
default: q(() => [P(G(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
2219
2288
|
_: 2
|
|
2220
2289
|
}, 1032, ["value"]))), 128))]),
|
|
2221
2290
|
_: 1
|
|
@@ -2228,7 +2297,7 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2228
2297
|
"maxTagCount",
|
|
2229
2298
|
"placeholder",
|
|
2230
2299
|
"show-search"
|
|
2231
|
-
])) : (
|
|
2300
|
+
])) : (z(), k(b, {
|
|
2232
2301
|
key: 1,
|
|
2233
2302
|
value: e.model,
|
|
2234
2303
|
"onUpdate:value": t[17] ||= (t) => e.model = t,
|
|
@@ -2243,11 +2312,11 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2243
2312
|
size: "small",
|
|
2244
2313
|
style: { "min-width": "150px" }
|
|
2245
2314
|
}, {
|
|
2246
|
-
default:
|
|
2315
|
+
default: q(() => [(z(!0), j(D, null, H(e.options, (t, n) => (z(), k(y, {
|
|
2247
2316
|
key: n,
|
|
2248
2317
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2249
2318
|
}, {
|
|
2250
|
-
default:
|
|
2319
|
+
default: q(() => [P(G(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
2251
2320
|
_: 2
|
|
2252
2321
|
}, 1032, ["value"]))), 128))]),
|
|
2253
2322
|
_: 1
|
|
@@ -2260,8 +2329,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2260
2329
|
"mode",
|
|
2261
2330
|
"placeholder",
|
|
2262
2331
|
"show-search"
|
|
2263
|
-
]))], 64)) :
|
|
2264
|
-
e.field.type === "groupselect" ? (
|
|
2332
|
+
]))], 64)) : A("", !0),
|
|
2333
|
+
e.field.type === "groupselect" ? (z(), j(D, { key: 18 }, [e.field.mode === "default" ? (z(), k(b, {
|
|
2265
2334
|
key: 0,
|
|
2266
2335
|
value: e.model,
|
|
2267
2336
|
"onUpdate:value": t[18] ||= (t) => e.model = t,
|
|
@@ -2290,7 +2359,7 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2290
2359
|
"options",
|
|
2291
2360
|
"placeholder",
|
|
2292
2361
|
"show-search"
|
|
2293
|
-
])) : (
|
|
2362
|
+
])) : (z(), k(b, {
|
|
2294
2363
|
key: 1,
|
|
2295
2364
|
value: e.model,
|
|
2296
2365
|
"onUpdate:value": t[19] ||= (t) => e.model = t,
|
|
@@ -2319,8 +2388,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2319
2388
|
"options",
|
|
2320
2389
|
"placeholder",
|
|
2321
2390
|
"show-search"
|
|
2322
|
-
]))], 64)) :
|
|
2323
|
-
e.field.type === "cascader" ? (
|
|
2391
|
+
]))], 64)) : A("", !0),
|
|
2392
|
+
e.field.type === "cascader" ? (z(), k(re, {
|
|
2324
2393
|
key: 19,
|
|
2325
2394
|
value: e.model,
|
|
2326
2395
|
"onUpdate:value": t[20] ||= (t) => e.model = t,
|
|
@@ -2343,8 +2412,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2343
2412
|
"changeOnSelect",
|
|
2344
2413
|
"options",
|
|
2345
2414
|
"placeholder"
|
|
2346
|
-
])) :
|
|
2347
|
-
e.field.type === "remotecascader" ? (
|
|
2415
|
+
])) : A("", !0),
|
|
2416
|
+
e.field.type === "remotecascader" ? (z(), k(ie, {
|
|
2348
2417
|
key: 20,
|
|
2349
2418
|
value: e.model,
|
|
2350
2419
|
"onUpdate:value": t[21] ||= (t) => e.model = t,
|
|
@@ -2369,8 +2438,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2369
2438
|
"label-space",
|
|
2370
2439
|
"search_config",
|
|
2371
2440
|
"value-key"
|
|
2372
|
-
])) :
|
|
2373
|
-
e.field.type === "remotecascaderpro" ? (
|
|
2441
|
+
])) : A("", !0),
|
|
2442
|
+
e.field.type === "remotecascaderpro" ? (z(), k(ae, {
|
|
2374
2443
|
key: 21,
|
|
2375
2444
|
label: e.labelModel,
|
|
2376
2445
|
"onUpdate:label": t[23] ||= (t) => e.labelModel = t,
|
|
@@ -2417,8 +2486,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2417
2486
|
"init_watch",
|
|
2418
2487
|
"is_form_design",
|
|
2419
2488
|
"placeholder"
|
|
2420
|
-
])) :
|
|
2421
|
-
e.field.type === "monthpicker" ? (
|
|
2489
|
+
])) : A("", !0),
|
|
2490
|
+
e.field.type === "monthpicker" ? (z(), k(x, {
|
|
2422
2491
|
key: 22,
|
|
2423
2492
|
value: e.model,
|
|
2424
2493
|
"onUpdate:value": t[25] ||= (t) => e.model = t,
|
|
@@ -2446,8 +2515,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2446
2515
|
"start_offset_day",
|
|
2447
2516
|
"end_offset_day",
|
|
2448
2517
|
"fix_day"
|
|
2449
|
-
])) :
|
|
2450
|
-
e.field.type === "datepicker" ? (
|
|
2518
|
+
])) : A("", !0),
|
|
2519
|
+
e.field.type === "datepicker" ? (z(), k(oe, {
|
|
2451
2520
|
key: 23,
|
|
2452
2521
|
value: e.model,
|
|
2453
2522
|
"onUpdate:value": t[26] ||= (t) => e.model = t,
|
|
@@ -2473,8 +2542,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2473
2542
|
"placeholder",
|
|
2474
2543
|
"show-time",
|
|
2475
2544
|
"value-format"
|
|
2476
|
-
])) :
|
|
2477
|
-
e.field.type === "rangepicker" ? (
|
|
2545
|
+
])) : A("", !0),
|
|
2546
|
+
e.field.type === "rangepicker" ? (z(), k(se, {
|
|
2478
2547
|
key: 24,
|
|
2479
2548
|
value: e.model,
|
|
2480
2549
|
"onUpdate:value": t[27] ||= (t) => e.model = t,
|
|
@@ -2498,8 +2567,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2498
2567
|
"show-time",
|
|
2499
2568
|
"value-format",
|
|
2500
2569
|
"picker"
|
|
2501
|
-
])) :
|
|
2502
|
-
e.field.type === "monthrangepicker" ? (
|
|
2570
|
+
])) : A("", !0),
|
|
2571
|
+
e.field.type === "monthrangepicker" ? (z(), k(S, {
|
|
2503
2572
|
key: 25,
|
|
2504
2573
|
value: e.model,
|
|
2505
2574
|
"onUpdate:value": t[28] ||= (t) => e.model = t,
|
|
@@ -2525,8 +2594,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2525
2594
|
"start_offset_day",
|
|
2526
2595
|
"end_offset_day",
|
|
2527
2596
|
"fix_day"
|
|
2528
|
-
])) :
|
|
2529
|
-
e.field.type === "timepicker" ? (
|
|
2597
|
+
])) : A("", !0),
|
|
2598
|
+
e.field.type === "timepicker" ? (z(), k(ce, {
|
|
2530
2599
|
key: 26,
|
|
2531
2600
|
value: e.model,
|
|
2532
2601
|
"onUpdate:value": t[29] ||= (t) => e.model = t,
|
|
@@ -2546,8 +2615,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2546
2615
|
"format",
|
|
2547
2616
|
"placeholder",
|
|
2548
2617
|
"value-format"
|
|
2549
|
-
])) :
|
|
2550
|
-
e.field.type === "timerangepicker" ? (
|
|
2618
|
+
])) : A("", !0),
|
|
2619
|
+
e.field.type === "timerangepicker" ? (z(), k(C, {
|
|
2551
2620
|
key: 27,
|
|
2552
2621
|
value: e.model,
|
|
2553
2622
|
"onUpdate:value": t[30] ||= (t) => e.model = t,
|
|
@@ -2567,8 +2636,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2567
2636
|
"format",
|
|
2568
2637
|
"placeholder",
|
|
2569
2638
|
"value-format"
|
|
2570
|
-
])) :
|
|
2571
|
-
e.field.type === "radio" ? (
|
|
2639
|
+
])) : A("", !0),
|
|
2640
|
+
e.field.type === "radio" ? (z(), k(T, {
|
|
2572
2641
|
key: 28,
|
|
2573
2642
|
value: e.model,
|
|
2574
2643
|
"onUpdate:value": t[31] ||= (t) => e.model = t,
|
|
@@ -2576,12 +2645,12 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2576
2645
|
disabled: e.field.disabled,
|
|
2577
2646
|
size: "small"
|
|
2578
2647
|
}, {
|
|
2579
|
-
default:
|
|
2648
|
+
default: q(() => [(z(!0), j(D, null, H(e.options, (t) => (z(), k(w, {
|
|
2580
2649
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2581
2650
|
disabled: t.disabled,
|
|
2582
2651
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2583
2652
|
}, {
|
|
2584
|
-
default:
|
|
2653
|
+
default: q(() => [P(G(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
2585
2654
|
_: 2
|
|
2586
2655
|
}, 1032, ["disabled", "value"]))), 128))]),
|
|
2587
2656
|
_: 1
|
|
@@ -2589,8 +2658,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2589
2658
|
"value",
|
|
2590
2659
|
"default-value",
|
|
2591
2660
|
"disabled"
|
|
2592
|
-
])) :
|
|
2593
|
-
e.field.type === "checkbox" ? (
|
|
2661
|
+
])) : A("", !0),
|
|
2662
|
+
e.field.type === "checkbox" ? (z(), k(E, {
|
|
2594
2663
|
key: 29,
|
|
2595
2664
|
value: e.model,
|
|
2596
2665
|
"onUpdate:value": t[32] ||= (t) => e.model = t,
|
|
@@ -2598,12 +2667,12 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2598
2667
|
disabled: e.field.disabled,
|
|
2599
2668
|
size: "small"
|
|
2600
2669
|
}, {
|
|
2601
|
-
default:
|
|
2670
|
+
default: q(() => [(z(!0), j(D, null, H(e.options, (t) => (z(), k(le, {
|
|
2602
2671
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2603
2672
|
disabled: t.disabled,
|
|
2604
2673
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2605
2674
|
}, {
|
|
2606
|
-
default:
|
|
2675
|
+
default: q(() => [P(G(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
2607
2676
|
_: 2
|
|
2608
2677
|
}, 1032, ["disabled", "value"]))), 128))]),
|
|
2609
2678
|
_: 1
|
|
@@ -2611,8 +2680,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2611
2680
|
"value",
|
|
2612
2681
|
"default-value",
|
|
2613
2682
|
"disabled"
|
|
2614
|
-
])) :
|
|
2615
|
-
e.field.type === "treeselect" ? (
|
|
2683
|
+
])) : A("", !0),
|
|
2684
|
+
e.field.type === "treeselect" ? (z(), k(O, {
|
|
2616
2685
|
key: 30,
|
|
2617
2686
|
value: e.model,
|
|
2618
2687
|
"onUpdate:value": t[33] ||= (t) => e.model = t,
|
|
@@ -2638,8 +2707,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2638
2707
|
"tree-data",
|
|
2639
2708
|
"tree-label-prop",
|
|
2640
2709
|
"tree-node-filter-prop"
|
|
2641
|
-
])) :
|
|
2642
|
-
e.field.type === "remotefilterselect" ? (
|
|
2710
|
+
])) : A("", !0),
|
|
2711
|
+
e.field.type === "remotefilterselect" ? (z(), k(ue, {
|
|
2643
2712
|
key: 31,
|
|
2644
2713
|
label: e.labelModel,
|
|
2645
2714
|
"onUpdate:label": t[34] ||= (t) => e.labelModel = t,
|
|
@@ -2666,8 +2735,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2666
2735
|
"label-space",
|
|
2667
2736
|
"search_config",
|
|
2668
2737
|
"value-key"
|
|
2669
|
-
])) :
|
|
2670
|
-
e.field.type === "remoteselect" ? (
|
|
2738
|
+
])) : A("", !0),
|
|
2739
|
+
e.field.type === "remoteselect" ? (z(), k(I, {
|
|
2671
2740
|
key: 32,
|
|
2672
2741
|
label: e.labelModel,
|
|
2673
2742
|
"onUpdate:label": t[36] ||= (t) => e.labelModel = t,
|
|
@@ -2694,8 +2763,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2694
2763
|
"label-space",
|
|
2695
2764
|
"search_config",
|
|
2696
2765
|
"value-key"
|
|
2697
|
-
])) :
|
|
2698
|
-
e.field.type === "remoteselectpro" ? (
|
|
2766
|
+
])) : A("", !0),
|
|
2767
|
+
e.field.type === "remoteselectpro" ? (z(), k(de, {
|
|
2699
2768
|
key: 33,
|
|
2700
2769
|
label: e.labelModel,
|
|
2701
2770
|
"onUpdate:label": t[38] ||= (t) => e.labelModel = t,
|
|
@@ -2742,8 +2811,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2742
2811
|
"context",
|
|
2743
2812
|
"base-key-path",
|
|
2744
2813
|
"placeholder"
|
|
2745
|
-
])) :
|
|
2746
|
-
e.field.type === "remotecomplete" ? (
|
|
2814
|
+
])) : A("", !0),
|
|
2815
|
+
e.field.type === "remotecomplete" ? (z(), k(fe, {
|
|
2747
2816
|
key: 34,
|
|
2748
2817
|
value: e.model,
|
|
2749
2818
|
"onUpdate:value": t[40] ||= (t) => e.model = t,
|
|
@@ -2781,8 +2850,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2781
2850
|
"is_input",
|
|
2782
2851
|
"is_form_design",
|
|
2783
2852
|
"placeholder"
|
|
2784
|
-
])) :
|
|
2785
|
-
e.field.type === "remotetreeselect" ? (
|
|
2853
|
+
])) : A("", !0),
|
|
2854
|
+
e.field.type === "remotetreeselect" ? (z(), k(L, {
|
|
2786
2855
|
key: 35,
|
|
2787
2856
|
label: e.labelModel,
|
|
2788
2857
|
"onUpdate:label": t[41] ||= (t) => e.labelModel = t,
|
|
@@ -2809,8 +2878,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2809
2878
|
"label-key",
|
|
2810
2879
|
"search_config",
|
|
2811
2880
|
"value-key"
|
|
2812
|
-
])) :
|
|
2813
|
-
e.field.type === "remotetreeselectpro" ? (
|
|
2881
|
+
])) : A("", !0),
|
|
2882
|
+
e.field.type === "remotetreeselectpro" ? (z(), k(me, {
|
|
2814
2883
|
key: 36,
|
|
2815
2884
|
label: e.labelModel,
|
|
2816
2885
|
"onUpdate:label": t[43] ||= (t) => e.labelModel = t,
|
|
@@ -2855,8 +2924,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2855
2924
|
"init_watch",
|
|
2856
2925
|
"is_form_design",
|
|
2857
2926
|
"placeholder"
|
|
2858
|
-
])) :
|
|
2859
|
-
e.field.type === "remotemodal" ? (
|
|
2927
|
+
])) : A("", !0),
|
|
2928
|
+
e.field.type === "remotemodal" ? (z(), k(R, {
|
|
2860
2929
|
key: 37,
|
|
2861
2930
|
label: e.labelModel,
|
|
2862
2931
|
"onUpdate:label": t[45] ||= (t) => e.labelModel = t,
|
|
@@ -2881,8 +2950,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2881
2950
|
"modalType",
|
|
2882
2951
|
"search_config",
|
|
2883
2952
|
"watch"
|
|
2884
|
-
])) :
|
|
2885
|
-
e.field.type === "remotetable" ? (
|
|
2953
|
+
])) : A("", !0),
|
|
2954
|
+
e.field.type === "remotetable" ? (z(), k(ge, {
|
|
2886
2955
|
key: 38,
|
|
2887
2956
|
value: e.model,
|
|
2888
2957
|
"onUpdate:value": t[47] ||= (t) => e.model = t,
|
|
@@ -2910,8 +2979,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2910
2979
|
"watch",
|
|
2911
2980
|
"base-key-path",
|
|
2912
2981
|
"worker-host-functions"
|
|
2913
|
-
])) :
|
|
2914
|
-
e.field.type === "remotetablepro" && !e.self_is_edit ? (
|
|
2982
|
+
])) : A("", !0),
|
|
2983
|
+
e.field.type === "remotetablepro" && !e.self_is_edit ? (z(), k(B, {
|
|
2915
2984
|
key: 39,
|
|
2916
2985
|
value: e.model,
|
|
2917
2986
|
"onUpdate:value": t[48] ||= (t) => e.model = t,
|
|
@@ -2945,8 +3014,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2945
3014
|
"global-inner-model",
|
|
2946
3015
|
"base-key-path",
|
|
2947
3016
|
"worker-host-functions"
|
|
2948
|
-
])) :
|
|
2949
|
-
e.field.type === "formtemplate" ? (
|
|
3017
|
+
])) : A("", !0),
|
|
3018
|
+
e.field.type === "formtemplate" ? (z(), k(V, {
|
|
2950
3019
|
key: 40,
|
|
2951
3020
|
value: e.model,
|
|
2952
3021
|
"onUpdate:value": t[49] ||= (t) => e.model = t,
|
|
@@ -2990,8 +3059,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2990
3059
|
"base-key-path",
|
|
2991
3060
|
"worker-host-functions",
|
|
2992
3061
|
"contextOptions"
|
|
2993
|
-
])) :
|
|
2994
|
-
e.field.type === "dynamicvaluefield" ? (
|
|
3062
|
+
])) : A("", !0),
|
|
3063
|
+
e.field.type === "dynamicvaluefield" ? (z(), k(ve, {
|
|
2995
3064
|
key: 41,
|
|
2996
3065
|
value: e.model,
|
|
2997
3066
|
"onUpdate:value": t[50] ||= (t) => e.model = t,
|
|
@@ -3029,8 +3098,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
3029
3098
|
"context",
|
|
3030
3099
|
"base-key-path",
|
|
3031
3100
|
"worker-host-functions"
|
|
3032
|
-
])) :
|
|
3033
|
-
e.field.type === "remotetext" ? (
|
|
3101
|
+
])) : A("", !0),
|
|
3102
|
+
e.field.type === "remotetext" ? (z(), k(ye, {
|
|
3034
3103
|
key: 42,
|
|
3035
3104
|
value: e.model,
|
|
3036
3105
|
"onUpdate:value": t[51] ||= (t) => e.model = t,
|
|
@@ -3052,8 +3121,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
3052
3121
|
"modalType",
|
|
3053
3122
|
"search_config",
|
|
3054
3123
|
"watch"
|
|
3055
|
-
])) :
|
|
3056
|
-
e.field.type === "upload" ? (
|
|
3124
|
+
])) : A("", !0),
|
|
3125
|
+
e.field.type === "upload" ? (z(), k(be, {
|
|
3057
3126
|
key: 43,
|
|
3058
3127
|
value: e.model,
|
|
3059
3128
|
"onUpdate:value": t[52] ||= (t) => e.model = t,
|
|
@@ -3069,8 +3138,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
3069
3138
|
"listType",
|
|
3070
3139
|
"maxCount",
|
|
3071
3140
|
"acceptList"
|
|
3072
|
-
])) :
|
|
3073
|
-
e.field.type === "codeeditor" ? (
|
|
3141
|
+
])) : A("", !0),
|
|
3142
|
+
e.field.type === "codeeditor" ? (z(), k(K, {
|
|
3074
3143
|
key: 44,
|
|
3075
3144
|
editorValue: e.model,
|
|
3076
3145
|
"onUpdate:editorValue": t[53] ||= (t) => e.model = t,
|
|
@@ -3082,8 +3151,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
3082
3151
|
"options",
|
|
3083
3152
|
"mode",
|
|
3084
3153
|
"lineWrapping"
|
|
3085
|
-
])) :
|
|
3086
|
-
e.field.type === "tinymceeditor" ? (
|
|
3154
|
+
])) : A("", !0),
|
|
3155
|
+
e.field.type === "tinymceeditor" ? (z(), k(xe, {
|
|
3087
3156
|
key: 45,
|
|
3088
3157
|
modelValue: e.model,
|
|
3089
3158
|
"onUpdate:modelValue": t[54] ||= (t) => e.model = t,
|
|
@@ -3093,14 +3162,14 @@ function Lt(e, t, n, r, i, a) {
|
|
|
3093
3162
|
"modelValue",
|
|
3094
3163
|
"options",
|
|
3095
3164
|
"mode"
|
|
3096
|
-
])) :
|
|
3097
|
-
e.field.type === "iconselect" ? (
|
|
3165
|
+
])) : A("", !0),
|
|
3166
|
+
e.field.type === "iconselect" ? (z(), k(Se, {
|
|
3098
3167
|
key: 46,
|
|
3099
3168
|
value: e.model,
|
|
3100
3169
|
"onUpdate:value": t[55] ||= (t) => e.model = t,
|
|
3101
3170
|
placeholder: e.field.placeholder_i18n == null ? e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label : e.t(e.field.placeholder_i18n)
|
|
3102
|
-
}, null, 8, ["value", "placeholder"])) :
|
|
3103
|
-
e.field.type === "rate" ? (
|
|
3171
|
+
}, null, 8, ["value", "placeholder"])) : A("", !0),
|
|
3172
|
+
e.field.type === "rate" ? (z(), k(u, {
|
|
3104
3173
|
key: 47,
|
|
3105
3174
|
value: e.model,
|
|
3106
3175
|
"onUpdate:value": t[56] ||= (t) => e.model = t,
|
|
@@ -3110,8 +3179,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
3110
3179
|
"value",
|
|
3111
3180
|
"count",
|
|
3112
3181
|
"allow-half"
|
|
3113
|
-
])) :
|
|
3114
|
-
e.field.type === "radio-color" ? (
|
|
3182
|
+
])) : A("", !0),
|
|
3183
|
+
e.field.type === "radio-color" ? (z(), k(T, {
|
|
3115
3184
|
key: 48,
|
|
3116
3185
|
value: e.model,
|
|
3117
3186
|
"onUpdate:value": t[57] ||= (t) => e.model = t,
|
|
@@ -3119,12 +3188,12 @@ function Lt(e, t, n, r, i, a) {
|
|
|
3119
3188
|
disabled: e.field.disabled,
|
|
3120
3189
|
size: "small"
|
|
3121
3190
|
}, {
|
|
3122
|
-
default:
|
|
3191
|
+
default: q(() => [(z(!0), j(D, null, H(e.options, (t) => (z(), k(w, {
|
|
3123
3192
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
3124
3193
|
disabled: t.disabled,
|
|
3125
3194
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
3126
3195
|
}, {
|
|
3127
|
-
default:
|
|
3196
|
+
default: q(() => [M("div", { style: he({
|
|
3128
3197
|
width: "20px",
|
|
3129
3198
|
height: "20px",
|
|
3130
3199
|
backgroundColor: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
@@ -3136,8 +3205,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
3136
3205
|
"value",
|
|
3137
3206
|
"default-value",
|
|
3138
3207
|
"disabled"
|
|
3139
|
-
])) :
|
|
3140
|
-
e.field.type?.startsWith("CustomField") ? (
|
|
3208
|
+
])) : A("", !0),
|
|
3209
|
+
e.field.type?.startsWith("CustomField") ? (z(), k(W(e.field.type), {
|
|
3141
3210
|
key: 49,
|
|
3142
3211
|
label: e.labelModel,
|
|
3143
3212
|
"onUpdate:label": t[58] ||= (t) => e.labelModel = t,
|
|
@@ -3162,14 +3231,14 @@ function Lt(e, t, n, r, i, a) {
|
|
|
3162
3231
|
"init_watch",
|
|
3163
3232
|
"is_form_design",
|
|
3164
3233
|
"placeholder"
|
|
3165
|
-
])) :
|
|
3234
|
+
])) : A("", !0)
|
|
3166
3235
|
]),
|
|
3167
3236
|
_: 2
|
|
3168
3237
|
}, [e.is_show_label ? {
|
|
3169
3238
|
name: "label",
|
|
3170
|
-
fn:
|
|
3171
|
-
|
|
3172
|
-
e.is_show_edit ? (
|
|
3239
|
+
fn: q(() => [
|
|
3240
|
+
P(G(e.is_show_label ? e.field.label_i18n == null ? e.field.label : e.t(e.field.label_i18n) : null) + " ", 1),
|
|
3241
|
+
e.is_show_edit ? (z(), k(o, {
|
|
3173
3242
|
key: 0,
|
|
3174
3243
|
checked: e.self_is_edit,
|
|
3175
3244
|
"onUpdate:checked": t[0] ||= (t) => e.self_is_edit = t,
|
|
@@ -3177,28 +3246,28 @@ function Lt(e, t, n, r, i, a) {
|
|
|
3177
3246
|
onChange: e.handleToggleEdit,
|
|
3178
3247
|
"checked-children": "表单",
|
|
3179
3248
|
"un-checked-children": "列表"
|
|
3180
|
-
}, null, 8, ["checked", "onChange"])) :
|
|
3181
|
-
e.is_show_edit && e.self_is_edit ? (
|
|
3249
|
+
}, null, 8, ["checked", "onChange"])) : A("", !0),
|
|
3250
|
+
e.is_show_edit && e.self_is_edit ? (z(), k(c, {
|
|
3182
3251
|
key: 1,
|
|
3183
3252
|
size: "small",
|
|
3184
3253
|
type: "primary",
|
|
3185
3254
|
onClick: e.handleAdd
|
|
3186
3255
|
}, {
|
|
3187
|
-
icon:
|
|
3188
|
-
default:
|
|
3256
|
+
icon: q(() => [F(s)]),
|
|
3257
|
+
default: q(() => [t[61] ||= P(" 添加分组 ")]),
|
|
3189
3258
|
_: 1
|
|
3190
|
-
}, 8, ["onClick"])) :
|
|
3259
|
+
}, 8, ["onClick"])) : A("", !0)
|
|
3191
3260
|
]),
|
|
3192
3261
|
key: "0"
|
|
3193
|
-
} : void 0]), 1040, ["extra", "name"])) :
|
|
3194
|
-
e.field.type === "divider" ? (
|
|
3262
|
+
} : void 0]), 1040, ["extra", "name"])) : A("", !0),
|
|
3263
|
+
e.field.type === "divider" ? (z(), k(we, {
|
|
3195
3264
|
key: 1,
|
|
3196
3265
|
orientation: e.field.orientation
|
|
3197
3266
|
}, {
|
|
3198
|
-
default:
|
|
3267
|
+
default: q(() => [P(G(e.field.label), 1)]),
|
|
3199
3268
|
_: 1
|
|
3200
|
-
}, 8, ["orientation"])) :
|
|
3201
|
-
e.field.type === "button" ? (
|
|
3269
|
+
}, 8, ["orientation"])) : A("", !0),
|
|
3270
|
+
e.field.type === "button" ? (z(), k(Te, {
|
|
3202
3271
|
key: 2,
|
|
3203
3272
|
value: e.model,
|
|
3204
3273
|
"onUpdate:value": t[60] ||= (t) => e.model = t,
|
|
@@ -3220,9 +3289,9 @@ function Lt(e, t, n, r, i, a) {
|
|
|
3220
3289
|
"context",
|
|
3221
3290
|
"base-key-path",
|
|
3222
3291
|
"worker-host-functions"
|
|
3223
|
-
])) :
|
|
3292
|
+
])) : A("", !0)
|
|
3224
3293
|
], 64);
|
|
3225
3294
|
}
|
|
3226
|
-
var
|
|
3295
|
+
var Ht = /*#__PURE__*/ n(Pt, [["render", Vt], ["__scopeId", "data-v-4d903c12"]]);
|
|
3227
3296
|
//#endregion
|
|
3228
|
-
export {
|
|
3297
|
+
export { Ht as t };
|