@das-fed/ui 6.4.0-beta.7 → 6.4.0-dev.10
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/package.json +5 -5
- package/packages/business-components/device-panel/index.js +10094 -9817
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/export-button/index.js +432 -152
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/index.js +603 -323
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/process-form/index.js +1122 -841
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-log/index.js +1758 -1477
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-search-form/index.js +719 -439
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/index.js +819 -538
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +1969 -1691
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/video-dialog/index.js +619 -338
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/calendar/index.js +614 -257
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/date-picker/index.js +6025 -5129
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/image-viewer/index.d.ts +0 -9
- package/packages/components/image-viewer/index.js +29 -34
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/image-viewer/src/Index.vue.d.ts +0 -3
- package/packages/components/image-viewer/src/hooks/use-handler-image-src.d.ts +1 -2
- package/packages/components/image-viewer/src/type.d.ts +0 -3
- package/packages/components/image-viewer/style.css +1 -1
- package/packages/components/image-viewer/style.css.gz +0 -0
- package/packages/components/search-form/index.js +11 -13
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/table/index.js +127 -127
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/tree/index.js +70 -70
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-select/index.js +30 -29
- package/packages/components/tree-select/index.js.gz +0 -0
|
@@ -1,98 +1,97 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/process-form/style.css';
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { ref as
|
|
4
|
-
import { DasFormRef as
|
|
5
|
-
import { DasButton as
|
|
6
|
-
import { vOverlay as
|
|
7
|
-
import { createService as
|
|
8
|
-
import { DasUpload as
|
|
9
|
-
import { DasFormItem as
|
|
10
|
-
import { DasAutocomplete as
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
z.formKey === w.formKey && g(w.formKey, ae.value, z.id);
|
|
2
|
+
import { withInstall as bt } from "@das-fed/utils/with-install/index";
|
|
3
|
+
import { ref as m, defineComponent as F, watch as x, openBlock as S, createBlock as N, unref as p, withCtx as E, createVNode as q, createElementVNode as _t, createTextVNode as me, toDisplayString as fe, createElementBlock as se, Fragment as Ve, isRef as $e, createSlots as wt, createCommentVNode as de, h as ae, warn as Vt, getCurrentInstance as $t, inject as ke, computed as ce, provide as Dt, resolveDynamicComponent as Ne, normalizeClass as Ae, normalizeStyle as Ce, renderSlot as xe, onMounted as Mt, renderList as Ee, withDirectives as St } from "vue";
|
|
4
|
+
import { DasFormRef as Ot, DasForm as Rt } from "@das-fed/ui/packages/components/form/index";
|
|
5
|
+
import { DasButton as Lt } from "@das-fed/ui/packages/components/button/index";
|
|
6
|
+
import { vOverlay as Tt } from "@das-fed/ui/packages/components/overlay/index";
|
|
7
|
+
import { createService as te } from "@das-fed/utils/create-api-service";
|
|
8
|
+
import { DasUpload as jt } from "@das-fed/ui/packages/components/upload/index";
|
|
9
|
+
import { DasFormItem as A } from "@das-fed/ui/packages/components/form-item/index";
|
|
10
|
+
import { DasAutocomplete as Nt } from "@das-fed/ui/packages/components/autocomplete/index";
|
|
11
|
+
import { DasImageViewer as Ue } from "@das-fed/ui/packages/components/image-viewer/index";
|
|
12
|
+
import { DasInput as Ft } from "@das-fed/ui/packages/components/input/index";
|
|
13
|
+
import { DasTableColumn as z } from "@das-fed/ui/packages/components/table/index";
|
|
14
|
+
import { DasModelTableDialog as qt } from "@das-fed/ui/packages/business-components/model-table-dialog";
|
|
15
|
+
import { getProjectInfo as ze } from "@das-fed/utils/common-info";
|
|
16
|
+
import { i18n as X } from "@das-fed/web/packages/i18n/index";
|
|
17
|
+
import { getConfig as Bt } from "@das-fed/utils/config";
|
|
18
|
+
import { DasRichEditor as Qe } from "@das-fed/ui/packages/components/rich-editor/index";
|
|
19
|
+
import { DasCollaspe as Pt } from "@das-fed/ui/packages/components/collaspe/index";
|
|
20
|
+
import { DasCollaspePanel as Et } from "@das-fed/ui/packages/components/collapse-panel/index";
|
|
21
|
+
const ie = "v1", It = te(`/workflow/form/form/${ie}`), Kt = te(`/workflow/form/formDef/${ie}`);
|
|
22
|
+
te(`/workflow/api/user/${ie}`);
|
|
23
|
+
const Je = te(`/workflow/api/extend/${ie}`), kt = te(`/workflow/flow/def/${ie}`), At = te(`/workflow/form/customQuery/${ie}`), ne = te(`/api/enterpriseright/permission/${ie}`), Fe = te(`/api/space-manage/space-tree/${ie}`), Ct = It.get("/formDesign"), xt = Kt.get("/get"), Ut = Je.get("/report-config");
|
|
24
|
+
Je.get("/application-report");
|
|
25
|
+
const zt = kt.get("/getBindRelationByDefKey"), Qt = At.get("/getByAlias"), Jt = ne.get("/organization/authTree"), Yt = ne.post("/user/list"), Wt = ne.post("/data/user-query"), Ht = ne.get("/role/list"), Zt = ne.post("/data/role-ids"), Gt = ne.get("/organization/organizationpage"), Xt = ne.get("/station/list"), es = ne.get("/position/list"), De = ne.post("/organization/detailbyids"), ts = Fe.get("/controller/area-children"), ss = Fe.get("/controller/fuzzy-tree-all"), ns = Fe.get("/controller/space"), Me = m(""), os = (s, e, t) => {
|
|
26
|
+
const { setDetailData: n, getFormData: g, setFormData: c, formRule: r } = t, u = m([]), o = m([]), a = m([]), i = m(!1), l = Ot(), d = (V) => Object.keys(V).length === 0, f = async (V) => {
|
|
27
|
+
const [R, T] = await Ct({ formId: V }).run();
|
|
28
|
+
if (R) return;
|
|
29
|
+
const J = JSON.parse(T.bos);
|
|
30
|
+
Me.value = J[0].alias, o.value.length && o.value.forEach((ee) => {
|
|
31
|
+
ee.formKey === T.formKey && c(T.formKey, Me.value, ee.id);
|
|
33
32
|
});
|
|
34
|
-
const [
|
|
35
|
-
a.value = JSON.parse(Z.value.expand).list,
|
|
33
|
+
const [Y, Z] = await xt({ formDefId: T.defId }).run();
|
|
34
|
+
a.value = JSON.parse(Z.value.expand).list, o.value.length || c(T.formKey, Me.value), d(s.data) && (i.value = !0), d(s.data) || (n(s.data), s.flowKey && (u.value = s.data.button_list ? JSON.parse(s.data.button_list) : []), i.value = !0);
|
|
36
35
|
};
|
|
37
36
|
return {
|
|
38
37
|
isShowPage: i,
|
|
39
38
|
formJsonList: a,
|
|
40
|
-
btnList:
|
|
41
|
-
formRef:
|
|
39
|
+
btnList: u,
|
|
40
|
+
formRef: l,
|
|
42
41
|
getForm: f,
|
|
43
42
|
getBtnSet: async () => {
|
|
44
43
|
if (s.formConfigurationId) {
|
|
45
|
-
const [
|
|
46
|
-
if (
|
|
47
|
-
|
|
44
|
+
const [V, R] = await Ut({ id: s.formConfigurationId }).run();
|
|
45
|
+
if (V) return;
|
|
46
|
+
o.value = R.reports, u.value = R.reports[0].buttons.filter((T) => !(s.isView && T.event !== "LINK")), f(R.reports[0].formId);
|
|
48
47
|
}
|
|
49
48
|
if (s.flowKey) {
|
|
50
|
-
const [
|
|
51
|
-
if (
|
|
52
|
-
f(
|
|
49
|
+
const [V, R] = await zt({ flowKey: s.flowKey }).run();
|
|
50
|
+
if (V) return;
|
|
51
|
+
f(R.pcForm.pcFormId);
|
|
53
52
|
}
|
|
54
53
|
},
|
|
55
|
-
handleClick: (
|
|
56
|
-
var
|
|
57
|
-
(
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
handleClick: (V) => {
|
|
55
|
+
var R;
|
|
56
|
+
(R = l.value) == null || R.validate(async (T) => {
|
|
57
|
+
T && (e("handleClick", V, g()), V.event === "LINK" && o.value.forEach((J) => {
|
|
58
|
+
V.eventTarget === J.formKey && (u.value = J.buttons.filter((Y) => !(s.isView && Y.event !== "LINK")), i.value = !1, r.value = {}, f(J.formId));
|
|
60
59
|
}));
|
|
61
60
|
});
|
|
62
61
|
},
|
|
63
|
-
validateFormData: () => new Promise((
|
|
64
|
-
var
|
|
65
|
-
(
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
result:
|
|
69
|
-
data:
|
|
62
|
+
validateFormData: () => new Promise((V, R) => {
|
|
63
|
+
var T;
|
|
64
|
+
(T = l.value) == null || T.validate((J) => {
|
|
65
|
+
const Y = g();
|
|
66
|
+
V({
|
|
67
|
+
result: J,
|
|
68
|
+
data: Y
|
|
70
69
|
});
|
|
71
70
|
});
|
|
72
71
|
})
|
|
73
72
|
};
|
|
74
|
-
},
|
|
73
|
+
}, Q = (s) => {
|
|
75
74
|
var e = new RegExp("<.+?>", "g"), t = s.replace(e, "").replace(/ /g, "");
|
|
76
75
|
return t;
|
|
77
|
-
},
|
|
78
|
-
const [t,
|
|
79
|
-
if (!t &&
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
|
|
76
|
+
}, _e = async (s, e) => {
|
|
77
|
+
const [t, n] = await Qt({ alias: s }).run();
|
|
78
|
+
if (!t && n.url) {
|
|
79
|
+
const g = e.filter((a) => a.defaultType == 2), c = m({});
|
|
80
|
+
g.forEach((a) => {
|
|
81
|
+
c.value[a.field] = a.defaultValue;
|
|
83
82
|
});
|
|
84
|
-
const r =
|
|
85
|
-
return
|
|
83
|
+
const r = n.requestType === "POST" ? te(n.url).post("") : te(n.url).get(""), [u, o] = await r({}, { params: c.value }).run();
|
|
84
|
+
return u ? void 0 : o;
|
|
86
85
|
}
|
|
87
|
-
},
|
|
88
|
-
const e =
|
|
86
|
+
}, H = async (s) => {
|
|
87
|
+
const e = m(!1);
|
|
89
88
|
return s.forEach((t) => {
|
|
90
89
|
t.key === "required" && (e.value = !0);
|
|
91
90
|
}), e.value;
|
|
92
|
-
},
|
|
91
|
+
}, as = {
|
|
93
92
|
name: "attachment"
|
|
94
|
-
},
|
|
95
|
-
...
|
|
93
|
+
}, is = /* @__PURE__ */ F({
|
|
94
|
+
...as,
|
|
96
95
|
props: {
|
|
97
96
|
setting: { default: () => ({
|
|
98
97
|
icon: "",
|
|
@@ -107,35 +106,35 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
107
106
|
store: {}
|
|
108
107
|
},
|
|
109
108
|
setup(s) {
|
|
110
|
-
const e = s, { setData: t, getData:
|
|
111
|
-
e.setting.options.tip && (
|
|
112
|
-
const r =
|
|
113
|
-
return r.value || t(e.setting.name, null),
|
|
114
|
-
t(e.setting.name, JSON.stringify(
|
|
115
|
-
}), (
|
|
109
|
+
const e = s, { setData: t, getData: n, setFormRule: g } = e.store || {}, c = m();
|
|
110
|
+
e.setting.options.tip && (c.value = Q(e.setting.options.tip));
|
|
111
|
+
const r = m([{ name: "111", sizeText: "9.4KB" }]);
|
|
112
|
+
return r.value || t(e.setting.name, null), x(r, (u) => {
|
|
113
|
+
t(e.setting.name, JSON.stringify(u));
|
|
114
|
+
}), (u, o) => (S(), N(p(A), {
|
|
116
115
|
col: e.span,
|
|
117
|
-
marginRight:
|
|
118
|
-
label:
|
|
116
|
+
marginRight: u.marginRight,
|
|
117
|
+
label: u.setting.desc,
|
|
119
118
|
type: "custom",
|
|
120
|
-
helpMessage:
|
|
119
|
+
helpMessage: c.value
|
|
121
120
|
}, {
|
|
122
|
-
default:
|
|
123
|
-
|
|
121
|
+
default: E(() => [
|
|
122
|
+
q(p(jt), {
|
|
124
123
|
style: { width: "100%" },
|
|
125
124
|
modelValue: r.value,
|
|
126
|
-
"onUpdate:modelValue":
|
|
125
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => r.value = a)
|
|
127
126
|
}, null, 8, ["modelValue"])
|
|
128
127
|
]),
|
|
129
128
|
_: 1
|
|
130
129
|
}, 8, ["col", "marginRight", "label", "helpMessage"]));
|
|
131
130
|
}
|
|
132
|
-
}),
|
|
131
|
+
}), Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
133
132
|
__proto__: null,
|
|
134
|
-
default:
|
|
135
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
133
|
+
default: is
|
|
134
|
+
}, Symbol.toStringTag, { value: "Module" })), ls = {
|
|
136
135
|
name: "autocomplete"
|
|
137
|
-
},
|
|
138
|
-
...
|
|
136
|
+
}, rs = /* @__PURE__ */ F({
|
|
137
|
+
...ls,
|
|
139
138
|
props: {
|
|
140
139
|
setting: { default: () => ({
|
|
141
140
|
icon: "",
|
|
@@ -150,53 +149,53 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
150
149
|
store: {}
|
|
151
150
|
},
|
|
152
151
|
setup(s) {
|
|
153
|
-
const e = s, { setData: t, getData:
|
|
154
|
-
|
|
155
|
-
|
|
152
|
+
const e = s, { setData: t, getData: n, setFormRule: g } = e.store || {}, c = m(!1);
|
|
153
|
+
H(e.setting.options.validateList).then((d) => {
|
|
154
|
+
c.value = d;
|
|
156
155
|
});
|
|
157
|
-
const r = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "value",
|
|
158
|
-
e.setting.options.customQuery.alias ?
|
|
159
|
-
a.value =
|
|
156
|
+
const r = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "value", u = e.setting.options.children ? e.setting.options.children : "children", o = !!e.setting.options.fillInFullPath, a = m([]);
|
|
157
|
+
e.setting.options.customQuery.alias ? _e(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((d) => {
|
|
158
|
+
a.value = d;
|
|
160
159
|
}) : a.value = e.setting.options.options;
|
|
161
|
-
const i =
|
|
162
|
-
e.setting.options.tip && (i.value =
|
|
163
|
-
const
|
|
164
|
-
return
|
|
165
|
-
t(e.setting.name,
|
|
166
|
-
}), (
|
|
160
|
+
const i = m();
|
|
161
|
+
e.setting.options.tip && (i.value = Q(e.setting.options.tip));
|
|
162
|
+
const l = m("");
|
|
163
|
+
return l.value = n(e.setting.name) || l.value, l.value || t(e.setting.name, null), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), x(l, (d) => {
|
|
164
|
+
t(e.setting.name, d.toString());
|
|
165
|
+
}), (d, f) => (S(), N(p(A), {
|
|
167
166
|
col: e.span,
|
|
168
|
-
marginRight:
|
|
167
|
+
marginRight: d.marginRight,
|
|
169
168
|
prop: e.setting.name,
|
|
170
|
-
modelValue:
|
|
171
|
-
"onUpdate:modelValue": f[1] || (f[1] = (
|
|
172
|
-
label:
|
|
169
|
+
modelValue: l.value,
|
|
170
|
+
"onUpdate:modelValue": f[1] || (f[1] = (O) => l.value = O),
|
|
171
|
+
label: d.setting.desc,
|
|
173
172
|
type: "custom",
|
|
174
173
|
helpMessage: i.value,
|
|
175
|
-
required:
|
|
174
|
+
required: c.value
|
|
176
175
|
}, {
|
|
177
|
-
default:
|
|
178
|
-
|
|
179
|
-
modelValue:
|
|
180
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
176
|
+
default: E(() => [
|
|
177
|
+
q(p(Nt), {
|
|
178
|
+
modelValue: l.value,
|
|
179
|
+
"onUpdate:modelValue": f[0] || (f[0] = (O) => l.value = O),
|
|
181
180
|
options: a.value,
|
|
182
181
|
isView: e.isView,
|
|
183
182
|
width: "100%",
|
|
184
|
-
fieldNames: { label:
|
|
185
|
-
showFullPath:
|
|
186
|
-
placeholder:
|
|
183
|
+
fieldNames: { label: p(r), children: p(u) },
|
|
184
|
+
showFullPath: p(o),
|
|
185
|
+
placeholder: d.setting.options.placeholder,
|
|
187
186
|
clearable: ""
|
|
188
187
|
}, null, 8, ["modelValue", "options", "isView", "fieldNames", "showFullPath", "placeholder"])
|
|
189
188
|
]),
|
|
190
189
|
_: 1
|
|
191
190
|
}, 8, ["col", "marginRight", "prop", "modelValue", "label", "helpMessage", "required"]));
|
|
192
191
|
}
|
|
193
|
-
}),
|
|
192
|
+
}), We = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
194
193
|
__proto__: null,
|
|
195
|
-
default:
|
|
196
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
194
|
+
default: rs
|
|
195
|
+
}, Symbol.toStringTag, { value: "Module" })), us = {
|
|
197
196
|
name: "checkbox"
|
|
198
|
-
},
|
|
199
|
-
...
|
|
197
|
+
}, ps = /* @__PURE__ */ F({
|
|
198
|
+
...us,
|
|
200
199
|
props: {
|
|
201
200
|
setting: { default: () => ({
|
|
202
201
|
icon: "",
|
|
@@ -211,45 +210,327 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
211
210
|
store: {}
|
|
212
211
|
},
|
|
213
212
|
setup(s) {
|
|
214
|
-
const e = s, { setData: t, getData:
|
|
215
|
-
|
|
216
|
-
|
|
213
|
+
const e = s, { setData: t, getData: n, setFormRule: g } = e.store || {}, c = m(!1);
|
|
214
|
+
H(e.setting.options.validateList).then((l) => {
|
|
215
|
+
c.value = l;
|
|
217
216
|
});
|
|
218
|
-
const r = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key",
|
|
219
|
-
e.setting.options.customQuery.alias ?
|
|
220
|
-
|
|
221
|
-
}) :
|
|
222
|
-
const a =
|
|
223
|
-
e.setting.options.tip && (a.value =
|
|
224
|
-
const i =
|
|
217
|
+
const r = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", u = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", o = m([]);
|
|
218
|
+
e.setting.options.customQuery.alias ? _e(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((l) => {
|
|
219
|
+
o.value = l;
|
|
220
|
+
}) : o.value = e.setting.options.options;
|
|
221
|
+
const a = m();
|
|
222
|
+
e.setting.options.tip && (a.value = Q(e.setting.options.tip)());
|
|
223
|
+
const i = m([]);
|
|
225
224
|
return setTimeout(() => {
|
|
226
|
-
|
|
227
|
-
}, 50), e.setting.options.validateList.length &&
|
|
228
|
-
t(e.setting.name,
|
|
229
|
-
}), (
|
|
225
|
+
n(e.setting.name) && (i.value = n(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (i.value = e.setting.options.formulasDiyJs.split(",")), i.value.length || i.value || t(e.setting.name, null);
|
|
226
|
+
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), x(i, (l) => {
|
|
227
|
+
t(e.setting.name, l.toString());
|
|
228
|
+
}), (l, d) => (S(), N(p(A), {
|
|
230
229
|
col: e.span,
|
|
231
|
-
marginRight:
|
|
230
|
+
marginRight: l.marginRight,
|
|
232
231
|
modelValue: i.value,
|
|
233
|
-
"onUpdate:modelValue":
|
|
234
|
-
layout:
|
|
235
|
-
label:
|
|
232
|
+
"onUpdate:modelValue": d[0] || (d[0] = (f) => i.value = f),
|
|
233
|
+
layout: l.setting.options.inline ? "vertical" : "default",
|
|
234
|
+
label: l.setting.desc,
|
|
236
235
|
prop: e.setting.name,
|
|
237
236
|
type: "checkbox",
|
|
238
|
-
options:
|
|
237
|
+
options: o.value,
|
|
239
238
|
isView: e.isView,
|
|
240
|
-
optionsValueKey:
|
|
241
|
-
optionsLabelKey:
|
|
239
|
+
optionsValueKey: p(r),
|
|
240
|
+
optionsLabelKey: p(u),
|
|
242
241
|
helpMessage: a.value,
|
|
243
|
-
required:
|
|
242
|
+
required: c.value
|
|
244
243
|
}, null, 8, ["col", "marginRight", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"]));
|
|
245
244
|
}
|
|
246
|
-
}),
|
|
245
|
+
}), He = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
247
246
|
__proto__: null,
|
|
248
|
-
default:
|
|
249
|
-
}, Symbol.toStringTag, { value: "Module" }))
|
|
247
|
+
default: ps
|
|
248
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
249
|
+
var cs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
250
|
+
function ds(s) {
|
|
251
|
+
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
252
|
+
}
|
|
253
|
+
var Ze = { exports: {} };
|
|
254
|
+
(function(s, e) {
|
|
255
|
+
(function(t, n) {
|
|
256
|
+
s.exports = n();
|
|
257
|
+
})(cs, function() {
|
|
258
|
+
var t = 1e3, n = 6e4, g = 36e5, c = "millisecond", r = "second", u = "minute", o = "hour", a = "day", i = "week", l = "month", d = "quarter", f = "year", O = "date", _ = "Invalid Date", L = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, V = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, R = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
|
|
259
|
+
var y = ["th", "st", "nd", "rd"], v = w % 100;
|
|
260
|
+
return "[" + w + (y[(v - 20) % 10] || y[v] || y[0]) + "]";
|
|
261
|
+
} }, T = function(w, y, v) {
|
|
262
|
+
var b = String(w);
|
|
263
|
+
return !b || b.length >= y ? w : "" + Array(y + 1 - b.length).join(v) + w;
|
|
264
|
+
}, J = { s: T, z: function(w) {
|
|
265
|
+
var y = -w.utcOffset(), v = Math.abs(y), b = Math.floor(v / 60), h = v % 60;
|
|
266
|
+
return (y <= 0 ? "+" : "-") + T(b, 2, "0") + ":" + T(h, 2, "0");
|
|
267
|
+
}, m: function w(y, v) {
|
|
268
|
+
if (y.date() < v.date()) return -w(v, y);
|
|
269
|
+
var b = 12 * (v.year() - y.year()) + (v.month() - y.month()), h = y.clone().add(b, l), D = v - h < 0, M = y.clone().add(b + (D ? -1 : 1), l);
|
|
270
|
+
return +(-(b + (v - h) / (D ? h - M : M - h)) || 0);
|
|
271
|
+
}, a: function(w) {
|
|
272
|
+
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
|
273
|
+
}, p: function(w) {
|
|
274
|
+
return { M: l, y: f, w: i, d: a, D: O, h: o, m: u, s: r, ms: c, Q: d }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
|
275
|
+
}, u: function(w) {
|
|
276
|
+
return w === void 0;
|
|
277
|
+
} }, Y = "en", Z = {};
|
|
278
|
+
Z[Y] = R;
|
|
279
|
+
var ee = "$isDayjsObject", le = function(w) {
|
|
280
|
+
return w instanceof C || !(!w || !w[ee]);
|
|
281
|
+
}, B = function w(y, v, b) {
|
|
282
|
+
var h;
|
|
283
|
+
if (!y) return Y;
|
|
284
|
+
if (typeof y == "string") {
|
|
285
|
+
var D = y.toLowerCase();
|
|
286
|
+
Z[D] && (h = D), v && (Z[D] = v, h = D);
|
|
287
|
+
var M = y.split("-");
|
|
288
|
+
if (!h && M.length > 1) return w(M[0]);
|
|
289
|
+
} else {
|
|
290
|
+
var j = y.name;
|
|
291
|
+
Z[j] = y, h = j;
|
|
292
|
+
}
|
|
293
|
+
return !b && h && (Y = h), h || !b && Y;
|
|
294
|
+
}, P = function(w, y) {
|
|
295
|
+
if (le(w)) return w.clone();
|
|
296
|
+
var v = typeof y == "object" ? y : {};
|
|
297
|
+
return v.date = w, v.args = arguments, new C(v);
|
|
298
|
+
}, $ = J;
|
|
299
|
+
$.l = B, $.i = le, $.w = function(w, y) {
|
|
300
|
+
return P(w, { locale: y.$L, utc: y.$u, x: y.$x, $offset: y.$offset });
|
|
301
|
+
};
|
|
302
|
+
var C = function() {
|
|
303
|
+
function w(v) {
|
|
304
|
+
this.$L = B(v.locale, null, !0), this.parse(v), this.$x = this.$x || v.x || {}, this[ee] = !0;
|
|
305
|
+
}
|
|
306
|
+
var y = w.prototype;
|
|
307
|
+
return y.parse = function(v) {
|
|
308
|
+
this.$d = function(b) {
|
|
309
|
+
var h = b.date, D = b.utc;
|
|
310
|
+
if (h === null) return /* @__PURE__ */ new Date(NaN);
|
|
311
|
+
if ($.u(h)) return /* @__PURE__ */ new Date();
|
|
312
|
+
if (h instanceof Date) return new Date(h);
|
|
313
|
+
if (typeof h == "string" && !/Z$/i.test(h)) {
|
|
314
|
+
var M = h.match(L);
|
|
315
|
+
if (M) {
|
|
316
|
+
var j = M[2] - 1 || 0, I = (M[7] || "0").substring(0, 3);
|
|
317
|
+
return D ? new Date(Date.UTC(M[1], j, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, I)) : new Date(M[1], j, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, I);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
return new Date(h);
|
|
321
|
+
}(v), this.init();
|
|
322
|
+
}, y.init = function() {
|
|
323
|
+
var v = this.$d;
|
|
324
|
+
this.$y = v.getFullYear(), this.$M = v.getMonth(), this.$D = v.getDate(), this.$W = v.getDay(), this.$H = v.getHours(), this.$m = v.getMinutes(), this.$s = v.getSeconds(), this.$ms = v.getMilliseconds();
|
|
325
|
+
}, y.$utils = function() {
|
|
326
|
+
return $;
|
|
327
|
+
}, y.isValid = function() {
|
|
328
|
+
return this.$d.toString() !== _;
|
|
329
|
+
}, y.isSame = function(v, b) {
|
|
330
|
+
var h = P(v);
|
|
331
|
+
return this.startOf(b) <= h && h <= this.endOf(b);
|
|
332
|
+
}, y.isAfter = function(v, b) {
|
|
333
|
+
return P(v) < this.startOf(b);
|
|
334
|
+
}, y.isBefore = function(v, b) {
|
|
335
|
+
return this.endOf(b) < P(v);
|
|
336
|
+
}, y.$g = function(v, b, h) {
|
|
337
|
+
return $.u(v) ? this[b] : this.set(h, v);
|
|
338
|
+
}, y.unix = function() {
|
|
339
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
340
|
+
}, y.valueOf = function() {
|
|
341
|
+
return this.$d.getTime();
|
|
342
|
+
}, y.startOf = function(v, b) {
|
|
343
|
+
var h = this, D = !!$.u(b) || b, M = $.p(v), j = function(ue, W) {
|
|
344
|
+
var oe = $.w(h.$u ? Date.UTC(h.$y, W, ue) : new Date(h.$y, W, ue), h);
|
|
345
|
+
return D ? oe : oe.endOf(a);
|
|
346
|
+
}, I = function(ue, W) {
|
|
347
|
+
return $.w(h.toDate()[ue].apply(h.toDate("s"), (D ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(W)), h);
|
|
348
|
+
}, k = this.$W, U = this.$M, G = this.$D, ge = "set" + (this.$u ? "UTC" : "");
|
|
349
|
+
switch (M) {
|
|
350
|
+
case f:
|
|
351
|
+
return D ? j(1, 0) : j(31, 11);
|
|
352
|
+
case l:
|
|
353
|
+
return D ? j(1, U) : j(0, U + 1);
|
|
354
|
+
case i:
|
|
355
|
+
var re = this.$locale().weekStart || 0, ve = (k < re ? k + 7 : k) - re;
|
|
356
|
+
return j(D ? G - ve : G + (6 - ve), U);
|
|
357
|
+
case a:
|
|
358
|
+
case O:
|
|
359
|
+
return I(ge + "Hours", 0);
|
|
360
|
+
case o:
|
|
361
|
+
return I(ge + "Minutes", 1);
|
|
362
|
+
case u:
|
|
363
|
+
return I(ge + "Seconds", 2);
|
|
364
|
+
case r:
|
|
365
|
+
return I(ge + "Milliseconds", 3);
|
|
366
|
+
default:
|
|
367
|
+
return this.clone();
|
|
368
|
+
}
|
|
369
|
+
}, y.endOf = function(v) {
|
|
370
|
+
return this.startOf(v, !1);
|
|
371
|
+
}, y.$set = function(v, b) {
|
|
372
|
+
var h, D = $.p(v), M = "set" + (this.$u ? "UTC" : ""), j = (h = {}, h[a] = M + "Date", h[O] = M + "Date", h[l] = M + "Month", h[f] = M + "FullYear", h[o] = M + "Hours", h[u] = M + "Minutes", h[r] = M + "Seconds", h[c] = M + "Milliseconds", h)[D], I = D === a ? this.$D + (b - this.$W) : b;
|
|
373
|
+
if (D === l || D === f) {
|
|
374
|
+
var k = this.clone().set(O, 1);
|
|
375
|
+
k.$d[j](I), k.init(), this.$d = k.set(O, Math.min(this.$D, k.daysInMonth())).$d;
|
|
376
|
+
} else j && this.$d[j](I);
|
|
377
|
+
return this.init(), this;
|
|
378
|
+
}, y.set = function(v, b) {
|
|
379
|
+
return this.clone().$set(v, b);
|
|
380
|
+
}, y.get = function(v) {
|
|
381
|
+
return this[$.p(v)]();
|
|
382
|
+
}, y.add = function(v, b) {
|
|
383
|
+
var h, D = this;
|
|
384
|
+
v = Number(v);
|
|
385
|
+
var M = $.p(b), j = function(U) {
|
|
386
|
+
var G = P(D);
|
|
387
|
+
return $.w(G.date(G.date() + Math.round(U * v)), D);
|
|
388
|
+
};
|
|
389
|
+
if (M === l) return this.set(l, this.$M + v);
|
|
390
|
+
if (M === f) return this.set(f, this.$y + v);
|
|
391
|
+
if (M === a) return j(1);
|
|
392
|
+
if (M === i) return j(7);
|
|
393
|
+
var I = (h = {}, h[u] = n, h[o] = g, h[r] = t, h)[M] || 1, k = this.$d.getTime() + v * I;
|
|
394
|
+
return $.w(k, this);
|
|
395
|
+
}, y.subtract = function(v, b) {
|
|
396
|
+
return this.add(-1 * v, b);
|
|
397
|
+
}, y.format = function(v) {
|
|
398
|
+
var b = this, h = this.$locale();
|
|
399
|
+
if (!this.isValid()) return h.invalidDate || _;
|
|
400
|
+
var D = v || "YYYY-MM-DDTHH:mm:ssZ", M = $.z(this), j = this.$H, I = this.$m, k = this.$M, U = h.weekdays, G = h.months, ge = h.meridiem, re = function(W, oe, he, we) {
|
|
401
|
+
return W && (W[oe] || W(b, D)) || he[oe].slice(0, we);
|
|
402
|
+
}, ve = function(W) {
|
|
403
|
+
return $.s(j % 12 || 12, W, "0");
|
|
404
|
+
}, ue = ge || function(W, oe, he) {
|
|
405
|
+
var we = W < 12 ? "AM" : "PM";
|
|
406
|
+
return he ? we.toLowerCase() : we;
|
|
407
|
+
};
|
|
408
|
+
return D.replace(V, function(W, oe) {
|
|
409
|
+
return oe || function(he) {
|
|
410
|
+
switch (he) {
|
|
411
|
+
case "YY":
|
|
412
|
+
return String(b.$y).slice(-2);
|
|
413
|
+
case "YYYY":
|
|
414
|
+
return $.s(b.$y, 4, "0");
|
|
415
|
+
case "M":
|
|
416
|
+
return k + 1;
|
|
417
|
+
case "MM":
|
|
418
|
+
return $.s(k + 1, 2, "0");
|
|
419
|
+
case "MMM":
|
|
420
|
+
return re(h.monthsShort, k, G, 3);
|
|
421
|
+
case "MMMM":
|
|
422
|
+
return re(G, k);
|
|
423
|
+
case "D":
|
|
424
|
+
return b.$D;
|
|
425
|
+
case "DD":
|
|
426
|
+
return $.s(b.$D, 2, "0");
|
|
427
|
+
case "d":
|
|
428
|
+
return String(b.$W);
|
|
429
|
+
case "dd":
|
|
430
|
+
return re(h.weekdaysMin, b.$W, U, 2);
|
|
431
|
+
case "ddd":
|
|
432
|
+
return re(h.weekdaysShort, b.$W, U, 3);
|
|
433
|
+
case "dddd":
|
|
434
|
+
return U[b.$W];
|
|
435
|
+
case "H":
|
|
436
|
+
return String(j);
|
|
437
|
+
case "HH":
|
|
438
|
+
return $.s(j, 2, "0");
|
|
439
|
+
case "h":
|
|
440
|
+
return ve(1);
|
|
441
|
+
case "hh":
|
|
442
|
+
return ve(2);
|
|
443
|
+
case "a":
|
|
444
|
+
return ue(j, I, !0);
|
|
445
|
+
case "A":
|
|
446
|
+
return ue(j, I, !1);
|
|
447
|
+
case "m":
|
|
448
|
+
return String(I);
|
|
449
|
+
case "mm":
|
|
450
|
+
return $.s(I, 2, "0");
|
|
451
|
+
case "s":
|
|
452
|
+
return String(b.$s);
|
|
453
|
+
case "ss":
|
|
454
|
+
return $.s(b.$s, 2, "0");
|
|
455
|
+
case "SSS":
|
|
456
|
+
return $.s(b.$ms, 3, "0");
|
|
457
|
+
case "Z":
|
|
458
|
+
return M;
|
|
459
|
+
}
|
|
460
|
+
return null;
|
|
461
|
+
}(W) || M.replace(":", "");
|
|
462
|
+
});
|
|
463
|
+
}, y.utcOffset = function() {
|
|
464
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
465
|
+
}, y.diff = function(v, b, h) {
|
|
466
|
+
var D, M = this, j = $.p(b), I = P(v), k = (I.utcOffset() - this.utcOffset()) * n, U = this - I, G = function() {
|
|
467
|
+
return $.m(M, I);
|
|
468
|
+
};
|
|
469
|
+
switch (j) {
|
|
470
|
+
case f:
|
|
471
|
+
D = G() / 12;
|
|
472
|
+
break;
|
|
473
|
+
case l:
|
|
474
|
+
D = G();
|
|
475
|
+
break;
|
|
476
|
+
case d:
|
|
477
|
+
D = G() / 3;
|
|
478
|
+
break;
|
|
479
|
+
case i:
|
|
480
|
+
D = (U - k) / 6048e5;
|
|
481
|
+
break;
|
|
482
|
+
case a:
|
|
483
|
+
D = (U - k) / 864e5;
|
|
484
|
+
break;
|
|
485
|
+
case o:
|
|
486
|
+
D = U / g;
|
|
487
|
+
break;
|
|
488
|
+
case u:
|
|
489
|
+
D = U / n;
|
|
490
|
+
break;
|
|
491
|
+
case r:
|
|
492
|
+
D = U / t;
|
|
493
|
+
break;
|
|
494
|
+
default:
|
|
495
|
+
D = U;
|
|
496
|
+
}
|
|
497
|
+
return h ? D : $.a(D);
|
|
498
|
+
}, y.daysInMonth = function() {
|
|
499
|
+
return this.endOf(l).$D;
|
|
500
|
+
}, y.$locale = function() {
|
|
501
|
+
return Z[this.$L];
|
|
502
|
+
}, y.locale = function(v, b) {
|
|
503
|
+
if (!v) return this.$L;
|
|
504
|
+
var h = this.clone(), D = B(v, b, !0);
|
|
505
|
+
return D && (h.$L = D), h;
|
|
506
|
+
}, y.clone = function() {
|
|
507
|
+
return $.w(this.$d, this);
|
|
508
|
+
}, y.toDate = function() {
|
|
509
|
+
return new Date(this.valueOf());
|
|
510
|
+
}, y.toJSON = function() {
|
|
511
|
+
return this.isValid() ? this.toISOString() : null;
|
|
512
|
+
}, y.toISOString = function() {
|
|
513
|
+
return this.$d.toISOString();
|
|
514
|
+
}, y.toString = function() {
|
|
515
|
+
return this.$d.toUTCString();
|
|
516
|
+
}, w;
|
|
517
|
+
}(), K = C.prototype;
|
|
518
|
+
return P.prototype = K, [["$ms", c], ["$s", r], ["$m", u], ["$H", o], ["$W", a], ["$M", l], ["$y", f], ["$D", O]].forEach(function(w) {
|
|
519
|
+
K[w[1]] = function(y) {
|
|
520
|
+
return this.$g(y, w[0], w[1]);
|
|
521
|
+
};
|
|
522
|
+
}), P.extend = function(w, y) {
|
|
523
|
+
return w.$i || (w(y, C, P), w.$i = !0), P;
|
|
524
|
+
}, P.locale = B, P.isDayjs = le, P.unix = function(w) {
|
|
525
|
+
return P(1e3 * w);
|
|
526
|
+
}, P.en = Z[Y], P.Ls = Z, P.p = {}, P;
|
|
527
|
+
});
|
|
528
|
+
})(Ze);
|
|
529
|
+
var gs = Ze.exports;
|
|
530
|
+
const je = /* @__PURE__ */ ds(gs), ms = {
|
|
250
531
|
name: "date"
|
|
251
|
-
},
|
|
252
|
-
...
|
|
532
|
+
}, fs = /* @__PURE__ */ F({
|
|
533
|
+
...ms,
|
|
253
534
|
props: {
|
|
254
535
|
setting: { default: () => ({
|
|
255
536
|
icon: "",
|
|
@@ -264,44 +545,44 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
264
545
|
store: {}
|
|
265
546
|
},
|
|
266
547
|
setup(s) {
|
|
267
|
-
const e = s, { setData: t, getData:
|
|
268
|
-
|
|
269
|
-
|
|
548
|
+
const e = s, { setData: t, getData: n, setFormRule: g } = e.store || {}, c = m(!1);
|
|
549
|
+
H(e.setting.options.validateList).then((a) => {
|
|
550
|
+
c.value = a;
|
|
270
551
|
});
|
|
271
|
-
const r = e.setting.options.format === "yyyy-MM-dd" ? "YYYY/MM/DD" : "YYYY/MM/DD HH:mm:ss",
|
|
272
|
-
e.setting.options.tip && (
|
|
273
|
-
const
|
|
552
|
+
const r = e.setting.options.format === "yyyy-MM-dd" ? "YYYY/MM/DD" : "YYYY/MM/DD HH:mm:ss", u = m();
|
|
553
|
+
e.setting.options.tip && (u.value = Q(e.setting.options.tip));
|
|
554
|
+
const o = m();
|
|
274
555
|
if (setTimeout(() => {
|
|
275
|
-
|
|
556
|
+
o.value = n(e.setting.name) || e.setting.options.formulasDiyJs || o.value, o.value || t(e.setting.name, null);
|
|
276
557
|
}, 50), e.setting.options.showCurrentDate) {
|
|
277
558
|
let a = /* @__PURE__ */ new Date();
|
|
278
|
-
a.setDate(a.getDate() + e.setting.options.day),
|
|
559
|
+
a.setDate(a.getDate() + e.setting.options.day), o.value = je(a.getTime()).format(r), t(e.setting.name, o.value);
|
|
279
560
|
}
|
|
280
|
-
return e.setting.options.validateList.length &&
|
|
561
|
+
return e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), x(o, (a) => {
|
|
281
562
|
t(e.setting.name, a);
|
|
282
|
-
}), (a, i) => (
|
|
563
|
+
}), (a, i) => (S(), N(p(A), {
|
|
283
564
|
col: e.span,
|
|
284
565
|
marginRight: a.marginRight,
|
|
285
|
-
modelValue:
|
|
286
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
566
|
+
modelValue: o.value,
|
|
567
|
+
"onUpdate:modelValue": i[0] || (i[0] = (l) => o.value = l),
|
|
287
568
|
label: a.setting.desc,
|
|
288
569
|
prop: e.setting.name,
|
|
289
570
|
type: e.setting.options.format === "yyyy/MM/dd" ? "date" : "dateTime",
|
|
290
|
-
format:
|
|
291
|
-
valueFormat:
|
|
571
|
+
format: p(r),
|
|
572
|
+
valueFormat: p(r),
|
|
292
573
|
isView: e.isView,
|
|
293
574
|
placeholder: a.setting.options.placeholder,
|
|
294
|
-
helpMessage:
|
|
295
|
-
required:
|
|
575
|
+
helpMessage: u.value,
|
|
576
|
+
required: c.value
|
|
296
577
|
}, null, 8, ["col", "marginRight", "modelValue", "label", "prop", "type", "format", "valueFormat", "isView", "placeholder", "helpMessage", "required"]));
|
|
297
578
|
}
|
|
298
|
-
}),
|
|
579
|
+
}), Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
299
580
|
__proto__: null,
|
|
300
|
-
default:
|
|
301
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
581
|
+
default: fs
|
|
582
|
+
}, Symbol.toStringTag, { value: "Module" })), vs = {
|
|
302
583
|
name: "dropdown"
|
|
303
|
-
},
|
|
304
|
-
...
|
|
584
|
+
}, hs = /* @__PURE__ */ F({
|
|
585
|
+
...vs,
|
|
305
586
|
props: {
|
|
306
587
|
setting: { default: () => ({
|
|
307
588
|
icon: "",
|
|
@@ -316,26 +597,26 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
316
597
|
store: {}
|
|
317
598
|
},
|
|
318
599
|
setup(s) {
|
|
319
|
-
const e = s, { setData: t, getData:
|
|
320
|
-
|
|
321
|
-
|
|
600
|
+
const e = s, { setData: t, getData: n, setFormRule: g } = e.store || {}, c = m(!1);
|
|
601
|
+
H(e.setting.options.validateList).then((f) => {
|
|
602
|
+
c.value = f;
|
|
322
603
|
});
|
|
323
|
-
const r =
|
|
324
|
-
e.setting.options.customQuery.alias &&
|
|
604
|
+
const r = m(""), u = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", o = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", a = e.setting.options.customQuery.PId || "children", i = m([]);
|
|
605
|
+
e.setting.options.customQuery.alias && _e(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((f) => {
|
|
325
606
|
i.value = f;
|
|
326
607
|
});
|
|
327
|
-
const
|
|
328
|
-
e.setting.options.tip && (
|
|
329
|
-
const
|
|
330
|
-
return
|
|
608
|
+
const l = m();
|
|
609
|
+
e.setting.options.tip && (l.value = Q(e.setting.options.tip));
|
|
610
|
+
const d = m();
|
|
611
|
+
return d.value = e.setting.options.multiple ? [] : "", e.setting.options.multiple && n(e.setting.name) ? d.value = n(e.setting.name).split(",") : d.value = n(e.setting.name) || d.value, d.value || t(e.setting.name, null), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), x(d, (f) => {
|
|
331
612
|
t(e.setting.name, f.toString());
|
|
332
|
-
}), (f,
|
|
613
|
+
}), (f, O) => (S(), N(p(A), {
|
|
333
614
|
col: e.span,
|
|
334
615
|
marginRight: f.marginRight,
|
|
335
|
-
modelValue:
|
|
336
|
-
"onUpdate:modelValue":
|
|
616
|
+
modelValue: d.value,
|
|
617
|
+
"onUpdate:modelValue": O[0] || (O[0] = (_) => d.value = _),
|
|
337
618
|
keyword: r.value,
|
|
338
|
-
"onUpdate:keyword":
|
|
619
|
+
"onUpdate:keyword": O[1] || (O[1] = (_) => r.value = _),
|
|
339
620
|
label: f.setting.desc,
|
|
340
621
|
type: "treeSelect",
|
|
341
622
|
"node-key": f.setting.options.customQuery.valueBind,
|
|
@@ -346,19 +627,19 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
346
627
|
selectAttrs: { allowClear: !0 },
|
|
347
628
|
options: i.value,
|
|
348
629
|
isView: e.isView,
|
|
349
|
-
helpMessage:
|
|
350
|
-
props: { label:
|
|
630
|
+
helpMessage: l.value,
|
|
631
|
+
props: { label: p(o), value: p(u), children: p(a) },
|
|
351
632
|
"check-strictly": !f.setting.options.cascade,
|
|
352
|
-
required:
|
|
633
|
+
required: c.value
|
|
353
634
|
}, null, 8, ["col", "marginRight", "modelValue", "keyword", "label", "node-key", "placeholder", "mode", "prop", "filter", "options", "isView", "helpMessage", "props", "check-strictly", "required"]));
|
|
354
635
|
}
|
|
355
|
-
}),
|
|
636
|
+
}), Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
356
637
|
__proto__: null,
|
|
357
|
-
default:
|
|
358
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
638
|
+
default: hs
|
|
639
|
+
}, Symbol.toStringTag, { value: "Module" })), ys = { class: "form-image" }, bs = {
|
|
359
640
|
name: "imageViewer"
|
|
360
|
-
},
|
|
361
|
-
...
|
|
641
|
+
}, _s = /* @__PURE__ */ F({
|
|
642
|
+
...bs,
|
|
362
643
|
props: {
|
|
363
644
|
setting: { default: () => ({
|
|
364
645
|
icon: "",
|
|
@@ -373,46 +654,46 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
373
654
|
store: {}
|
|
374
655
|
},
|
|
375
656
|
setup(s) {
|
|
376
|
-
const e = s, { setData: t, getData:
|
|
377
|
-
|
|
378
|
-
|
|
657
|
+
const e = s, { setData: t, getData: n, setFormRule: g } = e.store || {}, c = m(!1);
|
|
658
|
+
H(e.setting.options.validateList).then((i) => {
|
|
659
|
+
c.value = i;
|
|
379
660
|
});
|
|
380
|
-
const r =
|
|
661
|
+
const r = m("normal");
|
|
381
662
|
e.isView && (r.value = "info");
|
|
382
|
-
const
|
|
383
|
-
e.setting.options.tip && (
|
|
384
|
-
const
|
|
385
|
-
|
|
663
|
+
const u = m();
|
|
664
|
+
e.setting.options.tip && (u.value = Q(e.setting.options.tip));
|
|
665
|
+
const o = m();
|
|
666
|
+
o.value = e.setting.options.file.limit > 1 ? [] : "", e.setting.options.file.limit > 1 && n(e.setting.name) ? o.value = n(e.setting.name).split(",") : o.value = n(e.setting.name) || o.value, o.value || t(e.setting.name, null);
|
|
386
667
|
const a = (i) => {
|
|
387
668
|
setTimeout(() => {
|
|
388
|
-
t(e.setting.name,
|
|
669
|
+
t(e.setting.name, o.value.toString());
|
|
389
670
|
}, 100);
|
|
390
671
|
};
|
|
391
|
-
return e.setting.options.validateList.length &&
|
|
392
|
-
const
|
|
672
|
+
return e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), x(o.value, (i) => {
|
|
673
|
+
const l = i.map((d) => {
|
|
393
674
|
let f = "";
|
|
394
|
-
return
|
|
675
|
+
return d.indexOf("/oss/") != -1 ? f = d : f = `/oss/${d}`, f;
|
|
395
676
|
});
|
|
396
677
|
setTimeout(() => {
|
|
397
|
-
t(e.setting.name,
|
|
678
|
+
t(e.setting.name, l.join(","));
|
|
398
679
|
}, 100);
|
|
399
|
-
}), (i,
|
|
400
|
-
modelValue:
|
|
401
|
-
"onUpdate:modelValue":
|
|
680
|
+
}), (i, l) => (S(), N(p(A), {
|
|
681
|
+
modelValue: o.value,
|
|
682
|
+
"onUpdate:modelValue": l[2] || (l[2] = (d) => o.value = d),
|
|
402
683
|
"margin-bottom": "0",
|
|
403
684
|
prop: e.setting.name,
|
|
404
685
|
label: i.setting.desc,
|
|
405
686
|
type: "custom",
|
|
406
|
-
helpMessage:
|
|
407
|
-
required:
|
|
687
|
+
helpMessage: u.value,
|
|
688
|
+
required: c.value
|
|
408
689
|
}, {
|
|
409
|
-
default:
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
modelValue:
|
|
413
|
-
"onUpdate:modelValue":
|
|
690
|
+
default: E(() => [
|
|
691
|
+
_t("div", ys, [
|
|
692
|
+
q(p(Ue), {
|
|
693
|
+
modelValue: o.value,
|
|
694
|
+
"onUpdate:modelValue": l[0] || (l[0] = (d) => o.value = d),
|
|
414
695
|
status: r.value,
|
|
415
|
-
"onUpdate:status":
|
|
696
|
+
"onUpdate:status": l[1] || (l[1] = (d) => r.value = d),
|
|
416
697
|
maxSize: "6",
|
|
417
698
|
"limit-num": i.setting.options.file.limit,
|
|
418
699
|
prop: e.setting.name,
|
|
@@ -425,25 +706,25 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
425
706
|
needDownloadBtn: i.setting.options.file.allowDownload == !0,
|
|
426
707
|
needPreview: i.setting.options.file.allowPreview == !0,
|
|
427
708
|
onImageUpload: a,
|
|
428
|
-
required:
|
|
709
|
+
required: c.value
|
|
429
710
|
}, null, 8, ["modelValue", "status", "limit-num", "prop", "needDownloadBtn", "needPreview", "required"])
|
|
430
711
|
])
|
|
431
712
|
]),
|
|
432
713
|
_: 1
|
|
433
714
|
}, 8, ["modelValue", "prop", "label", "helpMessage", "required"]));
|
|
434
715
|
}
|
|
435
|
-
}),
|
|
716
|
+
}), qe = (s, e) => {
|
|
436
717
|
const t = s.__vccOpts || s;
|
|
437
|
-
for (const [
|
|
438
|
-
t[
|
|
718
|
+
for (const [n, g] of e)
|
|
719
|
+
t[n] = g;
|
|
439
720
|
return t;
|
|
440
|
-
},
|
|
721
|
+
}, ws = /* @__PURE__ */ qe(_s, [["__scopeId", "data-v-e26b3898"]]), et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
441
722
|
__proto__: null,
|
|
442
|
-
default:
|
|
443
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
723
|
+
default: ws
|
|
724
|
+
}, Symbol.toStringTag, { value: "Module" })), Vs = {
|
|
444
725
|
name: "input"
|
|
445
|
-
},
|
|
446
|
-
...
|
|
726
|
+
}, $s = /* @__PURE__ */ F({
|
|
727
|
+
...Vs,
|
|
447
728
|
props: {
|
|
448
729
|
setting: { default: () => ({
|
|
449
730
|
icon: "",
|
|
@@ -458,42 +739,42 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
458
739
|
store: {}
|
|
459
740
|
},
|
|
460
741
|
setup(s) {
|
|
461
|
-
const e = s, { setData: t, getData:
|
|
462
|
-
|
|
463
|
-
|
|
742
|
+
const e = s, { setData: t, getData: n, setFormRule: g } = e.store || {}, c = m(!1);
|
|
743
|
+
H(e.setting.options.validateList).then((o) => {
|
|
744
|
+
c.value = o;
|
|
464
745
|
});
|
|
465
|
-
const r =
|
|
466
|
-
e.setting.options.tip && (r.value =
|
|
467
|
-
const
|
|
746
|
+
const r = m();
|
|
747
|
+
e.setting.options.tip && (r.value = Q(e.setting.options.tip));
|
|
748
|
+
const u = m("");
|
|
468
749
|
return setTimeout(() => {
|
|
469
|
-
|
|
470
|
-
}, 50), e.setting.options.validateList.length &&
|
|
471
|
-
e.setting.options.dataType === "number" && !isNaN(
|
|
472
|
-
}), (
|
|
750
|
+
u.value = n(e.setting.name) || e.setting.options.formulasDiyJs || u.value, u.value || t(e.setting.name, null);
|
|
751
|
+
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), x(u, (o) => {
|
|
752
|
+
e.setting.options.dataType === "number" && !isNaN(o) ? t(e.setting.name, Number(o)) : t(e.setting.name, o);
|
|
753
|
+
}), (o, a) => (S(), N(p(A), {
|
|
473
754
|
col: e.span,
|
|
474
|
-
marginRight:
|
|
755
|
+
marginRight: o.marginRight,
|
|
475
756
|
prop: e.setting.name,
|
|
476
|
-
modelValue:
|
|
477
|
-
"onUpdate:modelValue": a[1] || (a[1] = (i) =>
|
|
478
|
-
label:
|
|
757
|
+
modelValue: u.value,
|
|
758
|
+
"onUpdate:modelValue": a[1] || (a[1] = (i) => u.value = i),
|
|
759
|
+
label: o.setting.desc,
|
|
479
760
|
type: "custom",
|
|
480
761
|
helpMessage: r.value,
|
|
481
|
-
required:
|
|
762
|
+
required: c.value
|
|
482
763
|
}, {
|
|
483
|
-
default:
|
|
484
|
-
|
|
485
|
-
modelValue:
|
|
486
|
-
"onUpdate:modelValue": a[0] || (a[0] = (i) =>
|
|
487
|
-
width:
|
|
488
|
-
disabled:
|
|
489
|
-
isView:
|
|
490
|
-
placeholder:
|
|
764
|
+
default: E(() => [
|
|
765
|
+
q(p(Ft), {
|
|
766
|
+
modelValue: u.value,
|
|
767
|
+
"onUpdate:modelValue": a[0] || (a[0] = (i) => u.value = i),
|
|
768
|
+
width: o.setting.options.width,
|
|
769
|
+
disabled: o.setting.options.isInputEdit,
|
|
770
|
+
isView: o.setting.options.isReadonly || e.isView,
|
|
771
|
+
placeholder: o.setting.options.placeholder
|
|
491
772
|
}, {
|
|
492
|
-
prepend:
|
|
493
|
-
|
|
773
|
+
prepend: E(() => [
|
|
774
|
+
me(fe(o.setting.options.bindPreAndSufFixjson.preFix), 1)
|
|
494
775
|
]),
|
|
495
|
-
append:
|
|
496
|
-
|
|
776
|
+
append: E(() => [
|
|
777
|
+
me(fe(o.setting.options.bindPreAndSufFixjson.sufSix), 1)
|
|
497
778
|
]),
|
|
498
779
|
_: 1
|
|
499
780
|
}, 8, ["modelValue", "width", "disabled", "isView", "placeholder"])
|
|
@@ -501,13 +782,13 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
501
782
|
_: 1
|
|
502
783
|
}, 8, ["col", "marginRight", "prop", "modelValue", "label", "helpMessage", "required"]));
|
|
503
784
|
}
|
|
504
|
-
}),
|
|
785
|
+
}), tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
505
786
|
__proto__: null,
|
|
506
|
-
default:
|
|
507
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
787
|
+
default: $s
|
|
788
|
+
}, Symbol.toStringTag, { value: "Module" })), Ds = {
|
|
508
789
|
name: "number"
|
|
509
|
-
},
|
|
510
|
-
...
|
|
790
|
+
}, Ms = /* @__PURE__ */ F({
|
|
791
|
+
...Ds,
|
|
511
792
|
props: {
|
|
512
793
|
setting: { default: () => ({
|
|
513
794
|
icon: "",
|
|
@@ -522,42 +803,42 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
522
803
|
store: {}
|
|
523
804
|
},
|
|
524
805
|
setup(s) {
|
|
525
|
-
const e = s, { setData: t, getData:
|
|
526
|
-
|
|
527
|
-
|
|
806
|
+
const e = s, { setData: t, getData: n, setFormRule: g } = e.store || {}, c = m(!1);
|
|
807
|
+
H(e.setting.options.validateList).then((o) => {
|
|
808
|
+
c.value = o;
|
|
528
809
|
});
|
|
529
|
-
const r =
|
|
530
|
-
e.setting.options.tip && (r.value =
|
|
531
|
-
const
|
|
810
|
+
const r = m();
|
|
811
|
+
e.setting.options.tip && (r.value = Q(e.setting.options.tip));
|
|
812
|
+
const u = m(0);
|
|
532
813
|
return setTimeout(() => {
|
|
533
|
-
|
|
534
|
-
}, 50), e.setting.options.validateList.length &&
|
|
535
|
-
t(e.setting.name,
|
|
536
|
-
}), (
|
|
814
|
+
u.value = n(e.setting.name) || e.setting.options.formulasDiyJs || u.value, u.value || t(e.setting.name, null);
|
|
815
|
+
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), x(u, (o) => {
|
|
816
|
+
t(e.setting.name, o);
|
|
817
|
+
}), (o, a) => (S(), N(p(A), {
|
|
537
818
|
col: e.span,
|
|
538
|
-
marginRight:
|
|
539
|
-
modelValue:
|
|
540
|
-
"onUpdate:modelValue": a[0] || (a[0] = (i) =>
|
|
819
|
+
marginRight: o.marginRight,
|
|
820
|
+
modelValue: u.value,
|
|
821
|
+
"onUpdate:modelValue": a[0] || (a[0] = (i) => u.value = i),
|
|
541
822
|
style: { width: "100%" },
|
|
542
|
-
label:
|
|
823
|
+
label: o.setting.desc,
|
|
543
824
|
type: "inputNumber",
|
|
544
825
|
prop: e.setting.name,
|
|
545
|
-
max:
|
|
546
|
-
min:
|
|
547
|
-
step:
|
|
826
|
+
max: o.setting.options.max,
|
|
827
|
+
min: o.setting.options.min,
|
|
828
|
+
step: o.setting.options.step,
|
|
548
829
|
isView: e.isView,
|
|
549
|
-
precision:
|
|
830
|
+
precision: o.setting.options.decimalDigits,
|
|
550
831
|
helpMessage: r.value,
|
|
551
|
-
required:
|
|
832
|
+
required: c.value
|
|
552
833
|
}, null, 8, ["col", "marginRight", "modelValue", "label", "prop", "max", "min", "step", "isView", "precision", "helpMessage", "required"]));
|
|
553
834
|
}
|
|
554
|
-
}),
|
|
835
|
+
}), st = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
555
836
|
__proto__: null,
|
|
556
|
-
default:
|
|
557
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
837
|
+
default: Ms
|
|
838
|
+
}, Symbol.toStringTag, { value: "Module" })), Ss = {
|
|
558
839
|
name: "radio"
|
|
559
|
-
},
|
|
560
|
-
...
|
|
840
|
+
}, Os = /* @__PURE__ */ F({
|
|
841
|
+
...Ss,
|
|
561
842
|
props: {
|
|
562
843
|
setting: { default: () => ({
|
|
563
844
|
icon: "",
|
|
@@ -572,46 +853,46 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
572
853
|
store: {}
|
|
573
854
|
},
|
|
574
855
|
setup(s) {
|
|
575
|
-
const e = s, { setData: t, getData:
|
|
576
|
-
|
|
577
|
-
|
|
856
|
+
const e = s, { setData: t, getData: n, setFormRule: g } = e.store || {}, c = m(!1);
|
|
857
|
+
H(e.setting.options.validateList).then((l) => {
|
|
858
|
+
c.value = l;
|
|
578
859
|
});
|
|
579
|
-
const r = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key",
|
|
580
|
-
e.setting.options.customQuery.alias ?
|
|
581
|
-
|
|
582
|
-
}) :
|
|
583
|
-
const a =
|
|
584
|
-
e.setting.options.tip && (a.value =
|
|
585
|
-
const i =
|
|
860
|
+
const r = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", u = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", o = m([]);
|
|
861
|
+
e.setting.options.customQuery.alias ? _e(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((l) => {
|
|
862
|
+
o.value = l;
|
|
863
|
+
}) : o.value = e.setting.options.options;
|
|
864
|
+
const a = m();
|
|
865
|
+
e.setting.options.tip && (a.value = Q(e.setting.options.tip));
|
|
866
|
+
const i = m(null);
|
|
586
867
|
return setTimeout(() => {
|
|
587
|
-
i.value =
|
|
588
|
-
}, 50), e.setting.options.validateList.length &&
|
|
589
|
-
t(e.setting.name,
|
|
590
|
-
}), (
|
|
868
|
+
i.value = n(e.setting.name) || e.setting.options.formulasDiyJs || i.value, i.value || t(e.setting.name, null);
|
|
869
|
+
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), x(i, (l) => {
|
|
870
|
+
t(e.setting.name, l);
|
|
871
|
+
}), (l, d) => (S(), N(p(A), {
|
|
591
872
|
col: e.span,
|
|
592
|
-
marginRight:
|
|
873
|
+
marginRight: l.marginRight,
|
|
593
874
|
modelValue: i.value,
|
|
594
|
-
"onUpdate:modelValue":
|
|
595
|
-
layout:
|
|
596
|
-
label:
|
|
875
|
+
"onUpdate:modelValue": d[0] || (d[0] = (f) => i.value = f),
|
|
876
|
+
layout: l.setting.options.inline ? "vertical" : "default",
|
|
877
|
+
label: l.setting.desc,
|
|
597
878
|
type: "radio",
|
|
598
879
|
prop: e.setting.name,
|
|
599
|
-
options:
|
|
880
|
+
options: o.value,
|
|
600
881
|
isView: e.isView,
|
|
601
|
-
optionsValueKey:
|
|
602
|
-
optionsLabelKey:
|
|
882
|
+
optionsValueKey: p(r),
|
|
883
|
+
optionsLabelKey: p(u),
|
|
603
884
|
helpMessage: a.value,
|
|
604
|
-
required:
|
|
885
|
+
required: c.value,
|
|
605
886
|
isSetTimeout: !0
|
|
606
887
|
}, null, 8, ["col", "marginRight", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"]));
|
|
607
888
|
}
|
|
608
|
-
}),
|
|
889
|
+
}), nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
609
890
|
__proto__: null,
|
|
610
|
-
default:
|
|
611
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
891
|
+
default: Os
|
|
892
|
+
}, Symbol.toStringTag, { value: "Module" })), Rs = {
|
|
612
893
|
name: "select"
|
|
613
|
-
},
|
|
614
|
-
...
|
|
894
|
+
}, Ls = /* @__PURE__ */ F({
|
|
895
|
+
...Rs,
|
|
615
896
|
props: {
|
|
616
897
|
setting: { default: () => ({
|
|
617
898
|
icon: "",
|
|
@@ -626,88 +907,88 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
626
907
|
store: {}
|
|
627
908
|
},
|
|
628
909
|
setup(s) {
|
|
629
|
-
const e = s, { setData: t, getData:
|
|
630
|
-
|
|
631
|
-
|
|
910
|
+
const e = s, { setData: t, getData: n, setFormRule: g } = e.store || {}, c = m(!1);
|
|
911
|
+
H(e.setting.options.validateList).then((l) => {
|
|
912
|
+
c.value = l;
|
|
632
913
|
});
|
|
633
|
-
const r = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key",
|
|
634
|
-
e.setting.options.customQuery.alias ?
|
|
635
|
-
|
|
636
|
-
}) :
|
|
637
|
-
const a =
|
|
638
|
-
e.setting.options.tip && (a.value =
|
|
639
|
-
const i =
|
|
914
|
+
const r = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", u = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", o = m([]);
|
|
915
|
+
e.setting.options.customQuery.alias ? _e(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((l) => {
|
|
916
|
+
o.value = l;
|
|
917
|
+
}) : o.value = e.setting.options.options;
|
|
918
|
+
const a = m();
|
|
919
|
+
e.setting.options.tip && (a.value = Q(e.setting.options.tip));
|
|
920
|
+
const i = m();
|
|
640
921
|
return i.value = e.setting.options.multiple ? [] : "", setTimeout(() => {
|
|
641
|
-
e.setting.options.multiple && (
|
|
642
|
-
}, 50), e.setting.options.validateList.length &&
|
|
643
|
-
t(e.setting.name,
|
|
644
|
-
}), (
|
|
922
|
+
e.setting.options.multiple && (n(e.setting.name) || e.setting.options.formulasDiyJs) ? (n(e.setting.name) && (i.value = n(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (i.value = e.setting.options.formulasDiyJs.split(","))) : i.value = n(e.setting.name) || e.setting.options.formulasDiyJs || i.value, i.value || t(e.setting.name, null);
|
|
923
|
+
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), x(i, (l) => {
|
|
924
|
+
t(e.setting.name, l.toString());
|
|
925
|
+
}), (l, d) => (S(), N(p(A), {
|
|
645
926
|
col: e.span,
|
|
646
|
-
marginRight:
|
|
927
|
+
marginRight: l.marginRight,
|
|
647
928
|
modelValue: i.value,
|
|
648
|
-
"onUpdate:modelValue":
|
|
649
|
-
label:
|
|
929
|
+
"onUpdate:modelValue": d[0] || (d[0] = (f) => i.value = f),
|
|
930
|
+
label: l.setting.desc,
|
|
650
931
|
type: "select",
|
|
651
932
|
prop: e.setting.name,
|
|
652
|
-
placeholder:
|
|
653
|
-
mode:
|
|
654
|
-
showSearch:
|
|
933
|
+
placeholder: l.setting.options.placeholder,
|
|
934
|
+
mode: l.setting.options.multiple ? "tags" : "combobox",
|
|
935
|
+
showSearch: l.setting.options.filterable,
|
|
655
936
|
allowClear: !0,
|
|
656
937
|
isView: e.isView,
|
|
657
|
-
options:
|
|
658
|
-
optionsValueKey:
|
|
659
|
-
optionsLabelKey:
|
|
938
|
+
options: o.value,
|
|
939
|
+
optionsValueKey: p(r),
|
|
940
|
+
optionsLabelKey: p(u),
|
|
660
941
|
helpMessage: a.value,
|
|
661
|
-
required:
|
|
942
|
+
required: c.value
|
|
662
943
|
}, null, 8, ["col", "marginRight", "modelValue", "label", "prop", "placeholder", "mode", "showSearch", "isView", "options", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"]));
|
|
663
944
|
}
|
|
664
|
-
}),
|
|
945
|
+
}), ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
665
946
|
__proto__: null,
|
|
666
|
-
default:
|
|
667
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
668
|
-
const e =
|
|
669
|
-
user:
|
|
670
|
-
org:
|
|
671
|
-
role:
|
|
672
|
-
job:
|
|
673
|
-
post:
|
|
674
|
-
},
|
|
947
|
+
default: Ls
|
|
948
|
+
}, Symbol.toStringTag, { value: "Module" })), Ts = (s) => {
|
|
949
|
+
const e = ze().id, t = m(!1), n = s.options.selector.type.alias.replace("eip-", "").replace("-selector", ""), g = m([]), c = m(""), r = {
|
|
950
|
+
user: X("用户选择器").value,
|
|
951
|
+
org: X("组织选择器").value,
|
|
952
|
+
role: X("角色选择器").value,
|
|
953
|
+
job: X("职务选择器").value,
|
|
954
|
+
post: X("岗位选择器").value
|
|
955
|
+
}, u = {
|
|
675
956
|
user: "id",
|
|
676
957
|
org: "id",
|
|
677
958
|
role: "id",
|
|
678
959
|
job: "positionId",
|
|
679
960
|
post: "stationId"
|
|
680
|
-
},
|
|
681
|
-
1:
|
|
682
|
-
2:
|
|
683
|
-
3:
|
|
961
|
+
}, o = {
|
|
962
|
+
1: X("正常").value,
|
|
963
|
+
2: X("锁定").value,
|
|
964
|
+
3: X("禁用").value
|
|
684
965
|
}, a = {
|
|
685
|
-
0:
|
|
686
|
-
1:
|
|
966
|
+
0: X("普通").value,
|
|
967
|
+
1: X("管理员").value
|
|
687
968
|
}, i = {
|
|
688
|
-
0:
|
|
689
|
-
1:
|
|
690
|
-
},
|
|
691
|
-
user:
|
|
692
|
-
org:
|
|
693
|
-
role:
|
|
694
|
-
job:
|
|
695
|
-
post:
|
|
696
|
-
},
|
|
697
|
-
return
|
|
969
|
+
0: X("无效").value,
|
|
970
|
+
1: X("有效").value
|
|
971
|
+
}, l = {
|
|
972
|
+
user: Wt,
|
|
973
|
+
org: De,
|
|
974
|
+
role: Zt,
|
|
975
|
+
job: De,
|
|
976
|
+
post: De
|
|
977
|
+
}, d = r[n], f = m({});
|
|
978
|
+
return n === "org" ? f.value = {
|
|
698
979
|
left: !1,
|
|
699
980
|
content: {}
|
|
700
981
|
} : f.value = {
|
|
701
982
|
left: {
|
|
702
|
-
api:
|
|
983
|
+
api: Jt,
|
|
703
984
|
params: {
|
|
704
985
|
projectId: e,
|
|
705
986
|
parentId: e
|
|
706
987
|
}
|
|
707
988
|
},
|
|
708
989
|
content: {}
|
|
709
|
-
},
|
|
710
|
-
api:
|
|
990
|
+
}, n === "user" && (f.value.content = {
|
|
991
|
+
api: Yt,
|
|
711
992
|
searchKey: "groupId",
|
|
712
993
|
params: {
|
|
713
994
|
status: 1
|
|
@@ -715,13 +996,13 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
715
996
|
selectListProps: {
|
|
716
997
|
data: []
|
|
717
998
|
}
|
|
718
|
-
}),
|
|
719
|
-
api:
|
|
999
|
+
}), n === "org" && (f.value.content = {
|
|
1000
|
+
api: Gt,
|
|
720
1001
|
selectListProps: {
|
|
721
1002
|
data: []
|
|
722
1003
|
}
|
|
723
|
-
}),
|
|
724
|
-
api:
|
|
1004
|
+
}), n === "role" && (f.value.content = {
|
|
1005
|
+
api: Ht,
|
|
725
1006
|
searchKey: "orgId",
|
|
726
1007
|
params: {
|
|
727
1008
|
status: 1
|
|
@@ -729,8 +1010,8 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
729
1010
|
selectListProps: {
|
|
730
1011
|
data: []
|
|
731
1012
|
}
|
|
732
|
-
}),
|
|
733
|
-
api:
|
|
1013
|
+
}), n === "job" && (f.value.content = {
|
|
1014
|
+
api: es,
|
|
734
1015
|
searchKey: "groupId",
|
|
735
1016
|
props: {
|
|
736
1017
|
rowKey: "positionId"
|
|
@@ -738,8 +1019,8 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
738
1019
|
selectListProps: {
|
|
739
1020
|
data: []
|
|
740
1021
|
}
|
|
741
|
-
}),
|
|
742
|
-
api:
|
|
1022
|
+
}), n === "post" && (f.value.content = {
|
|
1023
|
+
api: Xt,
|
|
743
1024
|
searchKey: "groupId",
|
|
744
1025
|
props: {
|
|
745
1026
|
rowKey: "stationId"
|
|
@@ -749,75 +1030,75 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
749
1030
|
}
|
|
750
1031
|
}), f.value.content.multiple = !s.options.selector.isSingle, {
|
|
751
1032
|
dialogVisible: t,
|
|
752
|
-
title:
|
|
753
|
-
searchName:
|
|
754
|
-
selectorType:
|
|
755
|
-
selectOptions:
|
|
1033
|
+
title: d,
|
|
1034
|
+
searchName: c,
|
|
1035
|
+
selectorType: n,
|
|
1036
|
+
selectOptions: g,
|
|
756
1037
|
tableOptions: f,
|
|
757
|
-
userStatusMap:
|
|
1038
|
+
userStatusMap: o,
|
|
758
1039
|
roleTypeMap: a,
|
|
759
1040
|
roleStatusMap: i,
|
|
760
1041
|
openDialog: () => {
|
|
761
|
-
|
|
762
|
-
let
|
|
763
|
-
f.value.content.selectListProps.data =
|
|
1042
|
+
c.value = "", t.value = !0;
|
|
1043
|
+
let V = u[n];
|
|
1044
|
+
f.value.content.selectListProps.data = g.value.map((R) => ({ name: R.label, [V]: R.value }));
|
|
764
1045
|
},
|
|
765
|
-
confirm: (
|
|
766
|
-
let
|
|
767
|
-
|
|
1046
|
+
confirm: (V) => {
|
|
1047
|
+
let R = u[n];
|
|
1048
|
+
g.value = V.map((T) => ({ label: T.name, value: T[R] }));
|
|
768
1049
|
},
|
|
769
|
-
getDetail: async (
|
|
770
|
-
const
|
|
771
|
-
let
|
|
772
|
-
const
|
|
773
|
-
|
|
774
|
-
const [
|
|
775
|
-
|
|
1050
|
+
getDetail: async (V) => {
|
|
1051
|
+
const R = l[n];
|
|
1052
|
+
let T = {};
|
|
1053
|
+
const J = V.split(",");
|
|
1054
|
+
n === "user" && (T = { userIds: J }), n === "role" ? T = { ids: J } : T = J;
|
|
1055
|
+
const [Y, Z] = await R().run(T);
|
|
1056
|
+
Y || (g.value = Z.map((ee) => ({ label: ee.name, value: ee.id })));
|
|
776
1057
|
}
|
|
777
1058
|
};
|
|
778
|
-
},
|
|
779
|
-
const s =
|
|
1059
|
+
}, js = () => {
|
|
1060
|
+
const s = m(""), e = m(""), t = m([]), n = m("");
|
|
780
1061
|
return {
|
|
781
1062
|
spacePath: s,
|
|
782
1063
|
spaceName: e,
|
|
783
1064
|
spaceTreeData: t,
|
|
784
|
-
searchSpace:
|
|
785
|
-
changeSpace: (
|
|
1065
|
+
searchSpace: n,
|
|
1066
|
+
changeSpace: (o, a) => {
|
|
786
1067
|
s.value = a[0].path, e.value = a[0].pathName;
|
|
787
1068
|
},
|
|
788
|
-
spaceLoad: async (
|
|
1069
|
+
spaceLoad: async (o) => {
|
|
789
1070
|
let a = {
|
|
790
1071
|
pageSize: 1e4,
|
|
791
1072
|
pageIndex: 1,
|
|
792
|
-
projectId:
|
|
1073
|
+
projectId: ze().id,
|
|
793
1074
|
//项目id
|
|
794
1075
|
spaceId: ""
|
|
795
1076
|
// orgId:getProjectInfo().id
|
|
796
1077
|
};
|
|
797
|
-
a.spaceId =
|
|
798
|
-
let i =
|
|
799
|
-
const [
|
|
800
|
-
return
|
|
1078
|
+
a.spaceId = o != null && o.id ? o.id : "";
|
|
1079
|
+
let i = ts;
|
|
1080
|
+
const [l, d] = await i(a).run();
|
|
1081
|
+
return l ? {} : d;
|
|
801
1082
|
},
|
|
802
|
-
filterSpaceTree: async (
|
|
803
|
-
if (!
|
|
804
|
-
let a =
|
|
1083
|
+
filterSpaceTree: async (o) => {
|
|
1084
|
+
if (!o) return [];
|
|
1085
|
+
let a = ss;
|
|
805
1086
|
const i = {
|
|
806
|
-
name:
|
|
807
|
-
}, [
|
|
808
|
-
return
|
|
1087
|
+
name: o
|
|
1088
|
+
}, [l, d] = await a(i).run();
|
|
1089
|
+
return l ? {} : (d.forEach((f) => {
|
|
809
1090
|
f.path.startsWith("/0") && (f.path = f.path.slice(2) + `/${f.id}`), f._name = f.nodeName ? f.nodeName : f.name;
|
|
810
|
-
}),
|
|
1091
|
+
}), d);
|
|
811
1092
|
},
|
|
812
|
-
getSpaceDetail: async (
|
|
813
|
-
const [a, i] = await
|
|
1093
|
+
getSpaceDetail: async (o) => {
|
|
1094
|
+
const [a, i] = await ns().run({ spaceId: o });
|
|
814
1095
|
a || (s.value = i.path);
|
|
815
1096
|
}
|
|
816
1097
|
};
|
|
817
|
-
},
|
|
1098
|
+
}, Ns = {
|
|
818
1099
|
name: "selector"
|
|
819
|
-
},
|
|
820
|
-
...
|
|
1100
|
+
}, Fs = /* @__PURE__ */ F({
|
|
1101
|
+
...Ns,
|
|
821
1102
|
props: {
|
|
822
1103
|
setting: { default: () => ({
|
|
823
1104
|
icon: "",
|
|
@@ -832,148 +1113,148 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
832
1113
|
store: {}
|
|
833
1114
|
},
|
|
834
1115
|
setup(s) {
|
|
835
|
-
const e = s, { setData: t, getData:
|
|
836
|
-
dialogVisible:
|
|
1116
|
+
const e = s, { setData: t, getData: n, setFormRule: g } = e.store || {}, {
|
|
1117
|
+
dialogVisible: c,
|
|
837
1118
|
title: r,
|
|
838
|
-
searchName:
|
|
839
|
-
tableOptions:
|
|
1119
|
+
searchName: u,
|
|
1120
|
+
tableOptions: o,
|
|
840
1121
|
selectorType: a,
|
|
841
1122
|
selectOptions: i,
|
|
842
|
-
userStatusMap:
|
|
843
|
-
roleTypeMap:
|
|
1123
|
+
userStatusMap: l,
|
|
1124
|
+
roleTypeMap: d,
|
|
844
1125
|
roleStatusMap: f,
|
|
845
|
-
openDialog:
|
|
846
|
-
confirm:
|
|
847
|
-
getDetail:
|
|
848
|
-
} =
|
|
849
|
-
|
|
850
|
-
|
|
1126
|
+
openDialog: O,
|
|
1127
|
+
confirm: _,
|
|
1128
|
+
getDetail: L
|
|
1129
|
+
} = Ts(e.setting), { spacePath: V, spaceName: R, searchSpace: T, changeSpace: J, spaceLoad: Y, filterSpaceTree: Z, getSpaceDetail: ee } = js(), le = m(!1);
|
|
1130
|
+
H(e.setting.options.validateList).then(($) => {
|
|
1131
|
+
le.value = $;
|
|
851
1132
|
});
|
|
852
|
-
const
|
|
853
|
-
return e.setting.options.tip && (
|
|
854
|
-
|
|
855
|
-
})) : (
|
|
856
|
-
t(e.setting.name,
|
|
857
|
-
}),
|
|
858
|
-
t(e.setting.options.selector.type.positionName,
|
|
859
|
-
})), (
|
|
860
|
-
|
|
1133
|
+
const B = m(""), P = m();
|
|
1134
|
+
return e.setting.options.tip && (P.value = Q(e.setting.options.tip)), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), a !== "position" ? (B.value = n(e.setting.name) ? n(e.setting.name) : B.value, B.value && L(B.value), B.value.length || t(e.setting.name, null), x(i, ($) => {
|
|
1135
|
+
B.value = $.map((C) => C.value).toString(), t(e.setting.name, B.value);
|
|
1136
|
+
})) : (B.value = n(e.setting.name) ? n(e.setting.name) : B.value, B.value && ee(B.value), B.value || t(e.setting.name, null), x(B, ($) => {
|
|
1137
|
+
t(e.setting.name, $);
|
|
1138
|
+
}), x(R, ($) => {
|
|
1139
|
+
t(e.setting.options.selector.type.positionName, $);
|
|
1140
|
+
})), ($, C) => (S(), se(Ve, null, [
|
|
1141
|
+
p(a) != "position" ? (S(), N(p(A), {
|
|
861
1142
|
key: 0,
|
|
862
1143
|
col: e.span,
|
|
863
|
-
marginRight:
|
|
864
|
-
modelValue:
|
|
865
|
-
"onUpdate:modelValue":
|
|
1144
|
+
marginRight: $.marginRight,
|
|
1145
|
+
modelValue: B.value,
|
|
1146
|
+
"onUpdate:modelValue": C[1] || (C[1] = (K) => B.value = K),
|
|
866
1147
|
prop: e.setting.name,
|
|
867
|
-
label:
|
|
1148
|
+
label: $.setting.desc,
|
|
868
1149
|
type: "inputDialogSelect",
|
|
869
|
-
options:
|
|
870
|
-
helpMessage:
|
|
1150
|
+
options: p(i),
|
|
1151
|
+
helpMessage: P.value,
|
|
871
1152
|
isView: e.isView,
|
|
872
|
-
required:
|
|
873
|
-
onOpenDialog:
|
|
1153
|
+
required: le.value,
|
|
1154
|
+
onOpenDialog: p(O)
|
|
874
1155
|
}, {
|
|
875
|
-
default:
|
|
876
|
-
|
|
877
|
-
modelValue:
|
|
878
|
-
"onUpdate:modelValue":
|
|
879
|
-
options:
|
|
880
|
-
onConfirm:
|
|
881
|
-
title:
|
|
882
|
-
},
|
|
883
|
-
|
|
1156
|
+
default: E(() => [
|
|
1157
|
+
q(p(qt), {
|
|
1158
|
+
modelValue: p(c),
|
|
1159
|
+
"onUpdate:modelValue": C[0] || (C[0] = (K) => $e(c) ? c.value = K : null),
|
|
1160
|
+
options: p(o),
|
|
1161
|
+
onConfirm: p(_),
|
|
1162
|
+
title: p(r)
|
|
1163
|
+
}, wt({ _: 2 }, [
|
|
1164
|
+
p(a) === "user" ? {
|
|
884
1165
|
name: "table-column",
|
|
885
|
-
fn:
|
|
886
|
-
|
|
1166
|
+
fn: E(() => [
|
|
1167
|
+
q(p(z), {
|
|
887
1168
|
label: "姓名",
|
|
888
1169
|
prop: "name"
|
|
889
1170
|
}),
|
|
890
|
-
|
|
1171
|
+
q(p(z), {
|
|
891
1172
|
label: "账号",
|
|
892
1173
|
prop: "userName"
|
|
893
1174
|
}),
|
|
894
|
-
|
|
1175
|
+
q(p(z), {
|
|
895
1176
|
label: "手机号",
|
|
896
1177
|
prop: "sensitivePhone"
|
|
897
1178
|
}),
|
|
898
|
-
|
|
899
|
-
default:
|
|
900
|
-
|
|
1179
|
+
q(p(z), { label: "状态" }, {
|
|
1180
|
+
default: E(({ row: K }) => [
|
|
1181
|
+
me(fe(p(l)[K.status]), 1)
|
|
901
1182
|
]),
|
|
902
1183
|
_: 1
|
|
903
1184
|
})
|
|
904
1185
|
]),
|
|
905
1186
|
key: "0"
|
|
906
1187
|
} : void 0,
|
|
907
|
-
|
|
1188
|
+
p(a) === "org" ? {
|
|
908
1189
|
name: "table-column",
|
|
909
|
-
fn:
|
|
910
|
-
|
|
1190
|
+
fn: E(() => [
|
|
1191
|
+
q(p(z), {
|
|
911
1192
|
label: "组织名称",
|
|
912
1193
|
prop: "name"
|
|
913
1194
|
}),
|
|
914
|
-
|
|
1195
|
+
q(p(z), {
|
|
915
1196
|
label: "组织编码",
|
|
916
1197
|
prop: "code"
|
|
917
1198
|
}),
|
|
918
|
-
|
|
1199
|
+
q(p(z), {
|
|
919
1200
|
label: "组织类型",
|
|
920
1201
|
prop: "typeName"
|
|
921
1202
|
})
|
|
922
1203
|
]),
|
|
923
1204
|
key: "1"
|
|
924
1205
|
} : void 0,
|
|
925
|
-
|
|
1206
|
+
p(a) === "role" ? {
|
|
926
1207
|
name: "table-column",
|
|
927
|
-
fn:
|
|
928
|
-
|
|
1208
|
+
fn: E(() => [
|
|
1209
|
+
q(p(z), {
|
|
929
1210
|
label: "角色名称",
|
|
930
1211
|
prop: "name"
|
|
931
1212
|
}),
|
|
932
|
-
|
|
933
|
-
default:
|
|
934
|
-
|
|
1213
|
+
q(p(z), { label: "角色类型" }, {
|
|
1214
|
+
default: E(({ row: K }) => [
|
|
1215
|
+
me(fe(p(d)[K.type]), 1)
|
|
935
1216
|
]),
|
|
936
1217
|
_: 1
|
|
937
1218
|
}),
|
|
938
|
-
|
|
939
|
-
default:
|
|
940
|
-
|
|
1219
|
+
q(p(z), { label: "角色状态" }, {
|
|
1220
|
+
default: E(({ row: K }) => [
|
|
1221
|
+
me(fe(p(f)[K.status]), 1)
|
|
941
1222
|
]),
|
|
942
1223
|
_: 1
|
|
943
1224
|
})
|
|
944
1225
|
]),
|
|
945
1226
|
key: "2"
|
|
946
1227
|
} : void 0,
|
|
947
|
-
|
|
1228
|
+
p(a) === "job" ? {
|
|
948
1229
|
name: "table-column",
|
|
949
|
-
fn:
|
|
950
|
-
|
|
1230
|
+
fn: E(() => [
|
|
1231
|
+
q(p(z), {
|
|
951
1232
|
label: "职务名称",
|
|
952
1233
|
prop: "name"
|
|
953
1234
|
}),
|
|
954
|
-
|
|
1235
|
+
q(p(z), {
|
|
955
1236
|
label: "职务编码",
|
|
956
1237
|
prop: "code"
|
|
957
1238
|
}),
|
|
958
|
-
|
|
1239
|
+
q(p(z), {
|
|
959
1240
|
label: "所属组织路径",
|
|
960
1241
|
prop: "groupName"
|
|
961
1242
|
})
|
|
962
1243
|
]),
|
|
963
1244
|
key: "3"
|
|
964
1245
|
} : void 0,
|
|
965
|
-
|
|
1246
|
+
p(a) === "post" ? {
|
|
966
1247
|
name: "table-column",
|
|
967
|
-
fn:
|
|
968
|
-
|
|
1248
|
+
fn: E(() => [
|
|
1249
|
+
q(p(z), {
|
|
969
1250
|
label: "岗位名称",
|
|
970
1251
|
prop: "name"
|
|
971
1252
|
}),
|
|
972
|
-
|
|
1253
|
+
q(p(z), {
|
|
973
1254
|
label: "岗位编码",
|
|
974
1255
|
prop: "code"
|
|
975
1256
|
}),
|
|
976
|
-
|
|
1257
|
+
q(p(z), {
|
|
977
1258
|
label: "所属组织路径",
|
|
978
1259
|
prop: "groupName"
|
|
979
1260
|
})
|
|
@@ -983,48 +1264,48 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
983
1264
|
]), 1032, ["modelValue", "options", "onConfirm", "title"])
|
|
984
1265
|
]),
|
|
985
1266
|
_: 1
|
|
986
|
-
}, 8, ["col", "marginRight", "modelValue", "prop", "label", "options", "helpMessage", "isView", "required", "onOpenDialog"])) :
|
|
987
|
-
|
|
1267
|
+
}, 8, ["col", "marginRight", "modelValue", "prop", "label", "options", "helpMessage", "isView", "required", "onOpenDialog"])) : de("", !0),
|
|
1268
|
+
p(a) == "position" ? (S(), N(p(A), {
|
|
988
1269
|
key: 1,
|
|
989
1270
|
col: e.span,
|
|
990
|
-
marginRight:
|
|
991
|
-
label:
|
|
1271
|
+
marginRight: $.marginRight,
|
|
1272
|
+
label: $.setting.desc,
|
|
992
1273
|
prop: e.setting.name,
|
|
993
1274
|
type: "treeSelect",
|
|
994
1275
|
"node-key": "id",
|
|
995
1276
|
showFullPath: !0,
|
|
996
|
-
helpMessage:
|
|
997
|
-
required:
|
|
998
|
-
modelValue:
|
|
999
|
-
"onUpdate:modelValue":
|
|
1000
|
-
keyword:
|
|
1001
|
-
"onUpdate:keyword":
|
|
1002
|
-
path:
|
|
1003
|
-
"onUpdate:path":
|
|
1277
|
+
helpMessage: P.value,
|
|
1278
|
+
required: le.value,
|
|
1279
|
+
modelValue: B.value,
|
|
1280
|
+
"onUpdate:modelValue": C[2] || (C[2] = (K) => B.value = K),
|
|
1281
|
+
keyword: p(T),
|
|
1282
|
+
"onUpdate:keyword": C[3] || (C[3] = (K) => $e(T) ? T.value = K : null),
|
|
1283
|
+
path: p(V),
|
|
1284
|
+
"onUpdate:path": C[4] || (C[4] = (K) => $e(V) ? V.value = K : null),
|
|
1004
1285
|
isView: e.isView,
|
|
1005
|
-
load:
|
|
1006
|
-
search:
|
|
1286
|
+
load: p(Y),
|
|
1287
|
+
search: p(Z),
|
|
1007
1288
|
props: {
|
|
1008
1289
|
isLeaf: "leaf",
|
|
1009
1290
|
label: "name"
|
|
1010
1291
|
},
|
|
1011
|
-
onChange:
|
|
1012
|
-
}, null, 8, ["col", "marginRight", "label", "prop", "helpMessage", "required", "modelValue", "keyword", "path", "isView", "load", "search", "onChange"])) :
|
|
1292
|
+
onChange: p(J)
|
|
1293
|
+
}, null, 8, ["col", "marginRight", "label", "prop", "helpMessage", "required", "modelValue", "keyword", "path", "isView", "load", "search", "onChange"])) : de("", !0)
|
|
1013
1294
|
], 64));
|
|
1014
1295
|
}
|
|
1015
|
-
}),
|
|
1296
|
+
}), at = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1016
1297
|
__proto__: null,
|
|
1017
|
-
default:
|
|
1018
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1298
|
+
default: Fs
|
|
1299
|
+
}, Symbol.toStringTag, { value: "Module" })), qs = {
|
|
1019
1300
|
key: 0,
|
|
1020
1301
|
class: "form-image"
|
|
1021
|
-
},
|
|
1302
|
+
}, Bs = {
|
|
1022
1303
|
key: 1,
|
|
1023
1304
|
style: { "margin-bottom": "10px" }
|
|
1024
|
-
},
|
|
1305
|
+
}, Ps = {
|
|
1025
1306
|
name: "soundRecording"
|
|
1026
|
-
},
|
|
1027
|
-
...
|
|
1307
|
+
}, Es = /* @__PURE__ */ F({
|
|
1308
|
+
...Ps,
|
|
1028
1309
|
props: {
|
|
1029
1310
|
setting: { default: () => ({
|
|
1030
1311
|
icon: "",
|
|
@@ -1039,49 +1320,49 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
1039
1320
|
store: {}
|
|
1040
1321
|
},
|
|
1041
1322
|
setup(s) {
|
|
1042
|
-
const e = s, { setData: t, getData:
|
|
1043
|
-
|
|
1323
|
+
const e = s, { setData: t, getData: n, setFormRule: g } = e.store || {}, { baseURL: c } = Bt(), r = m(!1);
|
|
1324
|
+
H(e.setting.options.validateList).then((i) => {
|
|
1044
1325
|
r.value = i;
|
|
1045
1326
|
});
|
|
1046
|
-
const
|
|
1047
|
-
e.setting.options.tip && (
|
|
1048
|
-
const a =
|
|
1049
|
-
if (
|
|
1050
|
-
const i = JSON.parse(
|
|
1051
|
-
a.value =
|
|
1327
|
+
const u = m("info"), o = m();
|
|
1328
|
+
e.setting.options.tip && (o.value = Q(e.setting.options.tip));
|
|
1329
|
+
const a = m();
|
|
1330
|
+
if (n(e.setting.name)) {
|
|
1331
|
+
const i = JSON.parse(n(e.setting.name));
|
|
1332
|
+
a.value = c + i[0].url;
|
|
1052
1333
|
}
|
|
1053
|
-
return e.setting.options.validateList.length &&
|
|
1334
|
+
return e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), (i, l) => e.isView ? (S(), N(p(A), {
|
|
1054
1335
|
key: 0,
|
|
1055
1336
|
modelValue: a.value,
|
|
1056
|
-
"onUpdate:modelValue":
|
|
1337
|
+
"onUpdate:modelValue": l[2] || (l[2] = (d) => a.value = d),
|
|
1057
1338
|
"margin-bottom": "0",
|
|
1058
1339
|
prop: e.setting.name,
|
|
1059
1340
|
label: i.setting.desc,
|
|
1060
1341
|
type: "custom",
|
|
1061
|
-
helpMessage:
|
|
1342
|
+
helpMessage: o.value,
|
|
1062
1343
|
required: r.value
|
|
1063
1344
|
}, {
|
|
1064
|
-
default:
|
|
1065
|
-
a.value ? (
|
|
1066
|
-
|
|
1345
|
+
default: E(() => [
|
|
1346
|
+
a.value ? (S(), se("div", qs, [
|
|
1347
|
+
q(p(Ue), {
|
|
1067
1348
|
modelValue: a.value,
|
|
1068
|
-
"onUpdate:modelValue":
|
|
1069
|
-
status:
|
|
1070
|
-
"onUpdate:status":
|
|
1349
|
+
"onUpdate:modelValue": l[0] || (l[0] = (d) => a.value = d),
|
|
1350
|
+
status: u.value,
|
|
1351
|
+
"onUpdate:status": l[1] || (l[1] = (d) => u.value = d),
|
|
1071
1352
|
required: r.value
|
|
1072
1353
|
}, null, 8, ["modelValue", "status", "required"])
|
|
1073
|
-
])) : (
|
|
1354
|
+
])) : (S(), se("div", Bs, "-"))
|
|
1074
1355
|
]),
|
|
1075
1356
|
_: 1
|
|
1076
|
-
}, 8, ["modelValue", "prop", "label", "helpMessage", "required"])) :
|
|
1357
|
+
}, 8, ["modelValue", "prop", "label", "helpMessage", "required"])) : de("", !0);
|
|
1077
1358
|
}
|
|
1078
|
-
}),
|
|
1359
|
+
}), Is = /* @__PURE__ */ qe(Es, [["__scopeId", "data-v-044dd90f"]]), it = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1079
1360
|
__proto__: null,
|
|
1080
|
-
default:
|
|
1081
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1361
|
+
default: Is
|
|
1362
|
+
}, Symbol.toStringTag, { value: "Module" })), Ks = {
|
|
1082
1363
|
name: "switch"
|
|
1083
|
-
},
|
|
1084
|
-
...
|
|
1364
|
+
}, ks = /* @__PURE__ */ F({
|
|
1365
|
+
...Ks,
|
|
1085
1366
|
props: {
|
|
1086
1367
|
setting: { default: () => ({
|
|
1087
1368
|
icon: "",
|
|
@@ -1096,41 +1377,41 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
1096
1377
|
store: {}
|
|
1097
1378
|
},
|
|
1098
1379
|
setup(s) {
|
|
1099
|
-
const e = s, { setData: t, getData:
|
|
1100
|
-
|
|
1101
|
-
|
|
1380
|
+
const e = s, { setData: t, getData: n, setFormRule: g } = e.store || {}, c = m(!1);
|
|
1381
|
+
H(e.setting.options.validateList).then((o) => {
|
|
1382
|
+
c.value = o;
|
|
1102
1383
|
});
|
|
1103
|
-
const r =
|
|
1104
|
-
e.setting.options.tip && (r.value =
|
|
1105
|
-
const
|
|
1384
|
+
const r = m();
|
|
1385
|
+
e.setting.options.tip && (r.value = Q(e.setting.options.tip));
|
|
1386
|
+
const u = m();
|
|
1106
1387
|
return setTimeout(() => {
|
|
1107
|
-
|
|
1108
|
-
}, 50), e.setting.options.validateList.length &&
|
|
1109
|
-
t(e.setting.name,
|
|
1110
|
-
}), (
|
|
1388
|
+
u.value = n(e.setting.name) || e.setting.options.formulasDiyJs || u.value, u.value || t(e.setting.name, null);
|
|
1389
|
+
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), x(u, (o) => {
|
|
1390
|
+
t(e.setting.name, o);
|
|
1391
|
+
}), (o, a) => (S(), N(p(A), {
|
|
1111
1392
|
col: e.span,
|
|
1112
|
-
marginRight:
|
|
1113
|
-
modelValue:
|
|
1114
|
-
"onUpdate:modelValue": a[0] || (a[0] = (i) =>
|
|
1115
|
-
label:
|
|
1393
|
+
marginRight: o.marginRight,
|
|
1394
|
+
modelValue: u.value,
|
|
1395
|
+
"onUpdate:modelValue": a[0] || (a[0] = (i) => u.value = i),
|
|
1396
|
+
label: o.setting.desc,
|
|
1116
1397
|
type: "switch",
|
|
1117
1398
|
prop: e.setting.name,
|
|
1118
|
-
activeValue:
|
|
1119
|
-
inactiveValue:
|
|
1120
|
-
activeText:
|
|
1121
|
-
inactiveText:
|
|
1399
|
+
activeValue: o.setting.options.activeValue,
|
|
1400
|
+
inactiveValue: o.setting.options.inactiveValue,
|
|
1401
|
+
activeText: o.setting.options.activeText,
|
|
1402
|
+
inactiveText: o.setting.options.inactiveText,
|
|
1122
1403
|
helpMessage: r.value,
|
|
1123
|
-
required:
|
|
1404
|
+
required: c.value,
|
|
1124
1405
|
isView: e.isView
|
|
1125
1406
|
}, null, 8, ["col", "marginRight", "modelValue", "label", "prop", "activeValue", "inactiveValue", "activeText", "inactiveText", "helpMessage", "required", "isView"]));
|
|
1126
1407
|
}
|
|
1127
|
-
}),
|
|
1408
|
+
}), lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1128
1409
|
__proto__: null,
|
|
1129
|
-
default:
|
|
1130
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1410
|
+
default: ks
|
|
1411
|
+
}, Symbol.toStringTag, { value: "Module" })), As = {
|
|
1131
1412
|
name: "text"
|
|
1132
|
-
},
|
|
1133
|
-
...
|
|
1413
|
+
}, Cs = /* @__PURE__ */ F({
|
|
1414
|
+
...As,
|
|
1134
1415
|
props: {
|
|
1135
1416
|
setting: { default: () => ({
|
|
1136
1417
|
icon: "",
|
|
@@ -1145,37 +1426,37 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
1145
1426
|
store: {}
|
|
1146
1427
|
},
|
|
1147
1428
|
setup(s) {
|
|
1148
|
-
const e = s, { setData: t, getData:
|
|
1149
|
-
e.setting.options.tip && (
|
|
1150
|
-
const r =
|
|
1151
|
-
return r.value = e.setting.options.textValue, r.value =
|
|
1152
|
-
t(e.setting.name,
|
|
1153
|
-
}), (
|
|
1429
|
+
const e = s, { setData: t, getData: n, setFormRule: g } = e.store || {}, c = m();
|
|
1430
|
+
e.setting.options.tip && (c.value = Q(e.setting.options.tip));
|
|
1431
|
+
const r = m();
|
|
1432
|
+
return r.value = e.setting.options.textValue, r.value = n(e.setting.name) || r.value, r.value || t(e.setting.name, null), x(r, (u) => {
|
|
1433
|
+
t(e.setting.name, u);
|
|
1434
|
+
}), (u, o) => (S(), N(p(A), {
|
|
1154
1435
|
col: e.span,
|
|
1155
|
-
marginRight:
|
|
1436
|
+
marginRight: u.marginRight,
|
|
1156
1437
|
modelValue: r.value,
|
|
1157
|
-
"onUpdate:modelValue":
|
|
1158
|
-
label:
|
|
1438
|
+
"onUpdate:modelValue": o[1] || (o[1] = (a) => r.value = a),
|
|
1439
|
+
label: u.setting.desc,
|
|
1159
1440
|
type: "custom",
|
|
1160
|
-
helpMessage:
|
|
1441
|
+
helpMessage: c.value
|
|
1161
1442
|
}, {
|
|
1162
|
-
default:
|
|
1163
|
-
|
|
1443
|
+
default: E(() => [
|
|
1444
|
+
q(p(Qe), {
|
|
1164
1445
|
type: "text",
|
|
1165
1446
|
modelValue: r.value,
|
|
1166
|
-
"onUpdate:modelValue":
|
|
1447
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => r.value = a)
|
|
1167
1448
|
}, null, 8, ["modelValue"])
|
|
1168
1449
|
]),
|
|
1169
1450
|
_: 1
|
|
1170
1451
|
}, 8, ["col", "marginRight", "modelValue", "label", "helpMessage"]));
|
|
1171
1452
|
}
|
|
1172
|
-
}),
|
|
1453
|
+
}), rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1173
1454
|
__proto__: null,
|
|
1174
|
-
default:
|
|
1175
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1455
|
+
default: Cs
|
|
1456
|
+
}, Symbol.toStringTag, { value: "Module" })), xs = {
|
|
1176
1457
|
name: "textarea"
|
|
1177
|
-
},
|
|
1178
|
-
...
|
|
1458
|
+
}, Us = /* @__PURE__ */ F({
|
|
1459
|
+
...xs,
|
|
1179
1460
|
props: {
|
|
1180
1461
|
setting: { default: () => ({
|
|
1181
1462
|
icon: "",
|
|
@@ -1190,28 +1471,28 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
1190
1471
|
store: {}
|
|
1191
1472
|
},
|
|
1192
1473
|
setup(s) {
|
|
1193
|
-
const e = s, { setData: t, getData:
|
|
1194
|
-
|
|
1195
|
-
|
|
1474
|
+
const e = s, { setData: t, getData: n, setFormRule: g } = e.store || {}, c = m(!1);
|
|
1475
|
+
H(e.setting.options.validateList).then((i) => {
|
|
1476
|
+
c.value = i;
|
|
1196
1477
|
});
|
|
1197
|
-
const r =
|
|
1198
|
-
e.setting.options.tip && (r.value =
|
|
1199
|
-
const
|
|
1478
|
+
const r = m();
|
|
1479
|
+
e.setting.options.tip && (r.value = Q(e.setting.options.tip));
|
|
1480
|
+
const u = m("");
|
|
1200
1481
|
setTimeout(() => {
|
|
1201
|
-
|
|
1482
|
+
u.value = n(e.setting.name) || e.setting.options.formulasDiyJs || u.value, u.value || t(e.setting.name, null);
|
|
1202
1483
|
}, 50);
|
|
1203
|
-
const
|
|
1204
|
-
return
|
|
1484
|
+
const o = m(), a = m();
|
|
1485
|
+
return o.value = e.setting.options.initialFrameWidth ? e.setting.options.initialFrameWidth + "px" : "", a.value = e.setting.options.initialFrameHeight ? e.setting.options.initialFrameHeight + "px" : "", e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), x(u, (i) => {
|
|
1205
1486
|
t(e.setting.name, i);
|
|
1206
|
-
}), (i,
|
|
1207
|
-
i.setting.options.isEditor ?
|
|
1487
|
+
}), (i, l) => (S(), se(Ve, null, [
|
|
1488
|
+
i.setting.options.isEditor ? de("", !0) : (S(), N(p(A), {
|
|
1208
1489
|
key: 0,
|
|
1209
1490
|
col: e.span,
|
|
1210
1491
|
marginRight: i.marginRight,
|
|
1211
1492
|
label: i.setting.desc,
|
|
1212
1493
|
type: "textarea",
|
|
1213
|
-
modelValue:
|
|
1214
|
-
"onUpdate:modelValue":
|
|
1494
|
+
modelValue: u.value,
|
|
1495
|
+
"onUpdate:modelValue": l[0] || (l[0] = (d) => u.value = d),
|
|
1215
1496
|
prop: e.setting.name,
|
|
1216
1497
|
placeholder: i.setting.options.placeholder,
|
|
1217
1498
|
disabled: i.setting.options.isInputEdit,
|
|
@@ -1222,41 +1503,41 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
1222
1503
|
},
|
|
1223
1504
|
"show-word-limit": "",
|
|
1224
1505
|
helpMessage: r.value,
|
|
1225
|
-
required:
|
|
1506
|
+
required: c.value
|
|
1226
1507
|
}, null, 8, ["col", "marginRight", "label", "modelValue", "prop", "placeholder", "disabled", "isView", "helpMessage", "required"])),
|
|
1227
|
-
i.setting.options.isEditor ? (
|
|
1508
|
+
i.setting.options.isEditor ? (S(), N(p(A), {
|
|
1228
1509
|
key: 1,
|
|
1229
|
-
modelValue:
|
|
1230
|
-
"onUpdate:modelValue":
|
|
1510
|
+
modelValue: u.value,
|
|
1511
|
+
"onUpdate:modelValue": l[2] || (l[2] = (d) => u.value = d),
|
|
1231
1512
|
prop: e.setting.name,
|
|
1232
|
-
contentWidth:
|
|
1513
|
+
contentWidth: o.value,
|
|
1233
1514
|
label: i.setting.desc,
|
|
1234
1515
|
type: "custom",
|
|
1235
1516
|
helpMessage: r.value,
|
|
1236
|
-
required:
|
|
1517
|
+
required: c.value,
|
|
1237
1518
|
readOnly: e.isView
|
|
1238
1519
|
}, {
|
|
1239
|
-
default:
|
|
1240
|
-
|
|
1520
|
+
default: E(() => [
|
|
1521
|
+
q(p(Qe), {
|
|
1241
1522
|
ref: "editor",
|
|
1242
|
-
width:
|
|
1523
|
+
width: o.value,
|
|
1243
1524
|
height: a.value,
|
|
1244
|
-
modelValue:
|
|
1245
|
-
"onUpdate:modelValue":
|
|
1525
|
+
modelValue: u.value,
|
|
1526
|
+
"onUpdate:modelValue": l[1] || (l[1] = (d) => u.value = d),
|
|
1246
1527
|
placeholder: i.setting.options.placeholder
|
|
1247
1528
|
}, null, 8, ["width", "height", "modelValue", "placeholder"])
|
|
1248
1529
|
]),
|
|
1249
1530
|
_: 1
|
|
1250
|
-
}, 8, ["modelValue", "prop", "contentWidth", "label", "helpMessage", "required", "readOnly"])) :
|
|
1531
|
+
}, 8, ["modelValue", "prop", "contentWidth", "label", "helpMessage", "required", "readOnly"])) : de("", !0)
|
|
1251
1532
|
], 64));
|
|
1252
1533
|
}
|
|
1253
|
-
}),
|
|
1534
|
+
}), ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1254
1535
|
__proto__: null,
|
|
1255
|
-
default:
|
|
1256
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1536
|
+
default: Us
|
|
1537
|
+
}, Symbol.toStringTag, { value: "Module" })), zs = {
|
|
1257
1538
|
name: "time"
|
|
1258
|
-
},
|
|
1259
|
-
...
|
|
1539
|
+
}, Qs = /* @__PURE__ */ F({
|
|
1540
|
+
...zs,
|
|
1260
1541
|
props: {
|
|
1261
1542
|
setting: { default: () => ({
|
|
1262
1543
|
icon: "",
|
|
@@ -1271,35 +1552,35 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
1271
1552
|
store: {}
|
|
1272
1553
|
},
|
|
1273
1554
|
setup(s) {
|
|
1274
|
-
const e = s, { setData: t, getData:
|
|
1275
|
-
|
|
1276
|
-
|
|
1555
|
+
const e = s, { setData: t, getData: n, setFormRule: g } = e.store || {}, c = m(!1);
|
|
1556
|
+
H(e.setting.options.validateList).then((o) => {
|
|
1557
|
+
c.value = o;
|
|
1277
1558
|
});
|
|
1278
|
-
const r =
|
|
1279
|
-
e.setting.options.tip && (r.value =
|
|
1280
|
-
const
|
|
1559
|
+
const r = m();
|
|
1560
|
+
e.setting.options.tip && (r.value = Q(e.setting.options.tip));
|
|
1561
|
+
const u = m();
|
|
1281
1562
|
return setTimeout(() => {
|
|
1282
|
-
const
|
|
1283
|
-
|
|
1284
|
-
}, 50), e.setting.options.validateList.length &&
|
|
1285
|
-
t(e.setting.name,
|
|
1286
|
-
}), (
|
|
1563
|
+
const o = je().format("YYYY-MM-DD ");
|
|
1564
|
+
n(e.setting.name) && (u.value = n(e.setting.name)), e.setting.options.formulasDiyJs && (u.value = je(o + e.setting.options.formulasDiyJs)), u.value || t(e.setting.name, null);
|
|
1565
|
+
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), x(u, (o) => {
|
|
1566
|
+
t(e.setting.name, o);
|
|
1567
|
+
}), (o, a) => (S(), N(p(A), {
|
|
1287
1568
|
col: e.span,
|
|
1288
|
-
marginRight:
|
|
1289
|
-
modelValue:
|
|
1290
|
-
"onUpdate:modelValue": a[0] || (a[0] = (i) =>
|
|
1569
|
+
marginRight: o.marginRight,
|
|
1570
|
+
modelValue: u.value,
|
|
1571
|
+
"onUpdate:modelValue": a[0] || (a[0] = (i) => u.value = i),
|
|
1291
1572
|
prop: e.setting.name,
|
|
1292
|
-
label:
|
|
1573
|
+
label: o.setting.desc,
|
|
1293
1574
|
type: "time",
|
|
1294
1575
|
helpMessage: r.value,
|
|
1295
1576
|
isView: e.isView,
|
|
1296
|
-
required:
|
|
1577
|
+
required: c.value
|
|
1297
1578
|
}, null, 8, ["col", "marginRight", "modelValue", "prop", "label", "helpMessage", "isView", "required"]));
|
|
1298
1579
|
}
|
|
1299
|
-
}),
|
|
1580
|
+
}), pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1300
1581
|
__proto__: null,
|
|
1301
|
-
default:
|
|
1302
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1582
|
+
default: Qs
|
|
1583
|
+
}, Symbol.toStringTag, { value: "Module" })), Js = F({
|
|
1303
1584
|
name: "accordion",
|
|
1304
1585
|
props: {
|
|
1305
1586
|
columns: {
|
|
@@ -1316,33 +1597,33 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
1316
1597
|
}
|
|
1317
1598
|
},
|
|
1318
1599
|
setup(s) {
|
|
1319
|
-
const e =
|
|
1320
|
-
const
|
|
1321
|
-
(
|
|
1600
|
+
const e = m([]), t = s.columns.map((n) => {
|
|
1601
|
+
const g = n.list.map(
|
|
1602
|
+
(c) => ae(Pe[c.ctrlType], { setting: c, isView: s.isView, store: s.store })
|
|
1322
1603
|
);
|
|
1323
|
-
return
|
|
1324
|
-
|
|
1604
|
+
return n.isOpen == !0 && e.value.push(n.idKey), ae(
|
|
1605
|
+
Et,
|
|
1325
1606
|
{
|
|
1326
|
-
header:
|
|
1327
|
-
key: `${
|
|
1607
|
+
header: n.span,
|
|
1608
|
+
key: `${n.idKey}`
|
|
1328
1609
|
},
|
|
1329
|
-
|
|
1610
|
+
ae("div", g)
|
|
1330
1611
|
);
|
|
1331
1612
|
});
|
|
1332
|
-
return () =>
|
|
1613
|
+
return () => ae(
|
|
1333
1614
|
"div",
|
|
1334
1615
|
{ class: "accordion-layout" },
|
|
1335
|
-
|
|
1336
|
-
|
|
1616
|
+
ae(
|
|
1617
|
+
Pt,
|
|
1337
1618
|
{ activeKey: e.value, collapsible: s.options.accordion ? "" : "disabled" },
|
|
1338
1619
|
t
|
|
1339
1620
|
)
|
|
1340
1621
|
);
|
|
1341
1622
|
}
|
|
1342
|
-
}),
|
|
1623
|
+
}), Ys = {
|
|
1343
1624
|
name: "accordion"
|
|
1344
|
-
},
|
|
1345
|
-
|
|
1625
|
+
}, Ws = /* @__PURE__ */ F({
|
|
1626
|
+
...Ys,
|
|
1346
1627
|
props: {
|
|
1347
1628
|
setting: { default: () => ({
|
|
1348
1629
|
name: "",
|
|
@@ -1370,7 +1651,7 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
1370
1651
|
store: {}
|
|
1371
1652
|
},
|
|
1372
1653
|
setup(s) {
|
|
1373
|
-
return (e, t) => (
|
|
1654
|
+
return (e, t) => (S(), N(p(Js), {
|
|
1374
1655
|
columns: e.setting.columns,
|
|
1375
1656
|
options: e.setting.options,
|
|
1376
1657
|
isView: e.isView,
|
|
@@ -1378,9 +1659,9 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
1378
1659
|
style: { "margin-bottom": "10px" }
|
|
1379
1660
|
}, null, 8, ["columns", "options", "isView", "store"]));
|
|
1380
1661
|
}
|
|
1381
|
-
}),
|
|
1662
|
+
}), Hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1382
1663
|
__proto__: null,
|
|
1383
|
-
default:
|
|
1664
|
+
default: Ws
|
|
1384
1665
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1385
1666
|
/**
|
|
1386
1667
|
* @vue/shared v3.4.35
|
|
@@ -1389,88 +1670,88 @@ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St =
|
|
|
1389
1670
|
**/
|
|
1390
1671
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
1391
1672
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
1392
|
-
const
|
|
1393
|
-
function
|
|
1394
|
-
for (var e = -1, t = s == null ? 0 : s.length,
|
|
1395
|
-
var
|
|
1396
|
-
|
|
1673
|
+
const Zs = Object.prototype.hasOwnProperty, Ie = (s, e) => Zs.call(s, e), Be = (s) => s !== null && typeof s == "object";
|
|
1674
|
+
function Gs(s) {
|
|
1675
|
+
for (var e = -1, t = s == null ? 0 : s.length, n = {}; ++e < t; ) {
|
|
1676
|
+
var g = s[e];
|
|
1677
|
+
n[g[0]] = g[1];
|
|
1397
1678
|
}
|
|
1398
|
-
return
|
|
1679
|
+
return n;
|
|
1399
1680
|
}
|
|
1400
|
-
const
|
|
1401
|
-
if (!
|
|
1681
|
+
const Ke = (s) => typeof s == "number", ct = "__epPropKey", ye = (s) => s, Xs = (s) => Be(s) && !!s[ct], en = (s, e) => {
|
|
1682
|
+
if (!Be(s) || Xs(s))
|
|
1402
1683
|
return s;
|
|
1403
|
-
const { values: t, required:
|
|
1404
|
-
type:
|
|
1405
|
-
required: !!
|
|
1684
|
+
const { values: t, required: n, default: g, type: c, validator: r } = s, o = {
|
|
1685
|
+
type: c,
|
|
1686
|
+
required: !!n,
|
|
1406
1687
|
validator: t || r ? (a) => {
|
|
1407
|
-
let i = !1,
|
|
1408
|
-
if (t && (
|
|
1409
|
-
const
|
|
1410
|
-
|
|
1688
|
+
let i = !1, l = [];
|
|
1689
|
+
if (t && (l = Array.from(t), Ie(s, "default") && l.push(g), i || (i = l.includes(a))), r && (i || (i = r(a))), !i && l.length > 0) {
|
|
1690
|
+
const d = [...new Set(l)].map((f) => JSON.stringify(f)).join(", ");
|
|
1691
|
+
Vt(`Invalid prop: validation failed${e ? ` for prop "${e}"` : ""}. Expected one of [${d}], got value ${JSON.stringify(a)}.`);
|
|
1411
1692
|
}
|
|
1412
1693
|
return i;
|
|
1413
1694
|
} : void 0,
|
|
1414
|
-
[
|
|
1695
|
+
[ct]: !0
|
|
1415
1696
|
};
|
|
1416
|
-
return
|
|
1417
|
-
},
|
|
1697
|
+
return Ie(s, "default") && (o.default = g), o;
|
|
1698
|
+
}, dt = (s) => Gs(Object.entries(s).map(([e, t]) => [
|
|
1418
1699
|
e,
|
|
1419
|
-
|
|
1420
|
-
])),
|
|
1421
|
-
for (const
|
|
1422
|
-
t.component(
|
|
1423
|
-
}, s),
|
|
1424
|
-
let
|
|
1425
|
-
return t && (
|
|
1426
|
-
},
|
|
1427
|
-
const e =
|
|
1428
|
-
return
|
|
1429
|
-
},
|
|
1430
|
-
const t =
|
|
1700
|
+
en(t, e)
|
|
1701
|
+
])), gt = (s, e) => (s.install = (t) => {
|
|
1702
|
+
for (const n of [s, ...Object.values({})])
|
|
1703
|
+
t.component(n.name, n);
|
|
1704
|
+
}, s), be = (s) => s, Se = "el", tn = "is-", pe = (s, e, t, n, g) => {
|
|
1705
|
+
let c = `${s}-${e}`;
|
|
1706
|
+
return t && (c += `-${t}`), n && (c += `__${n}`), g && (c += `--${g}`), c;
|
|
1707
|
+
}, sn = Symbol("namespaceContextKey"), nn = (s) => {
|
|
1708
|
+
const e = $t() ? ke(sn, m(Se)) : m(Se);
|
|
1709
|
+
return ce(() => p(e) || Se);
|
|
1710
|
+
}, mt = (s, e) => {
|
|
1711
|
+
const t = nn();
|
|
1431
1712
|
return {
|
|
1432
1713
|
namespace: t,
|
|
1433
|
-
b: (
|
|
1434
|
-
e: (
|
|
1435
|
-
m: (
|
|
1436
|
-
be: (
|
|
1437
|
-
em: (
|
|
1438
|
-
bm: (
|
|
1439
|
-
bem: (
|
|
1440
|
-
is: (
|
|
1441
|
-
const
|
|
1442
|
-
return
|
|
1714
|
+
b: (_ = "") => pe(t.value, s, _, "", ""),
|
|
1715
|
+
e: (_) => _ ? pe(t.value, s, "", _, "") : "",
|
|
1716
|
+
m: (_) => _ ? pe(t.value, s, "", "", _) : "",
|
|
1717
|
+
be: (_, L) => _ && L ? pe(t.value, s, _, L, "") : "",
|
|
1718
|
+
em: (_, L) => _ && L ? pe(t.value, s, "", _, L) : "",
|
|
1719
|
+
bm: (_, L) => _ && L ? pe(t.value, s, _, "", L) : "",
|
|
1720
|
+
bem: (_, L, V) => _ && L && V ? pe(t.value, s, _, L, V) : "",
|
|
1721
|
+
is: (_, ...L) => {
|
|
1722
|
+
const V = L.length >= 1 ? L[0] : !0;
|
|
1723
|
+
return _ && V ? `${tn}${_}` : "";
|
|
1443
1724
|
},
|
|
1444
|
-
cssVar: (
|
|
1445
|
-
const
|
|
1446
|
-
for (const
|
|
1447
|
-
|
|
1448
|
-
return
|
|
1725
|
+
cssVar: (_) => {
|
|
1726
|
+
const L = {};
|
|
1727
|
+
for (const V in _)
|
|
1728
|
+
_[V] && (L[`--${t.value}-${V}`] = _[V]);
|
|
1729
|
+
return L;
|
|
1449
1730
|
},
|
|
1450
|
-
cssVarName: (
|
|
1451
|
-
cssVarBlock: (
|
|
1452
|
-
const
|
|
1453
|
-
for (const
|
|
1454
|
-
|
|
1455
|
-
return
|
|
1731
|
+
cssVarName: (_) => `--${t.value}-${_}`,
|
|
1732
|
+
cssVarBlock: (_) => {
|
|
1733
|
+
const L = {};
|
|
1734
|
+
for (const V in _)
|
|
1735
|
+
_[V] && (L[`--${t.value}-${s}-${V}`] = _[V]);
|
|
1736
|
+
return L;
|
|
1456
1737
|
},
|
|
1457
|
-
cssVarBlockName: (
|
|
1738
|
+
cssVarBlockName: (_) => `--${t.value}-${s}-${_}`
|
|
1458
1739
|
};
|
|
1459
1740
|
};
|
|
1460
|
-
var
|
|
1741
|
+
var ft = (s, e) => {
|
|
1461
1742
|
const t = s.__vccOpts || s;
|
|
1462
|
-
for (const [
|
|
1463
|
-
t[
|
|
1743
|
+
for (const [n, g] of e)
|
|
1744
|
+
t[n] = g;
|
|
1464
1745
|
return t;
|
|
1465
1746
|
};
|
|
1466
|
-
const
|
|
1747
|
+
const vt = Symbol("rowContextKey"), on = [
|
|
1467
1748
|
"start",
|
|
1468
1749
|
"center",
|
|
1469
1750
|
"end",
|
|
1470
1751
|
"space-around",
|
|
1471
1752
|
"space-between",
|
|
1472
1753
|
"space-evenly"
|
|
1473
|
-
],
|
|
1754
|
+
], an = ["top", "middle", "bottom"], ln = dt({
|
|
1474
1755
|
tag: {
|
|
1475
1756
|
type: String,
|
|
1476
1757
|
default: "div"
|
|
@@ -1481,44 +1762,44 @@ const Ye = Symbol("rowContextKey"), qs = [
|
|
|
1481
1762
|
},
|
|
1482
1763
|
justify: {
|
|
1483
1764
|
type: String,
|
|
1484
|
-
values:
|
|
1765
|
+
values: on,
|
|
1485
1766
|
default: "start"
|
|
1486
1767
|
},
|
|
1487
1768
|
align: {
|
|
1488
1769
|
type: String,
|
|
1489
|
-
values:
|
|
1770
|
+
values: an
|
|
1490
1771
|
}
|
|
1491
|
-
}),
|
|
1772
|
+
}), rn = F({
|
|
1492
1773
|
name: "ElRow"
|
|
1493
|
-
}),
|
|
1494
|
-
...
|
|
1495
|
-
props:
|
|
1774
|
+
}), un = /* @__PURE__ */ F({
|
|
1775
|
+
...rn,
|
|
1776
|
+
props: ln,
|
|
1496
1777
|
setup(s) {
|
|
1497
|
-
const e = s, t =
|
|
1498
|
-
|
|
1499
|
-
gutter:
|
|
1778
|
+
const e = s, t = mt("row"), n = ce(() => e.gutter);
|
|
1779
|
+
Dt(vt, {
|
|
1780
|
+
gutter: n
|
|
1500
1781
|
});
|
|
1501
|
-
const
|
|
1782
|
+
const g = ce(() => {
|
|
1502
1783
|
const r = {};
|
|
1503
1784
|
return e.gutter && (r.marginRight = r.marginLeft = `-${e.gutter / 2}px`), r;
|
|
1504
|
-
}),
|
|
1785
|
+
}), c = ce(() => [
|
|
1505
1786
|
t.b(),
|
|
1506
1787
|
t.is(`justify-${e.justify}`, e.justify !== "start"),
|
|
1507
1788
|
t.is(`align-${e.align}`, !!e.align)
|
|
1508
1789
|
]);
|
|
1509
|
-
return (r,
|
|
1510
|
-
class:
|
|
1511
|
-
style:
|
|
1790
|
+
return (r, u) => (S(), N(Ne(r.tag), {
|
|
1791
|
+
class: Ae(p(c)),
|
|
1792
|
+
style: Ce(p(g))
|
|
1512
1793
|
}, {
|
|
1513
|
-
default:
|
|
1514
|
-
|
|
1794
|
+
default: E(() => [
|
|
1795
|
+
xe(r.$slots, "default")
|
|
1515
1796
|
]),
|
|
1516
1797
|
_: 3
|
|
1517
1798
|
}, 8, ["class", "style"]));
|
|
1518
1799
|
}
|
|
1519
1800
|
});
|
|
1520
|
-
var
|
|
1521
|
-
const
|
|
1801
|
+
var pn = /* @__PURE__ */ ft(un, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);
|
|
1802
|
+
const cn = gt(pn), dn = dt({
|
|
1522
1803
|
tag: {
|
|
1523
1804
|
type: String,
|
|
1524
1805
|
default: "div"
|
|
@@ -1540,58 +1821,58 @@ const ks = xe(Is), As = Ue({
|
|
|
1540
1821
|
default: 0
|
|
1541
1822
|
},
|
|
1542
1823
|
xs: {
|
|
1543
|
-
type:
|
|
1544
|
-
default: () =>
|
|
1824
|
+
type: ye([Number, Object]),
|
|
1825
|
+
default: () => be({})
|
|
1545
1826
|
},
|
|
1546
1827
|
sm: {
|
|
1547
|
-
type:
|
|
1548
|
-
default: () =>
|
|
1828
|
+
type: ye([Number, Object]),
|
|
1829
|
+
default: () => be({})
|
|
1549
1830
|
},
|
|
1550
1831
|
md: {
|
|
1551
|
-
type:
|
|
1552
|
-
default: () =>
|
|
1832
|
+
type: ye([Number, Object]),
|
|
1833
|
+
default: () => be({})
|
|
1553
1834
|
},
|
|
1554
1835
|
lg: {
|
|
1555
|
-
type:
|
|
1556
|
-
default: () =>
|
|
1836
|
+
type: ye([Number, Object]),
|
|
1837
|
+
default: () => be({})
|
|
1557
1838
|
},
|
|
1558
1839
|
xl: {
|
|
1559
|
-
type:
|
|
1560
|
-
default: () =>
|
|
1840
|
+
type: ye([Number, Object]),
|
|
1841
|
+
default: () => be({})
|
|
1561
1842
|
}
|
|
1562
|
-
}),
|
|
1843
|
+
}), gn = F({
|
|
1563
1844
|
name: "ElCol"
|
|
1564
|
-
}),
|
|
1565
|
-
...
|
|
1566
|
-
props:
|
|
1845
|
+
}), mn = /* @__PURE__ */ F({
|
|
1846
|
+
...gn,
|
|
1847
|
+
props: dn,
|
|
1567
1848
|
setup(s) {
|
|
1568
|
-
const e = s, { gutter: t } =
|
|
1849
|
+
const e = s, { gutter: t } = ke(vt, { gutter: ce(() => 0) }), n = mt("col"), g = ce(() => {
|
|
1569
1850
|
const r = {};
|
|
1570
1851
|
return t.value && (r.paddingLeft = r.paddingRight = `${t.value / 2}px`), r;
|
|
1571
|
-
}),
|
|
1852
|
+
}), c = ce(() => {
|
|
1572
1853
|
const r = [];
|
|
1573
1854
|
return ["span", "offset", "pull", "push"].forEach((a) => {
|
|
1574
1855
|
const i = e[a];
|
|
1575
|
-
|
|
1856
|
+
Ke(i) && (a === "span" ? r.push(n.b(`${e[a]}`)) : i > 0 && r.push(n.b(`${a}-${e[a]}`)));
|
|
1576
1857
|
}), ["xs", "sm", "md", "lg", "xl"].forEach((a) => {
|
|
1577
|
-
|
|
1578
|
-
r.push(i !== "span" ?
|
|
1858
|
+
Ke(e[a]) ? r.push(n.b(`${a}-${e[a]}`)) : Be(e[a]) && Object.entries(e[a]).forEach(([i, l]) => {
|
|
1859
|
+
r.push(i !== "span" ? n.b(`${a}-${i}-${l}`) : n.b(`${a}-${l}`));
|
|
1579
1860
|
});
|
|
1580
|
-
}), t.value && r.push(
|
|
1861
|
+
}), t.value && r.push(n.is("guttered")), [n.b(), r];
|
|
1581
1862
|
});
|
|
1582
|
-
return (r,
|
|
1583
|
-
class:
|
|
1584
|
-
style:
|
|
1863
|
+
return (r, u) => (S(), N(Ne(r.tag), {
|
|
1864
|
+
class: Ae(p(c)),
|
|
1865
|
+
style: Ce(p(g))
|
|
1585
1866
|
}, {
|
|
1586
|
-
default:
|
|
1587
|
-
|
|
1867
|
+
default: E(() => [
|
|
1868
|
+
xe(r.$slots, "default")
|
|
1588
1869
|
]),
|
|
1589
1870
|
_: 3
|
|
1590
1871
|
}, 8, ["class", "style"]));
|
|
1591
1872
|
}
|
|
1592
1873
|
});
|
|
1593
|
-
var
|
|
1594
|
-
const
|
|
1874
|
+
var fn = /* @__PURE__ */ ft(mn, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);
|
|
1875
|
+
const vn = gt(fn), hn = F({
|
|
1595
1876
|
name: "grid",
|
|
1596
1877
|
props: {
|
|
1597
1878
|
columns: {
|
|
@@ -1608,22 +1889,22 @@ const Us = xe(zs), xs = D({
|
|
|
1608
1889
|
},
|
|
1609
1890
|
setup(s) {
|
|
1610
1891
|
let e = 0;
|
|
1611
|
-
const t = s.columns.map((
|
|
1612
|
-
const
|
|
1613
|
-
e +=
|
|
1892
|
+
const t = s.columns.map((n) => {
|
|
1893
|
+
const g = n.list.map((c) => {
|
|
1894
|
+
e += n.span;
|
|
1614
1895
|
const r = e == 24 ? "0px" : "80px";
|
|
1615
|
-
return e == 24 && (e = 0),
|
|
1616
|
-
setting:
|
|
1896
|
+
return e == 24 && (e = 0), ae(Vn[c.ctrlType], {
|
|
1897
|
+
setting: c,
|
|
1617
1898
|
isView: s.isView,
|
|
1618
1899
|
store: s.store,
|
|
1619
1900
|
class: "grid-item-layout",
|
|
1620
1901
|
marginRight: r
|
|
1621
1902
|
});
|
|
1622
1903
|
});
|
|
1623
|
-
return
|
|
1904
|
+
return ae(vn, { span: n.span }, g);
|
|
1624
1905
|
});
|
|
1625
|
-
return () =>
|
|
1626
|
-
|
|
1906
|
+
return () => ae(
|
|
1907
|
+
cn,
|
|
1627
1908
|
{
|
|
1628
1909
|
class: "grid-layout"
|
|
1629
1910
|
// gutter: 0,
|
|
@@ -1631,10 +1912,10 @@ const Us = xe(zs), xs = D({
|
|
|
1631
1912
|
t
|
|
1632
1913
|
);
|
|
1633
1914
|
}
|
|
1634
|
-
}),
|
|
1915
|
+
}), yn = {
|
|
1635
1916
|
name: "grid"
|
|
1636
|
-
},
|
|
1637
|
-
...
|
|
1917
|
+
}, bn = /* @__PURE__ */ F({
|
|
1918
|
+
...yn,
|
|
1638
1919
|
props: {
|
|
1639
1920
|
setting: { default: () => ({
|
|
1640
1921
|
name: "",
|
|
@@ -1660,124 +1941,124 @@ const Us = xe(zs), xs = D({
|
|
|
1660
1941
|
},
|
|
1661
1942
|
setup(s) {
|
|
1662
1943
|
const e = s;
|
|
1663
|
-
return (t,
|
|
1944
|
+
return (t, n) => (S(), N(p(hn), {
|
|
1664
1945
|
columns: t.setting.columns,
|
|
1665
1946
|
isView: e.isView,
|
|
1666
1947
|
store: t.store
|
|
1667
1948
|
}, null, 8, ["columns", "isView", "store"]));
|
|
1668
1949
|
}
|
|
1669
|
-
}),
|
|
1950
|
+
}), _n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1670
1951
|
__proto__: null,
|
|
1671
|
-
default:
|
|
1672
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1673
|
-
Object.keys(
|
|
1674
|
-
Object.keys(
|
|
1675
|
-
Object.keys(
|
|
1676
|
-
Object.keys(
|
|
1677
|
-
const
|
|
1678
|
-
(!e || e.toString() === "") && parseInt(e) !== 0 ? t(new Error(`${
|
|
1679
|
-
},
|
|
1680
|
-
e !== "" && e.length > parseInt(
|
|
1681
|
-
},
|
|
1682
|
-
e !== "" && e.length < parseInt(
|
|
1683
|
-
},
|
|
1952
|
+
default: bn
|
|
1953
|
+
}, Symbol.toStringTag, { value: "Module" })), Oe = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": Ye, "./base/autocomplete.vue": We, "./base/checkbox.vue": He, "./base/date.vue": Ge, "./base/dropdown.vue": Xe, "./base/imageViewer.vue": et, "./base/input.vue": tt, "./base/number.vue": st, "./base/radio.vue": nt, "./base/select.vue": ot, "./base/selector.vue": at, "./base/soundRecording.vue": it, "./base/switch.vue": lt, "./base/text.vue": rt, "./base/textarea.vue": ut, "./base/time.vue": pt, "./layout/accordion/accordion.vue": Hs, "./layout/grid/gridLayout.vue": _n }), Re = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": Ye, "./base/autocomplete.vue": We, "./base/checkbox.vue": He, "./base/date.vue": Ge, "./base/dropdown.vue": Xe, "./base/imageViewer.vue": et, "./base/input.vue": tt, "./base/number.vue": st, "./base/radio.vue": nt, "./base/select.vue": ot, "./base/selector.vue": at, "./base/soundRecording.vue": it, "./base/switch.vue": lt, "./base/text.vue": rt, "./base/textarea.vue": ut, "./base/time.vue": pt }), Le = /* @__PURE__ */ Object.assign({}), Te = /* @__PURE__ */ Object.assign({}), Pe = {}, ht = {}, yt = {}, wn = {};
|
|
1954
|
+
Object.keys(Re).map((s) => ht[Re[s].default.name] = Re[s].default);
|
|
1955
|
+
Object.keys(Le).map((s) => yt[Le[s].default.name] = Le[s].default);
|
|
1956
|
+
Object.keys(Te).map((s) => wn[Te[s].default.name] = Te[s].default);
|
|
1957
|
+
Object.keys(Oe).map((s) => Pe[Oe[s].default.name] = Oe[s].default);
|
|
1958
|
+
const Vn = { ...ht, ...yt }, $n = (s, e, t, n) => {
|
|
1959
|
+
(!e || e.toString() === "") && parseInt(e) !== 0 ? t(new Error(`${n.name}`)) : t();
|
|
1960
|
+
}, Dn = (s, e, t, n) => {
|
|
1961
|
+
e !== "" && e.length > parseInt(n.value) ? t(new Error(`${n.name}不能超过${n.value}`)) : t();
|
|
1962
|
+
}, Mn = (s, e, t, n) => {
|
|
1963
|
+
e !== "" && e.length < parseInt(n.value) ? t(new Error(`${n.name}不能少于${n.value}`)) : t();
|
|
1964
|
+
}, Sn = (s, e, t, n) => {
|
|
1684
1965
|
if (e !== "" && !/^1[3456789]\d{9}$/.test(e))
|
|
1685
1966
|
return t(new Error("手机号码格式不正确,请重新输入")), !1;
|
|
1686
1967
|
t();
|
|
1687
|
-
},
|
|
1968
|
+
}, On = (s, e, t) => {
|
|
1688
1969
|
if (e !== "" && !/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(e))
|
|
1689
1970
|
return t(new Error("电子邮箱格式不正确,请重新输入")), !1;
|
|
1690
1971
|
t();
|
|
1691
|
-
},
|
|
1972
|
+
}, Rn = (s, e, t) => {
|
|
1692
1973
|
if (e !== "" && !/^-?\d+$/.test(e))
|
|
1693
1974
|
return t(new Error("请输入整数")), !1;
|
|
1694
1975
|
t();
|
|
1695
|
-
},
|
|
1696
|
-
if (e !== "" && e !=
|
|
1976
|
+
}, Ln = (s, e, t, n) => {
|
|
1977
|
+
if (e !== "" && e != n.value)
|
|
1697
1978
|
return t(new Error("请输入相同的值")), !1;
|
|
1698
1979
|
t();
|
|
1699
|
-
},
|
|
1700
|
-
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e < parseFloat(
|
|
1701
|
-
},
|
|
1702
|
-
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e > parseFloat(
|
|
1703
|
-
},
|
|
1704
|
-
const
|
|
1705
|
-
e === "" ? t() :
|
|
1706
|
-
},
|
|
1707
|
-
e === "" || parseFloat(e) === parseFloat(
|
|
1708
|
-
},
|
|
1709
|
-
e === "" ? t() : /^-?\d+$/.test(e) ? Math.abs(e).toString().length === parseInt(
|
|
1710
|
-
},
|
|
1980
|
+
}, Tn = (s, e, t, n) => {
|
|
1981
|
+
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e < parseFloat(n.value) ? t(new Error(`${n.name}不能小于${n.value}`)) : t() : t(new Error("请输入数字"));
|
|
1982
|
+
}, jn = (s, e, t, n) => {
|
|
1983
|
+
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e > parseFloat(n.value) ? t(new Error(`${n.name}不能大于${n.value}`)) : t() : t(new Error("请输入数字"));
|
|
1984
|
+
}, Nn = (s, e, t, n) => {
|
|
1985
|
+
const g = /^[+-]?(\d*\.\d+([eE]?[+-]?\d+)?|\d+[eE][+-]?\d+)$/, c = /^-?\d+$/;
|
|
1986
|
+
e === "" ? t() : g.test(e) || c.test(e) ? e >= parseFloat(n.start) && e <= parseFloat(n.end) ? t() : t(new Error(`只能输入指定数字范围${n.start}-${n.end}`)) : t(new Error("请输入数字"));
|
|
1987
|
+
}, Fn = (s, e, t, n) => {
|
|
1988
|
+
e === "" || parseFloat(e) === parseFloat(n.value) ? t() : t(new Error(`只能输入指定的值${n.value}`));
|
|
1989
|
+
}, qn = (s, e, t, n) => {
|
|
1990
|
+
e === "" ? t() : /^-?\d+$/.test(e) ? Math.abs(e).toString().length === parseInt(n.value) ? t() : t(new Error(`只能输入${n.value}位数数字`)) : t(new Error("请输入整数"));
|
|
1991
|
+
}, Bn = (s, e, t) => {
|
|
1711
1992
|
if (e !== "" && !/^[a-zA-Z]{1,}$/.test(e))
|
|
1712
1993
|
return t(new Error("只能输入字母")), !1;
|
|
1713
1994
|
t();
|
|
1714
|
-
},
|
|
1995
|
+
}, Pn = (s, e, t) => {
|
|
1715
1996
|
if (e !== "" && !/^[a-zA-Z ]{1,}$/.test(e))
|
|
1716
1997
|
return t(new Error("只能输入字母空格")), !1;
|
|
1717
1998
|
t();
|
|
1718
|
-
},
|
|
1999
|
+
}, En = (s, e, t) => {
|
|
1719
2000
|
if (e !== "" && !/^[0-9a-zA-Z_-]{1,}$/.test(e))
|
|
1720
2001
|
return t(new Error("只能输入字母数字横线下划线")), !1;
|
|
1721
2002
|
t();
|
|
1722
|
-
},
|
|
2003
|
+
}, In = (s, e, t) => {
|
|
1723
2004
|
if (e !== "" && !/^[0-9a-zA-Z]{1,}$/.test(e))
|
|
1724
2005
|
return t(new Error("只能输入字母数字")), !1;
|
|
1725
2006
|
t();
|
|
1726
|
-
},
|
|
1727
|
-
const
|
|
1728
|
-
if (e !== "" && !
|
|
2007
|
+
}, Kn = (s, e, t, n) => {
|
|
2008
|
+
const g = new RegExp(n.value);
|
|
2009
|
+
if (e !== "" && !g.test(e))
|
|
1729
2010
|
return t(new Error("校验失败")), !1;
|
|
1730
2011
|
t();
|
|
1731
|
-
},
|
|
1732
|
-
required:
|
|
1733
|
-
min:
|
|
1734
|
-
max:
|
|
1735
|
-
email:
|
|
1736
|
-
min_value:
|
|
1737
|
-
max_value:
|
|
1738
|
-
confirmed:
|
|
1739
|
-
numeric:
|
|
1740
|
-
between:
|
|
1741
|
-
is:
|
|
1742
|
-
digits:
|
|
1743
|
-
mobile:
|
|
1744
|
-
alpha:
|
|
1745
|
-
alpha_spaces:
|
|
1746
|
-
alpha_dash:
|
|
1747
|
-
alpha_num:
|
|
1748
|
-
regex:
|
|
1749
|
-
},
|
|
1750
|
-
const s =
|
|
1751
|
-
return { data: s, formData: e, formRule:
|
|
1752
|
-
e.value.forEach((
|
|
1753
|
-
|
|
2012
|
+
}, kn = {
|
|
2013
|
+
required: $n,
|
|
2014
|
+
min: Mn,
|
|
2015
|
+
max: Dn,
|
|
2016
|
+
email: On,
|
|
2017
|
+
min_value: Tn,
|
|
2018
|
+
max_value: jn,
|
|
2019
|
+
confirmed: Ln,
|
|
2020
|
+
numeric: Rn,
|
|
2021
|
+
between: Nn,
|
|
2022
|
+
is: Fn,
|
|
2023
|
+
digits: qn,
|
|
2024
|
+
mobile: Sn,
|
|
2025
|
+
alpha: Bn,
|
|
2026
|
+
alpha_spaces: Pn,
|
|
2027
|
+
alpha_dash: En,
|
|
2028
|
+
alpha_num: In,
|
|
2029
|
+
regex: Kn
|
|
2030
|
+
}, An = () => {
|
|
2031
|
+
const s = m({}), e = m([]), t = m([]), n = m(""), g = m({});
|
|
2032
|
+
return { data: s, formData: e, formRule: g, setData: (d, f) => {
|
|
2033
|
+
e.value.forEach((O) => {
|
|
2034
|
+
O.formKey === n.value && (O.data[d] = f);
|
|
1754
2035
|
});
|
|
1755
|
-
}, setDetailData: (
|
|
1756
|
-
s.value =
|
|
1757
|
-
f.formKey ===
|
|
2036
|
+
}, setDetailData: (d) => {
|
|
2037
|
+
s.value = d, e.value.forEach((f) => {
|
|
2038
|
+
f.formKey === n.value && (f.data = d);
|
|
1758
2039
|
});
|
|
1759
|
-
}, getData: (
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
}) : (t.value.push(
|
|
1763
|
-
formKey:
|
|
2040
|
+
}, getData: (d) => s.value[d], setFormData: (d, f, O) => {
|
|
2041
|
+
n.value = d, t.value.includes(d) ? e.value.forEach((_) => {
|
|
2042
|
+
_.formKey === d && (s.value = _.data);
|
|
2043
|
+
}) : (t.value.push(d), e.value.push({
|
|
2044
|
+
formKey: d,
|
|
1764
2045
|
boKey: f,
|
|
1765
|
-
reportId:
|
|
2046
|
+
reportId: O || null,
|
|
1766
2047
|
data: {}
|
|
1767
2048
|
}));
|
|
1768
|
-
}, getFormData: () => e.value, setFormRule: (
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
validator: (
|
|
2049
|
+
}, getFormData: () => e.value, setFormRule: (d, f) => {
|
|
2050
|
+
g.value[d] = [], f.forEach((O) => {
|
|
2051
|
+
g.value[d].push({
|
|
2052
|
+
validator: (_, L, V) => kn[O.key](_, L, V, O)
|
|
1772
2053
|
});
|
|
1773
2054
|
});
|
|
1774
2055
|
}, clearData: () => {
|
|
1775
|
-
s.value = {}, e.value = [], t.value = [],
|
|
2056
|
+
s.value = {}, e.value = [], t.value = [], g.value = {};
|
|
1776
2057
|
} };
|
|
1777
|
-
},
|
|
2058
|
+
}, Cn = { class: "custom-page" }, xn = {
|
|
1778
2059
|
key: 0,
|
|
1779
2060
|
class: "btn-box"
|
|
1780
|
-
},
|
|
2061
|
+
}, Un = { class: "content-box" }, zn = /* @__PURE__ */ F({
|
|
1781
2062
|
__name: "App",
|
|
1782
2063
|
props: {
|
|
1783
2064
|
formConfigurationId: {},
|
|
@@ -1787,59 +2068,59 @@ const Hs = { ...Ze, ...He }, Gs = (s, e, t, o) => {
|
|
|
1787
2068
|
},
|
|
1788
2069
|
emits: ["handleClick"],
|
|
1789
2070
|
setup(s, { expose: e, emit: t }) {
|
|
1790
|
-
const
|
|
2071
|
+
const n = An(), { formRule: g, clearData: c } = n, r = s, u = t, { formJsonList: o, isShowPage: a, btnList: i, formRef: l, getForm: d, getBtnSet: f, handleClick: O, validateFormData: _ } = os(
|
|
1791
2072
|
r,
|
|
1792
|
-
|
|
1793
|
-
|
|
2073
|
+
u,
|
|
2074
|
+
n
|
|
1794
2075
|
);
|
|
1795
|
-
return
|
|
2076
|
+
return Mt(async () => {
|
|
1796
2077
|
f();
|
|
1797
2078
|
}), e({
|
|
1798
|
-
validateFormData:
|
|
1799
|
-
clearData:
|
|
1800
|
-
}), (
|
|
1801
|
-
|
|
1802
|
-
(
|
|
1803
|
-
key:
|
|
2079
|
+
validateFormData: _,
|
|
2080
|
+
clearData: c
|
|
2081
|
+
}), (L, V) => (S(), se("div", Cn, [
|
|
2082
|
+
p(i).length > 0 ? (S(), se("div", xn, [
|
|
2083
|
+
(S(!0), se(Ve, null, Ee(p(i), (R) => (S(), N(p(Lt), {
|
|
2084
|
+
key: R.id,
|
|
1804
2085
|
style: { "margin-right": "20px" },
|
|
1805
2086
|
"btn-type": "primary",
|
|
1806
|
-
onClick: (
|
|
2087
|
+
onClick: (T) => p(O)(R)
|
|
1807
2088
|
}, {
|
|
1808
|
-
default:
|
|
1809
|
-
|
|
2089
|
+
default: E(() => [
|
|
2090
|
+
me(fe(R.name), 1)
|
|
1810
2091
|
]),
|
|
1811
2092
|
_: 2
|
|
1812
2093
|
}, 1032, ["onClick"]))), 128))
|
|
1813
|
-
])) :
|
|
1814
|
-
|
|
1815
|
-
|
|
2094
|
+
])) : de("", !0),
|
|
2095
|
+
St((S(), se("div", Un, [
|
|
2096
|
+
p(a) ? (S(), N(p(Rt), {
|
|
1816
2097
|
key: 0,
|
|
1817
2098
|
ref_key: "formRef",
|
|
1818
|
-
ref:
|
|
2099
|
+
ref: l,
|
|
1819
2100
|
cols: 24,
|
|
1820
2101
|
"margin-right": "80px",
|
|
1821
|
-
rules:
|
|
1822
|
-
form:
|
|
2102
|
+
rules: p(g),
|
|
2103
|
+
form: p(n).data,
|
|
1823
2104
|
class: "form-preview-page",
|
|
1824
2105
|
alignType: "horizontal"
|
|
1825
2106
|
}, {
|
|
1826
|
-
default:
|
|
1827
|
-
(
|
|
1828
|
-
key:
|
|
1829
|
-
setting:
|
|
2107
|
+
default: E(() => [
|
|
2108
|
+
(S(!0), se(Ve, null, Ee(p(o), (R) => (S(), N(Ne(p(Pe)[R.ctrlType]), {
|
|
2109
|
+
key: R.name,
|
|
2110
|
+
setting: R,
|
|
1830
2111
|
isView: r.isView,
|
|
1831
|
-
store:
|
|
2112
|
+
store: p(n)
|
|
1832
2113
|
}, null, 8, ["setting", "isView", "store"]))), 128))
|
|
1833
2114
|
]),
|
|
1834
2115
|
_: 1
|
|
1835
|
-
}, 8, ["rules", "form"])) :
|
|
2116
|
+
}, 8, ["rules", "form"])) : de("", !0)
|
|
1836
2117
|
])), [
|
|
1837
|
-
[
|
|
2118
|
+
[p(Tt)]
|
|
1838
2119
|
])
|
|
1839
2120
|
]));
|
|
1840
2121
|
}
|
|
1841
|
-
}),
|
|
2122
|
+
}), Qn = /* @__PURE__ */ qe(zn, [["__scopeId", "data-v-993c1451"]]), go = bt(Qn);
|
|
1842
2123
|
export {
|
|
1843
|
-
|
|
1844
|
-
|
|
2124
|
+
go as DasProcessForm,
|
|
2125
|
+
go as default
|
|
1845
2126
|
};
|