zhytech-ui 1.1.23 → 1.1.24
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/style.css +1 -1
- package/dist/zhytech-ui.es.js +255 -251
- package/dist/zhytech-ui.umd.js +2 -2
- package/package.json +1 -1
package/dist/zhytech-ui.es.js
CHANGED
|
@@ -2,7 +2,7 @@ var p3 = Object.defineProperty;
|
|
|
2
2
|
var m3 = (a, h, i) => h in a ? p3(a, h, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[h] = i;
|
|
3
3
|
var qe = (a, h, i) => (m3(a, typeof h != "symbol" ? h + "" : h, i), i);
|
|
4
4
|
import { ElMessage as f3, dayjs as oi, ElLoading as h3 } from "element-plus";
|
|
5
|
-
import { defineComponent as he, resolveComponent as L, openBlock as b, createBlock as F, withCtx as y, createElementBlock as T, createTextVNode as J, createCommentVNode as R, pushScopeId as vo, popScopeId as yo, createElementVNode as I, useCssVars as pr, unref as n, toRefs as et, watch as de, computed as ht, ref as
|
|
5
|
+
import { defineComponent as he, resolveComponent as L, openBlock as b, createBlock as F, withCtx as y, createElementBlock as T, createTextVNode as J, createCommentVNode as R, pushScopeId as vo, popScopeId as yo, createElementVNode as I, useCssVars as pr, unref as n, toRefs as et, watch as de, computed as ht, ref as oe, Fragment as be, createVNode as f, renderList as Te, toDisplayString as ve, onMounted as _o, normalizeClass as Ee, TransitionGroup as g3, h as ni, nextTick as Tt, inject as xe, withModifiers as bn, resolveDynamicComponent as Bo, normalizeStyle as Ht, isRef as Fe, renderSlot as No, createSlots as b3, provide as Pt, mergeModels as sr, useModel as mi, reactive as v3, withKeys as y3, resolveDirective as _3, withDirectives as x3, shallowRef as w3, onBeforeMount as $3, onBeforeUnmount as k3 } from "vue";
|
|
6
6
|
import ho, { Swap as C3, MultiDrag as V3 } from "sortablejs";
|
|
7
7
|
import { useDebounceFn as fi, useVModel as z3, useArrayFilter as D3 } from "@vueuse/core";
|
|
8
8
|
import _t from "dayjs";
|
|
@@ -14,49 +14,49 @@ import { Toolbar as T3, Editor as A3 } from "@wangeditor/editor-for-vue";
|
|
|
14
14
|
const Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15
15
|
__proto__: null,
|
|
16
16
|
get groupLayout() {
|
|
17
|
-
return
|
|
17
|
+
return u6;
|
|
18
18
|
},
|
|
19
19
|
get tabs() {
|
|
20
|
-
return
|
|
20
|
+
return k6;
|
|
21
21
|
}
|
|
22
22
|
}, Symbol.toStringTag, { value: "Module" })), zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23
23
|
__proto__: null,
|
|
24
24
|
get upload() {
|
|
25
|
-
return
|
|
25
|
+
return A6;
|
|
26
26
|
},
|
|
27
27
|
get uploadImage() {
|
|
28
|
-
return
|
|
28
|
+
return q6;
|
|
29
29
|
}
|
|
30
30
|
}, Symbol.toStringTag, { value: "Module" })), Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
31
31
|
__proto__: null,
|
|
32
32
|
get employee() {
|
|
33
|
-
return
|
|
33
|
+
return o4;
|
|
34
34
|
},
|
|
35
35
|
get grade() {
|
|
36
|
-
return
|
|
36
|
+
return h4;
|
|
37
37
|
},
|
|
38
38
|
get post() {
|
|
39
|
-
return $
|
|
39
|
+
return $4;
|
|
40
40
|
}
|
|
41
41
|
}, Symbol.toStringTag, { value: "Module" })), En = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
43
|
get checkbox() {
|
|
44
|
-
return
|
|
44
|
+
return M4;
|
|
45
45
|
},
|
|
46
46
|
get date() {
|
|
47
47
|
return mm;
|
|
48
48
|
},
|
|
49
49
|
get input() {
|
|
50
|
-
return
|
|
50
|
+
return B4;
|
|
51
51
|
},
|
|
52
52
|
get inputNumber() {
|
|
53
53
|
return Mm;
|
|
54
54
|
},
|
|
55
55
|
get label() {
|
|
56
|
-
return
|
|
56
|
+
return H4;
|
|
57
57
|
},
|
|
58
58
|
get radio() {
|
|
59
|
-
return
|
|
59
|
+
return Q4;
|
|
60
60
|
},
|
|
61
61
|
get time() {
|
|
62
62
|
return xm;
|
|
@@ -207,8 +207,8 @@ function nt() {
|
|
|
207
207
|
}
|
|
208
208
|
const H = u(D, U[_], v, _);
|
|
209
209
|
if (H != null && H.length) {
|
|
210
|
-
const ee = H[0],
|
|
211
|
-
ee != null && ee.length && (O.unshift(B), O = [...O, ...ee]),
|
|
210
|
+
const ee = H[0], te = H[1];
|
|
211
|
+
ee != null && ee.length && (O.unshift(B), O = [...O, ...ee]), te.length && (M.unshift(U), M = [...M, ...te]);
|
|
212
212
|
}
|
|
213
213
|
}), z.push(O), V.push(M);
|
|
214
214
|
}), S ? ($ = z, V.forEach((D) => {
|
|
@@ -404,7 +404,7 @@ const { session: ri } = nt();
|
|
|
404
404
|
function ee(e) {
|
|
405
405
|
return e != null;
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function te() {
|
|
408
408
|
}
|
|
409
409
|
let K = class {
|
|
410
410
|
constructor() {
|
|
@@ -952,7 +952,7 @@ const { session: ri } = nt();
|
|
|
952
952
|
return;
|
|
953
953
|
let l = this.config.details ? (w) => {
|
|
954
954
|
o.shortcuts = o.shortcuts ?? [], o.shortcuts.push(w);
|
|
955
|
-
} :
|
|
955
|
+
} : te, c, g;
|
|
956
956
|
for (let w of this.config.shortcuts) {
|
|
957
957
|
let j = t;
|
|
958
958
|
if ((C = w[2]) != null && C.prefix) {
|
|
@@ -3670,7 +3670,7 @@ const F3 = (a) => {
|
|
|
3670
3670
|
tipIcon: "#ff0000",
|
|
3671
3671
|
dragIcon: "#ff0000",
|
|
3672
3672
|
selectBgColor: "#f9fccf"
|
|
3673
|
-
}, vi = { "zhy-light-theme": U3, "zhy-dark-theme": O3 }, X = (a) => (vo("data-v-
|
|
3673
|
+
}, vi = { "zhy-light-theme": U3, "zhy-dark-theme": O3 }, X = (a) => (vo("data-v-6599c959"), a = a(), yo(), a), B3 = {
|
|
3674
3674
|
key: 0,
|
|
3675
3675
|
t: "1641097566288",
|
|
3676
3676
|
class: "icon",
|
|
@@ -4675,7 +4675,7 @@ const ye = (a, h) => {
|
|
|
4675
4675
|
for (const [m, s] of h)
|
|
4676
4676
|
i[m] = s;
|
|
4677
4677
|
return i;
|
|
4678
|
-
}, Pe = /* @__PURE__ */ ye(bp, [["__scopeId", "data-v-
|
|
4678
|
+
}, Pe = /* @__PURE__ */ ye(bp, [["__scopeId", "data-v-6599c959"]]), vp = (a) => (vo("data-v-d332450d"), a = a(), yo(), a), yp = {
|
|
4679
4679
|
key: 0,
|
|
4680
4680
|
class: "filter-item no-rem flex items-center"
|
|
4681
4681
|
}, _p = { class: "condition-type" }, xp = /* @__PURE__ */ vp(() => /* @__PURE__ */ I("span", { class: "line" }, null, -1)), wp = {
|
|
@@ -4740,7 +4740,7 @@ const ye = (a, h) => {
|
|
|
4740
4740
|
emits: ["update:modelValue", "add", "delete"],
|
|
4741
4741
|
setup(a, { emit: h }) {
|
|
4742
4742
|
pr(($) => ({
|
|
4743
|
-
"
|
|
4743
|
+
"13ecc448": n(k)
|
|
4744
4744
|
}));
|
|
4745
4745
|
const i = ["NOT_EQUALS", "INCLUDES", "EXCLUDE"], m = a, { modelValue: s } = et(m), d = h;
|
|
4746
4746
|
de(s, () => {
|
|
@@ -4760,7 +4760,7 @@ const ye = (a, h) => {
|
|
|
4760
4760
|
), k = ht(() => {
|
|
4761
4761
|
var $, p;
|
|
4762
4762
|
return `${($ = s.value.children) != null && $.length ? ((p = s.value.children) == null ? void 0 : p.length) * -18 : -18}px`;
|
|
4763
|
-
}), E =
|
|
4763
|
+
}), E = oe(""), v = () => {
|
|
4764
4764
|
var $;
|
|
4765
4765
|
E.value = (($ = m.items.find((p) => p.id === s.value.itemID)) == null ? void 0 : $.unit) ?? "", s.value.condition = m.filterConditions[s.value.itemID].length === 1 ? m.filterConditions[s.value.itemID][0].value : "", s.value.value = "";
|
|
4766
4766
|
}, _ = ($) => {
|
|
@@ -4783,7 +4783,7 @@ const ye = (a, h) => {
|
|
|
4783
4783
|
xp,
|
|
4784
4784
|
f(x, {
|
|
4785
4785
|
modelValue: n(s).conditionType,
|
|
4786
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
4786
|
+
"onUpdate:modelValue": p[0] || (p[0] = (te) => n(s).conditionType = te),
|
|
4787
4787
|
"inline-prompt": "",
|
|
4788
4788
|
"active-value": "and",
|
|
4789
4789
|
"inactive-value": "or",
|
|
@@ -4795,7 +4795,7 @@ const ye = (a, h) => {
|
|
|
4795
4795
|
]),
|
|
4796
4796
|
(B = n(s).children) != null && B.length ? (b(), T("div", wp, [
|
|
4797
4797
|
I("div", $p, [
|
|
4798
|
-
(b(!0), T(be, null, Te(n(s).children, (
|
|
4798
|
+
(b(!0), T(be, null, Te(n(s).children, (te, K) => (b(), F(z, {
|
|
4799
4799
|
key: K,
|
|
4800
4800
|
modelValue: n(s).children[K],
|
|
4801
4801
|
"onUpdate:modelValue": (ne) => n(s).children[K] = ne,
|
|
@@ -4803,50 +4803,50 @@ const ye = (a, h) => {
|
|
|
4803
4803
|
items: a.items,
|
|
4804
4804
|
filterConditions: a.filterConditions,
|
|
4805
4805
|
conditionProps: a.conditionProps,
|
|
4806
|
-
onAdd: (ne) => _(
|
|
4806
|
+
onAdd: (ne) => _(te),
|
|
4807
4807
|
onDelete: (ne) => S(n(s), K)
|
|
4808
4808
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "showConditionType", "items", "filterConditions", "conditionProps", "onAdd", "onDelete"]))), 128))
|
|
4809
4809
|
]),
|
|
4810
4810
|
f(V, {
|
|
4811
4811
|
name: "plus",
|
|
4812
4812
|
class: "theme-color-create ml-10",
|
|
4813
|
-
onClick: p[1] || (p[1] = (
|
|
4813
|
+
onClick: p[1] || (p[1] = (te) => _(n(s)))
|
|
4814
4814
|
}),
|
|
4815
4815
|
f(V, {
|
|
4816
4816
|
name: "delete",
|
|
4817
4817
|
class: "theme-color-danger mr-5",
|
|
4818
|
-
onClick: p[2] || (p[2] = (
|
|
4818
|
+
onClick: p[2] || (p[2] = (te) => d("delete"))
|
|
4819
4819
|
})
|
|
4820
4820
|
])) : (b(), T(be, { key: 1 }, [
|
|
4821
4821
|
I("div", kp, [
|
|
4822
4822
|
f(O, {
|
|
4823
4823
|
modelValue: n(s).itemID,
|
|
4824
|
-
"onUpdate:modelValue": p[3] || (p[3] = (
|
|
4824
|
+
"onUpdate:modelValue": p[3] || (p[3] = (te) => n(s).itemID = te),
|
|
4825
4825
|
placeholder: "请选择",
|
|
4826
4826
|
class: "zhy flex-grow-4 flex-shrink-1 flex-basis-0%",
|
|
4827
4827
|
onChange: v
|
|
4828
4828
|
}, {
|
|
4829
4829
|
default: y(() => [
|
|
4830
|
-
(b(!0), T(be, null, Te(a.items, (
|
|
4830
|
+
(b(!0), T(be, null, Te(a.items, (te, K) => (b(), F(D, {
|
|
4831
4831
|
key: K,
|
|
4832
|
-
label:
|
|
4833
|
-
value:
|
|
4832
|
+
label: te.label,
|
|
4833
|
+
value: te.id
|
|
4834
4834
|
}, null, 8, ["label", "value"]))), 128))
|
|
4835
4835
|
]),
|
|
4836
4836
|
_: 1
|
|
4837
4837
|
}, 8, ["modelValue"]),
|
|
4838
4838
|
f(O, {
|
|
4839
4839
|
modelValue: n(s).condition,
|
|
4840
|
-
"onUpdate:modelValue": p[4] || (p[4] = (
|
|
4840
|
+
"onUpdate:modelValue": p[4] || (p[4] = (te) => n(s).condition = te),
|
|
4841
4841
|
placeholder: "请选择",
|
|
4842
4842
|
class: "zhy flex-grow-2 flex-shrink-1 flex-basis-0% mx-5",
|
|
4843
|
-
onChange: p[5] || (p[5] = (
|
|
4843
|
+
onChange: p[5] || (p[5] = (te) => n(s).value = "")
|
|
4844
4844
|
}, {
|
|
4845
4845
|
default: y(() => [
|
|
4846
|
-
(b(!0), T(be, null, Te(a.filterConditions[n(s).itemID], (
|
|
4846
|
+
(b(!0), T(be, null, Te(a.filterConditions[n(s).itemID], (te, K) => (b(), F(D, {
|
|
4847
4847
|
key: K,
|
|
4848
|
-
label:
|
|
4849
|
-
value:
|
|
4848
|
+
label: te.label,
|
|
4849
|
+
value: te.value
|
|
4850
4850
|
}, null, 8, ["label", "value"]))), 128))
|
|
4851
4851
|
]),
|
|
4852
4852
|
_: 1
|
|
@@ -4856,27 +4856,31 @@ const ye = (a, h) => {
|
|
|
4856
4856
|
key: 1,
|
|
4857
4857
|
class: "zhy",
|
|
4858
4858
|
modelValue: n(s).value,
|
|
4859
|
-
"onUpdate:modelValue": p[6] || (p[6] = (
|
|
4859
|
+
"onUpdate:modelValue": p[6] || (p[6] = (te) => n(s).value = te),
|
|
4860
4860
|
placeholder: "请选择",
|
|
4861
4861
|
clearable: "",
|
|
4862
4862
|
filterable: "",
|
|
4863
4863
|
multiple: n(u)
|
|
4864
4864
|
}, {
|
|
4865
4865
|
default: y(() => [
|
|
4866
|
-
(b(!0), T(be, null, Te(a.conditionProps[n(s).itemID].options, (
|
|
4866
|
+
(b(!0), T(be, null, Te(a.conditionProps[n(s).itemID].options, (te, K) => (b(), F(D, {
|
|
4867
|
+
key: K,
|
|
4868
|
+
label: te.label,
|
|
4869
|
+
value: te.value
|
|
4870
|
+
}, {
|
|
4867
4871
|
default: y(() => [
|
|
4868
|
-
I("span", Vp, ve(
|
|
4869
|
-
I("span", zp, ve(
|
|
4872
|
+
I("span", Vp, ve(te.label), 1),
|
|
4873
|
+
I("span", zp, ve(te.suffix), 1)
|
|
4870
4874
|
]),
|
|
4871
4875
|
_: 2
|
|
4872
|
-
},
|
|
4876
|
+
}, 1032, ["label", "value"]))), 128))
|
|
4873
4877
|
]),
|
|
4874
4878
|
_: 1
|
|
4875
4879
|
}, 8, ["modelValue", "multiple"])) : ((ee = a.conditionProps[n(s).itemID]) == null ? void 0 : ee.type) === n(Je).CASCADER_SELECTOR ? (b(), F(M, {
|
|
4876
4880
|
key: 2,
|
|
4877
4881
|
class: "zhy w-full",
|
|
4878
4882
|
modelValue: n(s).value,
|
|
4879
|
-
"onUpdate:modelValue": p[7] || (p[7] = (
|
|
4883
|
+
"onUpdate:modelValue": p[7] || (p[7] = (te) => n(s).value = te),
|
|
4880
4884
|
placeholder: "请选择",
|
|
4881
4885
|
filterable: "",
|
|
4882
4886
|
options: a.conditionProps[n(s).itemID].options,
|
|
@@ -4886,7 +4890,7 @@ const ye = (a, h) => {
|
|
|
4886
4890
|
}, null, 8, ["modelValue", "options", "props", "collapse-tags"])) : (b(), F(U, {
|
|
4887
4891
|
key: 3,
|
|
4888
4892
|
modelValue: n(s).value,
|
|
4889
|
-
"onUpdate:modelValue": p[8] || (p[8] = (
|
|
4893
|
+
"onUpdate:modelValue": p[8] || (p[8] = (te) => n(s).value = te)
|
|
4890
4894
|
}, null, 8, ["modelValue"]))
|
|
4891
4895
|
]),
|
|
4892
4896
|
I("div", Dp, [
|
|
@@ -4897,19 +4901,19 @@ const ye = (a, h) => {
|
|
|
4897
4901
|
key: 0,
|
|
4898
4902
|
name: "plus",
|
|
4899
4903
|
class: "theme-color-create ml-10",
|
|
4900
|
-
onClick: p[9] || (p[9] = (
|
|
4904
|
+
onClick: p[9] || (p[9] = (te) => _(n(s)))
|
|
4901
4905
|
})) : R("", !0),
|
|
4902
4906
|
f(V, {
|
|
4903
4907
|
name: "delete",
|
|
4904
4908
|
class: "theme-color-danger mr-5",
|
|
4905
|
-
onClick: p[10] || (p[10] = (
|
|
4909
|
+
onClick: p[10] || (p[10] = (te) => d("delete"))
|
|
4906
4910
|
})
|
|
4907
4911
|
], 64))
|
|
4908
4912
|
])) : R("", !0);
|
|
4909
4913
|
};
|
|
4910
4914
|
}
|
|
4911
4915
|
});
|
|
4912
|
-
const Lp = /* @__PURE__ */ ye(Sp, [["__scopeId", "data-v-
|
|
4916
|
+
const Lp = /* @__PURE__ */ ye(Sp, [["__scopeId", "data-v-d332450d"]]), Mp = {
|
|
4913
4917
|
name: "zhy-dynamic-filter"
|
|
4914
4918
|
}, Tp = /* @__PURE__ */ he({
|
|
4915
4919
|
...Mp,
|
|
@@ -4958,7 +4962,7 @@ const Lp = /* @__PURE__ */ ye(Sp, [["__scopeId", "data-v-cecb2b81"]]), Mp = {
|
|
|
4958
4962
|
}
|
|
4959
4963
|
},
|
|
4960
4964
|
setup(a, { expose: h }) {
|
|
4961
|
-
const { clone: i, getCascaderFullValue: m } = nt(), s = a, d =
|
|
4965
|
+
const { clone: i, getCascaderFullValue: m } = nt(), s = a, d = oe({});
|
|
4962
4966
|
de(
|
|
4963
4967
|
s.conditionTypes,
|
|
4964
4968
|
() => {
|
|
@@ -4971,7 +4975,7 @@ const Lp = /* @__PURE__ */ ye(Sp, [["__scopeId", "data-v-cecb2b81"]]), Mp = {
|
|
|
4971
4975
|
},
|
|
4972
4976
|
{ immediate: !0 }
|
|
4973
4977
|
);
|
|
4974
|
-
const u =
|
|
4978
|
+
const u = oe([]);
|
|
4975
4979
|
_o(() => {
|
|
4976
4980
|
u.value = i(s.defaultValue), u.value.length || k(u.value, !0);
|
|
4977
4981
|
});
|
|
@@ -4999,10 +5003,10 @@ const Lp = /* @__PURE__ */ ye(Sp, [["__scopeId", "data-v-cecb2b81"]]), Mp = {
|
|
|
4999
5003
|
["EXCLUDE", { expression: "!'{id}'.includes('{value}')", content: `{id}${_.replace("condition", "不不包含")}{value}` }],
|
|
5000
5004
|
["RANGE", { expression: "'{id}'>='{value1}'&&'{id}'<='{value2}'", content: "{id}在{value1}和{value2}之间" }]
|
|
5001
5005
|
]), $ = (z, V) => {
|
|
5002
|
-
var
|
|
5006
|
+
var te, K, ne, ae, G, re;
|
|
5003
5007
|
let D = "";
|
|
5004
5008
|
const O = s.items.find((ie) => ie.id === z.itemID);
|
|
5005
|
-
let M = "label", U = "value", B = (
|
|
5009
|
+
let M = "label", U = "value", B = (te = S.get(z.condition)) == null ? void 0 : te.expression.replace("{id}", `{${z.itemID}}`), H = (K = S.get(z.condition)) == null ? void 0 : K.content.replace("{id}", M.replace("label", O == null ? void 0 : O.label)), ee = [];
|
|
5006
5010
|
if (s.conditionProps[O.id].type === Je.SELECTOR && (ee = s.conditionProps[O.id].options ?? []), z.condition === "RANGE") {
|
|
5007
5011
|
const ie = z.value.split(",");
|
|
5008
5012
|
if (V)
|
|
@@ -5107,7 +5111,7 @@ const Lp = /* @__PURE__ */ ye(Sp, [["__scopeId", "data-v-cecb2b81"]]), Mp = {
|
|
|
5107
5111
|
};
|
|
5108
5112
|
}
|
|
5109
5113
|
});
|
|
5110
|
-
const Oo = /* @__PURE__ */ ye(Tp, [["__scopeId", "data-v-
|
|
5114
|
+
const Oo = /* @__PURE__ */ ye(Tp, [["__scopeId", "data-v-1693e0c2"]]);
|
|
5111
5115
|
Oo.install = function(a) {
|
|
5112
5116
|
a.component(Oo.name, Oo);
|
|
5113
5117
|
};
|
|
@@ -5409,7 +5413,7 @@ function Qp(a, h) {
|
|
|
5409
5413
|
return Array.from(a).reverse().map(({ index: i }) => i - h);
|
|
5410
5414
|
}
|
|
5411
5415
|
let ir = null;
|
|
5412
|
-
const
|
|
5416
|
+
const e6 = {
|
|
5413
5417
|
list: {
|
|
5414
5418
|
type: Array,
|
|
5415
5419
|
required: !1,
|
|
@@ -5441,11 +5445,11 @@ const e4 = {
|
|
|
5441
5445
|
required: !1,
|
|
5442
5446
|
default: null
|
|
5443
5447
|
}
|
|
5444
|
-
},
|
|
5448
|
+
}, t6 = ["update:modelValue", "change", ...[...dr.manageAndEmit, ...dr.emit].map((a) => a.toLowerCase())], xo = he({
|
|
5445
5449
|
name: "draggable",
|
|
5446
5450
|
inheritAttrs: !1,
|
|
5447
|
-
props:
|
|
5448
|
-
emits:
|
|
5451
|
+
props: e6,
|
|
5452
|
+
emits: t6,
|
|
5449
5453
|
data() {
|
|
5450
5454
|
return {
|
|
5451
5455
|
error: !1
|
|
@@ -5696,7 +5700,7 @@ const e4 = {
|
|
|
5696
5700
|
ho.utils.deselect(a);
|
|
5697
5701
|
}
|
|
5698
5702
|
}
|
|
5699
|
-
}), { getTempID:
|
|
5703
|
+
}), { getTempID: o6 } = nt();
|
|
5700
5704
|
let dt = class {
|
|
5701
5705
|
/**
|
|
5702
5706
|
* @description: 构造器
|
|
@@ -5761,10 +5765,10 @@ let dt = class {
|
|
|
5761
5765
|
* @description:布局组件的子组件集合
|
|
5762
5766
|
*/
|
|
5763
5767
|
qe(this, "children");
|
|
5764
|
-
this.type = h, this.name = i, this.isEdit = m, this.isInput = s, this.id =
|
|
5768
|
+
this.type = h, this.name = i, this.isEdit = m, this.isInput = s, this.id = o6(), this.props = {}, this.rules = [{ message: "必填项", required: !1 }], this.excludeFilterConditions = [], this.filterConditionProps = void 0, this.isLayout = !1, this.children = void 0;
|
|
5765
5769
|
}
|
|
5766
5770
|
};
|
|
5767
|
-
const
|
|
5771
|
+
const n6 = /* @__PURE__ */ he({
|
|
5768
5772
|
__name: "propsEditor",
|
|
5769
5773
|
props: {},
|
|
5770
5774
|
setup(a) {
|
|
@@ -5907,10 +5911,10 @@ const n4 = /* @__PURE__ */ he({
|
|
|
5907
5911
|
};
|
|
5908
5912
|
}
|
|
5909
5913
|
});
|
|
5910
|
-
const
|
|
5914
|
+
const r6 = /* @__PURE__ */ ye(n6, [["__scopeId", "data-v-7977fa62"]]), a6 = ["onClick"], l6 = {
|
|
5911
5915
|
key: 2,
|
|
5912
5916
|
class: "pos-absolute bottom--5px right-10px"
|
|
5913
|
-
},
|
|
5917
|
+
}, i6 = /* @__PURE__ */ he({
|
|
5914
5918
|
__name: "componentDesigner",
|
|
5915
5919
|
props: {
|
|
5916
5920
|
/**
|
|
@@ -6023,7 +6027,7 @@ const r4 = /* @__PURE__ */ ye(n4, [["__scopeId", "data-v-e105b32b"]]), a4 = ["on
|
|
|
6023
6027
|
]),
|
|
6024
6028
|
_: 2
|
|
6025
6029
|
}, 1032, ["prop", "class", "label-width", "rules"])),
|
|
6026
|
-
n(k).selectComponent == M ? (b(), T("div",
|
|
6030
|
+
n(k).selectComponent == M ? (b(), T("div", l6, [
|
|
6027
6031
|
M.allowRepeat ? (b(), F(O, {
|
|
6028
6032
|
key: 0,
|
|
6029
6033
|
name: "copy",
|
|
@@ -6036,14 +6040,14 @@ const r4 = /* @__PURE__ */ ye(n4, [["__scopeId", "data-v-e105b32b"]]), a4 = ["on
|
|
|
6036
6040
|
onClick: bn((B) => x(U), ["stop"])
|
|
6037
6041
|
}, null, 8, ["onClick"])
|
|
6038
6042
|
])) : R("", !0)
|
|
6039
|
-
], 10,
|
|
6043
|
+
], 10, a6)
|
|
6040
6044
|
]),
|
|
6041
6045
|
_: 1
|
|
6042
6046
|
}, 8, ["list", "class"]);
|
|
6043
6047
|
};
|
|
6044
6048
|
}
|
|
6045
6049
|
});
|
|
6046
|
-
const mr = /* @__PURE__ */ ye(
|
|
6050
|
+
const mr = /* @__PURE__ */ ye(i6, [["__scopeId", "data-v-b6c10bd6"]]), s6 = /* @__PURE__ */ he({
|
|
6047
6051
|
__name: "renderer",
|
|
6048
6052
|
props: {
|
|
6049
6053
|
/**
|
|
@@ -6118,8 +6122,8 @@ const mr = /* @__PURE__ */ ye(i4, [["__scopeId", "data-v-de2889be"]]), s4 = /* @
|
|
|
6118
6122
|
], 2));
|
|
6119
6123
|
}
|
|
6120
6124
|
});
|
|
6121
|
-
const
|
|
6122
|
-
let
|
|
6125
|
+
const c6 = /* @__PURE__ */ ye(s6, [["__scopeId", "data-v-ab1aa88c"]]);
|
|
6126
|
+
let d6 = class extends dt {
|
|
6123
6127
|
constructor() {
|
|
6124
6128
|
super("groupLayout", "分组"), this.props = {
|
|
6125
6129
|
width: 12,
|
|
@@ -6142,10 +6146,10 @@ let d4 = class extends dt {
|
|
|
6142
6146
|
}, this.isLayout = !0, this.children = [];
|
|
6143
6147
|
}
|
|
6144
6148
|
};
|
|
6145
|
-
const
|
|
6149
|
+
const u6 = { component: d6, renderer: c6, propEditor: r6 }, p6 = { class: "dictionary-binder w-full" }, m6 = { class: "wh-full flex items-center fs-12" }, f6 = { class: "wh-full flex-auto whitespace-initial! t-ofse-2" }, h6 = {
|
|
6146
6150
|
key: 0,
|
|
6147
6151
|
class: "c-#ff0000 whitespace-nowrap ml-5"
|
|
6148
|
-
},
|
|
6152
|
+
}, g6 = /* @__PURE__ */ he({
|
|
6149
6153
|
__name: "dictionaryBinder",
|
|
6150
6154
|
props: {
|
|
6151
6155
|
modelValue: {
|
|
@@ -6185,12 +6189,12 @@ const u4 = { component: d4, renderer: c4, propEditor: r4 }, p4 = { class: "dicti
|
|
|
6185
6189
|
setup(a, { emit: h }) {
|
|
6186
6190
|
var p;
|
|
6187
6191
|
pr((x) => ({
|
|
6188
|
-
"
|
|
6192
|
+
"309d2880": a.height
|
|
6189
6193
|
}));
|
|
6190
6194
|
let i = xe("defaultSourceType");
|
|
6191
|
-
const m = a, s =
|
|
6195
|
+
const m = a, s = oe(), d = oe(m.modelValue), u = (p = m.dictionary) == null ? void 0 : p.sourceTypeMap;
|
|
6192
6196
|
s.value = (u == null ? void 0 : u.size) > 1;
|
|
6193
|
-
let k =
|
|
6197
|
+
let k = oe([]);
|
|
6194
6198
|
const E = (x) => {
|
|
6195
6199
|
k.value = x ? v(x) : m.dictionary.dictionaryItems;
|
|
6196
6200
|
}, v = (x) => m.dictionary.dictionaryItems.filter((z) => z.label.toLocaleLowerCase().includes(x.toLocaleLowerCase())), _ = h, { getTempID: S } = nt(), $ = (x) => {
|
|
@@ -6204,7 +6208,7 @@ const u4 = { component: d4, renderer: c4, propEditor: r4 }, p4 = { class: "dicti
|
|
|
6204
6208
|
return (x, z) => {
|
|
6205
6209
|
var O;
|
|
6206
6210
|
const V = L("el-select-v2"), D = L("el-input");
|
|
6207
|
-
return b(), T("div",
|
|
6211
|
+
return b(), T("div", p6, [
|
|
6208
6212
|
(O = a.dictionary) != null && O.dictionaryItems.length ? (b(), F(V, {
|
|
6209
6213
|
key: 0,
|
|
6210
6214
|
modelValue: n(d),
|
|
@@ -6224,9 +6228,9 @@ const u4 = { component: d4, renderer: c4, propEditor: r4 }, p4 = { class: "dicti
|
|
|
6224
6228
|
onChange: $
|
|
6225
6229
|
}, {
|
|
6226
6230
|
default: y(({ item: M }) => [
|
|
6227
|
-
I("div",
|
|
6228
|
-
I("div",
|
|
6229
|
-
n(s) ? (b(), T("div",
|
|
6231
|
+
I("div", m6, [
|
|
6232
|
+
I("div", f6, ve(M.label), 1),
|
|
6233
|
+
n(s) ? (b(), T("div", h6, ve(n(u).get(M.itemSourceType)), 1)) : R("", !0)
|
|
6230
6234
|
])
|
|
6231
6235
|
]),
|
|
6232
6236
|
_: 1
|
|
@@ -6243,7 +6247,7 @@ const u4 = { component: d4, renderer: c4, propEditor: r4 }, p4 = { class: "dicti
|
|
|
6243
6247
|
};
|
|
6244
6248
|
}
|
|
6245
6249
|
});
|
|
6246
|
-
const Sn = /* @__PURE__ */ ye(
|
|
6250
|
+
const Sn = /* @__PURE__ */ ye(g6, [["__scopeId", "data-v-09e2f1ce"]]), b6 = { class: "flex items-center my-5" }, v6 = /* @__PURE__ */ he({
|
|
6247
6251
|
__name: "propsEditor",
|
|
6248
6252
|
props: {
|
|
6249
6253
|
/**
|
|
@@ -6369,7 +6373,7 @@ const Sn = /* @__PURE__ */ ye(g4, [["__scopeId", "data-v-c69355d4"]]), b4 = { cl
|
|
|
6369
6373
|
group: { name: "componentOptions", put: !1 }
|
|
6370
6374
|
}, {
|
|
6371
6375
|
item: y(({ element: M, index: U }) => [
|
|
6372
|
-
I("div",
|
|
6376
|
+
I("div", b6, [
|
|
6373
6377
|
n(m).pages.length > 1 ? (b(), F(z, {
|
|
6374
6378
|
key: 0,
|
|
6375
6379
|
name: "move",
|
|
@@ -6470,7 +6474,7 @@ const Sn = /* @__PURE__ */ ye(g4, [["__scopeId", "data-v-c69355d4"]]), b4 = { cl
|
|
|
6470
6474
|
};
|
|
6471
6475
|
}
|
|
6472
6476
|
});
|
|
6473
|
-
const
|
|
6477
|
+
const y6 = /* @__PURE__ */ ye(v6, [["__scopeId", "data-v-5029f188"]]), _6 = { key: 2 }, x6 = /* @__PURE__ */ he({
|
|
6474
6478
|
__name: "renderer",
|
|
6475
6479
|
props: {
|
|
6476
6480
|
/**
|
|
@@ -6505,7 +6509,7 @@ const y4 = /* @__PURE__ */ ye(v4, [["__scopeId", "data-v-19f14209"]]), _4 = { ke
|
|
|
6505
6509
|
emits: ["deleteComponent", "change"],
|
|
6506
6510
|
setup(a, { emit: h }) {
|
|
6507
6511
|
var $;
|
|
6508
|
-
const i = a, { component: m, showDescription: s } = et(i), d =
|
|
6512
|
+
const i = a, { component: m, showDescription: s } = et(i), d = oe(m.value.props.defaultValue), u = oe({});
|
|
6509
6513
|
($ = m.value.children) != null && $.length && m.value.children.forEach((p) => {
|
|
6510
6514
|
const x = m.value.props.pages.findIndex((V) => V.value === p.props.pageID), z = String(x);
|
|
6511
6515
|
u.value[z] || (u.value[z] = []), u.value[z].push(p);
|
|
@@ -6579,7 +6583,7 @@ const y4 = /* @__PURE__ */ ye(v4, [["__scopeId", "data-v-19f14209"]]), _4 = { ke
|
|
|
6579
6583
|
components: n(u)[M],
|
|
6580
6584
|
showDescription: n(s)
|
|
6581
6585
|
}, null, 8, ["components", "showDescription"])),
|
|
6582
|
-
n(m).props.showNavigation ? (b(), T("div",
|
|
6586
|
+
n(m).props.showNavigation ? (b(), T("div", _6, [
|
|
6583
6587
|
M !== 0 ? (b(), F(z, {
|
|
6584
6588
|
key: 0,
|
|
6585
6589
|
class: "zhy print-button",
|
|
@@ -6612,8 +6616,8 @@ const y4 = /* @__PURE__ */ ye(v4, [["__scopeId", "data-v-19f14209"]]), _4 = { ke
|
|
|
6612
6616
|
};
|
|
6613
6617
|
}
|
|
6614
6618
|
});
|
|
6615
|
-
const
|
|
6616
|
-
let $
|
|
6619
|
+
const w6 = /* @__PURE__ */ ye(x6, [["__scopeId", "data-v-72b6feee"]]);
|
|
6620
|
+
let $6 = class extends dt {
|
|
6617
6621
|
constructor() {
|
|
6618
6622
|
super("tabs", "标签页"), this.props = {
|
|
6619
6623
|
width: 12,
|
|
@@ -6638,12 +6642,12 @@ let $4 = class extends dt {
|
|
|
6638
6642
|
}, this.isLayout = !0, this.children = [];
|
|
6639
6643
|
}
|
|
6640
6644
|
};
|
|
6641
|
-
const
|
|
6645
|
+
const k6 = { component: $6, renderer: w6, propEditor: y6 }, C6 = /* @__PURE__ */ he({
|
|
6642
6646
|
__name: "propsEditor",
|
|
6643
6647
|
props: {},
|
|
6644
6648
|
setup(a) {
|
|
6645
6649
|
let i = xe("formDesignerData").selectComponent.props;
|
|
6646
|
-
const m =
|
|
6650
|
+
const m = oe(i.fileSize);
|
|
6647
6651
|
return de(m, () => i.fileSize = Number(m.value)), (s, d) => {
|
|
6648
6652
|
const u = L("el-switch"), k = L("el-form-item"), E = L("el-input-number"), v = L("el-option"), _ = L("el-select"), S = L("el-input"), $ = L("el-form");
|
|
6649
6653
|
return b(), F($, {
|
|
@@ -6719,12 +6723,12 @@ const k4 = { component: $4, renderer: w4, propEditor: y4 }, C4 = /* @__PURE__ */
|
|
|
6719
6723
|
};
|
|
6720
6724
|
}
|
|
6721
6725
|
});
|
|
6722
|
-
const
|
|
6726
|
+
const V6 = /* @__PURE__ */ ye(C6, [["__scopeId", "data-v-6bdc138c"]]);
|
|
6723
6727
|
var He = /* @__PURE__ */ ((a) => (a.Form = "1", a.Examination = "2", a))(He || {}), go = /* @__PURE__ */ ((a) => (a[a.NotAnswered = 1] = "NotAnswered", a[a.Correct = 2] = "Correct", a[a.Error = 3] = "Error", a))(go || {});
|
|
6724
|
-
const
|
|
6728
|
+
const z6 = (a) => (vo("data-v-fec6fbc8"), a = a(), yo(), a), D6 = { class: "upload-component w-full" }, E6 = /* @__PURE__ */ z6(() => /* @__PURE__ */ I("span", { class: "ml-10 theme-color-hasBgFontColor" }, "上传文件", -1)), S6 = {
|
|
6725
6729
|
key: 0,
|
|
6726
6730
|
class: "dynamic-form-item-description"
|
|
6727
|
-
},
|
|
6731
|
+
}, L6 = /* @__PURE__ */ he({
|
|
6728
6732
|
__name: "renderer",
|
|
6729
6733
|
props: {
|
|
6730
6734
|
/**
|
|
@@ -6766,7 +6770,7 @@ const z4 = (a) => (vo("data-v-5ee2afb2"), a = a(), yo(), a), D4 = { class: "uplo
|
|
|
6766
6770
|
setup(a) {
|
|
6767
6771
|
const { checkFile: h } = nt(), i = a;
|
|
6768
6772
|
let m = xe("uploadOptions"), s = xe("formData");
|
|
6769
|
-
const { datas: d, componentProps: u } = et(i), k =
|
|
6773
|
+
const { datas: d, componentProps: u } = et(i), k = oe();
|
|
6770
6774
|
d.value[i.componentID] || (d.value[i.componentID] = []);
|
|
6771
6775
|
const E = ($) => {
|
|
6772
6776
|
if ($.status === "ready" && !h($.raw, d.value[i.componentID], u.value.fileSize, u.value.fileSizeUnit, !1)) {
|
|
@@ -6799,7 +6803,7 @@ const z4 = (a) => (vo("data-v-5ee2afb2"), a = a(), yo(), a), D4 = { class: "uplo
|
|
|
6799
6803
|
};
|
|
6800
6804
|
return ($, p) => {
|
|
6801
6805
|
const x = Pe, z = L("el-button"), V = L("el-upload");
|
|
6802
|
-
return b(), T("div",
|
|
6806
|
+
return b(), T("div", D6, [
|
|
6803
6807
|
f(V, {
|
|
6804
6808
|
ref_key: "uploadRef",
|
|
6805
6809
|
ref: k,
|
|
@@ -6830,7 +6834,7 @@ const z4 = (a) => (vo("data-v-5ee2afb2"), a = a(), yo(), a), D4 = { class: "uplo
|
|
|
6830
6834
|
})
|
|
6831
6835
|
]),
|
|
6832
6836
|
default: y(() => [
|
|
6833
|
-
|
|
6837
|
+
E6
|
|
6834
6838
|
]),
|
|
6835
6839
|
_: 1
|
|
6836
6840
|
})) : R("", !0)
|
|
@@ -6838,7 +6842,7 @@ const z4 = (a) => (vo("data-v-5ee2afb2"), a = a(), yo(), a), D4 = { class: "uplo
|
|
|
6838
6842
|
}),
|
|
6839
6843
|
_: 1
|
|
6840
6844
|
}, 8, ["action", "headers", "data", "multiple", "limit", "file-list", "accept", "auto-upload"]),
|
|
6841
|
-
a.isDesigner && n(u).description || a.showDescription && (n(s).props.formType === n(He).Examination || n(u).description) ? (b(), T("div",
|
|
6845
|
+
a.isDesigner && n(u).description || a.showDescription && (n(s).props.formType === n(He).Examination || n(u).description) ? (b(), T("div", S6, [
|
|
6842
6846
|
f(x, { name: "tip" }),
|
|
6843
6847
|
J(" " + ve(`${n(s).props.formType === n(He).Form ? "项目说明" : "答案解析"}:${n(u).description || "无"}`), 1)
|
|
6844
6848
|
])) : R("", !0)
|
|
@@ -6846,8 +6850,8 @@ const z4 = (a) => (vo("data-v-5ee2afb2"), a = a(), yo(), a), D4 = { class: "uplo
|
|
|
6846
6850
|
};
|
|
6847
6851
|
}
|
|
6848
6852
|
});
|
|
6849
|
-
const
|
|
6850
|
-
let
|
|
6853
|
+
const M6 = /* @__PURE__ */ ye(L6, [["__scopeId", "data-v-fec6fbc8"]]);
|
|
6854
|
+
let T6 = class extends dt {
|
|
6851
6855
|
constructor() {
|
|
6852
6856
|
super("upload", "文件上传"), this.props = {
|
|
6853
6857
|
width: 12,
|
|
@@ -6867,12 +6871,12 @@ let T4 = class extends dt {
|
|
|
6867
6871
|
};
|
|
6868
6872
|
}
|
|
6869
6873
|
};
|
|
6870
|
-
const
|
|
6874
|
+
const A6 = { component: T6, renderer: M6, propEditor: V6 }, j6 = /* @__PURE__ */ he({
|
|
6871
6875
|
__name: "propsEditor",
|
|
6872
6876
|
props: {},
|
|
6873
6877
|
setup(a) {
|
|
6874
6878
|
let i = xe("formDesignerData").selectComponent.props;
|
|
6875
|
-
const m =
|
|
6879
|
+
const m = oe(i.fileSize);
|
|
6876
6880
|
return de(m, () => i.fileSize = Number(m.value)), (s, d) => {
|
|
6877
6881
|
const u = L("el-switch"), k = L("el-form-item"), E = L("el-input-number"), v = L("el-option"), _ = L("el-select"), S = L("el-input"), $ = L("el-form");
|
|
6878
6882
|
return b(), F($, {
|
|
@@ -6948,10 +6952,10 @@ const A4 = { component: T4, renderer: M4, propEditor: V4 }, j4 = /* @__PURE__ */
|
|
|
6948
6952
|
};
|
|
6949
6953
|
}
|
|
6950
6954
|
});
|
|
6951
|
-
const
|
|
6955
|
+
const F6 = /* @__PURE__ */ ye(j6, [["__scopeId", "data-v-c99badc5"]]), I6 = { class: "upload-image-component w-full" }, U6 = { class: "el-upload-list__item-actions" }, O6 = { class: "el-upload-list__item-preview" }, B6 = { class: "el-upload-list__item-delete" }, N6 = {
|
|
6952
6956
|
key: 0,
|
|
6953
6957
|
class: "dynamic-form-item-description"
|
|
6954
|
-
},
|
|
6958
|
+
}, R6 = /* @__PURE__ */ he({
|
|
6955
6959
|
__name: "renderer",
|
|
6956
6960
|
props: {
|
|
6957
6961
|
/**
|
|
@@ -6993,7 +6997,7 @@ const F4 = /* @__PURE__ */ ye(j4, [["__scopeId", "data-v-ad5e011d"]]), I4 = { cl
|
|
|
6993
6997
|
setup(a) {
|
|
6994
6998
|
const { checkFile: h } = nt(), i = a;
|
|
6995
6999
|
let m = xe("uploadOptions"), s = xe("formData");
|
|
6996
|
-
const { datas: d, componentProps: u } = et(i), k =
|
|
7000
|
+
const { datas: d, componentProps: u } = et(i), k = oe(), E = oe();
|
|
6997
7001
|
d.value[i.componentID] || (d.value[i.componentID] = []);
|
|
6998
7002
|
const v = (p) => {
|
|
6999
7003
|
if (p.status === "ready" && !h(p.raw, d.value[i.componentID], u.value.fileSize, u.value.fileSizeUnit, !0)) {
|
|
@@ -7027,7 +7031,7 @@ const F4 = /* @__PURE__ */ ye(j4, [["__scopeId", "data-v-ad5e011d"]]), I4 = { cl
|
|
|
7027
7031
|
return (p, x) => {
|
|
7028
7032
|
var O;
|
|
7029
7033
|
const z = Pe, V = L("el-image"), D = L("el-upload");
|
|
7030
|
-
return b(), T("div",
|
|
7034
|
+
return b(), T("div", I6, [
|
|
7031
7035
|
f(D, {
|
|
7032
7036
|
ref_key: "uploadImageRef",
|
|
7033
7037
|
ref: k,
|
|
@@ -7060,15 +7064,15 @@ const F4 = /* @__PURE__ */ ye(j4, [["__scopeId", "data-v-ad5e011d"]]), I4 = { cl
|
|
|
7060
7064
|
"preview-src-list": [M.url],
|
|
7061
7065
|
fit: "cover"
|
|
7062
7066
|
}, null, 8, ["src", "preview-src-list"]),
|
|
7063
|
-
I("span",
|
|
7064
|
-
I("span",
|
|
7067
|
+
I("span", U6, [
|
|
7068
|
+
I("span", O6, [
|
|
7065
7069
|
f(z, {
|
|
7066
7070
|
name: "previewImage",
|
|
7067
7071
|
color: "#00ff00",
|
|
7068
7072
|
onClick: S
|
|
7069
7073
|
})
|
|
7070
7074
|
]),
|
|
7071
|
-
I("span",
|
|
7075
|
+
I("span", B6, [
|
|
7072
7076
|
f(z, {
|
|
7073
7077
|
name: "delete",
|
|
7074
7078
|
class: "theme-color-danger",
|
|
@@ -7079,7 +7083,7 @@ const F4 = /* @__PURE__ */ ye(j4, [["__scopeId", "data-v-ad5e011d"]]), I4 = { cl
|
|
|
7079
7083
|
]),
|
|
7080
7084
|
_: 1
|
|
7081
7085
|
}, 8, ["class", "action", "headers", "data", "multiple", "limit", "file-list", "accept", "auto-upload"]),
|
|
7082
|
-
a.isDesigner && n(u).description || a.showDescription && (n(s).props.formType === n(He).Examination || n(u).description) ? (b(), T("div",
|
|
7086
|
+
a.isDesigner && n(u).description || a.showDescription && (n(s).props.formType === n(He).Examination || n(u).description) ? (b(), T("div", N6, [
|
|
7083
7087
|
f(z, { name: "tip" }),
|
|
7084
7088
|
J(" " + ve(`${n(s).props.formType === n(He).Form ? "项目说明" : "答案解析"}:${n(u).description || "无"}`), 1)
|
|
7085
7089
|
])) : R("", !0)
|
|
@@ -7087,8 +7091,8 @@ const F4 = /* @__PURE__ */ ye(j4, [["__scopeId", "data-v-ad5e011d"]]), I4 = { cl
|
|
|
7087
7091
|
};
|
|
7088
7092
|
}
|
|
7089
7093
|
});
|
|
7090
|
-
const
|
|
7091
|
-
let
|
|
7094
|
+
const P6 = /* @__PURE__ */ ye(R6, [["__scopeId", "data-v-9f85501e"]]);
|
|
7095
|
+
let H6 = class extends dt {
|
|
7092
7096
|
constructor() {
|
|
7093
7097
|
super("uploadImage", "图片上传"), this.props = {
|
|
7094
7098
|
width: 12,
|
|
@@ -7107,11 +7111,11 @@ let H4 = class extends dt {
|
|
|
7107
7111
|
};
|
|
7108
7112
|
}
|
|
7109
7113
|
};
|
|
7110
|
-
const
|
|
7114
|
+
const q6 = { component: H6, renderer: P6, propEditor: F6 }, W6 = { class: "flex items-center my-5" }, Y6 = { style: { float: "left" } }, X6 = { style: { float: "right", color: "#8492a6" } }, G6 = /* @__PURE__ */ he({
|
|
7111
7115
|
__name: "propsEditor",
|
|
7112
7116
|
setup(a) {
|
|
7113
7117
|
let h = xe("formDesignerData"), i = h.selectComponent.props;
|
|
7114
|
-
const m =
|
|
7118
|
+
const m = oe([]);
|
|
7115
7119
|
de(
|
|
7116
7120
|
() => i.options,
|
|
7117
7121
|
() => {
|
|
@@ -7127,8 +7131,8 @@ const q4 = { component: H4, renderer: P4, propEditor: F4 }, W4 = { class: "flex
|
|
|
7127
7131
|
i.options.push({ label: "", value: "" });
|
|
7128
7132
|
}, u = ($) => {
|
|
7129
7133
|
i.options.splice($, 1);
|
|
7130
|
-
}, k =
|
|
7131
|
-
let E =
|
|
7134
|
+
}, k = oe(!1);
|
|
7135
|
+
let E = oe(i.options);
|
|
7132
7136
|
const v = fi(async ($) => await h.selectComponent.searchEmployeeMethod($), 500), _ = ($) => {
|
|
7133
7137
|
if (!$)
|
|
7134
7138
|
return [];
|
|
@@ -7143,8 +7147,8 @@ const q4 = { component: H4, renderer: P4, propEditor: F4 }, W4 = { class: "flex
|
|
|
7143
7147
|
}, E.value = i.options;
|
|
7144
7148
|
};
|
|
7145
7149
|
return ($, p) => {
|
|
7146
|
-
const x = L("el-radio-button"), z = L("el-radio-group"), V = L("el-form-item"), D = L("el-switch"), O = L("el-input-number"), M = L("el-divider"), U = Pe, B = L("el-option"), H = L("el-select"), ee = L("el-button"),
|
|
7147
|
-
return b(), F(
|
|
7150
|
+
const x = L("el-radio-button"), z = L("el-radio-group"), V = L("el-form-item"), D = L("el-switch"), O = L("el-input-number"), M = L("el-divider"), U = Pe, B = L("el-option"), H = L("el-select"), ee = L("el-button"), te = L("el-form");
|
|
7151
|
+
return b(), F(te, {
|
|
7148
7152
|
"label-width": "80px",
|
|
7149
7153
|
"label-suffix": ":",
|
|
7150
7154
|
class: "zhy employee-props-editor"
|
|
@@ -7254,7 +7258,7 @@ const q4 = { component: H4, renderer: P4, propEditor: F4 }, W4 = { class: "flex
|
|
|
7254
7258
|
group: { name: "componentOptions", put: !1 }
|
|
7255
7259
|
}, {
|
|
7256
7260
|
item: y(({ element: K, index: ne }) => [
|
|
7257
|
-
I("div",
|
|
7261
|
+
I("div", W6, [
|
|
7258
7262
|
n(i).options.length > 1 ? (b(), F(U, {
|
|
7259
7263
|
key: 0,
|
|
7260
7264
|
name: "move",
|
|
@@ -7285,8 +7289,8 @@ const q4 = { component: H4, renderer: P4, propEditor: F4 }, W4 = { class: "flex
|
|
|
7285
7289
|
label: ae.label,
|
|
7286
7290
|
suffix: ae.suffix
|
|
7287
7291
|
}, () => [
|
|
7288
|
-
I("span",
|
|
7289
|
-
I("span",
|
|
7292
|
+
I("span", Y6, ve(ae.label), 1),
|
|
7293
|
+
I("span", X6, ve(ae.suffix), 1)
|
|
7290
7294
|
], !0)
|
|
7291
7295
|
]),
|
|
7292
7296
|
_: 2
|
|
@@ -7337,10 +7341,10 @@ const q4 = { component: H4, renderer: P4, propEditor: F4 }, W4 = { class: "flex
|
|
|
7337
7341
|
};
|
|
7338
7342
|
}
|
|
7339
7343
|
});
|
|
7340
|
-
const
|
|
7344
|
+
const K6 = /* @__PURE__ */ ye(G6, [["__scopeId", "data-v-685e2764"]]), Z6 = { class: "employee-component w-full" }, J6 = {
|
|
7341
7345
|
key: 3,
|
|
7342
7346
|
class: "dynamic-form-item-description"
|
|
7343
|
-
},
|
|
7347
|
+
}, Q6 = /* @__PURE__ */ he({
|
|
7344
7348
|
__name: "renderer",
|
|
7345
7349
|
props: {
|
|
7346
7350
|
/**
|
|
@@ -7390,11 +7394,11 @@ const K4 = /* @__PURE__ */ ye(G4, [["__scopeId", "data-v-207b0458"]]), Z4 = { cl
|
|
|
7390
7394
|
setup(a, { emit: h }) {
|
|
7391
7395
|
const i = a;
|
|
7392
7396
|
let m = xe("formData");
|
|
7393
|
-
const { datas: s, componentProps: d } = et(i), u =
|
|
7397
|
+
const { datas: s, componentProps: d } = et(i), u = oe(s.value[i.componentID]);
|
|
7394
7398
|
de(u, (_) => _ ? s.value[i.componentID] = _ : delete s.value[i.componentID]);
|
|
7395
7399
|
const k = h;
|
|
7396
7400
|
de(s, (_) => k("update:datas", _));
|
|
7397
|
-
const E =
|
|
7401
|
+
const E = oe(!0);
|
|
7398
7402
|
de(
|
|
7399
7403
|
d,
|
|
7400
7404
|
(_) => {
|
|
@@ -7409,7 +7413,7 @@ const K4 = /* @__PURE__ */ ye(G4, [["__scopeId", "data-v-207b0458"]]), Z4 = { cl
|
|
|
7409
7413
|
};
|
|
7410
7414
|
return (_, S) => {
|
|
7411
7415
|
const $ = L("el-radio"), p = L("el-radio-group"), x = L("el-checkbox"), z = L("el-checkbox-group"), V = L("el-option"), D = L("el-select"), O = Pe;
|
|
7412
|
-
return b(), T("div",
|
|
7416
|
+
return b(), T("div", Z6, [
|
|
7413
7417
|
n(d).type === "radio" ? (b(), F(p, {
|
|
7414
7418
|
key: 0,
|
|
7415
7419
|
class: Ee({ block: n(d).newLine }),
|
|
@@ -7471,7 +7475,7 @@ const K4 = /* @__PURE__ */ ye(G4, [["__scopeId", "data-v-207b0458"]]), Z4 = { cl
|
|
|
7471
7475
|
]),
|
|
7472
7476
|
_: 1
|
|
7473
7477
|
}, 8, ["modelValue", "multiple"])) : R("", !0),
|
|
7474
|
-
a.isDesigner && n(d).description || a.showDescription && (n(m).props.formType === n(He).Examination || n(d).description) ? (b(), T("div",
|
|
7478
|
+
a.isDesigner && n(d).description || a.showDescription && (n(m).props.formType === n(He).Examination || n(d).description) ? (b(), T("div", J6, [
|
|
7475
7479
|
f(O, { name: "tip" }),
|
|
7476
7480
|
J(" " + ve(`${n(m).props.formType === n(He).Form ? "项目说明" : "答案解析"}:${n(d).description || "无"}`), 1)
|
|
7477
7481
|
])) : R("", !0)
|
|
@@ -7479,8 +7483,8 @@ const K4 = /* @__PURE__ */ ye(G4, [["__scopeId", "data-v-207b0458"]]), Z4 = { cl
|
|
|
7479
7483
|
};
|
|
7480
7484
|
}
|
|
7481
7485
|
});
|
|
7482
|
-
const
|
|
7483
|
-
let
|
|
7486
|
+
const e4 = /* @__PURE__ */ ye(Q6, [["__scopeId", "data-v-b06a6aa5"]]);
|
|
7487
|
+
let t4 = class extends dt {
|
|
7484
7488
|
constructor() {
|
|
7485
7489
|
super("employee", "人员", !0), this.props = {
|
|
7486
7490
|
width: 12,
|
|
@@ -7532,7 +7536,7 @@ let t6 = class extends dt {
|
|
|
7532
7536
|
return ["INCLUDES", "EXCLUDE", "RANGE", "EMPTY"];
|
|
7533
7537
|
}
|
|
7534
7538
|
};
|
|
7535
|
-
const
|
|
7539
|
+
const o4 = { component: t4, renderer: e4, propEditor: K6 };
|
|
7536
7540
|
function fr() {
|
|
7537
7541
|
return {
|
|
7538
7542
|
/**
|
|
@@ -7552,11 +7556,11 @@ function fr() {
|
|
|
7552
7556
|
}
|
|
7553
7557
|
};
|
|
7554
7558
|
}
|
|
7555
|
-
const
|
|
7559
|
+
const n4 = /* @__PURE__ */ he({
|
|
7556
7560
|
__name: "propsEditor",
|
|
7557
7561
|
setup(a) {
|
|
7558
7562
|
let h = xe("formDesignerData"), i = h.selectComponent.props;
|
|
7559
|
-
const { getGradeItems: m } = fr(), s =
|
|
7563
|
+
const { getGradeItems: m } = fr(), s = oe([]);
|
|
7560
7564
|
return de(i, () => {
|
|
7561
7565
|
s.value = m(i), h.selectComponent.filterConditionProps || (h.selectComponent.filterConditionProps = {}), h.selectComponent.filterConditionProps.options = s.value;
|
|
7562
7566
|
}), (d, u) => {
|
|
@@ -7676,10 +7680,10 @@ const n6 = /* @__PURE__ */ he({
|
|
|
7676
7680
|
};
|
|
7677
7681
|
}
|
|
7678
7682
|
});
|
|
7679
|
-
const
|
|
7683
|
+
const r4 = /* @__PURE__ */ ye(n4, [["__scopeId", "data-v-c2c1d1e2"]]), a4 = { class: "auto-complete" }, l4 = {
|
|
7680
7684
|
key: 0,
|
|
7681
7685
|
class: "theme-color-fontColor"
|
|
7682
|
-
},
|
|
7686
|
+
}, i4 = /* @__PURE__ */ he({
|
|
7683
7687
|
__name: "autoComplete",
|
|
7684
7688
|
props: {
|
|
7685
7689
|
modelValue: {
|
|
@@ -7717,9 +7721,9 @@ const r6 = /* @__PURE__ */ ye(n6, [["__scopeId", "data-v-d82061ee"]]), a6 = { cl
|
|
|
7717
7721
|
emits: ["update:modelValue", "change"],
|
|
7718
7722
|
setup(a, { emit: h }) {
|
|
7719
7723
|
pr((p) => ({
|
|
7720
|
-
"
|
|
7724
|
+
"1c7d1830": n($)
|
|
7721
7725
|
}));
|
|
7722
|
-
const i =
|
|
7726
|
+
const i = oe(), m = a;
|
|
7723
7727
|
let { options: s, width: d } = et(m);
|
|
7724
7728
|
const u = h, k = z3(m, "modelValue", u), E = () => {
|
|
7725
7729
|
u("change", k.value);
|
|
@@ -7732,8 +7736,8 @@ const r6 = /* @__PURE__ */ ye(n6, [["__scopeId", "data-v-d82061ee"]]), a6 = { cl
|
|
|
7732
7736
|
})[m.matchMode], S = xe("convertPX"), $ = ht(() => `${S(d.value)}px`);
|
|
7733
7737
|
return (p, x) => {
|
|
7734
7738
|
const z = L("el-autocomplete");
|
|
7735
|
-
return b(), T("div",
|
|
7736
|
-
a.label ? (b(), T("span",
|
|
7739
|
+
return b(), T("div", a4, [
|
|
7740
|
+
a.label ? (b(), T("span", l4, ve(a.label), 1)) : R("", !0),
|
|
7737
7741
|
f(z, {
|
|
7738
7742
|
ref_key: "autoCompleteRef",
|
|
7739
7743
|
ref: i,
|
|
@@ -7755,10 +7759,10 @@ const r6 = /* @__PURE__ */ ye(n6, [["__scopeId", "data-v-d82061ee"]]), a6 = { cl
|
|
|
7755
7759
|
};
|
|
7756
7760
|
}
|
|
7757
7761
|
});
|
|
7758
|
-
const
|
|
7762
|
+
const s4 = /* @__PURE__ */ ye(i4, [["__scopeId", "data-v-579a8cc5"]]), c4 = {
|
|
7759
7763
|
key: 3,
|
|
7760
7764
|
class: "dynamic-form-item-description"
|
|
7761
|
-
},
|
|
7765
|
+
}, d4 = /* @__PURE__ */ he({
|
|
7762
7766
|
__name: "renderer",
|
|
7763
7767
|
props: {
|
|
7764
7768
|
/**
|
|
@@ -7808,7 +7812,7 @@ const s6 = /* @__PURE__ */ ye(i6, [["__scopeId", "data-v-7e87db96"]]), c6 = {
|
|
|
7808
7812
|
setup(a, { emit: h }) {
|
|
7809
7813
|
const i = a, { getGradeItems: m } = fr();
|
|
7810
7814
|
let s = xe("formData");
|
|
7811
|
-
const { datas: d, componentProps: u } = et(i), k =
|
|
7815
|
+
const { datas: d, componentProps: u } = et(i), k = oe(d.value[i.componentID] || {});
|
|
7812
7816
|
de(
|
|
7813
7817
|
k,
|
|
7814
7818
|
(S) => {
|
|
@@ -7831,7 +7835,7 @@ const s6 = /* @__PURE__ */ ye(i6, [["__scopeId", "data-v-7e87db96"]]), c6 = {
|
|
|
7831
7835
|
u.value.clearable && k.value.score === $ && (delete k.value.score, S.preventDefault());
|
|
7832
7836
|
};
|
|
7833
7837
|
return (S, $) => {
|
|
7834
|
-
const p = L("el-radio"), x = L("el-radio-group"), z =
|
|
7838
|
+
const p = L("el-radio"), x = L("el-radio-group"), z = s4, V = Pe;
|
|
7835
7839
|
return b(), T("div", {
|
|
7836
7840
|
class: Ee([
|
|
7837
7841
|
"grade-component w-full sons-class-auto-complete:mr-20 sons-class-auto-complete:mb-3",
|
|
@@ -7892,7 +7896,7 @@ const s6 = /* @__PURE__ */ ye(i6, [["__scopeId", "data-v-7e87db96"]]), c6 = {
|
|
|
7892
7896
|
disabled: a.disabled,
|
|
7893
7897
|
options: n(u).remarkOptions
|
|
7894
7898
|
}, null, 8, ["modelValue", "disabled", "options"])) : R("", !0),
|
|
7895
|
-
a.isDesigner && n(u).description || a.showDescription && (n(s).props.formType === n(He).Examination || n(u).description) ? (b(), T("div",
|
|
7899
|
+
a.isDesigner && n(u).description || a.showDescription && (n(s).props.formType === n(He).Examination || n(u).description) ? (b(), T("div", c4, [
|
|
7896
7900
|
f(V, { name: "tip" }),
|
|
7897
7901
|
J(" " + ve(`${n(s).props.formType === n(He).Form ? "项目说明" : "答案解析"}:${n(u).description || "无"}`), 1)
|
|
7898
7902
|
])) : R("", !0)
|
|
@@ -7900,8 +7904,8 @@ const s6 = /* @__PURE__ */ ye(i6, [["__scopeId", "data-v-7e87db96"]]), c6 = {
|
|
|
7900
7904
|
};
|
|
7901
7905
|
}
|
|
7902
7906
|
});
|
|
7903
|
-
const
|
|
7904
|
-
let
|
|
7907
|
+
const u4 = /* @__PURE__ */ ye(d4, [["__scopeId", "data-v-90d6e9dc"]]), { isEmpty: p4 } = nt(), { getGradeItems: m4 } = fr();
|
|
7908
|
+
let f4 = class extends dt {
|
|
7905
7909
|
constructor() {
|
|
7906
7910
|
super("grade", "考评分数", !0), this.props = {
|
|
7907
7911
|
width: 12,
|
|
@@ -7939,7 +7943,7 @@ let f6 = class extends dt {
|
|
|
7939
7943
|
required: h.required,
|
|
7940
7944
|
message: h.requiredMessage,
|
|
7941
7945
|
validator: (i, m, s) => {
|
|
7942
|
-
if (!m ||
|
|
7946
|
+
if (!m || p4(m)) {
|
|
7943
7947
|
s(h.requiredMessage);
|
|
7944
7948
|
return;
|
|
7945
7949
|
}
|
|
@@ -7956,7 +7960,7 @@ let f6 = class extends dt {
|
|
|
7956
7960
|
getFilterConditionProps(h) {
|
|
7957
7961
|
return {
|
|
7958
7962
|
type: "selector",
|
|
7959
|
-
options: h &&
|
|
7963
|
+
options: h && m4(h)
|
|
7960
7964
|
};
|
|
7961
7965
|
}
|
|
7962
7966
|
/**
|
|
@@ -7966,7 +7970,7 @@ let f6 = class extends dt {
|
|
|
7966
7970
|
return ["INCLUDES", "EXCLUDE", "RANGE", "EMPTY"];
|
|
7967
7971
|
}
|
|
7968
7972
|
};
|
|
7969
|
-
const
|
|
7973
|
+
const h4 = { component: f4, renderer: u4, propEditor: r4 }, g4 = /* @__PURE__ */ he({
|
|
7970
7974
|
__name: "propsEditor",
|
|
7971
7975
|
setup(a) {
|
|
7972
7976
|
let h = xe("formDesignerData"), i = h.selectComponent.props;
|
|
@@ -8083,10 +8087,10 @@ const h6 = { component: f6, renderer: u6, propEditor: r6 }, g6 = /* @__PURE__ */
|
|
|
8083
8087
|
};
|
|
8084
8088
|
}
|
|
8085
8089
|
});
|
|
8086
|
-
const
|
|
8090
|
+
const b4 = /* @__PURE__ */ ye(g4, [["__scopeId", "data-v-632c03f9"]]), v4 = { class: "post-component w-full" }, y4 = {
|
|
8087
8091
|
key: 3,
|
|
8088
8092
|
class: "dynamic-form-item-description"
|
|
8089
|
-
},
|
|
8093
|
+
}, _4 = /* @__PURE__ */ he({
|
|
8090
8094
|
__name: "renderer",
|
|
8091
8095
|
props: {
|
|
8092
8096
|
/**
|
|
@@ -8136,11 +8140,11 @@ const b6 = /* @__PURE__ */ ye(g6, [["__scopeId", "data-v-c29f56dd"]]), v6 = { cl
|
|
|
8136
8140
|
setup(a, { emit: h }) {
|
|
8137
8141
|
const i = a;
|
|
8138
8142
|
let m = xe("formData");
|
|
8139
|
-
const { datas: s, componentProps: d } = et(i), u =
|
|
8143
|
+
const { datas: s, componentProps: d } = et(i), u = oe(s.value[i.componentID]);
|
|
8140
8144
|
de(u, (_) => _ ? s.value[i.componentID] = _ : delete s.value[i.componentID]);
|
|
8141
8145
|
const k = h;
|
|
8142
8146
|
de(s, (_) => k("update:datas", _));
|
|
8143
|
-
const E =
|
|
8147
|
+
const E = oe(!0);
|
|
8144
8148
|
de(
|
|
8145
8149
|
d,
|
|
8146
8150
|
(_) => {
|
|
@@ -8155,7 +8159,7 @@ const b6 = /* @__PURE__ */ ye(g6, [["__scopeId", "data-v-c29f56dd"]]), v6 = { cl
|
|
|
8155
8159
|
};
|
|
8156
8160
|
return (_, S) => {
|
|
8157
8161
|
const $ = L("el-radio"), p = L("el-radio-group"), x = L("el-checkbox"), z = L("el-checkbox-group"), V = L("el-option"), D = L("el-select"), O = Pe;
|
|
8158
|
-
return b(), T("div",
|
|
8162
|
+
return b(), T("div", v4, [
|
|
8159
8163
|
n(d).type === "radio" ? (b(), F(p, {
|
|
8160
8164
|
key: 0,
|
|
8161
8165
|
class: Ee({ block: n(d).newLine }),
|
|
@@ -8217,7 +8221,7 @@ const b6 = /* @__PURE__ */ ye(g6, [["__scopeId", "data-v-c29f56dd"]]), v6 = { cl
|
|
|
8217
8221
|
]),
|
|
8218
8222
|
_: 1
|
|
8219
8223
|
}, 8, ["modelValue", "multiple"])) : R("", !0),
|
|
8220
|
-
a.isDesigner && n(d).description || a.showDescription && (n(m).props.formType === n(He).Examination || n(d).description) ? (b(), T("div",
|
|
8224
|
+
a.isDesigner && n(d).description || a.showDescription && (n(m).props.formType === n(He).Examination || n(d).description) ? (b(), T("div", y4, [
|
|
8221
8225
|
f(O, { name: "tip" }),
|
|
8222
8226
|
J(" " + ve(`${n(m).props.formType === n(He).Form ? "项目说明" : "答案解析"}:${n(d).description || "无"}`), 1)
|
|
8223
8227
|
])) : R("", !0)
|
|
@@ -8225,8 +8229,8 @@ const b6 = /* @__PURE__ */ ye(g6, [["__scopeId", "data-v-c29f56dd"]]), v6 = { cl
|
|
|
8225
8229
|
};
|
|
8226
8230
|
}
|
|
8227
8231
|
});
|
|
8228
|
-
const
|
|
8229
|
-
let
|
|
8232
|
+
const x4 = /* @__PURE__ */ ye(_4, [["__scopeId", "data-v-72a01c66"]]);
|
|
8233
|
+
let w4 = class extends dt {
|
|
8230
8234
|
constructor() {
|
|
8231
8235
|
super("post", "岗位", !0), this.props = {
|
|
8232
8236
|
width: 12,
|
|
@@ -8276,7 +8280,7 @@ let w6 = class extends dt {
|
|
|
8276
8280
|
return ["INCLUDES", "EXCLUDE", "RANGE", "EMPTY"];
|
|
8277
8281
|
}
|
|
8278
8282
|
};
|
|
8279
|
-
const $
|
|
8283
|
+
const $4 = { component: w4, renderer: x4, propEditor: b4 }, k4 = { class: "flex items-center my-5" }, C4 = /* @__PURE__ */ he({
|
|
8280
8284
|
__name: "propsEditor",
|
|
8281
8285
|
props: {
|
|
8282
8286
|
/**
|
|
@@ -8385,7 +8389,7 @@ const $6 = { component: w6, renderer: x6, propEditor: b6 }, k6 = { class: "flex
|
|
|
8385
8389
|
group: { name: "componentOptions", put: !1 }
|
|
8386
8390
|
}, {
|
|
8387
8391
|
item: y(({ element: B, index: H }) => [
|
|
8388
|
-
I("div",
|
|
8392
|
+
I("div", k4, [
|
|
8389
8393
|
n(m).options.length > 1 ? (b(), F(V, {
|
|
8390
8394
|
key: 0,
|
|
8391
8395
|
name: "move",
|
|
@@ -8461,10 +8465,10 @@ const $6 = { component: w6, renderer: x6, propEditor: b6 }, k6 = { class: "flex
|
|
|
8461
8465
|
};
|
|
8462
8466
|
}
|
|
8463
8467
|
});
|
|
8464
|
-
const
|
|
8468
|
+
const V4 = /* @__PURE__ */ ye(C4, [["__scopeId", "data-v-ed1f32db"]]), z4 = { class: "checkbox-component w-full" }, D4 = {
|
|
8465
8469
|
key: 0,
|
|
8466
8470
|
class: "dynamic-form-item-description"
|
|
8467
|
-
},
|
|
8471
|
+
}, E4 = /* @__PURE__ */ he({
|
|
8468
8472
|
__name: "renderer",
|
|
8469
8473
|
props: {
|
|
8470
8474
|
/**
|
|
@@ -8514,7 +8518,7 @@ const V6 = /* @__PURE__ */ ye(C6, [["__scopeId", "data-v-167aa155"]]), z6 = { cl
|
|
|
8514
8518
|
setup(a, { emit: h }) {
|
|
8515
8519
|
const i = a;
|
|
8516
8520
|
let m = xe("formData");
|
|
8517
|
-
const s = xe("realTimeDisplayAnswerMode"), { datas: d, componentProps: u } = et(i), k =
|
|
8521
|
+
const s = xe("realTimeDisplayAnswerMode"), { datas: d, componentProps: u } = et(i), k = oe(d.value[i.componentID]);
|
|
8518
8522
|
de(k, (S) => d.value[i.componentID] = S);
|
|
8519
8523
|
const E = h;
|
|
8520
8524
|
de(d, (S) => E("update:datas", S)), de(
|
|
@@ -8524,7 +8528,7 @@ const V6 = /* @__PURE__ */ ye(C6, [["__scopeId", "data-v-167aa155"]]), z6 = { cl
|
|
|
8524
8528
|
},
|
|
8525
8529
|
{ immediate: !0, deep: !0 }
|
|
8526
8530
|
);
|
|
8527
|
-
const v =
|
|
8531
|
+
const v = oe(!1), _ = (S) => {
|
|
8528
8532
|
var $, p;
|
|
8529
8533
|
m.value.props.formType === He.Examination && s && (S != null && S.length) && (($ = u.value.correctOptions) != null && $.length) ? !S.find((z) => {
|
|
8530
8534
|
var V;
|
|
@@ -8536,7 +8540,7 @@ const V6 = /* @__PURE__ */ ye(C6, [["__scopeId", "data-v-167aa155"]]), z6 = { cl
|
|
|
8536
8540
|
};
|
|
8537
8541
|
return _(d.value[i.componentID]), (S, $) => {
|
|
8538
8542
|
const p = L("el-checkbox"), x = L("el-input"), z = L("el-checkbox-group"), V = Pe;
|
|
8539
|
-
return b(), T("div",
|
|
8543
|
+
return b(), T("div", z4, [
|
|
8540
8544
|
f(z, {
|
|
8541
8545
|
modelValue: n(k),
|
|
8542
8546
|
"onUpdate:modelValue": $[0] || ($[0] = (D) => Fe(k) ? k.value = D : null),
|
|
@@ -8572,7 +8576,7 @@ const V6 = /* @__PURE__ */ ye(C6, [["__scopeId", "data-v-167aa155"]]), z6 = { cl
|
|
|
8572
8576
|
]),
|
|
8573
8577
|
_: 1
|
|
8574
8578
|
}, 8, ["modelValue", "disabled", "min", "max"]),
|
|
8575
|
-
a.isDesigner && n(u).description || n(v) || a.showDescription && (n(m).props.formType === n(He).Examination || n(u).description) ? (b(), T("div",
|
|
8579
|
+
a.isDesigner && n(u).description || n(v) || a.showDescription && (n(m).props.formType === n(He).Examination || n(u).description) ? (b(), T("div", D4, [
|
|
8576
8580
|
f(V, { name: "tip" }),
|
|
8577
8581
|
J(" " + ve(`${n(m).props.formType === n(He).Form ? "项目说明" : "答案解析"}:${n(u).description || "无"}`), 1)
|
|
8578
8582
|
])) : R("", !0)
|
|
@@ -8580,8 +8584,8 @@ const V6 = /* @__PURE__ */ ye(C6, [["__scopeId", "data-v-167aa155"]]), z6 = { cl
|
|
|
8580
8584
|
};
|
|
8581
8585
|
}
|
|
8582
8586
|
});
|
|
8583
|
-
const
|
|
8584
|
-
let
|
|
8587
|
+
const S4 = /* @__PURE__ */ ye(E4, [["__scopeId", "data-v-008b3f9a"]]), { getTempID: ii } = nt();
|
|
8588
|
+
let L4 = class extends dt {
|
|
8585
8589
|
constructor() {
|
|
8586
8590
|
super("checkbox", "多选框", !0), this.props = {
|
|
8587
8591
|
width: 12,
|
|
@@ -8633,7 +8637,7 @@ let L6 = class extends dt {
|
|
|
8633
8637
|
return ["RANGE"];
|
|
8634
8638
|
}
|
|
8635
8639
|
};
|
|
8636
|
-
const
|
|
8640
|
+
const M4 = { component: L4, renderer: S4, propEditor: V4 }, T4 = /* @__PURE__ */ he({
|
|
8637
8641
|
__name: "propsEditor",
|
|
8638
8642
|
setup(a) {
|
|
8639
8643
|
const { computedExpression: h } = nt();
|
|
@@ -8730,10 +8734,10 @@ const M6 = { component: L6, renderer: S6, propEditor: V6 }, T6 = /* @__PURE__ */
|
|
|
8730
8734
|
};
|
|
8731
8735
|
}
|
|
8732
8736
|
});
|
|
8733
|
-
const
|
|
8737
|
+
const A4 = /* @__PURE__ */ ye(T4, [["__scopeId", "data-v-674b2002"]]), j4 = { class: "input-component w-full" }, F4 = {
|
|
8734
8738
|
key: 0,
|
|
8735
8739
|
class: "dynamic-form-item-description"
|
|
8736
|
-
},
|
|
8740
|
+
}, I4 = /* @__PURE__ */ he({
|
|
8737
8741
|
__name: "renderer",
|
|
8738
8742
|
props: {
|
|
8739
8743
|
/**
|
|
@@ -8790,7 +8794,7 @@ const A6 = /* @__PURE__ */ ye(T6, [["__scopeId", "data-v-2f2d85b5"]]), j6 = { cl
|
|
|
8790
8794
|
setup(a, { emit: h }) {
|
|
8791
8795
|
const i = a;
|
|
8792
8796
|
let m = xe("formData");
|
|
8793
|
-
const { datas: s, componentProps: d } = et(i), u =
|
|
8797
|
+
const { datas: s, componentProps: d } = et(i), u = oe(s.value[i.componentID]);
|
|
8794
8798
|
de(u, (E) => s.value[i.componentID] = E);
|
|
8795
8799
|
const k = h;
|
|
8796
8800
|
return de(s, (E) => k("update:datas", E)), de(
|
|
@@ -8801,7 +8805,7 @@ const A6 = /* @__PURE__ */ ye(T6, [["__scopeId", "data-v-2f2d85b5"]]), j6 = { cl
|
|
|
8801
8805
|
{ immediate: !0, deep: !0 }
|
|
8802
8806
|
), (E, v) => {
|
|
8803
8807
|
const _ = L("el-input"), S = Pe;
|
|
8804
|
-
return b(), T("div",
|
|
8808
|
+
return b(), T("div", j4, [
|
|
8805
8809
|
f(_, {
|
|
8806
8810
|
type: n(d).type,
|
|
8807
8811
|
"show-password": n(d).showPassword,
|
|
@@ -8812,7 +8816,7 @@ const A6 = /* @__PURE__ */ ye(T6, [["__scopeId", "data-v-2f2d85b5"]]), j6 = { cl
|
|
|
8812
8816
|
disabled: a.disabled,
|
|
8813
8817
|
readonly: a.readonly
|
|
8814
8818
|
}, null, 8, ["type", "show-password", "modelValue", "placeholder", "clearable", "disabled", "readonly"]),
|
|
8815
|
-
a.isDesigner && n(d).description || a.showDescription && (n(m).props.formType === n(He).Examination || n(d).description) ? (b(), T("div",
|
|
8819
|
+
a.isDesigner && n(d).description || a.showDescription && (n(m).props.formType === n(He).Examination || n(d).description) ? (b(), T("div", F4, [
|
|
8816
8820
|
f(S, { name: "tip" }),
|
|
8817
8821
|
J(" " + ve(`${n(m).props.formType === n(He).Form ? "项目说明" : "答案解析"}:${n(d).description || "无"}`), 1)
|
|
8818
8822
|
])) : R("", !0)
|
|
@@ -8820,8 +8824,8 @@ const A6 = /* @__PURE__ */ ye(T6, [["__scopeId", "data-v-2f2d85b5"]]), j6 = { cl
|
|
|
8820
8824
|
};
|
|
8821
8825
|
}
|
|
8822
8826
|
});
|
|
8823
|
-
const
|
|
8824
|
-
let
|
|
8827
|
+
const U4 = /* @__PURE__ */ ye(I4, [["__scopeId", "data-v-a353a11a"]]);
|
|
8828
|
+
let O4 = class extends dt {
|
|
8825
8829
|
/**
|
|
8826
8830
|
* @description: 构造器
|
|
8827
8831
|
*/
|
|
@@ -8876,7 +8880,7 @@ let O6 = class extends dt {
|
|
|
8876
8880
|
return ["RANGE"];
|
|
8877
8881
|
}
|
|
8878
8882
|
};
|
|
8879
|
-
const
|
|
8883
|
+
const B4 = { component: O4, renderer: U4, propEditor: A4 }, N4 = /* @__PURE__ */ he({
|
|
8880
8884
|
__name: "renderer",
|
|
8881
8885
|
props: {
|
|
8882
8886
|
componentProps: {
|
|
@@ -8895,8 +8899,8 @@ const B6 = { component: O6, renderer: U6, propEditor: A6 }, N6 = /* @__PURE__ */
|
|
|
8895
8899
|
}, ve(a.componentProps.label), 5));
|
|
8896
8900
|
}
|
|
8897
8901
|
});
|
|
8898
|
-
const
|
|
8899
|
-
let
|
|
8902
|
+
const R4 = /* @__PURE__ */ ye(N4, [["__scopeId", "data-v-1a032af3"]]);
|
|
8903
|
+
let P4 = class extends dt {
|
|
8900
8904
|
/**
|
|
8901
8905
|
* @description: 构造器
|
|
8902
8906
|
*/
|
|
@@ -8913,7 +8917,7 @@ let P6 = class extends dt {
|
|
|
8913
8917
|
};
|
|
8914
8918
|
}
|
|
8915
8919
|
};
|
|
8916
|
-
const
|
|
8920
|
+
const H4 = { component: P4, renderer: R4, undefined: void 0 }, q4 = { class: "flex items-center my-5" }, W4 = /* @__PURE__ */ he({
|
|
8917
8921
|
__name: "propsEditor",
|
|
8918
8922
|
props: {
|
|
8919
8923
|
/**
|
|
@@ -8997,7 +9001,7 @@ const H6 = { component: P6, renderer: R6, undefined: void 0 }, q6 = { class: "fl
|
|
|
8997
9001
|
group: { name: "componentOptions", put: !1 }
|
|
8998
9002
|
}, {
|
|
8999
9003
|
item: y(({ element: U, index: B }) => [
|
|
9000
|
-
I("div",
|
|
9004
|
+
I("div", q4, [
|
|
9001
9005
|
n(m).options.length > 1 ? (b(), F(z, {
|
|
9002
9006
|
key: 0,
|
|
9003
9007
|
name: "move",
|
|
@@ -9073,10 +9077,10 @@ const H6 = { component: P6, renderer: R6, undefined: void 0 }, q6 = { class: "fl
|
|
|
9073
9077
|
};
|
|
9074
9078
|
}
|
|
9075
9079
|
});
|
|
9076
|
-
const
|
|
9080
|
+
const Y4 = /* @__PURE__ */ ye(W4, [["__scopeId", "data-v-57583e80"]]), X4 = { class: "radio-component w-full" }, G4 = {
|
|
9077
9081
|
key: 0,
|
|
9078
9082
|
class: "dynamic-form-item-description"
|
|
9079
|
-
},
|
|
9083
|
+
}, K4 = /* @__PURE__ */ he({
|
|
9080
9084
|
__name: "renderer",
|
|
9081
9085
|
props: {
|
|
9082
9086
|
/**
|
|
@@ -9126,7 +9130,7 @@ const Y6 = /* @__PURE__ */ ye(W6, [["__scopeId", "data-v-8107b2af"]]), X6 = { cl
|
|
|
9126
9130
|
setup(a, { emit: h }) {
|
|
9127
9131
|
const i = a;
|
|
9128
9132
|
let m = xe("formData");
|
|
9129
|
-
const s = xe("realTimeDisplayAnswerMode"), { datas: d, componentProps: u } = et(i), k =
|
|
9133
|
+
const s = xe("realTimeDisplayAnswerMode"), { datas: d, componentProps: u } = et(i), k = oe(d.value[i.componentID]);
|
|
9130
9134
|
de(k, ($) => d.value[i.componentID] = $);
|
|
9131
9135
|
const E = h;
|
|
9132
9136
|
de(d, ($) => E("update:datas", $)), de(
|
|
@@ -9136,7 +9140,7 @@ const Y6 = /* @__PURE__ */ ye(W6, [["__scopeId", "data-v-8107b2af"]]), X6 = { cl
|
|
|
9136
9140
|
},
|
|
9137
9141
|
{ immediate: !0, deep: !0 }
|
|
9138
9142
|
);
|
|
9139
|
-
const v =
|
|
9143
|
+
const v = oe(!1), _ = ($) => {
|
|
9140
9144
|
var p, x;
|
|
9141
9145
|
m.value.props.formType === He.Examination && s && $ && ((p = u.value.correctOptions) != null && p.length) && ((x = u.value.correctOptions) != null && x.includes($) ? (u.value.examinationStatus = go.Correct, u.value.color = "#000000", v.value = !1) : (u.value.examinationStatus = go.Error, u.value.color = "#ff0000", v.value = !0)), u.value.options.forEach((z) => {
|
|
9142
9146
|
const V = `${i.componentID}||${z.value}`;
|
|
@@ -9153,7 +9157,7 @@ const Y6 = /* @__PURE__ */ ye(W6, [["__scopeId", "data-v-8107b2af"]]), X6 = { cl
|
|
|
9153
9157
|
};
|
|
9154
9158
|
return ($, p) => {
|
|
9155
9159
|
const x = L("el-radio"), z = L("el-input"), V = L("el-radio-group"), D = Pe;
|
|
9156
|
-
return b(), T("div",
|
|
9160
|
+
return b(), T("div", X4, [
|
|
9157
9161
|
f(V, {
|
|
9158
9162
|
class: Ee({ block: n(u).newLine }),
|
|
9159
9163
|
modelValue: n(k),
|
|
@@ -9189,7 +9193,7 @@ const Y6 = /* @__PURE__ */ ye(W6, [["__scopeId", "data-v-8107b2af"]]), X6 = { cl
|
|
|
9189
9193
|
]),
|
|
9190
9194
|
_: 1
|
|
9191
9195
|
}, 8, ["class", "modelValue", "disabled"]),
|
|
9192
|
-
a.isDesigner && n(u).description || n(v) || a.showDescription && (n(m).props.formType === n(He).Examination || n(u).description) ? (b(), T("div",
|
|
9196
|
+
a.isDesigner && n(u).description || n(v) || a.showDescription && (n(m).props.formType === n(He).Examination || n(u).description) ? (b(), T("div", G4, [
|
|
9193
9197
|
f(D, { name: "tip" }),
|
|
9194
9198
|
J(" " + ve(`${n(m).props.formType === n(He).Form ? "项目说明" : "答案解析"}:${n(u).description || "无"}`), 1)
|
|
9195
9199
|
])) : R("", !0)
|
|
@@ -9197,8 +9201,8 @@ const Y6 = /* @__PURE__ */ ye(W6, [["__scopeId", "data-v-8107b2af"]]), X6 = { cl
|
|
|
9197
9201
|
};
|
|
9198
9202
|
}
|
|
9199
9203
|
});
|
|
9200
|
-
const
|
|
9201
|
-
let
|
|
9204
|
+
const Z4 = /* @__PURE__ */ ye(K4, [["__scopeId", "data-v-b9bd3936"]]), { getTempID: si } = nt();
|
|
9205
|
+
let J4 = class extends dt {
|
|
9202
9206
|
constructor() {
|
|
9203
9207
|
super("radio", "单选框", !0), this.props = {
|
|
9204
9208
|
width: 12,
|
|
@@ -9250,7 +9254,7 @@ let J6 = class extends dt {
|
|
|
9250
9254
|
return ["RANGE"];
|
|
9251
9255
|
}
|
|
9252
9256
|
};
|
|
9253
|
-
const
|
|
9257
|
+
const Q4 = { component: J4, renderer: Z4, propEditor: Y4 };
|
|
9254
9258
|
function zi() {
|
|
9255
9259
|
const a = [
|
|
9256
9260
|
{
|
|
@@ -9362,7 +9366,7 @@ const em = { class: "unit" }, tm = { class: "ml-10" }, om = /* @__PURE__ */ he({
|
|
|
9362
9366
|
setup(a) {
|
|
9363
9367
|
const { getDatetimeTypes: h, isDatetimeProp: i } = zi();
|
|
9364
9368
|
let s = xe("formDesignerData").selectComponent.props, d = h();
|
|
9365
|
-
const u =
|
|
9369
|
+
const u = oe(), k = oe(s.datetimeType || "datetime");
|
|
9366
9370
|
return de(
|
|
9367
9371
|
() => k.value,
|
|
9368
9372
|
(E, v) => {
|
|
@@ -9381,7 +9385,7 @@ const em = { class: "unit" }, tm = { class: "ml-10" }, om = /* @__PURE__ */ he({
|
|
|
9381
9385
|
class: "zhy date-props-editor"
|
|
9382
9386
|
}, {
|
|
9383
9387
|
default: y(() => {
|
|
9384
|
-
var D, O, M, U, B, H, ee,
|
|
9388
|
+
var D, O, M, U, B, H, ee, te;
|
|
9385
9389
|
return [
|
|
9386
9390
|
f($, { label: "类型" }, {
|
|
9387
9391
|
default: y(() => [
|
|
@@ -9519,7 +9523,7 @@ const em = { class: "unit" }, tm = { class: "ml-10" }, om = /* @__PURE__ */ he({
|
|
|
9519
9523
|
}),
|
|
9520
9524
|
_: 1
|
|
9521
9525
|
})) : R("", !0),
|
|
9522
|
-
(
|
|
9526
|
+
(te = n(u)) != null && te.props.includes("rangeSeparator") ? (b(), F($, {
|
|
9523
9527
|
key: 7,
|
|
9524
9528
|
label: "分隔符"
|
|
9525
9529
|
}, {
|
|
@@ -9539,7 +9543,7 @@ const em = { class: "unit" }, tm = { class: "ml-10" }, om = /* @__PURE__ */ he({
|
|
|
9539
9543
|
};
|
|
9540
9544
|
}
|
|
9541
9545
|
});
|
|
9542
|
-
const nm = /* @__PURE__ */ ye(om, [["__scopeId", "data-v-
|
|
9546
|
+
const nm = /* @__PURE__ */ ye(om, [["__scopeId", "data-v-9d20e140"]]);
|
|
9543
9547
|
function $n(a, h) {
|
|
9544
9548
|
let i = _t(a || /* @__PURE__ */ new Date()).format(h || "YYYY-MM-DD");
|
|
9545
9549
|
return i === "Invalid Date" && (i = _t(`${$n(/* @__PURE__ */ new Date())} ${a}`).format(h || "YYYY-MM-DD")), i;
|
|
@@ -9635,7 +9639,7 @@ const sm = { class: "date-component w-full" }, cm = {
|
|
|
9635
9639
|
setup(a, { emit: h }) {
|
|
9636
9640
|
const i = a;
|
|
9637
9641
|
let m = xe("formData");
|
|
9638
|
-
const { datas: s, componentProps: d } = et(i), u =
|
|
9642
|
+
const { datas: s, componentProps: d } = et(i), u = oe(s.value[i.componentID]);
|
|
9639
9643
|
de(u, (v) => s.value[i.componentID] = v);
|
|
9640
9644
|
const k = h;
|
|
9641
9645
|
de(s, (v) => k("update:datas", v)), de(
|
|
@@ -9680,7 +9684,7 @@ const sm = { class: "date-component w-full" }, cm = {
|
|
|
9680
9684
|
};
|
|
9681
9685
|
}
|
|
9682
9686
|
});
|
|
9683
|
-
const um = /* @__PURE__ */ ye(dm, [["__scopeId", "data-v-
|
|
9687
|
+
const um = /* @__PURE__ */ ye(dm, [["__scopeId", "data-v-7dbbccdc"]]);
|
|
9684
9688
|
let pm = class extends dt {
|
|
9685
9689
|
/**
|
|
9686
9690
|
* @description: 构造器
|
|
@@ -9737,7 +9741,7 @@ const mm = { component: pm, renderer: um, propEditor: nm }, fm = /* @__PURE__ */
|
|
|
9737
9741
|
setup(a) {
|
|
9738
9742
|
const { getTimeTypes: h, isDatetimeProp: i } = zi();
|
|
9739
9743
|
let s = xe("formDesignerData").selectComponent.props, d = h();
|
|
9740
|
-
const u =
|
|
9744
|
+
const u = oe(), k = oe(s.datetimeType || "timePicker");
|
|
9741
9745
|
return de(
|
|
9742
9746
|
() => k.value,
|
|
9743
9747
|
() => {
|
|
@@ -9763,7 +9767,7 @@ const mm = { component: pm, renderer: um, propEditor: nm }, fm = /* @__PURE__ */
|
|
|
9763
9767
|
class: "zhy time-props-editor"
|
|
9764
9768
|
}, {
|
|
9765
9769
|
default: y(() => {
|
|
9766
|
-
var O, M, U, B, H, ee,
|
|
9770
|
+
var O, M, U, B, H, ee, te, K, ne, ae;
|
|
9767
9771
|
return [
|
|
9768
9772
|
f($, { label: "类型" }, {
|
|
9769
9773
|
default: y(() => [
|
|
@@ -9877,7 +9881,7 @@ const mm = { component: pm, renderer: um, propEditor: nm }, fm = /* @__PURE__ */
|
|
|
9877
9881
|
]),
|
|
9878
9882
|
_: 1
|
|
9879
9883
|
})) : R("", !0),
|
|
9880
|
-
(
|
|
9884
|
+
(te = n(u)) != null && te.props.includes("startTime") ? (b(), F($, {
|
|
9881
9885
|
key: 6,
|
|
9882
9886
|
label: "开始时间"
|
|
9883
9887
|
}, {
|
|
@@ -9954,7 +9958,7 @@ const mm = { component: pm, renderer: um, propEditor: nm }, fm = /* @__PURE__ */
|
|
|
9954
9958
|
};
|
|
9955
9959
|
}
|
|
9956
9960
|
});
|
|
9957
|
-
const hm = /* @__PURE__ */ ye(fm, [["__scopeId", "data-v-
|
|
9961
|
+
const hm = /* @__PURE__ */ ye(fm, [["__scopeId", "data-v-979c810e"]]), gm = { class: "date-component w-full" }, bm = {
|
|
9958
9962
|
key: 2,
|
|
9959
9963
|
class: "dynamic-form-item-description"
|
|
9960
9964
|
}, vm = /* @__PURE__ */ he({
|
|
@@ -10014,7 +10018,7 @@ const hm = /* @__PURE__ */ ye(fm, [["__scopeId", "data-v-14ddc461"]]), gm = { cl
|
|
|
10014
10018
|
setup(a, { emit: h }) {
|
|
10015
10019
|
const i = a;
|
|
10016
10020
|
let m = xe("formData");
|
|
10017
|
-
const { datas: s, componentProps: d } = et(i), u =
|
|
10021
|
+
const { datas: s, componentProps: d } = et(i), u = oe(s.value[i.componentID]);
|
|
10018
10022
|
de(u, (p) => s.value[i.componentID] = p);
|
|
10019
10023
|
const k = h, E = ht(() => d.value.minTime ? $n(d.value.minTime, "HH:mm") : ""), v = ht(() => d.value.maxTime ? $n(d.value.maxTime, "HH:mm") : "");
|
|
10020
10024
|
de(s, (p) => k("update:datas", p)), de(
|
|
@@ -10102,7 +10106,7 @@ const hm = /* @__PURE__ */ ye(fm, [["__scopeId", "data-v-14ddc461"]]), gm = { cl
|
|
|
10102
10106
|
};
|
|
10103
10107
|
}
|
|
10104
10108
|
});
|
|
10105
|
-
const ym = /* @__PURE__ */ ye(vm, [["__scopeId", "data-v-
|
|
10109
|
+
const ym = /* @__PURE__ */ ye(vm, [["__scopeId", "data-v-ca88d816"]]);
|
|
10106
10110
|
let _m = class extends dt {
|
|
10107
10111
|
/**
|
|
10108
10112
|
* @description: 构造器
|
|
@@ -10171,7 +10175,7 @@ const xm = { component: _m, renderer: ym, propEditor: hm }, wm = { class: "input
|
|
|
10171
10175
|
let s = [];
|
|
10172
10176
|
for (const p in Ro)
|
|
10173
10177
|
s.push({ value: p, label: Ro[p] });
|
|
10174
|
-
const d =
|
|
10178
|
+
const d = oe(!1), u = oe([]), k = () => {
|
|
10175
10179
|
var p;
|
|
10176
10180
|
(p = i.abnormalCheckList) != null && p.length ? u.value = i.abnormalCheckList : (u.value = [], E()), d.value = !0;
|
|
10177
10181
|
}, E = () => {
|
|
@@ -10193,9 +10197,9 @@ const xm = { component: _m, renderer: ym, propEditor: hm }, wm = { class: "input
|
|
|
10193
10197
|
Ne("warning", "此功能尚未开发!");
|
|
10194
10198
|
};
|
|
10195
10199
|
return (p, x) => {
|
|
10196
|
-
const z = L("el-input-number"), V = L("el-form-item"), D = L("el-input"), O = L("el-switch"), M = L("el-divider"), U = Pe, B = L("el-button"), H = L("el-table-column"), ee = L("el-table"),
|
|
10200
|
+
const z = L("el-input-number"), V = L("el-form-item"), D = L("el-input"), O = L("el-switch"), M = L("el-divider"), U = Pe, B = L("el-button"), H = L("el-table-column"), ee = L("el-table"), te = L("el-form"), K = L("el-option"), ne = L("el-select"), ae = L("el-drawer");
|
|
10197
10201
|
return b(), T("div", wm, [
|
|
10198
|
-
f(
|
|
10202
|
+
f(te, {
|
|
10199
10203
|
"label-width": "80px",
|
|
10200
10204
|
"label-suffix": ":",
|
|
10201
10205
|
class: "zhy"
|
|
@@ -10545,7 +10549,7 @@ const xm = { component: _m, renderer: ym, propEditor: hm }, wm = { class: "input
|
|
|
10545
10549
|
};
|
|
10546
10550
|
}
|
|
10547
10551
|
});
|
|
10548
|
-
const Vm = /* @__PURE__ */ ye(Cm, [["__scopeId", "data-v-
|
|
10552
|
+
const Vm = /* @__PURE__ */ ye(Cm, [["__scopeId", "data-v-1067a6fe"]]), zm = { class: "input-number-component w-full" }, Dm = {
|
|
10549
10553
|
key: 0,
|
|
10550
10554
|
class: "dynamic-form-item-description"
|
|
10551
10555
|
}, Em = /* @__PURE__ */ he({
|
|
@@ -10605,7 +10609,7 @@ const Vm = /* @__PURE__ */ ye(Cm, [["__scopeId", "data-v-91adee85"]]), zm = { cl
|
|
|
10605
10609
|
setup(a, { emit: h }) {
|
|
10606
10610
|
const i = a;
|
|
10607
10611
|
let m = xe("formData");
|
|
10608
|
-
const { datas: s, componentProps: d } = et(i), u =
|
|
10612
|
+
const { datas: s, componentProps: d } = et(i), u = oe(s.value[i.componentID]);
|
|
10609
10613
|
de(u, ($) => s.value[i.componentID] = $);
|
|
10610
10614
|
const k = h;
|
|
10611
10615
|
de(s, ($) => k("update:datas", $)), de(
|
|
@@ -10674,7 +10678,7 @@ const Vm = /* @__PURE__ */ ye(Cm, [["__scopeId", "data-v-91adee85"]]), zm = { cl
|
|
|
10674
10678
|
};
|
|
10675
10679
|
}
|
|
10676
10680
|
});
|
|
10677
|
-
const Sm = /* @__PURE__ */ ye(Em, [["__scopeId", "data-v-
|
|
10681
|
+
const Sm = /* @__PURE__ */ ye(Em, [["__scopeId", "data-v-e30f36a2"]]);
|
|
10678
10682
|
class Lm extends dt {
|
|
10679
10683
|
/**
|
|
10680
10684
|
* @description: 构造器
|
|
@@ -10788,7 +10792,7 @@ const Mm = { component: Lm, renderer: Sm, propEditor: Vm }, Tm = {
|
|
|
10788
10792
|
var ee;
|
|
10789
10793
|
const U = M.replace(/\{|}/g, "");
|
|
10790
10794
|
let B = s.value.datas[U];
|
|
10791
|
-
const H = u.value.find((
|
|
10795
|
+
const H = u.value.find((te) => te.id === U);
|
|
10792
10796
|
(H == null ? void 0 : H.type) === "grade" && (B = (ee = s.value.datas[U]) == null ? void 0 : ee.score), z = z.replace(M, B || "");
|
|
10793
10797
|
});
|
|
10794
10798
|
const V = m(z);
|
|
@@ -10871,7 +10875,7 @@ const Mm = { component: Lm, renderer: Sm, propEditor: Vm }, Tm = {
|
|
|
10871
10875
|
};
|
|
10872
10876
|
}
|
|
10873
10877
|
});
|
|
10874
|
-
const hr = /* @__PURE__ */ ye(Am, [["__scopeId", "data-v-
|
|
10878
|
+
const hr = /* @__PURE__ */ ye(Am, [["__scopeId", "data-v-31ab74fb"]]), jm = (a) => (vo("data-v-0ac4d673"), a = a(), yo(), a), Fm = {
|
|
10875
10879
|
key: 0,
|
|
10876
10880
|
class: "aline-between px-36"
|
|
10877
10881
|
}, Im = /* @__PURE__ */ jm(() => /* @__PURE__ */ I("h2", { class: "theme-color-edit" }, "请选择项目", -1)), Um = {
|
|
@@ -10965,10 +10969,10 @@ const hr = /* @__PURE__ */ ye(Am, [["__scopeId", "data-v-077c4a5c"]]), jm = (a)
|
|
|
10965
10969
|
},
|
|
10966
10970
|
emits: ["change", "select"],
|
|
10967
10971
|
setup(a, { expose: h, emit: i }) {
|
|
10968
|
-
const { removeEmptyAttribute: m } = nt(), s = { ...Vn, ...En, ...zn, ...Dn }, d =
|
|
10972
|
+
const { removeEmptyAttribute: m } = nt(), s = { ...Vn, ...En, ...zn, ...Dn }, d = oe(), u = oe(!1), k = oe(!1), E = oe(!1), v = a, _ = i, { formData: S, selectMode: $ } = et(v), p = oe(v.selectComponents);
|
|
10969
10973
|
Pt("uploadOptions", v.uploadOptions), Pt("formData", S), Pt("realTimeDisplayAnswerMode", v.realTimeDisplayAnswerMode);
|
|
10970
10974
|
const x = (U) => {
|
|
10971
|
-
var B, H, ee,
|
|
10975
|
+
var B, H, ee, te;
|
|
10972
10976
|
if ((B = p.value) != null && B.length || (p.value = []), !U) {
|
|
10973
10977
|
p.value = [], S.value.components.forEach((K) => {
|
|
10974
10978
|
K.selected = k.value, k.value && p.value.push(K);
|
|
@@ -10979,7 +10983,7 @@ const hr = /* @__PURE__ */ ye(Am, [["__scopeId", "data-v-077c4a5c"]]), jm = (a)
|
|
|
10979
10983
|
(H = p.value) == null || H.push(U);
|
|
10980
10984
|
else {
|
|
10981
10985
|
const K = (ee = p.value) == null ? void 0 : ee.findIndex((ne) => ne.id === U.id);
|
|
10982
|
-
K !== -1 && ((
|
|
10986
|
+
K !== -1 && ((te = p.value) == null || te.splice(K, 1));
|
|
10983
10987
|
}
|
|
10984
10988
|
_("select", p.value), z();
|
|
10985
10989
|
}, z = () => {
|
|
@@ -10995,9 +10999,9 @@ const hr = /* @__PURE__ */ ye(Am, [["__scopeId", "data-v-077c4a5c"]]), jm = (a)
|
|
|
10995
10999
|
k.value = !0, E.value = !1;
|
|
10996
11000
|
}, V = (U) => {
|
|
10997
11001
|
U != null && U.length && (U.forEach((B) => {
|
|
10998
|
-
var ee,
|
|
11002
|
+
var ee, te;
|
|
10999
11003
|
let H = new s[B.type].component();
|
|
11000
|
-
H.isEdit && (B.props.required || B.props.pattern) && (B.rules = H.getRules(B.props)), v.selectMode && ((ee = p.value) != null && ee.length) ? p.value.findIndex((ne) => ne.id === B.id) !== -1 && (B.selected = !0) : B.selected = !1, B.isLayout && ((
|
|
11004
|
+
H.isEdit && (B.props.required || B.props.pattern) && (B.rules = H.getRules(B.props)), v.selectMode && ((ee = p.value) != null && ee.length) ? p.value.findIndex((ne) => ne.id === B.id) !== -1 && (B.selected = !0) : B.selected = !1, B.isLayout && ((te = B == null ? void 0 : B.children) != null && te.length) && V(B.children);
|
|
11001
11005
|
}), v.selectMode && z());
|
|
11002
11006
|
};
|
|
11003
11007
|
de(S, () => V(S.value.components), { immediate: !0 });
|
|
@@ -11005,28 +11009,28 @@ const hr = /* @__PURE__ */ ye(Am, [["__scopeId", "data-v-077c4a5c"]]), jm = (a)
|
|
|
11005
11009
|
let U = m(S.value.datas), B = [], H = [];
|
|
11006
11010
|
const ee = Object.keys(U);
|
|
11007
11011
|
return O(S.value.components, B, H, ee, U);
|
|
11008
|
-
}, O = (U, B, H, ee,
|
|
11012
|
+
}, O = (U, B, H, ee, te, K, ne) => {
|
|
11009
11013
|
var re;
|
|
11010
11014
|
let ae = B, G = H;
|
|
11011
11015
|
for (let ie = 0; ie < U.length; ie++) {
|
|
11012
11016
|
const ge = U[ie];
|
|
11013
11017
|
if (ee.includes(ge.id)) {
|
|
11014
|
-
const Me = ge.props.pageID || ne, Ue = M(ae, G, ge.id,
|
|
11018
|
+
const Me = ge.props.pageID || ne, Ue = M(ae, G, ge.id, te, ge, K, Me);
|
|
11015
11019
|
ae = Ue.resultData, G = Ue.fileList;
|
|
11016
11020
|
continue;
|
|
11017
11021
|
}
|
|
11018
11022
|
if (ge.isLayout && ((re = ge == null ? void 0 : ge.children) != null && re.length)) {
|
|
11019
|
-
const Me = ge.id, Ue = O(ge.children, ae, G, ee,
|
|
11023
|
+
const Me = ge.id, Ue = O(ge.children, ae, G, ee, te, Me, ne);
|
|
11020
11024
|
ae = Ue.resultData, G = Ue.fileList;
|
|
11021
11025
|
}
|
|
11022
11026
|
}
|
|
11023
11027
|
return { resultData: ae, fileList: G };
|
|
11024
|
-
}, M = (U, B, H, ee,
|
|
11028
|
+
}, M = (U, B, H, ee, te, K, ne) => {
|
|
11025
11029
|
var ae, G, re;
|
|
11026
|
-
switch (
|
|
11030
|
+
switch (te.type) {
|
|
11027
11031
|
case "radio":
|
|
11028
11032
|
U.push({
|
|
11029
|
-
sourceType:
|
|
11033
|
+
sourceType: te.itemSourceType,
|
|
11030
11034
|
pageID: ne,
|
|
11031
11035
|
groupID: K,
|
|
11032
11036
|
parentID: H,
|
|
@@ -11038,7 +11042,7 @@ const hr = /* @__PURE__ */ ye(Am, [["__scopeId", "data-v-077c4a5c"]]), jm = (a)
|
|
|
11038
11042
|
case "checkbox":
|
|
11039
11043
|
(ae = ee[H]) == null || ae.forEach((ie) => {
|
|
11040
11044
|
U.push({
|
|
11041
|
-
sourceType:
|
|
11045
|
+
sourceType: te.itemSourceType,
|
|
11042
11046
|
pageID: ne,
|
|
11043
11047
|
groupID: K,
|
|
11044
11048
|
parentID: H,
|
|
@@ -11056,9 +11060,9 @@ const hr = /* @__PURE__ */ ye(Am, [["__scopeId", "data-v-077c4a5c"]]), jm = (a)
|
|
|
11056
11060
|
return Me.fileID;
|
|
11057
11061
|
}).filter((Me) => Me !== void 0);
|
|
11058
11062
|
B.push({
|
|
11059
|
-
sourceType:
|
|
11063
|
+
sourceType: te.itemSourceType,
|
|
11060
11064
|
id: H,
|
|
11061
|
-
pageID:
|
|
11065
|
+
pageID: te.props.pageID,
|
|
11062
11066
|
groupID: K,
|
|
11063
11067
|
fileIDs: ge,
|
|
11064
11068
|
files: ie
|
|
@@ -11067,7 +11071,7 @@ const hr = /* @__PURE__ */ ye(Am, [["__scopeId", "data-v-077c4a5c"]]), jm = (a)
|
|
|
11067
11071
|
break;
|
|
11068
11072
|
default:
|
|
11069
11073
|
U.push({
|
|
11070
|
-
sourceType:
|
|
11074
|
+
sourceType: te.itemSourceType,
|
|
11071
11075
|
pageID: ne,
|
|
11072
11076
|
groupID: K,
|
|
11073
11077
|
parentID: H,
|
|
@@ -11144,10 +11148,10 @@ const hr = /* @__PURE__ */ ye(Am, [["__scopeId", "data-v-077c4a5c"]]), jm = (a)
|
|
|
11144
11148
|
f(H, {
|
|
11145
11149
|
class: "zhy all-select fw-bold z-100",
|
|
11146
11150
|
modelValue: n(k),
|
|
11147
|
-
"onUpdate:modelValue": B[0] || (B[0] = (
|
|
11151
|
+
"onUpdate:modelValue": B[0] || (B[0] = (te) => Fe(k) ? k.value = te : null),
|
|
11148
11152
|
label: "全选",
|
|
11149
11153
|
indeterminate: n(E),
|
|
11150
|
-
onChange: B[1] || (B[1] = (
|
|
11154
|
+
onChange: B[1] || (B[1] = (te) => x())
|
|
11151
11155
|
}, null, 8, ["modelValue", "indeterminate"])
|
|
11152
11156
|
])) : (b(), T(be, { key: 1 }, [
|
|
11153
11157
|
!a.hiddenTitle && n(S).props.formName ? (b(), T("h2", Um, ve(n(S).props.formName), 1)) : R("", !0)
|
|
@@ -11183,7 +11187,7 @@ const hr = /* @__PURE__ */ ye(Am, [["__scopeId", "data-v-077c4a5c"]]), jm = (a)
|
|
|
11183
11187
|
};
|
|
11184
11188
|
}
|
|
11185
11189
|
});
|
|
11186
|
-
const bo = /* @__PURE__ */ ye(Rm, [["__scopeId", "data-v-
|
|
11190
|
+
const bo = /* @__PURE__ */ ye(Rm, [["__scopeId", "data-v-0ac4d673"]]), Pm = { class: "form-list-wrap float-left h-full w-360 y-aline-start b-r-1 b-r-solid theme-bc-borderColor box-border p-10" }, Hm = { class: "flex-auto overflow-y-auto" }, qm = ["onClick"], Wm = ["title"], Ym = { class: "float-right h-full wc--360" }, Xm = { class: "aline-between fw-bold" }, Gm = { class: "fs-20 mr-30 ml-20" }, Km = { class: "c-#ff0000" }, Zm = { class: "right-wrap" }, Jm = /* @__PURE__ */ he({
|
|
11187
11191
|
__name: "batchAddDialog",
|
|
11188
11192
|
props: /* @__PURE__ */ sr({
|
|
11189
11193
|
/**
|
|
@@ -11200,7 +11204,7 @@ const bo = /* @__PURE__ */ ye(Rm, [["__scopeId", "data-v-17293c4e"]]), Pm = { cl
|
|
|
11200
11204
|
}),
|
|
11201
11205
|
emits: /* @__PURE__ */ sr(["select"], ["update:modelValue"]),
|
|
11202
11206
|
setup(a, { emit: h }) {
|
|
11203
|
-
const { clone: i } = nt(), m = xe("formData"), s = m.value.props.formType === "2" ? "试卷" : "表单", d = m.value.props.formType === "2" ? "题目" : "项目", u = mi(a, "modelValue"), k = a, { params: E } = et(k), v =
|
|
11207
|
+
const { clone: i } = nt(), m = xe("formData"), s = m.value.props.formType === "2" ? "试卷" : "表单", d = m.value.props.formType === "2" ? "题目" : "项目", u = mi(a, "modelValue"), k = a, { params: E } = et(k), v = oe({}), _ = oe(""), S = oe({
|
|
11204
11208
|
datas: {},
|
|
11205
11209
|
components: [],
|
|
11206
11210
|
props: {}
|
|
@@ -11214,7 +11218,7 @@ const bo = /* @__PURE__ */ ye(Rm, [["__scopeId", "data-v-17293c4e"]]), Pm = { cl
|
|
|
11214
11218
|
const $ = (ne, ae, G) => {
|
|
11215
11219
|
let re = G === "datetime" ? "YYYY-MM-DD HH:mm" : G === "date" ? "YYYY-MM-DD" : "HH:mm";
|
|
11216
11220
|
return oi(ne).format(re) === oi(ae).format(re);
|
|
11217
|
-
}, p =
|
|
11221
|
+
}, p = oe(E.value.formList), x = (ne) => {
|
|
11218
11222
|
ne && z(ne), p.value = i(E.value.formList);
|
|
11219
11223
|
const ae = Object.keys(v.value);
|
|
11220
11224
|
ae != null && ae.length && ae.forEach((G) => {
|
|
@@ -11255,7 +11259,7 @@ const bo = /* @__PURE__ */ ye(Rm, [["__scopeId", "data-v-17293c4e"]]), Pm = { cl
|
|
|
11255
11259
|
components: [],
|
|
11256
11260
|
props: {}
|
|
11257
11261
|
}, E.value.getFormTemplate && (S.value = await E.value.getFormTemplate(ne)));
|
|
11258
|
-
}, D =
|
|
11262
|
+
}, D = oe(/* @__PURE__ */ new Map()), O = ht(() => {
|
|
11259
11263
|
let ne = 0;
|
|
11260
11264
|
for (const [, ae] of D.value)
|
|
11261
11265
|
ne += ae.length;
|
|
@@ -11270,7 +11274,7 @@ const bo = /* @__PURE__ */ ye(Rm, [["__scopeId", "data-v-17293c4e"]]), Pm = { cl
|
|
|
11270
11274
|
delete re.selected, ne.push(re);
|
|
11271
11275
|
});
|
|
11272
11276
|
return ne;
|
|
11273
|
-
}, B =
|
|
11277
|
+
}, B = oe(!1), H = oe({
|
|
11274
11278
|
datas: {},
|
|
11275
11279
|
components: [],
|
|
11276
11280
|
props: {
|
|
@@ -11283,9 +11287,9 @@ const bo = /* @__PURE__ */ ye(Rm, [["__scopeId", "data-v-17293c4e"]]), Pm = { cl
|
|
|
11283
11287
|
}
|
|
11284
11288
|
}), ee = () => {
|
|
11285
11289
|
H.value.components = U(), B.value = !0;
|
|
11286
|
-
},
|
|
11290
|
+
}, te = h, K = () => {
|
|
11287
11291
|
const ne = U();
|
|
11288
|
-
|
|
11292
|
+
te("select", ne), u.value = !1;
|
|
11289
11293
|
};
|
|
11290
11294
|
return (ne, ae) => {
|
|
11291
11295
|
const G = Pe, re = L("el-input"), ie = L("el-option"), ge = L("el-select"), Me = L("el-cascader"), Ue = L("el-date-picker"), Qe = L("el-time-picker"), qt = L("el-form-item"), jt = L("el-form"), wo = L("el-divider"), zt = L("el-empty"), oo = bo, Wt = L("el-link"), Yt = L("el-button"), gt = L("el-dialog");
|
|
@@ -11501,7 +11505,7 @@ const bo = /* @__PURE__ */ ye(Rm, [["__scopeId", "data-v-17293c4e"]]), Pm = { cl
|
|
|
11501
11505
|
};
|
|
11502
11506
|
}
|
|
11503
11507
|
});
|
|
11504
|
-
const Qm = /* @__PURE__ */ ye(Jm, [["__scopeId", "data-v-
|
|
11508
|
+
const Qm = /* @__PURE__ */ ye(Jm, [["__scopeId", "data-v-e104c4c3"]]), e5 = {
|
|
11505
11509
|
key: 1,
|
|
11506
11510
|
class: "c-#a8abb2"
|
|
11507
11511
|
}, t5 = ["innerHTML"], o5 = /* @__PURE__ */ he({
|
|
@@ -11546,7 +11550,7 @@ const Qm = /* @__PURE__ */ ye(Jm, [["__scopeId", "data-v-df90f713"]]), e5 = {
|
|
|
11546
11550
|
emits: ["result", "clear"],
|
|
11547
11551
|
setup(a, { emit: h }) {
|
|
11548
11552
|
let i = xe("formDesignerData"), m = xe("formData"), s = i.selectComponent;
|
|
11549
|
-
const d =
|
|
11553
|
+
const d = oe(), u = oe(!1), k = oe([]), E = oe({}), v = oe({}), _ = () => {
|
|
11550
11554
|
k.value = [], E.value = {}, v.value = {}, S(m.value.components), u.value = !0;
|
|
11551
11555
|
}, S = (V) => {
|
|
11552
11556
|
V.forEach((D) => {
|
|
@@ -11628,7 +11632,7 @@ const Qm = /* @__PURE__ */ ye(Jm, [["__scopeId", "data-v-df90f713"]]), e5 = {
|
|
|
11628
11632
|
};
|
|
11629
11633
|
}
|
|
11630
11634
|
});
|
|
11631
|
-
const gn = /* @__PURE__ */ ye(o5, [["__scopeId", "data-v-
|
|
11635
|
+
const gn = /* @__PURE__ */ ye(o5, [["__scopeId", "data-v-312801ba"]]), n5 = /* @__PURE__ */ he({
|
|
11632
11636
|
__name: "componentAdvancedPropsEditor",
|
|
11633
11637
|
setup(a) {
|
|
11634
11638
|
let i = xe("formDesignerData").selectComponent;
|
|
@@ -11730,7 +11734,7 @@ const gn = /* @__PURE__ */ ye(o5, [["__scopeId", "data-v-8169237c"]]), n5 = /* @
|
|
|
11730
11734
|
};
|
|
11731
11735
|
}
|
|
11732
11736
|
});
|
|
11733
|
-
const r5 = /* @__PURE__ */ ye(n5, [["__scopeId", "data-v-
|
|
11737
|
+
const r5 = /* @__PURE__ */ ye(n5, [["__scopeId", "data-v-8129d36f"]]), a5 = /* @__PURE__ */ he({
|
|
11734
11738
|
__name: "componentBasePropsEditor",
|
|
11735
11739
|
props: {
|
|
11736
11740
|
/**
|
|
@@ -11990,10 +11994,10 @@ const r5 = /* @__PURE__ */ ye(n5, [["__scopeId", "data-v-baac7084"]]), a5 = /* @
|
|
|
11990
11994
|
};
|
|
11991
11995
|
}
|
|
11992
11996
|
});
|
|
11993
|
-
const l5 = /* @__PURE__ */ ye(a5, [["__scopeId", "data-v-
|
|
11997
|
+
const l5 = /* @__PURE__ */ ye(a5, [["__scopeId", "data-v-424b4b3a"]]), i5 = /* @__PURE__ */ he({
|
|
11994
11998
|
__name: "formPropsEditor",
|
|
11995
11999
|
setup(a, { expose: h }) {
|
|
11996
|
-
const i = xe("formData"), m =
|
|
12000
|
+
const i = xe("formData"), m = oe(), s = () => {
|
|
11997
12001
|
i.value.props.formType === "2" && (i.value.props.labelPosition = "top");
|
|
11998
12002
|
};
|
|
11999
12003
|
return h({
|
|
@@ -12149,7 +12153,7 @@ const l5 = /* @__PURE__ */ ye(a5, [["__scopeId", "data-v-6b7597b9"]]), i5 = /* @
|
|
|
12149
12153
|
};
|
|
12150
12154
|
}
|
|
12151
12155
|
});
|
|
12152
|
-
const s5 = /* @__PURE__ */ ye(i5, [["__scopeId", "data-v-
|
|
12156
|
+
const s5 = /* @__PURE__ */ ye(i5, [["__scopeId", "data-v-fbf2abe0"]]), At = (a) => (vo("data-v-e5b5bde4"), a = a(), yo(), a), c5 = { class: "toolbar bg-#ffffff" }, d5 = /* @__PURE__ */ At(() => /* @__PURE__ */ I("div", { class: "devices" }, null, -1)), u5 = { class: "operates" }, p5 = /* @__PURE__ */ At(() => /* @__PURE__ */ I("span", null, "清空", -1)), m5 = /* @__PURE__ */ At(() => /* @__PURE__ */ I("span", null, "模板导入", -1)), f5 = /* @__PURE__ */ At(() => /* @__PURE__ */ I("span", null, "查看JSON", -1)), h5 = /* @__PURE__ */ At(() => /* @__PURE__ */ I("span", null, "预览", -1)), g5 = /* @__PURE__ */ At(() => /* @__PURE__ */ I("span", null, "保存", -1)), b5 = /* @__PURE__ */ At(() => /* @__PURE__ */ I("span", null, "验证表单", -1)), v5 = /* @__PURE__ */ At(() => /* @__PURE__ */ I("span", null, "重置表单", -1)), y5 = /* @__PURE__ */ At(() => /* @__PURE__ */ I("span", null, "表单数据", -1)), _5 = /* @__PURE__ */ he({
|
|
12153
12157
|
__name: "toolbar",
|
|
12154
12158
|
props: {
|
|
12155
12159
|
operates: {
|
|
@@ -12185,7 +12189,7 @@ const s5 = /* @__PURE__ */ ye(i5, [["__scopeId", "data-v-e476b4ee"]]), At = (a)
|
|
|
12185
12189
|
m("resetForm");
|
|
12186
12190
|
}, S = () => {
|
|
12187
12191
|
m("viewDataJson");
|
|
12188
|
-
}, $ =
|
|
12192
|
+
}, $ = oe(!1), p = () => {
|
|
12189
12193
|
$.value = !$.value, m("toggleDescription", $.value);
|
|
12190
12194
|
};
|
|
12191
12195
|
return (x, z) => {
|
|
@@ -12348,7 +12352,7 @@ const s5 = /* @__PURE__ */ ye(i5, [["__scopeId", "data-v-e476b4ee"]]), At = (a)
|
|
|
12348
12352
|
};
|
|
12349
12353
|
}
|
|
12350
12354
|
});
|
|
12351
|
-
const ui = /* @__PURE__ */ ye(_5, [["__scopeId", "data-v-
|
|
12355
|
+
const ui = /* @__PURE__ */ ye(_5, [["__scopeId", "data-v-e5b5bde4"]]), x5 = { class: "zhy-form-designer theme-bgc-backgroundColor relative wh-full min-h-800px min-w-600px bgc-#ffffff" }, w5 = { class: "absolute top-0 left-0 h-full overflow-y-auto w-410 pt-5 pl-10 box-border shw-5-3-12-3-#000000-0.2" }, $5 = ["onClick", "title"], k5 = { class: "t-ofse-2 line-height-0.5 pl-3" }, C5 = {
|
|
12352
12356
|
key: 0,
|
|
12353
12357
|
class: "pos-absolute bottom-0.4 lc-50-30 w-60 h-60 border-rd-md bgc-#ffffff"
|
|
12354
12358
|
}, V5 = {
|
|
@@ -12437,7 +12441,7 @@ const ui = /* @__PURE__ */ ye(_5, [["__scopeId", "data-v-9e6509e4"]]), x5 = { cl
|
|
|
12437
12441
|
selectComponent: void 0,
|
|
12438
12442
|
propTab: "form",
|
|
12439
12443
|
device: "pc"
|
|
12440
|
-
}), z =
|
|
12444
|
+
}), z = oe(!0), V = oe([]), D = ht(() => O.value.map((Z) => Z.expand && Z.name)), O = oe([]), M = oe(!1), U = {
|
|
12441
12445
|
labelPosition: "top",
|
|
12442
12446
|
labelWidth: 90,
|
|
12443
12447
|
size: "small",
|
|
@@ -12488,7 +12492,7 @@ const ui = /* @__PURE__ */ ye(_5, [["__scopeId", "data-v-9e6509e4"]]), x5 = { cl
|
|
|
12488
12492
|
return p.value && Object.keys(p.value).length && Z.push("batchAdd"), i.testMode && Z.push("viewFormJson"), i.saveMethod && Z.push("saveFrom"), Z;
|
|
12489
12493
|
}), ee = ["upload", "uploadImage", "tabs"];
|
|
12490
12494
|
_o(() => {
|
|
12491
|
-
ne(),
|
|
12495
|
+
ne(), te();
|
|
12492
12496
|
}), de(
|
|
12493
12497
|
() => x.selectComponent,
|
|
12494
12498
|
(Z) => {
|
|
@@ -12505,9 +12509,9 @@ const ui = /* @__PURE__ */ ye(_5, [["__scopeId", "data-v-9e6509e4"]]), x5 = { cl
|
|
|
12505
12509
|
},
|
|
12506
12510
|
{ deep: !0 }
|
|
12507
12511
|
), de(_, () => {
|
|
12508
|
-
|
|
12512
|
+
te();
|
|
12509
12513
|
}), Pt("uploadOptions", i.uploadOptions), Pt("formDesignerData", x), Pt("formData", _), Pt("defaultSourceType", i.defaultSourceType), Pt("realTimeDisplayAnswerMode", !1);
|
|
12510
|
-
const
|
|
12514
|
+
const te = () => {
|
|
12511
12515
|
var Z;
|
|
12512
12516
|
x.selectComponent = void 0, (Z = _.value).allowCreateDictionary ?? (Z.allowCreateDictionary = !0), _.value.datas || (_.value.datas = {}), _.value.components ? K(_.value.components) : _.value.components = [], !_.value.props || !Object.keys(_.value.props).length ? _.value.props = U : (_.value.props = Object.assign(U, _.value.props), _.value.props.formType === "2" && (_.value.props.labelPosition = "top")), M.value = !_.value.props.formName;
|
|
12513
12517
|
}, K = (Z) => {
|
|
@@ -12598,7 +12602,7 @@ const ui = /* @__PURE__ */ ye(_5, [["__scopeId", "data-v-9e6509e4"]]), x5 = { cl
|
|
|
12598
12602
|
_.value.components.forEach((Z) => {
|
|
12599
12603
|
Me(Z);
|
|
12600
12604
|
}), _.value.components.splice(0, _.value.components.length), zt(), x.selectComponent = void 0;
|
|
12601
|
-
}, Qe =
|
|
12605
|
+
}, Qe = oe(!1), qt = () => {
|
|
12602
12606
|
Qe.value = !0;
|
|
12603
12607
|
}, jt = (Z) => {
|
|
12604
12608
|
Z != null && Z.length && (K(Z), Z.forEach((P) => _.value.components.push(P)), zt());
|
|
@@ -12614,7 +12618,7 @@ const ui = /* @__PURE__ */ ye(_5, [["__scopeId", "data-v-9e6509e4"]]), x5 = { cl
|
|
|
12614
12618
|
m("change");
|
|
12615
12619
|
}, 50), oo = () => {
|
|
12616
12620
|
console.log(_.value), Et.value = u(_.value), ke.value = !0;
|
|
12617
|
-
}, Wt =
|
|
12621
|
+
}, Wt = oe(), Yt = async () => {
|
|
12618
12622
|
if (i.saveMethod) {
|
|
12619
12623
|
if (!_.value.components.length) {
|
|
12620
12624
|
Ne("error", "未发现需要保存的数据!");
|
|
@@ -12623,7 +12627,7 @@ const ui = /* @__PURE__ */ ye(_5, [["__scopeId", "data-v-9e6509e4"]]), x5 = { cl
|
|
|
12623
12627
|
const Z = await Mn();
|
|
12624
12628
|
Z && i.saveMethod(Z);
|
|
12625
12629
|
}
|
|
12626
|
-
}, gt =
|
|
12630
|
+
}, gt = oe(), Ke = oe(!1), Dt = () => {
|
|
12627
12631
|
Ke.value = !0, Ft(_.value.components);
|
|
12628
12632
|
};
|
|
12629
12633
|
de(
|
|
@@ -12638,7 +12642,7 @@ const ui = /* @__PURE__ */ ye(_5, [["__scopeId", "data-v-9e6509e4"]]), x5 = { cl
|
|
|
12638
12642
|
}
|
|
12639
12643
|
!_.value.datas[P.id] && !E(P.props.defaultValue) && (P.type === "grade" ? _.value.datas[P.id] = { score: P.props.defaultValue } : _.value.datas[P.id] = P.props.defaultValue);
|
|
12640
12644
|
});
|
|
12641
|
-
}, ke =
|
|
12645
|
+
}, ke = oe(!1), Et = oe(), We = async () => {
|
|
12642
12646
|
await gt.value.validate() ? Ne("success", "通过验证") : Ne("error", "未通过验证");
|
|
12643
12647
|
}, $o = () => {
|
|
12644
12648
|
gt.value.resetFields();
|
|
@@ -12934,7 +12938,7 @@ const ui = /* @__PURE__ */ ye(_5, [["__scopeId", "data-v-9e6509e4"]]), x5 = { cl
|
|
|
12934
12938
|
};
|
|
12935
12939
|
}
|
|
12936
12940
|
});
|
|
12937
|
-
const vn = /* @__PURE__ */ ye(L5, [["__scopeId", "data-v-
|
|
12941
|
+
const vn = /* @__PURE__ */ ye(L5, [["__scopeId", "data-v-17a50adb"]]);
|
|
12938
12942
|
vn.install = function(a) {
|
|
12939
12943
|
a.component(vn.name, vn);
|
|
12940
12944
|
};
|
|
@@ -12954,7 +12958,7 @@ const M5 = /* @__PURE__ */ he({
|
|
|
12954
12958
|
},
|
|
12955
12959
|
emits: ["rendered", "error"],
|
|
12956
12960
|
setup(a, { emit: h }) {
|
|
12957
|
-
const i = a, m = h, s =
|
|
12961
|
+
const i = a, m = h, s = oe(null);
|
|
12958
12962
|
return _o(() => {
|
|
12959
12963
|
E3.init(s.value).preview(i.src).then(() => {
|
|
12960
12964
|
m("rendered");
|
|
@@ -12967,7 +12971,7 @@ const M5 = /* @__PURE__ */ he({
|
|
|
12967
12971
|
}, null, 512));
|
|
12968
12972
|
}
|
|
12969
12973
|
});
|
|
12970
|
-
const T5 = /* @__PURE__ */ ye(M5, [["__scopeId", "data-v-
|
|
12974
|
+
const T5 = /* @__PURE__ */ ye(M5, [["__scopeId", "data-v-4eaca53f"]]);
|
|
12971
12975
|
const A5 = /* @__PURE__ */ he({
|
|
12972
12976
|
__name: "xlsxPreview",
|
|
12973
12977
|
props: {
|
|
@@ -12978,7 +12982,7 @@ const A5 = /* @__PURE__ */ he({
|
|
|
12978
12982
|
},
|
|
12979
12983
|
emits: ["rendered", "error"],
|
|
12980
12984
|
setup(a, { emit: h }) {
|
|
12981
|
-
const i = a, m = h, s =
|
|
12985
|
+
const i = a, m = h, s = oe(null);
|
|
12982
12986
|
return _o(() => {
|
|
12983
12987
|
S3.init(s.value).preview(i.src).then(() => {
|
|
12984
12988
|
m("rendered");
|
|
@@ -12991,7 +12995,7 @@ const A5 = /* @__PURE__ */ he({
|
|
|
12991
12995
|
}, null, 512));
|
|
12992
12996
|
}
|
|
12993
12997
|
});
|
|
12994
|
-
const j5 = /* @__PURE__ */ ye(A5, [["__scopeId", "data-v-
|
|
12998
|
+
const j5 = /* @__PURE__ */ ye(A5, [["__scopeId", "data-v-847ba60e"]]);
|
|
12995
12999
|
let yn, kn = 0;
|
|
12996
13000
|
const F5 = (a) => {
|
|
12997
13001
|
kn === 0 && (yn = h3.service({
|
|
@@ -13063,7 +13067,7 @@ const U5 = {
|
|
|
13063
13067
|
},
|
|
13064
13068
|
emits: ["rendered", "error"],
|
|
13065
13069
|
setup(a, { emit: h }) {
|
|
13066
|
-
const i = a, m = h, s =
|
|
13070
|
+
const i = a, m = h, s = oe(null);
|
|
13067
13071
|
return _o(() => {
|
|
13068
13072
|
const d = L3(s.value, { width: s.value.clientWidth, height: s.value.clientHeight });
|
|
13069
13073
|
U5.get(i.src, void 0, { responseType: "blob" }).then((u) => u == null ? void 0 : u.arrayBuffer()).then((u) => {
|
|
@@ -13079,8 +13083,8 @@ const U5 = {
|
|
|
13079
13083
|
}, null, 512));
|
|
13080
13084
|
}
|
|
13081
13085
|
});
|
|
13082
|
-
const B5 = /* @__PURE__ */ ye(O5, [["__scopeId", "data-v-
|
|
13083
|
-
const N5 = (a) => (vo("data-v-
|
|
13086
|
+
const B5 = /* @__PURE__ */ ye(O5, [["__scopeId", "data-v-98883277"]]);
|
|
13087
|
+
const N5 = (a) => (vo("data-v-4603316a"), a = a(), yo(), a), R5 = {
|
|
13084
13088
|
key: 0,
|
|
13085
13089
|
class: "h-full w-300 absolute top-0 left-0 shw-5-3-12-3-#000000-0.2"
|
|
13086
13090
|
}, P5 = /* @__PURE__ */ N5(() => /* @__PURE__ */ I("div", { class: "p-10 fs-26 fw-bold text-center theme-bgc-primary theme-color-hasBgFontColor" }, "文件列表", -1)), H5 = ["onClick"], q5 = ["title"], W5 = {
|
|
@@ -13103,7 +13107,7 @@ const N5 = (a) => (vo("data-v-3865f719"), a = a(), yo(), a), R5 = {
|
|
|
13103
13107
|
}
|
|
13104
13108
|
},
|
|
13105
13109
|
setup(a) {
|
|
13106
|
-
const h = a, i =
|
|
13110
|
+
const h = a, i = oe(!1), m = oe(-2), s = oe(void 0), d = oe(!1), u = (_, S) => {
|
|
13107
13111
|
d.value || m.value === S || (m.value = S, s.value = _, ["docx", "xlsx", "pptx", "pdf"].includes(s.value.extensionName));
|
|
13108
13112
|
};
|
|
13109
13113
|
de(
|
|
@@ -13218,7 +13222,7 @@ const N5 = (a) => (vo("data-v-3865f719"), a = a(), yo(), a), R5 = {
|
|
|
13218
13222
|
};
|
|
13219
13223
|
}
|
|
13220
13224
|
});
|
|
13221
|
-
const _n = /* @__PURE__ */ ye(nf, [["__scopeId", "data-v-
|
|
13225
|
+
const _n = /* @__PURE__ */ ye(nf, [["__scopeId", "data-v-4603316a"]]);
|
|
13222
13226
|
_n.install = function(a) {
|
|
13223
13227
|
a.component(_n.name, _n);
|
|
13224
13228
|
};
|
|
@@ -13357,7 +13361,7 @@ const af = {
|
|
|
13357
13361
|
);
|
|
13358
13362
|
const { editorDefaultConfig: d } = rf();
|
|
13359
13363
|
let u = d, k = {};
|
|
13360
|
-
const E =
|
|
13364
|
+
const E = oe(!0), v = () => {
|
|
13361
13365
|
k = {}, h.option.mode === "simple" && (k = {
|
|
13362
13366
|
excludeKeys: ["blockquote", "through", "insertTable", "insertLink", "group-image", "insertVideo", "codeBlock", "fullScreen"],
|
|
13363
13367
|
insertKeys: {
|
|
@@ -13392,7 +13396,7 @@ const af = {
|
|
|
13392
13396
|
])) : R("", !0);
|
|
13393
13397
|
}
|
|
13394
13398
|
});
|
|
13395
|
-
const xn = /* @__PURE__ */ ye(sf, [["__scopeId", "data-v-
|
|
13399
|
+
const xn = /* @__PURE__ */ ye(sf, [["__scopeId", "data-v-998b21db"]]);
|
|
13396
13400
|
xn.install = function(a) {
|
|
13397
13401
|
a.component(xn.name, xn);
|
|
13398
13402
|
};
|