@das-fed/ui 7.0.7-hot.70 → 7.0.7-hot.71
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/i18n/index.d.ts +4 -0
- package/packages/business-components/device-panel/index.js +2288 -2291
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/process-form/index.js +381 -371
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/business-components/process-log/i18n/index.d.ts +80 -0
- package/packages/business-components/process-log/index.js +828 -333
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-log/src/apis.d.ts +1 -0
- package/packages/business-components/process-log/src/widgets/base/evaluationContent.vue.d.ts +7 -0
- package/packages/business-components/process-log/src/widgets/base/evaluationDialog.vue.d.ts +42 -0
- package/packages/business-components/process-log/src/widgets/base/meetingEvaluationInfo.vue.d.ts +24 -0
- package/packages/business-components/process-log/src/widgets/base/remarkInfo.vue.d.ts +1 -0
- package/packages/business-components/process-log/style.css +1 -1
- package/packages/business-components/process-log/style.css.gz +0 -0
- package/packages/business-components/process-log/type.d.ts +11 -0
- package/packages/business-components/video-dialog/index.d.ts +5 -5
- package/packages/business-components/video-dialog/src/index.vue.d.ts +1 -1
- package/packages/components/tree/i18n/index.d.ts +5 -0
- package/packages/components/tree/index.js +1767 -1574
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree/src/App.vue.d.ts +40 -16
- package/packages/components/tree/src/hooks/use-lazy-tree.d.ts +11 -2
- package/packages/components/tree/src/type.d.ts +18 -1
- package/packages/components/tree/style.css +1 -1
- package/packages/components/tree/style.css.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +2 -2
- package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +2 -2
- package/packages/components/tree-v2/index.js +1982 -1933
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/tree-v2/style.css +1 -1
- package/packages/components/tree-v2/style.css.gz +0 -0
- package/packages/components/virtual-tree/style.css +1 -1
- package/packages/components/virtual-tree/style.css.gz +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/process-form/style.css';
|
|
2
2
|
import { withInstall as Nt } from "@das-fed/utils/with-install/index";
|
|
3
|
-
import { ref as p, nextTick as ve, defineComponent as Y, watch as M, createBlock as
|
|
3
|
+
import { ref as p, nextTick as ve, defineComponent as Y, watch as M, createBlock as E, createCommentVNode as B, openBlock as V, unref as a, withCtx as F, createVNode as z, createElementVNode as Xe, createElementBlock as H, Fragment as le, createTextVNode as re, toDisplayString as ue, computed as Vt, isRef as Re, createSlots as Lt, h as Se, renderList as ke, resolveDynamicComponent as Le, onMounted as zt, withDirectives as Mt, normalizeStyle as It } from "vue";
|
|
4
4
|
import { DasFormRef as Tt, DasForm as We } from "@das-fed/ui/packages/components/form/index";
|
|
5
5
|
import { DasButton as Pt } from "@das-fed/ui/packages/components/button/index";
|
|
6
6
|
import { vOverlay as Rt } from "@das-fed/ui/packages/components/overlay/index";
|
|
@@ -11,76 +11,76 @@ import { DasAutocomplete as Ft } from "@das-fed/ui/packages/components/autocompl
|
|
|
11
11
|
import Me from "dayjs";
|
|
12
12
|
import { DasImageViewer as et } from "@das-fed/ui/packages/components/image-viewer/index";
|
|
13
13
|
import { DasInput as jt } from "@das-fed/ui/packages/components/input/index";
|
|
14
|
-
import { DasTooltip as
|
|
15
|
-
import { i18n as
|
|
14
|
+
import { DasTooltip as Ee } from "@das-fed/ui/packages/components/tooltip/index";
|
|
15
|
+
import { i18n as O, t as S, setI18nRule as Kt } from "@das-fed/web/packages/i18n/index";
|
|
16
16
|
import { DasTableColumn as K } from "@das-fed/ui/packages/components/table/index";
|
|
17
|
-
import { DasSearchForm as
|
|
18
|
-
import { DasModelTableDialog as
|
|
17
|
+
import { DasSearchForm as At } from "@das-fed/ui/packages/components/search-form/index";
|
|
18
|
+
import { DasModelTableDialog as qt } from "@das-fed/ui/packages/business-components/model-table-dialog";
|
|
19
19
|
import { getProjectInfo as tt } from "@das-fed/utils/common-info";
|
|
20
|
-
import { getConfig as
|
|
20
|
+
import { getConfig as Et } from "@das-fed/utils/config";
|
|
21
21
|
import { DasRichEditor as at } from "@das-fed/ui/packages/components/rich-editor/index";
|
|
22
22
|
import { DasCollaspe as nt } from "@das-fed/ui/packages/components/collaspe/index";
|
|
23
23
|
import { DasCollaspePanel as st } from "@das-fed/ui/packages/components/collapse-panel/index";
|
|
24
|
-
const ae = "v1",
|
|
24
|
+
const ae = "v1", Ot = G(`/workflow/form/form/${ae}`), Bt = G(`/workflow/form/formDef/${ae}`);
|
|
25
25
|
G(`/workflow/api/user/${ae}`);
|
|
26
|
-
const ot = G(`/workflow/api/extend/${ae}`), Qt = G(`/workflow/flow/def/${ae}`), Ut = G(`/workflow/form/customQuery/${ae}`), me = G(`/api/enterpriseright/permission/${ae}`),
|
|
26
|
+
const ot = G(`/workflow/api/extend/${ae}`), Qt = G(`/workflow/flow/def/${ae}`), Ut = G(`/workflow/form/customQuery/${ae}`), me = G(`/api/enterpriseright/permission/${ae}`), Be = G(`/api/space-manage/space-tree/${ae}`), xt = G(`/workflow/form/dataTemplate/${ae}`), Qe = G(`/api/supply/supplier/${ae}`), Yt = G(`/api/warehouse/vms/${ae}/asset-receive`), Jt = G(`/api/fms/report/${ae}`), Ht = G(`/api/space-manage/device-archives/${ae}`);
|
|
27
27
|
G(`/api/device-relation/project/${ae}`);
|
|
28
|
-
const Wt = xt.get("/getBpmDataTemplateInfoByFlowKey"), Zt =
|
|
28
|
+
const Wt = xt.get("/getBpmDataTemplateInfoByFlowKey"), Zt = Ot.get("/formDesign"), Gt = Bt.get("/get"), Xt = ot.get("/report-config");
|
|
29
29
|
ot.get("/application-report");
|
|
30
|
-
const ea = Qt.get("/getBindRelationByDefKey"), ta = Ut.get("/getByAlias"), aa = me.get("/organization/authTree"), na = me.post("/user/list"), sa = me.post("/data/user-query"), oa = me.get("/role/list"), la = me.post("/data/role-ids"), ia = me.get("/organization/organizationpage"), ra = me.get("/station/list"), ua = me.get("/position/list"), $e = me.post("/organization/detailbyids"), lt =
|
|
30
|
+
const ea = Qt.get("/getBindRelationByDefKey"), ta = Ut.get("/getByAlias"), aa = me.get("/organization/authTree"), na = me.post("/user/list"), sa = me.post("/data/user-query"), oa = me.get("/role/list"), la = me.post("/data/role-ids"), ia = me.get("/organization/organizationpage"), ra = me.get("/station/list"), ua = me.get("/position/list"), $e = me.post("/organization/detailbyids"), lt = Be.get("/controller/area-children"), pa = Be.get("/controller/fuzzy-tree-all"), Oe = Be.get("/controller/space"), da = Qe.post("/supplier/list/page", (n) => {
|
|
31
31
|
var e, t;
|
|
32
32
|
return n.data.pageBean = {
|
|
33
33
|
page: ((e = n == null ? void 0 : n.data) == null ? void 0 : e.pageIndex) || 1,
|
|
34
34
|
pageSize: ((t = n == null ? void 0 : n.data) == null ? void 0 : t.pageSize) || 20
|
|
35
35
|
}, n;
|
|
36
36
|
}), ca = Qe.get("/supplier"), ga = Qe.post("/classification/list/all"), ma = Yt.get("/receive-code"), it = Ht.post("/warehouse/account/device"), va = it, fa = Jt.post("/common/device-type/tree"), Fe = p(""), ha = (n, e, t) => {
|
|
37
|
-
const { setDetailData:
|
|
38
|
-
const [U,
|
|
37
|
+
const { setDetailData: l, getFormData: d, setFormData: i, formRule: g, showData: k, disabledData: s, encryptionData: o } = t, v = p([]), r = p([]), f = p([]), c = p(!1), C = Tt(), y = p([]), D = (I) => Object.keys(I).length === 0, m = async (I) => {
|
|
38
|
+
const [U, A] = await Zt({ formId: I }).run();
|
|
39
39
|
if (U) return;
|
|
40
|
-
const ee = JSON.parse(
|
|
40
|
+
const ee = JSON.parse(A.bos);
|
|
41
41
|
Fe.value = ee[0].alias, r.value.length && r.value.forEach((x) => {
|
|
42
|
-
x.formKey ===
|
|
42
|
+
x.formKey === A.formKey && i(A.formKey, Fe.value, x.id);
|
|
43
43
|
});
|
|
44
|
-
const [ie, pe] = await Gt({ formDefId:
|
|
44
|
+
const [ie, pe] = await Gt({ formDefId: A.defId }).run();
|
|
45
45
|
await h(), f.value = JSON.parse(pe.value.expand).list, f.value.forEach((x) => {
|
|
46
46
|
x.columns && x.columns[0].isOpen && y.value.push(x.key);
|
|
47
|
-
}), s.value = { ...s.value, ...n.disabledData }, r.value.length ||
|
|
48
|
-
k.value = { ...k.value, ...n.showData }, D(n.data) && (c.value = !0), D(n.data) || (
|
|
47
|
+
}), s.value = { ...s.value, ...n.disabledData }, r.value.length || i(A.formKey, Fe.value), setTimeout(() => {
|
|
48
|
+
k.value = { ...k.value, ...n.showData }, D(n.data) && (c.value = !0), D(n.data) || (l(n.data), n.flowKey && (v.value = n.data.button_list ? JSON.parse(n.data.button_list) : []), c.value = !0);
|
|
49
49
|
}, 50);
|
|
50
50
|
}, L = async () => {
|
|
51
51
|
var I;
|
|
52
52
|
if (n.formConfigurationId) {
|
|
53
|
-
const [U,
|
|
53
|
+
const [U, A] = await Xt({ id: n.formConfigurationId }).run();
|
|
54
54
|
if (U) return;
|
|
55
|
-
r.value =
|
|
55
|
+
r.value = A.reports, v.value = (I = A.reports[0]) == null ? void 0 : I.buttons.filter((ee) => !(n.isView && ee.event !== "LINK")), m(A.reports[0].formId);
|
|
56
56
|
}
|
|
57
57
|
if (n.flowKey) {
|
|
58
|
-
const [U,
|
|
58
|
+
const [U, A] = await ea({ flowKey: n.flowKey }).run();
|
|
59
59
|
if (U) return;
|
|
60
|
-
m(
|
|
60
|
+
m(A.pcForm.pcFormId);
|
|
61
61
|
}
|
|
62
62
|
}, h = async () => {
|
|
63
|
-
var
|
|
63
|
+
var A, ee, ie, pe;
|
|
64
64
|
if (!n.flowKey) return;
|
|
65
65
|
const [I, U] = await Wt().run({
|
|
66
66
|
flowKey: n.flowKey,
|
|
67
67
|
needDisplayFileds: !1
|
|
68
68
|
});
|
|
69
|
-
|
|
69
|
+
o.value = ((pe = (ie = (ee = (A = U == null ? void 0 : U.value) == null ? void 0 : A.boDef) == null ? void 0 : ee.boEnt) == null ? void 0 : ie.attributeList) == null ? void 0 : pe.filter((x) => x.encryption == "phone")) || [];
|
|
70
70
|
}, u = p({}), P = (I, U) => {
|
|
71
|
-
const { key:
|
|
72
|
-
u.value[
|
|
71
|
+
const { key: A } = U;
|
|
72
|
+
u.value[A] || (u.value[A] = I);
|
|
73
73
|
}, j = async () => (f.value.forEach((I) => {
|
|
74
74
|
I.columns && y.value.push(I.key);
|
|
75
75
|
}), await ve(), new Promise((I, U) => {
|
|
76
|
-
let
|
|
76
|
+
let A = !0;
|
|
77
77
|
for (const ee in u.value)
|
|
78
78
|
u.value[ee].validate((ie) => {
|
|
79
|
-
ie == !1 && (
|
|
79
|
+
ie == !1 && (A = !1);
|
|
80
80
|
});
|
|
81
81
|
setTimeout(() => {
|
|
82
82
|
I({
|
|
83
|
-
result:
|
|
83
|
+
result: A,
|
|
84
84
|
data: d()
|
|
85
85
|
});
|
|
86
86
|
}, 50);
|
|
@@ -95,8 +95,8 @@ const ea = Qt.get("/getBindRelationByDefKey"), ta = Ut.get("/getByAlias"), aa =
|
|
|
95
95
|
getBtnSet: L,
|
|
96
96
|
handleClick: async (I) => {
|
|
97
97
|
let { result: U } = await j();
|
|
98
|
-
U && (e("handleClick", I, d()), I.event === "LINK" && r.value.forEach((
|
|
99
|
-
I.eventTarget ===
|
|
98
|
+
U && (e("handleClick", I, d()), I.event === "LINK" && r.value.forEach((A) => {
|
|
99
|
+
I.eventTarget === A.formKey && (v.value = A.buttons.filter((ee) => !(n.isView && ee.event !== "LINK")), c.value = !1, g.value = {}, m(A.formId));
|
|
100
100
|
}));
|
|
101
101
|
},
|
|
102
102
|
validateFormData: j,
|
|
@@ -106,8 +106,8 @@ const ea = Qt.get("/getBindRelationByDefKey"), ta = Ut.get("/getByAlias"), aa =
|
|
|
106
106
|
let ya = (n = 21) => {
|
|
107
107
|
let e = "", t = crypto.getRandomValues(new Uint8Array(n));
|
|
108
108
|
for (; n--; ) {
|
|
109
|
-
let
|
|
110
|
-
|
|
109
|
+
let l = t[n] & 63;
|
|
110
|
+
l < 36 ? e += l.toString(36) : l < 62 ? e += (l - 26).toString(36).toUpperCase() : l < 63 ? e += "_" : e += "-";
|
|
111
111
|
}
|
|
112
112
|
return e;
|
|
113
113
|
};
|
|
@@ -115,14 +115,19 @@ const X = (n) => {
|
|
|
115
115
|
var e = new RegExp("<.+?>", "g"), t = n.replace(e, "").replace(/ /g, "");
|
|
116
116
|
return t;
|
|
117
117
|
}, we = async (n, e, t = {}) => {
|
|
118
|
-
const [
|
|
119
|
-
if (!
|
|
120
|
-
typeof e == "string"
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
118
|
+
const [l, d] = await ta({ alias: n }).run();
|
|
119
|
+
if (!l && d.url) {
|
|
120
|
+
if (typeof e == "string")
|
|
121
|
+
try {
|
|
122
|
+
e = JSON.parse(e);
|
|
123
|
+
} catch {
|
|
124
|
+
e = [];
|
|
125
|
+
}
|
|
126
|
+
const i = p({});
|
|
127
|
+
Array.isArray(e) && e.forEach((o) => {
|
|
128
|
+
o.defaultType == 2 && (i.value[o.field] = o.defaultValue);
|
|
129
|
+
}), i.value = { ...i.value, ...t };
|
|
130
|
+
const g = d.requestType === "POST" ? G(d.url).post("") : G(d.url).get(""), [k, s] = await g({}, { params: i.value }).run();
|
|
126
131
|
return k ? void 0 : s;
|
|
127
132
|
}
|
|
128
133
|
}, ne = async (n) => {
|
|
@@ -158,18 +163,18 @@ const X = (n) => {
|
|
|
158
163
|
store: {}
|
|
159
164
|
},
|
|
160
165
|
setup(n) {
|
|
161
|
-
const e = n, { showData: t, disabledData:
|
|
166
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: g, deleteRule: k } = e.store || {}, s = p([]), o = p(!0);
|
|
162
167
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
163
168
|
() => t.value,
|
|
164
169
|
() => {
|
|
165
|
-
|
|
170
|
+
o.value = t.value[e.setting.name], o.value || (s.value = [], k(e.setting.name)), o.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
166
171
|
},
|
|
167
172
|
{ deep: !0, immediate: !0 }
|
|
168
173
|
);
|
|
169
174
|
const v = p();
|
|
170
175
|
return e.setting.options.tip && (v.value = X(e.setting.options.tip)), s.value || d(e.setting.name, null), M(s, (r) => {
|
|
171
176
|
d(e.setting.name, JSON.stringify(r));
|
|
172
|
-
}), (r, f) =>
|
|
177
|
+
}), (r, f) => o.value ? (V(), E(a(J), {
|
|
173
178
|
key: 0,
|
|
174
179
|
col: e.span,
|
|
175
180
|
label: r.setting.desc,
|
|
@@ -185,7 +190,7 @@ const X = (n) => {
|
|
|
185
190
|
]),
|
|
186
191
|
_: 1
|
|
187
192
|
/* STABLE */
|
|
188
|
-
}, 8, ["col", "label", "helpMessage"])) :
|
|
193
|
+
}, 8, ["col", "label", "helpMessage"])) : B("v-if", !0);
|
|
189
194
|
}
|
|
190
195
|
}), rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
191
196
|
__proto__: null,
|
|
@@ -208,15 +213,15 @@ const X = (n) => {
|
|
|
208
213
|
store: {}
|
|
209
214
|
},
|
|
210
215
|
setup(n) {
|
|
211
|
-
const e = n, { showData: t, disabledData:
|
|
216
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: g, deleteRule: k } = e.store || {}, s = p(""), o = p(!0);
|
|
212
217
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
213
218
|
() => t.value,
|
|
214
219
|
() => {
|
|
215
|
-
|
|
220
|
+
o.value = t.value[e.setting.name], o.value || (s.value = "", k(e.setting.name)), o.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
216
221
|
},
|
|
217
222
|
{ deep: !0, immediate: !0 }
|
|
218
223
|
);
|
|
219
|
-
const v =
|
|
224
|
+
const v = l.value[e.setting.name] || !1, r = p(!1);
|
|
220
225
|
ne(e.setting.options.validateList).then((L) => {
|
|
221
226
|
r.value = L;
|
|
222
227
|
});
|
|
@@ -225,9 +230,9 @@ const X = (n) => {
|
|
|
225
230
|
D.value = Ie(L);
|
|
226
231
|
}) : D.value = Ie(e.setting.options.options);
|
|
227
232
|
const m = p();
|
|
228
|
-
return e.setting.options.tip && (m.value = X(e.setting.options.tip)), s.value =
|
|
233
|
+
return e.setting.options.tip && (m.value = X(e.setting.options.tip)), s.value = i(e.setting.name) || s.value, s.value || d(e.setting.name, null), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(s, (L) => {
|
|
229
234
|
d(e.setting.name, L.toString());
|
|
230
|
-
}), (L, h) =>
|
|
235
|
+
}), (L, h) => o.value ? (V(), E(a(J), {
|
|
231
236
|
key: 0,
|
|
232
237
|
col: e.span,
|
|
233
238
|
prop: e.setting.name,
|
|
@@ -255,7 +260,7 @@ const X = (n) => {
|
|
|
255
260
|
]),
|
|
256
261
|
_: 1
|
|
257
262
|
/* STABLE */
|
|
258
|
-
}, 8, ["col", "prop", "modelValue", "label", "helpMessage", "required", "disabled"])) :
|
|
263
|
+
}, 8, ["col", "prop", "modelValue", "label", "helpMessage", "required", "disabled"])) : B("v-if", !0);
|
|
259
264
|
}
|
|
260
265
|
}), ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
261
266
|
__proto__: null,
|
|
@@ -278,15 +283,15 @@ const X = (n) => {
|
|
|
278
283
|
store: {}
|
|
279
284
|
},
|
|
280
285
|
setup(n) {
|
|
281
|
-
const e = n, { showData: t, disabledData:
|
|
286
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: g, deleteRule: k } = e.store || {}, s = p([]), o = p(!0);
|
|
282
287
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
283
288
|
() => t.value,
|
|
284
289
|
() => {
|
|
285
|
-
|
|
290
|
+
o.value = t.value[e.setting.name], o.value || (s.value = [], k(e.setting.name)), o.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
286
291
|
},
|
|
287
292
|
{ deep: !0, immediate: !0 }
|
|
288
293
|
);
|
|
289
|
-
const v =
|
|
294
|
+
const v = l.value[e.setting.name] || !1, r = p(!1);
|
|
290
295
|
ne(e.setting.options.validateList).then((D) => {
|
|
291
296
|
r.value = D;
|
|
292
297
|
});
|
|
@@ -296,10 +301,10 @@ const X = (n) => {
|
|
|
296
301
|
}) : C.value = e.setting.options.options;
|
|
297
302
|
const y = p();
|
|
298
303
|
return e.setting.options.tip && (y.value = X(e.setting.options.tip)()), setTimeout(() => {
|
|
299
|
-
|
|
304
|
+
i(e.setting.name) && (s.value = i(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (s.value = e.setting.options.formulasDiyJs.split(",")), s.value.length || s.value || d(e.setting.name, null);
|
|
300
305
|
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(s, (D) => {
|
|
301
306
|
d(e.setting.name, D.toString());
|
|
302
|
-
}), (D, m) =>
|
|
307
|
+
}), (D, m) => o.value ? (V(), E(a(J), {
|
|
303
308
|
key: 0,
|
|
304
309
|
col: e.span,
|
|
305
310
|
modelValue: s.value,
|
|
@@ -315,7 +320,7 @@ const X = (n) => {
|
|
|
315
320
|
optionsLabelKey: a(c),
|
|
316
321
|
helpMessage: y.value,
|
|
317
322
|
required: r.value
|
|
318
|
-
}, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "disabled", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"])) :
|
|
323
|
+
}, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "disabled", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"])) : B("v-if", !0);
|
|
319
324
|
}
|
|
320
325
|
}), pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
321
326
|
__proto__: null,
|
|
@@ -338,15 +343,15 @@ const X = (n) => {
|
|
|
338
343
|
store: {}
|
|
339
344
|
},
|
|
340
345
|
setup(n) {
|
|
341
|
-
const e = n, { showData: t, disabledData:
|
|
346
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: g, deleteRule: k } = e.store || {}, s = p(), o = p(!0);
|
|
342
347
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
343
348
|
() => t.value,
|
|
344
349
|
() => {
|
|
345
|
-
|
|
350
|
+
o.value = t.value[e.setting.name], o.value || (s.value = null, k(e.setting.name)), o.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
346
351
|
},
|
|
347
352
|
{ deep: !0, immediate: !0 }
|
|
348
353
|
);
|
|
349
|
-
const v =
|
|
354
|
+
const v = l.value[e.setting.name] || !1, r = p(!1);
|
|
350
355
|
ne(e.setting.options.validateList).then((y) => {
|
|
351
356
|
r.value = y;
|
|
352
357
|
});
|
|
@@ -354,14 +359,14 @@ const X = (n) => {
|
|
|
354
359
|
e.setting.options.inputFormat === "YYYY/MM/DD" && (c.value = "date"), e.setting.options.inputFormat === "MM/DD" && (c.value = "date"), e.setting.options.inputFormat === "YYYY/MM" && (c.value = "month"), e.setting.options.inputFormat === "YYYY" && (c.value = "year");
|
|
355
360
|
const C = p();
|
|
356
361
|
if (e.setting.options.tip && (C.value = X(e.setting.options.tip)), setTimeout(() => {
|
|
357
|
-
s.value =
|
|
362
|
+
s.value = i(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
|
|
358
363
|
}, 50), e.setting.options.showCurrentDate) {
|
|
359
364
|
let y = /* @__PURE__ */ new Date();
|
|
360
365
|
y.setDate(y.getDate() + e.setting.options.day), s.value = Me(y.getTime()).format(f), d(e.setting.name, s.value);
|
|
361
366
|
}
|
|
362
367
|
return e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(s, (y) => {
|
|
363
368
|
d(e.setting.name, y);
|
|
364
|
-
}), (y, D) =>
|
|
369
|
+
}), (y, D) => o.value ? (V(), E(a(J), {
|
|
365
370
|
key: 0,
|
|
366
371
|
col: e.span,
|
|
367
372
|
modelValue: s.value,
|
|
@@ -377,7 +382,7 @@ const X = (n) => {
|
|
|
377
382
|
placeholder: y.setting.options.placeholder,
|
|
378
383
|
helpMessage: C.value,
|
|
379
384
|
required: r.value
|
|
380
|
-
}, null, 8, ["col", "modelValue", "label", "prop", "type", "format", "picker", "isView", "disabled", "placeholder", "helpMessage", "required"])) :
|
|
385
|
+
}, null, 8, ["col", "modelValue", "label", "prop", "type", "format", "picker", "isView", "disabled", "placeholder", "helpMessage", "required"])) : B("v-if", !0);
|
|
381
386
|
}
|
|
382
387
|
}), dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
383
388
|
__proto__: null,
|
|
@@ -400,17 +405,17 @@ const X = (n) => {
|
|
|
400
405
|
store: {}
|
|
401
406
|
},
|
|
402
407
|
setup(n) {
|
|
403
|
-
const e = n, { showData: t, disabledData:
|
|
408
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: g, deleteRule: k, setLinkData: s } = e.store || {}, o = p(""), v = p(!0);
|
|
404
409
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
405
410
|
() => t.value,
|
|
406
411
|
() => {
|
|
407
|
-
v.value = t.value[e.setting.name], v.value || (
|
|
412
|
+
v.value = t.value[e.setting.name], v.value || (o.value = e.setting.options.multiple ? [] : "", k(e.setting.name)), v.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
408
413
|
},
|
|
409
414
|
{ deep: !0, immediate: !0 }
|
|
410
415
|
);
|
|
411
416
|
const r = () => {
|
|
412
|
-
e.setting.options.customQuery && e.setting.options.customQuery.custQueryJson.length && s(e.setting.options.customQuery.custQueryJson,
|
|
413
|
-
}, f =
|
|
417
|
+
e.setting.options.customQuery && e.setting.options.customQuery.custQueryJson.length && s(e.setting.options.customQuery.custQueryJson, o.value);
|
|
418
|
+
}, f = l.value[e.setting.name] || !1, c = p(!1);
|
|
414
419
|
ne(e.setting.options.validateList).then((u) => {
|
|
415
420
|
c.value = u;
|
|
416
421
|
});
|
|
@@ -419,13 +424,13 @@ const X = (n) => {
|
|
|
419
424
|
L.value = u;
|
|
420
425
|
});
|
|
421
426
|
const h = p();
|
|
422
|
-
return e.setting.options.tip && (h.value = X(e.setting.options.tip)),
|
|
427
|
+
return e.setting.options.tip && (h.value = X(e.setting.options.tip)), o.value = e.setting.options.multiple ? [] : "", e.setting.options.multiple && i(e.setting.name) ? o.value = i(e.setting.name).split(",") : o.value = i(e.setting.name) || o.value, o.value || d(e.setting.name, null), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(o, (u) => {
|
|
423
428
|
d(e.setting.name, u.toString());
|
|
424
|
-
}), (u, P) => v.value ? (V(),
|
|
429
|
+
}), (u, P) => v.value ? (V(), E(a(J), {
|
|
425
430
|
key: 0,
|
|
426
431
|
col: e.span,
|
|
427
|
-
modelValue:
|
|
428
|
-
"onUpdate:modelValue": P[0] || (P[0] = (j) =>
|
|
432
|
+
modelValue: o.value,
|
|
433
|
+
"onUpdate:modelValue": P[0] || (P[0] = (j) => o.value = j),
|
|
429
434
|
keyword: C.value,
|
|
430
435
|
"onUpdate:keyword": P[1] || (P[1] = (j) => C.value = j),
|
|
431
436
|
label: u.setting.desc,
|
|
@@ -444,7 +449,7 @@ const X = (n) => {
|
|
|
444
449
|
"check-strictly": !u.setting.options.cascade,
|
|
445
450
|
required: c.value,
|
|
446
451
|
onChange: r
|
|
447
|
-
}, null, 8, ["col", "modelValue", "keyword", "label", "node-key", "placeholder", "mode", "prop", "filter", "options", "isView", "helpMessage", "disabled", "props", "check-strictly", "required"])) :
|
|
452
|
+
}, null, 8, ["col", "modelValue", "keyword", "label", "node-key", "placeholder", "mode", "prop", "filter", "options", "isView", "helpMessage", "disabled", "props", "check-strictly", "required"])) : B("v-if", !0);
|
|
448
453
|
}
|
|
449
454
|
}), ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
450
455
|
__proto__: null,
|
|
@@ -467,22 +472,22 @@ const X = (n) => {
|
|
|
467
472
|
store: {}
|
|
468
473
|
},
|
|
469
474
|
setup(n) {
|
|
470
|
-
const e = n, { showData: t, disabledData:
|
|
475
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: g, deleteRule: k } = e.store || {}, s = p(), o = p(!0);
|
|
471
476
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
472
477
|
() => t.value,
|
|
473
478
|
() => {
|
|
474
|
-
|
|
479
|
+
o.value = t.value[e.setting.name], o.value || (s.value = e.setting.options.file.limit > 1 ? [] : "", k(e.setting.name)), o.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
475
480
|
},
|
|
476
481
|
{ deep: !0, immediate: !0 }
|
|
477
482
|
);
|
|
478
|
-
const v =
|
|
483
|
+
const v = l.value[e.setting.name] || !1, r = p(!1);
|
|
479
484
|
ne(e.setting.options.validateList).then((y) => {
|
|
480
485
|
r.value = y;
|
|
481
486
|
});
|
|
482
487
|
const f = p("normal");
|
|
483
488
|
e.isView && (f.value = "info");
|
|
484
489
|
const c = p();
|
|
485
|
-
e.setting.options.tip && (c.value = X(e.setting.options.tip)), s.value = e.setting.options.file.limit > 1 ? [] : "", e.setting.options.file.limit > 1 &&
|
|
490
|
+
e.setting.options.tip && (c.value = X(e.setting.options.tip)), s.value = e.setting.options.file.limit > 1 ? [] : "", e.setting.options.file.limit > 1 && i(e.setting.name) ? s.value = i(e.setting.name).split(",") : s.value = i(e.setting.name) || s.value, s.value || d(e.setting.name, null);
|
|
486
491
|
const C = (y) => {
|
|
487
492
|
setTimeout(() => {
|
|
488
493
|
d(e.setting.name, s.value.toString());
|
|
@@ -496,7 +501,7 @@ const X = (n) => {
|
|
|
496
501
|
setTimeout(() => {
|
|
497
502
|
d(e.setting.name, D.join(","));
|
|
498
503
|
}, 100);
|
|
499
|
-
}), (y, D) =>
|
|
504
|
+
}), (y, D) => o.value ? (V(), E(a(J), {
|
|
500
505
|
key: 0,
|
|
501
506
|
modelValue: s.value,
|
|
502
507
|
"onUpdate:modelValue": D[2] || (D[2] = (m) => s.value = m),
|
|
@@ -534,23 +539,23 @@ const X = (n) => {
|
|
|
534
539
|
]),
|
|
535
540
|
_: 1
|
|
536
541
|
/* STABLE */
|
|
537
|
-
}, 8, ["modelValue", "prop", "label", "helpMessage", "required", "col"])) :
|
|
542
|
+
}, 8, ["modelValue", "prop", "label", "helpMessage", "required", "col"])) : B("v-if", !0);
|
|
538
543
|
}
|
|
539
544
|
}), Te = (n, e) => {
|
|
540
545
|
const t = n.__vccOpts || n;
|
|
541
|
-
for (const [
|
|
542
|
-
t[
|
|
546
|
+
for (const [l, d] of e)
|
|
547
|
+
t[l] = d;
|
|
543
548
|
return t;
|
|
544
549
|
}, Ta = /* @__PURE__ */ Te(Ia, [["__scopeId", "data-v-745a2e98"]]), gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
545
550
|
__proto__: null,
|
|
546
551
|
default: Ta
|
|
547
552
|
}, Symbol.toStringTag, { value: "Module" })), Pa = (n) => {
|
|
548
|
-
const t = "****",
|
|
553
|
+
const t = "****", l = String(n), d = l.slice(0, 15), i = l.slice(15);
|
|
549
554
|
return ((s) => {
|
|
550
|
-
const
|
|
551
|
-
if (
|
|
555
|
+
const o = s.length;
|
|
556
|
+
if (o < 6) return s;
|
|
552
557
|
let v = 0;
|
|
553
|
-
switch (
|
|
558
|
+
switch (o) {
|
|
554
559
|
case 6:
|
|
555
560
|
case 7:
|
|
556
561
|
v = 1;
|
|
@@ -578,7 +583,7 @@ const X = (n) => {
|
|
|
578
583
|
}
|
|
579
584
|
const r = v + t.length;
|
|
580
585
|
return s.slice(0, v) + t + s.slice(r);
|
|
581
|
-
})(d) +
|
|
586
|
+
})(d) + i;
|
|
582
587
|
}, Ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
583
588
|
__proto__: null,
|
|
584
589
|
default: Pa
|
|
@@ -589,8 +594,8 @@ for (const n in Ze) {
|
|
|
589
594
|
ze[t] = e.default;
|
|
590
595
|
}
|
|
591
596
|
const Fa = (n, e) => {
|
|
592
|
-
var
|
|
593
|
-
return e ? ((
|
|
597
|
+
var l;
|
|
598
|
+
return e ? ((l = ze[n]) == null ? void 0 : l.call(ze, e)) ?? e : "-";
|
|
594
599
|
}, ja = {
|
|
595
600
|
name: "input"
|
|
596
601
|
}, Ka = /* @__PURE__ */ Y({
|
|
@@ -609,15 +614,15 @@ const Fa = (n, e) => {
|
|
|
609
614
|
store: {}
|
|
610
615
|
},
|
|
611
616
|
setup(n) {
|
|
612
|
-
const e = n, { data: t, showData:
|
|
613
|
-
|
|
617
|
+
const e = n, { data: t, showData: l, disabledData: d, setData: i, getData: g, setFormRule: k, deleteRule: s, encryptionData: o } = e.store || {}, v = p(""), r = p(!1);
|
|
618
|
+
o.value.length && o.value.forEach((m) => {
|
|
614
619
|
m.name === e.setting.name && (r.value = !0);
|
|
615
620
|
});
|
|
616
621
|
const f = p(""), c = p(!0);
|
|
617
|
-
!
|
|
618
|
-
() =>
|
|
622
|
+
!l.value[e.setting.name] && l.value[e.setting.name] != !1 && (l.value[e.setting.name] = !0), M(
|
|
623
|
+
() => l.value,
|
|
619
624
|
() => {
|
|
620
|
-
c.value =
|
|
625
|
+
c.value = l.value[e.setting.name], c.value || (f.value = "", s(e.setting.name)), c.value && e.setting.options.validateList.length && k(e.setting.name, e.setting.options.validateList);
|
|
621
626
|
},
|
|
622
627
|
{ deep: !0, immediate: !0 }
|
|
623
628
|
), M(
|
|
@@ -633,14 +638,14 @@ const Fa = (n, e) => {
|
|
|
633
638
|
});
|
|
634
639
|
const D = p();
|
|
635
640
|
return e.setting.options.tip && (D.value = X(e.setting.options.tip)), setTimeout(() => {
|
|
636
|
-
f.value = g(e.setting.name) || e.setting.options.formulasDiyJs || f.value, r && e.isView && (v.value = Fa("phone", f.value)), f.value ||
|
|
641
|
+
f.value = g(e.setting.name) || e.setting.options.formulasDiyJs || f.value, r && e.isView && (v.value = Fa("phone", f.value)), f.value || i(e.setting.name, null);
|
|
637
642
|
}, 50), e.setting.options.validateList.length && k(e.setting.name, e.setting.options.validateList), M(f, (m) => {
|
|
638
|
-
e.setting.options.dataType === "number" && !isNaN(m) ?
|
|
643
|
+
e.setting.options.dataType === "number" && !isNaN(m) ? i(e.setting.name, Number(m)) : i(e.setting.name, m);
|
|
639
644
|
}), (m, L) => (V(), H(
|
|
640
645
|
le,
|
|
641
646
|
null,
|
|
642
647
|
[
|
|
643
|
-
c.value && r.value && e.isView ? (V(),
|
|
648
|
+
c.value && r.value && e.isView ? (V(), E(a(J), {
|
|
644
649
|
key: 0,
|
|
645
650
|
col: e.span,
|
|
646
651
|
prop: e.setting.name,
|
|
@@ -652,7 +657,7 @@ const Fa = (n, e) => {
|
|
|
652
657
|
required: y.value
|
|
653
658
|
}, {
|
|
654
659
|
default: F(() => [
|
|
655
|
-
z(a(
|
|
660
|
+
z(a(Ee), {
|
|
656
661
|
placement: "top",
|
|
657
662
|
disabled: !f.value,
|
|
658
663
|
content: f.value
|
|
@@ -690,8 +695,8 @@ const Fa = (n, e) => {
|
|
|
690
695
|
]),
|
|
691
696
|
_: 1
|
|
692
697
|
/* STABLE */
|
|
693
|
-
}, 8, ["col", "prop", "modelValue", "label", "helpMessage", "required"])) :
|
|
694
|
-
c.value && (!r.value || !e.isView) ? (V(),
|
|
698
|
+
}, 8, ["col", "prop", "modelValue", "label", "helpMessage", "required"])) : B("v-if", !0),
|
|
699
|
+
c.value && (!r.value || !e.isView) ? (V(), E(a(J), {
|
|
695
700
|
key: 1,
|
|
696
701
|
col: e.span,
|
|
697
702
|
modelValue: f.value,
|
|
@@ -707,7 +712,7 @@ const Fa = (n, e) => {
|
|
|
707
712
|
placeholder: m.setting.options.placeholder
|
|
708
713
|
}, {
|
|
709
714
|
default: F(() => [
|
|
710
|
-
|
|
715
|
+
B(` <DasInput\r
|
|
711
716
|
v-model="inputValue"\r
|
|
712
717
|
>\r
|
|
713
718
|
<template #prepend>{{ setting.options.bindPreAndSufFixjson.preFix }}</template>\r
|
|
@@ -716,7 +721,7 @@ const Fa = (n, e) => {
|
|
|
716
721
|
]),
|
|
717
722
|
_: 1
|
|
718
723
|
/* STABLE */
|
|
719
|
-
}, 8, ["col", "modelValue", "width", "disabled", "isView", "prop", "label", "helpMessage", "required", "placeholder"])) :
|
|
724
|
+
}, 8, ["col", "modelValue", "width", "disabled", "isView", "prop", "label", "helpMessage", "required", "placeholder"])) : B("v-if", !0)
|
|
720
725
|
],
|
|
721
726
|
64
|
|
722
727
|
/* STABLE_FRAGMENT */
|
|
@@ -725,10 +730,10 @@ const Fa = (n, e) => {
|
|
|
725
730
|
}), mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
726
731
|
__proto__: null,
|
|
727
732
|
default: Ka
|
|
728
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
733
|
+
}, Symbol.toStringTag, { value: "Module" })), Aa = {
|
|
729
734
|
name: "number"
|
|
730
|
-
},
|
|
731
|
-
...
|
|
735
|
+
}, qa = /* @__PURE__ */ Y({
|
|
736
|
+
...Aa,
|
|
732
737
|
props: {
|
|
733
738
|
setting: { default: () => ({
|
|
734
739
|
icon: "",
|
|
@@ -743,24 +748,24 @@ const Fa = (n, e) => {
|
|
|
743
748
|
store: {}
|
|
744
749
|
},
|
|
745
750
|
setup(n) {
|
|
746
|
-
const e = n, { showData: t, disabledData:
|
|
751
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: g, deleteRule: k } = e.store || {}, s = p(0), o = p(!0);
|
|
747
752
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
748
753
|
() => t.value,
|
|
749
754
|
() => {
|
|
750
|
-
|
|
755
|
+
o.value = t.value[e.setting.name], o.value || (s.value = 0, k(e.setting.name)), o.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
751
756
|
},
|
|
752
757
|
{ deep: !0, immediate: !0 }
|
|
753
758
|
);
|
|
754
|
-
const v =
|
|
759
|
+
const v = l.value[e.setting.name] || !1, r = p(!1);
|
|
755
760
|
ne(e.setting.options.validateList).then((c) => {
|
|
756
761
|
r.value = c;
|
|
757
762
|
});
|
|
758
763
|
const f = p();
|
|
759
764
|
return e.setting.options.tip && (f.value = X(e.setting.options.tip)), setTimeout(() => {
|
|
760
|
-
s.value =
|
|
765
|
+
s.value = i(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
|
|
761
766
|
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(s, (c) => {
|
|
762
767
|
d(e.setting.name, c);
|
|
763
|
-
}), (c, C) =>
|
|
768
|
+
}), (c, C) => o.value ? (V(), E(a(J), {
|
|
764
769
|
key: 0,
|
|
765
770
|
col: e.span,
|
|
766
771
|
modelValue: s.value,
|
|
@@ -777,15 +782,15 @@ const Fa = (n, e) => {
|
|
|
777
782
|
precision: c.setting.options.decimalDigits,
|
|
778
783
|
helpMessage: f.value,
|
|
779
784
|
required: r.value
|
|
780
|
-
}, null, 8, ["col", "modelValue", "label", "prop", "max", "min", "step", "disabled", "isView", "precision", "helpMessage", "required"])) :
|
|
785
|
+
}, null, 8, ["col", "modelValue", "label", "prop", "max", "min", "step", "disabled", "isView", "precision", "helpMessage", "required"])) : B("v-if", !0);
|
|
781
786
|
}
|
|
782
787
|
}), vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
783
788
|
__proto__: null,
|
|
784
|
-
default:
|
|
785
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
789
|
+
default: qa
|
|
790
|
+
}, Symbol.toStringTag, { value: "Module" })), Ea = {
|
|
786
791
|
name: "radio"
|
|
787
|
-
},
|
|
788
|
-
...
|
|
792
|
+
}, Oa = /* @__PURE__ */ Y({
|
|
793
|
+
...Ea,
|
|
789
794
|
props: {
|
|
790
795
|
setting: { default: () => ({
|
|
791
796
|
icon: "",
|
|
@@ -802,15 +807,15 @@ const Fa = (n, e) => {
|
|
|
802
807
|
store: {}
|
|
803
808
|
},
|
|
804
809
|
setup(n) {
|
|
805
|
-
const e = n, { showData: t, disabledData:
|
|
810
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: g, deleteRule: k } = e.store || {}, s = p(null), o = p(!0);
|
|
806
811
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
807
812
|
() => t.value,
|
|
808
813
|
() => {
|
|
809
|
-
|
|
814
|
+
o.value = t.value[e.setting.name], o.value || (s.value = null, k(e.setting.name)), o.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
810
815
|
},
|
|
811
816
|
{ deep: !0, immediate: !0 }
|
|
812
817
|
);
|
|
813
|
-
const v =
|
|
818
|
+
const v = l.value[e.setting.name] || !1, r = p(!1);
|
|
814
819
|
ne(e.setting.options.validateList).then((m) => {
|
|
815
820
|
r.value = m;
|
|
816
821
|
});
|
|
@@ -820,7 +825,7 @@ const Fa = (n, e) => {
|
|
|
820
825
|
}) : C.value = e.setting.options.options;
|
|
821
826
|
const y = p();
|
|
822
827
|
e.setting.options.tip && (y.value = X(e.setting.options.tip)), setTimeout(() => {
|
|
823
|
-
s.value =
|
|
828
|
+
s.value = i(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
|
|
824
829
|
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(s, (m) => {
|
|
825
830
|
d(e.setting.name, m);
|
|
826
831
|
});
|
|
@@ -832,7 +837,7 @@ const Fa = (n, e) => {
|
|
|
832
837
|
}
|
|
833
838
|
});
|
|
834
839
|
};
|
|
835
|
-
return (m, L) =>
|
|
840
|
+
return (m, L) => o.value ? (V(), E(a(J), {
|
|
836
841
|
key: 0,
|
|
837
842
|
onChange: D,
|
|
838
843
|
col: e.span,
|
|
@@ -850,15 +855,15 @@ const Fa = (n, e) => {
|
|
|
850
855
|
disabled: a(v),
|
|
851
856
|
required: r.value,
|
|
852
857
|
isSetTimeout: !0
|
|
853
|
-
}, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) :
|
|
858
|
+
}, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) : B("v-if", !0);
|
|
854
859
|
}
|
|
855
860
|
}), ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
856
861
|
__proto__: null,
|
|
857
|
-
default:
|
|
858
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
862
|
+
default: Oa
|
|
863
|
+
}, Symbol.toStringTag, { value: "Module" })), Ba = {
|
|
859
864
|
name: "select"
|
|
860
865
|
}, Qa = /* @__PURE__ */ Y({
|
|
861
|
-
...
|
|
866
|
+
...Ba,
|
|
862
867
|
props: {
|
|
863
868
|
setting: { default: () => ({
|
|
864
869
|
icon: "",
|
|
@@ -874,11 +879,11 @@ const Fa = (n, e) => {
|
|
|
874
879
|
},
|
|
875
880
|
setup(n) {
|
|
876
881
|
var L, h;
|
|
877
|
-
const e = n, { showData: t, disabledData:
|
|
882
|
+
const e = n, { showData: t, disabledData: l, linkData: d, setData: i, getData: g, setFormRule: k, deleteRule: s } = e.store || {}, o = p(), v = p(!0);
|
|
878
883
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
879
884
|
() => t.value,
|
|
880
885
|
() => {
|
|
881
|
-
v.value = t.value[e.setting.name], v.value || (
|
|
886
|
+
v.value = t.value[e.setting.name], v.value || (o.value = null, s(e.setting.name)), v.value && e.setting.options.validateList.length && k(e.setting.name, e.setting.options.validateList);
|
|
882
887
|
},
|
|
883
888
|
{ deep: !0, immediate: !0 }
|
|
884
889
|
), M(
|
|
@@ -886,8 +891,8 @@ const Fa = (n, e) => {
|
|
|
886
891
|
() => {
|
|
887
892
|
d.value.data.forEach((u) => {
|
|
888
893
|
if (e.setting.options.customQuery.alias && e.setting.options.customQuery.alias === u.alias) {
|
|
889
|
-
|
|
890
|
-
const P = u.conditionfield.filter((T) => T.defaultType == 1);
|
|
894
|
+
o.value = null;
|
|
895
|
+
const P = Array.isArray(u.conditionfield) ? u.conditionfield.filter((T) => T.defaultType == 1) : [];
|
|
891
896
|
let j = {};
|
|
892
897
|
P.forEach((T) => {
|
|
893
898
|
const I = T.fieldPath.split("."), U = I[I.length - 1];
|
|
@@ -904,19 +909,24 @@ const Fa = (n, e) => {
|
|
|
904
909
|
},
|
|
905
910
|
{ deep: !0 }
|
|
906
911
|
);
|
|
907
|
-
const r =
|
|
912
|
+
const r = l.value[e.setting.name] || !1, f = p(!1);
|
|
908
913
|
ne(e.setting.options.validateList).then((u) => {
|
|
909
914
|
f.value = u;
|
|
910
915
|
});
|
|
911
916
|
const c = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", C = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", y = p([]);
|
|
912
917
|
if (e.setting.options.customQuery.alias) {
|
|
913
918
|
let u = (h = (L = e.setting.options) == null ? void 0 : L.customQuery) == null ? void 0 : h.conditionfield;
|
|
914
|
-
typeof u == "string"
|
|
915
|
-
|
|
919
|
+
if (typeof u == "string")
|
|
920
|
+
try {
|
|
921
|
+
u = JSON.parse(u);
|
|
922
|
+
} catch {
|
|
923
|
+
u = [];
|
|
924
|
+
}
|
|
925
|
+
const P = Array.isArray(u) ? u.filter((T) => T.defaultType == 1) : [];
|
|
916
926
|
let j = {};
|
|
917
927
|
P.forEach((T) => {
|
|
918
|
-
var
|
|
919
|
-
const I = (
|
|
928
|
+
var A;
|
|
929
|
+
const I = (A = T.fieldPath) == null ? void 0 : A.split("."), U = I[I.length - 1];
|
|
920
930
|
j[T.field] = g(U);
|
|
921
931
|
}), Object.values(j).every((T) => T) && we(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield, j).then(
|
|
922
932
|
(T) => {
|
|
@@ -926,10 +936,10 @@ const Fa = (n, e) => {
|
|
|
926
936
|
} else
|
|
927
937
|
y.value = e.setting.options.options;
|
|
928
938
|
const D = p();
|
|
929
|
-
e.setting.options.tip && (D.value = X(e.setting.options.tip)),
|
|
930
|
-
e.setting.options.multiple && (g(e.setting.name) || e.setting.options.formulasDiyJs) ? (g(e.setting.name) && (
|
|
931
|
-
}, 50), e.setting.options.validateList.length && k(e.setting.name, e.setting.options.validateList), M(
|
|
932
|
-
e.setting.options.multiple ?
|
|
939
|
+
e.setting.options.tip && (D.value = X(e.setting.options.tip)), o.value = e.setting.options.multiple ? [] : null, setTimeout(() => {
|
|
940
|
+
e.setting.options.multiple && (g(e.setting.name) || e.setting.options.formulasDiyJs) ? (g(e.setting.name) && (o.value = g(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (o.value = e.setting.options.formulasDiyJs.split(","))) : o.value = g(e.setting.name) || e.setting.options.formulasDiyJs || o.value, o.value || i(e.setting.name, null);
|
|
941
|
+
}, 50), e.setting.options.validateList.length && k(e.setting.name, e.setting.options.validateList), M(o, (u) => {
|
|
942
|
+
e.setting.options.multiple ? i(e.setting.name, u.toString()) : i(e.setting.name, u);
|
|
933
943
|
});
|
|
934
944
|
const m = (u) => {
|
|
935
945
|
e.setting.options.linkage.length && !e.setting.options.multiple && e.setting.options.linkage.forEach((P) => {
|
|
@@ -939,11 +949,11 @@ const Fa = (n, e) => {
|
|
|
939
949
|
}
|
|
940
950
|
});
|
|
941
951
|
};
|
|
942
|
-
return (u, P) => v.value ? (V(),
|
|
952
|
+
return (u, P) => v.value ? (V(), E(a(J), {
|
|
943
953
|
key: 0,
|
|
944
954
|
col: e.span,
|
|
945
|
-
modelValue:
|
|
946
|
-
"onUpdate:modelValue": P[0] || (P[0] = (j) =>
|
|
955
|
+
modelValue: o.value,
|
|
956
|
+
"onUpdate:modelValue": P[0] || (P[0] = (j) => o.value = j),
|
|
947
957
|
label: u.setting.desc,
|
|
948
958
|
onChange: m,
|
|
949
959
|
type: "select",
|
|
@@ -959,35 +969,35 @@ const Fa = (n, e) => {
|
|
|
959
969
|
helpMessage: D.value,
|
|
960
970
|
disabled: a(r),
|
|
961
971
|
required: f.value
|
|
962
|
-
}, null, 8, ["col", "modelValue", "label", "prop", "placeholder", "mode", "showSearch", "isView", "options", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) :
|
|
972
|
+
}, null, 8, ["col", "modelValue", "label", "prop", "placeholder", "mode", "showSearch", "isView", "options", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) : B("v-if", !0);
|
|
963
973
|
}
|
|
964
974
|
}), ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
965
975
|
__proto__: null,
|
|
966
976
|
default: Qa
|
|
967
977
|
}, Symbol.toStringTag, { value: "Module" })), Ua = (n, e, t) => {
|
|
968
978
|
var Ve, Ce, he, ye, De;
|
|
969
|
-
const
|
|
979
|
+
const l = tt().id, d = p(!1), i = (De = (ye = (he = (Ce = (Ve = n == null ? void 0 : n.options) == null ? void 0 : Ve.selector) == null ? void 0 : Ce.type) == null ? void 0 : he.alias) == null ? void 0 : ye.replace("eip-", "")) == null ? void 0 : De.replace("-selector", ""), g = p([]), k = p(""), s = p(""), o = p(""), v = p({
|
|
970
980
|
spaceId: "",
|
|
971
981
|
spacePath: "",
|
|
972
982
|
spacePathName: ""
|
|
973
983
|
}), r = {
|
|
974
|
-
user:
|
|
975
|
-
org:
|
|
976
|
-
role:
|
|
977
|
-
job:
|
|
978
|
-
post:
|
|
979
|
-
supplier:
|
|
980
|
-
source:
|
|
981
|
-
device:
|
|
984
|
+
user: O("搜索姓名/账号/手机号").value,
|
|
985
|
+
org: O("搜索组织名称/组织编码").value,
|
|
986
|
+
role: O("搜索角色名称").value,
|
|
987
|
+
job: O("职务名称/职务编码").value,
|
|
988
|
+
post: O("搜索岗位名称/岗位编码").value,
|
|
989
|
+
supplier: O("搜索供应商编码/名称").value,
|
|
990
|
+
source: O("搜索单据编码/申请人").value,
|
|
991
|
+
device: O("搜索设备编码/名称").value
|
|
982
992
|
}, f = {
|
|
983
|
-
user:
|
|
984
|
-
org:
|
|
985
|
-
role:
|
|
986
|
-
job:
|
|
987
|
-
post:
|
|
988
|
-
supplier:
|
|
989
|
-
source:
|
|
990
|
-
device:
|
|
993
|
+
user: O("添加用户").value,
|
|
994
|
+
org: O("组织选择器").value,
|
|
995
|
+
role: O("角色选择器").value,
|
|
996
|
+
job: O("职务选择器").value,
|
|
997
|
+
post: O("岗位选择器").value,
|
|
998
|
+
supplier: O("选择供应商").value,
|
|
999
|
+
source: O("选择源单").value,
|
|
1000
|
+
device: O("选择报修设备").value
|
|
991
1001
|
}, c = {
|
|
992
1002
|
user: "id",
|
|
993
1003
|
org: "id",
|
|
@@ -998,15 +1008,15 @@ const Fa = (n, e) => {
|
|
|
998
1008
|
source: "code",
|
|
999
1009
|
device: "deviceId"
|
|
1000
1010
|
}, C = {
|
|
1001
|
-
1:
|
|
1002
|
-
2:
|
|
1003
|
-
3:
|
|
1011
|
+
1: O("正常").value,
|
|
1012
|
+
2: O("锁定").value,
|
|
1013
|
+
3: O("禁用").value
|
|
1004
1014
|
}, y = {
|
|
1005
|
-
0:
|
|
1006
|
-
1:
|
|
1015
|
+
0: O("普通").value,
|
|
1016
|
+
1: O("管理员").value
|
|
1007
1017
|
}, D = {
|
|
1008
|
-
0:
|
|
1009
|
-
1:
|
|
1018
|
+
0: O("无效").value,
|
|
1019
|
+
1: O("有效").value
|
|
1010
1020
|
}, m = {
|
|
1011
1021
|
user: sa,
|
|
1012
1022
|
org: $e,
|
|
@@ -1015,9 +1025,9 @@ const Fa = (n, e) => {
|
|
|
1015
1025
|
post: $e,
|
|
1016
1026
|
supplier: ca,
|
|
1017
1027
|
device: va
|
|
1018
|
-
}, L = f[
|
|
1028
|
+
}, L = f[i], h = p({}), u = p([]), P = () => {
|
|
1019
1029
|
var N, Q;
|
|
1020
|
-
|
|
1030
|
+
i === "supplier" ? (h.value = {
|
|
1021
1031
|
left: !1,
|
|
1022
1032
|
content: {
|
|
1023
1033
|
api: da,
|
|
@@ -1033,7 +1043,7 @@ const Fa = (n, e) => {
|
|
|
1033
1043
|
querys: [
|
|
1034
1044
|
{
|
|
1035
1045
|
property: "orgId",
|
|
1036
|
-
value:
|
|
1046
|
+
value: l,
|
|
1037
1047
|
group: "quick",
|
|
1038
1048
|
relation: "AND",
|
|
1039
1049
|
operation: "EQUAL"
|
|
@@ -1045,7 +1055,7 @@ const Fa = (n, e) => {
|
|
|
1045
1055
|
}
|
|
1046
1056
|
},
|
|
1047
1057
|
right: !1
|
|
1048
|
-
}, ee(), T()) :
|
|
1058
|
+
}, ee(), T()) : i === "device" ? (h.value = {
|
|
1049
1059
|
left: !1,
|
|
1050
1060
|
content: {
|
|
1051
1061
|
multiple: !1,
|
|
@@ -1064,7 +1074,7 @@ const Fa = (n, e) => {
|
|
|
1064
1074
|
}
|
|
1065
1075
|
},
|
|
1066
1076
|
right: !1
|
|
1067
|
-
},
|
|
1077
|
+
}, A(), pe()) : i === "source" ? (h.value = {
|
|
1068
1078
|
left: !1,
|
|
1069
1079
|
content: {
|
|
1070
1080
|
api: ma,
|
|
@@ -1082,7 +1092,7 @@ const Fa = (n, e) => {
|
|
|
1082
1092
|
}
|
|
1083
1093
|
},
|
|
1084
1094
|
right: !1
|
|
1085
|
-
}, j()) :
|
|
1095
|
+
}, j()) : i === "org" ? (h.value = {
|
|
1086
1096
|
left: !1,
|
|
1087
1097
|
content: {
|
|
1088
1098
|
api: ia,
|
|
@@ -1097,12 +1107,12 @@ const Fa = (n, e) => {
|
|
|
1097
1107
|
left: {
|
|
1098
1108
|
api: aa,
|
|
1099
1109
|
params: {
|
|
1100
|
-
projectId:
|
|
1101
|
-
parentId:
|
|
1110
|
+
projectId: l,
|
|
1111
|
+
parentId: l
|
|
1102
1112
|
},
|
|
1103
1113
|
props: {
|
|
1104
1114
|
inputOptions: {
|
|
1105
|
-
placeholder:
|
|
1115
|
+
placeholder: O("搜索组织名称").value
|
|
1106
1116
|
}
|
|
1107
1117
|
}
|
|
1108
1118
|
},
|
|
@@ -1111,7 +1121,7 @@ const Fa = (n, e) => {
|
|
|
1111
1121
|
data: []
|
|
1112
1122
|
}
|
|
1113
1123
|
}
|
|
1114
|
-
},
|
|
1124
|
+
}, i === "user" && (h.value.content = {
|
|
1115
1125
|
api: na,
|
|
1116
1126
|
searchKey: "groupId",
|
|
1117
1127
|
params: {
|
|
@@ -1121,7 +1131,7 @@ const Fa = (n, e) => {
|
|
|
1121
1131
|
selectListProps: {
|
|
1122
1132
|
data: []
|
|
1123
1133
|
}
|
|
1124
|
-
}, j()),
|
|
1134
|
+
}, j()), i === "role" && (h.value.content = {
|
|
1125
1135
|
api: oa,
|
|
1126
1136
|
searchKey: "orgId",
|
|
1127
1137
|
params: {
|
|
@@ -1130,7 +1140,7 @@ const Fa = (n, e) => {
|
|
|
1130
1140
|
selectListProps: {
|
|
1131
1141
|
data: []
|
|
1132
1142
|
}
|
|
1133
|
-
}, j()),
|
|
1143
|
+
}, j()), i === "job" && (h.value.content = {
|
|
1134
1144
|
api: ua,
|
|
1135
1145
|
searchKey: "groupId",
|
|
1136
1146
|
props: {
|
|
@@ -1139,7 +1149,7 @@ const Fa = (n, e) => {
|
|
|
1139
1149
|
selectListProps: {
|
|
1140
1150
|
data: []
|
|
1141
1151
|
}
|
|
1142
|
-
}, j()),
|
|
1152
|
+
}, j()), i === "post" && (h.value.content = {
|
|
1143
1153
|
api: ra,
|
|
1144
1154
|
searchKey: "groupId",
|
|
1145
1155
|
props: {
|
|
@@ -1148,14 +1158,14 @@ const Fa = (n, e) => {
|
|
|
1148
1158
|
selectListProps: {
|
|
1149
1159
|
data: []
|
|
1150
1160
|
}
|
|
1151
|
-
}, j()), h.value.content.multiple =
|
|
1161
|
+
}, j()), h.value.content.multiple = i === "supplier" || i === "source" || i === "device" ? !1 : !((Q = (N = n == null ? void 0 : n.options) == null ? void 0 : N.selector) != null && Q.isSingle);
|
|
1152
1162
|
}, j = async () => {
|
|
1153
1163
|
u.value = [
|
|
1154
1164
|
{
|
|
1155
1165
|
type: "searchInput",
|
|
1156
1166
|
key: "inputtKey",
|
|
1157
1167
|
label: "",
|
|
1158
|
-
placeholder: r[
|
|
1168
|
+
placeholder: r[i],
|
|
1159
1169
|
value: "",
|
|
1160
1170
|
clearable: !0,
|
|
1161
1171
|
isIconLeft: !0,
|
|
@@ -1169,7 +1179,7 @@ const Fa = (n, e) => {
|
|
|
1169
1179
|
type: "searchInput",
|
|
1170
1180
|
key: "inputtKey",
|
|
1171
1181
|
label: "",
|
|
1172
|
-
placeholder: r[
|
|
1182
|
+
placeholder: r[i],
|
|
1173
1183
|
value: "",
|
|
1174
1184
|
clearable: !0,
|
|
1175
1185
|
isIconLeft: !0,
|
|
@@ -1178,7 +1188,7 @@ const Fa = (n, e) => {
|
|
|
1178
1188
|
},
|
|
1179
1189
|
{
|
|
1180
1190
|
type: "select",
|
|
1181
|
-
label:
|
|
1191
|
+
label: O("供应商类型").value,
|
|
1182
1192
|
layout: "out",
|
|
1183
1193
|
width: "200px",
|
|
1184
1194
|
closable: !0,
|
|
@@ -1199,13 +1209,13 @@ const Fa = (n, e) => {
|
|
|
1199
1209
|
return b ? {} : (R.data.forEach(($) => {
|
|
1200
1210
|
I($);
|
|
1201
1211
|
}), R);
|
|
1202
|
-
},
|
|
1212
|
+
}, A = async () => {
|
|
1203
1213
|
u.value = [
|
|
1204
1214
|
{
|
|
1205
1215
|
type: "searchInput",
|
|
1206
1216
|
key: "inputtKey",
|
|
1207
1217
|
label: "",
|
|
1208
|
-
placeholder: r[
|
|
1218
|
+
placeholder: r[i],
|
|
1209
1219
|
value: "",
|
|
1210
1220
|
clearable: !0,
|
|
1211
1221
|
isIconLeft: !0,
|
|
@@ -1215,17 +1225,17 @@ const Fa = (n, e) => {
|
|
|
1215
1225
|
{
|
|
1216
1226
|
type: "treeSelect",
|
|
1217
1227
|
key: "groupId",
|
|
1218
|
-
label:
|
|
1228
|
+
label: O("设备分类").value,
|
|
1219
1229
|
size: "mini",
|
|
1220
1230
|
value: "",
|
|
1221
1231
|
nodeKey: "id",
|
|
1222
1232
|
options: [],
|
|
1223
|
-
placeholder:
|
|
1233
|
+
placeholder: O("请选择").value,
|
|
1224
1234
|
selectAttrs: { allowClear: !0 }
|
|
1225
1235
|
},
|
|
1226
1236
|
{
|
|
1227
1237
|
key: "spaceId",
|
|
1228
|
-
label:
|
|
1238
|
+
label: O("安装位置").value,
|
|
1229
1239
|
type: "treeSelect",
|
|
1230
1240
|
defaultExpandedKeys: [],
|
|
1231
1241
|
path: "",
|
|
@@ -1254,28 +1264,28 @@ const Fa = (n, e) => {
|
|
|
1254
1264
|
}, x = () => {
|
|
1255
1265
|
var Q;
|
|
1256
1266
|
k.value = "", d.value = !0;
|
|
1257
|
-
let N = c[
|
|
1258
|
-
h.value.content.selectListProps.data = (Q = g == null ? void 0 : g.value) == null ? void 0 : Q.map((b) =>
|
|
1267
|
+
let N = c[i];
|
|
1268
|
+
h.value.content.selectListProps.data = (Q = g == null ? void 0 : g.value) == null ? void 0 : Q.map((b) => i === "device" ? { deviceName: b == null ? void 0 : b.label, [N]: b == null ? void 0 : b.value } : { name: b == null ? void 0 : b.label, [N]: b == null ? void 0 : b.value });
|
|
1259
1269
|
};
|
|
1260
1270
|
P();
|
|
1261
1271
|
const fe = async () => {
|
|
1262
|
-
var N, Q, b, R, $, w, _,
|
|
1272
|
+
var N, Q, b, R, $, w, _, q, Z, be, de, se, te, W, ce, ge, oe, Ye, Je, He;
|
|
1263
1273
|
if (h.value.content.params = {
|
|
1264
1274
|
...(Q = (N = h == null ? void 0 : h.value) == null ? void 0 : N.content) == null ? void 0 : Q.params,
|
|
1265
1275
|
pageIndex: 1
|
|
1266
|
-
}, (
|
|
1276
|
+
}, (i === "user" || i === "org" || i === "post" || i === "role" || i === "job") && (h.value.content.params.name = (b = u == null ? void 0 : u.value[0]) == null ? void 0 : b.value), i === "source" && (h.value.content.params.key = (R = u == null ? void 0 : u.value[0]) == null ? void 0 : R.value), i === "device") {
|
|
1267
1277
|
const Pe = ($ = u == null ? void 0 : u.value[1]) == null ? void 0 : $.value;
|
|
1268
1278
|
h.value.content.params.deviceNameOrCode = ((w = u == null ? void 0 : u.value[0]) == null ? void 0 : w.value) || "", h.value.content.params.groupId = !Pe || Pe === "-1" ? null : Pe, h.value.content.params.spaceId = ((_ = u == null ? void 0 : u.value[2]) == null ? void 0 : _.value) || "";
|
|
1269
1279
|
}
|
|
1270
|
-
|
|
1280
|
+
i === "supplier" && (h.value.content.params.querys = [
|
|
1271
1281
|
{
|
|
1272
1282
|
property: "orgId",
|
|
1273
|
-
value:
|
|
1283
|
+
value: l,
|
|
1274
1284
|
group: "quick",
|
|
1275
1285
|
relation: "AND",
|
|
1276
1286
|
operation: "EQUAL"
|
|
1277
1287
|
}
|
|
1278
|
-
], (
|
|
1288
|
+
], (q = u == null ? void 0 : u.value[0]) != null && q.value && (h.value.content.params.querys = (W = (de = (be = (Z = h == null ? void 0 : h.value) == null ? void 0 : Z.content) == null ? void 0 : be.params) == null ? void 0 : de.querys) == null ? void 0 : W.concat([
|
|
1279
1289
|
{
|
|
1280
1290
|
property: "name",
|
|
1281
1291
|
value: (se = u == null ? void 0 : u.value[0]) == null ? void 0 : se.value,
|
|
@@ -1307,13 +1317,13 @@ const Fa = (n, e) => {
|
|
|
1307
1317
|
}
|
|
1308
1318
|
);
|
|
1309
1319
|
const _e = async () => {
|
|
1310
|
-
|
|
1320
|
+
i === "supplier" ? (u.value[0].value = "", u.value[1].value = void 0) : i === "device" ? (u.value[0].value = "", u.value[1].value = "-1", u.value[2].value = "") : (i === "org" || i === "user" || i === "source" || i === "post" || i === "role" || i === "job") && (u.value[0].value = ""), P();
|
|
1311
1321
|
};
|
|
1312
1322
|
return {
|
|
1313
1323
|
dialogVisible: d,
|
|
1314
1324
|
title: L,
|
|
1315
1325
|
searchName: k,
|
|
1316
|
-
selectorType:
|
|
1326
|
+
selectorType: i,
|
|
1317
1327
|
selectOptions: g,
|
|
1318
1328
|
tableOptions: h,
|
|
1319
1329
|
userStatusMap: C,
|
|
@@ -1322,8 +1332,8 @@ const Fa = (n, e) => {
|
|
|
1322
1332
|
openDialog: x,
|
|
1323
1333
|
confirm: async (N) => {
|
|
1324
1334
|
var b, R, $, w;
|
|
1325
|
-
let Q = c[
|
|
1326
|
-
g.value = N == null ? void 0 : N.map((_) => ({ label: (_ == null ? void 0 : _.deviceName) || (_ == null ? void 0 : _.name) || (_ == null ? void 0 : _.code), value: _[Q] })),
|
|
1335
|
+
let Q = c[i];
|
|
1336
|
+
g.value = N == null ? void 0 : N.map((_) => ({ label: (_ == null ? void 0 : _.deviceName) || (_ == null ? void 0 : _.name) || (_ == null ? void 0 : _.code), value: _[Q] })), i === "supplier" && (s.value = (b = N[0]) == null ? void 0 : b.linkmanPhone), i === "device" && (o.value = ((R = N[0]) == null ? void 0 : R.id) || "", v.value = {
|
|
1327
1337
|
spaceId: ($ = N[0]) == null ? void 0 : $.spaceId,
|
|
1328
1338
|
spacePath: "",
|
|
1329
1339
|
spacePathName: ((w = N[0]) == null ? void 0 : w.spaceSite) || ""
|
|
@@ -1331,10 +1341,10 @@ const Fa = (n, e) => {
|
|
|
1331
1341
|
},
|
|
1332
1342
|
getDetail: async (N) => {
|
|
1333
1343
|
if (!N) return;
|
|
1334
|
-
const Q = m[
|
|
1344
|
+
const Q = m[i];
|
|
1335
1345
|
let b = {};
|
|
1336
1346
|
const R = N == null ? void 0 : N.split(",");
|
|
1337
|
-
if (
|
|
1347
|
+
if (i === "source") {
|
|
1338
1348
|
g.value = [
|
|
1339
1349
|
{
|
|
1340
1350
|
label: N,
|
|
@@ -1342,31 +1352,31 @@ const Fa = (n, e) => {
|
|
|
1342
1352
|
}
|
|
1343
1353
|
];
|
|
1344
1354
|
return;
|
|
1345
|
-
} else
|
|
1355
|
+
} else i === "user" ? b.userIds = R : i === "role" ? b.ids = R : i === "supplier" ? b.id = R : i === "device" ? b = {
|
|
1346
1356
|
deviceNameOrCode: N,
|
|
1347
1357
|
groupId: null,
|
|
1348
1358
|
spaceId: ""
|
|
1349
1359
|
} : b = R;
|
|
1350
1360
|
const [$, w] = await Q(b).run();
|
|
1351
1361
|
if (!$)
|
|
1352
|
-
if (
|
|
1362
|
+
if (i === "supplier")
|
|
1353
1363
|
g.value = [
|
|
1354
1364
|
{
|
|
1355
1365
|
label: (w == null ? void 0 : w.name) || (w == null ? void 0 : w.code),
|
|
1356
1366
|
value: w == null ? void 0 : w.id
|
|
1357
1367
|
}
|
|
1358
1368
|
];
|
|
1359
|
-
else if (
|
|
1360
|
-
const _ = Array.isArray(w) ? w : (w == null ? void 0 : w.data) || (w == null ? void 0 : w.rows) || [],
|
|
1361
|
-
if (!
|
|
1362
|
-
|
|
1363
|
-
spaceId: (
|
|
1369
|
+
else if (i === "device") {
|
|
1370
|
+
const _ = Array.isArray(w) ? w : (w == null ? void 0 : w.data) || (w == null ? void 0 : w.rows) || [], q = _.find((Z) => (Z == null ? void 0 : Z.deviceId) === N) || _[0];
|
|
1371
|
+
if (!q) return;
|
|
1372
|
+
o.value = (q == null ? void 0 : q.id) || "", v.value = {
|
|
1373
|
+
spaceId: (q == null ? void 0 : q.spaceId) || "",
|
|
1364
1374
|
spacePath: "",
|
|
1365
|
-
spacePathName: (
|
|
1375
|
+
spacePathName: (q == null ? void 0 : q.spaceSite) || ""
|
|
1366
1376
|
}, g.value = [
|
|
1367
1377
|
{
|
|
1368
|
-
label:
|
|
1369
|
-
value:
|
|
1378
|
+
label: q == null ? void 0 : q.deviceName,
|
|
1379
|
+
value: q == null ? void 0 : q.deviceId
|
|
1370
1380
|
}
|
|
1371
1381
|
];
|
|
1372
1382
|
} else
|
|
@@ -1375,20 +1385,20 @@ const Fa = (n, e) => {
|
|
|
1375
1385
|
searchData: fe,
|
|
1376
1386
|
searchOptions: u,
|
|
1377
1387
|
linkmanPhone: s,
|
|
1378
|
-
equipmentArchivesId:
|
|
1388
|
+
equipmentArchivesId: o,
|
|
1379
1389
|
deviceSpaceInfo: v
|
|
1380
1390
|
};
|
|
1381
1391
|
}, xa = (n) => {
|
|
1382
|
-
const e = p(""), t = p(""),
|
|
1392
|
+
const e = p(""), t = p(""), l = p([]), d = p("");
|
|
1383
1393
|
return {
|
|
1384
1394
|
spacePath: e,
|
|
1385
1395
|
spaceName: t,
|
|
1386
|
-
spaceTreeData:
|
|
1396
|
+
spaceTreeData: l,
|
|
1387
1397
|
searchSpace: d,
|
|
1388
|
-
changeSpace: (
|
|
1398
|
+
changeSpace: (o, v) => {
|
|
1389
1399
|
n ? (e.value = v[0].path, t.value = v[0].pathName) : (e.value = (v == null ? void 0 : v.map((r) => r.path)) || [], t.value = (v == null ? void 0 : v.map((r) => r.pathName)) || []);
|
|
1390
1400
|
},
|
|
1391
|
-
spaceLoad: async (
|
|
1401
|
+
spaceLoad: async (o) => {
|
|
1392
1402
|
let v = {
|
|
1393
1403
|
pageSize: 1e4,
|
|
1394
1404
|
pageIndex: 1,
|
|
@@ -1397,26 +1407,26 @@ const Fa = (n, e) => {
|
|
|
1397
1407
|
spaceId: ""
|
|
1398
1408
|
// orgId:getProjectInfo().id
|
|
1399
1409
|
};
|
|
1400
|
-
v.spaceId =
|
|
1410
|
+
v.spaceId = o != null && o.id ? o.id : "";
|
|
1401
1411
|
let r = lt;
|
|
1402
1412
|
const [f, c] = await r(v).run();
|
|
1403
1413
|
return f ? {} : c;
|
|
1404
1414
|
},
|
|
1405
|
-
filterSpaceTree: async (
|
|
1406
|
-
if (!
|
|
1415
|
+
filterSpaceTree: async (o) => {
|
|
1416
|
+
if (!o) return [];
|
|
1407
1417
|
let v = pa;
|
|
1408
1418
|
const r = {
|
|
1409
|
-
name:
|
|
1419
|
+
name: o
|
|
1410
1420
|
}, [f, c] = await v(r).run();
|
|
1411
1421
|
return f ? {} : (c.forEach((C) => {
|
|
1412
1422
|
C.path.startsWith("/0") && (C.path = C.path.slice(2) + `/${C.id}`), C._name = C.nodeName ? C.nodeName : C.name;
|
|
1413
1423
|
}), c);
|
|
1414
1424
|
},
|
|
1415
|
-
getSpaceDetail: async (
|
|
1416
|
-
if (!
|
|
1417
|
-
const [v, r] = await
|
|
1425
|
+
getSpaceDetail: async (o) => {
|
|
1426
|
+
if (!o) return;
|
|
1427
|
+
const [v, r] = await Oe().run({ spaceId: o });
|
|
1418
1428
|
if (!v)
|
|
1419
|
-
return e.value = (r == null ? void 0 : r.path) ||
|
|
1429
|
+
return e.value = (r == null ? void 0 : r.path) || o, t.value = (r == null ? void 0 : r.pathName) || (r == null ? void 0 : r.name) || "", r;
|
|
1420
1430
|
}
|
|
1421
1431
|
};
|
|
1422
1432
|
}, Ya = { class: "table-search-process-top" }, Ja = {
|
|
@@ -1441,11 +1451,11 @@ const Fa = (n, e) => {
|
|
|
1441
1451
|
const e = n, t = Vt(() => {
|
|
1442
1452
|
var b, R, $, w;
|
|
1443
1453
|
return e.isView ? !(((b = g(e.setting.name)) == null ? void 0 : b.split(",").length) > 1) : ((w = ($ = (R = e == null ? void 0 : e.setting) == null ? void 0 : R.options) == null ? void 0 : $.selector) == null ? void 0 : w.isSingle) ?? !0;
|
|
1444
|
-
}), { data:
|
|
1454
|
+
}), { data: l, showData: d, setData: i, getData: g, flowKey: k, setFormRule: s, deleteRule: o, disabledData: v } = e.store || {}, r = p(""), f = p(!0);
|
|
1445
1455
|
!d.value[e.setting.name] && d.value[e.setting.name] != !1 && (d.value[e.setting.name] = !0), M(
|
|
1446
1456
|
() => d.value,
|
|
1447
1457
|
() => {
|
|
1448
|
-
f.value = d.value[e.setting.name], f.value || (r.value = "", L.value = [],
|
|
1458
|
+
f.value = d.value[e.setting.name], f.value || (r.value = "", L.value = [], o(e.setting.name)), f.value && e.setting.options.validateList.length && s(e.setting.name, e.setting.options.validateList);
|
|
1449
1459
|
},
|
|
1450
1460
|
{ deep: !0, immediate: !0 }
|
|
1451
1461
|
);
|
|
@@ -1462,7 +1472,7 @@ const Fa = (n, e) => {
|
|
|
1462
1472
|
confirm: T,
|
|
1463
1473
|
getDetail: I,
|
|
1464
1474
|
searchData: U,
|
|
1465
|
-
searchOptions:
|
|
1475
|
+
searchOptions: A,
|
|
1466
1476
|
linkmanPhone: ee,
|
|
1467
1477
|
equipmentArchivesId: ie,
|
|
1468
1478
|
deviceSpaceInfo: pe
|
|
@@ -1475,17 +1485,17 @@ const Fa = (n, e) => {
|
|
|
1475
1485
|
const ye = p();
|
|
1476
1486
|
if (e.setting.options.tip && (ye.value = X(e.setting.options.tip)), e.setting.options.validateList.length && s(e.setting.name, e.setting.options.validateList), m == "position") {
|
|
1477
1487
|
let b = !1;
|
|
1478
|
-
const R = async (_,
|
|
1479
|
-
!_ || String(_).includes("/") || !String(
|
|
1480
|
-
}, $ = async (_,
|
|
1488
|
+
const R = async (_, q) => {
|
|
1489
|
+
!_ || String(_).includes("/") || !String(q || "").includes("/") || await Ce(String(_));
|
|
1490
|
+
}, $ = async (_, q) => {
|
|
1481
1491
|
if (!(_ != null && _.length)) return;
|
|
1482
|
-
const Z = String(
|
|
1492
|
+
const Z = String(q || "").split(",");
|
|
1483
1493
|
if (!_.some((te, W) => te && !String(te).includes("/") && String(Z[W] || "").includes("/"))) return;
|
|
1484
1494
|
const de = [], se = [];
|
|
1485
1495
|
for (let te = 0; te < _.length; te++) {
|
|
1486
1496
|
const W = _[te], ce = Z[te] || "";
|
|
1487
1497
|
if (W && !String(W).includes("/") && String(ce).includes("/")) {
|
|
1488
|
-
const [ge, oe] = await
|
|
1498
|
+
const [ge, oe] = await Oe().run({ spaceId: W });
|
|
1489
1499
|
de.push(ge ? W : (oe == null ? void 0 : oe.path) || W), se.push(ge ? ce : (oe == null ? void 0 : oe.pathName) || (oe == null ? void 0 : oe.name) || ce);
|
|
1490
1500
|
} else
|
|
1491
1501
|
de.push(W), se.push(ce);
|
|
@@ -1493,38 +1503,38 @@ const Fa = (n, e) => {
|
|
|
1493
1503
|
x.value = de, se.some(Boolean) && (fe.value = se);
|
|
1494
1504
|
}, w = (Q = (N = (De = e.setting.options) == null ? void 0 : De.selector) == null ? void 0 : N.type) == null ? void 0 : Q.positionName;
|
|
1495
1505
|
if (t.value) {
|
|
1496
|
-
const _ = g(e.setting.name) ?? "",
|
|
1506
|
+
const _ = g(e.setting.name) ?? "", q = w ? g(w) : "";
|
|
1497
1507
|
x.value = _, r.value = _ ? String(_).split("/").pop() : r.value, (async () => {
|
|
1498
1508
|
b = !0;
|
|
1499
1509
|
try {
|
|
1500
|
-
await R(String(_ || ""),
|
|
1510
|
+
await R(String(_ || ""), q);
|
|
1501
1511
|
} finally {
|
|
1502
1512
|
await ve(), b = !1;
|
|
1503
1513
|
}
|
|
1504
1514
|
})();
|
|
1505
1515
|
} else {
|
|
1506
|
-
const _ = g(e.setting.name) ? String(g(e.setting.name)).split(",") : [],
|
|
1516
|
+
const _ = g(e.setting.name) ? String(g(e.setting.name)).split(",") : [], q = w ? g(w) : "";
|
|
1507
1517
|
x.value = [..._], r.value = _.map((Z) => Z == null ? void 0 : Z.split("/").pop()), (async () => {
|
|
1508
1518
|
b = !0;
|
|
1509
1519
|
try {
|
|
1510
|
-
await $(_,
|
|
1520
|
+
await $(_, q);
|
|
1511
1521
|
} finally {
|
|
1512
1522
|
await ve(), b = !1;
|
|
1513
1523
|
}
|
|
1514
1524
|
})();
|
|
1515
1525
|
}
|
|
1516
|
-
r.value ||
|
|
1517
|
-
b || (t.value ?
|
|
1526
|
+
r.value || i(e.setting.name, null), M(r, (_) => {
|
|
1527
|
+
b || (t.value ? i(e.setting.name, _) : i(e.setting.name, (_ == null ? void 0 : _.join(",")) || ""));
|
|
1518
1528
|
}), M(fe, (_) => {
|
|
1519
|
-
b || (t.value ?
|
|
1529
|
+
b || (t.value ? i(e.setting.options.selector.type.positionName, _) : i(e.setting.options.selector.type.positionName, (_ == null ? void 0 : _.join(",")) || ""));
|
|
1520
1530
|
}), M(
|
|
1521
1531
|
() => {
|
|
1522
1532
|
var _;
|
|
1523
|
-
return (_ =
|
|
1533
|
+
return (_ = l == null ? void 0 : l.value) == null ? void 0 : _[e.setting.name];
|
|
1524
1534
|
},
|
|
1525
|
-
async (_,
|
|
1535
|
+
async (_, q) => {
|
|
1526
1536
|
var Z, be, de;
|
|
1527
|
-
if (_ !==
|
|
1537
|
+
if (_ !== q) {
|
|
1528
1538
|
b = !0;
|
|
1529
1539
|
try {
|
|
1530
1540
|
if (!_) {
|
|
@@ -1532,15 +1542,15 @@ const Fa = (n, e) => {
|
|
|
1532
1542
|
return;
|
|
1533
1543
|
}
|
|
1534
1544
|
if (!t.value) {
|
|
1535
|
-
const W = String(_).split(","), ce = w ? (Z =
|
|
1545
|
+
const W = String(_).split(","), ce = w ? (Z = l == null ? void 0 : l.value) == null ? void 0 : Z[w] : "";
|
|
1536
1546
|
x.value = W, await ve(), r.value = W.map((ge) => ge == null ? void 0 : ge.split("/").pop()), await $(W, ce);
|
|
1537
1547
|
return;
|
|
1538
1548
|
}
|
|
1539
1549
|
let se = String(_), te = se.split("/").pop();
|
|
1540
1550
|
if (se.includes("/"))
|
|
1541
|
-
x.value = se, w && ((de =
|
|
1551
|
+
x.value = se, w && ((de = l == null ? void 0 : l.value) != null && de[w]) && (fe.value = l.value[w]);
|
|
1542
1552
|
else {
|
|
1543
|
-
const W = w ? (be =
|
|
1553
|
+
const W = w ? (be = l == null ? void 0 : l.value) == null ? void 0 : be[w] : "";
|
|
1544
1554
|
String(W || "").includes("/") ? await Ce(te) : x.value = se;
|
|
1545
1555
|
}
|
|
1546
1556
|
await ve(), r.value === te && (r.value = "", await ve()), r.value = te;
|
|
@@ -1551,40 +1561,40 @@ const Fa = (n, e) => {
|
|
|
1551
1561
|
}
|
|
1552
1562
|
);
|
|
1553
1563
|
} else m == "supplier" ? (r.value = g(e.setting.name) ? [g(e.setting.name)] : [r.value], r.value && I(g(e.setting.name)), M(r, (b) => {
|
|
1554
|
-
|
|
1564
|
+
i(e.setting.name, b == null ? void 0 : b.toString());
|
|
1555
1565
|
}), M(ee, (b) => {
|
|
1556
1566
|
var R, $, w, _;
|
|
1557
|
-
((_ = (w = ($ = (R = e == null ? void 0 : e.setting) == null ? void 0 : R.options) == null ? void 0 : $.selector) == null ? void 0 : w.type) == null ? void 0 : _.supplierPhone) !== void 0 &&
|
|
1558
|
-
})) : m == "device" ? (r.value = g(e.setting.name) ? g(e.setting.name) : r.value, r.value && I(r.value), r.value.length ||
|
|
1567
|
+
((_ = (w = ($ = (R = e == null ? void 0 : e.setting) == null ? void 0 : R.options) == null ? void 0 : $.selector) == null ? void 0 : w.type) == null ? void 0 : _.supplierPhone) !== void 0 && i(e.setting.options.selector.type.supplierPhone, b);
|
|
1568
|
+
})) : m == "device" ? (r.value = g(e.setting.name) ? g(e.setting.name) : r.value, r.value && I(r.value), r.value.length || i(e.setting.name, null), pe.value = {
|
|
1559
1569
|
spaceId: g("wzid") || "",
|
|
1560
1570
|
spacePath: "",
|
|
1561
1571
|
spacePathName: g("wzmc") || ""
|
|
1562
1572
|
}, M(L, (b) => {
|
|
1563
|
-
r.value = b.map((R) => R.value).toString(),
|
|
1573
|
+
r.value = b.map((R) => R.value).toString(), i(e.setting.name, r.value);
|
|
1564
1574
|
}), M(ie, (b) => {
|
|
1565
|
-
|
|
1575
|
+
i("equipment_archives_id", b || null);
|
|
1566
1576
|
}), M(
|
|
1567
1577
|
pe,
|
|
1568
1578
|
async (b) => {
|
|
1569
1579
|
if (!(b != null && b.spaceId)) return;
|
|
1570
|
-
const [R, $] = await
|
|
1580
|
+
const [R, $] = await Oe().run({ spaceId: b.spaceId });
|
|
1571
1581
|
if (R) {
|
|
1572
|
-
|
|
1582
|
+
i("wzid", b.spaceId), i("wzmc", b.spacePathName || "");
|
|
1573
1583
|
return;
|
|
1574
1584
|
}
|
|
1575
|
-
|
|
1585
|
+
i("wzid", ($ == null ? void 0 : $.path) || b.spaceId), i("wzmc", ($ == null ? void 0 : $.pathName) || b.spacePathName || "");
|
|
1576
1586
|
},
|
|
1577
1587
|
{
|
|
1578
1588
|
deep: !0
|
|
1579
1589
|
}
|
|
1580
|
-
)) : (r.value = g(e.setting.name) ? g(e.setting.name) : r.value, r.value && I(r.value), r.value.length ||
|
|
1581
|
-
r.value = b.map((R) => R.value).toString(),
|
|
1590
|
+
)) : (r.value = g(e.setting.name) ? g(e.setting.name) : r.value, r.value && I(r.value), r.value.length || i(e.setting.name, null), M(L, (b) => {
|
|
1591
|
+
r.value = b.map((R) => R.value).toString(), i(e.setting.name, r.value);
|
|
1582
1592
|
}));
|
|
1583
1593
|
return (b, R) => (V(), H(
|
|
1584
1594
|
le,
|
|
1585
1595
|
null,
|
|
1586
1596
|
[
|
|
1587
|
-
f.value && a(m) != "position" ? (V(),
|
|
1597
|
+
f.value && a(m) != "position" ? (V(), E(a(J), {
|
|
1588
1598
|
key: 0,
|
|
1589
1599
|
col: e.span,
|
|
1590
1600
|
modelValue: r.value,
|
|
@@ -1603,7 +1613,7 @@ const Fa = (n, e) => {
|
|
|
1603
1613
|
default: F(() => {
|
|
1604
1614
|
var $;
|
|
1605
1615
|
return [
|
|
1606
|
-
z(a(
|
|
1616
|
+
z(a(qt), {
|
|
1607
1617
|
"append-to-body": "",
|
|
1608
1618
|
modelValue: a(C),
|
|
1609
1619
|
"onUpdate:modelValue": R[0] || (R[0] = (w) => Re(C) ? C.value = w : null),
|
|
@@ -1615,13 +1625,13 @@ const Fa = (n, e) => {
|
|
|
1615
1625
|
_: 2
|
|
1616
1626
|
/* DYNAMIC */
|
|
1617
1627
|
}, [
|
|
1618
|
-
(($ = a(
|
|
1628
|
+
(($ = a(A)) == null ? void 0 : $.length) > 0 ? {
|
|
1619
1629
|
name: "table-header-search",
|
|
1620
1630
|
fn: F(() => [
|
|
1621
1631
|
Xe("div", Ya, [
|
|
1622
|
-
z(a(
|
|
1632
|
+
z(a(At), {
|
|
1623
1633
|
labelLength: "6",
|
|
1624
|
-
options: a(
|
|
1634
|
+
options: a(A),
|
|
1625
1635
|
onConfirm: a(U),
|
|
1626
1636
|
"is-margin-right": !1,
|
|
1627
1637
|
isExpandAtFocus: a(m) !== "device"
|
|
@@ -1646,7 +1656,7 @@ const Fa = (n, e) => {
|
|
|
1646
1656
|
prop: "sensitivePhone"
|
|
1647
1657
|
}, {
|
|
1648
1658
|
default: F(({ row: w }) => [
|
|
1649
|
-
z(a(
|
|
1659
|
+
z(a(Ee), {
|
|
1650
1660
|
placement: "top",
|
|
1651
1661
|
content: w.phone,
|
|
1652
1662
|
disabled: !w.phone
|
|
@@ -1795,7 +1805,7 @@ const Fa = (n, e) => {
|
|
|
1795
1805
|
prop: "classificationName"
|
|
1796
1806
|
}, {
|
|
1797
1807
|
default: F(() => [
|
|
1798
|
-
|
|
1808
|
+
B(` <template #default="{row}">\r
|
|
1799
1809
|
{{ getSupplierName(row) }}\r
|
|
1800
1810
|
</template> `)
|
|
1801
1811
|
]),
|
|
@@ -1865,7 +1875,7 @@ const Fa = (n, e) => {
|
|
|
1865
1875
|
prop: "sensitivePhone"
|
|
1866
1876
|
}, {
|
|
1867
1877
|
default: F(({ row: w }) => [
|
|
1868
|
-
z(a(
|
|
1878
|
+
z(a(Ee), {
|
|
1869
1879
|
placement: "top",
|
|
1870
1880
|
content: w.phone,
|
|
1871
1881
|
disabled: !w.phone
|
|
@@ -1910,8 +1920,8 @@ const Fa = (n, e) => {
|
|
|
1910
1920
|
}),
|
|
1911
1921
|
_: 1
|
|
1912
1922
|
/* STABLE */
|
|
1913
|
-
}, 8, ["col", "modelValue", "prop", "label", "options", "helpMessage", "isView", "disabled", "required", "placeholder", "onOpenDialog"])) :
|
|
1914
|
-
f.value && a(m) == "position" ? (V(),
|
|
1923
|
+
}, 8, ["col", "modelValue", "prop", "label", "options", "helpMessage", "isView", "disabled", "required", "placeholder", "onOpenDialog"])) : B("v-if", !0),
|
|
1924
|
+
f.value && a(m) == "position" ? (V(), E(a(J), {
|
|
1915
1925
|
key: 1,
|
|
1916
1926
|
col: e.span,
|
|
1917
1927
|
label: b.setting.desc,
|
|
@@ -1938,13 +1948,13 @@ const Fa = (n, e) => {
|
|
|
1938
1948
|
},
|
|
1939
1949
|
onChange: a(Ue),
|
|
1940
1950
|
mode: t.value ? "" : "multiple"
|
|
1941
|
-
}, null, 8, ["col", "label", "prop", "helpMessage", "placeholder", "required", "modelValue", "keyword", "path", "isView", "disabled", "load", "search", "onChange", "mode"])) :
|
|
1951
|
+
}, null, 8, ["col", "label", "prop", "helpMessage", "placeholder", "required", "modelValue", "keyword", "path", "isView", "disabled", "load", "search", "onChange", "mode"])) : B("v-if", !0)
|
|
1942
1952
|
],
|
|
1943
1953
|
64
|
|
1944
1954
|
/* STABLE_FRAGMENT */
|
|
1945
1955
|
));
|
|
1946
1956
|
}
|
|
1947
|
-
}), Wa = /* @__PURE__ */ Te(Ha, [["__scopeId", "data-v-
|
|
1957
|
+
}), Wa = /* @__PURE__ */ Te(Ha, [["__scopeId", "data-v-8d54e214"]]), yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1948
1958
|
__proto__: null,
|
|
1949
1959
|
default: Wa
|
|
1950
1960
|
}, Symbol.toStringTag, { value: "Module" })), Za = {
|
|
@@ -1971,24 +1981,24 @@ const Fa = (n, e) => {
|
|
|
1971
1981
|
store: {}
|
|
1972
1982
|
},
|
|
1973
1983
|
setup(n) {
|
|
1974
|
-
const e = n, { showData: t, disabledData:
|
|
1984
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: g, deleteRule: k } = e.store || {}, s = p(), o = p(!0);
|
|
1975
1985
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
1976
1986
|
() => t.value,
|
|
1977
1987
|
() => {
|
|
1978
|
-
|
|
1988
|
+
o.value = t.value[e.setting.name], o.value || (s.value = "", k(e.setting.name)), o.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
1979
1989
|
},
|
|
1980
1990
|
{ deep: !0, immediate: !0 }
|
|
1981
|
-
),
|
|
1982
|
-
const { baseURL: v } =
|
|
1991
|
+
), l.value[e.setting.name];
|
|
1992
|
+
const { baseURL: v } = Et(), r = p(!1);
|
|
1983
1993
|
ne(e.setting.options.validateList).then((C) => {
|
|
1984
1994
|
r.value = C;
|
|
1985
1995
|
});
|
|
1986
1996
|
const f = p("info"), c = p();
|
|
1987
|
-
if (e.setting.options.tip && (c.value = X(e.setting.options.tip)),
|
|
1988
|
-
const C = JSON.parse(
|
|
1997
|
+
if (e.setting.options.tip && (c.value = X(e.setting.options.tip)), i(e.setting.name)) {
|
|
1998
|
+
const C = JSON.parse(i(e.setting.name));
|
|
1989
1999
|
s.value = v + C[0].url;
|
|
1990
2000
|
}
|
|
1991
|
-
return e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), (C, y) => e.isView &&
|
|
2001
|
+
return e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), (C, y) => e.isView && o.value ? (V(), E(a(J), {
|
|
1992
2002
|
key: 0,
|
|
1993
2003
|
modelValue: s.value,
|
|
1994
2004
|
"onUpdate:modelValue": y[2] || (y[2] = (D) => s.value = D),
|
|
@@ -2013,7 +2023,7 @@ const Fa = (n, e) => {
|
|
|
2013
2023
|
]),
|
|
2014
2024
|
_: 1
|
|
2015
2025
|
/* STABLE */
|
|
2016
|
-
}, 8, ["modelValue", "prop", "label", "helpMessage", "required", "col"])) :
|
|
2026
|
+
}, 8, ["modelValue", "prop", "label", "helpMessage", "required", "col"])) : B("v-if", !0);
|
|
2017
2027
|
}
|
|
2018
2028
|
}), tn = /* @__PURE__ */ Te(en, [["__scopeId", "data-v-b30e3d77"]]), bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2019
2029
|
__proto__: null,
|
|
@@ -2036,24 +2046,24 @@ const Fa = (n, e) => {
|
|
|
2036
2046
|
store: {}
|
|
2037
2047
|
},
|
|
2038
2048
|
setup(n) {
|
|
2039
|
-
const e = n, { showData: t, disabledData:
|
|
2049
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: g, deleteRule: k } = e.store || {}, s = p(), o = p(!0);
|
|
2040
2050
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
2041
2051
|
() => t.value,
|
|
2042
2052
|
() => {
|
|
2043
|
-
|
|
2053
|
+
o.value = t.value[e.setting.name], o.value || (s.value = null, k(e.setting.name)), o.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
2044
2054
|
},
|
|
2045
2055
|
{ deep: !0, immediate: !0 }
|
|
2046
2056
|
);
|
|
2047
|
-
const v =
|
|
2057
|
+
const v = l.value[e.setting.name] || !1, r = p(!1);
|
|
2048
2058
|
ne(e.setting.options.validateList).then((c) => {
|
|
2049
2059
|
r.value = c;
|
|
2050
2060
|
});
|
|
2051
2061
|
const f = p();
|
|
2052
2062
|
return e.setting.options.tip && (f.value = X(e.setting.options.tip)), setTimeout(() => {
|
|
2053
|
-
s.value =
|
|
2063
|
+
s.value = i(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
|
|
2054
2064
|
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(s, (c) => {
|
|
2055
2065
|
d(e.setting.name, c);
|
|
2056
|
-
}), (c, C) =>
|
|
2066
|
+
}), (c, C) => o.value ? (V(), E(a(J), {
|
|
2057
2067
|
key: 0,
|
|
2058
2068
|
col: e.span,
|
|
2059
2069
|
modelValue: s.value,
|
|
@@ -2069,7 +2079,7 @@ const Fa = (n, e) => {
|
|
|
2069
2079
|
disabled: a(v),
|
|
2070
2080
|
required: r.value,
|
|
2071
2081
|
isView: e.isView
|
|
2072
|
-
}, null, 8, ["col", "modelValue", "label", "prop", "activeValue", "inactiveValue", "activeText", "inactiveText", "helpMessage", "disabled", "required", "isView"])) :
|
|
2082
|
+
}, null, 8, ["col", "modelValue", "label", "prop", "activeValue", "inactiveValue", "activeText", "inactiveText", "helpMessage", "disabled", "required", "isView"])) : B("v-if", !0);
|
|
2073
2083
|
}
|
|
2074
2084
|
}), wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2075
2085
|
__proto__: null,
|
|
@@ -2092,18 +2102,18 @@ const Fa = (n, e) => {
|
|
|
2092
2102
|
store: {}
|
|
2093
2103
|
},
|
|
2094
2104
|
setup(n) {
|
|
2095
|
-
const e = n, { showData: t, disabledData:
|
|
2105
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: g, deleteRule: k } = e.store || {}, s = p(), o = p(!0);
|
|
2096
2106
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
2097
2107
|
() => t.value,
|
|
2098
2108
|
() => {
|
|
2099
|
-
|
|
2109
|
+
o.value = t.value[e.setting.name], o.value || (s.value = null, k(e.setting.name)), o.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
2100
2110
|
},
|
|
2101
2111
|
{ deep: !0, immediate: !0 }
|
|
2102
2112
|
);
|
|
2103
2113
|
const v = p();
|
|
2104
|
-
return e.setting.options.tip && (v.value = X(e.setting.options.tip)), s.value = e.setting.options.textValue, s.value =
|
|
2114
|
+
return e.setting.options.tip && (v.value = X(e.setting.options.tip)), s.value = e.setting.options.textValue, s.value = i(e.setting.name) || s.value, s.value || d(e.setting.name, null), M(s, (r) => {
|
|
2105
2115
|
d(e.setting.name, r);
|
|
2106
|
-
}), (r, f) =>
|
|
2116
|
+
}), (r, f) => o.value ? (V(), E(a(J), {
|
|
2107
2117
|
key: 0,
|
|
2108
2118
|
col: e.span,
|
|
2109
2119
|
modelValue: s.value,
|
|
@@ -2121,7 +2131,7 @@ const Fa = (n, e) => {
|
|
|
2121
2131
|
]),
|
|
2122
2132
|
_: 1
|
|
2123
2133
|
/* STABLE */
|
|
2124
|
-
}, 8, ["col", "modelValue", "label", "helpMessage"])) :
|
|
2134
|
+
}, 8, ["col", "modelValue", "label", "helpMessage"])) : B("v-if", !0);
|
|
2125
2135
|
}
|
|
2126
2136
|
}), _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2127
2137
|
__proto__: null,
|
|
@@ -2144,21 +2154,21 @@ const Fa = (n, e) => {
|
|
|
2144
2154
|
store: {}
|
|
2145
2155
|
},
|
|
2146
2156
|
setup(n) {
|
|
2147
|
-
const e = n, { showData: t, disabledData:
|
|
2157
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: g, deleteRule: k } = e.store || {}, s = p(""), o = p(!0);
|
|
2148
2158
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
2149
2159
|
() => t.value,
|
|
2150
2160
|
() => {
|
|
2151
|
-
|
|
2161
|
+
o.value = t.value[e.setting.name], o.value || (s.value = "", k(e.setting.name)), o.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
2152
2162
|
},
|
|
2153
2163
|
{ deep: !0, immediate: !0 }
|
|
2154
2164
|
);
|
|
2155
|
-
const v =
|
|
2165
|
+
const v = l.value[e.setting.name] || !1, r = p(!1);
|
|
2156
2166
|
ne(e.setting.options.validateList).then((y) => {
|
|
2157
2167
|
r.value = y;
|
|
2158
2168
|
});
|
|
2159
2169
|
const f = p();
|
|
2160
2170
|
e.setting.options.tip && (f.value = X(e.setting.options.tip)), setTimeout(() => {
|
|
2161
|
-
s.value =
|
|
2171
|
+
s.value = i(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
|
|
2162
2172
|
}, 50);
|
|
2163
2173
|
const c = p(), C = p();
|
|
2164
2174
|
return c.value = e.setting.options.initialFrameWidth ? e.setting.options.initialFrameWidth + "px" : "", C.value = e.setting.options.initialFrameHeight ? e.setting.options.initialFrameHeight + "px" : "", e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(s, (y) => {
|
|
@@ -2167,7 +2177,7 @@ const Fa = (n, e) => {
|
|
|
2167
2177
|
le,
|
|
2168
2178
|
null,
|
|
2169
2179
|
[
|
|
2170
|
-
!y.setting.options.isEditor &&
|
|
2180
|
+
!y.setting.options.isEditor && o.value ? (V(), E(a(J), {
|
|
2171
2181
|
key: 0,
|
|
2172
2182
|
col: e.span,
|
|
2173
2183
|
label: y.setting.desc,
|
|
@@ -2185,8 +2195,8 @@ const Fa = (n, e) => {
|
|
|
2185
2195
|
"show-word-limit": "",
|
|
2186
2196
|
helpMessage: f.value,
|
|
2187
2197
|
required: r.value
|
|
2188
|
-
}, null, 8, ["col", "label", "modelValue", "prop", "placeholder", "disabled", "isView", "helpMessage", "required"])) :
|
|
2189
|
-
y.setting.options.isEditor &&
|
|
2198
|
+
}, null, 8, ["col", "label", "modelValue", "prop", "placeholder", "disabled", "isView", "helpMessage", "required"])) : B("v-if", !0),
|
|
2199
|
+
y.setting.options.isEditor && o.value ? (V(), E(a(J), {
|
|
2190
2200
|
key: 1,
|
|
2191
2201
|
modelValue: s.value,
|
|
2192
2202
|
"onUpdate:modelValue": D[2] || (D[2] = (m) => s.value = m),
|
|
@@ -2210,7 +2220,7 @@ const Fa = (n, e) => {
|
|
|
2210
2220
|
]),
|
|
2211
2221
|
_: 1
|
|
2212
2222
|
/* STABLE */
|
|
2213
|
-
}, 8, ["modelValue", "prop", "contentWidth", "label", "helpMessage", "required", "readOnly"])) :
|
|
2223
|
+
}, 8, ["modelValue", "prop", "contentWidth", "label", "helpMessage", "required", "readOnly"])) : B("v-if", !0)
|
|
2214
2224
|
],
|
|
2215
2225
|
64
|
|
2216
2226
|
/* STABLE_FRAGMENT */
|
|
@@ -2237,25 +2247,25 @@ const Fa = (n, e) => {
|
|
|
2237
2247
|
store: {}
|
|
2238
2248
|
},
|
|
2239
2249
|
setup(n) {
|
|
2240
|
-
const e = n, { showData: t, disabledData:
|
|
2250
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: g, deleteRule: k } = e.store || {}, s = p(), o = p(!0);
|
|
2241
2251
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
2242
2252
|
() => t.value,
|
|
2243
2253
|
() => {
|
|
2244
|
-
|
|
2254
|
+
o.value = t.value[e.setting.name], o.value || (s.value = null, k(e.setting.name)), o.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
2245
2255
|
},
|
|
2246
2256
|
{ deep: !0, immediate: !0 }
|
|
2247
2257
|
);
|
|
2248
|
-
const v =
|
|
2258
|
+
const v = l.value[e.setting.name] || !1, r = p(!1);
|
|
2249
2259
|
ne(e.setting.options.validateList).then((c) => {
|
|
2250
2260
|
r.value = c;
|
|
2251
2261
|
});
|
|
2252
2262
|
const f = p();
|
|
2253
2263
|
return e.setting.options.tip && (f.value = X(e.setting.options.tip)), setTimeout(() => {
|
|
2254
2264
|
const c = Me().format("YYYY-MM-DD ");
|
|
2255
|
-
|
|
2265
|
+
i(e.setting.name) && (s.value = i(e.setting.name)), e.setting.options.formulasDiyJs && (s.value = Me(c + e.setting.options.formulasDiyJs)), s.value || d(e.setting.name, null);
|
|
2256
2266
|
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(s, (c) => {
|
|
2257
2267
|
d(e.setting.name, c);
|
|
2258
|
-
}), (c, C) =>
|
|
2268
|
+
}), (c, C) => o.value ? (V(), E(a(J), {
|
|
2259
2269
|
key: 0,
|
|
2260
2270
|
col: e.span,
|
|
2261
2271
|
modelValue: s.value,
|
|
@@ -2267,7 +2277,7 @@ const Fa = (n, e) => {
|
|
|
2267
2277
|
isView: e.isView,
|
|
2268
2278
|
required: r.value,
|
|
2269
2279
|
disabled: a(v)
|
|
2270
|
-
}, null, 8, ["col", "modelValue", "prop", "label", "helpMessage", "isView", "required", "disabled"])) :
|
|
2280
|
+
}, null, 8, ["col", "modelValue", "prop", "label", "helpMessage", "isView", "required", "disabled"])) : B("v-if", !0);
|
|
2271
2281
|
}
|
|
2272
2282
|
}), Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2273
2283
|
__proto__: null,
|
|
@@ -2289,15 +2299,15 @@ const Fa = (n, e) => {
|
|
|
2289
2299
|
}
|
|
2290
2300
|
},
|
|
2291
2301
|
setup(n) {
|
|
2292
|
-
const e = p([]), t = n.columns.map((
|
|
2293
|
-
const d =
|
|
2294
|
-
(
|
|
2302
|
+
const e = p([]), t = n.columns.map((l) => {
|
|
2303
|
+
const d = l.list.map(
|
|
2304
|
+
(i) => Se(Ne[i.ctrlType], { setting: i, isView: n.isView, store: n.store })
|
|
2295
2305
|
);
|
|
2296
|
-
return
|
|
2306
|
+
return l.isOpen == !0 && e.value.push(l.idKey), Se(
|
|
2297
2307
|
st,
|
|
2298
2308
|
{
|
|
2299
|
-
header:
|
|
2300
|
-
key: `${
|
|
2309
|
+
header: l.span,
|
|
2310
|
+
key: `${l.idKey}`
|
|
2301
2311
|
},
|
|
2302
2312
|
Se("div", d)
|
|
2303
2313
|
);
|
|
@@ -2343,7 +2353,7 @@ const Fa = (n, e) => {
|
|
|
2343
2353
|
store: {}
|
|
2344
2354
|
},
|
|
2345
2355
|
setup(n) {
|
|
2346
|
-
return (e, t) => (V(),
|
|
2356
|
+
return (e, t) => (V(), E(a(dn), {
|
|
2347
2357
|
columns: e.setting.columns,
|
|
2348
2358
|
options: e.setting.options,
|
|
2349
2359
|
isView: e.isView,
|
|
@@ -2383,12 +2393,12 @@ const Fa = (n, e) => {
|
|
|
2383
2393
|
},
|
|
2384
2394
|
setup(n) {
|
|
2385
2395
|
const e = n;
|
|
2386
|
-
return (t,
|
|
2396
|
+
return (t, l) => (V(), H(
|
|
2387
2397
|
le,
|
|
2388
2398
|
null,
|
|
2389
2399
|
[
|
|
2390
|
-
|
|
2391
|
-
|
|
2400
|
+
B(' <GridLayout :columns="setting.columns" :isView="props.isView" :store="store"></GridLayout> '),
|
|
2401
|
+
B(' <div style="display: flex; flex-direction: row; flex-wrap: wrap; width: 100%"> '),
|
|
2392
2402
|
(V(!0), H(
|
|
2393
2403
|
le,
|
|
2394
2404
|
null,
|
|
@@ -2399,8 +2409,8 @@ const Fa = (n, e) => {
|
|
|
2399
2409
|
(V(!0), H(
|
|
2400
2410
|
le,
|
|
2401
2411
|
null,
|
|
2402
|
-
ke(d.list, (
|
|
2403
|
-
setting:
|
|
2412
|
+
ke(d.list, (i) => (V(), E(Le(a(bn)[i.ctrlType]), {
|
|
2413
|
+
setting: i,
|
|
2404
2414
|
isView: e.isView,
|
|
2405
2415
|
store: t.store,
|
|
2406
2416
|
span: d.span
|
|
@@ -2415,7 +2425,7 @@ const Fa = (n, e) => {
|
|
|
2415
2425
|
256
|
|
2416
2426
|
/* UNKEYED_FRAGMENT */
|
|
2417
2427
|
)),
|
|
2418
|
-
|
|
2428
|
+
B(" </div> ")
|
|
2419
2429
|
],
|
|
2420
2430
|
2112
|
|
2421
2431
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
@@ -2424,18 +2434,18 @@ const Fa = (n, e) => {
|
|
|
2424
2434
|
}), hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2425
2435
|
__proto__: null,
|
|
2426
2436
|
default: fn
|
|
2427
|
-
}, Symbol.toStringTag, { value: "Module" })), je = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": rt, "./base/autocomplete.vue": ut, "./base/checkbox.vue": pt, "./base/date.vue": dt, "./base/dropdown.vue": ct, "./base/imageViewer.vue": gt, "./base/input.vue": mt, "./base/number.vue": vt, "./base/radio.vue": ft, "./base/select.vue": ht, "./base/selector.vue": yt, "./base/soundRecording.vue": bt, "./base/switch.vue": wt, "./base/text.vue": _t, "./base/textarea.vue": Ct, "./base/time.vue": Dt, "./layout/accordion/accordion.vue": mn, "./layout/grid/gridLayout.vue": hn }), Ke = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": rt, "./base/autocomplete.vue": ut, "./base/checkbox.vue": pt, "./base/date.vue": dt, "./base/dropdown.vue": ct, "./base/imageViewer.vue": gt, "./base/input.vue": mt, "./base/number.vue": vt, "./base/radio.vue": ft, "./base/select.vue": ht, "./base/selector.vue": yt, "./base/soundRecording.vue": bt, "./base/switch.vue": wt, "./base/text.vue": _t, "./base/textarea.vue": Ct, "./base/time.vue": Dt }),
|
|
2437
|
+
}, Symbol.toStringTag, { value: "Module" })), je = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": rt, "./base/autocomplete.vue": ut, "./base/checkbox.vue": pt, "./base/date.vue": dt, "./base/dropdown.vue": ct, "./base/imageViewer.vue": gt, "./base/input.vue": mt, "./base/number.vue": vt, "./base/radio.vue": ft, "./base/select.vue": ht, "./base/selector.vue": yt, "./base/soundRecording.vue": bt, "./base/switch.vue": wt, "./base/text.vue": _t, "./base/textarea.vue": Ct, "./base/time.vue": Dt, "./layout/accordion/accordion.vue": mn, "./layout/grid/gridLayout.vue": hn }), Ke = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": rt, "./base/autocomplete.vue": ut, "./base/checkbox.vue": pt, "./base/date.vue": dt, "./base/dropdown.vue": ct, "./base/imageViewer.vue": gt, "./base/input.vue": mt, "./base/number.vue": vt, "./base/radio.vue": ft, "./base/select.vue": ht, "./base/selector.vue": yt, "./base/soundRecording.vue": bt, "./base/switch.vue": wt, "./base/text.vue": _t, "./base/textarea.vue": Ct, "./base/time.vue": Dt }), Ae = /* @__PURE__ */ Object.assign({}), qe = /* @__PURE__ */ Object.assign({}), Ne = {}, St = {}, kt = {}, yn = {};
|
|
2428
2438
|
Object.keys(Ke).map((n) => St[Ke[n].default.name] = Ke[n].default);
|
|
2429
|
-
Object.keys(
|
|
2430
|
-
Object.keys(
|
|
2439
|
+
Object.keys(Ae).map((n) => kt[Ae[n].default.name] = Ae[n].default);
|
|
2440
|
+
Object.keys(qe).map((n) => yn[qe[n].default.name] = qe[n].default);
|
|
2431
2441
|
Object.keys(je).map((n) => Ne[je[n].default.name] = je[n].default);
|
|
2432
|
-
const bn = { ...St, ...kt }, wn = (n, e, t,
|
|
2442
|
+
const bn = { ...St, ...kt }, wn = (n, e, t, l) => {
|
|
2433
2443
|
(!e || e.toString() === "") && parseInt(e) !== 0 ? t(new Error(`${S("*必填")}`)) : t();
|
|
2434
|
-
}, _n = (n, e, t,
|
|
2435
|
-
e !== "" && e.length > parseInt(
|
|
2436
|
-
}, Cn = (n, e, t,
|
|
2437
|
-
e !== "" && e.length < parseInt(
|
|
2438
|
-
}, Dn = (n, e, t,
|
|
2444
|
+
}, _n = (n, e, t, l) => {
|
|
2445
|
+
e !== "" && e.length > parseInt(l.value) ? t(new Error(`${S("最大文本长度")}${S("不能超过")}${l.value}`)) : t();
|
|
2446
|
+
}, Cn = (n, e, t, l) => {
|
|
2447
|
+
e !== "" && e.length < parseInt(l.value) ? t(new Error(`${S("最小文本长度")}${S("不能少于")}${l.value}`)) : t();
|
|
2448
|
+
}, Dn = (n, e, t, l) => {
|
|
2439
2449
|
if (e !== "" && !/^1[3456789]\d{9}$/.test(e))
|
|
2440
2450
|
return t(new Error(S("手机号码格式不正确,请重新输入"))), !1;
|
|
2441
2451
|
t();
|
|
@@ -2447,21 +2457,21 @@ const bn = { ...St, ...kt }, wn = (n, e, t, o) => {
|
|
|
2447
2457
|
if (e !== "" && !/^-?\d+$/.test(e))
|
|
2448
2458
|
return t(new Error(S("请输入整数"))), !1;
|
|
2449
2459
|
t();
|
|
2450
|
-
}, Nn = (n, e, t,
|
|
2451
|
-
if (e !== "" && e !=
|
|
2460
|
+
}, Nn = (n, e, t, l) => {
|
|
2461
|
+
if (e !== "" && e != l.value)
|
|
2452
2462
|
return t(new Error(S("请输入相同的值"))), !1;
|
|
2453
2463
|
t();
|
|
2454
|
-
}, Vn = (n, e, t,
|
|
2455
|
-
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e < parseFloat(
|
|
2456
|
-
}, Ln = (n, e, t,
|
|
2457
|
-
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e > parseFloat(
|
|
2458
|
-
}, zn = (n, e, t,
|
|
2459
|
-
const d = /^[+-]?(\d*\.\d+([eE]?[+-]?\d+)?|\d+[eE][+-]?\d+)$/,
|
|
2460
|
-
e === "" ? t() : d.test(e) ||
|
|
2461
|
-
}, Mn = (n, e, t,
|
|
2462
|
-
e === "" || parseFloat(e) === parseFloat(
|
|
2463
|
-
}, In = (n, e, t,
|
|
2464
|
-
e === "" ? t() : /^-?\d+$/.test(e) ? Math.abs(e).toString().length === parseInt(
|
|
2464
|
+
}, Vn = (n, e, t, l) => {
|
|
2465
|
+
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e < parseFloat(l.value) ? t(new Error(`${l.name}${S("不能小于")}${l.value}`)) : t() : t(new Error(S("请输入数字")));
|
|
2466
|
+
}, Ln = (n, e, t, l) => {
|
|
2467
|
+
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e > parseFloat(l.value) ? t(new Error(`${l.name}${S("不能大于")}${l.value}`)) : t() : t(new Error(S("请输入数字")));
|
|
2468
|
+
}, zn = (n, e, t, l) => {
|
|
2469
|
+
const d = /^[+-]?(\d*\.\d+([eE]?[+-]?\d+)?|\d+[eE][+-]?\d+)$/, i = /^-?\d+$/;
|
|
2470
|
+
e === "" ? t() : d.test(e) || i.test(e) ? e >= parseFloat(l.start) && e <= parseFloat(l.end) ? t() : t(new Error(`${S("只能输入指定数字范围")}${l.start}-${l.end}`)) : t(new Error(S("请输入数字")));
|
|
2471
|
+
}, Mn = (n, e, t, l) => {
|
|
2472
|
+
e === "" || parseFloat(e) === parseFloat(l.value) ? t() : t(new Error(`${S("只能输入指定的值")}${l.value}`));
|
|
2473
|
+
}, In = (n, e, t, l) => {
|
|
2474
|
+
e === "" ? t() : /^-?\d+$/.test(e) ? Math.abs(e).toString().length === parseInt(l.value) ? t() : t(new Error(`${S("只能输入")}${l.value}${S("位数数字")}`)) : t(new Error(S("请输入整数")));
|
|
2465
2475
|
}, Tn = (n, e, t) => {
|
|
2466
2476
|
if (e !== "" && !/^[a-zA-Z]{1,}$/.test(e))
|
|
2467
2477
|
return t(new Error(S("只能输入字母"))), !1;
|
|
@@ -2478,10 +2488,10 @@ const bn = { ...St, ...kt }, wn = (n, e, t, o) => {
|
|
|
2478
2488
|
if (e !== "" && !/^[0-9a-zA-Z]{1,}$/.test(e))
|
|
2479
2489
|
return t(new Error(S("只能输入字母数字"))), !1;
|
|
2480
2490
|
t();
|
|
2481
|
-
}, Fn = (n, e, t,
|
|
2482
|
-
const d = new RegExp(
|
|
2491
|
+
}, Fn = (n, e, t, l) => {
|
|
2492
|
+
const d = new RegExp(l.value);
|
|
2483
2493
|
if (e !== "" && !d.test(e))
|
|
2484
|
-
return t(new Error(
|
|
2494
|
+
return t(new Error(l.errorMessage)), !1;
|
|
2485
2495
|
t();
|
|
2486
2496
|
}, jn = {
|
|
2487
2497
|
required: wn,
|
|
@@ -2502,15 +2512,15 @@ const bn = { ...St, ...kt }, wn = (n, e, t, o) => {
|
|
|
2502
2512
|
alpha_num: $n,
|
|
2503
2513
|
regex: Fn
|
|
2504
2514
|
}, Kn = () => {
|
|
2505
|
-
const n = p({}), e = p([]), t = p({}),
|
|
2515
|
+
const n = p({}), e = p([]), t = p({}), l = p({}), d = p([]), i = p(""), g = p(""), k = p({}), s = p([]), o = p({});
|
|
2506
2516
|
return {
|
|
2507
2517
|
data: n,
|
|
2508
2518
|
formData: e,
|
|
2509
2519
|
formRule: k,
|
|
2510
2520
|
showData: t,
|
|
2511
|
-
disabledData:
|
|
2512
|
-
flowKey:
|
|
2513
|
-
linkData:
|
|
2521
|
+
disabledData: l,
|
|
2522
|
+
flowKey: i,
|
|
2523
|
+
linkData: o,
|
|
2514
2524
|
encryptionData: s,
|
|
2515
2525
|
setData: (h, u) => {
|
|
2516
2526
|
const P = { ...n.value, [h]: u };
|
|
@@ -2524,7 +2534,7 @@ const bn = { ...St, ...kt }, wn = (n, e, t, o) => {
|
|
|
2524
2534
|
});
|
|
2525
2535
|
},
|
|
2526
2536
|
setLinkData: (h, u) => {
|
|
2527
|
-
|
|
2537
|
+
o.value = { data: h, val: u };
|
|
2528
2538
|
},
|
|
2529
2539
|
getData: (h) => {
|
|
2530
2540
|
var u;
|
|
@@ -2555,13 +2565,13 @@ const bn = { ...St, ...kt }, wn = (n, e, t, o) => {
|
|
|
2555
2565
|
delete k.value[h];
|
|
2556
2566
|
}
|
|
2557
2567
|
};
|
|
2558
|
-
},
|
|
2568
|
+
}, An = { class: "custom-page" }, qn = {
|
|
2559
2569
|
key: 0,
|
|
2560
2570
|
class: "btn-box"
|
|
2561
|
-
},
|
|
2571
|
+
}, En = {
|
|
2562
2572
|
key: 1,
|
|
2563
2573
|
style: { "background-color": "#fff" }
|
|
2564
|
-
},
|
|
2574
|
+
}, On = /* @__PURE__ */ Y({
|
|
2565
2575
|
__name: "App",
|
|
2566
2576
|
props: {
|
|
2567
2577
|
formConfigurationId: {},
|
|
@@ -2575,11 +2585,11 @@ const bn = { ...St, ...kt }, wn = (n, e, t, o) => {
|
|
|
2575
2585
|
},
|
|
2576
2586
|
emits: ["handleClick", "change"],
|
|
2577
2587
|
setup(n, { expose: e, emit: t }) {
|
|
2578
|
-
const
|
|
2579
|
-
g.value =
|
|
2588
|
+
const l = Kn(), { formRule: d, data: i, flowKey: g, clearData: k, getFormData: s } = l, o = n, v = t;
|
|
2589
|
+
g.value = o.flowKey;
|
|
2580
2590
|
const r = (P) => P === "accordion";
|
|
2581
2591
|
M(
|
|
2582
|
-
() =>
|
|
2592
|
+
() => i.value,
|
|
2583
2593
|
(P) => {
|
|
2584
2594
|
v("change", P);
|
|
2585
2595
|
},
|
|
@@ -2598,18 +2608,18 @@ const bn = { ...St, ...kt }, wn = (n, e, t, o) => {
|
|
|
2598
2608
|
handleClick: L,
|
|
2599
2609
|
validateFormData: h,
|
|
2600
2610
|
getFormRef: u
|
|
2601
|
-
} = ha(
|
|
2611
|
+
} = ha(o, v, l);
|
|
2602
2612
|
return zt(async () => {
|
|
2603
|
-
|
|
2613
|
+
o.isShowBtn == !1 ? D(o.formConfigurationId) : m();
|
|
2604
2614
|
}), e({
|
|
2605
2615
|
validateFormData: h,
|
|
2606
2616
|
clearData: k
|
|
2607
|
-
}), (P, j) => (V(), H("div",
|
|
2608
|
-
a(C).length > 0 ? (V(), H("div",
|
|
2617
|
+
}), (P, j) => (V(), H("div", An, [
|
|
2618
|
+
a(C).length > 0 ? (V(), H("div", qn, [
|
|
2609
2619
|
(V(!0), H(
|
|
2610
2620
|
le,
|
|
2611
2621
|
null,
|
|
2612
|
-
ke(a(C), (T) => (V(),
|
|
2622
|
+
ke(a(C), (T) => (V(), E(a(Pt), {
|
|
2613
2623
|
key: T.id,
|
|
2614
2624
|
style: { "margin-right": "20px" },
|
|
2615
2625
|
"btn-type": "primary",
|
|
@@ -2628,7 +2638,7 @@ const bn = { ...St, ...kt }, wn = (n, e, t, o) => {
|
|
|
2628
2638
|
128
|
|
2629
2639
|
/* KEYED_FRAGMENT */
|
|
2630
2640
|
))
|
|
2631
|
-
])) :
|
|
2641
|
+
])) : B("v-if", !0),
|
|
2632
2642
|
Mt((V(), H(
|
|
2633
2643
|
"div",
|
|
2634
2644
|
{
|
|
@@ -2645,19 +2655,19 @@ const bn = { ...St, ...kt }, wn = (n, e, t, o) => {
|
|
|
2645
2655
|
key: T.name
|
|
2646
2656
|
},
|
|
2647
2657
|
[
|
|
2648
|
-
r(T.ctrlType) ? (V(),
|
|
2658
|
+
r(T.ctrlType) ? (V(), E(a(nt), {
|
|
2649
2659
|
key: 0,
|
|
2650
2660
|
style: { "margin-bottom": "10px" },
|
|
2651
2661
|
collapsible: T.options.accordion ? "" : "disabled",
|
|
2652
2662
|
activeKey: a(y)
|
|
2653
2663
|
}, {
|
|
2654
2664
|
default: F(() => [
|
|
2655
|
-
(V(),
|
|
2665
|
+
(V(), E(a(st), {
|
|
2656
2666
|
key: T.key,
|
|
2657
2667
|
header: T.columns[0].span
|
|
2658
2668
|
}, {
|
|
2659
2669
|
default: F(() => [
|
|
2660
|
-
a(c) ? (V(),
|
|
2670
|
+
a(c) ? (V(), E(a(We), {
|
|
2661
2671
|
key: 0,
|
|
2662
2672
|
ref_for: !0,
|
|
2663
2673
|
ref: (I) => a(u)(I, T),
|
|
@@ -2666,7 +2676,7 @@ const bn = { ...St, ...kt }, wn = (n, e, t, o) => {
|
|
|
2666
2676
|
"margin-right": "80px",
|
|
2667
2677
|
"auto-margin-right": "",
|
|
2668
2678
|
rules: a(d),
|
|
2669
|
-
form: a(
|
|
2679
|
+
form: a(l).data
|
|
2670
2680
|
}, {
|
|
2671
2681
|
default: F(() => [
|
|
2672
2682
|
(V(!0), H(
|
|
@@ -2678,16 +2688,16 @@ const bn = { ...St, ...kt }, wn = (n, e, t, o) => {
|
|
|
2678
2688
|
key: T.name
|
|
2679
2689
|
},
|
|
2680
2690
|
[
|
|
2681
|
-
I.ctrlType == "grid" ? (V(),
|
|
2691
|
+
I.ctrlType == "grid" ? (V(), E(Le(a(Ne).grid), {
|
|
2682
2692
|
key: 0,
|
|
2683
2693
|
setting: I,
|
|
2684
|
-
isView:
|
|
2685
|
-
store: a(
|
|
2686
|
-
}, null, 8, ["setting", "isView", "store"])) : (V(),
|
|
2694
|
+
isView: o.isView,
|
|
2695
|
+
store: a(l)
|
|
2696
|
+
}, null, 8, ["setting", "isView", "store"])) : (V(), E(Le(a(Ne)[I.ctrlType]), {
|
|
2687
2697
|
key: 1,
|
|
2688
2698
|
setting: I,
|
|
2689
|
-
isView:
|
|
2690
|
-
store: a(
|
|
2699
|
+
isView: o.isView,
|
|
2700
|
+
store: a(l)
|
|
2691
2701
|
}, null, 8, ["setting", "isView", "store"]))
|
|
2692
2702
|
],
|
|
2693
2703
|
64
|
|
@@ -2699,7 +2709,7 @@ const bn = { ...St, ...kt }, wn = (n, e, t, o) => {
|
|
|
2699
2709
|
]),
|
|
2700
2710
|
_: 2
|
|
2701
2711
|
/* DYNAMIC */
|
|
2702
|
-
}, 1032, ["rules", "form"])) :
|
|
2712
|
+
}, 1032, ["rules", "form"])) : B("v-if", !0)
|
|
2703
2713
|
]),
|
|
2704
2714
|
_: 2
|
|
2705
2715
|
/* DYNAMIC */
|
|
@@ -2707,8 +2717,8 @@ const bn = { ...St, ...kt }, wn = (n, e, t, o) => {
|
|
|
2707
2717
|
]),
|
|
2708
2718
|
_: 2
|
|
2709
2719
|
/* DYNAMIC */
|
|
2710
|
-
}, 1032, ["collapsible", "activeKey"])) : (V(), H("div",
|
|
2711
|
-
a(c) ? (V(),
|
|
2720
|
+
}, 1032, ["collapsible", "activeKey"])) : (V(), H("div", En, [
|
|
2721
|
+
a(c) ? (V(), E(a(We), {
|
|
2712
2722
|
key: 0,
|
|
2713
2723
|
ref_for: !0,
|
|
2714
2724
|
ref: (I) => a(u)(I, T),
|
|
@@ -2717,18 +2727,18 @@ const bn = { ...St, ...kt }, wn = (n, e, t, o) => {
|
|
|
2717
2727
|
alignType: "horizontal",
|
|
2718
2728
|
"margin-right": "80px",
|
|
2719
2729
|
rules: a(d),
|
|
2720
|
-
form: a(
|
|
2730
|
+
form: a(l).data
|
|
2721
2731
|
}, {
|
|
2722
2732
|
default: F(() => [
|
|
2723
|
-
(V(),
|
|
2733
|
+
(V(), E(Le(a(Ne)[T.ctrlType]), {
|
|
2724
2734
|
setting: T,
|
|
2725
|
-
isView:
|
|
2726
|
-
store: a(
|
|
2735
|
+
isView: o.isView,
|
|
2736
|
+
store: a(l)
|
|
2727
2737
|
}, null, 8, ["setting", "isView", "store"]))
|
|
2728
2738
|
]),
|
|
2729
2739
|
_: 2
|
|
2730
2740
|
/* DYNAMIC */
|
|
2731
|
-
}, 1032, ["rules", "form"])) :
|
|
2741
|
+
}, 1032, ["rules", "form"])) : B("v-if", !0)
|
|
2732
2742
|
]))
|
|
2733
2743
|
],
|
|
2734
2744
|
64
|
|
@@ -2745,7 +2755,7 @@ const bn = { ...St, ...kt }, wn = (n, e, t, o) => {
|
|
|
2745
2755
|
])
|
|
2746
2756
|
]));
|
|
2747
2757
|
}
|
|
2748
|
-
}),
|
|
2758
|
+
}), Bn = /* @__PURE__ */ Te(On, [["__scopeId", "data-v-ce01ee82"]]), Qn = {
|
|
2749
2759
|
姓名: { "zh-CN": "姓名", en: "Name", _appCode: "framework" },
|
|
2750
2760
|
状态: { "zh-CN": "状态", en: "Status", _appCode: "framework" },
|
|
2751
2761
|
组织名称: { "zh-CN": "组织名称", en: "Organization Name", _appCode: "framework" },
|
|
@@ -2869,7 +2879,7 @@ const bn = { ...St, ...kt }, wn = (n, e, t, o) => {
|
|
|
2869
2879
|
报修位置: { "zh-CN": "报修位置", en: "Repair Location", _appCode: "framework" }
|
|
2870
2880
|
};
|
|
2871
2881
|
Kt(Qn);
|
|
2872
|
-
const gs = Nt(
|
|
2882
|
+
const gs = Nt(Bn);
|
|
2873
2883
|
export {
|
|
2874
2884
|
gs as DasProcessForm,
|
|
2875
2885
|
gs as default
|