liyu-pc-base 1.0.1004 → 1.0.1006
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-DWvUFWpT.js → FieldRender2-BfK8s0_7.js} +193 -184
- package/dist/{FormRender3-C8TSgzgE.js → FormRender3-eIlECKAx.js} +1 -1
- package/dist/{SearchRender-CQCgWEl9.js → SearchRender-slravb0G.js} +1 -1
- package/dist/components/index.js +4 -4
- package/dist/{components-4RFKo1I1.js → components-MVgkszD6.js} +3 -3
- package/dist/{dbViewConfig-C3rgKz6r.js → dbViewConfig-uxlv3YjE.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/liyu-pc-base.css +1 -1
- package/package.json +1 -1
|
@@ -8,16 +8,16 @@ import { N as o, P as s, k as c, n as l, s as u } from "./function-CstOzCwb.js";
|
|
|
8
8
|
import { i as d, t as f } from "./RemoteModal-DZkqi64T.js";
|
|
9
9
|
import { n as p, r as m, t as h } from "./RemoteSelectPro-CtOkFjzA.js";
|
|
10
10
|
import { t as g } from "./RemoteFilterSelect-DF906O8X.js";
|
|
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 D, computed as O, createBlock as k, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createSlots as N, createTextVNode as P, createVNode as F, defineAsyncComponent as ue, defineComponent as I, h as de, inject as fe, mergeModels as
|
|
11
|
+
import { t as ee } from "./AttributeNomTable-DHED22ju.js";
|
|
12
|
+
import { t as _ } from "./AttributeTable-muxdKpWW.js";
|
|
13
|
+
import { t as v } from "./JsonStr-JwOPdAYW.js";
|
|
14
|
+
import { t as te } from "./JsonObj-CmylW4Or.js";
|
|
15
|
+
import { t as ne } from "./RemoteText-C_zxmxfK.js";
|
|
16
|
+
import { t as re } from "./modal-tools-CZkYEwEr.js";
|
|
17
|
+
import { resolveContextValue as y } from "./components/FormRender/utils.js";
|
|
18
|
+
import { exportJsonToExcelByTokenHeader as ie } from "./utils/excel.js";
|
|
19
|
+
import { a as b, c as ae, d as x, f as oe, i as se, l as ce, n as S, o as le, r as C, s as w, t as T, u as E } from "./TinymceEditor-B6KX-4ep.js";
|
|
20
|
+
import { Fragment as D, computed as O, createBlock as k, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createSlots as N, createTextVNode as P, createVNode as F, defineAsyncComponent as ue, defineComponent as I, h as de, inject as fe, mergeModels as pe, mergeProps as L, normalizeClass as R, normalizeStyle as me, onMounted as z, onUnmounted as he, openBlock as B, reactive as V, ref as H, renderList as U, renderSlot as ge, resolveComponent as W, resolveDynamicComponent as G, toDisplayString as K, unref as _e, useModel as ve, vShow as ye, watch as q, withCtx as J, withDirectives as be } from "vue";
|
|
21
21
|
import { Modal as xe, message as Se } from "ant-design-vue";
|
|
22
22
|
import { cloneDeep as Ce, debounce as we, isArray as Te } from "lodash-es";
|
|
23
23
|
import Y from "moment";
|
|
@@ -91,7 +91,7 @@ var Ae = I({
|
|
|
91
91
|
"copy"
|
|
92
92
|
],
|
|
93
93
|
setup(e, { emit: t }) {
|
|
94
|
-
let n = V({ ...e.field.form.rules }), r = H({}), i = ue(() => import("./FormRender3-
|
|
94
|
+
let n = V({ ...e.field.form.rules }), r = H({}), i = ue(() => import("./FormRender3-eIlECKAx.js").then((e) => e.n)), a, o = () => {
|
|
95
95
|
let e = /* @__PURE__ */ new Uint8Array(16);
|
|
96
96
|
return window.crypto.getRandomValues(e), Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
97
97
|
}, s = H([]), c = o(), l = ([t, i]) => {
|
|
@@ -244,7 +244,7 @@ var Fe = /*#__PURE__*/ n(Ae, [["render", Pe], ["__scopeId", "data-v-ac57aef6"]])
|
|
|
244
244
|
layout: "inline",
|
|
245
245
|
class: "table-cell-form"
|
|
246
246
|
}, {
|
|
247
|
-
default: J(() => [be(M("div", { class:
|
|
247
|
+
default: J(() => [be(M("div", { class: R(["field-cell-item", {
|
|
248
248
|
editable: s.value,
|
|
249
249
|
"item-required": e.has_reqrired
|
|
250
250
|
}]) }, [e.field.type === "dynamicvaluefield" ? (B(), j("span", Ie, K(e.model[e.field.name]), 1)) : (B(), k(Wt, {
|
|
@@ -400,7 +400,7 @@ var Fe = /*#__PURE__*/ n(Ae, [["render", Pe], ["__scopeId", "data-v-ac57aef6"]])
|
|
|
400
400
|
r.found && We(r.value, o, e);
|
|
401
401
|
} else e.searchType === 2 ? Object.keys(t).forEach((n) => {
|
|
402
402
|
e.select_name == n && We(t[n], o, e);
|
|
403
|
-
}) : e.searchType === 3 ? We(e.value, o, e) : e.searchType === 4 ? We(
|
|
403
|
+
}) : e.searchType === 3 ? We(e.value, o, e) : e.searchType === 4 ? We(y(e.select_name, r, ["formModel", ...i]), o, e) : We(e.value, o, e);
|
|
404
404
|
}), a.push(o);
|
|
405
405
|
}), a;
|
|
406
406
|
}, Je = (e, t, n, r, i) => {
|
|
@@ -411,7 +411,7 @@ var Fe = /*#__PURE__*/ n(Ae, [["render", Pe], ["__scopeId", "data-v-ac57aef6"]])
|
|
|
411
411
|
r.found && (a[e.field_name] = r.value);
|
|
412
412
|
} else e.searchType === 2 ? Object.keys(t).forEach((n) => {
|
|
413
413
|
e.select_name == n && (a[e.field_name] = t[n]);
|
|
414
|
-
}) : e.searchType === 3 ? a[e.field_name] = e.value : e.searchType === 4 && (a[e.field_name] =
|
|
414
|
+
}) : e.searchType === 3 ? a[e.field_name] = e.value : e.searchType === 4 && (a[e.field_name] = y(e.select_name, r, ["formModel", ...i]));
|
|
415
415
|
}), a;
|
|
416
416
|
}, Ye = (e, t, n, r, i) => {
|
|
417
417
|
let a = {
|
|
@@ -587,15 +587,15 @@ var et = {
|
|
|
587
587
|
deep: !0,
|
|
588
588
|
immediate: !0
|
|
589
589
|
}), q(() => r.field, () => {
|
|
590
|
-
|
|
590
|
+
_();
|
|
591
591
|
}, { deep: !0 }), q(() => r.formModel, () => {
|
|
592
|
-
|
|
592
|
+
_();
|
|
593
593
|
}, { deep: !0 }), q(() => r.context, () => {
|
|
594
|
-
|
|
594
|
+
_();
|
|
595
595
|
}, { deep: !0 }), z(() => {
|
|
596
|
-
|
|
596
|
+
_(), y();
|
|
597
597
|
}), he(() => {
|
|
598
|
-
r.nestValidate && delete r.nestValidate[l],
|
|
598
|
+
r.nestValidate && delete r.nestValidate[l], y.cancel(), i("labels_resolved");
|
|
599
599
|
});
|
|
600
600
|
let h = O(() => {
|
|
601
601
|
let e = 0;
|
|
@@ -605,7 +605,7 @@ var et = {
|
|
|
605
605
|
}), g = O(() => (r.value || []).map((e, t) => ({
|
|
606
606
|
...e,
|
|
607
607
|
_key: t
|
|
608
|
-
}))),
|
|
608
|
+
}))), ee = (e) => {
|
|
609
609
|
if (r.field?.form?.rules) {
|
|
610
610
|
let t = r.field?.form?.rules[e];
|
|
611
611
|
if (t) {
|
|
@@ -613,7 +613,7 @@ var et = {
|
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
return !1;
|
|
616
|
-
},
|
|
616
|
+
}, _ = async () => {
|
|
617
617
|
let e = [], t = {};
|
|
618
618
|
if (e.push({
|
|
619
619
|
title: "序号",
|
|
@@ -626,7 +626,7 @@ var et = {
|
|
|
626
626
|
t[n.name] = !0;
|
|
627
627
|
let r = n.is_table_auto_width;
|
|
628
628
|
(r == null || r === "") && (r = !0);
|
|
629
|
-
let i =
|
|
629
|
+
let i = ee(n.name), a = {
|
|
630
630
|
title: n.label,
|
|
631
631
|
dataIndex: n.name,
|
|
632
632
|
key: n.name,
|
|
@@ -667,18 +667,18 @@ var et = {
|
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
669
|
f.value = e;
|
|
670
|
-
},
|
|
670
|
+
}, v = (e) => {
|
|
671
671
|
c.value.splice(e, 1), i("remove", e);
|
|
672
|
-
},
|
|
672
|
+
}, te = (e) => {
|
|
673
673
|
c.value.splice(e + 1, 0, Ce(c.value[e] || {})), i("copy", e);
|
|
674
|
-
},
|
|
674
|
+
}, ne = () => {
|
|
675
675
|
let e = [];
|
|
676
676
|
return r.field?.form?.dynamicFieldList?.forEach((t) => {
|
|
677
677
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
678
678
|
t.type === "remoteselectpro" && t.postUrl && !t.is_table_hide_column && e.push(t);
|
|
679
679
|
});
|
|
680
680
|
}), e;
|
|
681
|
-
},
|
|
681
|
+
}, re = (e, t, n) => {
|
|
682
682
|
if (!e) return !1;
|
|
683
683
|
let i = e[t.name];
|
|
684
684
|
if (!(i != null && i !== "" && !(i instanceof Array && i.length === 0))) return !1;
|
|
@@ -686,15 +686,15 @@ var et = {
|
|
|
686
686
|
if (a == null || a === "" || a instanceof Array && a.length === 0) return !0;
|
|
687
687
|
let o = r.innerModel?.[r.field.name]?.[n];
|
|
688
688
|
return !o || o[t.name] === void 0 || o[t.name] === null;
|
|
689
|
-
},
|
|
689
|
+
}, y = we(async () => {
|
|
690
690
|
if (!r.is_form_design) try {
|
|
691
|
-
let e =
|
|
691
|
+
let e = ne();
|
|
692
692
|
if (e.length === 0 || !r.value || r.value.length === 0) return;
|
|
693
693
|
let t = r.value;
|
|
694
694
|
for (let n of e) {
|
|
695
695
|
let e = [];
|
|
696
696
|
if (t.forEach((t, r) => {
|
|
697
|
-
|
|
697
|
+
re(t, n, r) && e.push({
|
|
698
698
|
rowIndex: r,
|
|
699
699
|
row: t
|
|
700
700
|
});
|
|
@@ -724,22 +724,22 @@ var et = {
|
|
|
724
724
|
r.field,
|
|
725
725
|
r.context
|
|
726
726
|
], () => {
|
|
727
|
-
|
|
727
|
+
y();
|
|
728
728
|
}, { deep: !0 });
|
|
729
|
-
let
|
|
729
|
+
let ie = O(() => {
|
|
730
730
|
if (r.innerModel) {
|
|
731
731
|
let e = r.innerModel[r.field.name] || [];
|
|
732
732
|
return (r.value || []).map((t, n) => e[n] || {});
|
|
733
733
|
}
|
|
734
734
|
return [];
|
|
735
|
-
}),
|
|
735
|
+
}), b = O(() => {
|
|
736
736
|
let e = [], t = 0;
|
|
737
737
|
for (let n of f.value) n.is_summary && e.push({ index: t }), t++;
|
|
738
738
|
return e;
|
|
739
739
|
});
|
|
740
740
|
return (e, t) => {
|
|
741
741
|
let r = W("CopyOutlined"), i = W("a-button"), a = W("DeleteOutlined"), s = W("s-table-summary-cell"), c = W("s-table-summary-row"), l = W("s-table");
|
|
742
|
-
return B(), k(
|
|
742
|
+
return B(), k(x, {
|
|
743
743
|
"dynamic-title": e.field.dynamicTitle,
|
|
744
744
|
"onUpdate:dynamicTitle": t[1] ||= (t) => e.field.dynamicTitle = t
|
|
745
745
|
}, {
|
|
@@ -760,7 +760,7 @@ var et = {
|
|
|
760
760
|
}, N({
|
|
761
761
|
headerCell: J(({ column: e }) => [M("span", null, K(e.title), 1), e.has_reqrired ? (B(), j("span", et, " * ")) : A("", !0)]),
|
|
762
762
|
bodyCell: J(({ column: t, record: n }) => [t.key === "action" ? (B(), j(D, { key: 0 }, [e.lockStructure ? A("", !0) : (B(), j("div", tt, [F(i, {
|
|
763
|
-
onClick: (e) =>
|
|
763
|
+
onClick: (e) => te(n._key),
|
|
764
764
|
size: "small",
|
|
765
765
|
type: "link",
|
|
766
766
|
disabled: e.field.max_count && e.value.length >= e.field.max_count
|
|
@@ -768,7 +768,7 @@ var et = {
|
|
|
768
768
|
icon: J(() => [F(r)]),
|
|
769
769
|
_: 2
|
|
770
770
|
}, 1032, ["onClick", "disabled"]), F(i, {
|
|
771
|
-
onClick: (e) =>
|
|
771
|
+
onClick: (e) => v(n._key),
|
|
772
772
|
size: "small",
|
|
773
773
|
type: "link",
|
|
774
774
|
danger: "",
|
|
@@ -783,7 +783,7 @@ var et = {
|
|
|
783
783
|
validateInfos: o.value[n._key] || {},
|
|
784
784
|
options: e.field.form?.options || {},
|
|
785
785
|
context: e.context,
|
|
786
|
-
innerModel:
|
|
786
|
+
innerModel: ie.value[n._key],
|
|
787
787
|
globalInnerModel: e.globalInnerModel,
|
|
788
788
|
nestValidate: e.nestValidate,
|
|
789
789
|
baseKeyPath: [
|
|
@@ -811,13 +811,13 @@ var et = {
|
|
|
811
811
|
"onUpdate_model"
|
|
812
812
|
])) : A("", !0)]),
|
|
813
813
|
_: 2
|
|
814
|
-
}, [
|
|
814
|
+
}, [b.value.length > 0 ? {
|
|
815
815
|
name: "summary",
|
|
816
816
|
fn: J(() => [F(c, null, {
|
|
817
817
|
default: J(() => [F(s, { index: 0 }, {
|
|
818
818
|
default: J(() => t[2] ||= [P("合计")]),
|
|
819
819
|
_: 1
|
|
820
|
-
}), (B(!0), j(D, null, U(
|
|
820
|
+
}), (B(!0), j(D, null, U(b.value, (e) => (B(), k(s, {
|
|
821
821
|
key: e.index,
|
|
822
822
|
index: e.index
|
|
823
823
|
}, {
|
|
@@ -914,7 +914,7 @@ async function ut(e) {
|
|
|
914
914
|
}
|
|
915
915
|
}
|
|
916
916
|
} else if (t.watchType === "context") {
|
|
917
|
-
let e =
|
|
917
|
+
let e = y(t.fieldName || "", s, ["formModel", ...l]);
|
|
918
918
|
if (t.valueType === "single") {
|
|
919
919
|
let r = e;
|
|
920
920
|
if (t.valueKey && (r = r?.[t.valueKey]), r === void 0 && n !== void 0) return { value: "" };
|
|
@@ -1022,13 +1022,13 @@ var dt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ft = (e, t) =>
|
|
|
1022
1022
|
a("update:value", []);
|
|
1023
1023
|
}
|
|
1024
1024
|
});
|
|
1025
|
-
}, m = O(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("clear"))), h = O(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("add"))), g = {},
|
|
1025
|
+
}, m = O(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("clear"))), h = O(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("add"))), g = {}, ee = {}, _ = () => {
|
|
1026
1026
|
let e = [], t = n.field.form?.dynamicFieldList || [];
|
|
1027
1027
|
t.forEach((t) => {
|
|
1028
1028
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
1029
1029
|
if (t.is_table_hide_column || t.type === "dynamicvaluefield") return;
|
|
1030
1030
|
let r = { ...t };
|
|
1031
|
-
t?.name2 && (g[t.name] = t?.name2), t.type === "remoteselectpro" && (
|
|
1031
|
+
t?.name2 && (g[t.name] = t?.name2), t.type === "remoteselectpro" && (ee[t.name] = t), [
|
|
1032
1032
|
"select",
|
|
1033
1033
|
"radio",
|
|
1034
1034
|
"checkbox",
|
|
@@ -1049,7 +1049,7 @@ var dt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ft = (e, t) =>
|
|
|
1049
1049
|
let r = (0, Q.cloneDeep)(n.field.form.model || {});
|
|
1050
1050
|
Object.keys(e).forEach((t) => {
|
|
1051
1051
|
e[t].error && i.push(de("li", e[t].error + "(" + e[t].excel_position + ")")), r[t] = e[t].value, g[t] && (r[g[t]] = e[t].raw_value);
|
|
1052
|
-
let n =
|
|
1052
|
+
let n = ee[t];
|
|
1053
1053
|
if (n) {
|
|
1054
1054
|
let i = e[t].raw_value;
|
|
1055
1055
|
i != null && i !== "" && (n.mode === "default" || !n.mode) && (r[t + ".label"] = i);
|
|
@@ -1069,8 +1069,8 @@ var dt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ft = (e, t) =>
|
|
|
1069
1069
|
r.open = !1;
|
|
1070
1070
|
}
|
|
1071
1071
|
});
|
|
1072
|
-
|
|
1073
|
-
},
|
|
1072
|
+
re(r);
|
|
1073
|
+
}, v = H(!1), te = (e) => {
|
|
1074
1074
|
if (n.field?.form?.rules) {
|
|
1075
1075
|
let t = n.field?.form?.rules[e];
|
|
1076
1076
|
if (t) {
|
|
@@ -1078,32 +1078,32 @@ var dt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ft = (e, t) =>
|
|
|
1078
1078
|
}
|
|
1079
1079
|
}
|
|
1080
1080
|
return !1;
|
|
1081
|
-
},
|
|
1082
|
-
|
|
1081
|
+
}, ne = () => {
|
|
1082
|
+
v.value = !0;
|
|
1083
1083
|
let e = [], t = [];
|
|
1084
1084
|
(n.field.form?.dynamicFieldList || []).forEach((r) => {
|
|
1085
1085
|
r.children instanceof Array && r.children.forEach((r) => {
|
|
1086
|
-
r.is_hide || r.is_table_hide_column || r.type !== "dynamicvaluefield" && (e.push(
|
|
1086
|
+
r.is_hide || r.is_table_hide_column || r.type !== "dynamicvaluefield" && (e.push(te(r.name) ? { title: [r.label, {
|
|
1087
1087
|
text: "[必填]",
|
|
1088
1088
|
color: "FFFF0000"
|
|
1089
1089
|
}] } : { title: [r.label] }), n.value && n.value.length > 0 ? t.push(n.value[0][r.name] ? n.value[0][r.name].toString() : "") : t.push(""));
|
|
1090
1090
|
});
|
|
1091
|
-
}),
|
|
1091
|
+
}), ie({
|
|
1092
1092
|
data: [t],
|
|
1093
1093
|
autoWidth: !0,
|
|
1094
1094
|
filename: n.field.label || "导入模板",
|
|
1095
1095
|
header: e
|
|
1096
1096
|
}), setTimeout(() => {
|
|
1097
|
-
|
|
1097
|
+
v.value = !1;
|
|
1098
1098
|
}, 1500);
|
|
1099
|
-
},
|
|
1099
|
+
}, y = O(() => n.field.min_count ?? 0), b = O(() => {
|
|
1100
1100
|
if (n.innerModel) {
|
|
1101
1101
|
n.innerModel[n.field.name] || (n.innerModel[n.field.name] = []);
|
|
1102
1102
|
for (let e = 0; e < n.value.length; e++) n.innerModel[n.field.name][e] || (n.innerModel[n.field.name][e] = {});
|
|
1103
1103
|
return n.innerModel[n.field.name];
|
|
1104
1104
|
}
|
|
1105
1105
|
return [];
|
|
1106
|
-
}),
|
|
1106
|
+
}), ae = async (e) => {
|
|
1107
1107
|
if (e.code) {
|
|
1108
1108
|
let t;
|
|
1109
1109
|
try {
|
|
@@ -1132,17 +1132,17 @@ var dt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ft = (e, t) =>
|
|
|
1132
1132
|
a("update:value", e);
|
|
1133
1133
|
}
|
|
1134
1134
|
}
|
|
1135
|
-
},
|
|
1135
|
+
}, oe = () => {
|
|
1136
1136
|
let e = n.value || [];
|
|
1137
1137
|
e.push((0, Q.cloneDeep)(n.field.form.model || {})), a("update:value", e);
|
|
1138
|
-
},
|
|
1138
|
+
}, se = (e) => {
|
|
1139
1139
|
let t = n.value || [];
|
|
1140
1140
|
t.splice(e, 1), a("update:value", t);
|
|
1141
|
-
},
|
|
1141
|
+
}, ce = (e) => {
|
|
1142
1142
|
let t = n.value || [], r = t[e];
|
|
1143
1143
|
if (!r || n.field.max_count && t.length >= n.field.max_count) return;
|
|
1144
1144
|
let i = (0, Q.cloneDeep)(r);
|
|
1145
|
-
for (let e of
|
|
1145
|
+
for (let e of C.value) e.watchType === "serial" && delete i[e.name];
|
|
1146
1146
|
t.splice(e + 1, 0, i);
|
|
1147
1147
|
let o = /* @__PURE__ */ new Set();
|
|
1148
1148
|
for (let e of [n.innerModel, n.globalInnerModel]) {
|
|
@@ -1152,10 +1152,10 @@ var dt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ft = (e, t) =>
|
|
|
1152
1152
|
o.forEach((t) => {
|
|
1153
1153
|
t.splice(e + 1, 0, (0, Q.cloneDeep)(t[e] || {}));
|
|
1154
1154
|
}), a("update:value", t);
|
|
1155
|
-
},
|
|
1155
|
+
}, S = (0, Q.debounce)(() => {
|
|
1156
1156
|
o.value = window.innerHeight - 165;
|
|
1157
|
-
}, 200),
|
|
1158
|
-
|
|
1157
|
+
}, 200), le = () => {
|
|
1158
|
+
re(V({
|
|
1159
1159
|
open: !0,
|
|
1160
1160
|
loading: !1,
|
|
1161
1161
|
component: "InnerFormDesignModal",
|
|
@@ -1175,46 +1175,50 @@ var dt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ft = (e, t) =>
|
|
|
1175
1175
|
}));
|
|
1176
1176
|
};
|
|
1177
1177
|
q(() => n.value, (e) => {
|
|
1178
|
-
if (!(e instanceof Array) || e.length <
|
|
1178
|
+
if (!(e instanceof Array) || e.length < y.value) {
|
|
1179
1179
|
let t = [...e || []];
|
|
1180
|
-
for (; t.length <
|
|
1180
|
+
for (; t.length < y.value;) t.push((0, Q.cloneDeep)(n.field.form.model || {}));
|
|
1181
1181
|
a("update:value", t);
|
|
1182
1182
|
}
|
|
1183
1183
|
});
|
|
1184
|
-
let
|
|
1184
|
+
let C = O(() => {
|
|
1185
1185
|
let e = [];
|
|
1186
1186
|
return (n.field?.form?.dynamicFieldList || []).forEach((t) => {
|
|
1187
1187
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
1188
1188
|
t.type === "dynamicvaluefield" && e.push(t);
|
|
1189
1189
|
});
|
|
1190
1190
|
}), e;
|
|
1191
|
-
}),
|
|
1191
|
+
}), w = O(() => {
|
|
1192
1192
|
let e = [];
|
|
1193
1193
|
return (n.field?.form?.dynamicFieldList || []).forEach((t) => {
|
|
1194
1194
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
1195
1195
|
(t.extraAddonBefore && t.addonBefore || t.extraAddonAfter && t.addonAfter) && e.push(t);
|
|
1196
1196
|
});
|
|
1197
1197
|
}), e;
|
|
1198
|
-
}),
|
|
1199
|
-
|
|
1198
|
+
}), T = H(!1), E = H(!1), N = O(() => n.field?.showType !== "table" || n.is_form_design ? !1 : (n.field?.form?.dynamicFieldList || []).some((e) => e.children instanceof Array && e.children.some((e) => e.type === "remoteselectpro" && e.postUrl && !e.is_table_hide_column))), I = H(!1), pe = () => {
|
|
1199
|
+
I.value = !1, L(), R();
|
|
1200
1200
|
}, L = (0, Q.debounce)(async () => {
|
|
1201
|
-
if (
|
|
1202
|
-
|
|
1201
|
+
if (T.value) {
|
|
1202
|
+
E.value = !0;
|
|
1203
|
+
return;
|
|
1204
|
+
}
|
|
1205
|
+
if (!I.value) {
|
|
1206
|
+
T.value = !0;
|
|
1203
1207
|
try {
|
|
1204
1208
|
let e = n.value;
|
|
1205
|
-
if (!e || e.length === 0 ||
|
|
1209
|
+
if (!e || e.length === 0 || C.value.length === 0) return;
|
|
1206
1210
|
let t = !1, r = [...e];
|
|
1207
|
-
for (let
|
|
1208
|
-
if (
|
|
1209
|
-
let
|
|
1210
|
-
for (let
|
|
1211
|
-
let
|
|
1212
|
-
(
|
|
1211
|
+
for (let a of C.value) {
|
|
1212
|
+
if (a.watchType !== "serial" || i.value && a.serialConfig?.mode === "M5") continue;
|
|
1213
|
+
let o = [];
|
|
1214
|
+
for (let e = 0; e < r.length; e++) {
|
|
1215
|
+
let t = r[e]?.[a.name];
|
|
1216
|
+
(t == null || t === "") && o.push(e);
|
|
1213
1217
|
}
|
|
1214
|
-
if (
|
|
1218
|
+
if (o.length === 0) continue;
|
|
1215
1219
|
if (n.is_form_design) {
|
|
1216
|
-
let
|
|
1217
|
-
field:
|
|
1220
|
+
let e = await ut({
|
|
1221
|
+
field: a,
|
|
1218
1222
|
currentValue: void 0,
|
|
1219
1223
|
innerModel: null,
|
|
1220
1224
|
globalInnerModel: n.globalInnerModel,
|
|
@@ -1225,70 +1229,75 @@ var dt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ft = (e, t) =>
|
|
|
1225
1229
|
is_form_design: !0,
|
|
1226
1230
|
lock_structure: i.value
|
|
1227
1231
|
});
|
|
1228
|
-
if (
|
|
1232
|
+
if (e && e.value !== void 0 && e.value !== null) for (let n of o) r[n] = {
|
|
1229
1233
|
...r[n],
|
|
1230
|
-
[
|
|
1234
|
+
[a.name]: e.value
|
|
1231
1235
|
}, t = !0;
|
|
1232
1236
|
continue;
|
|
1233
1237
|
}
|
|
1234
|
-
let
|
|
1235
|
-
row:
|
|
1236
|
-
key: it(
|
|
1238
|
+
let s = [...n.baseKeyPath || [], n.field.name], c = o.map((e) => ({
|
|
1239
|
+
row: e,
|
|
1240
|
+
key: it(a, [...s, e])
|
|
1237
1241
|
})).filter((e) => !at(e.key));
|
|
1238
|
-
if (
|
|
1239
|
-
let
|
|
1240
|
-
if (ot(
|
|
1241
|
-
let { codes:
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
[e.
|
|
1242
|
+
if (c.length === 0) continue;
|
|
1243
|
+
let l = c.map((e) => e.key);
|
|
1244
|
+
if (ot(l)) try {
|
|
1245
|
+
let { codes: i, error: o } = await ct(a, c.length);
|
|
1246
|
+
if (n.value !== e) return;
|
|
1247
|
+
o || !i ? console.error("流水号批量分配失败:", o) : c.forEach((e, n) => {
|
|
1248
|
+
r[e.row] = {
|
|
1249
|
+
...r[e.row],
|
|
1250
|
+
[a.name]: i[n]
|
|
1246
1251
|
}, t = !0;
|
|
1247
1252
|
});
|
|
1248
1253
|
} finally {
|
|
1249
|
-
st(
|
|
1254
|
+
st(l);
|
|
1250
1255
|
}
|
|
1251
1256
|
}
|
|
1252
|
-
for (let
|
|
1253
|
-
let
|
|
1257
|
+
for (let a = 0; a < r.length; a++) {
|
|
1258
|
+
let o = b.value[a], s = [
|
|
1254
1259
|
...n.baseKeyPath || [],
|
|
1255
1260
|
n.field.name,
|
|
1256
|
-
|
|
1261
|
+
a
|
|
1257
1262
|
];
|
|
1258
|
-
for (let
|
|
1259
|
-
if (
|
|
1260
|
-
let
|
|
1261
|
-
field:
|
|
1262
|
-
currentValue:
|
|
1263
|
-
innerModel:
|
|
1263
|
+
for (let c of C.value) {
|
|
1264
|
+
if (c.watchType === "serial") continue;
|
|
1265
|
+
let l = r[a]?.[c.name], u = await ut({
|
|
1266
|
+
field: c,
|
|
1267
|
+
currentValue: l,
|
|
1268
|
+
innerModel: o,
|
|
1264
1269
|
globalInnerModel: n.globalInnerModel,
|
|
1265
|
-
formModel: r[
|
|
1270
|
+
formModel: r[a],
|
|
1266
1271
|
context: n.context,
|
|
1267
|
-
baseKeyPath:
|
|
1272
|
+
baseKeyPath: s,
|
|
1268
1273
|
workerHostFunctions: n.workerHostFunctions || {},
|
|
1269
1274
|
is_form_design: n.is_form_design,
|
|
1270
1275
|
lock_structure: i.value
|
|
1271
1276
|
});
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
[
|
|
1277
|
+
if (n.value !== e) return;
|
|
1278
|
+
u && u.value !== void 0 && u.value !== null && (r[a] = {
|
|
1279
|
+
...r[a],
|
|
1280
|
+
[c.name]: u.value
|
|
1275
1281
|
}, t = !0);
|
|
1276
1282
|
}
|
|
1277
1283
|
}
|
|
1278
|
-
|
|
1284
|
+
if (t) {
|
|
1285
|
+
if (n.value !== e) return;
|
|
1286
|
+
a("update:value", r);
|
|
1287
|
+
}
|
|
1279
1288
|
} finally {
|
|
1280
|
-
|
|
1289
|
+
T.value = !1, E.value && (E.value = !1, L());
|
|
1281
1290
|
}
|
|
1282
1291
|
}
|
|
1283
1292
|
}, 200), R = (0, Q.debounce)(() => {
|
|
1284
1293
|
let e = n.value;
|
|
1285
|
-
if (!e || e.length === 0 ||
|
|
1294
|
+
if (!e || e.length === 0 || w.value.length === 0) return;
|
|
1286
1295
|
let t = !1, r = [...e];
|
|
1287
1296
|
for (let e = 0; e < r.length; e++) {
|
|
1288
1297
|
let n = r[e];
|
|
1289
1298
|
if (!n || typeof n != "object") continue;
|
|
1290
1299
|
let i = n;
|
|
1291
|
-
for (let e of
|
|
1300
|
+
for (let e of w.value) {
|
|
1292
1301
|
let r = i[e.name], a = ht(e, r);
|
|
1293
1302
|
a !== r && (i === n && (i = { ...n }), i[e.name] = a, t = !0);
|
|
1294
1303
|
}
|
|
@@ -1301,20 +1310,20 @@ var dt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ft = (e, t) =>
|
|
|
1301
1310
|
n.context,
|
|
1302
1311
|
n.field
|
|
1303
1312
|
], () => {
|
|
1304
|
-
|
|
1313
|
+
N.value ? I.value = !0 : I.value = !1, L(), R();
|
|
1305
1314
|
}, {
|
|
1306
1315
|
deep: !0,
|
|
1307
1316
|
immediate: !0
|
|
1308
1317
|
}), q(() => [n.innerModel, n.globalInnerModel], () => {
|
|
1309
1318
|
L(), R();
|
|
1310
1319
|
}, { deep: !0 }), z(() => {
|
|
1311
|
-
if (window.addEventListener("resize",
|
|
1320
|
+
if (window.addEventListener("resize", S), S(), !(n.value instanceof Array) || n.value.length < y.value) {
|
|
1312
1321
|
let e = [...n.value || []];
|
|
1313
|
-
for (; e.length <
|
|
1322
|
+
for (; e.length < y.value;) e.push((0, Q.cloneDeep)(n.field.form.model || {}));
|
|
1314
1323
|
a("update:value", e);
|
|
1315
1324
|
}
|
|
1316
1325
|
}), he(() => {
|
|
1317
|
-
window.removeEventListener("resize",
|
|
1326
|
+
window.removeEventListener("resize", S), S.cancel(), L.cancel(), R.cancel();
|
|
1318
1327
|
}), (e, t) => {
|
|
1319
1328
|
let n = W("a-button");
|
|
1320
1329
|
return B(), j(D, null, [M("div", gt, [
|
|
@@ -1322,7 +1331,7 @@ var dt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ft = (e, t) =>
|
|
|
1322
1331
|
key: 0,
|
|
1323
1332
|
type: "primary",
|
|
1324
1333
|
size: "small",
|
|
1325
|
-
onClick:
|
|
1334
|
+
onClick: le,
|
|
1326
1335
|
ghost: !0
|
|
1327
1336
|
}, {
|
|
1328
1337
|
default: J(() => t[0] ||= [P(" 编辑表单 ")]),
|
|
@@ -1342,8 +1351,8 @@ var dt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ft = (e, t) =>
|
|
|
1342
1351
|
key: 2,
|
|
1343
1352
|
size: "small",
|
|
1344
1353
|
type: "primary",
|
|
1345
|
-
loading:
|
|
1346
|
-
onClick:
|
|
1354
|
+
loading: v.value,
|
|
1355
|
+
onClick: ne
|
|
1347
1356
|
}, {
|
|
1348
1357
|
default: J(() => t[2] ||= [P(" 下载导入模版 ")]),
|
|
1349
1358
|
_: 1
|
|
@@ -1352,23 +1361,23 @@ var dt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ft = (e, t) =>
|
|
|
1352
1361
|
key: 3,
|
|
1353
1362
|
size: "small",
|
|
1354
1363
|
type: "primary",
|
|
1355
|
-
onClick:
|
|
1364
|
+
onClick: _
|
|
1356
1365
|
}, {
|
|
1357
1366
|
default: J(() => t[3] ||= [P(" 导入Excel数据 ")]),
|
|
1358
1367
|
_: 1
|
|
1359
1368
|
})) : A("", !0),
|
|
1360
|
-
h.value && (!e.field.custom_btn_list?.length || e.field.max_count !==
|
|
1369
|
+
h.value && (!e.field.custom_btn_list?.length || e.field.max_count !== y.value) && !i.value ? (B(), k(n, {
|
|
1361
1370
|
key: 4,
|
|
1362
1371
|
type: "primary",
|
|
1363
1372
|
size: "small",
|
|
1364
|
-
onClick:
|
|
1373
|
+
onClick: oe,
|
|
1365
1374
|
disabled: e.field.max_count && e.value.length >= e.field.max_count
|
|
1366
1375
|
}, {
|
|
1367
1376
|
icon: J(() => [F(_e(De))]),
|
|
1368
1377
|
default: J(() => [P(" " + K(e.field.btn_title || "添加"), 1)]),
|
|
1369
1378
|
_: 1
|
|
1370
1379
|
}, 8, ["disabled"])) : A("", !0),
|
|
1371
|
-
(B(!0), j(D, null, U(e.field.custom_btn_list, (t) => (B(), k(
|
|
1380
|
+
(B(!0), j(D, null, U(e.field.custom_btn_list, (t) => (B(), k(x, {
|
|
1372
1381
|
action_code_id: t.action_code_id,
|
|
1373
1382
|
code: t.code,
|
|
1374
1383
|
"onUpdate:code": (e) => t.code = e,
|
|
@@ -1381,7 +1390,7 @@ var dt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ft = (e, t) =>
|
|
|
1381
1390
|
size: "small",
|
|
1382
1391
|
type: t.type,
|
|
1383
1392
|
danger: t.danger,
|
|
1384
|
-
onClick: (e) =>
|
|
1393
|
+
onClick: (e) => ae(t),
|
|
1385
1394
|
disabled: e.field.max_count && e.value.length >= e.field.max_count && t.action === "add"
|
|
1386
1395
|
}, {
|
|
1387
1396
|
default: J(() => [P(K(t.label), 1)]),
|
|
@@ -1411,12 +1420,12 @@ var dt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ft = (e, t) =>
|
|
|
1411
1420
|
nestValidate: e.nestValidate,
|
|
1412
1421
|
"base-key-path": e.baseKeyPath,
|
|
1413
1422
|
"worker-host-functions": e.workerHostFunctions,
|
|
1414
|
-
min_count:
|
|
1423
|
+
min_count: y.value,
|
|
1415
1424
|
"lock-structure": i.value,
|
|
1416
1425
|
formModel: e.formModel,
|
|
1417
|
-
onRemove:
|
|
1418
|
-
onCopy:
|
|
1419
|
-
onLabels_resolved:
|
|
1426
|
+
onRemove: se,
|
|
1427
|
+
onCopy: ce,
|
|
1428
|
+
onLabels_resolved: pe
|
|
1420
1429
|
}, null, 8, [
|
|
1421
1430
|
"value",
|
|
1422
1431
|
"field",
|
|
@@ -1438,17 +1447,17 @@ var dt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ft = (e, t) =>
|
|
|
1438
1447
|
options: e.field.form?.options,
|
|
1439
1448
|
alwaysShowGroup: e.alwaysShowGroup,
|
|
1440
1449
|
is_form_design: e.is_form_design,
|
|
1441
|
-
"inner-model":
|
|
1450
|
+
"inner-model": b.value[n],
|
|
1442
1451
|
"global-inner-model": e.globalInnerModel,
|
|
1443
1452
|
modalTypeList: e.modalTypeList,
|
|
1444
1453
|
modalType: e.modalType,
|
|
1445
1454
|
nestValidate: e.nestValidate,
|
|
1446
|
-
min_count:
|
|
1455
|
+
min_count: y.value,
|
|
1447
1456
|
listLength: e.value.length,
|
|
1448
1457
|
context: e.context,
|
|
1449
1458
|
"lock-structure": i.value,
|
|
1450
|
-
onRemove: (e) =>
|
|
1451
|
-
onCopy: (e) =>
|
|
1459
|
+
onRemove: (e) => se(n),
|
|
1460
|
+
onCopy: (e) => ce(n),
|
|
1452
1461
|
"base-key-path": [
|
|
1453
1462
|
...e.baseKeyPath,
|
|
1454
1463
|
e.field.name,
|
|
@@ -1479,7 +1488,7 @@ var dt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ft = (e, t) =>
|
|
|
1479
1488
|
]))), 256))], 64);
|
|
1480
1489
|
};
|
|
1481
1490
|
}
|
|
1482
|
-
}), [["__scopeId", "data-v-
|
|
1491
|
+
}), [["__scopeId", "data-v-ed084a5c"]]), vt = {
|
|
1483
1492
|
key: 0,
|
|
1484
1493
|
class: "error-msg"
|
|
1485
1494
|
}, yt = /*#__PURE__*/ n(/* @__PURE__ */ I({
|
|
@@ -1522,20 +1531,20 @@ var dt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ft = (e, t) =>
|
|
|
1522
1531
|
},
|
|
1523
1532
|
emits: ["update:value"],
|
|
1524
1533
|
setup(e, { emit: t }) {
|
|
1525
|
-
let n = e, r = t, i = fe("FORM_LOCK_STRUCTURE", H(!1)), a = O(() => !!_e(i)), o = H(null), s = H(n.value || ""), c = O(() => n.is_form_design ? s.value : n.value), l = (0, Q.debounce)(async (e, t, i,
|
|
1526
|
-
let
|
|
1534
|
+
let n = e, r = t, i = fe("FORM_LOCK_STRUCTURE", H(!1)), a = O(() => !!_e(i)), o = H(null), s = H(n.value || ""), c = O(() => n.is_form_design ? s.value : n.value), l = 0, u = (0, Q.debounce)(async (e, t, i, u) => {
|
|
1535
|
+
let d = l, f = a.value, p = await ut({
|
|
1527
1536
|
field: i,
|
|
1528
1537
|
currentValue: c.value,
|
|
1529
1538
|
innerModel: e,
|
|
1530
1539
|
globalInnerModel: t,
|
|
1531
|
-
formModel:
|
|
1540
|
+
formModel: u,
|
|
1532
1541
|
context: n.context,
|
|
1533
1542
|
baseKeyPath: n.baseKeyPath,
|
|
1534
1543
|
workerHostFunctions: n.workerHostFunctions || {},
|
|
1535
1544
|
is_form_design: n.is_form_design,
|
|
1536
1545
|
lock_structure: a.value
|
|
1537
1546
|
});
|
|
1538
|
-
|
|
1547
|
+
d === l && (a.value && !f || p && (n.is_form_design ? s.value = p.value ?? "" : p.value !== void 0 && p.value !== null && r("update:value", p.value), (i.watchType === "code" || i.watchType === "serial") && (o.value = p.error || null)));
|
|
1539
1548
|
}, 200);
|
|
1540
1549
|
return q(() => [
|
|
1541
1550
|
n.innerModel,
|
|
@@ -1544,13 +1553,13 @@ var dt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ft = (e, t) =>
|
|
|
1544
1553
|
n.formModel,
|
|
1545
1554
|
n.context
|
|
1546
1555
|
], ([e, t, n, r]) => {
|
|
1547
|
-
l(e, t, n, r);
|
|
1556
|
+
l++, u(e, t, n, r);
|
|
1548
1557
|
}, {
|
|
1549
1558
|
immediate: !0,
|
|
1550
1559
|
deep: !0
|
|
1551
1560
|
}), (t, n) => {
|
|
1552
1561
|
let r = W("a-input");
|
|
1553
|
-
return B(), j(D, null, [F(
|
|
1562
|
+
return B(), j(D, null, [F(x, {
|
|
1554
1563
|
"value-code": e.field,
|
|
1555
1564
|
"show-debug-code": e.field.watchType === "code"
|
|
1556
1565
|
}, {
|
|
@@ -1564,9 +1573,9 @@ var dt = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ft = (e, t) =>
|
|
|
1564
1573
|
}, 8, ["value-code", "show-debug-code"]), o.value ? (B(), j("span", vt, K(o.value), 1)) : A("", !0)], 64);
|
|
1565
1574
|
};
|
|
1566
1575
|
}
|
|
1567
|
-
}), [["__scopeId", "data-v-
|
|
1576
|
+
}), [["__scopeId", "data-v-b7203730"]]), bt = I({
|
|
1568
1577
|
name: "FormButton",
|
|
1569
|
-
components: { debugCode:
|
|
1578
|
+
components: { debugCode: x },
|
|
1570
1579
|
props: {
|
|
1571
1580
|
field: {
|
|
1572
1581
|
type: Object,
|
|
@@ -1730,7 +1739,7 @@ function Dt(e, t, n, r, i, a) {
|
|
|
1730
1739
|
}
|
|
1731
1740
|
var Ot = /*#__PURE__*/ n(Ct, [["render", Dt], ["__scopeId", "data-v-7a319069"]]), kt = { key: 0 }, At = { key: 0 }, jt = { key: 0 }, Mt = { key: 0 }, Nt = /*#__PURE__*/ n(/* @__PURE__ */ I({
|
|
1732
1741
|
__name: "InputPro",
|
|
1733
|
-
props: /*@__PURE__*/
|
|
1742
|
+
props: /*@__PURE__*/ pe({ field: {
|
|
1734
1743
|
type: Object,
|
|
1735
1744
|
required: !0
|
|
1736
1745
|
} }, {
|
|
@@ -2011,33 +2020,33 @@ var Ot = /*#__PURE__*/ n(Ct, [["render", Dt], ["__scopeId", "data-v-7a319069"]])
|
|
|
2011
2020
|
};
|
|
2012
2021
|
},
|
|
2013
2022
|
components: {
|
|
2014
|
-
IconSelect:
|
|
2015
|
-
RichTextEditor:
|
|
2016
|
-
Upload:
|
|
2017
|
-
RemoteCascaderPro:
|
|
2018
|
-
RemoteTreeSelectPro:
|
|
2023
|
+
IconSelect: se,
|
|
2024
|
+
RichTextEditor: b,
|
|
2025
|
+
Upload: le,
|
|
2026
|
+
RemoteCascaderPro: w,
|
|
2027
|
+
RemoteTreeSelectPro: ae,
|
|
2019
2028
|
RemoteSelectPro: h,
|
|
2020
|
-
RemoteComplete:
|
|
2021
|
-
AttributeTable:
|
|
2022
|
-
AttributeNomTable:
|
|
2029
|
+
RemoteComplete: ce,
|
|
2030
|
+
AttributeTable: _,
|
|
2031
|
+
AttributeNomTable: ee,
|
|
2023
2032
|
RemoteFilterSelect: g,
|
|
2024
2033
|
RemoteModal: f,
|
|
2025
2034
|
RemoteSelect: t,
|
|
2026
2035
|
RemoteCascader: r,
|
|
2027
2036
|
RemoteTreeSelect: m,
|
|
2028
2037
|
RemoteTable: p,
|
|
2029
|
-
JsonStr:
|
|
2030
|
-
JsonObj:
|
|
2031
|
-
RemoteText:
|
|
2032
|
-
RemoteTablePro:
|
|
2038
|
+
JsonStr: v,
|
|
2039
|
+
JsonObj: te,
|
|
2040
|
+
RemoteText: ne,
|
|
2041
|
+
RemoteTablePro: E,
|
|
2033
2042
|
FormTemplate: _t,
|
|
2034
2043
|
DynamicValueField: yt,
|
|
2035
2044
|
FormButton: St,
|
|
2036
2045
|
PlusOutlined: De,
|
|
2037
|
-
MonthPicker:
|
|
2038
|
-
MonthRangePicker:
|
|
2039
|
-
CodeEditor:
|
|
2040
|
-
TinymceEditor:
|
|
2046
|
+
MonthPicker: C,
|
|
2047
|
+
MonthRangePicker: S,
|
|
2048
|
+
CodeEditor: oe,
|
|
2049
|
+
TinymceEditor: T,
|
|
2041
2050
|
InputNumberPro: Ot,
|
|
2042
2051
|
InputPro: Nt
|
|
2043
2052
|
}
|
|
@@ -2062,9 +2071,9 @@ var Ot = /*#__PURE__*/ n(Ct, [["render", Dt], ["__scopeId", "data-v-7a319069"]])
|
|
|
2062
2071
|
"font-size": "17px"
|
|
2063
2072
|
} };
|
|
2064
2073
|
function Ut(e, t, n, r, i, a) {
|
|
2065
|
-
let o = W("a-switch"), s = W("plus-outlined"), c = W("a-button"), l = W("a-tag"), u = W("a-rate"), d = W("InputPro"), f = W("a-input-number"), p = W("InputNumberPro"), m = W("a-input"), h = W("attribute-table"), g = W("attribute-nom-table"),
|
|
2074
|
+
let o = W("a-switch"), s = W("plus-outlined"), c = W("a-button"), l = W("a-tag"), u = W("a-rate"), d = W("InputPro"), f = W("a-input-number"), p = W("InputNumberPro"), m = W("a-input"), h = W("attribute-table"), g = W("attribute-nom-table"), ee = W("a-textarea"), _ = W("json-str"), v = W("json-obj"), te = W("rich-text-editor"), ne = W("a-input-password"), re = W("a-select-option"), y = W("a-select"), ie = W("a-cascader"), b = W("remote-cascader"), ae = W("remote-cascader-pro"), x = W("month-picker"), oe = W("a-date-picker"), se = W("a-range-picker"), ce = W("month-range-picker"), S = W("a-time-picker"), le = W("a-time-range-picker"), C = W("a-radio"), w = W("a-radio-group"), T = W("a-checkbox"), E = W("a-checkbox-group"), O = W("a-tree-select"), ue = W("remote-filter-select"), I = W("remote-select"), de = W("remote-select-pro"), fe = W("remote-complete"), pe = W("remote-tree-select"), R = W("remote-tree-select-pro"), z = W("remote-modal"), he = W("remote-table"), V = W("remote-table-pro"), H = W("FormTemplate"), _e = W("DynamicValueField"), ve = W("remote-text"), ye = W("upload"), q = W("code-editor"), be = W("TinymceEditor"), xe = W("icon-select"), Se = W("a-form-item"), Ce = W("a-divider"), we = W("FormButton");
|
|
2066
2075
|
return B(), j(D, null, [
|
|
2067
|
-
e.field.type !== "divider" && e.field.type !== "button" && (e.field?.is_search_show !== !1 || e.field_render_show) ? (B(), k(Se,
|
|
2076
|
+
e.field.type !== "divider" && e.field.type !== "button" && (e.field?.is_search_show !== !1 || e.field_render_show) ? (B(), k(Se, L({
|
|
2068
2077
|
key: 0,
|
|
2069
2078
|
extra: e.field.extra,
|
|
2070
2079
|
name: e.field.name
|
|
@@ -2227,7 +2236,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
2227
2236
|
"base-key-path",
|
|
2228
2237
|
"worker-host-functions"
|
|
2229
2238
|
])) : A("", !0),
|
|
2230
|
-
e.field.type === "textarea" ? (B(), k(
|
|
2239
|
+
e.field.type === "textarea" ? (B(), k(ee, {
|
|
2231
2240
|
key: 12,
|
|
2232
2241
|
value: e.model,
|
|
2233
2242
|
"onUpdate:value": t[10] ||= (t) => e.model = t,
|
|
@@ -2247,7 +2256,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
2247
2256
|
"disabled",
|
|
2248
2257
|
"placeholder"
|
|
2249
2258
|
])) : A("", !0),
|
|
2250
|
-
e.field.type === "jsonstr" ? (B(), k(
|
|
2259
|
+
e.field.type === "jsonstr" ? (B(), k(_, {
|
|
2251
2260
|
key: 13,
|
|
2252
2261
|
value: e.model,
|
|
2253
2262
|
"onUpdate:value": t[11] ||= (t) => e.model = t,
|
|
@@ -2262,7 +2271,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
2262
2271
|
"rows",
|
|
2263
2272
|
"placeholder"
|
|
2264
2273
|
])) : A("", !0),
|
|
2265
|
-
e.field.type === "jsonobj" ? (B(), k(
|
|
2274
|
+
e.field.type === "jsonobj" ? (B(), k(v, {
|
|
2266
2275
|
key: 14,
|
|
2267
2276
|
value: e.model,
|
|
2268
2277
|
"onUpdate:value": t[12] ||= (t) => e.model = t,
|
|
@@ -2279,7 +2288,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
2279
2288
|
"fullWidthButton",
|
|
2280
2289
|
"darkTheme"
|
|
2281
2290
|
])) : A("", !0),
|
|
2282
|
-
e.field.type === "richtexteditor" ? (B(), k(
|
|
2291
|
+
e.field.type === "richtexteditor" ? (B(), k(te, {
|
|
2283
2292
|
key: 15,
|
|
2284
2293
|
value: e.model,
|
|
2285
2294
|
"onUpdate:value": t[13] ||= (t) => e.model = t,
|
|
@@ -2290,7 +2299,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
2290
2299
|
"readOnly",
|
|
2291
2300
|
"placeholder"
|
|
2292
2301
|
])) : A("", !0),
|
|
2293
|
-
e.field.type === "password" ? (B(), k(
|
|
2302
|
+
e.field.type === "password" ? (B(), k(ne, {
|
|
2294
2303
|
key: 16,
|
|
2295
2304
|
value: e.model,
|
|
2296
2305
|
"onUpdate:value": t[14] ||= (t) => e.model = t,
|
|
@@ -2322,7 +2331,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
2322
2331
|
"step",
|
|
2323
2332
|
"visibilityToggle"
|
|
2324
2333
|
])) : A("", !0),
|
|
2325
|
-
e.field.type === "select" ? (B(), j(D, { key: 17 }, [e.field.mode === "default" ? (B(), k(
|
|
2334
|
+
e.field.type === "select" ? (B(), j(D, { key: 17 }, [e.field.mode === "default" ? (B(), k(y, {
|
|
2326
2335
|
key: 0,
|
|
2327
2336
|
value: e.model,
|
|
2328
2337
|
"onUpdate:value": t[16] ||= (t) => e.model = t,
|
|
@@ -2337,7 +2346,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
2337
2346
|
size: "small",
|
|
2338
2347
|
style: { width: "100%" }
|
|
2339
2348
|
}, {
|
|
2340
|
-
default: J(() => [(B(!0), j(D, null, U(e.options, (t) => (B(), k(
|
|
2349
|
+
default: J(() => [(B(!0), j(D, null, U(e.options, (t) => (B(), k(re, {
|
|
2341
2350
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2342
2351
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2343
2352
|
}, {
|
|
@@ -2354,7 +2363,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
2354
2363
|
"maxTagCount",
|
|
2355
2364
|
"placeholder",
|
|
2356
2365
|
"show-search"
|
|
2357
|
-
])) : (B(), k(
|
|
2366
|
+
])) : (B(), k(y, {
|
|
2358
2367
|
key: 1,
|
|
2359
2368
|
value: e.model,
|
|
2360
2369
|
"onUpdate:value": t[17] ||= (t) => e.model = t,
|
|
@@ -2369,7 +2378,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
2369
2378
|
size: "small",
|
|
2370
2379
|
style: { "min-width": "150px" }
|
|
2371
2380
|
}, {
|
|
2372
|
-
default: J(() => [(B(!0), j(D, null, U(e.options, (t, n) => (B(), k(
|
|
2381
|
+
default: J(() => [(B(!0), j(D, null, U(e.options, (t, n) => (B(), k(re, {
|
|
2373
2382
|
key: n,
|
|
2374
2383
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2375
2384
|
}, {
|
|
@@ -2387,7 +2396,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
2387
2396
|
"placeholder",
|
|
2388
2397
|
"show-search"
|
|
2389
2398
|
]))], 64)) : A("", !0),
|
|
2390
|
-
e.field.type === "groupselect" ? (B(), j(D, { key: 18 }, [e.field.mode === "default" ? (B(), k(
|
|
2399
|
+
e.field.type === "groupselect" ? (B(), j(D, { key: 18 }, [e.field.mode === "default" ? (B(), k(y, {
|
|
2391
2400
|
key: 0,
|
|
2392
2401
|
value: e.model,
|
|
2393
2402
|
"onUpdate:value": t[18] ||= (t) => e.model = t,
|
|
@@ -2416,7 +2425,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
2416
2425
|
"options",
|
|
2417
2426
|
"placeholder",
|
|
2418
2427
|
"show-search"
|
|
2419
|
-
])) : (B(), k(
|
|
2428
|
+
])) : (B(), k(y, {
|
|
2420
2429
|
key: 1,
|
|
2421
2430
|
value: e.model,
|
|
2422
2431
|
"onUpdate:value": t[19] ||= (t) => e.model = t,
|
|
@@ -2446,7 +2455,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
2446
2455
|
"placeholder",
|
|
2447
2456
|
"show-search"
|
|
2448
2457
|
]))], 64)) : A("", !0),
|
|
2449
|
-
e.field.type === "cascader" ? (B(), k(
|
|
2458
|
+
e.field.type === "cascader" ? (B(), k(ie, {
|
|
2450
2459
|
key: 19,
|
|
2451
2460
|
value: e.model,
|
|
2452
2461
|
"onUpdate:value": t[20] ||= (t) => e.model = t,
|
|
@@ -2470,7 +2479,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
2470
2479
|
"options",
|
|
2471
2480
|
"placeholder"
|
|
2472
2481
|
])) : A("", !0),
|
|
2473
|
-
e.field.type === "remotecascader" ? (B(), k(
|
|
2482
|
+
e.field.type === "remotecascader" ? (B(), k(b, {
|
|
2474
2483
|
key: 20,
|
|
2475
2484
|
value: e.model,
|
|
2476
2485
|
"onUpdate:value": t[21] ||= (t) => e.model = t,
|
|
@@ -2496,7 +2505,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
2496
2505
|
"search_config",
|
|
2497
2506
|
"value-key"
|
|
2498
2507
|
])) : A("", !0),
|
|
2499
|
-
e.field.type === "remotecascaderpro" ? (B(), k(
|
|
2508
|
+
e.field.type === "remotecascaderpro" ? (B(), k(ae, {
|
|
2500
2509
|
key: 21,
|
|
2501
2510
|
label: e.labelModel,
|
|
2502
2511
|
"onUpdate:label": t[23] ||= (t) => e.labelModel = t,
|
|
@@ -2544,7 +2553,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
2544
2553
|
"is_form_design",
|
|
2545
2554
|
"placeholder"
|
|
2546
2555
|
])) : A("", !0),
|
|
2547
|
-
e.field.type === "monthpicker" ? (B(), k(
|
|
2556
|
+
e.field.type === "monthpicker" ? (B(), k(x, {
|
|
2548
2557
|
key: 22,
|
|
2549
2558
|
value: e.model,
|
|
2550
2559
|
"onUpdate:value": t[25] ||= (t) => e.model = t,
|
|
@@ -2573,7 +2582,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
2573
2582
|
"end_offset_day",
|
|
2574
2583
|
"fix_day"
|
|
2575
2584
|
])) : A("", !0),
|
|
2576
|
-
e.field.type === "datepicker" ? (B(), k(
|
|
2585
|
+
e.field.type === "datepicker" ? (B(), k(oe, {
|
|
2577
2586
|
key: 23,
|
|
2578
2587
|
value: e.model,
|
|
2579
2588
|
"onUpdate:value": t[26] ||= (t) => e.model = t,
|
|
@@ -2600,7 +2609,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
2600
2609
|
"show-time",
|
|
2601
2610
|
"value-format"
|
|
2602
2611
|
])) : A("", !0),
|
|
2603
|
-
e.field.type === "rangepicker" ? (B(), k(
|
|
2612
|
+
e.field.type === "rangepicker" ? (B(), k(se, {
|
|
2604
2613
|
key: 24,
|
|
2605
2614
|
value: e.model,
|
|
2606
2615
|
"onUpdate:value": t[27] ||= (t) => e.model = t,
|
|
@@ -2625,7 +2634,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
2625
2634
|
"value-format",
|
|
2626
2635
|
"picker"
|
|
2627
2636
|
])) : A("", !0),
|
|
2628
|
-
e.field.type === "monthrangepicker" ? (B(), k(
|
|
2637
|
+
e.field.type === "monthrangepicker" ? (B(), k(ce, {
|
|
2629
2638
|
key: 25,
|
|
2630
2639
|
value: e.model,
|
|
2631
2640
|
"onUpdate:value": t[28] ||= (t) => e.model = t,
|
|
@@ -2652,7 +2661,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
2652
2661
|
"end_offset_day",
|
|
2653
2662
|
"fix_day"
|
|
2654
2663
|
])) : A("", !0),
|
|
2655
|
-
e.field.type === "timepicker" ? (B(), k(
|
|
2664
|
+
e.field.type === "timepicker" ? (B(), k(S, {
|
|
2656
2665
|
key: 26,
|
|
2657
2666
|
value: e.model,
|
|
2658
2667
|
"onUpdate:value": t[29] ||= (t) => e.model = t,
|
|
@@ -2673,7 +2682,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
2673
2682
|
"placeholder",
|
|
2674
2683
|
"value-format"
|
|
2675
2684
|
])) : A("", !0),
|
|
2676
|
-
e.field.type === "timerangepicker" ? (B(), k(
|
|
2685
|
+
e.field.type === "timerangepicker" ? (B(), k(le, {
|
|
2677
2686
|
key: 27,
|
|
2678
2687
|
value: e.model,
|
|
2679
2688
|
"onUpdate:value": t[30] ||= (t) => e.model = t,
|
|
@@ -2694,7 +2703,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
2694
2703
|
"placeholder",
|
|
2695
2704
|
"value-format"
|
|
2696
2705
|
])) : A("", !0),
|
|
2697
|
-
e.field.type === "radio" ? (B(), k(
|
|
2706
|
+
e.field.type === "radio" ? (B(), k(w, {
|
|
2698
2707
|
key: 28,
|
|
2699
2708
|
value: e.model,
|
|
2700
2709
|
"onUpdate:value": t[31] ||= (t) => e.model = t,
|
|
@@ -2702,7 +2711,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
2702
2711
|
disabled: e.field.disabled,
|
|
2703
2712
|
size: "small"
|
|
2704
2713
|
}, {
|
|
2705
|
-
default: J(() => [(B(!0), j(D, null, U(e.options, (t) => (B(), k(
|
|
2714
|
+
default: J(() => [(B(!0), j(D, null, U(e.options, (t) => (B(), k(C, {
|
|
2706
2715
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2707
2716
|
disabled: t.disabled,
|
|
2708
2717
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
@@ -2716,7 +2725,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
2716
2725
|
"default-value",
|
|
2717
2726
|
"disabled"
|
|
2718
2727
|
])) : A("", !0),
|
|
2719
|
-
e.field.type === "checkbox" ? (B(), k(
|
|
2728
|
+
e.field.type === "checkbox" ? (B(), k(E, {
|
|
2720
2729
|
key: 29,
|
|
2721
2730
|
value: e.model,
|
|
2722
2731
|
"onUpdate:value": t[32] ||= (t) => e.model = t,
|
|
@@ -2724,7 +2733,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
2724
2733
|
disabled: e.field.disabled,
|
|
2725
2734
|
size: "small"
|
|
2726
2735
|
}, {
|
|
2727
|
-
default: J(() => [(B(!0), j(D, null, U(e.options, (t) => (B(), k(
|
|
2736
|
+
default: J(() => [(B(!0), j(D, null, U(e.options, (t) => (B(), k(T, {
|
|
2728
2737
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2729
2738
|
disabled: t.disabled,
|
|
2730
2739
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
@@ -2908,7 +2917,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
2908
2917
|
"is_form_design",
|
|
2909
2918
|
"placeholder"
|
|
2910
2919
|
])) : A("", !0),
|
|
2911
|
-
e.field.type === "remotetreeselect" ? (B(), k(
|
|
2920
|
+
e.field.type === "remotetreeselect" ? (B(), k(pe, {
|
|
2912
2921
|
key: 35,
|
|
2913
2922
|
label: e.labelModel,
|
|
2914
2923
|
"onUpdate:label": t[41] ||= (t) => e.labelModel = t,
|
|
@@ -2936,7 +2945,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
2936
2945
|
"search_config",
|
|
2937
2946
|
"value-key"
|
|
2938
2947
|
])) : A("", !0),
|
|
2939
|
-
e.field.type === "remotetreeselectpro" ? (B(), k(
|
|
2948
|
+
e.field.type === "remotetreeselectpro" ? (B(), k(R, {
|
|
2940
2949
|
key: 36,
|
|
2941
2950
|
label: e.labelModel,
|
|
2942
2951
|
"onUpdate:label": t[43] ||= (t) => e.labelModel = t,
|
|
@@ -3237,7 +3246,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
3237
3246
|
"count",
|
|
3238
3247
|
"allow-half"
|
|
3239
3248
|
])) : A("", !0),
|
|
3240
|
-
e.field.type === "radio-color" ? (B(), k(
|
|
3249
|
+
e.field.type === "radio-color" ? (B(), k(w, {
|
|
3241
3250
|
key: 48,
|
|
3242
3251
|
value: e.model,
|
|
3243
3252
|
"onUpdate:value": t[57] ||= (t) => e.model = t,
|
|
@@ -3245,7 +3254,7 @@ function Ut(e, t, n, r, i, a) {
|
|
|
3245
3254
|
disabled: e.field.disabled,
|
|
3246
3255
|
size: "small"
|
|
3247
3256
|
}, {
|
|
3248
|
-
default: J(() => [(B(!0), j(D, null, U(e.options, (t) => (B(), k(
|
|
3257
|
+
default: J(() => [(B(!0), j(D, null, U(e.options, (t) => (B(), k(C, {
|
|
3249
3258
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
3250
3259
|
disabled: t.disabled,
|
|
3251
3260
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|