liyu-pc-base 1.0.831 → 1.0.833
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-B9zYViPc.js → FieldRender2-XECJuImX.js} +460 -414
- package/dist/FieldRender2-XECJuImX.js.map +1 -0
- package/dist/{FormRender3-COq33cXi.js → FormRender3-BVGWy_z7.js} +1 -1
- package/dist/{FormRender3-COq33cXi.js.map → FormRender3-BVGWy_z7.js.map} +1 -1
- package/dist/{SearchRender-IcwbHvfl.js → SearchRender-DHfvN2ga.js} +1 -1
- package/dist/{SearchRender-IcwbHvfl.js.map → SearchRender-DHfvN2ga.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-B9zYViPc.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
|
|
9
|
+
import { n as p, r as m, t as h } from "./RemoteSelectPro-UGspfCN0.js";
|
|
10
|
+
import { t as g } from "./RemoteFilterSelect-BthY6Fyt.js";
|
|
11
|
+
import { t as _ } from "./AttributeNomTable-DHED22ju.js";
|
|
12
|
+
import { t as v } from "./AttributeTable-muxdKpWW.js";
|
|
13
|
+
import { t as y } from "./JsonStr-JwOPdAYW.js";
|
|
14
|
+
import { t as ee } from "./JsonObj-CmylW4Or.js";
|
|
15
|
+
import { t as te } from "./RemoteText-DwRLI0xq.js";
|
|
16
|
+
import { t as b } from "./modal-tools-CrXdI5sg.js";
|
|
17
|
+
import { resolveContextValue as x } from "./components/FormRender/utils.js";
|
|
18
|
+
import { exportJsonToExcelByTokenHeader as ne } from "./utils/excel.js";
|
|
19
|
+
import { a as S, c as re, d as C, f as ie, i as ae, l as oe, n as w, o as se, r as T, s as ce, t as le, u as ue } from "./TinymceEditor-C_nD6tb-.js";
|
|
20
|
+
import { Fragment as E, computed as D, createBlock as O, createCommentVNode as k, createElementBlock as A, createElementVNode as j, createSlots as M, createTextVNode as N, createVNode as P, defineAsyncComponent as de, defineComponent as F, h as fe, inject as pe, mergeModels as I, mergeProps as L, 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
21
|
import { Modal as Se, message as Ce } from "ant-design-vue";
|
|
22
|
-
import {
|
|
22
|
+
import { cloneDeep as we, debounce as Te, isArray as Ee } from "lodash-es";
|
|
23
23
|
import J from "moment";
|
|
24
|
-
import { ExclamationCircleOutlined as
|
|
25
|
-
import { useI18n as
|
|
26
|
-
import
|
|
24
|
+
import { ExclamationCircleOutlined as De, PlusOutlined as Oe } from "@ant-design/icons-vue";
|
|
25
|
+
import { useI18n as ke } from "vue-i18n";
|
|
26
|
+
import Ae from "mitt";
|
|
27
27
|
//#region src/components/FormRender/FormTemplate/FormItem.vue?vue&type=script&lang.ts
|
|
28
|
-
var
|
|
28
|
+
var je = F({
|
|
29
29
|
name: "FormTemplate",
|
|
30
30
|
components: {},
|
|
31
31
|
props: {
|
|
@@ -85,9 +85,13 @@ var Ae = I({
|
|
|
85
85
|
default: !1
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
|
-
emits: [
|
|
88
|
+
emits: [
|
|
89
|
+
"update:value",
|
|
90
|
+
"remove",
|
|
91
|
+
"copy"
|
|
92
|
+
],
|
|
89
93
|
setup(e, { emit: t }) {
|
|
90
|
-
let n = B({ ...e.field.form.rules }), r = V({}), i =
|
|
94
|
+
let n = B({ ...e.field.form.rules }), r = V({}), i = de(() => import("./FormRender3-BVGWy_z7.js").then((e) => e.n)), a, o = () => {
|
|
91
95
|
let e = /* @__PURE__ */ new Uint8Array(16);
|
|
92
96
|
return window.crypto.getRandomValues(e), Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
93
97
|
}, s = V([]), c = o(), l = ([t, i]) => {
|
|
@@ -113,19 +117,22 @@ var Ae = I({
|
|
|
113
117
|
},
|
|
114
118
|
removeFormItem: () => {
|
|
115
119
|
e.nestValidate && delete e.nestValidate[c], t("remove");
|
|
120
|
+
},
|
|
121
|
+
copyFormItem: () => {
|
|
122
|
+
t("copy");
|
|
116
123
|
}
|
|
117
124
|
};
|
|
118
125
|
},
|
|
119
126
|
data() {
|
|
120
127
|
return { model: this.value };
|
|
121
128
|
}
|
|
122
|
-
}),
|
|
129
|
+
}), Me = { class: "form-wrap" }, Ne = { class: "form-content" }, Pe = {
|
|
123
130
|
key: 0,
|
|
124
131
|
class: "form-action"
|
|
125
132
|
};
|
|
126
|
-
function
|
|
127
|
-
let o = U("
|
|
128
|
-
return z(),
|
|
133
|
+
function Fe(e, t, n, r, i, a) {
|
|
134
|
+
let o = U("CopyOutlined"), s = U("a-button"), c = U("DeleteOutlined");
|
|
135
|
+
return z(), A("div", Me, [j("div", Ne, [(z(), O(W(e.FormRender3Async), {
|
|
129
136
|
form: e.field.form,
|
|
130
137
|
model: e.value,
|
|
131
138
|
"onUpdate:model": t[0] ||= (t) => e.value = t,
|
|
@@ -158,18 +165,26 @@ function Pe(e, t, n, r, i, a) {
|
|
|
158
165
|
"base-key-path",
|
|
159
166
|
"worker-host-functions",
|
|
160
167
|
"lock-structure"
|
|
161
|
-
]))]), e.field.max_count !== e.min_count && !e.lockStructure ? (z(),
|
|
168
|
+
]))]), e.field.max_count !== e.min_count && !e.lockStructure ? (z(), A("div", Pe, [P(s, {
|
|
169
|
+
onClick: e.copyFormItem,
|
|
170
|
+
size: "small",
|
|
171
|
+
type: "link",
|
|
172
|
+
disabled: e.field.max_count && e.listLength >= e.field.max_count
|
|
173
|
+
}, {
|
|
174
|
+
icon: q(() => [P(o)]),
|
|
175
|
+
_: 1
|
|
176
|
+
}, 8, ["onClick", "disabled"]), P(s, {
|
|
162
177
|
onClick: e.removeFormItem,
|
|
163
178
|
size: "small",
|
|
164
179
|
type: "link",
|
|
165
180
|
danger: "",
|
|
166
181
|
disabled: e.listLength <= e.min_count
|
|
167
182
|
}, {
|
|
168
|
-
icon: q(() => [
|
|
183
|
+
icon: q(() => [P(c)]),
|
|
169
184
|
_: 1
|
|
170
|
-
}, 8, ["onClick", "disabled"])])) :
|
|
185
|
+
}, 8, ["onClick", "disabled"])])) : k("", !0)]);
|
|
171
186
|
}
|
|
172
|
-
var
|
|
187
|
+
var Ie = /*#__PURE__*/ n(je, [["render", Fe], ["__scopeId", "data-v-ac57aef6"]]), Le = { key: 1 }, Re = /*#__PURE__*/ n(/* @__PURE__ */ F({
|
|
173
188
|
__name: "TableCell",
|
|
174
189
|
props: {
|
|
175
190
|
field: {
|
|
@@ -221,18 +236,18 @@ var Fe = /*#__PURE__*/ n(Ae, [["render", Pe], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
221
236
|
r("update_model", e);
|
|
222
237
|
}, o = (e) => {
|
|
223
238
|
r("update_name2", e);
|
|
224
|
-
}, s =
|
|
239
|
+
}, s = D(() => i.value && !n.field.disabled && n.field.type !== "dynamicvaluefield");
|
|
225
240
|
return (t, n) => {
|
|
226
241
|
let r = U("a-form");
|
|
227
|
-
return z(),
|
|
242
|
+
return z(), O(r, {
|
|
228
243
|
model: e.model,
|
|
229
244
|
layout: "inline",
|
|
230
245
|
class: "table-cell-form"
|
|
231
246
|
}, {
|
|
232
|
-
default: q(() => [xe(
|
|
247
|
+
default: q(() => [xe(j("div", { class: me(["field-cell-item", {
|
|
233
248
|
editable: s.value,
|
|
234
249
|
"item-required": e.has_reqrired
|
|
235
|
-
}]) }, [e.field.type === "dynamicvaluefield" ? (z(),
|
|
250
|
+
}]) }, [e.field.type === "dynamicvaluefield" ? (z(), A("span", Le, G(e.model[e.field.name]), 1)) : (z(), O(Ut, {
|
|
236
251
|
is_show_label: !1,
|
|
237
252
|
value: e.model[e.field.name],
|
|
238
253
|
"onUpdate:value": n[0] ||= (t) => e.model[e.field.name] = t,
|
|
@@ -274,7 +289,7 @@ var Fe = /*#__PURE__*/ n(Ae, [["render", Pe], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
274
289
|
}, 8, ["model"]);
|
|
275
290
|
};
|
|
276
291
|
}
|
|
277
|
-
}), [["__scopeId", "data-v-00188241"]]),
|
|
292
|
+
}), [["__scopeId", "data-v-00188241"]]), ze = { key: 0 }, Be = { key: 1 }, Ve = /* @__PURE__ */ F({
|
|
278
293
|
__name: "TableSummary",
|
|
279
294
|
props: {
|
|
280
295
|
summaryParams: {
|
|
@@ -287,7 +302,7 @@ var Fe = /*#__PURE__*/ n(Ae, [["render", Pe], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
287
302
|
}
|
|
288
303
|
},
|
|
289
304
|
setup(e) {
|
|
290
|
-
let t = e, n =
|
|
305
|
+
let t = e, n = D(() => {
|
|
291
306
|
let e = 0;
|
|
292
307
|
for (let n of t.tableDataSource) {
|
|
293
308
|
let r = n[t.summaryParams.column.dataIndex];
|
|
@@ -310,18 +325,18 @@ var Fe = /*#__PURE__*/ n(Ae, [["render", Pe], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
310
325
|
return parseFloat((e + t).toFixed(n));
|
|
311
326
|
}
|
|
312
327
|
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) => (z(),
|
|
314
|
-
e.summaryParams?.column?.field?.addonBefore ? (z(),
|
|
315
|
-
|
|
316
|
-
e.summaryParams?.column?.field?.addonAfter ? (z(),
|
|
328
|
+
return (t, r) => (z(), A(E, null, [
|
|
329
|
+
e.summaryParams?.column?.field?.addonBefore ? (z(), A("span", ze, G(e.summaryParams.column.field.addonBefore), 1)) : k("", !0),
|
|
330
|
+
N(" " + G(n.value) + " ", 1),
|
|
331
|
+
e.summaryParams?.column?.field?.addonAfter ? (z(), A("span", Be, G(e.summaryParams.column.field.addonAfter), 1)) : k("", !0)
|
|
317
332
|
], 64));
|
|
318
333
|
}
|
|
319
|
-
}), Y = (e) => e.valueKey || "id",
|
|
334
|
+
}), Y = (e) => e.valueKey || "id", He = (e) => e.labelKey || "name", Ue = (e) => {
|
|
320
335
|
let t = [], n = e.labelKeyList || [];
|
|
321
|
-
return n.length > 0 && e.labelKeyType !== 1 ? t.push(Y(e), ...n) : t.push(Y(e),
|
|
322
|
-
},
|
|
336
|
+
return n.length > 0 && e.labelKeyType !== 1 ? t.push(Y(e), ...n) : t.push(Y(e), He(e)), e.extendedFields && e.extendedFields.length > 0 && t.push(...e.extendedFields), [...new Set(t)];
|
|
337
|
+
}, We = (e) => {
|
|
323
338
|
let t = e.labelKeyList || [];
|
|
324
|
-
return t.length > 0 && e.labelKeyType !== 1 ? [...t] : [
|
|
339
|
+
return t.length > 0 && e.labelKeyType !== 1 ? [...t] : [He(e)];
|
|
325
340
|
}, X = (e, t, n) => {
|
|
326
341
|
if (n.operator === "not_blank_not_null") t.push({
|
|
327
342
|
field_name: n.field_name,
|
|
@@ -349,7 +364,7 @@ var Fe = /*#__PURE__*/ n(Ae, [["render", Pe], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
349
364
|
class_name: n.class_name
|
|
350
365
|
});
|
|
351
366
|
}
|
|
352
|
-
},
|
|
367
|
+
}, Ge = (t) => {
|
|
353
368
|
let n = t.required_condition, r = {};
|
|
354
369
|
if (n) {
|
|
355
370
|
let t = e();
|
|
@@ -359,7 +374,7 @@ var Fe = /*#__PURE__*/ n(Ae, [["render", Pe], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
359
374
|
});
|
|
360
375
|
}
|
|
361
376
|
return r;
|
|
362
|
-
},
|
|
377
|
+
}, Ke = (e, t, n, r, i) => {
|
|
363
378
|
let a = [], o = [[{
|
|
364
379
|
searchType: 3,
|
|
365
380
|
field_name: "is_active",
|
|
@@ -375,19 +390,19 @@ var Fe = /*#__PURE__*/ n(Ae, [["render", Pe], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
375
390
|
e.select_name == r && X((n || t)[r], o, e);
|
|
376
391
|
}) : e.searchType === 2 ? Object.keys(t).forEach((n) => {
|
|
377
392
|
e.select_name == n && X(t[n], o, e);
|
|
378
|
-
}) : e.searchType === 3 ? X(e.value, o, e) : e.searchType === 4 ? X(
|
|
393
|
+
}) : e.searchType === 3 ? X(e.value, o, e) : e.searchType === 4 ? X(x(e.select_name, r, ["formModel", ...i]), o, e) : X(e.value, o, e);
|
|
379
394
|
}), a.push(o);
|
|
380
395
|
}), a;
|
|
381
|
-
},
|
|
396
|
+
}, qe = (e, t, n, r, i) => {
|
|
382
397
|
let a = {};
|
|
383
398
|
return e.simpleSearchConditions && e.simpleSearchConditions.forEach((e) => {
|
|
384
399
|
e.searchType === 1 ? Object.keys(n || t).forEach((r) => {
|
|
385
400
|
e.select_name == r && (a[e.field_name] = (n || t)[r]);
|
|
386
401
|
}) : e.searchType === 2 ? Object.keys(t).forEach((n) => {
|
|
387
402
|
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] =
|
|
403
|
+
}) : e.searchType === 3 ? a[e.field_name] = e.value : e.searchType === 4 && (a[e.field_name] = x(e.select_name, r, ["formModel", ...i]));
|
|
389
404
|
}), a;
|
|
390
|
-
},
|
|
405
|
+
}, Je = (e, t, n, r, i) => {
|
|
391
406
|
let a = {
|
|
392
407
|
current: 1,
|
|
393
408
|
pageSize: 200,
|
|
@@ -395,26 +410,26 @@ var Fe = /*#__PURE__*/ n(Ae, [["render", Pe], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
395
410
|
request_source: "strict",
|
|
396
411
|
is_active: !0,
|
|
397
412
|
...e.init_model || {},
|
|
398
|
-
column_fields:
|
|
399
|
-
sort_fields: e.init_model?.sort_fields ||
|
|
413
|
+
column_fields: Ue(e),
|
|
414
|
+
sort_fields: e.init_model?.sort_fields || We(e),
|
|
400
415
|
conditions: [],
|
|
401
416
|
simpleSearchParams: {}
|
|
402
|
-
}, o =
|
|
417
|
+
}, o = Ge(e);
|
|
403
418
|
if (e.queryType === "simple") {
|
|
404
|
-
let s =
|
|
419
|
+
let s = qe(e, t, n, r, i), c = {
|
|
405
420
|
...a,
|
|
406
421
|
...s,
|
|
407
422
|
required_condition: o
|
|
408
423
|
};
|
|
409
424
|
return delete c.conditions, delete c.simpleSearchParams, c;
|
|
410
425
|
}
|
|
411
|
-
let s =
|
|
426
|
+
let s = Ke(e, t, n, r, i), c = {
|
|
412
427
|
...a,
|
|
413
428
|
conditions: s,
|
|
414
429
|
required_condition: o
|
|
415
430
|
};
|
|
416
431
|
return delete c.simpleSearchParams, c;
|
|
417
|
-
},
|
|
432
|
+
}, Ye = (e, t, n) => {
|
|
418
433
|
let r = n.every((e) => typeof e == "number" || typeof e == "string" && e.trim() !== "" && !isNaN(Number(e))) ? "int" : "str";
|
|
419
434
|
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
435
|
class_name: r,
|
|
@@ -423,10 +438,10 @@ var Fe = /*#__PURE__*/ n(Ae, [["render", Pe], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
423
438
|
format: "remote",
|
|
424
439
|
field_name: Y(t)
|
|
425
440
|
})), e;
|
|
426
|
-
},
|
|
441
|
+
}, Xe = (e, t) => {
|
|
427
442
|
let n = (e) => Y(t) === "id" ? isNaN(Number(e)) ? e : Number(e) : e;
|
|
428
443
|
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
|
-
},
|
|
444
|
+
}, Ze = (e, t) => {
|
|
430
445
|
if (e.labelKeyList && e.labelKeyList.length > 0 && e.labelKeyType !== 1) {
|
|
431
446
|
let n = [];
|
|
432
447
|
for (let r of e.labelKeyList) {
|
|
@@ -435,15 +450,15 @@ var Fe = /*#__PURE__*/ n(Ae, [["render", Pe], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
435
450
|
}
|
|
436
451
|
return n.join(e.labelSpace || "-");
|
|
437
452
|
}
|
|
438
|
-
let n = t[
|
|
453
|
+
let n = t[He(e)];
|
|
439
454
|
return n == null ? "" : String(n);
|
|
440
455
|
};
|
|
441
|
-
async function
|
|
456
|
+
async function Qe(e) {
|
|
442
457
|
let { field: t, targets: n, baseKeyPath: r, context: i } = e;
|
|
443
458
|
if (!t.postUrl || !n || n.length === 0) return {};
|
|
444
459
|
let o = /* @__PURE__ */ new Map();
|
|
445
460
|
for (let e of n) {
|
|
446
|
-
let n = [...r, e.rowIndex], a =
|
|
461
|
+
let n = [...r, e.rowIndex], a = Je(t, e.row || {}, {}, i, n), s = Xe(e.row?.[t.name], t);
|
|
447
462
|
if (s.length === 0) continue;
|
|
448
463
|
let c = JSON.stringify(a);
|
|
449
464
|
o.has(c) || o.set(c, {
|
|
@@ -460,7 +475,7 @@ async function Ze(e) {
|
|
|
460
475
|
if (n.length !== 0) {
|
|
461
476
|
for (let r = 0; r < n.length; r += 100) {
|
|
462
477
|
let i = n.slice(r, r + 100), o = JSON.parse(JSON.stringify(e.params));
|
|
463
|
-
|
|
478
|
+
Ye(o, t, i);
|
|
464
479
|
let s = [];
|
|
465
480
|
try {
|
|
466
481
|
s = (await a(o, t.postUrl, !1, { skip_error: !0 }))?.data || [];
|
|
@@ -470,7 +485,7 @@ async function Ze(e) {
|
|
|
470
485
|
for (let e of s) {
|
|
471
486
|
let n = e[Y(t)], r = String(n);
|
|
472
487
|
c.has(r) || c.set(r, {
|
|
473
|
-
label:
|
|
488
|
+
label: Ze(t, e),
|
|
474
489
|
option: e
|
|
475
490
|
});
|
|
476
491
|
}
|
|
@@ -498,16 +513,16 @@ async function Ze(e) {
|
|
|
498
513
|
}
|
|
499
514
|
//#endregion
|
|
500
515
|
//#region src/components/FormRender/FormTemplate/FormTemplateTable.vue?vue&type=script&setup=true&lang.ts
|
|
501
|
-
var
|
|
516
|
+
var $e = {
|
|
502
517
|
key: 0,
|
|
503
518
|
class: "required-star"
|
|
504
|
-
}, $e = {
|
|
505
|
-
key: 0,
|
|
506
|
-
class: "cell-item"
|
|
507
519
|
}, et = {
|
|
520
|
+
key: 0,
|
|
521
|
+
class: "cell-item action-cell"
|
|
522
|
+
}, tt = {
|
|
508
523
|
key: 1,
|
|
509
524
|
class: "cell-item"
|
|
510
|
-
},
|
|
525
|
+
}, nt = /*#__PURE__*/ n(/* @__PURE__ */ F({
|
|
511
526
|
__name: "FormTemplateTable",
|
|
512
527
|
props: {
|
|
513
528
|
value: {},
|
|
@@ -523,7 +538,11 @@ var Qe = {
|
|
|
523
538
|
formModel: {},
|
|
524
539
|
lockStructure: { type: Boolean }
|
|
525
540
|
},
|
|
526
|
-
emits: [
|
|
541
|
+
emits: [
|
|
542
|
+
"remove",
|
|
543
|
+
"copy",
|
|
544
|
+
"labels_resolved"
|
|
545
|
+
],
|
|
527
546
|
setup(e, { emit: t }) {
|
|
528
547
|
let n = V({
|
|
529
548
|
showQuickJumper: !0,
|
|
@@ -557,25 +576,25 @@ var Qe = {
|
|
|
557
576
|
deep: !0,
|
|
558
577
|
immediate: !0
|
|
559
578
|
}), K(() => r.field, () => {
|
|
560
|
-
|
|
579
|
+
v();
|
|
561
580
|
}, { deep: !0 }), K(() => r.formModel, () => {
|
|
562
|
-
|
|
581
|
+
v();
|
|
563
582
|
}, { deep: !0 }), K(() => r.context, () => {
|
|
564
|
-
|
|
583
|
+
v();
|
|
565
584
|
}, { deep: !0 }), R(() => {
|
|
566
|
-
|
|
585
|
+
v(), x();
|
|
567
586
|
}), ge(() => {
|
|
568
|
-
r.nestValidate && delete r.nestValidate[l],
|
|
587
|
+
r.nestValidate && delete r.nestValidate[l], x.cancel(), i("labels_resolved");
|
|
569
588
|
});
|
|
570
|
-
let
|
|
589
|
+
let h = D(() => {
|
|
571
590
|
let e = 0;
|
|
572
591
|
return f.value.forEach((t) => {
|
|
573
592
|
e += t._width || 150;
|
|
574
593
|
}), e;
|
|
575
|
-
}),
|
|
594
|
+
}), g = D(() => (r.value || []).map((e, t) => ({
|
|
576
595
|
...e,
|
|
577
596
|
_key: t
|
|
578
|
-
}))),
|
|
597
|
+
}))), _ = (e) => {
|
|
579
598
|
if (r.field?.form?.rules) {
|
|
580
599
|
let t = r.field?.form?.rules[e];
|
|
581
600
|
if (t) {
|
|
@@ -583,7 +602,7 @@ var Qe = {
|
|
|
583
602
|
}
|
|
584
603
|
}
|
|
585
604
|
return !1;
|
|
586
|
-
},
|
|
605
|
+
}, v = async () => {
|
|
587
606
|
let e = [], t = {};
|
|
588
607
|
if (e.push({
|
|
589
608
|
title: "序号",
|
|
@@ -596,7 +615,7 @@ var Qe = {
|
|
|
596
615
|
t[n.name] = !0;
|
|
597
616
|
let r = n.is_table_auto_width;
|
|
598
617
|
(r == null || r === "") && (r = !0);
|
|
599
|
-
let i =
|
|
618
|
+
let i = _(n.name), a = {
|
|
600
619
|
title: n.label,
|
|
601
620
|
dataIndex: n.name,
|
|
602
621
|
key: n.name,
|
|
@@ -615,8 +634,8 @@ var Qe = {
|
|
|
615
634
|
title: "操作",
|
|
616
635
|
key: "action",
|
|
617
636
|
dataIndex: "action",
|
|
618
|
-
width:
|
|
619
|
-
_width:
|
|
637
|
+
width: 90,
|
|
638
|
+
_width: 90,
|
|
620
639
|
fixed: "right"
|
|
621
640
|
}), r.field.dynamicTitle?.enable) {
|
|
622
641
|
let t = r.field.dynamicTitle.code;
|
|
@@ -637,8 +656,10 @@ var Qe = {
|
|
|
637
656
|
}
|
|
638
657
|
}
|
|
639
658
|
f.value = e;
|
|
640
|
-
},
|
|
659
|
+
}, y = (e) => {
|
|
641
660
|
c.value.splice(e, 1), i("remove", e);
|
|
661
|
+
}, ee = (e) => {
|
|
662
|
+
c.value.splice(e + 1, 0, we(c.value[e] || {})), i("copy", e);
|
|
642
663
|
}, te = () => {
|
|
643
664
|
let e = [];
|
|
644
665
|
return r.field?.form?.dynamicFieldList?.forEach((t) => {
|
|
@@ -646,7 +667,7 @@ var Qe = {
|
|
|
646
667
|
t.type === "remoteselectpro" && t.postUrl && !t.is_table_hide_column && e.push(t);
|
|
647
668
|
});
|
|
648
669
|
}), e;
|
|
649
|
-
},
|
|
670
|
+
}, b = (e, t, n) => {
|
|
650
671
|
if (!e) return !1;
|
|
651
672
|
let i = e[t.name];
|
|
652
673
|
if (!(i != null && i !== "" && !(i instanceof Array && i.length === 0))) return !1;
|
|
@@ -654,7 +675,7 @@ var Qe = {
|
|
|
654
675
|
if (a == null || a === "" || a instanceof Array && a.length === 0) return !0;
|
|
655
676
|
let o = r.innerModel?.[r.field.name]?.[n];
|
|
656
677
|
return !o || o[t.name] === void 0 || o[t.name] === null;
|
|
657
|
-
},
|
|
678
|
+
}, x = Te(async () => {
|
|
658
679
|
if (!r.is_form_design) try {
|
|
659
680
|
let e = te();
|
|
660
681
|
if (e.length === 0 || !r.value || r.value.length === 0) return;
|
|
@@ -662,12 +683,12 @@ var Qe = {
|
|
|
662
683
|
for (let n of e) {
|
|
663
684
|
let e = [];
|
|
664
685
|
if (t.forEach((t, r) => {
|
|
665
|
-
|
|
686
|
+
b(t, n, r) && e.push({
|
|
666
687
|
rowIndex: r,
|
|
667
688
|
row: t
|
|
668
689
|
});
|
|
669
690
|
}), e.length === 0) continue;
|
|
670
|
-
let i = await
|
|
691
|
+
let i = await Qe({
|
|
671
692
|
field: n,
|
|
672
693
|
targets: e,
|
|
673
694
|
baseKeyPath: [...r.baseKeyPath || [], r.field.name],
|
|
@@ -692,58 +713,66 @@ var Qe = {
|
|
|
692
713
|
r.field,
|
|
693
714
|
r.context
|
|
694
715
|
], () => {
|
|
695
|
-
|
|
716
|
+
x();
|
|
696
717
|
}, { deep: !0 });
|
|
697
|
-
let
|
|
718
|
+
let ne = D(() => {
|
|
698
719
|
if (r.innerModel) {
|
|
699
720
|
let e = r.innerModel[r.field.name] || [];
|
|
700
721
|
return (r.value || []).map((t, n) => e[n] || {});
|
|
701
722
|
}
|
|
702
723
|
return [];
|
|
703
|
-
}),
|
|
724
|
+
}), S = D(() => {
|
|
704
725
|
let e = [], t = 0;
|
|
705
726
|
for (let n of f.value) n.is_summary && e.push({ index: t }), t++;
|
|
706
727
|
return e;
|
|
707
728
|
});
|
|
708
729
|
return (e, t) => {
|
|
709
|
-
let r = U("
|
|
710
|
-
return z(),
|
|
730
|
+
let r = U("CopyOutlined"), i = U("a-button"), a = U("DeleteOutlined"), s = U("s-table-summary-cell"), c = U("s-table-summary-row"), l = U("s-table");
|
|
731
|
+
return z(), O(C, {
|
|
711
732
|
"dynamic-title": e.field.dynamicTitle,
|
|
712
733
|
"onUpdate:dynamicTitle": t[1] ||= (t) => e.field.dynamicTitle = t
|
|
713
734
|
}, {
|
|
714
|
-
default: q(() => [(z(),
|
|
715
|
-
dataSource:
|
|
735
|
+
default: q(() => [(z(), O(l, {
|
|
736
|
+
dataSource: g.value,
|
|
716
737
|
columns: f.value,
|
|
717
738
|
autoRowHeight: !0,
|
|
718
739
|
bordered: !0,
|
|
719
740
|
stripe: "",
|
|
720
741
|
"summary-fixed": "",
|
|
721
|
-
scroll: { x:
|
|
742
|
+
scroll: { x: h.value },
|
|
722
743
|
size: "small",
|
|
723
744
|
"row-key": "_key",
|
|
724
745
|
key: f.value.length,
|
|
725
746
|
pagination: n.value,
|
|
726
747
|
"onUpdate:pagination": t[0] ||= (e) => n.value = e,
|
|
727
748
|
rangeSelection: !1
|
|
728
|
-
},
|
|
729
|
-
headerCell: q(({ column: e }) => [
|
|
730
|
-
bodyCell: q(({ column: t, record: n }) => [t.key === "action" ? (z(),
|
|
731
|
-
onClick: (e) =>
|
|
749
|
+
}, M({
|
|
750
|
+
headerCell: q(({ column: e }) => [j("span", null, G(e.title), 1), e.has_reqrired ? (z(), A("span", $e, " * ")) : k("", !0)]),
|
|
751
|
+
bodyCell: q(({ column: t, record: n }) => [t.key === "action" ? (z(), A(E, { key: 0 }, [e.lockStructure ? k("", !0) : (z(), A("div", et, [P(i, {
|
|
752
|
+
onClick: (e) => ee(n._key),
|
|
753
|
+
size: "small",
|
|
754
|
+
type: "link",
|
|
755
|
+
disabled: e.field.max_count && e.value.length >= e.field.max_count
|
|
756
|
+
}, {
|
|
757
|
+
icon: q(() => [P(r)]),
|
|
758
|
+
_: 2
|
|
759
|
+
}, 1032, ["onClick", "disabled"]), P(i, {
|
|
760
|
+
onClick: (e) => y(n._key),
|
|
732
761
|
size: "small",
|
|
733
762
|
type: "link",
|
|
734
763
|
danger: "",
|
|
735
764
|
disabled: e.value.length <= e.min_count
|
|
736
765
|
}, {
|
|
737
|
-
icon: q(() => [
|
|
766
|
+
icon: q(() => [P(a)]),
|
|
738
767
|
_: 2
|
|
739
|
-
}, 1032, ["onClick", "disabled"])]))], 64)) : t.key === "index" ? (z(),
|
|
768
|
+
}, 1032, ["onClick", "disabled"])]))], 64)) : t.key === "index" ? (z(), A("div", tt, G(n._key + 1), 1)) : t.field ? (z(), O(Re, {
|
|
740
769
|
key: `${n._key}_${t.dataIndex}`,
|
|
741
770
|
field: t.field,
|
|
742
771
|
model: e.value[n._key],
|
|
743
772
|
validateInfos: o.value[n._key] || {},
|
|
744
773
|
options: e.field.form?.options || {},
|
|
745
774
|
context: e.context,
|
|
746
|
-
innerModel:
|
|
775
|
+
innerModel: ne.value[n._key],
|
|
747
776
|
globalInnerModel: e.globalInnerModel,
|
|
748
777
|
nestValidate: e.nestValidate,
|
|
749
778
|
baseKeyPath: [
|
|
@@ -769,21 +798,21 @@ var Qe = {
|
|
|
769
798
|
"is_form_design",
|
|
770
799
|
"has_reqrired",
|
|
771
800
|
"onUpdate_model"
|
|
772
|
-
])) :
|
|
801
|
+
])) : k("", !0)]),
|
|
773
802
|
_: 2
|
|
774
|
-
}, [
|
|
803
|
+
}, [S.value.length > 0 ? {
|
|
775
804
|
name: "summary",
|
|
776
|
-
fn: q(() => [
|
|
777
|
-
default: q(() => [
|
|
778
|
-
default: q(() => t[2] ||= [
|
|
805
|
+
fn: q(() => [P(c, null, {
|
|
806
|
+
default: q(() => [P(s, { index: 0 }, {
|
|
807
|
+
default: q(() => t[2] ||= [N("合计")]),
|
|
779
808
|
_: 1
|
|
780
|
-
}), (z(!0),
|
|
809
|
+
}), (z(!0), A(E, null, H(S.value, (e) => (z(), O(s, {
|
|
781
810
|
key: e.index,
|
|
782
811
|
index: e.index
|
|
783
812
|
}, {
|
|
784
|
-
default: q((e) => [
|
|
813
|
+
default: q((e) => [P(Ve, {
|
|
785
814
|
"summary-params": e,
|
|
786
|
-
tableDataSource:
|
|
815
|
+
tableDataSource: g.value
|
|
787
816
|
}, null, 8, ["summary-params", "tableDataSource"])]),
|
|
788
817
|
_: 2
|
|
789
818
|
}, 1032, ["index"]))), 128))]),
|
|
@@ -800,20 +829,20 @@ var Qe = {
|
|
|
800
829
|
}, 8, ["dynamic-title"]);
|
|
801
830
|
};
|
|
802
831
|
}
|
|
803
|
-
}), [["__scopeId", "data-v-
|
|
804
|
-
function
|
|
832
|
+
}), [["__scopeId", "data-v-8fe39450"]]), Z = /* @__PURE__ */ new Set();
|
|
833
|
+
function rt(e, t = []) {
|
|
805
834
|
return [...t, e.name || e.code || "field"].join("__");
|
|
806
835
|
}
|
|
807
|
-
function
|
|
836
|
+
function it(e) {
|
|
808
837
|
return Z.has(e);
|
|
809
838
|
}
|
|
810
|
-
function
|
|
839
|
+
function at(e) {
|
|
811
840
|
return e.some((e) => Z.has(e)) ? !1 : (e.forEach((e) => Z.add(e)), !0);
|
|
812
841
|
}
|
|
813
|
-
function
|
|
842
|
+
function ot(e) {
|
|
814
843
|
e.forEach((e) => Z.delete(e));
|
|
815
844
|
}
|
|
816
|
-
async function
|
|
845
|
+
async function st(e, t) {
|
|
817
846
|
let n = e.serialConfig || {};
|
|
818
847
|
try {
|
|
819
848
|
let e = await a({
|
|
@@ -821,13 +850,13 @@ async function ot(e, t) {
|
|
|
821
850
|
mode: n.mode || "M1",
|
|
822
851
|
kwargs: JSON.stringify(n),
|
|
823
852
|
count: t
|
|
824
|
-
}, "/approve/get_approve_serial_number", !1);
|
|
825
|
-
return
|
|
853
|
+
}, "/approve/get_approve_serial_number", !1), r = (Array.isArray(e) ? e : [e]).filter((e) => e != null && e !== "");
|
|
854
|
+
return r.length === t ? { codes: r } : { error: "流水号批量分配返回数量不符" };
|
|
826
855
|
} catch (e) {
|
|
827
856
|
return console.error(e), { error: e?.message || "流水号批量分配失败" };
|
|
828
857
|
}
|
|
829
858
|
}
|
|
830
|
-
async function
|
|
859
|
+
async function ct(e) {
|
|
831
860
|
try {
|
|
832
861
|
let t = e.serialConfig || {};
|
|
833
862
|
return { value: await a({
|
|
@@ -843,7 +872,7 @@ async function st(e) {
|
|
|
843
872
|
};
|
|
844
873
|
}
|
|
845
874
|
}
|
|
846
|
-
async function
|
|
875
|
+
async function lt(e) {
|
|
847
876
|
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;
|
|
848
877
|
if (t.watchType === "scoped") {
|
|
849
878
|
if (t.valueType === "single") {
|
|
@@ -874,7 +903,7 @@ async function ct(e) {
|
|
|
874
903
|
}
|
|
875
904
|
}
|
|
876
905
|
} else if (t.watchType === "context") {
|
|
877
|
-
let e =
|
|
906
|
+
let e = x(t.fieldName || "", s, ["formModel", ...l]);
|
|
878
907
|
if (t.valueType === "single") {
|
|
879
908
|
let r = e;
|
|
880
909
|
if (t.valueKey && (r = r?.[t.valueKey]), r === void 0 && n !== void 0) return { value: "" };
|
|
@@ -908,9 +937,9 @@ async function ct(e) {
|
|
|
908
937
|
else if (t.watchType === "serial") {
|
|
909
938
|
let e = t.serialConfig || {};
|
|
910
939
|
if (p && e.mode === "M5") return null;
|
|
911
|
-
if (f) return await
|
|
940
|
+
if (f) return await ct(t);
|
|
912
941
|
if (n != null && n !== "") return null;
|
|
913
|
-
let r =
|
|
942
|
+
let r = rt(t, l);
|
|
914
943
|
if (Z.has(r)) return null;
|
|
915
944
|
Z.add(r);
|
|
916
945
|
try {
|
|
@@ -933,16 +962,16 @@ async function ct(e) {
|
|
|
933
962
|
}
|
|
934
963
|
//#endregion
|
|
935
964
|
//#region src/components/FormRender/addonValue.ts
|
|
936
|
-
var
|
|
937
|
-
if (!
|
|
965
|
+
var ut = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, dt = (e, t) => t && e.endsWith(t) ? e.slice(0, -t.length) : e, ft = (e) => e != null && !(e instanceof Array) && typeof e != "object", pt = (e, t) => {
|
|
966
|
+
if (!ft(t)) return t;
|
|
938
967
|
let n = `${t}`;
|
|
939
|
-
return e?.extraAddonAfter && e?.addonAfter && (n =
|
|
940
|
-
},
|
|
941
|
-
let n =
|
|
942
|
-
if (!
|
|
968
|
+
return e?.extraAddonAfter && e?.addonAfter && (n = dt(n, e.addonAfter)), e?.extraAddonBefore && e?.addonBefore && (n = ut(n, e.addonBefore)), n;
|
|
969
|
+
}, mt = (e, t) => {
|
|
970
|
+
let n = pt(e, t);
|
|
971
|
+
if (!ft(n) || n === "") return n;
|
|
943
972
|
let r = `${n}`;
|
|
944
973
|
return e?.extraAddonBefore && e?.addonBefore && (r = `${e.addonBefore}${r}`), e?.extraAddonAfter && e?.addonAfter && (r = `${r}${e.addonAfter}`), r;
|
|
945
|
-
}, Q = i(),
|
|
974
|
+
}, Q = i(), ht = { class: "top_btn" }, gt = /*#__PURE__*/ n(/* @__PURE__ */ F({
|
|
946
975
|
__name: "FormTemplate",
|
|
947
976
|
props: {
|
|
948
977
|
field: {},
|
|
@@ -965,16 +994,16 @@ var lt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ut = (e, t) =>
|
|
|
965
994
|
},
|
|
966
995
|
emits: ["update:value"],
|
|
967
996
|
setup(e, { emit: t }) {
|
|
968
|
-
let n = e, r =
|
|
997
|
+
let n = e, r = pe("FORM_LOCK_STRUCTURE", V(!1)), i = D(() => !!n.lockStructure || !!ve(r)), a = t, o = V(0), s = Ae(), c = [{
|
|
969
998
|
label: "添加(add)",
|
|
970
999
|
value: "add"
|
|
971
1000
|
}, {
|
|
972
1001
|
label: "整体更新(update)",
|
|
973
1002
|
value: "update"
|
|
974
|
-
}], l =
|
|
1003
|
+
}], l = de(() => import("./ImportExcelModal-Dds857L2.js")), d = D(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("download"))), f = D(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("import"))), p = () => {
|
|
975
1004
|
Se.confirm({
|
|
976
1005
|
title: "确认清空吗?",
|
|
977
|
-
icon:
|
|
1006
|
+
icon: P(De),
|
|
978
1007
|
content: "清空后将无法恢复",
|
|
979
1008
|
okText: "确认",
|
|
980
1009
|
cancelText: "取消",
|
|
@@ -982,13 +1011,13 @@ var lt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ut = (e, t) =>
|
|
|
982
1011
|
a("update:value", []);
|
|
983
1012
|
}
|
|
984
1013
|
});
|
|
985
|
-
}, m =
|
|
1014
|
+
}, m = D(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("clear"))), h = D(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("add"))), g = {}, _ = {}, v = () => {
|
|
986
1015
|
let e = [], t = n.field.form?.dynamicFieldList || [];
|
|
987
1016
|
t.forEach((t) => {
|
|
988
1017
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
989
1018
|
if (t.is_table_hide_column || t.type === "dynamicvaluefield") return;
|
|
990
1019
|
let r = { ...t };
|
|
991
|
-
t?.name2 && (
|
|
1020
|
+
t?.name2 && (g[t.name] = t?.name2), t.type === "remoteselectpro" && (_[t.name] = t), [
|
|
992
1021
|
"select",
|
|
993
1022
|
"radio",
|
|
994
1023
|
"checkbox",
|
|
@@ -1008,8 +1037,8 @@ var lt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ut = (e, t) =>
|
|
|
1008
1037
|
e.forEach((e) => {
|
|
1009
1038
|
let r = (0, Q.cloneDeep)(n.field.form.model || {});
|
|
1010
1039
|
Object.keys(e).forEach((t) => {
|
|
1011
|
-
e[t].error && i.push(
|
|
1012
|
-
let n =
|
|
1040
|
+
e[t].error && i.push(fe("li", e[t].error + "(" + e[t].excel_position + ")")), r[t] = e[t].value, g[t] && (r[g[t]] = e[t].raw_value);
|
|
1041
|
+
let n = _[t];
|
|
1013
1042
|
if (n) {
|
|
1014
1043
|
let i = e[t].raw_value;
|
|
1015
1044
|
i != null && i !== "" && (n.mode === "default" || !n.mode) && (r[t + ".label"] = i);
|
|
@@ -1021,16 +1050,16 @@ var lt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ut = (e, t) =>
|
|
|
1021
1050
|
}), o.push(r);
|
|
1022
1051
|
}), i.length > 0 ? Se.warning({
|
|
1023
1052
|
title: "导入Excel报错, 请改正后再尝试导入",
|
|
1024
|
-
content:
|
|
1025
|
-
icon:
|
|
1053
|
+
content: fe("ol", i),
|
|
1054
|
+
icon: P(De)
|
|
1026
1055
|
}) : a("update:value", [...n.value || [], ...o]), r.open = !1;
|
|
1027
1056
|
},
|
|
1028
1057
|
onCancel: () => {
|
|
1029
1058
|
r.open = !1;
|
|
1030
1059
|
}
|
|
1031
1060
|
});
|
|
1032
|
-
|
|
1033
|
-
},
|
|
1061
|
+
b(r);
|
|
1062
|
+
}, y = V(!1), ee = (e) => {
|
|
1034
1063
|
if (n.field?.form?.rules) {
|
|
1035
1064
|
let t = n.field?.form?.rules[e];
|
|
1036
1065
|
if (t) {
|
|
@@ -1038,32 +1067,32 @@ var lt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ut = (e, t) =>
|
|
|
1038
1067
|
}
|
|
1039
1068
|
}
|
|
1040
1069
|
return !1;
|
|
1041
|
-
},
|
|
1042
|
-
|
|
1070
|
+
}, te = () => {
|
|
1071
|
+
y.value = !0;
|
|
1043
1072
|
let e = [], t = [];
|
|
1044
1073
|
(n.field.form?.dynamicFieldList || []).forEach((r) => {
|
|
1045
1074
|
r.children instanceof Array && r.children.forEach((r) => {
|
|
1046
|
-
r.is_hide || r.is_table_hide_column || r.type !== "dynamicvaluefield" && (e.push(
|
|
1075
|
+
r.is_hide || r.is_table_hide_column || r.type !== "dynamicvaluefield" && (e.push(ee(r.name) ? { title: [r.label, {
|
|
1047
1076
|
text: "[必填]",
|
|
1048
1077
|
color: "FFFF0000"
|
|
1049
1078
|
}] } : { title: [r.label] }), n.value && n.value.length > 0 ? t.push(n.value[0][r.name] ? n.value[0][r.name].toString() : "") : t.push(""));
|
|
1050
1079
|
});
|
|
1051
|
-
}),
|
|
1080
|
+
}), ne({
|
|
1052
1081
|
data: [t],
|
|
1053
1082
|
autoWidth: !0,
|
|
1054
1083
|
filename: n.field.label || "导入模板",
|
|
1055
1084
|
header: e
|
|
1056
1085
|
}), setTimeout(() => {
|
|
1057
|
-
|
|
1086
|
+
y.value = !1;
|
|
1058
1087
|
}, 1500);
|
|
1059
|
-
},
|
|
1088
|
+
}, x = D(() => n.field.min_count ?? 0), S = D(() => {
|
|
1060
1089
|
if (n.innerModel) {
|
|
1061
1090
|
n.innerModel[n.field.name] || (n.innerModel[n.field.name] = []);
|
|
1062
1091
|
for (let e = 0; e < n.value.length; e++) n.innerModel[n.field.name][e] || (n.innerModel[n.field.name][e] = {});
|
|
1063
1092
|
return n.innerModel[n.field.name];
|
|
1064
1093
|
}
|
|
1065
1094
|
return [];
|
|
1066
|
-
}),
|
|
1095
|
+
}), re = async (e) => {
|
|
1067
1096
|
if (e.code) {
|
|
1068
1097
|
let t;
|
|
1069
1098
|
try {
|
|
@@ -1092,16 +1121,30 @@ var lt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ut = (e, t) =>
|
|
|
1092
1121
|
a("update:value", e);
|
|
1093
1122
|
}
|
|
1094
1123
|
}
|
|
1095
|
-
},
|
|
1124
|
+
}, ie = () => {
|
|
1096
1125
|
let e = n.value || [];
|
|
1097
1126
|
e.push((0, Q.cloneDeep)(n.field.form.model || {})), a("update:value", e);
|
|
1098
|
-
},
|
|
1127
|
+
}, ae = (e) => {
|
|
1099
1128
|
let t = n.value || [];
|
|
1100
1129
|
t.splice(e, 1), a("update:value", t);
|
|
1101
|
-
},
|
|
1130
|
+
}, oe = (e) => {
|
|
1131
|
+
let t = n.value || [], r = t[e];
|
|
1132
|
+
if (!r || n.field.max_count && t.length >= n.field.max_count) return;
|
|
1133
|
+
let i = (0, Q.cloneDeep)(r);
|
|
1134
|
+
for (let e of T.value) e.watchType === "serial" && delete i[e.name];
|
|
1135
|
+
t.splice(e + 1, 0, i);
|
|
1136
|
+
let o = /* @__PURE__ */ new Set();
|
|
1137
|
+
for (let e of [n.innerModel, n.globalInnerModel]) {
|
|
1138
|
+
let t = e?.[n.field.name];
|
|
1139
|
+
t instanceof Array && o.add(t);
|
|
1140
|
+
}
|
|
1141
|
+
o.forEach((t) => {
|
|
1142
|
+
t.splice(e + 1, 0, (0, Q.cloneDeep)(t[e] || {}));
|
|
1143
|
+
}), a("update:value", t);
|
|
1144
|
+
}, w = (0, Q.debounce)(() => {
|
|
1102
1145
|
o.value = window.innerHeight - 165;
|
|
1103
|
-
}, 200),
|
|
1104
|
-
|
|
1146
|
+
}, 200), se = () => {
|
|
1147
|
+
b(B({
|
|
1105
1148
|
open: !0,
|
|
1106
1149
|
loading: !1,
|
|
1107
1150
|
component: "InnerFormDesignModal",
|
|
@@ -1121,36 +1164,36 @@ var lt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ut = (e, t) =>
|
|
|
1121
1164
|
}));
|
|
1122
1165
|
};
|
|
1123
1166
|
K(() => n.value, (e) => {
|
|
1124
|
-
if (!(e instanceof Array) || e.length <
|
|
1167
|
+
if (!(e instanceof Array) || e.length < x.value) {
|
|
1125
1168
|
let t = [...e || []];
|
|
1126
|
-
for (; t.length <
|
|
1169
|
+
for (; t.length < x.value;) t.push((0, Q.cloneDeep)(n.field.form.model || {}));
|
|
1127
1170
|
a("update:value", t);
|
|
1128
1171
|
}
|
|
1129
1172
|
});
|
|
1130
|
-
let
|
|
1173
|
+
let T = D(() => {
|
|
1131
1174
|
let e = [];
|
|
1132
1175
|
return (n.field?.form?.dynamicFieldList || []).forEach((t) => {
|
|
1133
1176
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
1134
1177
|
t.type === "dynamicvaluefield" && e.push(t);
|
|
1135
1178
|
});
|
|
1136
1179
|
}), e;
|
|
1137
|
-
}),
|
|
1180
|
+
}), ce = D(() => {
|
|
1138
1181
|
let e = [];
|
|
1139
1182
|
return (n.field?.form?.dynamicFieldList || []).forEach((t) => {
|
|
1140
1183
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
1141
1184
|
(t.extraAddonBefore && t.addonBefore || t.extraAddonAfter && t.addonAfter) && e.push(t);
|
|
1142
1185
|
});
|
|
1143
1186
|
}), e;
|
|
1144
|
-
}),
|
|
1145
|
-
|
|
1187
|
+
}), le = V(!1), ue = D(() => 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))), M = V(!1), F = () => {
|
|
1188
|
+
M.value = !1, I(), L();
|
|
1146
1189
|
}, I = (0, Q.debounce)(async () => {
|
|
1147
|
-
if (!
|
|
1148
|
-
|
|
1190
|
+
if (!le.value && !M.value) {
|
|
1191
|
+
le.value = !0;
|
|
1149
1192
|
try {
|
|
1150
1193
|
let e = n.value;
|
|
1151
|
-
if (!e || e.length === 0 ||
|
|
1194
|
+
if (!e || e.length === 0 || T.value.length === 0) return;
|
|
1152
1195
|
let t = !1, r = [...e];
|
|
1153
|
-
for (let e of
|
|
1196
|
+
for (let e of T.value) {
|
|
1154
1197
|
if (e.watchType !== "serial" || i.value && e.serialConfig?.mode === "M5") continue;
|
|
1155
1198
|
let a = [];
|
|
1156
1199
|
for (let t = 0; t < r.length; t++) {
|
|
@@ -1159,7 +1202,7 @@ var lt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ut = (e, t) =>
|
|
|
1159
1202
|
}
|
|
1160
1203
|
if (a.length === 0) continue;
|
|
1161
1204
|
if (n.is_form_design) {
|
|
1162
|
-
let o = await
|
|
1205
|
+
let o = await lt({
|
|
1163
1206
|
field: e,
|
|
1164
1207
|
currentValue: void 0,
|
|
1165
1208
|
innerModel: null,
|
|
@@ -1179,12 +1222,12 @@ var lt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ut = (e, t) =>
|
|
|
1179
1222
|
}
|
|
1180
1223
|
let o = [...n.baseKeyPath || [], n.field.name], s = a.map((t) => ({
|
|
1181
1224
|
row: t,
|
|
1182
|
-
key:
|
|
1183
|
-
})).filter((e) => !
|
|
1225
|
+
key: rt(e, [...o, t])
|
|
1226
|
+
})).filter((e) => !it(e.key));
|
|
1184
1227
|
if (s.length === 0) continue;
|
|
1185
1228
|
let c = s.map((e) => e.key);
|
|
1186
|
-
if (
|
|
1187
|
-
let { codes: n, error: i } = await
|
|
1229
|
+
if (at(c)) try {
|
|
1230
|
+
let { codes: n, error: i } = await st(e, s.length);
|
|
1188
1231
|
i || !n ? console.error("流水号批量分配失败:", i) : s.forEach((i, a) => {
|
|
1189
1232
|
r[i.row] = {
|
|
1190
1233
|
...r[i.row],
|
|
@@ -1192,18 +1235,18 @@ var lt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ut = (e, t) =>
|
|
|
1192
1235
|
}, t = !0;
|
|
1193
1236
|
});
|
|
1194
1237
|
} finally {
|
|
1195
|
-
|
|
1238
|
+
ot(c);
|
|
1196
1239
|
}
|
|
1197
1240
|
}
|
|
1198
1241
|
for (let e = 0; e < r.length; e++) {
|
|
1199
|
-
let a =
|
|
1242
|
+
let a = S.value[e], o = [
|
|
1200
1243
|
...n.baseKeyPath || [],
|
|
1201
1244
|
n.field.name,
|
|
1202
1245
|
e
|
|
1203
1246
|
];
|
|
1204
|
-
for (let s of
|
|
1247
|
+
for (let s of T.value) {
|
|
1205
1248
|
if (s.watchType === "serial") continue;
|
|
1206
|
-
let c = r[e]?.[s.name], l = await
|
|
1249
|
+
let c = r[e]?.[s.name], l = await lt({
|
|
1207
1250
|
field: s,
|
|
1208
1251
|
currentValue: c,
|
|
1209
1252
|
innerModel: a,
|
|
@@ -1223,19 +1266,19 @@ var lt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ut = (e, t) =>
|
|
|
1223
1266
|
}
|
|
1224
1267
|
t && a("update:value", r);
|
|
1225
1268
|
} finally {
|
|
1226
|
-
|
|
1269
|
+
le.value = !1;
|
|
1227
1270
|
}
|
|
1228
1271
|
}
|
|
1229
1272
|
}, 200), L = (0, Q.debounce)(() => {
|
|
1230
1273
|
let e = n.value;
|
|
1231
|
-
if (!e || e.length === 0 ||
|
|
1274
|
+
if (!e || e.length === 0 || ce.value.length === 0) return;
|
|
1232
1275
|
let t = !1, r = [...e];
|
|
1233
1276
|
for (let e = 0; e < r.length; e++) {
|
|
1234
1277
|
let n = r[e];
|
|
1235
1278
|
if (!n || typeof n != "object") continue;
|
|
1236
1279
|
let i = n;
|
|
1237
|
-
for (let e of
|
|
1238
|
-
let r = i[e.name], a =
|
|
1280
|
+
for (let e of ce.value) {
|
|
1281
|
+
let r = i[e.name], a = mt(e, r);
|
|
1239
1282
|
a !== r && (i === n && (i = { ...n }), i[e.name] = a, t = !0);
|
|
1240
1283
|
}
|
|
1241
1284
|
r[e] = i;
|
|
@@ -1247,74 +1290,74 @@ var lt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ut = (e, t) =>
|
|
|
1247
1290
|
n.context,
|
|
1248
1291
|
n.field
|
|
1249
1292
|
], () => {
|
|
1250
|
-
|
|
1293
|
+
ue.value ? M.value = !0 : M.value = !1, I(), L();
|
|
1251
1294
|
}, {
|
|
1252
1295
|
deep: !0,
|
|
1253
1296
|
immediate: !0
|
|
1254
1297
|
}), K(() => [n.innerModel, n.globalInnerModel], () => {
|
|
1255
1298
|
I(), L();
|
|
1256
1299
|
}, { deep: !0 }), R(() => {
|
|
1257
|
-
if (window.addEventListener("resize",
|
|
1300
|
+
if (window.addEventListener("resize", w), w(), !(n.value instanceof Array) || n.value.length < x.value) {
|
|
1258
1301
|
let e = [...n.value || []];
|
|
1259
|
-
for (; e.length <
|
|
1302
|
+
for (; e.length < x.value;) e.push((0, Q.cloneDeep)(n.field.form.model || {}));
|
|
1260
1303
|
a("update:value", e);
|
|
1261
1304
|
}
|
|
1262
1305
|
}), ge(() => {
|
|
1263
|
-
window.removeEventListener("resize",
|
|
1306
|
+
window.removeEventListener("resize", w), w.cancel(), I.cancel(), L.cancel();
|
|
1264
1307
|
}), (e, t) => {
|
|
1265
1308
|
let n = U("a-button");
|
|
1266
|
-
return z(),
|
|
1267
|
-
e.is_form_design ? (z(),
|
|
1309
|
+
return z(), A(E, null, [j("div", ht, [
|
|
1310
|
+
e.is_form_design ? (z(), O(n, {
|
|
1268
1311
|
key: 0,
|
|
1269
1312
|
type: "primary",
|
|
1270
1313
|
size: "small",
|
|
1271
|
-
onClick:
|
|
1314
|
+
onClick: se,
|
|
1272
1315
|
ghost: !0
|
|
1273
1316
|
}, {
|
|
1274
|
-
default: q(() => t[0] ||= [
|
|
1317
|
+
default: q(() => t[0] ||= [N(" 编辑表单 ")]),
|
|
1275
1318
|
_: 1
|
|
1276
|
-
})) :
|
|
1277
|
-
m.value && !i.value ? (z(),
|
|
1319
|
+
})) : k("", !0),
|
|
1320
|
+
m.value && !i.value ? (z(), O(n, {
|
|
1278
1321
|
key: 1,
|
|
1279
1322
|
size: "small",
|
|
1280
1323
|
type: "primary",
|
|
1281
1324
|
onClick: p,
|
|
1282
1325
|
danger: !0
|
|
1283
1326
|
}, {
|
|
1284
|
-
default: q(() => t[1] ||= [
|
|
1327
|
+
default: q(() => t[1] ||= [N(" 清空 ")]),
|
|
1285
1328
|
_: 1
|
|
1286
|
-
})) :
|
|
1287
|
-
d.value && !i.value ? (z(),
|
|
1329
|
+
})) : k("", !0),
|
|
1330
|
+
d.value && !i.value ? (z(), O(n, {
|
|
1288
1331
|
key: 2,
|
|
1289
1332
|
size: "small",
|
|
1290
1333
|
type: "primary",
|
|
1291
|
-
loading:
|
|
1292
|
-
onClick:
|
|
1334
|
+
loading: y.value,
|
|
1335
|
+
onClick: te
|
|
1293
1336
|
}, {
|
|
1294
|
-
default: q(() => t[2] ||= [
|
|
1337
|
+
default: q(() => t[2] ||= [N(" 下载导入模版 ")]),
|
|
1295
1338
|
_: 1
|
|
1296
|
-
}, 8, ["loading"])) :
|
|
1297
|
-
f.value && !i.value ? (z(),
|
|
1339
|
+
}, 8, ["loading"])) : k("", !0),
|
|
1340
|
+
f.value && !i.value ? (z(), O(n, {
|
|
1298
1341
|
key: 3,
|
|
1299
1342
|
size: "small",
|
|
1300
1343
|
type: "primary",
|
|
1301
|
-
onClick:
|
|
1344
|
+
onClick: v
|
|
1302
1345
|
}, {
|
|
1303
|
-
default: q(() => t[3] ||= [
|
|
1346
|
+
default: q(() => t[3] ||= [N(" 导入Excel数据 ")]),
|
|
1304
1347
|
_: 1
|
|
1305
|
-
})) :
|
|
1306
|
-
|
|
1348
|
+
})) : k("", !0),
|
|
1349
|
+
h.value && (!e.field.custom_btn_list?.length || e.field.max_count !== x.value) && !i.value ? (z(), O(n, {
|
|
1307
1350
|
key: 4,
|
|
1308
1351
|
type: "primary",
|
|
1309
1352
|
size: "small",
|
|
1310
|
-
onClick:
|
|
1353
|
+
onClick: ie,
|
|
1311
1354
|
disabled: e.field.max_count && e.value.length >= e.field.max_count
|
|
1312
1355
|
}, {
|
|
1313
|
-
icon: q(() => [
|
|
1314
|
-
default: q(() => [
|
|
1356
|
+
icon: q(() => [P(ve(Oe))]),
|
|
1357
|
+
default: q(() => [N(" " + G(e.field.btn_title || "添加"), 1)]),
|
|
1315
1358
|
_: 1
|
|
1316
|
-
}, 8, ["disabled"])) :
|
|
1317
|
-
(z(!0),
|
|
1359
|
+
}, 8, ["disabled"])) : k("", !0),
|
|
1360
|
+
(z(!0), A(E, null, H(e.field.custom_btn_list, (t) => (z(), O(C, {
|
|
1318
1361
|
action_code_id: t.action_code_id,
|
|
1319
1362
|
code: t.code,
|
|
1320
1363
|
"onUpdate:code": (e) => t.code = e,
|
|
@@ -1322,22 +1365,22 @@ var lt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ut = (e, t) =>
|
|
|
1322
1365
|
"onUpdate:action": (e) => t.action = e,
|
|
1323
1366
|
options: c
|
|
1324
1367
|
}, {
|
|
1325
|
-
default: q(() => [!i.value || t.show_on_modify ? (z(),
|
|
1368
|
+
default: q(() => [!i.value || t.show_on_modify ? (z(), O(n, {
|
|
1326
1369
|
key: 0,
|
|
1327
1370
|
size: "small",
|
|
1328
1371
|
type: t.type,
|
|
1329
1372
|
danger: t.danger,
|
|
1330
|
-
onClick: (e) =>
|
|
1373
|
+
onClick: (e) => re(t),
|
|
1331
1374
|
disabled: e.field.max_count && e.value.length >= e.field.max_count && t.action === "add"
|
|
1332
1375
|
}, {
|
|
1333
|
-
default: q(() => [
|
|
1376
|
+
default: q(() => [N(G(t.label), 1)]),
|
|
1334
1377
|
_: 2
|
|
1335
1378
|
}, 1032, [
|
|
1336
1379
|
"type",
|
|
1337
1380
|
"danger",
|
|
1338
1381
|
"onClick",
|
|
1339
1382
|
"disabled"
|
|
1340
|
-
])) :
|
|
1383
|
+
])) : k("", !0)]),
|
|
1341
1384
|
_: 2
|
|
1342
1385
|
}, 1032, [
|
|
1343
1386
|
"action_code_id",
|
|
@@ -1346,7 +1389,7 @@ var lt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ut = (e, t) =>
|
|
|
1346
1389
|
"action",
|
|
1347
1390
|
"onUpdate:action"
|
|
1348
1391
|
]))), 256))
|
|
1349
|
-
]), e.field.showType === "table" ? (z(),
|
|
1392
|
+
]), e.field.showType === "table" ? (z(), O(nt, {
|
|
1350
1393
|
key: 0,
|
|
1351
1394
|
value: e.value,
|
|
1352
1395
|
field: e.field,
|
|
@@ -1357,11 +1400,12 @@ var lt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ut = (e, t) =>
|
|
|
1357
1400
|
nestValidate: e.nestValidate,
|
|
1358
1401
|
"base-key-path": e.baseKeyPath,
|
|
1359
1402
|
"worker-host-functions": e.workerHostFunctions,
|
|
1360
|
-
min_count:
|
|
1403
|
+
min_count: x.value,
|
|
1361
1404
|
"lock-structure": i.value,
|
|
1362
1405
|
formModel: e.formModel,
|
|
1363
|
-
onRemove:
|
|
1364
|
-
|
|
1406
|
+
onRemove: ae,
|
|
1407
|
+
onCopy: oe,
|
|
1408
|
+
onLabels_resolved: F
|
|
1365
1409
|
}, null, 8, [
|
|
1366
1410
|
"value",
|
|
1367
1411
|
"field",
|
|
@@ -1375,7 +1419,7 @@ var lt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ut = (e, t) =>
|
|
|
1375
1419
|
"min_count",
|
|
1376
1420
|
"lock-structure",
|
|
1377
1421
|
"formModel"
|
|
1378
|
-
])) : (z(!0),
|
|
1422
|
+
])) : (z(!0), A(E, { key: 1 }, H(e.value, (t, n) => (z(), O(Ie, {
|
|
1379
1423
|
form: e.field.form,
|
|
1380
1424
|
field: e.field,
|
|
1381
1425
|
value: e.value[n],
|
|
@@ -1383,16 +1427,17 @@ var lt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ut = (e, t) =>
|
|
|
1383
1427
|
options: e.field.form?.options,
|
|
1384
1428
|
alwaysShowGroup: e.alwaysShowGroup,
|
|
1385
1429
|
is_form_design: e.is_form_design,
|
|
1386
|
-
"inner-model":
|
|
1430
|
+
"inner-model": S.value[n],
|
|
1387
1431
|
"global-inner-model": e.globalInnerModel,
|
|
1388
1432
|
modalTypeList: e.modalTypeList,
|
|
1389
1433
|
modalType: e.modalType,
|
|
1390
1434
|
nestValidate: e.nestValidate,
|
|
1391
|
-
min_count:
|
|
1435
|
+
min_count: x.value,
|
|
1392
1436
|
listLength: e.value.length,
|
|
1393
1437
|
context: e.context,
|
|
1394
1438
|
"lock-structure": i.value,
|
|
1395
|
-
onRemove: (e) =>
|
|
1439
|
+
onRemove: (e) => ae(n),
|
|
1440
|
+
onCopy: (e) => oe(n),
|
|
1396
1441
|
"base-key-path": [
|
|
1397
1442
|
...e.baseKeyPath,
|
|
1398
1443
|
e.field.name,
|
|
@@ -1417,15 +1462,16 @@ var lt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ut = (e, t) =>
|
|
|
1417
1462
|
"context",
|
|
1418
1463
|
"lock-structure",
|
|
1419
1464
|
"onRemove",
|
|
1465
|
+
"onCopy",
|
|
1420
1466
|
"base-key-path",
|
|
1421
1467
|
"worker-host-functions"
|
|
1422
1468
|
]))), 256))], 64);
|
|
1423
1469
|
};
|
|
1424
1470
|
}
|
|
1425
|
-
}), [["__scopeId", "data-v-
|
|
1471
|
+
}), [["__scopeId", "data-v-35d5d64d"]]), _t = {
|
|
1426
1472
|
key: 0,
|
|
1427
1473
|
class: "error-msg"
|
|
1428
|
-
},
|
|
1474
|
+
}, vt = /*#__PURE__*/ n(/* @__PURE__ */ F({
|
|
1429
1475
|
name: "DynamicValueField",
|
|
1430
1476
|
__name: "DynamicValueField",
|
|
1431
1477
|
props: {
|
|
@@ -1465,8 +1511,8 @@ var lt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ut = (e, t) =>
|
|
|
1465
1511
|
},
|
|
1466
1512
|
emits: ["update:value"],
|
|
1467
1513
|
setup(e, { emit: t }) {
|
|
1468
|
-
let n = e, r = t, i =
|
|
1469
|
-
let u = await
|
|
1514
|
+
let n = e, r = t, i = pe("FORM_LOCK_STRUCTURE", V(!1)), a = D(() => !!ve(i)), o = V(null), s = V(n.value || ""), c = D(() => n.is_form_design ? s.value : n.value), l = (0, Q.debounce)(async (e, t, i, l) => {
|
|
1515
|
+
let u = await lt({
|
|
1470
1516
|
field: i,
|
|
1471
1517
|
currentValue: c.value,
|
|
1472
1518
|
innerModel: e,
|
|
@@ -1493,23 +1539,23 @@ var lt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ut = (e, t) =>
|
|
|
1493
1539
|
deep: !0
|
|
1494
1540
|
}), (t, n) => {
|
|
1495
1541
|
let r = U("a-input");
|
|
1496
|
-
return z(),
|
|
1542
|
+
return z(), A(E, null, [P(C, {
|
|
1497
1543
|
"value-code": e.field,
|
|
1498
1544
|
"show-debug-code": e.field.watchType === "code"
|
|
1499
1545
|
}, {
|
|
1500
|
-
default: q(() => [
|
|
1546
|
+
default: q(() => [P(r, {
|
|
1501
1547
|
value: c.value,
|
|
1502
1548
|
readonly: "",
|
|
1503
1549
|
size: "small",
|
|
1504
1550
|
style: { "background-color": "#f5f5f5" }
|
|
1505
1551
|
}, null, 8, ["value"])]),
|
|
1506
1552
|
_: 1
|
|
1507
|
-
}, 8, ["value-code", "show-debug-code"]), o.value ? (z(),
|
|
1553
|
+
}, 8, ["value-code", "show-debug-code"]), o.value ? (z(), A("span", _t, G(o.value), 1)) : k("", !0)], 64);
|
|
1508
1554
|
};
|
|
1509
1555
|
}
|
|
1510
|
-
}), [["__scopeId", "data-v-b40513b5"]]),
|
|
1556
|
+
}), [["__scopeId", "data-v-b40513b5"]]), yt = F({
|
|
1511
1557
|
name: "FormButton",
|
|
1512
|
-
components: { debugCode:
|
|
1558
|
+
components: { debugCode: C },
|
|
1513
1559
|
props: {
|
|
1514
1560
|
field: {
|
|
1515
1561
|
type: Object,
|
|
@@ -1575,21 +1621,21 @@ var lt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ut = (e, t) =>
|
|
|
1575
1621
|
});
|
|
1576
1622
|
//#endregion
|
|
1577
1623
|
//#region src/components/FormRender/FormButton/FormButton.vue
|
|
1578
|
-
function
|
|
1624
|
+
function bt(e, t, n, r, i, a) {
|
|
1579
1625
|
let o = U("a-button"), s = U("debug-code");
|
|
1580
|
-
return z(),
|
|
1626
|
+
return z(), O(s, {
|
|
1581
1627
|
action_code_id: e.field.action_code_id,
|
|
1582
1628
|
code: e.field.code,
|
|
1583
1629
|
"onUpdate:code": t[0] ||= (t) => e.field.code = t
|
|
1584
1630
|
}, {
|
|
1585
|
-
default: q(() => [
|
|
1631
|
+
default: q(() => [P(o, {
|
|
1586
1632
|
danger: e.field.danger,
|
|
1587
1633
|
type: e.field.btn_type,
|
|
1588
1634
|
disabled: e.field.disabled,
|
|
1589
1635
|
size: "small",
|
|
1590
1636
|
onClick: e.handlClick
|
|
1591
1637
|
}, {
|
|
1592
|
-
default: q(() => [
|
|
1638
|
+
default: q(() => [N(G(e.field.label), 1)]),
|
|
1593
1639
|
_: 1
|
|
1594
1640
|
}, 8, [
|
|
1595
1641
|
"danger",
|
|
@@ -1600,7 +1646,7 @@ function yt(e, t, n, r, i, a) {
|
|
|
1600
1646
|
_: 1
|
|
1601
1647
|
}, 8, ["action_code_id", "code"]);
|
|
1602
1648
|
}
|
|
1603
|
-
var
|
|
1649
|
+
var xt = /*#__PURE__*/ n(yt, [["render", bt]]), St = F({
|
|
1604
1650
|
name: "InputNumberPro",
|
|
1605
1651
|
props: {
|
|
1606
1652
|
field: {
|
|
@@ -1617,18 +1663,18 @@ var bt = /*#__PURE__*/ n(vt, [["render", yt]]), xt = I({
|
|
|
1617
1663
|
setup(e, { emit: t }) {
|
|
1618
1664
|
return {
|
|
1619
1665
|
update: (n) => {
|
|
1620
|
-
t("update:value",
|
|
1666
|
+
t("update:value", mt(e.field, n));
|
|
1621
1667
|
},
|
|
1622
|
-
innerValue:
|
|
1623
|
-
let t =
|
|
1668
|
+
innerValue: D(() => {
|
|
1669
|
+
let t = pt(e.field, e.value);
|
|
1624
1670
|
return typeof t == "string" && (t = parseFloat(t), isNaN(t) && (t = null)), t;
|
|
1625
1671
|
})
|
|
1626
1672
|
};
|
|
1627
1673
|
}
|
|
1628
|
-
}),
|
|
1629
|
-
function
|
|
1674
|
+
}), Ct = { key: 0 }, wt = { key: 0 }, Tt = { key: 0 };
|
|
1675
|
+
function Et(e, t, n, r, i, a) {
|
|
1630
1676
|
let o = U("a-input-number");
|
|
1631
|
-
return z(),
|
|
1677
|
+
return z(), O(o, {
|
|
1632
1678
|
value: e.innerValue,
|
|
1633
1679
|
autocomplete: e.field.autocomplete == null ? "off" : e.field.autocomplete,
|
|
1634
1680
|
"default-value": e.field.defaultValue,
|
|
@@ -1641,20 +1687,20 @@ function Tt(e, t, n, r, i, a) {
|
|
|
1641
1687
|
step: e.field.step,
|
|
1642
1688
|
size: "small",
|
|
1643
1689
|
"onUpdate:value": e.update
|
|
1644
|
-
},
|
|
1690
|
+
}, M({ _: 2 }, [
|
|
1645
1691
|
e.field?.prefix || e.field?.prefixIcon ? {
|
|
1646
1692
|
name: "prefix",
|
|
1647
|
-
fn: q(() => [e.field?.prefix ? (z(),
|
|
1693
|
+
fn: q(() => [e.field?.prefix ? (z(), A("span", Ct, G(e.field.prefix), 1)) : k("", !0), e.field?.prefixIcon ? (z(), O(W(e.field?.prefixIcon), { key: 1 })) : k("", !0)]),
|
|
1648
1694
|
key: "0"
|
|
1649
1695
|
} : void 0,
|
|
1650
1696
|
e.field?.addonBefore || e.field?.addonBeforeIcon ? {
|
|
1651
1697
|
name: "addonBefore",
|
|
1652
|
-
fn: q(() => [e.field?.addonBefore ? (z(),
|
|
1698
|
+
fn: q(() => [e.field?.addonBefore ? (z(), A("span", wt, G(e.field.addonBefore), 1)) : k("", !0), e.field?.addonBeforeIcon ? (z(), O(W(e.field?.addonBeforeIcon), { key: 1 })) : k("", !0)]),
|
|
1653
1699
|
key: "1"
|
|
1654
1700
|
} : void 0,
|
|
1655
1701
|
e.field?.addonAfter || e.field?.addonAfterIcon ? {
|
|
1656
1702
|
name: "addonAfter",
|
|
1657
|
-
fn: q(() => [e.field?.addonAfter ? (z(),
|
|
1703
|
+
fn: q(() => [e.field?.addonAfter ? (z(), A("span", Tt, G(e.field.addonAfter), 1)) : k("", !0), e.field?.addonAfterIcon ? (z(), O(W(e.field?.addonAfterIcon), { key: 1 })) : k("", !0)]),
|
|
1658
1704
|
key: "2"
|
|
1659
1705
|
} : void 0
|
|
1660
1706
|
]), 1032, [
|
|
@@ -1671,9 +1717,9 @@ function Tt(e, t, n, r, i, a) {
|
|
|
1671
1717
|
"onUpdate:value"
|
|
1672
1718
|
]);
|
|
1673
1719
|
}
|
|
1674
|
-
var
|
|
1720
|
+
var Dt = /*#__PURE__*/ n(St, [["render", Et], ["__scopeId", "data-v-f97da831"]]), Ot = { key: 0 }, kt = { key: 0 }, At = { key: 0 }, jt = { key: 0 }, Mt = /*#__PURE__*/ n(/* @__PURE__ */ F({
|
|
1675
1721
|
__name: "InputPro",
|
|
1676
|
-
props: /*@__PURE__*/
|
|
1722
|
+
props: /*@__PURE__*/ I({ field: {
|
|
1677
1723
|
type: Object,
|
|
1678
1724
|
required: !0
|
|
1679
1725
|
} }, {
|
|
@@ -1682,17 +1728,17 @@ var Et = /*#__PURE__*/ n(xt, [["render", Tt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1682
1728
|
}),
|
|
1683
1729
|
emits: ["update:value"],
|
|
1684
1730
|
setup(e) {
|
|
1685
|
-
let t = ye(e, "value"), n = e, r =
|
|
1686
|
-
get: () =>
|
|
1731
|
+
let t = ye(e, "value"), n = e, r = D({
|
|
1732
|
+
get: () => pt(n.field, t.value),
|
|
1687
1733
|
set: (e) => {
|
|
1688
|
-
t.value =
|
|
1734
|
+
t.value = mt(n.field, e);
|
|
1689
1735
|
}
|
|
1690
1736
|
}), i = (e) => {
|
|
1691
1737
|
r.value = e;
|
|
1692
1738
|
};
|
|
1693
1739
|
return (t, n) => {
|
|
1694
1740
|
let a = U("a-input");
|
|
1695
|
-
return z(),
|
|
1741
|
+
return z(), O(a, {
|
|
1696
1742
|
value: r.value,
|
|
1697
1743
|
"onUpdate:value": [n[0] ||= (e) => r.value = e, i],
|
|
1698
1744
|
"allow-clear": e.field.allowClear == null ? !0 : e.field.allowClear,
|
|
@@ -1703,25 +1749,25 @@ var Et = /*#__PURE__*/ n(xt, [["render", Tt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1703
1749
|
placeholder: e.field.placeholder ? e.field.placeholder : t.$t("请输入") + e.field.label,
|
|
1704
1750
|
type: e.field.inputType ? e.field.inputType : "text",
|
|
1705
1751
|
size: "small"
|
|
1706
|
-
},
|
|
1752
|
+
}, M({ _: 2 }, [
|
|
1707
1753
|
e.field?.prefix || e.field?.prefixIcon ? {
|
|
1708
1754
|
name: "prefix",
|
|
1709
|
-
fn: q(() => [e.field?.prefix ? (z(),
|
|
1755
|
+
fn: q(() => [e.field?.prefix ? (z(), A("span", Ot, G(e.field.prefix), 1)) : k("", !0), e.field?.prefixIcon ? (z(), O(W(e.field?.prefixIcon), { key: 1 })) : k("", !0)]),
|
|
1710
1756
|
key: "0"
|
|
1711
1757
|
} : void 0,
|
|
1712
1758
|
e.field?.suffix || e.field?.suffixIcon ? {
|
|
1713
1759
|
name: "suffix",
|
|
1714
|
-
fn: q(() => [e.field?.suffix ? (z(),
|
|
1760
|
+
fn: q(() => [e.field?.suffix ? (z(), A("span", kt, G(e.field.suffix), 1)) : k("", !0), e.field?.suffixIcon ? (z(), O(W(e.field?.suffixIcon), { key: 1 })) : k("", !0)]),
|
|
1715
1761
|
key: "1"
|
|
1716
1762
|
} : void 0,
|
|
1717
1763
|
e.field?.addonBefore || e.field?.addonBeforeIcon ? {
|
|
1718
1764
|
name: "addonBefore",
|
|
1719
|
-
fn: q(() => [e.field?.addonBefore ? (z(),
|
|
1765
|
+
fn: q(() => [e.field?.addonBefore ? (z(), A("span", At, G(e.field.addonBefore), 1)) : k("", !0), e.field?.addonBeforeIcon ? (z(), O(W(e.field?.addonBeforeIcon), { key: 1 })) : k("", !0)]),
|
|
1720
1766
|
key: "2"
|
|
1721
1767
|
} : void 0,
|
|
1722
1768
|
e.field?.addonAfter || e.field?.addonAfterIcon ? {
|
|
1723
1769
|
name: "addonAfter",
|
|
1724
|
-
fn: q(() => [e.field?.addonAfter ? (z(),
|
|
1770
|
+
fn: q(() => [e.field?.addonAfter ? (z(), A("span", jt, G(e.field.addonAfter), 1)) : k("", !0), e.field?.addonAfterIcon ? (z(), O(W(e.field?.addonAfterIcon), { key: 1 })) : k("", !0)]),
|
|
1725
1771
|
key: "3"
|
|
1726
1772
|
} : void 0
|
|
1727
1773
|
]), 1032, [
|
|
@@ -1736,9 +1782,9 @@ var Et = /*#__PURE__*/ n(xt, [["render", Tt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1736
1782
|
]);
|
|
1737
1783
|
};
|
|
1738
1784
|
}
|
|
1739
|
-
}), [["__scopeId", "data-v-d9fd59f5"]]), $ = (e, t = "YYYY-MM-DD") => J(e, t, !0).isValid(),
|
|
1785
|
+
}), [["__scopeId", "data-v-d9fd59f5"]]), $ = (e, t = "YYYY-MM-DD") => J(e, t, !0).isValid(), Nt = (e, t = "YYYY-MM-DD HH:mm:ss") => J(e, t, !0).isValid(), Pt = (e, t = "HH:mm:ss") => J(e, t, !0).isValid(), Ft = F({
|
|
1740
1786
|
name: "FieldRender2",
|
|
1741
|
-
methods: { isArray:
|
|
1787
|
+
methods: { isArray: Ee },
|
|
1742
1788
|
props: {
|
|
1743
1789
|
field: {
|
|
1744
1790
|
type: Object,
|
|
@@ -1845,19 +1891,19 @@ var Et = /*#__PURE__*/ n(xt, [["render", Tt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1845
1891
|
})) : n = s(e) && typeof e == "number" ? e.toString() : e : t == "date" ? s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1846
1892
|
$(e) && typeof e == "string" ? n.push(J(e, "YYYY-MM-DD")) : n.push(e);
|
|
1847
1893
|
})) : n = $(e) && typeof e == "string" ? e.toString() : e : t == "datetime" ? s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1848
|
-
|
|
1849
|
-
})) : n =
|
|
1850
|
-
|
|
1851
|
-
})) : n =
|
|
1894
|
+
Nt(e) && typeof e == "string" ? n.push(J(e, "YYYY-MM-DD HH:mm:ss")) : n.push(e);
|
|
1895
|
+
})) : n = Nt(e) && typeof e == "string" ? J(e, "YYYY-MM-DD HH:mm:ss") : e : t == "time" ? s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1896
|
+
Pt(e) && typeof e == "string" ? n.push(J(e, "HH:mm:ss")) : n.push(e);
|
|
1897
|
+
})) : n = Pt(e) && typeof e == "string" ? J(e, "HH:mm:ss") : e : t == "float" ? s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1852
1898
|
s(e) && typeof e == "string" ? n.push(Number(e)) : n.push(e);
|
|
1853
1899
|
})) : n = s(e) && typeof e == "string" ? Number(e) : e : t == "bool" && (s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1854
1900
|
s(e) && typeof e == "string" ? n.push(!!e) : n.push(e);
|
|
1855
1901
|
})) : n = s(e) && typeof e == "string" ? !!e : e), n;
|
|
1856
|
-
}, a = V(e.is_show_field), c = V(!1), l =
|
|
1902
|
+
}, a = V(e.is_show_field), c = V(!1), l = D(() => e.is_form_design && e.field.type === "remotetablepro"), u = () => {
|
|
1857
1903
|
t("update:is_edit", c.value);
|
|
1858
1904
|
}, d = () => {
|
|
1859
1905
|
t("add");
|
|
1860
|
-
}, f =
|
|
1906
|
+
}, f = Te(() => {
|
|
1861
1907
|
let r = a.value;
|
|
1862
1908
|
e.field?.is_hide && (a.value = !1, a.value !== r && (a.value ? (n.value[e.field.name] = null, t("update_model", {
|
|
1863
1909
|
add_key: e.field.name,
|
|
@@ -1896,7 +1942,7 @@ var Et = /*#__PURE__*/ n(xt, [["render", Tt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1896
1942
|
n == r?.[e.field.valueKey ? e.field.valueKey : "value"] && t.push(r?.[e.field.labelKey ? e.field.labelKey : "label"]);
|
|
1897
1943
|
});
|
|
1898
1944
|
}), r = t.toString();
|
|
1899
|
-
} else if (e.field.type === "select") if (
|
|
1945
|
+
} else if (e.field.type === "select") if (Ee(n)) {
|
|
1900
1946
|
let t = [];
|
|
1901
1947
|
e.options.forEach((r) => {
|
|
1902
1948
|
n.forEach((n) => {
|
|
@@ -1940,9 +1986,9 @@ var Et = /*#__PURE__*/ n(xt, [["render", Tt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1940
1986
|
}
|
|
1941
1987
|
l.value && t("update:is_edit", c.value);
|
|
1942
1988
|
});
|
|
1943
|
-
let { t:
|
|
1989
|
+
let { t: h } = ke();
|
|
1944
1990
|
return {
|
|
1945
|
-
t:
|
|
1991
|
+
t: h,
|
|
1946
1992
|
is_show_field: a,
|
|
1947
1993
|
self_is_edit: c,
|
|
1948
1994
|
handleToggleEdit: u,
|
|
@@ -1954,49 +2000,49 @@ var Et = /*#__PURE__*/ n(xt, [["render", Tt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1954
2000
|
};
|
|
1955
2001
|
},
|
|
1956
2002
|
components: {
|
|
1957
|
-
IconSelect:
|
|
1958
|
-
RichTextEditor:
|
|
1959
|
-
Upload:
|
|
1960
|
-
RemoteCascaderPro:
|
|
1961
|
-
RemoteTreeSelectPro:
|
|
1962
|
-
RemoteSelectPro:
|
|
1963
|
-
RemoteComplete:
|
|
1964
|
-
AttributeTable:
|
|
1965
|
-
AttributeNomTable:
|
|
1966
|
-
RemoteFilterSelect:
|
|
2003
|
+
IconSelect: ae,
|
|
2004
|
+
RichTextEditor: S,
|
|
2005
|
+
Upload: se,
|
|
2006
|
+
RemoteCascaderPro: ce,
|
|
2007
|
+
RemoteTreeSelectPro: re,
|
|
2008
|
+
RemoteSelectPro: h,
|
|
2009
|
+
RemoteComplete: oe,
|
|
2010
|
+
AttributeTable: v,
|
|
2011
|
+
AttributeNomTable: _,
|
|
2012
|
+
RemoteFilterSelect: g,
|
|
1967
2013
|
RemoteModal: f,
|
|
1968
2014
|
RemoteSelect: t,
|
|
1969
2015
|
RemoteCascader: r,
|
|
1970
2016
|
RemoteTreeSelect: m,
|
|
1971
2017
|
RemoteTable: p,
|
|
1972
|
-
JsonStr:
|
|
1973
|
-
JsonObj:
|
|
1974
|
-
RemoteText:
|
|
1975
|
-
RemoteTablePro:
|
|
1976
|
-
FormTemplate:
|
|
1977
|
-
DynamicValueField:
|
|
1978
|
-
FormButton:
|
|
1979
|
-
PlusOutlined:
|
|
1980
|
-
MonthPicker:
|
|
1981
|
-
MonthRangePicker:
|
|
1982
|
-
CodeEditor:
|
|
2018
|
+
JsonStr: y,
|
|
2019
|
+
JsonObj: ee,
|
|
2020
|
+
RemoteText: te,
|
|
2021
|
+
RemoteTablePro: ue,
|
|
2022
|
+
FormTemplate: gt,
|
|
2023
|
+
DynamicValueField: vt,
|
|
2024
|
+
FormButton: xt,
|
|
2025
|
+
PlusOutlined: Oe,
|
|
2026
|
+
MonthPicker: T,
|
|
2027
|
+
MonthRangePicker: w,
|
|
2028
|
+
CodeEditor: ie,
|
|
1983
2029
|
TinymceEditor: le,
|
|
1984
|
-
InputNumberPro:
|
|
1985
|
-
InputPro:
|
|
2030
|
+
InputNumberPro: Dt,
|
|
2031
|
+
InputPro: Mt
|
|
1986
2032
|
}
|
|
1987
|
-
}),
|
|
2033
|
+
}), It = {
|
|
1988
2034
|
key: 0,
|
|
1989
2035
|
style: {
|
|
1990
2036
|
height: "62px",
|
|
1991
2037
|
width: "100%"
|
|
1992
2038
|
}
|
|
1993
|
-
},
|
|
2039
|
+
}, Lt = { key: 1 }, Rt = { key: 0 }, zt = { key: 1 }, Bt = {
|
|
1994
2040
|
key: 3,
|
|
1995
2041
|
style: {
|
|
1996
2042
|
height: "30px",
|
|
1997
2043
|
position: "relative"
|
|
1998
2044
|
}
|
|
1999
|
-
},
|
|
2045
|
+
}, Vt = { style: {
|
|
2000
2046
|
position: "absolute",
|
|
2001
2047
|
bottom: "0",
|
|
2002
2048
|
padding: "0",
|
|
@@ -2004,39 +2050,39 @@ var Et = /*#__PURE__*/ n(xt, [["render", Tt], ["__scopeId", "data-v-f97da831"]])
|
|
|
2004
2050
|
"font-weight": "bolder",
|
|
2005
2051
|
"font-size": "17px"
|
|
2006
2052
|
} };
|
|
2007
|
-
function
|
|
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"),
|
|
2009
|
-
return z(),
|
|
2010
|
-
e.field.type !== "divider" && e.field.type !== "button" && (e.field?.is_search_show !== !1 || e.field_render_show) ? (z(),
|
|
2053
|
+
function Ht(e, t, n, r, i, a) {
|
|
2054
|
+
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"), h = U("attribute-table"), g = U("attribute-nom-table"), _ = U("a-textarea"), v = U("json-str"), y = U("json-obj"), ee = U("rich-text-editor"), te = U("a-input-password"), b = U("a-select-option"), x = U("a-select"), ne = U("a-cascader"), S = U("remote-cascader"), re = U("remote-cascader-pro"), C = U("month-picker"), ie = U("a-date-picker"), ae = U("a-range-picker"), oe = U("month-range-picker"), w = U("a-time-picker"), se = U("a-time-range-picker"), T = U("a-radio"), ce = U("a-radio-group"), le = U("a-checkbox"), ue = U("a-checkbox-group"), D = U("a-tree-select"), de = U("remote-filter-select"), F = U("remote-select"), fe = U("remote-select-pro"), pe = U("remote-complete"), I = 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");
|
|
2055
|
+
return z(), A(E, null, [
|
|
2056
|
+
e.field.type !== "divider" && e.field.type !== "button" && (e.field?.is_search_show !== !1 || e.field_render_show) ? (z(), O(Ce, L({
|
|
2011
2057
|
key: 0,
|
|
2012
2058
|
extra: e.field.extra,
|
|
2013
2059
|
name: e.field.name
|
|
2014
|
-
}, e.validateInfos ? e.validateInfos[e.field.name] : null),
|
|
2060
|
+
}, e.validateInfos ? e.validateInfos[e.field.name] : null), M({
|
|
2015
2061
|
default: q(() => [
|
|
2016
2062
|
_e(e.$slots, "default", {}, void 0, !0),
|
|
2017
|
-
e.field.type === "kong" ? (z(),
|
|
2018
|
-
e.field.type === "tag" ? (z(),
|
|
2063
|
+
e.field.type === "kong" ? (z(), A("div", It)) : k("", !0),
|
|
2064
|
+
e.field.type === "tag" ? (z(), A("div", Lt, [e.field.content && e.field.content(e.field, e.model) || e.model ? (z(), O(l, {
|
|
2019
2065
|
key: 0,
|
|
2020
2066
|
color: e.field.color ? e.field.color(e.field, e.model) : "green",
|
|
2021
2067
|
style: he(e.field.style),
|
|
2022
2068
|
onClick: t[1] ||= (t) => e.field.cb ? e.field.cb(e.field, e.model) : ""
|
|
2023
2069
|
}, {
|
|
2024
|
-
default: q(() => [e.field.content ? (z(),
|
|
2070
|
+
default: q(() => [e.field.content ? (z(), A("span", Rt, G(e.field.content(e.field, e.model)), 1)) : (z(), A("span", zt, G(e.model), 1))]),
|
|
2025
2071
|
_: 1
|
|
2026
|
-
}, 8, ["color", "style"])) :
|
|
2027
|
-
e.field.type === "kong_title" ? (z(),
|
|
2072
|
+
}, 8, ["color", "style"])) : k("", !0)])) : k("", !0),
|
|
2073
|
+
e.field.type === "kong_title" ? (z(), A("div", {
|
|
2028
2074
|
key: 2,
|
|
2029
2075
|
style: he("height: " + e.field.height + "px")
|
|
2030
|
-
}, null, 4)) :
|
|
2031
|
-
e.field.type === "title" ? (z(),
|
|
2032
|
-
e.field.type === "rate" ? (z(),
|
|
2076
|
+
}, null, 4)) : k("", !0),
|
|
2077
|
+
e.field.type === "title" ? (z(), A("div", Bt, [j("span", Vt, G(e.field.name), 1)])) : k("", !0),
|
|
2078
|
+
e.field.type === "rate" ? (z(), O(u, {
|
|
2033
2079
|
key: 4,
|
|
2034
2080
|
value: e.model,
|
|
2035
2081
|
"onUpdate:value": t[2] ||= (t) => e.model = t,
|
|
2036
2082
|
disabled: e.field.disabled,
|
|
2037
2083
|
"allow-half": ""
|
|
2038
|
-
}, null, 8, ["value", "disabled"])) :
|
|
2039
|
-
e.field.type === "input" ? (z(),
|
|
2084
|
+
}, null, 8, ["value", "disabled"])) : k("", !0),
|
|
2085
|
+
e.field.type === "input" ? (z(), O(d, {
|
|
2040
2086
|
key: 5,
|
|
2041
2087
|
field: e.field,
|
|
2042
2088
|
value: e.model,
|
|
@@ -2048,8 +2094,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2048
2094
|
"value",
|
|
2049
2095
|
"base-key-path",
|
|
2050
2096
|
"worker-host-functions"
|
|
2051
|
-
])) :
|
|
2052
|
-
e.field.type === "money" ? (z(),
|
|
2097
|
+
])) : k("", !0),
|
|
2098
|
+
e.field.type === "money" ? (z(), O(f, {
|
|
2053
2099
|
key: 6,
|
|
2054
2100
|
size: "small",
|
|
2055
2101
|
value: e.model,
|
|
@@ -2075,8 +2121,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2075
2121
|
"precision",
|
|
2076
2122
|
"step",
|
|
2077
2123
|
"placeholder"
|
|
2078
|
-
])) :
|
|
2079
|
-
e.field.type === "number" ? (z(),
|
|
2124
|
+
])) : k("", !0),
|
|
2125
|
+
e.field.type === "number" ? (z(), O(p, {
|
|
2080
2126
|
key: 7,
|
|
2081
2127
|
value: e.model,
|
|
2082
2128
|
"onUpdate:value": t[5] ||= (t) => e.model = t,
|
|
@@ -2089,8 +2135,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2089
2135
|
"field",
|
|
2090
2136
|
"base-key-path",
|
|
2091
2137
|
"worker-host-functions"
|
|
2092
|
-
])) :
|
|
2093
|
-
e.field.type === "volume" ? (z(),
|
|
2138
|
+
])) : k("", !0),
|
|
2139
|
+
e.field.type === "volume" ? (z(), O(m, {
|
|
2094
2140
|
key: 8,
|
|
2095
2141
|
value: e.model,
|
|
2096
2142
|
"onUpdate:value": t[6] ||= (t) => e.model = t,
|
|
@@ -2111,8 +2157,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2111
2157
|
"disabled",
|
|
2112
2158
|
"maxlength",
|
|
2113
2159
|
"placeholder"
|
|
2114
|
-
])) :
|
|
2115
|
-
e.field.type === "weight" ? (z(),
|
|
2160
|
+
])) : k("", !0),
|
|
2161
|
+
e.field.type === "weight" ? (z(), O(m, {
|
|
2116
2162
|
key: 9,
|
|
2117
2163
|
value: e.model,
|
|
2118
2164
|
"onUpdate:value": t[7] ||= (t) => e.model = t,
|
|
@@ -2133,8 +2179,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2133
2179
|
"disabled",
|
|
2134
2180
|
"maxlength",
|
|
2135
2181
|
"placeholder"
|
|
2136
|
-
])) :
|
|
2137
|
-
e.field.type === "attributetable" ? (z(),
|
|
2182
|
+
])) : k("", !0),
|
|
2183
|
+
e.field.type === "attributetable" ? (z(), O(h, {
|
|
2138
2184
|
key: 10,
|
|
2139
2185
|
value: e.model,
|
|
2140
2186
|
"onUpdate:value": t[8] ||= (t) => e.model = t,
|
|
@@ -2151,8 +2197,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2151
2197
|
"init_model",
|
|
2152
2198
|
"base-key-path",
|
|
2153
2199
|
"worker-host-functions"
|
|
2154
|
-
])) :
|
|
2155
|
-
e.field.type === "attributenomtable" ? (z(),
|
|
2200
|
+
])) : k("", !0),
|
|
2201
|
+
e.field.type === "attributenomtable" ? (z(), O(g, {
|
|
2156
2202
|
key: 11,
|
|
2157
2203
|
size: "small",
|
|
2158
2204
|
value: e.model,
|
|
@@ -2169,8 +2215,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2169
2215
|
"init_model",
|
|
2170
2216
|
"base-key-path",
|
|
2171
2217
|
"worker-host-functions"
|
|
2172
|
-
])) :
|
|
2173
|
-
e.field.type === "textarea" ? (z(),
|
|
2218
|
+
])) : k("", !0),
|
|
2219
|
+
e.field.type === "textarea" ? (z(), O(_, {
|
|
2174
2220
|
key: 12,
|
|
2175
2221
|
value: e.model,
|
|
2176
2222
|
"onUpdate:value": t[10] ||= (t) => e.model = t,
|
|
@@ -2189,8 +2235,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2189
2235
|
"autocomplete",
|
|
2190
2236
|
"disabled",
|
|
2191
2237
|
"placeholder"
|
|
2192
|
-
])) :
|
|
2193
|
-
e.field.type === "jsonstr" ? (z(),
|
|
2238
|
+
])) : k("", !0),
|
|
2239
|
+
e.field.type === "jsonstr" ? (z(), O(v, {
|
|
2194
2240
|
key: 13,
|
|
2195
2241
|
value: e.model,
|
|
2196
2242
|
"onUpdate:value": t[11] ||= (t) => e.model = t,
|
|
@@ -2204,8 +2250,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2204
2250
|
"disabled",
|
|
2205
2251
|
"rows",
|
|
2206
2252
|
"placeholder"
|
|
2207
|
-
])) :
|
|
2208
|
-
e.field.type === "jsonobj" ? (z(),
|
|
2253
|
+
])) : k("", !0),
|
|
2254
|
+
e.field.type === "jsonobj" ? (z(), O(y, {
|
|
2209
2255
|
key: 14,
|
|
2210
2256
|
value: e.model,
|
|
2211
2257
|
"onUpdate:value": t[12] ||= (t) => e.model = t,
|
|
@@ -2221,8 +2267,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2221
2267
|
"mode",
|
|
2222
2268
|
"fullWidthButton",
|
|
2223
2269
|
"darkTheme"
|
|
2224
|
-
])) :
|
|
2225
|
-
e.field.type === "richtexteditor" ? (z(),
|
|
2270
|
+
])) : k("", !0),
|
|
2271
|
+
e.field.type === "richtexteditor" ? (z(), O(ee, {
|
|
2226
2272
|
key: 15,
|
|
2227
2273
|
value: e.model,
|
|
2228
2274
|
"onUpdate:value": t[13] ||= (t) => e.model = t,
|
|
@@ -2232,8 +2278,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2232
2278
|
"value",
|
|
2233
2279
|
"readOnly",
|
|
2234
2280
|
"placeholder"
|
|
2235
|
-
])) :
|
|
2236
|
-
e.field.type === "password" ? (z(),
|
|
2281
|
+
])) : k("", !0),
|
|
2282
|
+
e.field.type === "password" ? (z(), O(te, {
|
|
2237
2283
|
key: 16,
|
|
2238
2284
|
value: e.model,
|
|
2239
2285
|
"onUpdate:value": t[14] ||= (t) => e.model = t,
|
|
@@ -2264,8 +2310,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2264
2310
|
"precision",
|
|
2265
2311
|
"step",
|
|
2266
2312
|
"visibilityToggle"
|
|
2267
|
-
])) :
|
|
2268
|
-
e.field.type === "select" ? (z(),
|
|
2313
|
+
])) : k("", !0),
|
|
2314
|
+
e.field.type === "select" ? (z(), A(E, { key: 17 }, [e.field.mode === "default" ? (z(), O(x, {
|
|
2269
2315
|
key: 0,
|
|
2270
2316
|
value: e.model,
|
|
2271
2317
|
"onUpdate:value": t[16] ||= (t) => e.model = t,
|
|
@@ -2280,11 +2326,11 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2280
2326
|
size: "small",
|
|
2281
2327
|
style: { width: "100%" }
|
|
2282
2328
|
}, {
|
|
2283
|
-
default: q(() => [(z(!0),
|
|
2329
|
+
default: q(() => [(z(!0), A(E, null, H(e.options, (t) => (z(), O(b, {
|
|
2284
2330
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2285
2331
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2286
2332
|
}, {
|
|
2287
|
-
default: q(() => [
|
|
2333
|
+
default: q(() => [N(G(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
2288
2334
|
_: 2
|
|
2289
2335
|
}, 1032, ["value"]))), 128))]),
|
|
2290
2336
|
_: 1
|
|
@@ -2297,7 +2343,7 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2297
2343
|
"maxTagCount",
|
|
2298
2344
|
"placeholder",
|
|
2299
2345
|
"show-search"
|
|
2300
|
-
])) : (z(),
|
|
2346
|
+
])) : (z(), O(x, {
|
|
2301
2347
|
key: 1,
|
|
2302
2348
|
value: e.model,
|
|
2303
2349
|
"onUpdate:value": t[17] ||= (t) => e.model = t,
|
|
@@ -2312,11 +2358,11 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2312
2358
|
size: "small",
|
|
2313
2359
|
style: { "min-width": "150px" }
|
|
2314
2360
|
}, {
|
|
2315
|
-
default: q(() => [(z(!0),
|
|
2361
|
+
default: q(() => [(z(!0), A(E, null, H(e.options, (t, n) => (z(), O(b, {
|
|
2316
2362
|
key: n,
|
|
2317
2363
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2318
2364
|
}, {
|
|
2319
|
-
default: q(() => [
|
|
2365
|
+
default: q(() => [N(G(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
2320
2366
|
_: 2
|
|
2321
2367
|
}, 1032, ["value"]))), 128))]),
|
|
2322
2368
|
_: 1
|
|
@@ -2329,8 +2375,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2329
2375
|
"mode",
|
|
2330
2376
|
"placeholder",
|
|
2331
2377
|
"show-search"
|
|
2332
|
-
]))], 64)) :
|
|
2333
|
-
e.field.type === "groupselect" ? (z(),
|
|
2378
|
+
]))], 64)) : k("", !0),
|
|
2379
|
+
e.field.type === "groupselect" ? (z(), A(E, { key: 18 }, [e.field.mode === "default" ? (z(), O(x, {
|
|
2334
2380
|
key: 0,
|
|
2335
2381
|
value: e.model,
|
|
2336
2382
|
"onUpdate:value": t[18] ||= (t) => e.model = t,
|
|
@@ -2359,7 +2405,7 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2359
2405
|
"options",
|
|
2360
2406
|
"placeholder",
|
|
2361
2407
|
"show-search"
|
|
2362
|
-
])) : (z(),
|
|
2408
|
+
])) : (z(), O(x, {
|
|
2363
2409
|
key: 1,
|
|
2364
2410
|
value: e.model,
|
|
2365
2411
|
"onUpdate:value": t[19] ||= (t) => e.model = t,
|
|
@@ -2388,8 +2434,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2388
2434
|
"options",
|
|
2389
2435
|
"placeholder",
|
|
2390
2436
|
"show-search"
|
|
2391
|
-
]))], 64)) :
|
|
2392
|
-
e.field.type === "cascader" ? (z(),
|
|
2437
|
+
]))], 64)) : k("", !0),
|
|
2438
|
+
e.field.type === "cascader" ? (z(), O(ne, {
|
|
2393
2439
|
key: 19,
|
|
2394
2440
|
value: e.model,
|
|
2395
2441
|
"onUpdate:value": t[20] ||= (t) => e.model = t,
|
|
@@ -2412,8 +2458,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2412
2458
|
"changeOnSelect",
|
|
2413
2459
|
"options",
|
|
2414
2460
|
"placeholder"
|
|
2415
|
-
])) :
|
|
2416
|
-
e.field.type === "remotecascader" ? (z(),
|
|
2461
|
+
])) : k("", !0),
|
|
2462
|
+
e.field.type === "remotecascader" ? (z(), O(S, {
|
|
2417
2463
|
key: 20,
|
|
2418
2464
|
value: e.model,
|
|
2419
2465
|
"onUpdate:value": t[21] ||= (t) => e.model = t,
|
|
@@ -2438,8 +2484,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2438
2484
|
"label-space",
|
|
2439
2485
|
"search_config",
|
|
2440
2486
|
"value-key"
|
|
2441
|
-
])) :
|
|
2442
|
-
e.field.type === "remotecascaderpro" ? (z(),
|
|
2487
|
+
])) : k("", !0),
|
|
2488
|
+
e.field.type === "remotecascaderpro" ? (z(), O(re, {
|
|
2443
2489
|
key: 21,
|
|
2444
2490
|
label: e.labelModel,
|
|
2445
2491
|
"onUpdate:label": t[23] ||= (t) => e.labelModel = t,
|
|
@@ -2486,8 +2532,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2486
2532
|
"init_watch",
|
|
2487
2533
|
"is_form_design",
|
|
2488
2534
|
"placeholder"
|
|
2489
|
-
])) :
|
|
2490
|
-
e.field.type === "monthpicker" ? (z(),
|
|
2535
|
+
])) : k("", !0),
|
|
2536
|
+
e.field.type === "monthpicker" ? (z(), O(C, {
|
|
2491
2537
|
key: 22,
|
|
2492
2538
|
value: e.model,
|
|
2493
2539
|
"onUpdate:value": t[25] ||= (t) => e.model = t,
|
|
@@ -2515,8 +2561,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2515
2561
|
"start_offset_day",
|
|
2516
2562
|
"end_offset_day",
|
|
2517
2563
|
"fix_day"
|
|
2518
|
-
])) :
|
|
2519
|
-
e.field.type === "datepicker" ? (z(),
|
|
2564
|
+
])) : k("", !0),
|
|
2565
|
+
e.field.type === "datepicker" ? (z(), O(ie, {
|
|
2520
2566
|
key: 23,
|
|
2521
2567
|
value: e.model,
|
|
2522
2568
|
"onUpdate:value": t[26] ||= (t) => e.model = t,
|
|
@@ -2542,8 +2588,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2542
2588
|
"placeholder",
|
|
2543
2589
|
"show-time",
|
|
2544
2590
|
"value-format"
|
|
2545
|
-
])) :
|
|
2546
|
-
e.field.type === "rangepicker" ? (z(),
|
|
2591
|
+
])) : k("", !0),
|
|
2592
|
+
e.field.type === "rangepicker" ? (z(), O(ae, {
|
|
2547
2593
|
key: 24,
|
|
2548
2594
|
value: e.model,
|
|
2549
2595
|
"onUpdate:value": t[27] ||= (t) => e.model = t,
|
|
@@ -2567,8 +2613,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2567
2613
|
"show-time",
|
|
2568
2614
|
"value-format",
|
|
2569
2615
|
"picker"
|
|
2570
|
-
])) :
|
|
2571
|
-
e.field.type === "monthrangepicker" ? (z(),
|
|
2616
|
+
])) : k("", !0),
|
|
2617
|
+
e.field.type === "monthrangepicker" ? (z(), O(oe, {
|
|
2572
2618
|
key: 25,
|
|
2573
2619
|
value: e.model,
|
|
2574
2620
|
"onUpdate:value": t[28] ||= (t) => e.model = t,
|
|
@@ -2594,8 +2640,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2594
2640
|
"start_offset_day",
|
|
2595
2641
|
"end_offset_day",
|
|
2596
2642
|
"fix_day"
|
|
2597
|
-
])) :
|
|
2598
|
-
e.field.type === "timepicker" ? (z(),
|
|
2643
|
+
])) : k("", !0),
|
|
2644
|
+
e.field.type === "timepicker" ? (z(), O(w, {
|
|
2599
2645
|
key: 26,
|
|
2600
2646
|
value: e.model,
|
|
2601
2647
|
"onUpdate:value": t[29] ||= (t) => e.model = t,
|
|
@@ -2615,8 +2661,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2615
2661
|
"format",
|
|
2616
2662
|
"placeholder",
|
|
2617
2663
|
"value-format"
|
|
2618
|
-
])) :
|
|
2619
|
-
e.field.type === "timerangepicker" ? (z(),
|
|
2664
|
+
])) : k("", !0),
|
|
2665
|
+
e.field.type === "timerangepicker" ? (z(), O(se, {
|
|
2620
2666
|
key: 27,
|
|
2621
2667
|
value: e.model,
|
|
2622
2668
|
"onUpdate:value": t[30] ||= (t) => e.model = t,
|
|
@@ -2636,8 +2682,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2636
2682
|
"format",
|
|
2637
2683
|
"placeholder",
|
|
2638
2684
|
"value-format"
|
|
2639
|
-
])) :
|
|
2640
|
-
e.field.type === "radio" ? (z(),
|
|
2685
|
+
])) : k("", !0),
|
|
2686
|
+
e.field.type === "radio" ? (z(), O(ce, {
|
|
2641
2687
|
key: 28,
|
|
2642
2688
|
value: e.model,
|
|
2643
2689
|
"onUpdate:value": t[31] ||= (t) => e.model = t,
|
|
@@ -2645,12 +2691,12 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2645
2691
|
disabled: e.field.disabled,
|
|
2646
2692
|
size: "small"
|
|
2647
2693
|
}, {
|
|
2648
|
-
default: q(() => [(z(!0),
|
|
2694
|
+
default: q(() => [(z(!0), A(E, null, H(e.options, (t) => (z(), O(T, {
|
|
2649
2695
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2650
2696
|
disabled: t.disabled,
|
|
2651
2697
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2652
2698
|
}, {
|
|
2653
|
-
default: q(() => [
|
|
2699
|
+
default: q(() => [N(G(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
2654
2700
|
_: 2
|
|
2655
2701
|
}, 1032, ["disabled", "value"]))), 128))]),
|
|
2656
2702
|
_: 1
|
|
@@ -2658,8 +2704,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2658
2704
|
"value",
|
|
2659
2705
|
"default-value",
|
|
2660
2706
|
"disabled"
|
|
2661
|
-
])) :
|
|
2662
|
-
e.field.type === "checkbox" ? (z(),
|
|
2707
|
+
])) : k("", !0),
|
|
2708
|
+
e.field.type === "checkbox" ? (z(), O(ue, {
|
|
2663
2709
|
key: 29,
|
|
2664
2710
|
value: e.model,
|
|
2665
2711
|
"onUpdate:value": t[32] ||= (t) => e.model = t,
|
|
@@ -2667,12 +2713,12 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2667
2713
|
disabled: e.field.disabled,
|
|
2668
2714
|
size: "small"
|
|
2669
2715
|
}, {
|
|
2670
|
-
default: q(() => [(z(!0),
|
|
2716
|
+
default: q(() => [(z(!0), A(E, null, H(e.options, (t) => (z(), O(le, {
|
|
2671
2717
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2672
2718
|
disabled: t.disabled,
|
|
2673
2719
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2674
2720
|
}, {
|
|
2675
|
-
default: q(() => [
|
|
2721
|
+
default: q(() => [N(G(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
2676
2722
|
_: 2
|
|
2677
2723
|
}, 1032, ["disabled", "value"]))), 128))]),
|
|
2678
2724
|
_: 1
|
|
@@ -2680,8 +2726,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2680
2726
|
"value",
|
|
2681
2727
|
"default-value",
|
|
2682
2728
|
"disabled"
|
|
2683
|
-
])) :
|
|
2684
|
-
e.field.type === "treeselect" ? (z(),
|
|
2729
|
+
])) : k("", !0),
|
|
2730
|
+
e.field.type === "treeselect" ? (z(), O(D, {
|
|
2685
2731
|
key: 30,
|
|
2686
2732
|
value: e.model,
|
|
2687
2733
|
"onUpdate:value": t[33] ||= (t) => e.model = t,
|
|
@@ -2707,8 +2753,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2707
2753
|
"tree-data",
|
|
2708
2754
|
"tree-label-prop",
|
|
2709
2755
|
"tree-node-filter-prop"
|
|
2710
|
-
])) :
|
|
2711
|
-
e.field.type === "remotefilterselect" ? (z(),
|
|
2756
|
+
])) : k("", !0),
|
|
2757
|
+
e.field.type === "remotefilterselect" ? (z(), O(de, {
|
|
2712
2758
|
key: 31,
|
|
2713
2759
|
label: e.labelModel,
|
|
2714
2760
|
"onUpdate:label": t[34] ||= (t) => e.labelModel = t,
|
|
@@ -2735,8 +2781,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2735
2781
|
"label-space",
|
|
2736
2782
|
"search_config",
|
|
2737
2783
|
"value-key"
|
|
2738
|
-
])) :
|
|
2739
|
-
e.field.type === "remoteselect" ? (z(),
|
|
2784
|
+
])) : k("", !0),
|
|
2785
|
+
e.field.type === "remoteselect" ? (z(), O(F, {
|
|
2740
2786
|
key: 32,
|
|
2741
2787
|
label: e.labelModel,
|
|
2742
2788
|
"onUpdate:label": t[36] ||= (t) => e.labelModel = t,
|
|
@@ -2763,8 +2809,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2763
2809
|
"label-space",
|
|
2764
2810
|
"search_config",
|
|
2765
2811
|
"value-key"
|
|
2766
|
-
])) :
|
|
2767
|
-
e.field.type === "remoteselectpro" ? (z(),
|
|
2812
|
+
])) : k("", !0),
|
|
2813
|
+
e.field.type === "remoteselectpro" ? (z(), O(fe, {
|
|
2768
2814
|
key: 33,
|
|
2769
2815
|
label: e.labelModel,
|
|
2770
2816
|
"onUpdate:label": t[38] ||= (t) => e.labelModel = t,
|
|
@@ -2811,8 +2857,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2811
2857
|
"context",
|
|
2812
2858
|
"base-key-path",
|
|
2813
2859
|
"placeholder"
|
|
2814
|
-
])) :
|
|
2815
|
-
e.field.type === "remotecomplete" ? (z(),
|
|
2860
|
+
])) : k("", !0),
|
|
2861
|
+
e.field.type === "remotecomplete" ? (z(), O(pe, {
|
|
2816
2862
|
key: 34,
|
|
2817
2863
|
value: e.model,
|
|
2818
2864
|
"onUpdate:value": t[40] ||= (t) => e.model = t,
|
|
@@ -2850,8 +2896,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2850
2896
|
"is_input",
|
|
2851
2897
|
"is_form_design",
|
|
2852
2898
|
"placeholder"
|
|
2853
|
-
])) :
|
|
2854
|
-
e.field.type === "remotetreeselect" ? (z(),
|
|
2899
|
+
])) : k("", !0),
|
|
2900
|
+
e.field.type === "remotetreeselect" ? (z(), O(I, {
|
|
2855
2901
|
key: 35,
|
|
2856
2902
|
label: e.labelModel,
|
|
2857
2903
|
"onUpdate:label": t[41] ||= (t) => e.labelModel = t,
|
|
@@ -2878,8 +2924,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2878
2924
|
"label-key",
|
|
2879
2925
|
"search_config",
|
|
2880
2926
|
"value-key"
|
|
2881
|
-
])) :
|
|
2882
|
-
e.field.type === "remotetreeselectpro" ? (z(),
|
|
2927
|
+
])) : k("", !0),
|
|
2928
|
+
e.field.type === "remotetreeselectpro" ? (z(), O(me, {
|
|
2883
2929
|
key: 36,
|
|
2884
2930
|
label: e.labelModel,
|
|
2885
2931
|
"onUpdate:label": t[43] ||= (t) => e.labelModel = t,
|
|
@@ -2924,8 +2970,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2924
2970
|
"init_watch",
|
|
2925
2971
|
"is_form_design",
|
|
2926
2972
|
"placeholder"
|
|
2927
|
-
])) :
|
|
2928
|
-
e.field.type === "remotemodal" ? (z(),
|
|
2973
|
+
])) : k("", !0),
|
|
2974
|
+
e.field.type === "remotemodal" ? (z(), O(R, {
|
|
2929
2975
|
key: 37,
|
|
2930
2976
|
label: e.labelModel,
|
|
2931
2977
|
"onUpdate:label": t[45] ||= (t) => e.labelModel = t,
|
|
@@ -2950,8 +2996,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2950
2996
|
"modalType",
|
|
2951
2997
|
"search_config",
|
|
2952
2998
|
"watch"
|
|
2953
|
-
])) :
|
|
2954
|
-
e.field.type === "remotetable" ? (z(),
|
|
2999
|
+
])) : k("", !0),
|
|
3000
|
+
e.field.type === "remotetable" ? (z(), O(ge, {
|
|
2955
3001
|
key: 38,
|
|
2956
3002
|
value: e.model,
|
|
2957
3003
|
"onUpdate:value": t[47] ||= (t) => e.model = t,
|
|
@@ -2979,8 +3025,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
2979
3025
|
"watch",
|
|
2980
3026
|
"base-key-path",
|
|
2981
3027
|
"worker-host-functions"
|
|
2982
|
-
])) :
|
|
2983
|
-
e.field.type === "remotetablepro" && !e.self_is_edit ? (z(),
|
|
3028
|
+
])) : k("", !0),
|
|
3029
|
+
e.field.type === "remotetablepro" && !e.self_is_edit ? (z(), O(B, {
|
|
2984
3030
|
key: 39,
|
|
2985
3031
|
value: e.model,
|
|
2986
3032
|
"onUpdate:value": t[48] ||= (t) => e.model = t,
|
|
@@ -3014,8 +3060,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
3014
3060
|
"global-inner-model",
|
|
3015
3061
|
"base-key-path",
|
|
3016
3062
|
"worker-host-functions"
|
|
3017
|
-
])) :
|
|
3018
|
-
e.field.type === "formtemplate" ? (z(),
|
|
3063
|
+
])) : k("", !0),
|
|
3064
|
+
e.field.type === "formtemplate" ? (z(), O(V, {
|
|
3019
3065
|
key: 40,
|
|
3020
3066
|
value: e.model,
|
|
3021
3067
|
"onUpdate:value": t[49] ||= (t) => e.model = t,
|
|
@@ -3059,8 +3105,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
3059
3105
|
"base-key-path",
|
|
3060
3106
|
"worker-host-functions",
|
|
3061
3107
|
"contextOptions"
|
|
3062
|
-
])) :
|
|
3063
|
-
e.field.type === "dynamicvaluefield" ? (z(),
|
|
3108
|
+
])) : k("", !0),
|
|
3109
|
+
e.field.type === "dynamicvaluefield" ? (z(), O(ve, {
|
|
3064
3110
|
key: 41,
|
|
3065
3111
|
value: e.model,
|
|
3066
3112
|
"onUpdate:value": t[50] ||= (t) => e.model = t,
|
|
@@ -3098,8 +3144,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
3098
3144
|
"context",
|
|
3099
3145
|
"base-key-path",
|
|
3100
3146
|
"worker-host-functions"
|
|
3101
|
-
])) :
|
|
3102
|
-
e.field.type === "remotetext" ? (z(),
|
|
3147
|
+
])) : k("", !0),
|
|
3148
|
+
e.field.type === "remotetext" ? (z(), O(ye, {
|
|
3103
3149
|
key: 42,
|
|
3104
3150
|
value: e.model,
|
|
3105
3151
|
"onUpdate:value": t[51] ||= (t) => e.model = t,
|
|
@@ -3121,8 +3167,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
3121
3167
|
"modalType",
|
|
3122
3168
|
"search_config",
|
|
3123
3169
|
"watch"
|
|
3124
|
-
])) :
|
|
3125
|
-
e.field.type === "upload" ? (z(),
|
|
3170
|
+
])) : k("", !0),
|
|
3171
|
+
e.field.type === "upload" ? (z(), O(be, {
|
|
3126
3172
|
key: 43,
|
|
3127
3173
|
value: e.model,
|
|
3128
3174
|
"onUpdate:value": t[52] ||= (t) => e.model = t,
|
|
@@ -3138,8 +3184,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
3138
3184
|
"listType",
|
|
3139
3185
|
"maxCount",
|
|
3140
3186
|
"acceptList"
|
|
3141
|
-
])) :
|
|
3142
|
-
e.field.type === "codeeditor" ? (z(),
|
|
3187
|
+
])) : k("", !0),
|
|
3188
|
+
e.field.type === "codeeditor" ? (z(), O(K, {
|
|
3143
3189
|
key: 44,
|
|
3144
3190
|
editorValue: e.model,
|
|
3145
3191
|
"onUpdate:editorValue": t[53] ||= (t) => e.model = t,
|
|
@@ -3151,8 +3197,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
3151
3197
|
"options",
|
|
3152
3198
|
"mode",
|
|
3153
3199
|
"lineWrapping"
|
|
3154
|
-
])) :
|
|
3155
|
-
e.field.type === "tinymceeditor" ? (z(),
|
|
3200
|
+
])) : k("", !0),
|
|
3201
|
+
e.field.type === "tinymceeditor" ? (z(), O(xe, {
|
|
3156
3202
|
key: 45,
|
|
3157
3203
|
modelValue: e.model,
|
|
3158
3204
|
"onUpdate:modelValue": t[54] ||= (t) => e.model = t,
|
|
@@ -3162,14 +3208,14 @@ function Vt(e, t, n, r, i, a) {
|
|
|
3162
3208
|
"modelValue",
|
|
3163
3209
|
"options",
|
|
3164
3210
|
"mode"
|
|
3165
|
-
])) :
|
|
3166
|
-
e.field.type === "iconselect" ? (z(),
|
|
3211
|
+
])) : k("", !0),
|
|
3212
|
+
e.field.type === "iconselect" ? (z(), O(Se, {
|
|
3167
3213
|
key: 46,
|
|
3168
3214
|
value: e.model,
|
|
3169
3215
|
"onUpdate:value": t[55] ||= (t) => e.model = t,
|
|
3170
3216
|
placeholder: e.field.placeholder_i18n == null ? e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label : e.t(e.field.placeholder_i18n)
|
|
3171
|
-
}, null, 8, ["value", "placeholder"])) :
|
|
3172
|
-
e.field.type === "rate" ? (z(),
|
|
3217
|
+
}, null, 8, ["value", "placeholder"])) : k("", !0),
|
|
3218
|
+
e.field.type === "rate" ? (z(), O(u, {
|
|
3173
3219
|
key: 47,
|
|
3174
3220
|
value: e.model,
|
|
3175
3221
|
"onUpdate:value": t[56] ||= (t) => e.model = t,
|
|
@@ -3179,8 +3225,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
3179
3225
|
"value",
|
|
3180
3226
|
"count",
|
|
3181
3227
|
"allow-half"
|
|
3182
|
-
])) :
|
|
3183
|
-
e.field.type === "radio-color" ? (z(),
|
|
3228
|
+
])) : k("", !0),
|
|
3229
|
+
e.field.type === "radio-color" ? (z(), O(ce, {
|
|
3184
3230
|
key: 48,
|
|
3185
3231
|
value: e.model,
|
|
3186
3232
|
"onUpdate:value": t[57] ||= (t) => e.model = t,
|
|
@@ -3188,12 +3234,12 @@ function Vt(e, t, n, r, i, a) {
|
|
|
3188
3234
|
disabled: e.field.disabled,
|
|
3189
3235
|
size: "small"
|
|
3190
3236
|
}, {
|
|
3191
|
-
default: q(() => [(z(!0),
|
|
3237
|
+
default: q(() => [(z(!0), A(E, null, H(e.options, (t) => (z(), O(T, {
|
|
3192
3238
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
3193
3239
|
disabled: t.disabled,
|
|
3194
3240
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
3195
3241
|
}, {
|
|
3196
|
-
default: q(() => [
|
|
3242
|
+
default: q(() => [j("div", { style: he({
|
|
3197
3243
|
width: "20px",
|
|
3198
3244
|
height: "20px",
|
|
3199
3245
|
backgroundColor: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
@@ -3205,8 +3251,8 @@ function Vt(e, t, n, r, i, a) {
|
|
|
3205
3251
|
"value",
|
|
3206
3252
|
"default-value",
|
|
3207
3253
|
"disabled"
|
|
3208
|
-
])) :
|
|
3209
|
-
e.field.type?.startsWith("CustomField") ? (z(),
|
|
3254
|
+
])) : k("", !0),
|
|
3255
|
+
e.field.type?.startsWith("CustomField") ? (z(), O(W(e.field.type), {
|
|
3210
3256
|
key: 49,
|
|
3211
3257
|
label: e.labelModel,
|
|
3212
3258
|
"onUpdate:label": t[58] ||= (t) => e.labelModel = t,
|
|
@@ -3231,14 +3277,14 @@ function Vt(e, t, n, r, i, a) {
|
|
|
3231
3277
|
"init_watch",
|
|
3232
3278
|
"is_form_design",
|
|
3233
3279
|
"placeholder"
|
|
3234
|
-
])) :
|
|
3280
|
+
])) : k("", !0)
|
|
3235
3281
|
]),
|
|
3236
3282
|
_: 2
|
|
3237
3283
|
}, [e.is_show_label ? {
|
|
3238
3284
|
name: "label",
|
|
3239
3285
|
fn: q(() => [
|
|
3240
|
-
|
|
3241
|
-
e.is_show_edit ? (z(),
|
|
3286
|
+
N(G(e.is_show_label ? e.field.label_i18n == null ? e.field.label : e.t(e.field.label_i18n) : null) + " ", 1),
|
|
3287
|
+
e.is_show_edit ? (z(), O(o, {
|
|
3242
3288
|
key: 0,
|
|
3243
3289
|
checked: e.self_is_edit,
|
|
3244
3290
|
"onUpdate:checked": t[0] ||= (t) => e.self_is_edit = t,
|
|
@@ -3246,28 +3292,28 @@ function Vt(e, t, n, r, i, a) {
|
|
|
3246
3292
|
onChange: e.handleToggleEdit,
|
|
3247
3293
|
"checked-children": "表单",
|
|
3248
3294
|
"un-checked-children": "列表"
|
|
3249
|
-
}, null, 8, ["checked", "onChange"])) :
|
|
3250
|
-
e.is_show_edit && e.self_is_edit ? (z(),
|
|
3295
|
+
}, null, 8, ["checked", "onChange"])) : k("", !0),
|
|
3296
|
+
e.is_show_edit && e.self_is_edit ? (z(), O(c, {
|
|
3251
3297
|
key: 1,
|
|
3252
3298
|
size: "small",
|
|
3253
3299
|
type: "primary",
|
|
3254
3300
|
onClick: e.handleAdd
|
|
3255
3301
|
}, {
|
|
3256
|
-
icon: q(() => [
|
|
3257
|
-
default: q(() => [t[61] ||=
|
|
3302
|
+
icon: q(() => [P(s)]),
|
|
3303
|
+
default: q(() => [t[61] ||= N(" 添加分组 ")]),
|
|
3258
3304
|
_: 1
|
|
3259
|
-
}, 8, ["onClick"])) :
|
|
3305
|
+
}, 8, ["onClick"])) : k("", !0)
|
|
3260
3306
|
]),
|
|
3261
3307
|
key: "0"
|
|
3262
|
-
} : void 0]), 1040, ["extra", "name"])) :
|
|
3263
|
-
e.field.type === "divider" ? (z(),
|
|
3308
|
+
} : void 0]), 1040, ["extra", "name"])) : k("", !0),
|
|
3309
|
+
e.field.type === "divider" ? (z(), O(we, {
|
|
3264
3310
|
key: 1,
|
|
3265
3311
|
orientation: e.field.orientation
|
|
3266
3312
|
}, {
|
|
3267
|
-
default: q(() => [
|
|
3313
|
+
default: q(() => [N(G(e.field.label), 1)]),
|
|
3268
3314
|
_: 1
|
|
3269
|
-
}, 8, ["orientation"])) :
|
|
3270
|
-
e.field.type === "button" ? (z(),
|
|
3315
|
+
}, 8, ["orientation"])) : k("", !0),
|
|
3316
|
+
e.field.type === "button" ? (z(), O(Te, {
|
|
3271
3317
|
key: 2,
|
|
3272
3318
|
value: e.model,
|
|
3273
3319
|
"onUpdate:value": t[60] ||= (t) => e.model = t,
|
|
@@ -3289,9 +3335,9 @@ function Vt(e, t, n, r, i, a) {
|
|
|
3289
3335
|
"context",
|
|
3290
3336
|
"base-key-path",
|
|
3291
3337
|
"worker-host-functions"
|
|
3292
|
-
])) :
|
|
3338
|
+
])) : k("", !0)
|
|
3293
3339
|
], 64);
|
|
3294
3340
|
}
|
|
3295
|
-
var
|
|
3341
|
+
var Ut = /*#__PURE__*/ n(Ft, [["render", Ht], ["__scopeId", "data-v-4d903c12"]]);
|
|
3296
3342
|
//#endregion
|
|
3297
|
-
export {
|
|
3343
|
+
export { Ut as t };
|