@das-fed/ui 7.1.0-seres.26 → 7.1.0-seres.28
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/process-form/index.js +984 -991
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/src/widgets/store.d.ts +6 -1
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/business-components/process-form/type.d.ts +1 -0
- package/packages/components/search-form/index.js +6 -6
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/icons/historical-replay/index.js +3 -3
- package/packages/icons/historical-replay/index.js.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
|
|
3
|
+
import { ref as u, nextTick as ve, defineComponent as Y, watch as T, createBlock as E, createCommentVNode as B, openBlock as M, unref as a, withCtx as $, createVNode as I, 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";
|
|
@@ -12,8 +12,8 @@ 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
14
|
import { DasTooltip as Ee } from "@das-fed/ui/packages/components/tooltip/index";
|
|
15
|
-
import { i18n as O, t as
|
|
16
|
-
import { DasTableColumn as
|
|
15
|
+
import { i18n as O, t as k, setI18nRule as Kt } from "@das-fed/web/packages/i18n/index";
|
|
16
|
+
import { DasTableColumn as A } from "@das-fed/ui/packages/components/table/index";
|
|
17
17
|
import { DasSearchForm as At } from "@das-fed/ui/packages/components/search-form/index";
|
|
18
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";
|
|
@@ -27,60 +27,60 @@ const ot = G(`/workflow/api/extend/${ae}`), Qt = G(`/workflow/flow/def/${ae}`),
|
|
|
27
27
|
G(`/api/device-relation/project/${ae}`);
|
|
28
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 = Be.get("/controller/area-children"), pa = Be.get("/controller/fuzzy-tree-all"), Oe = Be.get("/controller/space"), da = Qe.post("/supplier/list/page", (
|
|
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", (s) => {
|
|
31
31
|
var e, t;
|
|
32
|
-
return
|
|
33
|
-
page: ((e =
|
|
34
|
-
pageSize: ((t =
|
|
35
|
-
},
|
|
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 =
|
|
37
|
-
const { setDetailData: l, getFormData: d, setFormData:
|
|
38
|
-
const [U,
|
|
32
|
+
return s.data.pageBean = {
|
|
33
|
+
page: ((e = s == null ? void 0 : s.data) == null ? void 0 : e.pageIndex) || 1,
|
|
34
|
+
pageSize: ((t = s == null ? void 0 : s.data) == null ? void 0 : t.pageSize) || 20
|
|
35
|
+
}, s;
|
|
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 = u(""), ha = (s, e, t) => {
|
|
37
|
+
const { setDetailData: l, getFormData: d, setFormData: o, formRule: m, showData: L, disabledData: n, encryptionData: r } = t, v = u([]), i = u([]), f = u([]), c = u(!1), D = Tt(), h = u([]), S = (F) => Object.keys(F).length === 0, g = async (F) => {
|
|
38
|
+
const [U, j] = await Zt({ formId: F }).run();
|
|
39
39
|
if (U) return;
|
|
40
|
-
const ee = JSON.parse(
|
|
41
|
-
Fe.value = ee[0].alias,
|
|
42
|
-
x.formKey ===
|
|
40
|
+
const ee = JSON.parse(j.bos);
|
|
41
|
+
Fe.value = ee[0].alias, i.value.length && i.value.forEach((x) => {
|
|
42
|
+
x.formKey === j.formKey && o(j.formKey, Fe.value, x.id);
|
|
43
43
|
});
|
|
44
|
-
const [ie, pe] = await Gt({ formDefId:
|
|
45
|
-
await
|
|
46
|
-
x.columns && x.columns[0].isOpen &&
|
|
47
|
-
}),
|
|
48
|
-
|
|
44
|
+
const [ie, pe] = await Gt({ formDefId: j.defId }).run();
|
|
45
|
+
await C(), f.value = JSON.parse(pe.value.expand).list, f.value.forEach((x) => {
|
|
46
|
+
x.columns && x.columns[0].isOpen && h.value.push(x.key);
|
|
47
|
+
}), n.value = { ...n.value, ...s.disabledData }, i.value.length || o(j.formKey, Fe.value), setTimeout(() => {
|
|
48
|
+
L.value = { ...L.value, ...s.showData }, S(s.data) && (c.value = !0), S(s.data) || (l(s.data), s.flowKey && (v.value = s.data.button_list ? JSON.parse(s.data.button_list) : []), c.value = !0);
|
|
49
49
|
}, 50);
|
|
50
|
-
},
|
|
51
|
-
var
|
|
52
|
-
if (
|
|
53
|
-
const [U,
|
|
50
|
+
}, z = async () => {
|
|
51
|
+
var F;
|
|
52
|
+
if (s.formConfigurationId) {
|
|
53
|
+
const [U, j] = await Xt({ id: s.formConfigurationId }).run();
|
|
54
54
|
if (U) return;
|
|
55
|
-
|
|
55
|
+
i.value = j.reports, v.value = (F = j.reports[0]) == null ? void 0 : F.buttons.filter((ee) => !(s.isView && ee.event !== "LINK")), g(j.reports[0].formId);
|
|
56
56
|
}
|
|
57
|
-
if (
|
|
58
|
-
const [U,
|
|
57
|
+
if (s.flowKey) {
|
|
58
|
+
const [U, j] = await ea({ flowKey: s.flowKey }).run();
|
|
59
59
|
if (U) return;
|
|
60
|
-
|
|
60
|
+
g(j.pcForm.pcFormId);
|
|
61
61
|
}
|
|
62
|
-
},
|
|
63
|
-
var
|
|
64
|
-
if (!
|
|
65
|
-
const [
|
|
66
|
-
flowKey:
|
|
62
|
+
}, C = async () => {
|
|
63
|
+
var j, ee, ie, pe;
|
|
64
|
+
if (!s.flowKey) return;
|
|
65
|
+
const [F, U] = await Wt().run({
|
|
66
|
+
flowKey: s.flowKey,
|
|
67
67
|
needDisplayFileds: !1
|
|
68
68
|
});
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
const { key:
|
|
72
|
-
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
}), await ve(), new Promise((
|
|
76
|
-
let
|
|
77
|
-
for (const ee in
|
|
78
|
-
|
|
79
|
-
ie == !1 && (
|
|
69
|
+
r.value = ((pe = (ie = (ee = (j = U == null ? void 0 : U.value) == null ? void 0 : j.boDef) == null ? void 0 : ee.boEnt) == null ? void 0 : ie.attributeList) == null ? void 0 : pe.filter((x) => x.encryption == "phone")) || [];
|
|
70
|
+
}, p = u({}), _ = (F, U) => {
|
|
71
|
+
const { key: j } = U;
|
|
72
|
+
p.value[j] || (p.value[j] = F);
|
|
73
|
+
}, N = async () => (f.value.forEach((F) => {
|
|
74
|
+
F.columns && h.value.push(F.key);
|
|
75
|
+
}), await ve(), new Promise((F, U) => {
|
|
76
|
+
let j = !0;
|
|
77
|
+
for (const ee in p.value)
|
|
78
|
+
p.value[ee].validate((ie) => {
|
|
79
|
+
ie == !1 && (j = !1);
|
|
80
80
|
});
|
|
81
81
|
setTimeout(() => {
|
|
82
|
-
|
|
83
|
-
result:
|
|
82
|
+
F({
|
|
83
|
+
result: j,
|
|
84
84
|
data: d()
|
|
85
85
|
});
|
|
86
86
|
}, 50);
|
|
@@ -89,33 +89,33 @@ const ea = Qt.get("/getBindRelationByDefKey"), ta = Ut.get("/getByAlias"), aa =
|
|
|
89
89
|
isShowPage: c,
|
|
90
90
|
formJsonList: f,
|
|
91
91
|
btnList: v,
|
|
92
|
-
formRef:
|
|
93
|
-
activityKeys:
|
|
94
|
-
getForm:
|
|
95
|
-
getBtnSet:
|
|
96
|
-
handleClick: async (
|
|
97
|
-
let { result: U } = await
|
|
98
|
-
U && (e("handleClick",
|
|
99
|
-
|
|
92
|
+
formRef: D,
|
|
93
|
+
activityKeys: h,
|
|
94
|
+
getForm: g,
|
|
95
|
+
getBtnSet: z,
|
|
96
|
+
handleClick: async (F) => {
|
|
97
|
+
let { result: U } = await N();
|
|
98
|
+
U && (e("handleClick", F, d()), F.event === "LINK" && i.value.forEach((j) => {
|
|
99
|
+
F.eventTarget === j.formKey && (v.value = j.buttons.filter((ee) => !(s.isView && ee.event !== "LINK")), c.value = !1, m.value = {}, g(j.formId));
|
|
100
100
|
}));
|
|
101
101
|
},
|
|
102
|
-
validateFormData:
|
|
103
|
-
getFormRef:
|
|
102
|
+
validateFormData: N,
|
|
103
|
+
getFormRef: _
|
|
104
104
|
};
|
|
105
105
|
};
|
|
106
|
-
let ya = (
|
|
107
|
-
let e = "", t = crypto.getRandomValues(new Uint8Array(
|
|
108
|
-
for (;
|
|
109
|
-
let l = t[
|
|
106
|
+
let ya = (s = 21) => {
|
|
107
|
+
let e = "", t = crypto.getRandomValues(new Uint8Array(s));
|
|
108
|
+
for (; s--; ) {
|
|
109
|
+
let l = t[s] & 63;
|
|
110
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
|
};
|
|
114
|
-
const X = (
|
|
115
|
-
var e = new RegExp("<.+?>", "g"), t =
|
|
114
|
+
const X = (s) => {
|
|
115
|
+
var e = new RegExp("<.+?>", "g"), t = s.replace(e, "").replace(/ /g, "");
|
|
116
116
|
return t;
|
|
117
|
-
}, we = async (
|
|
118
|
-
const [l, d] = await ta({ alias:
|
|
117
|
+
}, we = async (s, e, t = {}) => {
|
|
118
|
+
const [l, d] = await ta({ alias: s }).run();
|
|
119
119
|
if (!l && d.url) {
|
|
120
120
|
if (typeof e == "string")
|
|
121
121
|
try {
|
|
@@ -123,24 +123,24 @@ const X = (n) => {
|
|
|
123
123
|
} catch {
|
|
124
124
|
e = [];
|
|
125
125
|
}
|
|
126
|
-
const
|
|
127
|
-
Array.isArray(e) && e.forEach((
|
|
128
|
-
|
|
129
|
-
}),
|
|
130
|
-
const
|
|
131
|
-
return
|
|
126
|
+
const o = u({});
|
|
127
|
+
Array.isArray(e) && e.forEach((r) => {
|
|
128
|
+
r.defaultType == 2 && (o.value[r.field] = r.defaultValue);
|
|
129
|
+
}), o.value = { ...o.value, ...t };
|
|
130
|
+
const m = d.requestType === "POST" ? G(d.url).post("") : G(d.url).get(""), [L, n] = await m({}, { params: o.value }).run();
|
|
131
|
+
return L ? void 0 : n;
|
|
132
132
|
}
|
|
133
|
-
}, ne = async (
|
|
134
|
-
const e =
|
|
135
|
-
return
|
|
133
|
+
}, ne = async (s) => {
|
|
134
|
+
const e = u(!1);
|
|
135
|
+
return s.forEach((t) => {
|
|
136
136
|
t.key === "required" && (e.value = !0);
|
|
137
137
|
}), e.value;
|
|
138
|
-
}, Ie = (
|
|
139
|
-
if (Array.isArray(
|
|
140
|
-
return
|
|
141
|
-
if (typeof
|
|
142
|
-
return
|
|
143
|
-
const e = { ...
|
|
138
|
+
}, Ie = (s) => {
|
|
139
|
+
if (Array.isArray(s))
|
|
140
|
+
return s.map((t) => Ie(t));
|
|
141
|
+
if (typeof s != "object" || s === null)
|
|
142
|
+
return s;
|
|
143
|
+
const e = { ...s };
|
|
144
144
|
(!e.hasOwnProperty("id") || e.id === null || e.id === void 0 || e.id === "") && (e.id = ya());
|
|
145
145
|
for (const t in e)
|
|
146
146
|
Object.prototype.hasOwnProperty.call(e, t) && (e[t] = Ie(e[t]));
|
|
@@ -162,30 +162,30 @@ const X = (n) => {
|
|
|
162
162
|
marginRight: {},
|
|
163
163
|
store: {}
|
|
164
164
|
},
|
|
165
|
-
setup(
|
|
166
|
-
const e =
|
|
167
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
165
|
+
setup(s) {
|
|
166
|
+
const e = s, { showData: t, disabledData: l, setData: d, getData: o, setFormRule: m, deleteRule: L } = e.store || {}, n = u([]), r = u(!0);
|
|
167
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), T(
|
|
168
168
|
() => t.value,
|
|
169
169
|
() => {
|
|
170
|
-
|
|
170
|
+
r.value = t.value[e.setting.name], r.value || (n.value = [], L(e.setting.name)), r.value && e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList);
|
|
171
171
|
},
|
|
172
172
|
{ deep: !0, immediate: !0 }
|
|
173
173
|
);
|
|
174
|
-
const v =
|
|
175
|
-
return e.setting.options.tip && (v.value = X(e.setting.options.tip)),
|
|
176
|
-
d(e.setting.name, JSON.stringify(
|
|
177
|
-
}), (
|
|
174
|
+
const v = u();
|
|
175
|
+
return e.setting.options.tip && (v.value = X(e.setting.options.tip)), n.value || d(e.setting.name, null), T(n, (i) => {
|
|
176
|
+
d(e.setting.name, JSON.stringify(i));
|
|
177
|
+
}), (i, f) => r.value ? (M(), E(a(J), {
|
|
178
178
|
key: 0,
|
|
179
179
|
col: e.span,
|
|
180
|
-
label:
|
|
180
|
+
label: i.setting.desc,
|
|
181
181
|
type: "custom",
|
|
182
182
|
helpMessage: v.value
|
|
183
183
|
}, {
|
|
184
|
-
default:
|
|
185
|
-
|
|
184
|
+
default: $(() => [
|
|
185
|
+
I(a($t), {
|
|
186
186
|
style: { width: "100%" },
|
|
187
|
-
modelValue:
|
|
188
|
-
"onUpdate:modelValue": f[0] || (f[0] = (c) =>
|
|
187
|
+
modelValue: n.value,
|
|
188
|
+
"onUpdate:modelValue": f[0] || (f[0] = (c) => n.value = c)
|
|
189
189
|
}, null, 8, ["modelValue"])
|
|
190
190
|
]),
|
|
191
191
|
_: 1
|
|
@@ -212,50 +212,50 @@ const X = (n) => {
|
|
|
212
212
|
marginRight: {},
|
|
213
213
|
store: {}
|
|
214
214
|
},
|
|
215
|
-
setup(
|
|
216
|
-
const e =
|
|
217
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
215
|
+
setup(s) {
|
|
216
|
+
const e = s, { showData: t, disabledData: l, setData: d, getData: o, setFormRule: m, deleteRule: L } = e.store || {}, n = u(""), r = u(!0);
|
|
217
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), T(
|
|
218
218
|
() => t.value,
|
|
219
219
|
() => {
|
|
220
|
-
|
|
220
|
+
r.value = t.value[e.setting.name], r.value || (n.value = "", L(e.setting.name)), r.value && e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList);
|
|
221
221
|
},
|
|
222
222
|
{ deep: !0, immediate: !0 }
|
|
223
223
|
);
|
|
224
|
-
const v = l.value[e.setting.name] || !1,
|
|
225
|
-
ne(e.setting.options.validateList).then((
|
|
226
|
-
|
|
224
|
+
const v = l.value[e.setting.name] || !1, i = u(!1);
|
|
225
|
+
ne(e.setting.options.validateList).then((z) => {
|
|
226
|
+
i.value = z;
|
|
227
227
|
});
|
|
228
|
-
const f = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "value", c = e.setting.options.children ? e.setting.options.children : "children",
|
|
229
|
-
e.setting.options.customQuery.alias ? we(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((
|
|
230
|
-
|
|
231
|
-
}) :
|
|
232
|
-
const
|
|
233
|
-
return e.setting.options.tip && (
|
|
234
|
-
d(e.setting.name,
|
|
235
|
-
}), (
|
|
228
|
+
const f = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "value", c = e.setting.options.children ? e.setting.options.children : "children", D = !!e.setting.options.fillInFullPath, h = u("id"), S = u([]);
|
|
229
|
+
e.setting.options.customQuery.alias ? we(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((z) => {
|
|
230
|
+
S.value = Ie(z);
|
|
231
|
+
}) : S.value = Ie(e.setting.options.options);
|
|
232
|
+
const g = u();
|
|
233
|
+
return e.setting.options.tip && (g.value = X(e.setting.options.tip)), n.value = o(e.setting.name) || n.value, n.value || d(e.setting.name, null), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), T(n, (z) => {
|
|
234
|
+
d(e.setting.name, z.toString());
|
|
235
|
+
}), (z, C) => r.value ? (M(), E(a(J), {
|
|
236
236
|
key: 0,
|
|
237
237
|
col: e.span,
|
|
238
238
|
prop: e.setting.name,
|
|
239
|
-
modelValue:
|
|
240
|
-
"onUpdate:modelValue":
|
|
241
|
-
label:
|
|
239
|
+
modelValue: n.value,
|
|
240
|
+
"onUpdate:modelValue": C[1] || (C[1] = (p) => n.value = p),
|
|
241
|
+
label: z.setting.desc,
|
|
242
242
|
type: "custom",
|
|
243
|
-
helpMessage:
|
|
244
|
-
required:
|
|
243
|
+
helpMessage: g.value,
|
|
244
|
+
required: i.value,
|
|
245
245
|
disabled: a(v)
|
|
246
246
|
}, {
|
|
247
|
-
default:
|
|
248
|
-
|
|
249
|
-
modelValue:
|
|
250
|
-
"onUpdate:modelValue":
|
|
251
|
-
options:
|
|
247
|
+
default: $(() => [
|
|
248
|
+
I(a(Ft), {
|
|
249
|
+
modelValue: n.value,
|
|
250
|
+
"onUpdate:modelValue": C[0] || (C[0] = (p) => n.value = p),
|
|
251
|
+
options: S.value,
|
|
252
252
|
isView: e.isView,
|
|
253
253
|
width: "100%",
|
|
254
254
|
fieldNames: { label: a(f), children: a(c) },
|
|
255
|
-
showFullPath: a(
|
|
256
|
-
placeholder:
|
|
255
|
+
showFullPath: a(D),
|
|
256
|
+
placeholder: z.setting.options.placeholder,
|
|
257
257
|
clearable: "",
|
|
258
|
-
nodeKey:
|
|
258
|
+
nodeKey: h.value
|
|
259
259
|
}, null, 8, ["modelValue", "options", "isView", "fieldNames", "showFullPath", "placeholder", "nodeKey"])
|
|
260
260
|
]),
|
|
261
261
|
_: 1
|
|
@@ -282,44 +282,44 @@ const X = (n) => {
|
|
|
282
282
|
marginRight: {},
|
|
283
283
|
store: {}
|
|
284
284
|
},
|
|
285
|
-
setup(
|
|
286
|
-
const e =
|
|
287
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
285
|
+
setup(s) {
|
|
286
|
+
const e = s, { showData: t, disabledData: l, setData: d, getData: o, setFormRule: m, deleteRule: L } = e.store || {}, n = u([]), r = u(!0);
|
|
287
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), T(
|
|
288
288
|
() => t.value,
|
|
289
289
|
() => {
|
|
290
|
-
|
|
290
|
+
r.value = t.value[e.setting.name], r.value || (n.value = [], L(e.setting.name)), r.value && e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList);
|
|
291
291
|
},
|
|
292
292
|
{ deep: !0, immediate: !0 }
|
|
293
293
|
);
|
|
294
|
-
const v = l.value[e.setting.name] || !1,
|
|
295
|
-
ne(e.setting.options.validateList).then((
|
|
296
|
-
|
|
294
|
+
const v = l.value[e.setting.name] || !1, i = u(!1);
|
|
295
|
+
ne(e.setting.options.validateList).then((S) => {
|
|
296
|
+
i.value = S;
|
|
297
297
|
});
|
|
298
|
-
const f = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", c = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value",
|
|
299
|
-
e.setting.options.customQuery.alias ? we(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((
|
|
300
|
-
|
|
301
|
-
}) :
|
|
302
|
-
const
|
|
303
|
-
return e.setting.options.tip && (
|
|
304
|
-
|
|
305
|
-
}, 50), e.setting.options.validateList.length &&
|
|
306
|
-
d(e.setting.name,
|
|
307
|
-
}), (
|
|
298
|
+
const f = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", c = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", D = u([]);
|
|
299
|
+
e.setting.options.customQuery.alias ? we(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((S) => {
|
|
300
|
+
D.value = S;
|
|
301
|
+
}) : D.value = e.setting.options.options;
|
|
302
|
+
const h = u();
|
|
303
|
+
return e.setting.options.tip && (h.value = X(e.setting.options.tip)()), setTimeout(() => {
|
|
304
|
+
o(e.setting.name) && (n.value = o(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (n.value = e.setting.options.formulasDiyJs.split(",")), n.value.length || n.value || d(e.setting.name, null);
|
|
305
|
+
}, 50), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), T(n, (S) => {
|
|
306
|
+
d(e.setting.name, S.toString());
|
|
307
|
+
}), (S, g) => r.value ? (M(), E(a(J), {
|
|
308
308
|
key: 0,
|
|
309
309
|
col: e.span,
|
|
310
|
-
modelValue:
|
|
311
|
-
"onUpdate:modelValue":
|
|
312
|
-
layout:
|
|
313
|
-
label:
|
|
310
|
+
modelValue: n.value,
|
|
311
|
+
"onUpdate:modelValue": g[0] || (g[0] = (z) => n.value = z),
|
|
312
|
+
layout: S.setting.options.inline ? "vertical" : "default",
|
|
313
|
+
label: S.setting.desc,
|
|
314
314
|
prop: e.setting.name,
|
|
315
315
|
type: "checkbox",
|
|
316
|
-
options:
|
|
316
|
+
options: D.value,
|
|
317
317
|
isView: e.isView,
|
|
318
318
|
disabled: a(v),
|
|
319
319
|
optionsValueKey: a(f),
|
|
320
320
|
optionsLabelKey: a(c),
|
|
321
|
-
helpMessage:
|
|
322
|
-
required:
|
|
321
|
+
helpMessage: h.value,
|
|
322
|
+
required: i.value
|
|
323
323
|
}, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "disabled", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"])) : B("v-if", !0);
|
|
324
324
|
}
|
|
325
325
|
}), pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -342,36 +342,36 @@ const X = (n) => {
|
|
|
342
342
|
marginRight: {},
|
|
343
343
|
store: {}
|
|
344
344
|
},
|
|
345
|
-
setup(
|
|
346
|
-
const e =
|
|
347
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
345
|
+
setup(s) {
|
|
346
|
+
const e = s, { showData: t, disabledData: l, setData: d, getData: o, setFormRule: m, deleteRule: L } = e.store || {}, n = u(), r = u(!0);
|
|
347
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), T(
|
|
348
348
|
() => t.value,
|
|
349
349
|
() => {
|
|
350
|
-
|
|
350
|
+
r.value = t.value[e.setting.name], r.value || (n.value = null, L(e.setting.name)), r.value && e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList);
|
|
351
351
|
},
|
|
352
352
|
{ deep: !0, immediate: !0 }
|
|
353
353
|
);
|
|
354
|
-
const v = l.value[e.setting.name] || !1,
|
|
355
|
-
ne(e.setting.options.validateList).then((
|
|
356
|
-
|
|
354
|
+
const v = l.value[e.setting.name] || !1, i = u(!1);
|
|
355
|
+
ne(e.setting.options.validateList).then((h) => {
|
|
356
|
+
i.value = h;
|
|
357
357
|
});
|
|
358
|
-
const f = e.setting.options.inputFormat === "yyyy-MM-dd" ? "YYYY/MM/DD" : e.setting.options.inputFormat === "yyyy-MM-dd HH:mm:ss" ? "YYYY/MM/DD HH:mm:ss" : e.setting.options.inputFormat, c =
|
|
358
|
+
const f = e.setting.options.inputFormat === "yyyy-MM-dd" ? "YYYY/MM/DD" : e.setting.options.inputFormat === "yyyy-MM-dd HH:mm:ss" ? "YYYY/MM/DD HH:mm:ss" : e.setting.options.inputFormat, c = u("");
|
|
359
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");
|
|
360
|
-
const
|
|
361
|
-
if (e.setting.options.tip && (
|
|
362
|
-
|
|
360
|
+
const D = u();
|
|
361
|
+
if (e.setting.options.tip && (D.value = X(e.setting.options.tip)), setTimeout(() => {
|
|
362
|
+
n.value = o(e.setting.name) || e.setting.options.formulasDiyJs || n.value, n.value || d(e.setting.name, null);
|
|
363
363
|
}, 50), e.setting.options.showCurrentDate) {
|
|
364
|
-
let
|
|
365
|
-
|
|
364
|
+
let h = /* @__PURE__ */ new Date();
|
|
365
|
+
h.setDate(h.getDate() + e.setting.options.day), n.value = Me(h.getTime()).format(f), d(e.setting.name, n.value);
|
|
366
366
|
}
|
|
367
|
-
return e.setting.options.validateList.length &&
|
|
368
|
-
d(e.setting.name,
|
|
369
|
-
}), (
|
|
367
|
+
return e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), T(n, (h) => {
|
|
368
|
+
d(e.setting.name, h);
|
|
369
|
+
}), (h, S) => r.value ? (M(), E(a(J), {
|
|
370
370
|
key: 0,
|
|
371
371
|
col: e.span,
|
|
372
|
-
modelValue:
|
|
373
|
-
"onUpdate:modelValue":
|
|
374
|
-
label:
|
|
372
|
+
modelValue: n.value,
|
|
373
|
+
"onUpdate:modelValue": S[0] || (S[0] = (g) => n.value = g),
|
|
374
|
+
label: h.setting.desc,
|
|
375
375
|
prop: e.setting.name,
|
|
376
376
|
type: a(f).indexOf("HH") != -1 ? "dateTime" : "date",
|
|
377
377
|
format: a(f),
|
|
@@ -379,9 +379,9 @@ const X = (n) => {
|
|
|
379
379
|
picker: c.value,
|
|
380
380
|
isView: e.isView,
|
|
381
381
|
disabled: a(v),
|
|
382
|
-
placeholder:
|
|
383
|
-
helpMessage:
|
|
384
|
-
required:
|
|
382
|
+
placeholder: h.setting.options.placeholder,
|
|
383
|
+
helpMessage: D.value,
|
|
384
|
+
required: i.value
|
|
385
385
|
}, null, 8, ["col", "modelValue", "label", "prop", "type", "format", "picker", "isView", "disabled", "placeholder", "helpMessage", "required"])) : B("v-if", !0);
|
|
386
386
|
}
|
|
387
387
|
}), dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -404,51 +404,51 @@ const X = (n) => {
|
|
|
404
404
|
marginRight: {},
|
|
405
405
|
store: {}
|
|
406
406
|
},
|
|
407
|
-
setup(
|
|
408
|
-
const e =
|
|
409
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
407
|
+
setup(s) {
|
|
408
|
+
const e = s, { showData: t, disabledData: l, setData: d, getData: o, setFormRule: m, deleteRule: L, setLinkData: n } = e.store || {}, r = u(""), v = u(!0);
|
|
409
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), T(
|
|
410
410
|
() => t.value,
|
|
411
411
|
() => {
|
|
412
|
-
v.value = t.value[e.setting.name], v.value || (
|
|
412
|
+
v.value = t.value[e.setting.name], v.value || (r.value = e.setting.options.multiple ? [] : "", L(e.setting.name)), v.value && e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList);
|
|
413
413
|
},
|
|
414
414
|
{ deep: !0, immediate: !0 }
|
|
415
415
|
);
|
|
416
|
-
const
|
|
417
|
-
e.setting.options.customQuery && e.setting.options.customQuery.custQueryJson.length &&
|
|
418
|
-
}, f = l.value[e.setting.name] || !1, c =
|
|
419
|
-
ne(e.setting.options.validateList).then((
|
|
420
|
-
c.value =
|
|
416
|
+
const i = () => {
|
|
417
|
+
e.setting.options.customQuery && e.setting.options.customQuery.custQueryJson.length && n(e.setting.options.customQuery.custQueryJson, r.value);
|
|
418
|
+
}, f = l.value[e.setting.name] || !1, c = u(!1);
|
|
419
|
+
ne(e.setting.options.validateList).then((p) => {
|
|
420
|
+
c.value = p;
|
|
421
421
|
});
|
|
422
|
-
const
|
|
423
|
-
e.setting.options.customQuery.alias && we(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((
|
|
424
|
-
|
|
422
|
+
const D = u(""), h = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", S = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", g = e.setting.options.customQuery.PId || "children", z = u([]);
|
|
423
|
+
e.setting.options.customQuery.alias && we(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((p) => {
|
|
424
|
+
z.value = p;
|
|
425
425
|
});
|
|
426
|
-
const
|
|
427
|
-
return e.setting.options.tip && (
|
|
428
|
-
d(e.setting.name,
|
|
429
|
-
}), (
|
|
426
|
+
const C = u();
|
|
427
|
+
return e.setting.options.tip && (C.value = X(e.setting.options.tip)), r.value = e.setting.options.multiple ? [] : "", e.setting.options.multiple && o(e.setting.name) ? r.value = o(e.setting.name).split(",") : r.value = o(e.setting.name) || r.value, r.value || d(e.setting.name, null), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), T(r, (p) => {
|
|
428
|
+
d(e.setting.name, p.toString());
|
|
429
|
+
}), (p, _) => v.value ? (M(), E(a(J), {
|
|
430
430
|
key: 0,
|
|
431
431
|
col: e.span,
|
|
432
|
-
modelValue:
|
|
433
|
-
"onUpdate:modelValue":
|
|
434
|
-
keyword:
|
|
435
|
-
"onUpdate:keyword":
|
|
436
|
-
label:
|
|
432
|
+
modelValue: r.value,
|
|
433
|
+
"onUpdate:modelValue": _[0] || (_[0] = (N) => r.value = N),
|
|
434
|
+
keyword: D.value,
|
|
435
|
+
"onUpdate:keyword": _[1] || (_[1] = (N) => D.value = N),
|
|
436
|
+
label: p.setting.desc,
|
|
437
437
|
type: "treeSelect",
|
|
438
|
-
"node-key":
|
|
439
|
-
placeholder:
|
|
440
|
-
mode:
|
|
438
|
+
"node-key": p.setting.options.customQuery.valueBind,
|
|
439
|
+
placeholder: p.setting.options.placeholder,
|
|
440
|
+
mode: p.setting.options.multiple ? "multiple" : "",
|
|
441
441
|
prop: e.setting.name,
|
|
442
|
-
filter:
|
|
442
|
+
filter: p.setting.options.filterable,
|
|
443
443
|
selectAttrs: { allowClear: !0 },
|
|
444
|
-
options:
|
|
444
|
+
options: z.value,
|
|
445
445
|
isView: e.isView,
|
|
446
|
-
helpMessage:
|
|
446
|
+
helpMessage: C.value,
|
|
447
447
|
disabled: a(f),
|
|
448
|
-
props: { label: a(
|
|
449
|
-
"check-strictly": !
|
|
448
|
+
props: { label: a(S), value: a(h), children: a(g) },
|
|
449
|
+
"check-strictly": !p.setting.options.cascade,
|
|
450
450
|
required: c.value,
|
|
451
|
-
onChange:
|
|
451
|
+
onChange: i
|
|
452
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);
|
|
453
453
|
}
|
|
454
454
|
}), ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -471,57 +471,57 @@ const X = (n) => {
|
|
|
471
471
|
marginRight: {},
|
|
472
472
|
store: {}
|
|
473
473
|
},
|
|
474
|
-
setup(
|
|
475
|
-
const e =
|
|
476
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
474
|
+
setup(s) {
|
|
475
|
+
const e = s, { showData: t, disabledData: l, setData: d, getData: o, setFormRule: m, deleteRule: L } = e.store || {}, n = u(), r = u(!0);
|
|
476
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), T(
|
|
477
477
|
() => t.value,
|
|
478
478
|
() => {
|
|
479
|
-
|
|
479
|
+
r.value = t.value[e.setting.name], r.value || (n.value = e.setting.options.file.limit > 1 ? [] : "", L(e.setting.name)), r.value && e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList);
|
|
480
480
|
},
|
|
481
481
|
{ deep: !0, immediate: !0 }
|
|
482
482
|
);
|
|
483
|
-
const v = l.value[e.setting.name] || !1,
|
|
484
|
-
ne(e.setting.options.validateList).then((
|
|
485
|
-
|
|
483
|
+
const v = l.value[e.setting.name] || !1, i = u(!1);
|
|
484
|
+
ne(e.setting.options.validateList).then((h) => {
|
|
485
|
+
i.value = h;
|
|
486
486
|
});
|
|
487
|
-
const f =
|
|
487
|
+
const f = u("normal");
|
|
488
488
|
e.isView && (f.value = "info");
|
|
489
|
-
const c =
|
|
490
|
-
e.setting.options.tip && (c.value = X(e.setting.options.tip)),
|
|
491
|
-
const
|
|
489
|
+
const c = u();
|
|
490
|
+
e.setting.options.tip && (c.value = X(e.setting.options.tip)), n.value = e.setting.options.file.limit > 1 ? [] : "", e.setting.options.file.limit > 1 && o(e.setting.name) ? n.value = o(e.setting.name).split(",") : n.value = o(e.setting.name) || n.value, n.value || d(e.setting.name, null);
|
|
491
|
+
const D = (h) => {
|
|
492
492
|
setTimeout(() => {
|
|
493
|
-
d(e.setting.name,
|
|
493
|
+
d(e.setting.name, n.value.toString());
|
|
494
494
|
}, 100);
|
|
495
495
|
};
|
|
496
|
-
return e.setting.options.validateList.length &&
|
|
497
|
-
const
|
|
498
|
-
let
|
|
499
|
-
return
|
|
496
|
+
return e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), T(n.value, (h) => {
|
|
497
|
+
const S = h.map((g) => {
|
|
498
|
+
let z = "";
|
|
499
|
+
return g.indexOf("/oss/") != -1 ? z = g : z = `/oss/${g}`, z;
|
|
500
500
|
});
|
|
501
501
|
setTimeout(() => {
|
|
502
|
-
d(e.setting.name,
|
|
502
|
+
d(e.setting.name, S.join(","));
|
|
503
503
|
}, 100);
|
|
504
|
-
}), (
|
|
504
|
+
}), (h, S) => r.value ? (M(), E(a(J), {
|
|
505
505
|
key: 0,
|
|
506
|
-
modelValue:
|
|
507
|
-
"onUpdate:modelValue":
|
|
506
|
+
modelValue: n.value,
|
|
507
|
+
"onUpdate:modelValue": S[2] || (S[2] = (g) => n.value = g),
|
|
508
508
|
"margin-bottom": "0",
|
|
509
509
|
prop: e.setting.name,
|
|
510
|
-
label:
|
|
510
|
+
label: h.setting.desc,
|
|
511
511
|
type: "custom",
|
|
512
512
|
helpMessage: c.value,
|
|
513
|
-
required:
|
|
513
|
+
required: i.value,
|
|
514
514
|
col: e.span
|
|
515
515
|
}, {
|
|
516
|
-
default:
|
|
516
|
+
default: $(() => [
|
|
517
517
|
Xe("div", za, [
|
|
518
|
-
|
|
519
|
-
modelValue:
|
|
520
|
-
"onUpdate:modelValue":
|
|
518
|
+
I(a(et), {
|
|
519
|
+
modelValue: n.value,
|
|
520
|
+
"onUpdate:modelValue": S[0] || (S[0] = (g) => n.value = g),
|
|
521
521
|
status: f.value,
|
|
522
|
-
"onUpdate:status":
|
|
522
|
+
"onUpdate:status": S[1] || (S[1] = (g) => f.value = g),
|
|
523
523
|
maxSize: "6",
|
|
524
|
-
"limit-num":
|
|
524
|
+
"limit-num": h.setting.options.file.limit,
|
|
525
525
|
prop: e.setting.name,
|
|
526
526
|
"service-name": "hotent",
|
|
527
527
|
"accept-video": "",
|
|
@@ -530,10 +530,10 @@ const X = (n) => {
|
|
|
530
530
|
videoHeight: 680,
|
|
531
531
|
disabled: a(v),
|
|
532
532
|
"show-image-name": "",
|
|
533
|
-
needDownloadBtn:
|
|
534
|
-
needPreview:
|
|
535
|
-
onImageUpload:
|
|
536
|
-
required:
|
|
533
|
+
needDownloadBtn: h.setting.options.file.allowDownload == !0,
|
|
534
|
+
needPreview: h.setting.options.file.allowPreview == !0,
|
|
535
|
+
onImageUpload: D,
|
|
536
|
+
required: i.value
|
|
537
537
|
}, null, 8, ["modelValue", "status", "limit-num", "prop", "disabled", "needDownloadBtn", "needPreview", "required"])
|
|
538
538
|
])
|
|
539
539
|
]),
|
|
@@ -541,21 +541,21 @@ const X = (n) => {
|
|
|
541
541
|
/* STABLE */
|
|
542
542
|
}, 8, ["modelValue", "prop", "label", "helpMessage", "required", "col"])) : B("v-if", !0);
|
|
543
543
|
}
|
|
544
|
-
}), Te = (
|
|
545
|
-
const t =
|
|
544
|
+
}), Te = (s, e) => {
|
|
545
|
+
const t = s.__vccOpts || s;
|
|
546
546
|
for (const [l, d] of e)
|
|
547
547
|
t[l] = d;
|
|
548
548
|
return t;
|
|
549
549
|
}, Ta = /* @__PURE__ */ Te(Ia, [["__scopeId", "data-v-745a2e98"]]), gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
550
550
|
__proto__: null,
|
|
551
551
|
default: Ta
|
|
552
|
-
}, Symbol.toStringTag, { value: "Module" })), Pa = (
|
|
553
|
-
const t = "****", l = String(
|
|
554
|
-
return ((
|
|
555
|
-
const
|
|
556
|
-
if (
|
|
552
|
+
}, Symbol.toStringTag, { value: "Module" })), Pa = (s) => {
|
|
553
|
+
const t = "****", l = String(s), d = l.slice(0, 15), o = l.slice(15);
|
|
554
|
+
return ((n) => {
|
|
555
|
+
const r = n.length;
|
|
556
|
+
if (r < 6) return n;
|
|
557
557
|
let v = 0;
|
|
558
|
-
switch (
|
|
558
|
+
switch (r) {
|
|
559
559
|
case 6:
|
|
560
560
|
case 7:
|
|
561
561
|
v = 1;
|
|
@@ -581,21 +581,21 @@ const X = (n) => {
|
|
|
581
581
|
v = 7;
|
|
582
582
|
break;
|
|
583
583
|
}
|
|
584
|
-
const
|
|
585
|
-
return
|
|
586
|
-
})(d) +
|
|
584
|
+
const i = v + t.length;
|
|
585
|
+
return n.slice(0, v) + t + n.slice(i);
|
|
586
|
+
})(d) + o;
|
|
587
587
|
}, Ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
588
588
|
__proto__: null,
|
|
589
589
|
default: Pa
|
|
590
590
|
}, Symbol.toStringTag, { value: "Module" })), ze = {}, $a = /^\.\/(.+)\/index\.ts$/, Ze = /* @__PURE__ */ Object.assign({ "./phone/index.ts": Ra });
|
|
591
591
|
var Ge;
|
|
592
|
-
for (const
|
|
593
|
-
const e = Ze[
|
|
592
|
+
for (const s in Ze) {
|
|
593
|
+
const e = Ze[s], t = (Ge = s.match($a)) == null ? void 0 : Ge[1];
|
|
594
594
|
ze[t] = e.default;
|
|
595
595
|
}
|
|
596
|
-
const Fa = (
|
|
596
|
+
const Fa = (s, e) => {
|
|
597
597
|
var l;
|
|
598
|
-
return e ? ((l = ze[
|
|
598
|
+
return e ? ((l = ze[s]) == null ? void 0 : l.call(ze, e)) ?? e : "-";
|
|
599
599
|
}, ja = {
|
|
600
600
|
name: "input"
|
|
601
601
|
}, Ka = /* @__PURE__ */ Y({
|
|
@@ -613,74 +613,74 @@ const Fa = (n, e) => {
|
|
|
613
613
|
marginRight: {},
|
|
614
614
|
store: {}
|
|
615
615
|
},
|
|
616
|
-
setup(
|
|
617
|
-
const e =
|
|
618
|
-
|
|
619
|
-
|
|
616
|
+
setup(s) {
|
|
617
|
+
const e = s, { data: t, showData: l, disabledData: d, setData: o, getData: m, setFormRule: L, deleteRule: n, encryptionData: r } = e.store || {}, v = u(""), i = u(!1);
|
|
618
|
+
r.value.length && r.value.forEach((g) => {
|
|
619
|
+
g.name === e.setting.name && (i.value = !0);
|
|
620
620
|
});
|
|
621
|
-
const f =
|
|
622
|
-
!l.value[e.setting.name] && l.value[e.setting.name] != !1 && (l.value[e.setting.name] = !0),
|
|
621
|
+
const f = u(""), c = u(!0);
|
|
622
|
+
!l.value[e.setting.name] && l.value[e.setting.name] != !1 && (l.value[e.setting.name] = !0), T(
|
|
623
623
|
() => l.value,
|
|
624
624
|
() => {
|
|
625
|
-
c.value = l.value[e.setting.name], c.value || (f.value = "",
|
|
625
|
+
c.value = l.value[e.setting.name], c.value || (f.value = "", n(e.setting.name)), c.value && e.setting.options.validateList.length && L(e.setting.name, e.setting.options.validateList);
|
|
626
626
|
},
|
|
627
627
|
{ deep: !0, immediate: !0 }
|
|
628
|
-
),
|
|
628
|
+
), T(
|
|
629
629
|
() => t.value,
|
|
630
630
|
() => {
|
|
631
631
|
t.value[e.setting.name] && (f.value = t.value[e.setting.name]);
|
|
632
632
|
},
|
|
633
633
|
{ deep: !0 }
|
|
634
634
|
);
|
|
635
|
-
const
|
|
636
|
-
ne(e.setting.options.validateList).then((
|
|
637
|
-
|
|
635
|
+
const D = d.value[e.setting.name] || !1, h = u(!1);
|
|
636
|
+
ne(e.setting.options.validateList).then((g) => {
|
|
637
|
+
h.value = g;
|
|
638
638
|
});
|
|
639
|
-
const
|
|
640
|
-
return e.setting.options.tip && (
|
|
641
|
-
f.value =
|
|
642
|
-
}, 50), e.setting.options.validateList.length &&
|
|
643
|
-
e.setting.options.dataType === "number" && !isNaN(
|
|
644
|
-
}), (
|
|
639
|
+
const S = u();
|
|
640
|
+
return e.setting.options.tip && (S.value = X(e.setting.options.tip)), setTimeout(() => {
|
|
641
|
+
f.value = m(e.setting.name) || e.setting.options.formulasDiyJs || f.value, i && e.isView && (v.value = Fa("phone", f.value)), f.value || o(e.setting.name, null);
|
|
642
|
+
}, 50), e.setting.options.validateList.length && L(e.setting.name, e.setting.options.validateList), T(f, (g) => {
|
|
643
|
+
e.setting.options.dataType === "number" && !isNaN(g) ? o(e.setting.name, Number(g)) : o(e.setting.name, g);
|
|
644
|
+
}), (g, z) => (M(), H(
|
|
645
645
|
le,
|
|
646
646
|
null,
|
|
647
647
|
[
|
|
648
|
-
c.value &&
|
|
648
|
+
c.value && i.value && e.isView ? (M(), E(a(J), {
|
|
649
649
|
key: 0,
|
|
650
650
|
col: e.span,
|
|
651
651
|
prop: e.setting.name,
|
|
652
652
|
modelValue: f.value,
|
|
653
|
-
"onUpdate:modelValue":
|
|
654
|
-
label:
|
|
653
|
+
"onUpdate:modelValue": z[1] || (z[1] = (C) => f.value = C),
|
|
654
|
+
label: g.setting.desc,
|
|
655
655
|
type: "custom",
|
|
656
|
-
helpMessage:
|
|
657
|
-
required:
|
|
656
|
+
helpMessage: S.value,
|
|
657
|
+
required: h.value
|
|
658
658
|
}, {
|
|
659
|
-
default:
|
|
660
|
-
|
|
659
|
+
default: $(() => [
|
|
660
|
+
I(a(Ee), {
|
|
661
661
|
placement: "top",
|
|
662
662
|
disabled: !f.value,
|
|
663
663
|
content: f.value
|
|
664
664
|
}, {
|
|
665
|
-
default:
|
|
666
|
-
|
|
665
|
+
default: $(() => [
|
|
666
|
+
I(a(jt), {
|
|
667
667
|
modelValue: v.value,
|
|
668
|
-
"onUpdate:modelValue":
|
|
669
|
-
width:
|
|
670
|
-
disabled:
|
|
671
|
-
isView:
|
|
672
|
-
placeholder:
|
|
668
|
+
"onUpdate:modelValue": z[0] || (z[0] = (C) => v.value = C),
|
|
669
|
+
width: g.setting.options.width,
|
|
670
|
+
disabled: g.setting.options.isInputEdit || a(D),
|
|
671
|
+
isView: g.setting.options.isReadonly || e.isView,
|
|
672
|
+
placeholder: g.setting.options.placeholder
|
|
673
673
|
}, {
|
|
674
|
-
prepend:
|
|
674
|
+
prepend: $(() => [
|
|
675
675
|
re(
|
|
676
|
-
ue(
|
|
676
|
+
ue(g.setting.options.bindPreAndSufFixjson.preFix),
|
|
677
677
|
1
|
|
678
678
|
/* TEXT */
|
|
679
679
|
)
|
|
680
680
|
]),
|
|
681
|
-
append:
|
|
681
|
+
append: $(() => [
|
|
682
682
|
re(
|
|
683
|
-
ue(
|
|
683
|
+
ue(g.setting.options.bindPreAndSufFixjson.sufSix),
|
|
684
684
|
1
|
|
685
685
|
/* TEXT */
|
|
686
686
|
)
|
|
@@ -696,22 +696,22 @@ const Fa = (n, e) => {
|
|
|
696
696
|
_: 1
|
|
697
697
|
/* STABLE */
|
|
698
698
|
}, 8, ["col", "prop", "modelValue", "label", "helpMessage", "required"])) : B("v-if", !0),
|
|
699
|
-
c.value && (!
|
|
699
|
+
c.value && (!i.value || !e.isView) ? (M(), E(a(J), {
|
|
700
700
|
key: 1,
|
|
701
701
|
col: e.span,
|
|
702
702
|
modelValue: f.value,
|
|
703
|
-
"onUpdate:modelValue":
|
|
704
|
-
width:
|
|
705
|
-
disabled:
|
|
706
|
-
isView:
|
|
703
|
+
"onUpdate:modelValue": z[2] || (z[2] = (C) => f.value = C),
|
|
704
|
+
width: g.setting.options.width,
|
|
705
|
+
disabled: g.setting.options.isInputEdit || a(D),
|
|
706
|
+
isView: g.setting.options.isReadonly || e.isView,
|
|
707
707
|
prop: e.setting.name,
|
|
708
|
-
label:
|
|
708
|
+
label: g.setting.desc,
|
|
709
709
|
type: "input",
|
|
710
|
-
helpMessage:
|
|
711
|
-
required:
|
|
712
|
-
placeholder:
|
|
710
|
+
helpMessage: S.value,
|
|
711
|
+
required: h.value,
|
|
712
|
+
placeholder: g.setting.options.placeholder
|
|
713
713
|
}, {
|
|
714
|
-
default:
|
|
714
|
+
default: $(() => [
|
|
715
715
|
B(` <DasInput\r
|
|
716
716
|
v-model="inputValue"\r
|
|
717
717
|
>\r
|
|
@@ -747,29 +747,29 @@ const Fa = (n, e) => {
|
|
|
747
747
|
marginRight: {},
|
|
748
748
|
store: {}
|
|
749
749
|
},
|
|
750
|
-
setup(
|
|
751
|
-
const e =
|
|
752
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
750
|
+
setup(s) {
|
|
751
|
+
const e = s, { showData: t, disabledData: l, setData: d, getData: o, setFormRule: m, deleteRule: L } = e.store || {}, n = u(0), r = u(!0);
|
|
752
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), T(
|
|
753
753
|
() => t.value,
|
|
754
754
|
() => {
|
|
755
|
-
|
|
755
|
+
r.value = t.value[e.setting.name], r.value || (n.value = 0, L(e.setting.name)), r.value && e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList);
|
|
756
756
|
},
|
|
757
757
|
{ deep: !0, immediate: !0 }
|
|
758
758
|
);
|
|
759
|
-
const v = l.value[e.setting.name] || !1,
|
|
759
|
+
const v = l.value[e.setting.name] || !1, i = u(!1);
|
|
760
760
|
ne(e.setting.options.validateList).then((c) => {
|
|
761
|
-
|
|
761
|
+
i.value = c;
|
|
762
762
|
});
|
|
763
|
-
const f =
|
|
763
|
+
const f = u();
|
|
764
764
|
return e.setting.options.tip && (f.value = X(e.setting.options.tip)), setTimeout(() => {
|
|
765
|
-
|
|
766
|
-
}, 50), e.setting.options.validateList.length &&
|
|
765
|
+
n.value = o(e.setting.name) || e.setting.options.formulasDiyJs || n.value, n.value || d(e.setting.name, null);
|
|
766
|
+
}, 50), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), T(n, (c) => {
|
|
767
767
|
d(e.setting.name, c);
|
|
768
|
-
}), (c,
|
|
768
|
+
}), (c, D) => r.value ? (M(), E(a(J), {
|
|
769
769
|
key: 0,
|
|
770
770
|
col: e.span,
|
|
771
|
-
modelValue:
|
|
772
|
-
"onUpdate:modelValue":
|
|
771
|
+
modelValue: n.value,
|
|
772
|
+
"onUpdate:modelValue": D[0] || (D[0] = (h) => n.value = h),
|
|
773
773
|
style: { width: "100%" },
|
|
774
774
|
label: c.setting.desc,
|
|
775
775
|
type: "inputNumber",
|
|
@@ -781,7 +781,7 @@ const Fa = (n, e) => {
|
|
|
781
781
|
isView: e.isView,
|
|
782
782
|
precision: c.setting.options.decimalDigits,
|
|
783
783
|
helpMessage: f.value,
|
|
784
|
-
required:
|
|
784
|
+
required: i.value
|
|
785
785
|
}, null, 8, ["col", "modelValue", "label", "prop", "max", "min", "step", "disabled", "isView", "precision", "helpMessage", "required"])) : B("v-if", !0);
|
|
786
786
|
}
|
|
787
787
|
}), vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -806,54 +806,54 @@ const Fa = (n, e) => {
|
|
|
806
806
|
marginRight: {},
|
|
807
807
|
store: {}
|
|
808
808
|
},
|
|
809
|
-
setup(
|
|
810
|
-
const e =
|
|
811
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
809
|
+
setup(s) {
|
|
810
|
+
const e = s, { showData: t, disabledData: l, setData: d, getData: o, setFormRule: m, deleteRule: L } = e.store || {}, n = u(null), r = u(!0);
|
|
811
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), T(
|
|
812
812
|
() => t.value,
|
|
813
813
|
() => {
|
|
814
|
-
|
|
814
|
+
r.value = t.value[e.setting.name], r.value || (n.value = null, L(e.setting.name)), r.value && e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList);
|
|
815
815
|
},
|
|
816
816
|
{ deep: !0, immediate: !0 }
|
|
817
817
|
);
|
|
818
|
-
const v = l.value[e.setting.name] || !1,
|
|
819
|
-
ne(e.setting.options.validateList).then((
|
|
820
|
-
|
|
818
|
+
const v = l.value[e.setting.name] || !1, i = u(!1);
|
|
819
|
+
ne(e.setting.options.validateList).then((g) => {
|
|
820
|
+
i.value = g;
|
|
821
821
|
});
|
|
822
|
-
const f = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", c = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value",
|
|
823
|
-
e.setting.options.customQuery.alias ? we(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((
|
|
824
|
-
|
|
825
|
-
}) :
|
|
826
|
-
const
|
|
827
|
-
e.setting.options.tip && (
|
|
828
|
-
|
|
829
|
-
}, 50), e.setting.options.validateList.length &&
|
|
830
|
-
d(e.setting.name,
|
|
822
|
+
const f = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", c = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", D = u([]);
|
|
823
|
+
e.setting.options.customQuery.alias ? we(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((g) => {
|
|
824
|
+
D.value = g;
|
|
825
|
+
}) : D.value = e.setting.options.options;
|
|
826
|
+
const h = u();
|
|
827
|
+
e.setting.options.tip && (h.value = X(e.setting.options.tip)), setTimeout(() => {
|
|
828
|
+
n.value = o(e.setting.name) || e.setting.options.formulasDiyJs || n.value, n.value || d(e.setting.name, null);
|
|
829
|
+
}, 50), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), T(n, (g) => {
|
|
830
|
+
d(e.setting.name, g);
|
|
831
831
|
});
|
|
832
|
-
const
|
|
833
|
-
e.setting.options.linkage.length && e.setting.options.linkage.forEach((
|
|
834
|
-
if (
|
|
835
|
-
const
|
|
836
|
-
t.value[
|
|
832
|
+
const S = (g) => {
|
|
833
|
+
e.setting.options.linkage.length && e.setting.options.linkage.forEach((z) => {
|
|
834
|
+
if (z.value === g) {
|
|
835
|
+
const p = z.effect[0].target.split(".")[2];
|
|
836
|
+
t.value[p] = z.effect[0].type === "w";
|
|
837
837
|
}
|
|
838
838
|
});
|
|
839
839
|
};
|
|
840
|
-
return (
|
|
840
|
+
return (g, z) => r.value ? (M(), E(a(J), {
|
|
841
841
|
key: 0,
|
|
842
|
-
onChange:
|
|
842
|
+
onChange: S,
|
|
843
843
|
col: e.span,
|
|
844
|
-
modelValue:
|
|
845
|
-
"onUpdate:modelValue":
|
|
846
|
-
layout:
|
|
847
|
-
label:
|
|
844
|
+
modelValue: n.value,
|
|
845
|
+
"onUpdate:modelValue": z[0] || (z[0] = (C) => n.value = C),
|
|
846
|
+
layout: g.setting.options.inline ? "vertical" : "default",
|
|
847
|
+
label: g.setting.desc,
|
|
848
848
|
type: "radio",
|
|
849
849
|
prop: e.setting.name,
|
|
850
|
-
options:
|
|
850
|
+
options: D.value,
|
|
851
851
|
isView: e.isView,
|
|
852
852
|
optionsValueKey: a(f),
|
|
853
853
|
optionsLabelKey: a(c),
|
|
854
|
-
helpMessage:
|
|
854
|
+
helpMessage: h.value,
|
|
855
855
|
disabled: a(v),
|
|
856
|
-
required:
|
|
856
|
+
required: i.value,
|
|
857
857
|
isSetTimeout: !0
|
|
858
858
|
}, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) : B("v-if", !0);
|
|
859
859
|
}
|
|
@@ -877,110 +877,110 @@ const Fa = (n, e) => {
|
|
|
877
877
|
marginRight: {},
|
|
878
878
|
store: {}
|
|
879
879
|
},
|
|
880
|
-
setup(
|
|
881
|
-
var
|
|
882
|
-
const e =
|
|
883
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
880
|
+
setup(s) {
|
|
881
|
+
var z, C;
|
|
882
|
+
const e = s, { showData: t, disabledData: l, linkData: d, setData: o, getData: m, setFormRule: L, deleteRule: n } = e.store || {}, r = u(), v = u(!0);
|
|
883
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), T(
|
|
884
884
|
() => t.value,
|
|
885
885
|
() => {
|
|
886
|
-
v.value = t.value[e.setting.name], v.value || (
|
|
886
|
+
v.value = t.value[e.setting.name], v.value || (r.value = null, n(e.setting.name)), v.value && e.setting.options.validateList.length && L(e.setting.name, e.setting.options.validateList);
|
|
887
887
|
},
|
|
888
888
|
{ deep: !0, immediate: !0 }
|
|
889
|
-
),
|
|
889
|
+
), T(
|
|
890
890
|
() => d.value,
|
|
891
891
|
() => {
|
|
892
|
-
d.value.data.forEach((
|
|
893
|
-
if (e.setting.options.customQuery.alias && e.setting.options.customQuery.alias ===
|
|
894
|
-
|
|
895
|
-
const
|
|
896
|
-
let
|
|
897
|
-
|
|
898
|
-
const
|
|
899
|
-
|
|
892
|
+
d.value.data.forEach((p) => {
|
|
893
|
+
if (e.setting.options.customQuery.alias && e.setting.options.customQuery.alias === p.alias) {
|
|
894
|
+
r.value = null;
|
|
895
|
+
const _ = Array.isArray(p.conditionfield) ? p.conditionfield.filter((K) => K.defaultType == 1) : [];
|
|
896
|
+
let N = {};
|
|
897
|
+
_.forEach((K) => {
|
|
898
|
+
const F = K.fieldPath.split("."), U = F[F.length - 1];
|
|
899
|
+
N[K.field] = m(U);
|
|
900
900
|
}), we(
|
|
901
901
|
e.setting.options.customQuery.alias,
|
|
902
902
|
e.setting.options.customQuery.conditionfield,
|
|
903
|
-
|
|
904
|
-
).then((
|
|
905
|
-
|
|
903
|
+
N
|
|
904
|
+
).then((K) => {
|
|
905
|
+
h.value = K;
|
|
906
906
|
});
|
|
907
907
|
}
|
|
908
908
|
});
|
|
909
909
|
},
|
|
910
910
|
{ deep: !0 }
|
|
911
911
|
);
|
|
912
|
-
const
|
|
913
|
-
ne(e.setting.options.validateList).then((
|
|
914
|
-
f.value =
|
|
912
|
+
const i = l.value[e.setting.name] || !1, f = u(!1);
|
|
913
|
+
ne(e.setting.options.validateList).then((p) => {
|
|
914
|
+
f.value = p;
|
|
915
915
|
});
|
|
916
|
-
const c = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key",
|
|
916
|
+
const c = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", D = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", h = u([]);
|
|
917
917
|
if (e.setting.options.customQuery.alias) {
|
|
918
|
-
let
|
|
919
|
-
if (typeof
|
|
918
|
+
let p = (C = (z = e.setting.options) == null ? void 0 : z.customQuery) == null ? void 0 : C.conditionfield;
|
|
919
|
+
if (typeof p == "string")
|
|
920
920
|
try {
|
|
921
|
-
|
|
921
|
+
p = JSON.parse(p);
|
|
922
922
|
} catch {
|
|
923
|
-
|
|
923
|
+
p = [];
|
|
924
924
|
}
|
|
925
|
-
const
|
|
926
|
-
let
|
|
927
|
-
|
|
928
|
-
var
|
|
929
|
-
const
|
|
930
|
-
|
|
931
|
-
}), Object.values(
|
|
932
|
-
(
|
|
933
|
-
|
|
925
|
+
const _ = Array.isArray(p) ? p.filter((K) => K.defaultType == 1) : [];
|
|
926
|
+
let N = {};
|
|
927
|
+
_.forEach((K) => {
|
|
928
|
+
var j;
|
|
929
|
+
const F = (j = K.fieldPath) == null ? void 0 : j.split("."), U = F[F.length - 1];
|
|
930
|
+
N[K.field] = m(U);
|
|
931
|
+
}), Object.values(N).every((K) => K) && we(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield, N).then(
|
|
932
|
+
(K) => {
|
|
933
|
+
h.value = K;
|
|
934
934
|
}
|
|
935
935
|
);
|
|
936
936
|
} else
|
|
937
|
-
|
|
938
|
-
const
|
|
939
|
-
e.setting.options.tip && (
|
|
940
|
-
e.setting.options.multiple && (
|
|
941
|
-
}, 50), e.setting.options.validateList.length &&
|
|
942
|
-
e.setting.options.multiple ?
|
|
937
|
+
h.value = e.setting.options.options;
|
|
938
|
+
const S = u();
|
|
939
|
+
e.setting.options.tip && (S.value = X(e.setting.options.tip)), r.value = e.setting.options.multiple ? [] : null, setTimeout(() => {
|
|
940
|
+
e.setting.options.multiple && (m(e.setting.name) || e.setting.options.formulasDiyJs) ? (m(e.setting.name) && (r.value = m(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (r.value = e.setting.options.formulasDiyJs.split(","))) : r.value = m(e.setting.name) || e.setting.options.formulasDiyJs || r.value, r.value || o(e.setting.name, null);
|
|
941
|
+
}, 50), e.setting.options.validateList.length && L(e.setting.name, e.setting.options.validateList), T(r, (p) => {
|
|
942
|
+
e.setting.options.multiple ? o(e.setting.name, p.toString()) : o(e.setting.name, p);
|
|
943
943
|
});
|
|
944
|
-
const
|
|
945
|
-
e.setting.options.linkage.length && !e.setting.options.multiple && e.setting.options.linkage.forEach((
|
|
946
|
-
if (
|
|
947
|
-
const
|
|
948
|
-
t.value[
|
|
944
|
+
const g = (p) => {
|
|
945
|
+
e.setting.options.linkage.length && !e.setting.options.multiple && e.setting.options.linkage.forEach((_) => {
|
|
946
|
+
if (_.value === p) {
|
|
947
|
+
const K = _.effect[0].target.split(".")[2];
|
|
948
|
+
t.value[K] = _.effect[0].type === "w";
|
|
949
949
|
}
|
|
950
950
|
});
|
|
951
951
|
};
|
|
952
|
-
return (
|
|
952
|
+
return (p, _) => v.value ? (M(), E(a(J), {
|
|
953
953
|
key: 0,
|
|
954
954
|
col: e.span,
|
|
955
|
-
modelValue:
|
|
956
|
-
"onUpdate:modelValue":
|
|
957
|
-
label:
|
|
958
|
-
onChange:
|
|
955
|
+
modelValue: r.value,
|
|
956
|
+
"onUpdate:modelValue": _[0] || (_[0] = (N) => r.value = N),
|
|
957
|
+
label: p.setting.desc,
|
|
958
|
+
onChange: g,
|
|
959
959
|
type: "select",
|
|
960
960
|
prop: e.setting.name,
|
|
961
|
-
placeholder:
|
|
962
|
-
mode:
|
|
963
|
-
showSearch:
|
|
961
|
+
placeholder: p.setting.options.placeholder,
|
|
962
|
+
mode: p.setting.options.multiple ? "tags" : "combobox",
|
|
963
|
+
showSearch: p.setting.options.filterable,
|
|
964
964
|
allowClear: !0,
|
|
965
965
|
isView: e.isView,
|
|
966
|
-
options:
|
|
966
|
+
options: h.value,
|
|
967
967
|
optionsValueKey: a(c),
|
|
968
|
-
optionsLabelKey: a(
|
|
969
|
-
helpMessage:
|
|
970
|
-
disabled: a(
|
|
968
|
+
optionsLabelKey: a(D),
|
|
969
|
+
helpMessage: S.value,
|
|
970
|
+
disabled: a(i),
|
|
971
971
|
required: f.value
|
|
972
972
|
}, null, 8, ["col", "modelValue", "label", "prop", "placeholder", "mode", "showSearch", "isView", "options", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) : B("v-if", !0);
|
|
973
973
|
}
|
|
974
974
|
}), ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
975
975
|
__proto__: null,
|
|
976
976
|
default: Qa
|
|
977
|
-
}, Symbol.toStringTag, { value: "Module" })), Ua = (
|
|
977
|
+
}, Symbol.toStringTag, { value: "Module" })), Ua = (s, e, t) => {
|
|
978
978
|
var Ve, Ce, he, ye, De;
|
|
979
|
-
const l = tt().id, d =
|
|
979
|
+
const l = tt().id, d = u(!1), o = (De = (ye = (he = (Ce = (Ve = s == null ? void 0 : s.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", ""), m = u([]), L = u(""), n = u(""), r = u(""), v = u({
|
|
980
980
|
spaceId: "",
|
|
981
981
|
spacePath: "",
|
|
982
982
|
spacePathName: ""
|
|
983
|
-
}),
|
|
983
|
+
}), i = {
|
|
984
984
|
user: O("搜索姓名/账号/手机号").value,
|
|
985
985
|
org: O("搜索组织名称/组织编码").value,
|
|
986
986
|
role: O("搜索角色名称").value,
|
|
@@ -1007,17 +1007,17 @@ const Fa = (n, e) => {
|
|
|
1007
1007
|
supplier: "id",
|
|
1008
1008
|
source: "code",
|
|
1009
1009
|
device: "deviceId"
|
|
1010
|
-
},
|
|
1010
|
+
}, D = {
|
|
1011
1011
|
1: O("正常").value,
|
|
1012
1012
|
2: O("锁定").value,
|
|
1013
1013
|
3: O("禁用").value
|
|
1014
|
-
},
|
|
1014
|
+
}, h = {
|
|
1015
1015
|
0: O("普通").value,
|
|
1016
1016
|
1: O("管理员").value
|
|
1017
|
-
},
|
|
1017
|
+
}, S = {
|
|
1018
1018
|
0: O("无效").value,
|
|
1019
1019
|
1: O("有效").value
|
|
1020
|
-
},
|
|
1020
|
+
}, g = {
|
|
1021
1021
|
user: sa,
|
|
1022
1022
|
org: $e,
|
|
1023
1023
|
role: la,
|
|
@@ -1025,9 +1025,9 @@ const Fa = (n, e) => {
|
|
|
1025
1025
|
post: $e,
|
|
1026
1026
|
supplier: ca,
|
|
1027
1027
|
device: va
|
|
1028
|
-
},
|
|
1029
|
-
var
|
|
1030
|
-
|
|
1028
|
+
}, z = f[o], C = u({}), p = u([]), _ = () => {
|
|
1029
|
+
var V, Q;
|
|
1030
|
+
o === "supplier" ? (C.value = {
|
|
1031
1031
|
left: !1,
|
|
1032
1032
|
content: {
|
|
1033
1033
|
api: da,
|
|
@@ -1055,7 +1055,7 @@ const Fa = (n, e) => {
|
|
|
1055
1055
|
}
|
|
1056
1056
|
},
|
|
1057
1057
|
right: !1
|
|
1058
|
-
}, ee(),
|
|
1058
|
+
}, ee(), K()) : o === "device" ? (C.value = {
|
|
1059
1059
|
left: !1,
|
|
1060
1060
|
content: {
|
|
1061
1061
|
multiple: !1,
|
|
@@ -1074,7 +1074,7 @@ const Fa = (n, e) => {
|
|
|
1074
1074
|
}
|
|
1075
1075
|
},
|
|
1076
1076
|
right: !1
|
|
1077
|
-
},
|
|
1077
|
+
}, j(), pe()) : o === "source" ? (C.value = {
|
|
1078
1078
|
left: !1,
|
|
1079
1079
|
content: {
|
|
1080
1080
|
api: ma,
|
|
@@ -1092,7 +1092,7 @@ const Fa = (n, e) => {
|
|
|
1092
1092
|
}
|
|
1093
1093
|
},
|
|
1094
1094
|
right: !1
|
|
1095
|
-
},
|
|
1095
|
+
}, N()) : o === "org" ? (C.value = {
|
|
1096
1096
|
left: !1,
|
|
1097
1097
|
content: {
|
|
1098
1098
|
api: ia,
|
|
@@ -1103,7 +1103,7 @@ const Fa = (n, e) => {
|
|
|
1103
1103
|
data: []
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
|
-
},
|
|
1106
|
+
}, N()) : C.value = {
|
|
1107
1107
|
left: {
|
|
1108
1108
|
api: aa,
|
|
1109
1109
|
params: {
|
|
@@ -1121,7 +1121,7 @@ const Fa = (n, e) => {
|
|
|
1121
1121
|
data: []
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
|
-
},
|
|
1124
|
+
}, o === "user" && (C.value.content = {
|
|
1125
1125
|
api: na,
|
|
1126
1126
|
searchKey: "groupId",
|
|
1127
1127
|
params: {
|
|
@@ -1131,7 +1131,7 @@ const Fa = (n, e) => {
|
|
|
1131
1131
|
selectListProps: {
|
|
1132
1132
|
data: []
|
|
1133
1133
|
}
|
|
1134
|
-
},
|
|
1134
|
+
}, N()), o === "role" && (C.value.content = {
|
|
1135
1135
|
api: oa,
|
|
1136
1136
|
searchKey: "orgId",
|
|
1137
1137
|
params: {
|
|
@@ -1140,7 +1140,7 @@ const Fa = (n, e) => {
|
|
|
1140
1140
|
selectListProps: {
|
|
1141
1141
|
data: []
|
|
1142
1142
|
}
|
|
1143
|
-
},
|
|
1143
|
+
}, N()), o === "job" && (C.value.content = {
|
|
1144
1144
|
api: ua,
|
|
1145
1145
|
searchKey: "groupId",
|
|
1146
1146
|
props: {
|
|
@@ -1149,7 +1149,7 @@ const Fa = (n, e) => {
|
|
|
1149
1149
|
selectListProps: {
|
|
1150
1150
|
data: []
|
|
1151
1151
|
}
|
|
1152
|
-
},
|
|
1152
|
+
}, N()), o === "post" && (C.value.content = {
|
|
1153
1153
|
api: ra,
|
|
1154
1154
|
searchKey: "groupId",
|
|
1155
1155
|
props: {
|
|
@@ -1158,14 +1158,14 @@ const Fa = (n, e) => {
|
|
|
1158
1158
|
selectListProps: {
|
|
1159
1159
|
data: []
|
|
1160
1160
|
}
|
|
1161
|
-
},
|
|
1162
|
-
},
|
|
1163
|
-
|
|
1161
|
+
}, N()), C.value.content.multiple = o === "supplier" || o === "source" || o === "device" ? !1 : !((Q = (V = s == null ? void 0 : s.options) == null ? void 0 : V.selector) != null && Q.isSingle);
|
|
1162
|
+
}, N = async () => {
|
|
1163
|
+
p.value = [
|
|
1164
1164
|
{
|
|
1165
1165
|
type: "searchInput",
|
|
1166
1166
|
key: "inputtKey",
|
|
1167
1167
|
label: "",
|
|
1168
|
-
placeholder:
|
|
1168
|
+
placeholder: i[o],
|
|
1169
1169
|
value: "",
|
|
1170
1170
|
clearable: !0,
|
|
1171
1171
|
isIconLeft: !0,
|
|
@@ -1173,13 +1173,13 @@ const Fa = (n, e) => {
|
|
|
1173
1173
|
size: "small"
|
|
1174
1174
|
}
|
|
1175
1175
|
];
|
|
1176
|
-
},
|
|
1177
|
-
|
|
1176
|
+
}, K = async () => {
|
|
1177
|
+
p.value = [
|
|
1178
1178
|
{
|
|
1179
1179
|
type: "searchInput",
|
|
1180
1180
|
key: "inputtKey",
|
|
1181
1181
|
label: "",
|
|
1182
|
-
placeholder:
|
|
1182
|
+
placeholder: i[o],
|
|
1183
1183
|
value: "",
|
|
1184
1184
|
clearable: !0,
|
|
1185
1185
|
isIconLeft: !0,
|
|
@@ -1200,22 +1200,22 @@ const Fa = (n, e) => {
|
|
|
1200
1200
|
allowClear: !0
|
|
1201
1201
|
}
|
|
1202
1202
|
];
|
|
1203
|
-
},
|
|
1204
|
-
|
|
1205
|
-
}, U = async (
|
|
1203
|
+
}, F = (V) => {
|
|
1204
|
+
V.id == "-1" ? V.disabled = !0 : V.disabled = !1;
|
|
1205
|
+
}, U = async (V) => {
|
|
1206
1206
|
let Q = { spaceId: "" };
|
|
1207
|
-
|
|
1208
|
-
const [
|
|
1209
|
-
return
|
|
1210
|
-
|
|
1211
|
-
}),
|
|
1212
|
-
},
|
|
1213
|
-
|
|
1207
|
+
V != null && V.id && (Q.spaceId = V.id);
|
|
1208
|
+
const [y, P] = await lt(Q).run();
|
|
1209
|
+
return y ? {} : (P.data.forEach((R) => {
|
|
1210
|
+
F(R);
|
|
1211
|
+
}), P);
|
|
1212
|
+
}, j = async () => {
|
|
1213
|
+
p.value = [
|
|
1214
1214
|
{
|
|
1215
1215
|
type: "searchInput",
|
|
1216
1216
|
key: "inputtKey",
|
|
1217
1217
|
label: "",
|
|
1218
|
-
placeholder:
|
|
1218
|
+
placeholder: i[o],
|
|
1219
1219
|
value: "",
|
|
1220
1220
|
clearable: !0,
|
|
1221
1221
|
isIconLeft: !0,
|
|
@@ -1242,42 +1242,42 @@ const Fa = (n, e) => {
|
|
|
1242
1242
|
value: "",
|
|
1243
1243
|
checkedNodes: [],
|
|
1244
1244
|
selectAttrs: { allowClear: !0 },
|
|
1245
|
-
treeProps: { isLeaf: "leaf", label: "name", disabled: (
|
|
1245
|
+
treeProps: { isLeaf: "leaf", label: "name", disabled: (V) => V.disabled },
|
|
1246
1246
|
load: U,
|
|
1247
1247
|
options: []
|
|
1248
1248
|
}
|
|
1249
1249
|
];
|
|
1250
1250
|
}, ee = async () => {
|
|
1251
|
-
const
|
|
1251
|
+
const V = {
|
|
1252
1252
|
name: "",
|
|
1253
1253
|
published: 1
|
|
1254
|
-
}, [Q,
|
|
1255
|
-
Q || (
|
|
1256
|
-
}, ie = (
|
|
1257
|
-
var Q,
|
|
1258
|
-
|
|
1254
|
+
}, [Q, y] = await ga(V).run();
|
|
1255
|
+
Q || (p.value[1].options = y);
|
|
1256
|
+
}, ie = (V) => {
|
|
1257
|
+
var Q, y;
|
|
1258
|
+
V.leaf = !((Q = V.children) != null && Q.length), V.parentId === "0" && (V.id = "-1"), (y = V.children) == null || y.forEach(ie);
|
|
1259
1259
|
}, pe = async () => {
|
|
1260
|
-
const [
|
|
1261
|
-
if (
|
|
1262
|
-
const
|
|
1263
|
-
|
|
1260
|
+
const [V, Q] = await fa().run();
|
|
1261
|
+
if (V) return;
|
|
1262
|
+
const y = [Q];
|
|
1263
|
+
y.forEach(ie), p.value[1].options = y, p.value[1].value = "-1";
|
|
1264
1264
|
}, x = () => {
|
|
1265
1265
|
var Q;
|
|
1266
|
-
|
|
1267
|
-
let
|
|
1268
|
-
|
|
1266
|
+
L.value = "", d.value = !0;
|
|
1267
|
+
let V = c[o];
|
|
1268
|
+
C.value.content.selectListProps.data = (Q = m == null ? void 0 : m.value) == null ? void 0 : Q.map((y) => o === "device" ? { deviceName: y == null ? void 0 : y.label, [V]: y == null ? void 0 : y.value } : { name: y == null ? void 0 : y.label, [V]: y == null ? void 0 : y.value });
|
|
1269
1269
|
};
|
|
1270
|
-
|
|
1270
|
+
_();
|
|
1271
1271
|
const fe = async () => {
|
|
1272
|
-
var
|
|
1273
|
-
if (
|
|
1274
|
-
...(Q = (
|
|
1272
|
+
var V, Q, y, P, R, b, w, q, Z, be, de, se, te, W, ce, ge, oe, Ye, Je, He;
|
|
1273
|
+
if (C.value.content.params = {
|
|
1274
|
+
...(Q = (V = C == null ? void 0 : C.value) == null ? void 0 : V.content) == null ? void 0 : Q.params,
|
|
1275
1275
|
pageIndex: 1
|
|
1276
|
-
}, (
|
|
1277
|
-
const Pe = (
|
|
1278
|
-
|
|
1276
|
+
}, (o === "user" || o === "org" || o === "post" || o === "role" || o === "job") && (C.value.content.params.name = (y = p == null ? void 0 : p.value[0]) == null ? void 0 : y.value), o === "source" && (C.value.content.params.key = (P = p == null ? void 0 : p.value[0]) == null ? void 0 : P.value), o === "device") {
|
|
1277
|
+
const Pe = (R = p == null ? void 0 : p.value[1]) == null ? void 0 : R.value;
|
|
1278
|
+
C.value.content.params.deviceNameOrCode = ((b = p == null ? void 0 : p.value[0]) == null ? void 0 : b.value) || "", C.value.content.params.groupId = !Pe || Pe === "-1" ? null : Pe, C.value.content.params.spaceId = ((w = p == null ? void 0 : p.value[2]) == null ? void 0 : w.value) || "";
|
|
1279
1279
|
}
|
|
1280
|
-
|
|
1280
|
+
o === "supplier" && (C.value.content.params.querys = [
|
|
1281
1281
|
{
|
|
1282
1282
|
property: "orgId",
|
|
1283
1283
|
value: l,
|
|
@@ -1285,120 +1285,120 @@ const Fa = (n, e) => {
|
|
|
1285
1285
|
relation: "AND",
|
|
1286
1286
|
operation: "EQUAL"
|
|
1287
1287
|
}
|
|
1288
|
-
], (q =
|
|
1288
|
+
], (q = p == null ? void 0 : p.value[0]) != null && q.value && (C.value.content.params.querys = (W = (de = (be = (Z = C == null ? void 0 : C.value) == null ? void 0 : Z.content) == null ? void 0 : be.params) == null ? void 0 : de.querys) == null ? void 0 : W.concat([
|
|
1289
1289
|
{
|
|
1290
1290
|
property: "name",
|
|
1291
|
-
value: (se =
|
|
1291
|
+
value: (se = p == null ? void 0 : p.value[0]) == null ? void 0 : se.value,
|
|
1292
1292
|
group: "merge",
|
|
1293
1293
|
relation: "OR",
|
|
1294
1294
|
operation: "LIKE"
|
|
1295
1295
|
},
|
|
1296
1296
|
{
|
|
1297
1297
|
property: "code",
|
|
1298
|
-
value: (te =
|
|
1298
|
+
value: (te = p == null ? void 0 : p.value[0]) == null ? void 0 : te.value,
|
|
1299
1299
|
group: "merge",
|
|
1300
1300
|
relation: "OR",
|
|
1301
1301
|
operation: "LIKE"
|
|
1302
1302
|
}
|
|
1303
|
-
])), (ce =
|
|
1303
|
+
])), (ce = p == null ? void 0 : p.value[1]) != null && ce.value && (C.value.content.params.querys = (He = (Ye = (oe = (ge = C == null ? void 0 : C.value) == null ? void 0 : ge.content) == null ? void 0 : oe.params) == null ? void 0 : Ye.querys) == null ? void 0 : He.concat([
|
|
1304
1304
|
{
|
|
1305
1305
|
property: "classificationId",
|
|
1306
|
-
value: (Je =
|
|
1306
|
+
value: (Je = p == null ? void 0 : p.value[1]) == null ? void 0 : Je.value,
|
|
1307
1307
|
group: "quick",
|
|
1308
1308
|
relation: "AND",
|
|
1309
1309
|
operation: "EQUAL"
|
|
1310
1310
|
}
|
|
1311
1311
|
])));
|
|
1312
1312
|
};
|
|
1313
|
-
|
|
1313
|
+
T(
|
|
1314
1314
|
() => d == null ? void 0 : d.value,
|
|
1315
|
-
(
|
|
1316
|
-
|
|
1315
|
+
(V) => {
|
|
1316
|
+
V || _e();
|
|
1317
1317
|
}
|
|
1318
1318
|
);
|
|
1319
1319
|
const _e = async () => {
|
|
1320
|
-
|
|
1320
|
+
o === "supplier" ? (p.value[0].value = "", p.value[1].value = void 0) : o === "device" ? (p.value[0].value = "", p.value[1].value = "-1", p.value[2].value = "") : (o === "org" || o === "user" || o === "source" || o === "post" || o === "role" || o === "job") && (p.value[0].value = ""), _();
|
|
1321
1321
|
};
|
|
1322
1322
|
return {
|
|
1323
1323
|
dialogVisible: d,
|
|
1324
|
-
title:
|
|
1325
|
-
searchName:
|
|
1326
|
-
selectorType:
|
|
1327
|
-
selectOptions:
|
|
1328
|
-
tableOptions:
|
|
1329
|
-
userStatusMap:
|
|
1330
|
-
roleTypeMap:
|
|
1331
|
-
roleStatusMap:
|
|
1324
|
+
title: z,
|
|
1325
|
+
searchName: L,
|
|
1326
|
+
selectorType: o,
|
|
1327
|
+
selectOptions: m,
|
|
1328
|
+
tableOptions: C,
|
|
1329
|
+
userStatusMap: D,
|
|
1330
|
+
roleTypeMap: h,
|
|
1331
|
+
roleStatusMap: S,
|
|
1332
1332
|
openDialog: x,
|
|
1333
|
-
confirm: async (
|
|
1334
|
-
var
|
|
1335
|
-
let Q = c[
|
|
1336
|
-
|
|
1337
|
-
spaceId: (
|
|
1333
|
+
confirm: async (V) => {
|
|
1334
|
+
var y, P, R, b;
|
|
1335
|
+
let Q = c[o];
|
|
1336
|
+
m.value = V == null ? void 0 : V.map((w) => ({ label: (w == null ? void 0 : w.deviceName) || (w == null ? void 0 : w.name) || (w == null ? void 0 : w.code), value: w[Q] })), o === "supplier" && (n.value = (y = V[0]) == null ? void 0 : y.linkmanPhone), o === "device" && (r.value = ((P = V[0]) == null ? void 0 : P.id) || "", v.value = {
|
|
1337
|
+
spaceId: (R = V[0]) == null ? void 0 : R.spaceId,
|
|
1338
1338
|
spacePath: "",
|
|
1339
|
-
spacePathName: ((
|
|
1339
|
+
spacePathName: ((b = V[0]) == null ? void 0 : b.spaceSite) || ""
|
|
1340
1340
|
});
|
|
1341
1341
|
},
|
|
1342
|
-
getDetail: async (
|
|
1343
|
-
if (!
|
|
1344
|
-
const Q =
|
|
1345
|
-
let
|
|
1346
|
-
const
|
|
1347
|
-
if (
|
|
1348
|
-
|
|
1342
|
+
getDetail: async (V) => {
|
|
1343
|
+
if (!V) return;
|
|
1344
|
+
const Q = g[o];
|
|
1345
|
+
let y = {};
|
|
1346
|
+
const P = V == null ? void 0 : V.split(",");
|
|
1347
|
+
if (o === "source") {
|
|
1348
|
+
m.value = [
|
|
1349
1349
|
{
|
|
1350
|
-
label:
|
|
1351
|
-
value:
|
|
1350
|
+
label: V,
|
|
1351
|
+
value: V
|
|
1352
1352
|
}
|
|
1353
1353
|
];
|
|
1354
1354
|
return;
|
|
1355
|
-
} else
|
|
1356
|
-
deviceNameOrCode:
|
|
1355
|
+
} else o === "user" ? y.userIds = P : o === "role" ? y.ids = P : o === "supplier" ? y.id = P : o === "device" ? y = {
|
|
1356
|
+
deviceNameOrCode: V,
|
|
1357
1357
|
groupId: null,
|
|
1358
1358
|
spaceId: ""
|
|
1359
|
-
} :
|
|
1360
|
-
const [
|
|
1361
|
-
if (
|
|
1362
|
-
if (
|
|
1363
|
-
|
|
1359
|
+
} : y = P;
|
|
1360
|
+
const [R, b] = await Q(y).run();
|
|
1361
|
+
if (!R)
|
|
1362
|
+
if (o === "supplier")
|
|
1363
|
+
m.value = [
|
|
1364
1364
|
{
|
|
1365
|
-
label: (
|
|
1366
|
-
value:
|
|
1365
|
+
label: (b == null ? void 0 : b.name) || (b == null ? void 0 : b.code),
|
|
1366
|
+
value: b == null ? void 0 : b.id
|
|
1367
1367
|
}
|
|
1368
1368
|
];
|
|
1369
|
-
else if (
|
|
1370
|
-
const
|
|
1369
|
+
else if (o === "device") {
|
|
1370
|
+
const w = Array.isArray(b) ? b : (b == null ? void 0 : b.data) || (b == null ? void 0 : b.rows) || [], q = w.find((Z) => (Z == null ? void 0 : Z.deviceId) === V) || w[0];
|
|
1371
1371
|
if (!q) return;
|
|
1372
|
-
|
|
1372
|
+
r.value = (q == null ? void 0 : q.id) || "", v.value = {
|
|
1373
1373
|
spaceId: (q == null ? void 0 : q.spaceId) || "",
|
|
1374
1374
|
spacePath: "",
|
|
1375
1375
|
spacePathName: (q == null ? void 0 : q.spaceSite) || ""
|
|
1376
|
-
},
|
|
1376
|
+
}, m.value = [
|
|
1377
1377
|
{
|
|
1378
1378
|
label: q == null ? void 0 : q.deviceName,
|
|
1379
1379
|
value: q == null ? void 0 : q.deviceId
|
|
1380
1380
|
}
|
|
1381
1381
|
];
|
|
1382
1382
|
} else
|
|
1383
|
-
|
|
1383
|
+
m.value = b == null ? void 0 : b.map((w) => ({ label: (w == null ? void 0 : w.name) || (w == null ? void 0 : w.code), value: w == null ? void 0 : w.id }));
|
|
1384
1384
|
},
|
|
1385
1385
|
searchData: fe,
|
|
1386
|
-
searchOptions:
|
|
1387
|
-
linkmanPhone:
|
|
1388
|
-
equipmentArchivesId:
|
|
1386
|
+
searchOptions: p,
|
|
1387
|
+
linkmanPhone: n,
|
|
1388
|
+
equipmentArchivesId: r,
|
|
1389
1389
|
deviceSpaceInfo: v
|
|
1390
1390
|
};
|
|
1391
|
-
}, xa = (
|
|
1392
|
-
const e =
|
|
1391
|
+
}, xa = (s) => {
|
|
1392
|
+
const e = u(""), t = u(""), l = u([]), d = u("");
|
|
1393
1393
|
return {
|
|
1394
1394
|
spacePath: e,
|
|
1395
1395
|
spaceName: t,
|
|
1396
1396
|
spaceTreeData: l,
|
|
1397
1397
|
searchSpace: d,
|
|
1398
|
-
changeSpace: (
|
|
1399
|
-
|
|
1398
|
+
changeSpace: (r, v) => {
|
|
1399
|
+
s ? (e.value = v[0].path, t.value = v[0].pathName) : (e.value = (v == null ? void 0 : v.map((i) => i.path)) || [], t.value = (v == null ? void 0 : v.map((i) => i.pathName)) || []);
|
|
1400
1400
|
},
|
|
1401
|
-
spaceLoad: async (
|
|
1401
|
+
spaceLoad: async (r) => {
|
|
1402
1402
|
let v = {
|
|
1403
1403
|
pageSize: 1e4,
|
|
1404
1404
|
pageIndex: 1,
|
|
@@ -1407,26 +1407,26 @@ const Fa = (n, e) => {
|
|
|
1407
1407
|
spaceId: ""
|
|
1408
1408
|
// orgId:getProjectInfo().id
|
|
1409
1409
|
};
|
|
1410
|
-
v.spaceId =
|
|
1411
|
-
let
|
|
1412
|
-
const [f, c] = await
|
|
1410
|
+
v.spaceId = r != null && r.id ? r.id : "";
|
|
1411
|
+
let i = lt;
|
|
1412
|
+
const [f, c] = await i(v).run();
|
|
1413
1413
|
return f ? {} : c;
|
|
1414
1414
|
},
|
|
1415
|
-
filterSpaceTree: async (
|
|
1416
|
-
if (!
|
|
1415
|
+
filterSpaceTree: async (r) => {
|
|
1416
|
+
if (!r) return [];
|
|
1417
1417
|
let v = pa;
|
|
1418
|
-
const
|
|
1419
|
-
name:
|
|
1420
|
-
}, [f, c] = await v(
|
|
1421
|
-
return f ? {} : (c.forEach((
|
|
1422
|
-
|
|
1418
|
+
const i = {
|
|
1419
|
+
name: r
|
|
1420
|
+
}, [f, c] = await v(i).run();
|
|
1421
|
+
return f ? {} : (c.forEach((D) => {
|
|
1422
|
+
D.path.startsWith("/0") && (D.path = D.path.slice(2) + `/${D.id}`), D._name = D.nodeName ? D.nodeName : D.name;
|
|
1423
1423
|
}), c);
|
|
1424
1424
|
},
|
|
1425
|
-
getSpaceDetail: async (
|
|
1426
|
-
if (!
|
|
1427
|
-
const [v,
|
|
1425
|
+
getSpaceDetail: async (r) => {
|
|
1426
|
+
if (!r) return;
|
|
1427
|
+
const [v, i] = await Oe().run({ spaceId: r });
|
|
1428
1428
|
if (!v)
|
|
1429
|
-
return e.value = (
|
|
1429
|
+
return e.value = (i == null ? void 0 : i.path) || r, t.value = (i == null ? void 0 : i.pathName) || (i == null ? void 0 : i.name) || "", i;
|
|
1430
1430
|
}
|
|
1431
1431
|
};
|
|
1432
1432
|
}, Ya = { class: "table-search-process-top" }, Ja = {
|
|
@@ -1446,54 +1446,54 @@ const Fa = (n, e) => {
|
|
|
1446
1446
|
marginRight: {},
|
|
1447
1447
|
store: {}
|
|
1448
1448
|
},
|
|
1449
|
-
setup(
|
|
1450
|
-
var De,
|
|
1451
|
-
const e =
|
|
1452
|
-
var
|
|
1453
|
-
return e.isView ? !(((
|
|
1454
|
-
}), { data: l, showData: d, setData:
|
|
1455
|
-
!d.value[e.setting.name] && d.value[e.setting.name] != !1 && (d.value[e.setting.name] = !0),
|
|
1449
|
+
setup(s) {
|
|
1450
|
+
var De, V, Q;
|
|
1451
|
+
const e = s, t = Vt(() => {
|
|
1452
|
+
var y, P, R, b;
|
|
1453
|
+
return e.isView ? !(((y = m(e.setting.name)) == null ? void 0 : y.split(",").length) > 1) : ((b = (R = (P = e == null ? void 0 : e.setting) == null ? void 0 : P.options) == null ? void 0 : R.selector) == null ? void 0 : b.isSingle) ?? !0;
|
|
1454
|
+
}), { data: l, showData: d, setData: o, getData: m, flowKey: L, setFormRule: n, deleteRule: r, disabledData: v } = e.store || {}, i = u(""), f = u(!0);
|
|
1455
|
+
!d.value[e.setting.name] && d.value[e.setting.name] != !1 && (d.value[e.setting.name] = !0), T(
|
|
1456
1456
|
() => d.value,
|
|
1457
1457
|
() => {
|
|
1458
|
-
f.value = d.value[e.setting.name], f.value || (
|
|
1458
|
+
f.value = d.value[e.setting.name], f.value || (i.value = "", z.value = [], r(e.setting.name)), f.value && e.setting.options.validateList.length && n(e.setting.name, e.setting.options.validateList);
|
|
1459
1459
|
},
|
|
1460
1460
|
{ deep: !0, immediate: !0 }
|
|
1461
1461
|
);
|
|
1462
1462
|
const c = v.value[e.setting.name] || !1, {
|
|
1463
|
-
dialogVisible:
|
|
1464
|
-
title:
|
|
1465
|
-
tableOptions:
|
|
1466
|
-
selectorType:
|
|
1467
|
-
selectOptions:
|
|
1468
|
-
userStatusMap:
|
|
1469
|
-
roleTypeMap:
|
|
1470
|
-
roleStatusMap:
|
|
1471
|
-
openDialog:
|
|
1472
|
-
confirm:
|
|
1473
|
-
getDetail:
|
|
1463
|
+
dialogVisible: D,
|
|
1464
|
+
title: h,
|
|
1465
|
+
tableOptions: S,
|
|
1466
|
+
selectorType: g,
|
|
1467
|
+
selectOptions: z,
|
|
1468
|
+
userStatusMap: C,
|
|
1469
|
+
roleTypeMap: p,
|
|
1470
|
+
roleStatusMap: _,
|
|
1471
|
+
openDialog: N,
|
|
1472
|
+
confirm: K,
|
|
1473
|
+
getDetail: F,
|
|
1474
1474
|
searchData: U,
|
|
1475
|
-
searchOptions:
|
|
1475
|
+
searchOptions: j,
|
|
1476
1476
|
linkmanPhone: ee,
|
|
1477
1477
|
equipmentArchivesId: ie,
|
|
1478
1478
|
deviceSpaceInfo: pe
|
|
1479
|
-
} = Ua(e.setting,
|
|
1479
|
+
} = Ua(e.setting, L, i), { spacePath: x, spaceName: fe, searchSpace: _e, changeSpace: Ue, spaceLoad: xe, filterSpaceTree: Ve, getSpaceDetail: Ce } = xa(
|
|
1480
1480
|
t.value
|
|
1481
|
-
), he =
|
|
1482
|
-
ne(e.setting.options.validateList).then((
|
|
1483
|
-
he.value =
|
|
1481
|
+
), he = u(!1);
|
|
1482
|
+
ne(e.setting.options.validateList).then((y) => {
|
|
1483
|
+
he.value = y;
|
|
1484
1484
|
});
|
|
1485
|
-
const ye =
|
|
1486
|
-
if (e.setting.options.tip && (ye.value = X(e.setting.options.tip)), e.setting.options.validateList.length &&
|
|
1487
|
-
let
|
|
1488
|
-
const
|
|
1489
|
-
!
|
|
1490
|
-
},
|
|
1491
|
-
if (!(
|
|
1485
|
+
const ye = u();
|
|
1486
|
+
if (e.setting.options.tip && (ye.value = X(e.setting.options.tip)), e.setting.options.validateList.length && n(e.setting.name, e.setting.options.validateList), g == "position") {
|
|
1487
|
+
let y = !1;
|
|
1488
|
+
const P = async (w, q) => {
|
|
1489
|
+
!w || String(w).includes("/") || !String(q || "").includes("/") || await Ce(String(w));
|
|
1490
|
+
}, R = async (w, q) => {
|
|
1491
|
+
if (!(w != null && w.length)) return;
|
|
1492
1492
|
const Z = String(q || "").split(",");
|
|
1493
|
-
if (!
|
|
1493
|
+
if (!w.some((te, W) => te && !String(te).includes("/") && String(Z[W] || "").includes("/"))) return;
|
|
1494
1494
|
const de = [], se = [];
|
|
1495
|
-
for (let te = 0; te <
|
|
1496
|
-
const W =
|
|
1495
|
+
for (let te = 0; te < w.length; te++) {
|
|
1496
|
+
const W = w[te], ce = Z[te] || "";
|
|
1497
1497
|
if (W && !String(W).includes("/") && String(ce).includes("/")) {
|
|
1498
1498
|
const [ge, oe] = await Oe().run({ spaceId: W });
|
|
1499
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);
|
|
@@ -1501,169 +1501,169 @@ const Fa = (n, e) => {
|
|
|
1501
1501
|
de.push(W), se.push(ce);
|
|
1502
1502
|
}
|
|
1503
1503
|
x.value = de, se.some(Boolean) && (fe.value = se);
|
|
1504
|
-
},
|
|
1504
|
+
}, b = (Q = (V = (De = e.setting.options) == null ? void 0 : De.selector) == null ? void 0 : V.type) == null ? void 0 : Q.positionName;
|
|
1505
1505
|
if (t.value) {
|
|
1506
|
-
const
|
|
1507
|
-
x.value =
|
|
1508
|
-
|
|
1506
|
+
const w = m(e.setting.name) ?? "", q = b ? m(b) : "";
|
|
1507
|
+
x.value = w, i.value = w ? String(w).split("/").pop() : i.value, (async () => {
|
|
1508
|
+
y = !0;
|
|
1509
1509
|
try {
|
|
1510
|
-
await
|
|
1510
|
+
await P(String(w || ""), q);
|
|
1511
1511
|
} finally {
|
|
1512
|
-
await ve(),
|
|
1512
|
+
await ve(), y = !1;
|
|
1513
1513
|
}
|
|
1514
1514
|
})();
|
|
1515
1515
|
} else {
|
|
1516
|
-
const
|
|
1517
|
-
x.value = [...
|
|
1518
|
-
|
|
1516
|
+
const w = m(e.setting.name) ? String(m(e.setting.name)).split(",") : [], q = b ? m(b) : "";
|
|
1517
|
+
x.value = [...w], i.value = w.map((Z) => Z == null ? void 0 : Z.split("/").pop()), (async () => {
|
|
1518
|
+
y = !0;
|
|
1519
1519
|
try {
|
|
1520
|
-
await
|
|
1520
|
+
await R(w, q);
|
|
1521
1521
|
} finally {
|
|
1522
|
-
await ve(),
|
|
1522
|
+
await ve(), y = !1;
|
|
1523
1523
|
}
|
|
1524
1524
|
})();
|
|
1525
1525
|
}
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
}),
|
|
1529
|
-
|
|
1530
|
-
}),
|
|
1526
|
+
i.value || o(e.setting.name, null), T(i, (w) => {
|
|
1527
|
+
y || (t.value ? o(e.setting.name, w) : o(e.setting.name, (w == null ? void 0 : w.join(",")) || ""));
|
|
1528
|
+
}), T(fe, (w) => {
|
|
1529
|
+
y || (t.value ? o(e.setting.options.selector.type.positionName, w) : o(e.setting.options.selector.type.positionName, (w == null ? void 0 : w.join(",")) || ""));
|
|
1530
|
+
}), T(
|
|
1531
1531
|
() => {
|
|
1532
|
-
var
|
|
1533
|
-
return (
|
|
1532
|
+
var w;
|
|
1533
|
+
return (w = l == null ? void 0 : l.value) == null ? void 0 : w[e.setting.name];
|
|
1534
1534
|
},
|
|
1535
|
-
async (
|
|
1535
|
+
async (w, q) => {
|
|
1536
1536
|
var Z, be, de;
|
|
1537
|
-
if (
|
|
1538
|
-
|
|
1537
|
+
if (w !== q) {
|
|
1538
|
+
y = !0;
|
|
1539
1539
|
try {
|
|
1540
|
-
if (!
|
|
1541
|
-
|
|
1540
|
+
if (!w) {
|
|
1541
|
+
i.value = t.value ? "" : [], x.value = t.value ? "" : [], fe.value = t.value ? "" : [];
|
|
1542
1542
|
return;
|
|
1543
1543
|
}
|
|
1544
1544
|
if (!t.value) {
|
|
1545
|
-
const W = String(
|
|
1546
|
-
x.value = W, await ve(),
|
|
1545
|
+
const W = String(w).split(","), ce = b ? (Z = l == null ? void 0 : l.value) == null ? void 0 : Z[b] : "";
|
|
1546
|
+
x.value = W, await ve(), i.value = W.map((ge) => ge == null ? void 0 : ge.split("/").pop()), await R(W, ce);
|
|
1547
1547
|
return;
|
|
1548
1548
|
}
|
|
1549
|
-
let se = String(
|
|
1549
|
+
let se = String(w), te = se.split("/").pop();
|
|
1550
1550
|
if (se.includes("/"))
|
|
1551
|
-
x.value = se,
|
|
1551
|
+
x.value = se, b && ((de = l == null ? void 0 : l.value) != null && de[b]) && (fe.value = l.value[b]);
|
|
1552
1552
|
else {
|
|
1553
|
-
const W =
|
|
1553
|
+
const W = b ? (be = l == null ? void 0 : l.value) == null ? void 0 : be[b] : "";
|
|
1554
1554
|
String(W || "").includes("/") ? await Ce(te) : x.value = se;
|
|
1555
1555
|
}
|
|
1556
|
-
await ve(),
|
|
1556
|
+
await ve(), i.value === te && (i.value = "", await ve()), i.value = te;
|
|
1557
1557
|
} finally {
|
|
1558
|
-
await ve(),
|
|
1558
|
+
await ve(), y = !1;
|
|
1559
1559
|
}
|
|
1560
1560
|
}
|
|
1561
1561
|
}
|
|
1562
1562
|
);
|
|
1563
|
-
} else
|
|
1564
|
-
|
|
1565
|
-
}),
|
|
1566
|
-
var R,
|
|
1567
|
-
((
|
|
1568
|
-
})) :
|
|
1569
|
-
spaceId:
|
|
1563
|
+
} else g == "supplier" ? (i.value = m(e.setting.name) ? [m(e.setting.name)] : [i.value], i.value && F(m(e.setting.name)), T(i, (y) => {
|
|
1564
|
+
o(e.setting.name, y == null ? void 0 : y.toString());
|
|
1565
|
+
}), T(ee, (y) => {
|
|
1566
|
+
var P, R, b, w;
|
|
1567
|
+
((w = (b = (R = (P = e == null ? void 0 : e.setting) == null ? void 0 : P.options) == null ? void 0 : R.selector) == null ? void 0 : b.type) == null ? void 0 : w.supplierPhone) !== void 0 && o(e.setting.options.selector.type.supplierPhone, y);
|
|
1568
|
+
})) : g == "device" ? (i.value = m(e.setting.name) ? m(e.setting.name) : i.value, i.value && F(i.value), i.value.length || o(e.setting.name, null), pe.value = {
|
|
1569
|
+
spaceId: m("wzid") || "",
|
|
1570
1570
|
spacePath: "",
|
|
1571
|
-
spacePathName:
|
|
1572
|
-
},
|
|
1573
|
-
|
|
1574
|
-
}),
|
|
1575
|
-
|
|
1576
|
-
}),
|
|
1571
|
+
spacePathName: m("wzmc") || ""
|
|
1572
|
+
}, T(z, (y) => {
|
|
1573
|
+
i.value = y.map((P) => P.value).toString(), o(e.setting.name, i.value);
|
|
1574
|
+
}), T(ie, (y) => {
|
|
1575
|
+
o("equipment_archives_id", y || null);
|
|
1576
|
+
}), T(
|
|
1577
1577
|
pe,
|
|
1578
|
-
async (
|
|
1579
|
-
if (!(
|
|
1580
|
-
const [
|
|
1581
|
-
if (
|
|
1582
|
-
|
|
1578
|
+
async (y) => {
|
|
1579
|
+
if (!(y != null && y.spaceId)) return;
|
|
1580
|
+
const [P, R] = await Oe().run({ spaceId: y.spaceId });
|
|
1581
|
+
if (P) {
|
|
1582
|
+
o("wzid", y.spaceId), o("wzmc", y.spacePathName || "");
|
|
1583
1583
|
return;
|
|
1584
1584
|
}
|
|
1585
|
-
|
|
1585
|
+
o("wzid", (R == null ? void 0 : R.path) || y.spaceId), o("wzmc", (R == null ? void 0 : R.pathName) || y.spacePathName || "");
|
|
1586
1586
|
},
|
|
1587
1587
|
{
|
|
1588
1588
|
deep: !0
|
|
1589
1589
|
}
|
|
1590
|
-
)) : (
|
|
1591
|
-
|
|
1590
|
+
)) : (i.value = m(e.setting.name) ? m(e.setting.name) : i.value, i.value && F(i.value), i.value.length || o(e.setting.name, null), T(z, (y) => {
|
|
1591
|
+
i.value = y.map((P) => P.value).toString(), o(e.setting.name, i.value);
|
|
1592
1592
|
}));
|
|
1593
|
-
return (
|
|
1593
|
+
return (y, P) => (M(), H(
|
|
1594
1594
|
le,
|
|
1595
1595
|
null,
|
|
1596
1596
|
[
|
|
1597
|
-
f.value && a(
|
|
1597
|
+
f.value && a(g) != "position" ? (M(), E(a(J), {
|
|
1598
1598
|
key: 0,
|
|
1599
1599
|
col: e.span,
|
|
1600
|
-
modelValue:
|
|
1601
|
-
"onUpdate:modelValue":
|
|
1600
|
+
modelValue: i.value,
|
|
1601
|
+
"onUpdate:modelValue": P[1] || (P[1] = (R) => i.value = R),
|
|
1602
1602
|
prop: e.setting.name,
|
|
1603
|
-
label:
|
|
1603
|
+
label: y.setting.desc,
|
|
1604
1604
|
type: "inputDialogSelect",
|
|
1605
|
-
options: a(
|
|
1605
|
+
options: a(z),
|
|
1606
1606
|
helpMessage: ye.value,
|
|
1607
1607
|
isView: e.isView,
|
|
1608
1608
|
disabled: a(c),
|
|
1609
1609
|
required: he.value,
|
|
1610
|
-
placeholder:
|
|
1611
|
-
onOpenDialog: a(
|
|
1610
|
+
placeholder: y.setting.options.placeholder || a(k)("请选择"),
|
|
1611
|
+
onOpenDialog: a(N)
|
|
1612
1612
|
}, {
|
|
1613
|
-
default:
|
|
1614
|
-
var
|
|
1613
|
+
default: $(() => {
|
|
1614
|
+
var R;
|
|
1615
1615
|
return [
|
|
1616
|
-
|
|
1616
|
+
I(a(qt), {
|
|
1617
1617
|
"append-to-body": "",
|
|
1618
|
-
modelValue: a(
|
|
1619
|
-
"onUpdate:modelValue":
|
|
1620
|
-
options: a(
|
|
1621
|
-
onConfirm: a(
|
|
1622
|
-
title: a(
|
|
1618
|
+
modelValue: a(D),
|
|
1619
|
+
"onUpdate:modelValue": P[0] || (P[0] = (b) => Re(D) ? D.value = b : null),
|
|
1620
|
+
options: a(S),
|
|
1621
|
+
onConfirm: a(K),
|
|
1622
|
+
title: a(h),
|
|
1623
1623
|
"body-style": { padding: "0px" }
|
|
1624
1624
|
}, Lt({
|
|
1625
1625
|
_: 2
|
|
1626
1626
|
/* DYNAMIC */
|
|
1627
1627
|
}, [
|
|
1628
|
-
((
|
|
1628
|
+
((R = a(j)) == null ? void 0 : R.length) > 0 ? {
|
|
1629
1629
|
name: "table-header-search",
|
|
1630
|
-
fn:
|
|
1630
|
+
fn: $(() => [
|
|
1631
1631
|
Xe("div", Ya, [
|
|
1632
|
-
|
|
1632
|
+
I(a(At), {
|
|
1633
1633
|
labelLength: "6",
|
|
1634
|
-
options: a(
|
|
1634
|
+
options: a(j),
|
|
1635
1635
|
onConfirm: a(U),
|
|
1636
1636
|
"is-margin-right": !1,
|
|
1637
|
-
isExpandAtFocus: a(
|
|
1637
|
+
isExpandAtFocus: a(g) !== "device"
|
|
1638
1638
|
}, null, 8, ["options", "onConfirm", "isExpandAtFocus"])
|
|
1639
1639
|
])
|
|
1640
1640
|
]),
|
|
1641
1641
|
key: "0"
|
|
1642
1642
|
} : void 0,
|
|
1643
|
-
a(
|
|
1643
|
+
a(g) === "user" ? {
|
|
1644
1644
|
name: "table-column",
|
|
1645
|
-
fn:
|
|
1646
|
-
|
|
1647
|
-
label: a(
|
|
1645
|
+
fn: $(() => [
|
|
1646
|
+
I(a(A), {
|
|
1647
|
+
label: a(k)("姓名"),
|
|
1648
1648
|
prop: "name"
|
|
1649
1649
|
}, null, 8, ["label"]),
|
|
1650
|
-
|
|
1651
|
-
label: a(
|
|
1650
|
+
I(a(A), {
|
|
1651
|
+
label: a(k)("账号"),
|
|
1652
1652
|
prop: "userName"
|
|
1653
1653
|
}, null, 8, ["label"]),
|
|
1654
|
-
|
|
1655
|
-
label: a(
|
|
1654
|
+
I(a(A), {
|
|
1655
|
+
label: a(k)("手机号"),
|
|
1656
1656
|
prop: "sensitivePhone"
|
|
1657
1657
|
}, {
|
|
1658
|
-
default:
|
|
1659
|
-
|
|
1658
|
+
default: $(({ row: b }) => [
|
|
1659
|
+
I(a(Ee), {
|
|
1660
1660
|
placement: "top",
|
|
1661
|
-
content:
|
|
1662
|
-
disabled: !
|
|
1661
|
+
content: b.phone,
|
|
1662
|
+
disabled: !b.phone
|
|
1663
1663
|
}, {
|
|
1664
|
-
default:
|
|
1664
|
+
default: $(() => [
|
|
1665
1665
|
re(
|
|
1666
|
-
ue(
|
|
1666
|
+
ue(b.sensitivePhone || "-"),
|
|
1667
1667
|
1
|
|
1668
1668
|
/* TEXT */
|
|
1669
1669
|
)
|
|
@@ -1675,12 +1675,12 @@ const Fa = (n, e) => {
|
|
|
1675
1675
|
_: 1
|
|
1676
1676
|
/* STABLE */
|
|
1677
1677
|
}, 8, ["label"]),
|
|
1678
|
-
|
|
1679
|
-
label: a(
|
|
1678
|
+
I(a(A), {
|
|
1679
|
+
label: a(k)("状态")
|
|
1680
1680
|
}, {
|
|
1681
|
-
default:
|
|
1681
|
+
default: $(({ row: b }) => [
|
|
1682
1682
|
re(
|
|
1683
|
-
ue(a(
|
|
1683
|
+
ue(a(C)[b.status]),
|
|
1684
1684
|
1
|
|
1685
1685
|
/* TEXT */
|
|
1686
1686
|
)
|
|
@@ -1691,37 +1691,37 @@ const Fa = (n, e) => {
|
|
|
1691
1691
|
]),
|
|
1692
1692
|
key: "1"
|
|
1693
1693
|
} : void 0,
|
|
1694
|
-
a(
|
|
1694
|
+
a(g) === "org" ? {
|
|
1695
1695
|
name: "table-column",
|
|
1696
|
-
fn:
|
|
1697
|
-
|
|
1698
|
-
label: a(
|
|
1696
|
+
fn: $(() => [
|
|
1697
|
+
I(a(A), {
|
|
1698
|
+
label: a(k)("组织名称"),
|
|
1699
1699
|
prop: "name"
|
|
1700
1700
|
}, null, 8, ["label"]),
|
|
1701
|
-
|
|
1702
|
-
label: a(
|
|
1701
|
+
I(a(A), {
|
|
1702
|
+
label: a(k)("组织编码"),
|
|
1703
1703
|
prop: "code"
|
|
1704
1704
|
}, null, 8, ["label"]),
|
|
1705
|
-
|
|
1706
|
-
label: a(
|
|
1705
|
+
I(a(A), {
|
|
1706
|
+
label: a(k)("组织类型"),
|
|
1707
1707
|
prop: "typeName"
|
|
1708
1708
|
}, null, 8, ["label"])
|
|
1709
1709
|
]),
|
|
1710
1710
|
key: "2"
|
|
1711
1711
|
} : void 0,
|
|
1712
|
-
a(
|
|
1712
|
+
a(g) === "role" ? {
|
|
1713
1713
|
name: "table-column",
|
|
1714
|
-
fn:
|
|
1715
|
-
|
|
1716
|
-
label: a(
|
|
1714
|
+
fn: $(() => [
|
|
1715
|
+
I(a(A), {
|
|
1716
|
+
label: a(k)("角色名称"),
|
|
1717
1717
|
prop: "name"
|
|
1718
1718
|
}, null, 8, ["label"]),
|
|
1719
|
-
|
|
1720
|
-
label: a(
|
|
1719
|
+
I(a(A), {
|
|
1720
|
+
label: a(k)("角色类型")
|
|
1721
1721
|
}, {
|
|
1722
|
-
default:
|
|
1722
|
+
default: $(({ row: b }) => [
|
|
1723
1723
|
re(
|
|
1724
|
-
ue(a(
|
|
1724
|
+
ue(a(p)[b.type]),
|
|
1725
1725
|
1
|
|
1726
1726
|
/* TEXT */
|
|
1727
1727
|
)
|
|
@@ -1729,12 +1729,12 @@ const Fa = (n, e) => {
|
|
|
1729
1729
|
_: 1
|
|
1730
1730
|
/* STABLE */
|
|
1731
1731
|
}, 8, ["label"]),
|
|
1732
|
-
|
|
1733
|
-
label: a(
|
|
1732
|
+
I(a(A), {
|
|
1733
|
+
label: a(k)("角色状态")
|
|
1734
1734
|
}, {
|
|
1735
|
-
default:
|
|
1735
|
+
default: $(({ row: b }) => [
|
|
1736
1736
|
re(
|
|
1737
|
-
ue(a(
|
|
1737
|
+
ue(a(_)[b.status]),
|
|
1738
1738
|
1
|
|
1739
1739
|
/* TEXT */
|
|
1740
1740
|
)
|
|
@@ -1745,66 +1745,66 @@ const Fa = (n, e) => {
|
|
|
1745
1745
|
]),
|
|
1746
1746
|
key: "3"
|
|
1747
1747
|
} : void 0,
|
|
1748
|
-
a(
|
|
1748
|
+
a(g) === "job" ? {
|
|
1749
1749
|
name: "table-column",
|
|
1750
|
-
fn:
|
|
1751
|
-
|
|
1752
|
-
label: a(
|
|
1750
|
+
fn: $(() => [
|
|
1751
|
+
I(a(A), {
|
|
1752
|
+
label: a(k)("职务名称"),
|
|
1753
1753
|
prop: "name"
|
|
1754
1754
|
}, null, 8, ["label"]),
|
|
1755
|
-
|
|
1756
|
-
label: a(
|
|
1755
|
+
I(a(A), {
|
|
1756
|
+
label: a(k)("职务编码"),
|
|
1757
1757
|
prop: "code"
|
|
1758
1758
|
}, null, 8, ["label"]),
|
|
1759
|
-
|
|
1760
|
-
label: a(
|
|
1759
|
+
I(a(A), {
|
|
1760
|
+
label: a(k)("所属组织路径"),
|
|
1761
1761
|
prop: "groupName"
|
|
1762
1762
|
}, null, 8, ["label"])
|
|
1763
1763
|
]),
|
|
1764
1764
|
key: "4"
|
|
1765
1765
|
} : void 0,
|
|
1766
|
-
a(
|
|
1766
|
+
a(g) === "post" ? {
|
|
1767
1767
|
name: "table-column",
|
|
1768
|
-
fn:
|
|
1769
|
-
|
|
1770
|
-
label: a(
|
|
1768
|
+
fn: $(() => [
|
|
1769
|
+
I(a(A), {
|
|
1770
|
+
label: a(k)("岗位名称"),
|
|
1771
1771
|
prop: "name"
|
|
1772
1772
|
}, null, 8, ["label"]),
|
|
1773
|
-
|
|
1774
|
-
label: a(
|
|
1773
|
+
I(a(A), {
|
|
1774
|
+
label: a(k)("岗位编码"),
|
|
1775
1775
|
prop: "code"
|
|
1776
1776
|
}, null, 8, ["label"]),
|
|
1777
|
-
|
|
1778
|
-
label: a(
|
|
1777
|
+
I(a(A), {
|
|
1778
|
+
label: a(k)("所属组织路径"),
|
|
1779
1779
|
prop: "groupName"
|
|
1780
1780
|
}, null, 8, ["label"])
|
|
1781
1781
|
]),
|
|
1782
1782
|
key: "5"
|
|
1783
1783
|
} : void 0,
|
|
1784
|
-
a(
|
|
1784
|
+
a(g) === "supplier" ? {
|
|
1785
1785
|
name: "table-column",
|
|
1786
|
-
fn:
|
|
1787
|
-
|
|
1786
|
+
fn: $(() => [
|
|
1787
|
+
I(a(A), {
|
|
1788
1788
|
type: "index",
|
|
1789
1789
|
width: "50"
|
|
1790
1790
|
}),
|
|
1791
|
-
|
|
1792
|
-
label: a(
|
|
1791
|
+
I(a(A), {
|
|
1792
|
+
label: a(k)("供应商名称"),
|
|
1793
1793
|
prop: "name"
|
|
1794
1794
|
}, null, 8, ["label"]),
|
|
1795
|
-
|
|
1796
|
-
label: a(
|
|
1795
|
+
I(a(A), {
|
|
1796
|
+
label: a(k)("供应商编码"),
|
|
1797
1797
|
prop: "code"
|
|
1798
1798
|
}, null, 8, ["label"]),
|
|
1799
|
-
|
|
1800
|
-
label: a(
|
|
1799
|
+
I(a(A), {
|
|
1800
|
+
label: a(k)("供应商等级"),
|
|
1801
1801
|
prop: "supplierLevel"
|
|
1802
1802
|
}, null, 8, ["label"]),
|
|
1803
|
-
|
|
1804
|
-
label: a(
|
|
1803
|
+
I(a(A), {
|
|
1804
|
+
label: a(k)("供应商分类"),
|
|
1805
1805
|
prop: "classificationName"
|
|
1806
1806
|
}, {
|
|
1807
|
-
default:
|
|
1807
|
+
default: $(() => [
|
|
1808
1808
|
B(` <template #default="{row}">\r
|
|
1809
1809
|
{{ getSupplierName(row) }}\r
|
|
1810
1810
|
</template> `)
|
|
@@ -1812,13 +1812,13 @@ const Fa = (n, e) => {
|
|
|
1812
1812
|
_: 1
|
|
1813
1813
|
/* STABLE */
|
|
1814
1814
|
}, 8, ["label"]),
|
|
1815
|
-
|
|
1816
|
-
label: a(
|
|
1815
|
+
I(a(A), {
|
|
1816
|
+
label: a(k)("个人/公司"),
|
|
1817
1817
|
prop: "businessType"
|
|
1818
1818
|
}, {
|
|
1819
|
-
default:
|
|
1819
|
+
default: $(({ row: b }) => [
|
|
1820
1820
|
re(
|
|
1821
|
-
ue(
|
|
1821
|
+
ue(b.businessType == "COMPANY" ? a(k)("公司") : a(k)("个人")),
|
|
1822
1822
|
1
|
|
1823
1823
|
/* TEXT */
|
|
1824
1824
|
)
|
|
@@ -1829,60 +1829,60 @@ const Fa = (n, e) => {
|
|
|
1829
1829
|
]),
|
|
1830
1830
|
key: "6"
|
|
1831
1831
|
} : void 0,
|
|
1832
|
-
a(
|
|
1832
|
+
a(g) === "device" ? {
|
|
1833
1833
|
name: "table-column",
|
|
1834
|
-
fn:
|
|
1835
|
-
|
|
1834
|
+
fn: $(() => [
|
|
1835
|
+
I(a(A), {
|
|
1836
1836
|
type: "index",
|
|
1837
1837
|
width: "50"
|
|
1838
1838
|
}),
|
|
1839
|
-
|
|
1840
|
-
label: a(
|
|
1839
|
+
I(a(A), {
|
|
1840
|
+
label: a(k)("设备名称"),
|
|
1841
1841
|
prop: "deviceName"
|
|
1842
1842
|
}, null, 8, ["label"]),
|
|
1843
|
-
|
|
1844
|
-
label: a(
|
|
1843
|
+
I(a(A), {
|
|
1844
|
+
label: a(k)("设备编码"),
|
|
1845
1845
|
prop: "deviceId"
|
|
1846
1846
|
}, null, 8, ["label"]),
|
|
1847
|
-
|
|
1848
|
-
label: a(
|
|
1847
|
+
I(a(A), {
|
|
1848
|
+
label: a(k)("设备分类"),
|
|
1849
1849
|
prop: "groupDimensionPath"
|
|
1850
1850
|
}, null, 8, ["label"]),
|
|
1851
|
-
|
|
1852
|
-
label: a(
|
|
1851
|
+
I(a(A), {
|
|
1852
|
+
label: a(k)("安装位置"),
|
|
1853
1853
|
prop: "spaceSite"
|
|
1854
1854
|
}, null, 8, ["label"])
|
|
1855
1855
|
]),
|
|
1856
1856
|
key: "7"
|
|
1857
1857
|
} : void 0,
|
|
1858
|
-
a(
|
|
1858
|
+
a(g) === "source" ? {
|
|
1859
1859
|
name: "table-column",
|
|
1860
|
-
fn:
|
|
1861
|
-
|
|
1860
|
+
fn: $(() => [
|
|
1861
|
+
I(a(A), {
|
|
1862
1862
|
type: "index",
|
|
1863
1863
|
width: "50"
|
|
1864
1864
|
}),
|
|
1865
|
-
|
|
1866
|
-
label: a(
|
|
1865
|
+
I(a(A), {
|
|
1866
|
+
label: a(k)("单据编码"),
|
|
1867
1867
|
prop: "code"
|
|
1868
1868
|
}, null, 8, ["label"]),
|
|
1869
|
-
|
|
1870
|
-
label: a(
|
|
1869
|
+
I(a(A), {
|
|
1870
|
+
label: a(k)("申请人"),
|
|
1871
1871
|
prop: "userName"
|
|
1872
1872
|
}, null, 8, ["label"]),
|
|
1873
|
-
|
|
1874
|
-
label: a(
|
|
1873
|
+
I(a(A), {
|
|
1874
|
+
label: a(k)("联系电话"),
|
|
1875
1875
|
prop: "sensitivePhone"
|
|
1876
1876
|
}, {
|
|
1877
|
-
default:
|
|
1878
|
-
|
|
1877
|
+
default: $(({ row: b }) => [
|
|
1878
|
+
I(a(Ee), {
|
|
1879
1879
|
placement: "top",
|
|
1880
|
-
content:
|
|
1881
|
-
disabled: !
|
|
1880
|
+
content: b.phone,
|
|
1881
|
+
disabled: !b.phone
|
|
1882
1882
|
}, {
|
|
1883
|
-
default:
|
|
1883
|
+
default: $(() => [
|
|
1884
1884
|
re(
|
|
1885
|
-
ue(
|
|
1885
|
+
ue(b.sensitivePhone || "-"),
|
|
1886
1886
|
1
|
|
1887
1887
|
/* TEXT */
|
|
1888
1888
|
)
|
|
@@ -1894,13 +1894,13 @@ const Fa = (n, e) => {
|
|
|
1894
1894
|
_: 1
|
|
1895
1895
|
/* STABLE */
|
|
1896
1896
|
}, 8, ["label"]),
|
|
1897
|
-
|
|
1898
|
-
label: a(
|
|
1897
|
+
I(a(A), {
|
|
1898
|
+
label: a(k)("计划领用日期"),
|
|
1899
1899
|
prop: "claimingDate"
|
|
1900
1900
|
}, {
|
|
1901
|
-
default:
|
|
1901
|
+
default: $(({ row: b }) => [
|
|
1902
1902
|
re(
|
|
1903
|
-
ue(
|
|
1903
|
+
ue(b.claimingDate ? a(Me)(Number(b == null ? void 0 : b.claimingDate)).format("YYYY/MM/DD") : "-"),
|
|
1904
1904
|
1
|
|
1905
1905
|
/* TEXT */
|
|
1906
1906
|
)
|
|
@@ -1908,8 +1908,8 @@ const Fa = (n, e) => {
|
|
|
1908
1908
|
_: 1
|
|
1909
1909
|
/* STABLE */
|
|
1910
1910
|
}, 8, ["label"]),
|
|
1911
|
-
|
|
1912
|
-
label: a(
|
|
1911
|
+
I(a(A), {
|
|
1912
|
+
label: a(k)("资产用途"),
|
|
1913
1913
|
prop: "purpose"
|
|
1914
1914
|
}, null, 8, ["label"])
|
|
1915
1915
|
]),
|
|
@@ -1921,23 +1921,23 @@ const Fa = (n, e) => {
|
|
|
1921
1921
|
_: 1
|
|
1922
1922
|
/* STABLE */
|
|
1923
1923
|
}, 8, ["col", "modelValue", "prop", "label", "options", "helpMessage", "isView", "disabled", "required", "placeholder", "onOpenDialog"])) : B("v-if", !0),
|
|
1924
|
-
f.value && a(
|
|
1924
|
+
f.value && a(g) == "position" ? (M(), E(a(J), {
|
|
1925
1925
|
key: 1,
|
|
1926
1926
|
col: e.span,
|
|
1927
|
-
label:
|
|
1927
|
+
label: y.setting.desc,
|
|
1928
1928
|
prop: e.setting.name,
|
|
1929
1929
|
type: "treeSelect",
|
|
1930
1930
|
"node-key": "id",
|
|
1931
1931
|
showFullPath: !0,
|
|
1932
1932
|
helpMessage: ye.value,
|
|
1933
|
-
placeholder:
|
|
1933
|
+
placeholder: y.setting.options.placeholder,
|
|
1934
1934
|
required: he.value,
|
|
1935
|
-
modelValue:
|
|
1936
|
-
"onUpdate:modelValue":
|
|
1935
|
+
modelValue: i.value,
|
|
1936
|
+
"onUpdate:modelValue": P[2] || (P[2] = (R) => i.value = R),
|
|
1937
1937
|
keyword: a(_e),
|
|
1938
|
-
"onUpdate:keyword":
|
|
1938
|
+
"onUpdate:keyword": P[3] || (P[3] = (R) => Re(_e) ? _e.value = R : null),
|
|
1939
1939
|
path: a(x),
|
|
1940
|
-
"onUpdate:path":
|
|
1940
|
+
"onUpdate:path": P[4] || (P[4] = (R) => Re(x) ? x.value = R : null),
|
|
1941
1941
|
isView: e.isView,
|
|
1942
1942
|
disabled: a(c),
|
|
1943
1943
|
load: a(xe),
|
|
@@ -1980,46 +1980,46 @@ const Fa = (n, e) => {
|
|
|
1980
1980
|
marginRight: {},
|
|
1981
1981
|
store: {}
|
|
1982
1982
|
},
|
|
1983
|
-
setup(
|
|
1984
|
-
const e =
|
|
1985
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
1983
|
+
setup(s) {
|
|
1984
|
+
const e = s, { showData: t, disabledData: l, setData: d, getData: o, setFormRule: m, deleteRule: L } = e.store || {}, n = u(), r = u(!0);
|
|
1985
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), T(
|
|
1986
1986
|
() => t.value,
|
|
1987
1987
|
() => {
|
|
1988
|
-
|
|
1988
|
+
r.value = t.value[e.setting.name], r.value || (n.value = "", L(e.setting.name)), r.value && e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList);
|
|
1989
1989
|
},
|
|
1990
1990
|
{ deep: !0, immediate: !0 }
|
|
1991
1991
|
), l.value[e.setting.name];
|
|
1992
|
-
const { baseURL: v } = Et(),
|
|
1993
|
-
ne(e.setting.options.validateList).then((
|
|
1994
|
-
|
|
1992
|
+
const { baseURL: v } = Et(), i = u(!1);
|
|
1993
|
+
ne(e.setting.options.validateList).then((D) => {
|
|
1994
|
+
i.value = D;
|
|
1995
1995
|
});
|
|
1996
|
-
const f =
|
|
1997
|
-
if (e.setting.options.tip && (c.value = X(e.setting.options.tip)),
|
|
1998
|
-
const
|
|
1999
|
-
|
|
1996
|
+
const f = u("info"), c = u();
|
|
1997
|
+
if (e.setting.options.tip && (c.value = X(e.setting.options.tip)), o(e.setting.name)) {
|
|
1998
|
+
const D = JSON.parse(o(e.setting.name));
|
|
1999
|
+
n.value = v + D[0].url;
|
|
2000
2000
|
}
|
|
2001
|
-
return e.setting.options.validateList.length &&
|
|
2001
|
+
return e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), (D, h) => e.isView && r.value ? (M(), E(a(J), {
|
|
2002
2002
|
key: 0,
|
|
2003
|
-
modelValue:
|
|
2004
|
-
"onUpdate:modelValue":
|
|
2003
|
+
modelValue: n.value,
|
|
2004
|
+
"onUpdate:modelValue": h[2] || (h[2] = (S) => n.value = S),
|
|
2005
2005
|
"margin-bottom": "0",
|
|
2006
2006
|
prop: e.setting.name,
|
|
2007
|
-
label:
|
|
2007
|
+
label: D.setting.desc,
|
|
2008
2008
|
type: "custom",
|
|
2009
2009
|
helpMessage: c.value,
|
|
2010
|
-
required:
|
|
2010
|
+
required: i.value,
|
|
2011
2011
|
col: e.span
|
|
2012
2012
|
}, {
|
|
2013
|
-
default:
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
modelValue:
|
|
2017
|
-
"onUpdate:modelValue":
|
|
2013
|
+
default: $(() => [
|
|
2014
|
+
n.value ? (M(), H("div", Za, [
|
|
2015
|
+
I(a(et), {
|
|
2016
|
+
modelValue: n.value,
|
|
2017
|
+
"onUpdate:modelValue": h[0] || (h[0] = (S) => n.value = S),
|
|
2018
2018
|
status: f.value,
|
|
2019
|
-
"onUpdate:status":
|
|
2020
|
-
required:
|
|
2019
|
+
"onUpdate:status": h[1] || (h[1] = (S) => f.value = S),
|
|
2020
|
+
required: i.value
|
|
2021
2021
|
}, null, 8, ["modelValue", "status", "required"])
|
|
2022
|
-
])) : (
|
|
2022
|
+
])) : (M(), H("div", Ga, "-"))
|
|
2023
2023
|
]),
|
|
2024
2024
|
_: 1
|
|
2025
2025
|
/* STABLE */
|
|
@@ -2045,29 +2045,29 @@ const Fa = (n, e) => {
|
|
|
2045
2045
|
marginRight: {},
|
|
2046
2046
|
store: {}
|
|
2047
2047
|
},
|
|
2048
|
-
setup(
|
|
2049
|
-
const e =
|
|
2050
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
2048
|
+
setup(s) {
|
|
2049
|
+
const e = s, { showData: t, disabledData: l, setData: d, getData: o, setFormRule: m, deleteRule: L } = e.store || {}, n = u(), r = u(!0);
|
|
2050
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), T(
|
|
2051
2051
|
() => t.value,
|
|
2052
2052
|
() => {
|
|
2053
|
-
|
|
2053
|
+
r.value = t.value[e.setting.name], r.value || (n.value = null, L(e.setting.name)), r.value && e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList);
|
|
2054
2054
|
},
|
|
2055
2055
|
{ deep: !0, immediate: !0 }
|
|
2056
2056
|
);
|
|
2057
|
-
const v = l.value[e.setting.name] || !1,
|
|
2057
|
+
const v = l.value[e.setting.name] || !1, i = u(!1);
|
|
2058
2058
|
ne(e.setting.options.validateList).then((c) => {
|
|
2059
|
-
|
|
2059
|
+
i.value = c;
|
|
2060
2060
|
});
|
|
2061
|
-
const f =
|
|
2061
|
+
const f = u();
|
|
2062
2062
|
return e.setting.options.tip && (f.value = X(e.setting.options.tip)), setTimeout(() => {
|
|
2063
|
-
|
|
2064
|
-
}, 50), e.setting.options.validateList.length &&
|
|
2063
|
+
n.value = o(e.setting.name) || e.setting.options.formulasDiyJs || n.value, n.value || d(e.setting.name, null);
|
|
2064
|
+
}, 50), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), T(n, (c) => {
|
|
2065
2065
|
d(e.setting.name, c);
|
|
2066
|
-
}), (c,
|
|
2066
|
+
}), (c, D) => r.value ? (M(), E(a(J), {
|
|
2067
2067
|
key: 0,
|
|
2068
2068
|
col: e.span,
|
|
2069
|
-
modelValue:
|
|
2070
|
-
"onUpdate:modelValue":
|
|
2069
|
+
modelValue: n.value,
|
|
2070
|
+
"onUpdate:modelValue": D[0] || (D[0] = (h) => n.value = h),
|
|
2071
2071
|
label: c.setting.desc,
|
|
2072
2072
|
type: "switch",
|
|
2073
2073
|
prop: e.setting.name,
|
|
@@ -2077,7 +2077,7 @@ const Fa = (n, e) => {
|
|
|
2077
2077
|
inactiveText: c.setting.options.inactiveText,
|
|
2078
2078
|
helpMessage: f.value,
|
|
2079
2079
|
disabled: a(v),
|
|
2080
|
-
required:
|
|
2080
|
+
required: i.value,
|
|
2081
2081
|
isView: e.isView
|
|
2082
2082
|
}, null, 8, ["col", "modelValue", "label", "prop", "activeValue", "inactiveValue", "activeText", "inactiveText", "helpMessage", "disabled", "required", "isView"])) : B("v-if", !0);
|
|
2083
2083
|
}
|
|
@@ -2101,32 +2101,32 @@ const Fa = (n, e) => {
|
|
|
2101
2101
|
marginRight: {},
|
|
2102
2102
|
store: {}
|
|
2103
2103
|
},
|
|
2104
|
-
setup(
|
|
2105
|
-
const e =
|
|
2106
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
2104
|
+
setup(s) {
|
|
2105
|
+
const e = s, { showData: t, disabledData: l, setData: d, getData: o, setFormRule: m, deleteRule: L } = e.store || {}, n = u(), r = u(!0);
|
|
2106
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), T(
|
|
2107
2107
|
() => t.value,
|
|
2108
2108
|
() => {
|
|
2109
|
-
|
|
2109
|
+
r.value = t.value[e.setting.name], r.value || (n.value = null, L(e.setting.name)), r.value && e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList);
|
|
2110
2110
|
},
|
|
2111
2111
|
{ deep: !0, immediate: !0 }
|
|
2112
2112
|
);
|
|
2113
|
-
const v =
|
|
2114
|
-
return e.setting.options.tip && (v.value = X(e.setting.options.tip)),
|
|
2115
|
-
d(e.setting.name,
|
|
2116
|
-
}), (
|
|
2113
|
+
const v = u();
|
|
2114
|
+
return e.setting.options.tip && (v.value = X(e.setting.options.tip)), n.value = e.setting.options.textValue, n.value = o(e.setting.name) || n.value, n.value || d(e.setting.name, null), T(n, (i) => {
|
|
2115
|
+
d(e.setting.name, i);
|
|
2116
|
+
}), (i, f) => r.value ? (M(), E(a(J), {
|
|
2117
2117
|
key: 0,
|
|
2118
2118
|
col: e.span,
|
|
2119
|
-
modelValue:
|
|
2120
|
-
"onUpdate:modelValue": f[1] || (f[1] = (c) =>
|
|
2121
|
-
label:
|
|
2119
|
+
modelValue: n.value,
|
|
2120
|
+
"onUpdate:modelValue": f[1] || (f[1] = (c) => n.value = c),
|
|
2121
|
+
label: i.setting.desc,
|
|
2122
2122
|
type: "custom",
|
|
2123
2123
|
helpMessage: v.value
|
|
2124
2124
|
}, {
|
|
2125
|
-
default:
|
|
2126
|
-
|
|
2125
|
+
default: $(() => [
|
|
2126
|
+
I(a(at), {
|
|
2127
2127
|
type: "text",
|
|
2128
|
-
modelValue:
|
|
2129
|
-
"onUpdate:modelValue": f[0] || (f[0] = (c) =>
|
|
2128
|
+
modelValue: n.value,
|
|
2129
|
+
"onUpdate:modelValue": f[0] || (f[0] = (c) => n.value = c)
|
|
2130
2130
|
}, null, 8, ["modelValue"])
|
|
2131
2131
|
]),
|
|
2132
2132
|
_: 1
|
|
@@ -2153,40 +2153,40 @@ const Fa = (n, e) => {
|
|
|
2153
2153
|
marginRight: {},
|
|
2154
2154
|
store: {}
|
|
2155
2155
|
},
|
|
2156
|
-
setup(
|
|
2157
|
-
const e =
|
|
2158
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
2156
|
+
setup(s) {
|
|
2157
|
+
const e = s, { showData: t, disabledData: l, setData: d, getData: o, setFormRule: m, deleteRule: L } = e.store || {}, n = u(""), r = u(!0);
|
|
2158
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), T(
|
|
2159
2159
|
() => t.value,
|
|
2160
2160
|
() => {
|
|
2161
|
-
|
|
2161
|
+
r.value = t.value[e.setting.name], r.value || (n.value = "", L(e.setting.name)), r.value && e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList);
|
|
2162
2162
|
},
|
|
2163
2163
|
{ deep: !0, immediate: !0 }
|
|
2164
2164
|
);
|
|
2165
|
-
const v = l.value[e.setting.name] || !1,
|
|
2166
|
-
ne(e.setting.options.validateList).then((
|
|
2167
|
-
|
|
2165
|
+
const v = l.value[e.setting.name] || !1, i = u(!1);
|
|
2166
|
+
ne(e.setting.options.validateList).then((h) => {
|
|
2167
|
+
i.value = h;
|
|
2168
2168
|
});
|
|
2169
|
-
const f =
|
|
2169
|
+
const f = u();
|
|
2170
2170
|
e.setting.options.tip && (f.value = X(e.setting.options.tip)), setTimeout(() => {
|
|
2171
|
-
|
|
2171
|
+
n.value = o(e.setting.name) || e.setting.options.formulasDiyJs || n.value, n.value || d(e.setting.name, null);
|
|
2172
2172
|
}, 50);
|
|
2173
|
-
const c =
|
|
2174
|
-
return c.value = e.setting.options.initialFrameWidth ? e.setting.options.initialFrameWidth + "px" : "",
|
|
2175
|
-
d(e.setting.name,
|
|
2176
|
-
}), (
|
|
2173
|
+
const c = u(), D = u();
|
|
2174
|
+
return c.value = e.setting.options.initialFrameWidth ? e.setting.options.initialFrameWidth + "px" : "", D.value = e.setting.options.initialFrameHeight ? e.setting.options.initialFrameHeight + "px" : "", e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), T(n, (h) => {
|
|
2175
|
+
d(e.setting.name, h);
|
|
2176
|
+
}), (h, S) => (M(), H(
|
|
2177
2177
|
le,
|
|
2178
2178
|
null,
|
|
2179
2179
|
[
|
|
2180
|
-
!
|
|
2180
|
+
!h.setting.options.isEditor && r.value ? (M(), E(a(J), {
|
|
2181
2181
|
key: 0,
|
|
2182
2182
|
col: e.span,
|
|
2183
|
-
label:
|
|
2183
|
+
label: h.setting.desc,
|
|
2184
2184
|
type: "textarea",
|
|
2185
|
-
modelValue:
|
|
2186
|
-
"onUpdate:modelValue":
|
|
2185
|
+
modelValue: n.value,
|
|
2186
|
+
"onUpdate:modelValue": S[0] || (S[0] = (g) => n.value = g),
|
|
2187
2187
|
prop: e.setting.name,
|
|
2188
|
-
placeholder:
|
|
2189
|
-
disabled:
|
|
2188
|
+
placeholder: h.setting.options.placeholder,
|
|
2189
|
+
disabled: h.setting.options.isInputEdit || a(v),
|
|
2190
2190
|
isView: e.isView,
|
|
2191
2191
|
autosize: {
|
|
2192
2192
|
minRows: 1,
|
|
@@ -2194,28 +2194,28 @@ const Fa = (n, e) => {
|
|
|
2194
2194
|
},
|
|
2195
2195
|
"show-word-limit": "",
|
|
2196
2196
|
helpMessage: f.value,
|
|
2197
|
-
required:
|
|
2197
|
+
required: i.value
|
|
2198
2198
|
}, null, 8, ["col", "label", "modelValue", "prop", "placeholder", "disabled", "isView", "helpMessage", "required"])) : B("v-if", !0),
|
|
2199
|
-
|
|
2199
|
+
h.setting.options.isEditor && r.value ? (M(), E(a(J), {
|
|
2200
2200
|
key: 1,
|
|
2201
|
-
modelValue:
|
|
2202
|
-
"onUpdate:modelValue":
|
|
2201
|
+
modelValue: n.value,
|
|
2202
|
+
"onUpdate:modelValue": S[2] || (S[2] = (g) => n.value = g),
|
|
2203
2203
|
prop: e.setting.name,
|
|
2204
2204
|
contentWidth: c.value,
|
|
2205
|
-
label:
|
|
2205
|
+
label: h.setting.desc,
|
|
2206
2206
|
type: "custom",
|
|
2207
2207
|
helpMessage: f.value,
|
|
2208
|
-
required:
|
|
2208
|
+
required: i.value,
|
|
2209
2209
|
readOnly: e.isView
|
|
2210
2210
|
}, {
|
|
2211
|
-
default:
|
|
2212
|
-
|
|
2211
|
+
default: $(() => [
|
|
2212
|
+
I(a(at), {
|
|
2213
2213
|
ref: "editor",
|
|
2214
2214
|
width: c.value,
|
|
2215
|
-
height:
|
|
2216
|
-
modelValue:
|
|
2217
|
-
"onUpdate:modelValue":
|
|
2218
|
-
placeholder:
|
|
2215
|
+
height: D.value,
|
|
2216
|
+
modelValue: n.value,
|
|
2217
|
+
"onUpdate:modelValue": S[1] || (S[1] = (g) => n.value = g),
|
|
2218
|
+
placeholder: h.setting.options.placeholder
|
|
2219
2219
|
}, null, 8, ["width", "height", "modelValue", "placeholder"])
|
|
2220
2220
|
]),
|
|
2221
2221
|
_: 1
|
|
@@ -2246,36 +2246,36 @@ const Fa = (n, e) => {
|
|
|
2246
2246
|
marginRight: {},
|
|
2247
2247
|
store: {}
|
|
2248
2248
|
},
|
|
2249
|
-
setup(
|
|
2250
|
-
const e =
|
|
2251
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
2249
|
+
setup(s) {
|
|
2250
|
+
const e = s, { showData: t, disabledData: l, setData: d, getData: o, setFormRule: m, deleteRule: L } = e.store || {}, n = u(), r = u(!0);
|
|
2251
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), T(
|
|
2252
2252
|
() => t.value,
|
|
2253
2253
|
() => {
|
|
2254
|
-
|
|
2254
|
+
r.value = t.value[e.setting.name], r.value || (n.value = null, L(e.setting.name)), r.value && e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList);
|
|
2255
2255
|
},
|
|
2256
2256
|
{ deep: !0, immediate: !0 }
|
|
2257
2257
|
);
|
|
2258
|
-
const v = l.value[e.setting.name] || !1,
|
|
2258
|
+
const v = l.value[e.setting.name] || !1, i = u(!1);
|
|
2259
2259
|
ne(e.setting.options.validateList).then((c) => {
|
|
2260
|
-
|
|
2260
|
+
i.value = c;
|
|
2261
2261
|
});
|
|
2262
|
-
const f =
|
|
2262
|
+
const f = u();
|
|
2263
2263
|
return e.setting.options.tip && (f.value = X(e.setting.options.tip)), setTimeout(() => {
|
|
2264
2264
|
const c = Me().format("YYYY-MM-DD ");
|
|
2265
|
-
|
|
2266
|
-
}, 50), e.setting.options.validateList.length &&
|
|
2265
|
+
o(e.setting.name) && (n.value = o(e.setting.name)), e.setting.options.formulasDiyJs && (n.value = Me(c + e.setting.options.formulasDiyJs)), n.value || d(e.setting.name, null);
|
|
2266
|
+
}, 50), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), T(n, (c) => {
|
|
2267
2267
|
d(e.setting.name, c);
|
|
2268
|
-
}), (c,
|
|
2268
|
+
}), (c, D) => r.value ? (M(), E(a(J), {
|
|
2269
2269
|
key: 0,
|
|
2270
2270
|
col: e.span,
|
|
2271
|
-
modelValue:
|
|
2272
|
-
"onUpdate:modelValue":
|
|
2271
|
+
modelValue: n.value,
|
|
2272
|
+
"onUpdate:modelValue": D[0] || (D[0] = (h) => n.value = h),
|
|
2273
2273
|
prop: e.setting.name,
|
|
2274
2274
|
label: c.setting.desc,
|
|
2275
2275
|
type: "time",
|
|
2276
2276
|
helpMessage: f.value,
|
|
2277
2277
|
isView: e.isView,
|
|
2278
|
-
required:
|
|
2278
|
+
required: i.value,
|
|
2279
2279
|
disabled: a(v)
|
|
2280
2280
|
}, null, 8, ["col", "modelValue", "prop", "label", "helpMessage", "isView", "required", "disabled"])) : B("v-if", !0);
|
|
2281
2281
|
}
|
|
@@ -2298,10 +2298,10 @@ const Fa = (n, e) => {
|
|
|
2298
2298
|
type: Object
|
|
2299
2299
|
}
|
|
2300
2300
|
},
|
|
2301
|
-
setup(
|
|
2302
|
-
const e =
|
|
2301
|
+
setup(s) {
|
|
2302
|
+
const e = u([]), t = s.columns.map((l) => {
|
|
2303
2303
|
const d = l.list.map(
|
|
2304
|
-
(
|
|
2304
|
+
(o) => Se(Ne[o.ctrlType], { setting: o, isView: s.isView, store: s.store })
|
|
2305
2305
|
);
|
|
2306
2306
|
return l.isOpen == !0 && e.value.push(l.idKey), Se(
|
|
2307
2307
|
st,
|
|
@@ -2317,7 +2317,7 @@ const Fa = (n, e) => {
|
|
|
2317
2317
|
{ class: "accordion-layout" },
|
|
2318
2318
|
Se(
|
|
2319
2319
|
nt,
|
|
2320
|
-
{ activeKey: e.value, collapsible:
|
|
2320
|
+
{ activeKey: e.value, collapsible: s.options.accordion ? "" : "disabled" },
|
|
2321
2321
|
t
|
|
2322
2322
|
)
|
|
2323
2323
|
);
|
|
@@ -2352,8 +2352,8 @@ const Fa = (n, e) => {
|
|
|
2352
2352
|
isView: { type: Boolean },
|
|
2353
2353
|
store: {}
|
|
2354
2354
|
},
|
|
2355
|
-
setup(
|
|
2356
|
-
return (e, t) => (
|
|
2355
|
+
setup(s) {
|
|
2356
|
+
return (e, t) => (M(), E(a(dn), {
|
|
2357
2357
|
columns: e.setting.columns,
|
|
2358
2358
|
options: e.setting.options,
|
|
2359
2359
|
isView: e.isView,
|
|
@@ -2391,26 +2391,26 @@ const Fa = (n, e) => {
|
|
|
2391
2391
|
isView: { type: Boolean },
|
|
2392
2392
|
store: {}
|
|
2393
2393
|
},
|
|
2394
|
-
setup(
|
|
2395
|
-
const e =
|
|
2396
|
-
return (t, l) => (
|
|
2394
|
+
setup(s) {
|
|
2395
|
+
const e = s;
|
|
2396
|
+
return (t, l) => (M(), H(
|
|
2397
2397
|
le,
|
|
2398
2398
|
null,
|
|
2399
2399
|
[
|
|
2400
2400
|
B(' <GridLayout :columns="setting.columns" :isView="props.isView" :store="store"></GridLayout> '),
|
|
2401
2401
|
B(' <div style="display: flex; flex-direction: row; flex-wrap: wrap; width: 100%"> '),
|
|
2402
|
-
(
|
|
2402
|
+
(M(!0), H(
|
|
2403
2403
|
le,
|
|
2404
2404
|
null,
|
|
2405
|
-
ke(t.setting.columns, (d) => (
|
|
2405
|
+
ke(t.setting.columns, (d) => (M(), H(
|
|
2406
2406
|
le,
|
|
2407
2407
|
null,
|
|
2408
2408
|
[
|
|
2409
|
-
(
|
|
2409
|
+
(M(!0), H(
|
|
2410
2410
|
le,
|
|
2411
2411
|
null,
|
|
2412
|
-
ke(d.list, (
|
|
2413
|
-
setting:
|
|
2412
|
+
ke(d.list, (o) => (M(), E(Le(a(bn)[o.ctrlType]), {
|
|
2413
|
+
setting: o,
|
|
2414
2414
|
isView: e.isView,
|
|
2415
2415
|
store: t.store,
|
|
2416
2416
|
span: d.span
|
|
@@ -2435,60 +2435,60 @@ const Fa = (n, e) => {
|
|
|
2435
2435
|
__proto__: null,
|
|
2436
2436
|
default: fn
|
|
2437
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 = {};
|
|
2438
|
-
Object.keys(Ke).map((
|
|
2439
|
-
Object.keys(Ae).map((
|
|
2440
|
-
Object.keys(qe).map((
|
|
2441
|
-
Object.keys(je).map((
|
|
2442
|
-
const bn = { ...St, ...kt }, wn = (
|
|
2443
|
-
(!e || e.toString() === "") && parseInt(e) !== 0 ? t(new Error(`${
|
|
2444
|
-
}, _n = (
|
|
2445
|
-
e !== "" && e.length > parseInt(l.value) ? t(new Error(`${
|
|
2446
|
-
}, Cn = (
|
|
2447
|
-
e !== "" && e.length < parseInt(l.value) ? t(new Error(`${
|
|
2448
|
-
}, Dn = (
|
|
2438
|
+
Object.keys(Ke).map((s) => St[Ke[s].default.name] = Ke[s].default);
|
|
2439
|
+
Object.keys(Ae).map((s) => kt[Ae[s].default.name] = Ae[s].default);
|
|
2440
|
+
Object.keys(qe).map((s) => yn[qe[s].default.name] = qe[s].default);
|
|
2441
|
+
Object.keys(je).map((s) => Ne[je[s].default.name] = je[s].default);
|
|
2442
|
+
const bn = { ...St, ...kt }, wn = (s, e, t, l) => {
|
|
2443
|
+
(!e || e.toString() === "") && parseInt(e) !== 0 ? t(new Error(`${k("*必填")}`)) : t();
|
|
2444
|
+
}, _n = (s, e, t, l) => {
|
|
2445
|
+
e !== "" && e.length > parseInt(l.value) ? t(new Error(`${k("最大文本长度")}${k("不能超过")}${l.value}`)) : t();
|
|
2446
|
+
}, Cn = (s, e, t, l) => {
|
|
2447
|
+
e !== "" && e.length < parseInt(l.value) ? t(new Error(`${k("最小文本长度")}${k("不能少于")}${l.value}`)) : t();
|
|
2448
|
+
}, Dn = (s, e, t, l) => {
|
|
2449
2449
|
if (e !== "" && !/^1[3456789]\d{9}$/.test(e))
|
|
2450
|
-
return t(new Error(
|
|
2450
|
+
return t(new Error(k("手机号码格式不正确,请重新输入"))), !1;
|
|
2451
2451
|
t();
|
|
2452
|
-
}, Sn = (
|
|
2452
|
+
}, Sn = (s, e, t) => {
|
|
2453
2453
|
if (e !== "" && !/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(e))
|
|
2454
|
-
return t(new Error(
|
|
2454
|
+
return t(new Error(k("电子邮箱格式不正确,请重新输入"))), !1;
|
|
2455
2455
|
t();
|
|
2456
|
-
}, kn = (
|
|
2456
|
+
}, kn = (s, e, t) => {
|
|
2457
2457
|
if (e !== "" && !/^-?\d+$/.test(e))
|
|
2458
|
-
return t(new Error(
|
|
2458
|
+
return t(new Error(k("请输入整数"))), !1;
|
|
2459
2459
|
t();
|
|
2460
|
-
}, Nn = (
|
|
2460
|
+
}, Nn = (s, e, t, l) => {
|
|
2461
2461
|
if (e !== "" && e != l.value)
|
|
2462
|
-
return t(new Error(
|
|
2462
|
+
return t(new Error(k("请输入相同的值"))), !1;
|
|
2463
2463
|
t();
|
|
2464
|
-
}, Vn = (
|
|
2465
|
-
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e < parseFloat(l.value) ? t(new Error(`${l.name}${
|
|
2466
|
-
}, Ln = (
|
|
2467
|
-
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e > parseFloat(l.value) ? t(new Error(`${l.name}${
|
|
2468
|
-
}, zn = (
|
|
2469
|
-
const d = /^[+-]?(\d*\.\d+([eE]?[+-]?\d+)?|\d+[eE][+-]?\d+)$/,
|
|
2470
|
-
e === "" ? t() : d.test(e) ||
|
|
2471
|
-
}, Mn = (
|
|
2472
|
-
e === "" || parseFloat(e) === parseFloat(l.value) ? t() : t(new Error(`${
|
|
2473
|
-
}, In = (
|
|
2474
|
-
e === "" ? t() : /^-?\d+$/.test(e) ? Math.abs(e).toString().length === parseInt(l.value) ? t() : t(new Error(`${
|
|
2475
|
-
}, Tn = (
|
|
2464
|
+
}, Vn = (s, e, t, l) => {
|
|
2465
|
+
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e < parseFloat(l.value) ? t(new Error(`${l.name}${k("不能小于")}${l.value}`)) : t() : t(new Error(k("请输入数字")));
|
|
2466
|
+
}, Ln = (s, e, t, l) => {
|
|
2467
|
+
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e > parseFloat(l.value) ? t(new Error(`${l.name}${k("不能大于")}${l.value}`)) : t() : t(new Error(k("请输入数字")));
|
|
2468
|
+
}, zn = (s, e, t, l) => {
|
|
2469
|
+
const d = /^[+-]?(\d*\.\d+([eE]?[+-]?\d+)?|\d+[eE][+-]?\d+)$/, o = /^-?\d+$/;
|
|
2470
|
+
e === "" ? t() : d.test(e) || o.test(e) ? e >= parseFloat(l.start) && e <= parseFloat(l.end) ? t() : t(new Error(`${k("只能输入指定数字范围")}${l.start}-${l.end}`)) : t(new Error(k("请输入数字")));
|
|
2471
|
+
}, Mn = (s, e, t, l) => {
|
|
2472
|
+
e === "" || parseFloat(e) === parseFloat(l.value) ? t() : t(new Error(`${k("只能输入指定的值")}${l.value}`));
|
|
2473
|
+
}, In = (s, e, t, l) => {
|
|
2474
|
+
e === "" ? t() : /^-?\d+$/.test(e) ? Math.abs(e).toString().length === parseInt(l.value) ? t() : t(new Error(`${k("只能输入")}${l.value}${k("位数数字")}`)) : t(new Error(k("请输入整数")));
|
|
2475
|
+
}, Tn = (s, e, t) => {
|
|
2476
2476
|
if (e !== "" && !/^[a-zA-Z]{1,}$/.test(e))
|
|
2477
|
-
return t(new Error(
|
|
2477
|
+
return t(new Error(k("只能输入字母"))), !1;
|
|
2478
2478
|
t();
|
|
2479
|
-
}, Pn = (
|
|
2479
|
+
}, Pn = (s, e, t) => {
|
|
2480
2480
|
if (e !== "" && !/^[a-zA-Z ]{1,}$/.test(e))
|
|
2481
|
-
return t(new Error(
|
|
2481
|
+
return t(new Error(k("只能输入字母空格"))), !1;
|
|
2482
2482
|
t();
|
|
2483
|
-
}, Rn = (
|
|
2483
|
+
}, Rn = (s, e, t) => {
|
|
2484
2484
|
if (e !== "" && !/^[0-9a-zA-Z_-]{1,}$/.test(e))
|
|
2485
|
-
return t(new Error(
|
|
2485
|
+
return t(new Error(k("只能输入字母数字横线下划线"))), !1;
|
|
2486
2486
|
t();
|
|
2487
|
-
}, $n = (
|
|
2487
|
+
}, $n = (s, e, t) => {
|
|
2488
2488
|
if (e !== "" && !/^[0-9a-zA-Z]{1,}$/.test(e))
|
|
2489
|
-
return t(new Error(
|
|
2489
|
+
return t(new Error(k("只能输入字母数字"))), !1;
|
|
2490
2490
|
t();
|
|
2491
|
-
}, Fn = (
|
|
2491
|
+
}, Fn = (s, e, t, l) => {
|
|
2492
2492
|
const d = new RegExp(l.value);
|
|
2493
2493
|
if (e !== "" && !d.test(e))
|
|
2494
2494
|
return t(new Error(l.errorMessage)), !1;
|
|
@@ -2511,58 +2511,60 @@ const bn = { ...St, ...kt }, wn = (n, e, t, l) => {
|
|
|
2511
2511
|
alpha_dash: Rn,
|
|
2512
2512
|
alpha_num: $n,
|
|
2513
2513
|
regex: Fn
|
|
2514
|
-
}, Kn = () => {
|
|
2515
|
-
const
|
|
2514
|
+
}, Kn = (s) => {
|
|
2515
|
+
const e = u({}), t = u([]), l = u({}), d = u({}), o = u([]), m = u(""), L = u(""), n = u({}), r = u([]), v = u({}), i = (_, N) => {
|
|
2516
|
+
v.value = { data: _, val: N };
|
|
2517
|
+
}, f = () => {
|
|
2518
|
+
var _;
|
|
2519
|
+
(_ = s == null ? void 0 : s.onChange) == null || _.call(s, { ...e.value });
|
|
2520
|
+
};
|
|
2516
2521
|
return {
|
|
2517
|
-
data:
|
|
2518
|
-
formData:
|
|
2519
|
-
formRule:
|
|
2520
|
-
showData:
|
|
2521
|
-
disabledData:
|
|
2522
|
-
flowKey:
|
|
2523
|
-
linkData:
|
|
2524
|
-
encryptionData:
|
|
2525
|
-
setData: (
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
});
|
|
2530
|
-
},
|
|
2531
|
-
setDetailData: (h) => {
|
|
2532
|
-
n.value = h, e.value.forEach((u) => {
|
|
2533
|
-
u.formKey === g.value && (u.data = h);
|
|
2534
|
-
});
|
|
2522
|
+
data: e,
|
|
2523
|
+
formData: t,
|
|
2524
|
+
formRule: n,
|
|
2525
|
+
showData: l,
|
|
2526
|
+
disabledData: d,
|
|
2527
|
+
flowKey: m,
|
|
2528
|
+
linkData: v,
|
|
2529
|
+
encryptionData: r,
|
|
2530
|
+
setData: (_, N) => {
|
|
2531
|
+
e.value[_] = N, t.value.forEach((K) => {
|
|
2532
|
+
K.formKey === L.value && (K.data[_] = N);
|
|
2533
|
+
}), f();
|
|
2535
2534
|
},
|
|
2536
|
-
|
|
2537
|
-
|
|
2535
|
+
setDetailData: (_) => {
|
|
2536
|
+
e.value = _ || {}, t.value.forEach((N) => {
|
|
2537
|
+
N.formKey === L.value && (N.data = e.value);
|
|
2538
|
+
}), f();
|
|
2538
2539
|
},
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2540
|
+
setLinkData: i,
|
|
2541
|
+
getData: (_) => {
|
|
2542
|
+
var N;
|
|
2543
|
+
return e.value[_] || ((N = t.value.find((K) => K.formKey === L.value)) == null ? void 0 : N.data[_]);
|
|
2542
2544
|
},
|
|
2543
|
-
setFormData: (
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
}) : (
|
|
2547
|
-
formKey:
|
|
2548
|
-
boKey:
|
|
2549
|
-
reportId:
|
|
2545
|
+
setFormData: (_, N, K) => {
|
|
2546
|
+
L.value = _, o.value.includes(_) ? t.value.forEach((F) => {
|
|
2547
|
+
F.formKey === _ && (e.value = F.data);
|
|
2548
|
+
}) : (o.value.push(_), t.value.push({
|
|
2549
|
+
formKey: _,
|
|
2550
|
+
boKey: N,
|
|
2551
|
+
reportId: K || null,
|
|
2550
2552
|
data: {}
|
|
2551
2553
|
}));
|
|
2552
2554
|
},
|
|
2553
|
-
getFormData: () =>
|
|
2554
|
-
setFormRule: (
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
validator: (
|
|
2555
|
+
getFormData: () => t.value,
|
|
2556
|
+
setFormRule: (_, N) => {
|
|
2557
|
+
n.value[_] = [], N && N.length && N.forEach((K) => {
|
|
2558
|
+
n.value[_].push({
|
|
2559
|
+
validator: (F, U, j) => jn[K.key](F, U, j, K)
|
|
2558
2560
|
});
|
|
2559
2561
|
});
|
|
2560
2562
|
},
|
|
2561
2563
|
clearData: () => {
|
|
2562
|
-
|
|
2564
|
+
e.value = {}, t.value = [], o.value = [], n.value = {};
|
|
2563
2565
|
},
|
|
2564
|
-
deleteRule: (
|
|
2565
|
-
delete
|
|
2566
|
+
deleteRule: (_) => {
|
|
2567
|
+
delete n.value[_];
|
|
2566
2568
|
}
|
|
2567
2569
|
};
|
|
2568
2570
|
}, An = { class: "custom-page" }, qn = {
|
|
@@ -2584,50 +2586,41 @@ const bn = { ...St, ...kt }, wn = (n, e, t, l) => {
|
|
|
2584
2586
|
disabledData: { default: {} }
|
|
2585
2587
|
},
|
|
2586
2588
|
emits: ["handleClick", "change"],
|
|
2587
|
-
setup(
|
|
2588
|
-
const l =
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
immediate: !0,
|
|
2598
|
-
deep: !0
|
|
2599
|
-
}
|
|
2600
|
-
);
|
|
2601
|
-
const {
|
|
2602
|
-
formJsonList: f,
|
|
2603
|
-
isShowPage: c,
|
|
2604
|
-
btnList: C,
|
|
2605
|
-
activityKeys: y,
|
|
2589
|
+
setup(s, { expose: e, emit: t }) {
|
|
2590
|
+
const l = s, d = t, o = Kn({
|
|
2591
|
+
onChange: (C) => d("change", C)
|
|
2592
|
+
}), { formRule: m, flowKey: L, clearData: n } = o;
|
|
2593
|
+
L.value = l.flowKey;
|
|
2594
|
+
const r = (C) => C === "accordion", {
|
|
2595
|
+
formJsonList: v,
|
|
2596
|
+
isShowPage: i,
|
|
2597
|
+
btnList: f,
|
|
2598
|
+
activityKeys: c,
|
|
2606
2599
|
getForm: D,
|
|
2607
|
-
getBtnSet:
|
|
2608
|
-
handleClick:
|
|
2609
|
-
validateFormData:
|
|
2610
|
-
getFormRef:
|
|
2611
|
-
} = ha(
|
|
2600
|
+
getBtnSet: h,
|
|
2601
|
+
handleClick: S,
|
|
2602
|
+
validateFormData: g,
|
|
2603
|
+
getFormRef: z
|
|
2604
|
+
} = ha(l, d, o);
|
|
2612
2605
|
return zt(async () => {
|
|
2613
|
-
|
|
2606
|
+
l.isShowBtn == !1 ? D(l.formConfigurationId) : h();
|
|
2614
2607
|
}), e({
|
|
2615
|
-
validateFormData:
|
|
2616
|
-
clearData:
|
|
2617
|
-
}), (
|
|
2618
|
-
a(
|
|
2619
|
-
(
|
|
2608
|
+
validateFormData: g,
|
|
2609
|
+
clearData: n
|
|
2610
|
+
}), (C, p) => (M(), H("div", An, [
|
|
2611
|
+
a(f).length > 0 ? (M(), H("div", qn, [
|
|
2612
|
+
(M(!0), H(
|
|
2620
2613
|
le,
|
|
2621
2614
|
null,
|
|
2622
|
-
ke(a(
|
|
2623
|
-
key:
|
|
2615
|
+
ke(a(f), (_) => (M(), E(a(Pt), {
|
|
2616
|
+
key: _.id,
|
|
2624
2617
|
style: { "margin-right": "20px" },
|
|
2625
2618
|
"btn-type": "primary",
|
|
2626
|
-
onClick: (
|
|
2619
|
+
onClick: (N) => a(S)(_)
|
|
2627
2620
|
}, {
|
|
2628
|
-
default:
|
|
2621
|
+
default: $(() => [
|
|
2629
2622
|
re(
|
|
2630
|
-
ue(
|
|
2623
|
+
ue(_.name),
|
|
2631
2624
|
1
|
|
2632
2625
|
/* TEXT */
|
|
2633
2626
|
)
|
|
@@ -2639,65 +2632,65 @@ const bn = { ...St, ...kt }, wn = (n, e, t, l) => {
|
|
|
2639
2632
|
/* KEYED_FRAGMENT */
|
|
2640
2633
|
))
|
|
2641
2634
|
])) : B("v-if", !0),
|
|
2642
|
-
Mt((
|
|
2635
|
+
Mt((M(), H(
|
|
2643
2636
|
"div",
|
|
2644
2637
|
{
|
|
2645
2638
|
class: "content-box",
|
|
2646
|
-
style: It({ margin: "0 10px", ...
|
|
2639
|
+
style: It({ margin: "0 10px", ...C.customStyle })
|
|
2647
2640
|
},
|
|
2648
2641
|
[
|
|
2649
|
-
(
|
|
2642
|
+
(M(!0), H(
|
|
2650
2643
|
le,
|
|
2651
2644
|
null,
|
|
2652
|
-
ke(a(
|
|
2645
|
+
ke(a(v), (_) => (M(), H(
|
|
2653
2646
|
le,
|
|
2654
2647
|
{
|
|
2655
|
-
key:
|
|
2648
|
+
key: _.name
|
|
2656
2649
|
},
|
|
2657
2650
|
[
|
|
2658
|
-
r(
|
|
2651
|
+
r(_.ctrlType) ? (M(), E(a(nt), {
|
|
2659
2652
|
key: 0,
|
|
2660
2653
|
style: { "margin-bottom": "10px" },
|
|
2661
|
-
collapsible:
|
|
2662
|
-
activeKey: a(
|
|
2654
|
+
collapsible: _.options.accordion ? "" : "disabled",
|
|
2655
|
+
activeKey: a(c)
|
|
2663
2656
|
}, {
|
|
2664
|
-
default:
|
|
2665
|
-
(
|
|
2666
|
-
key:
|
|
2667
|
-
header:
|
|
2657
|
+
default: $(() => [
|
|
2658
|
+
(M(), E(a(st), {
|
|
2659
|
+
key: _.key,
|
|
2660
|
+
header: _.columns[0].span
|
|
2668
2661
|
}, {
|
|
2669
|
-
default:
|
|
2670
|
-
a(
|
|
2662
|
+
default: $(() => [
|
|
2663
|
+
a(i) ? (M(), E(a(We), {
|
|
2671
2664
|
key: 0,
|
|
2672
2665
|
ref_for: !0,
|
|
2673
|
-
ref: (
|
|
2666
|
+
ref: (N) => a(z)(N, _),
|
|
2674
2667
|
cols: 24,
|
|
2675
2668
|
alignType: "horizontal",
|
|
2676
2669
|
"margin-right": "80px",
|
|
2677
2670
|
"auto-margin-right": "",
|
|
2678
|
-
rules: a(
|
|
2679
|
-
form: a(
|
|
2671
|
+
rules: a(m),
|
|
2672
|
+
form: a(o).data
|
|
2680
2673
|
}, {
|
|
2681
|
-
default:
|
|
2682
|
-
(
|
|
2674
|
+
default: $(() => [
|
|
2675
|
+
(M(!0), H(
|
|
2683
2676
|
le,
|
|
2684
2677
|
null,
|
|
2685
|
-
ke(
|
|
2678
|
+
ke(_.columns[0].list, (N) => (M(), H(
|
|
2686
2679
|
le,
|
|
2687
2680
|
{
|
|
2688
|
-
key:
|
|
2681
|
+
key: _.name
|
|
2689
2682
|
},
|
|
2690
2683
|
[
|
|
2691
|
-
|
|
2684
|
+
N.ctrlType == "grid" ? (M(), E(Le(a(Ne).grid), {
|
|
2692
2685
|
key: 0,
|
|
2693
|
-
setting:
|
|
2694
|
-
isView:
|
|
2695
|
-
store: a(
|
|
2696
|
-
}, null, 8, ["setting", "isView", "store"])) : (
|
|
2686
|
+
setting: N,
|
|
2687
|
+
isView: l.isView,
|
|
2688
|
+
store: a(o)
|
|
2689
|
+
}, null, 8, ["setting", "isView", "store"])) : (M(), E(Le(a(Ne)[N.ctrlType]), {
|
|
2697
2690
|
key: 1,
|
|
2698
|
-
setting:
|
|
2699
|
-
isView:
|
|
2700
|
-
store: a(
|
|
2691
|
+
setting: N,
|
|
2692
|
+
isView: l.isView,
|
|
2693
|
+
store: a(o)
|
|
2701
2694
|
}, null, 8, ["setting", "isView", "store"]))
|
|
2702
2695
|
],
|
|
2703
2696
|
64
|
|
@@ -2717,23 +2710,23 @@ const bn = { ...St, ...kt }, wn = (n, e, t, l) => {
|
|
|
2717
2710
|
]),
|
|
2718
2711
|
_: 2
|
|
2719
2712
|
/* DYNAMIC */
|
|
2720
|
-
}, 1032, ["collapsible", "activeKey"])) : (
|
|
2721
|
-
a(
|
|
2713
|
+
}, 1032, ["collapsible", "activeKey"])) : (M(), H("div", En, [
|
|
2714
|
+
a(i) ? (M(), E(a(We), {
|
|
2722
2715
|
key: 0,
|
|
2723
2716
|
ref_for: !0,
|
|
2724
|
-
ref: (
|
|
2717
|
+
ref: (N) => a(z)(N, _),
|
|
2725
2718
|
cols: 24,
|
|
2726
2719
|
"auto-margin-right": "",
|
|
2727
2720
|
alignType: "horizontal",
|
|
2728
2721
|
"margin-right": "80px",
|
|
2729
|
-
rules: a(
|
|
2730
|
-
form: a(
|
|
2722
|
+
rules: a(m),
|
|
2723
|
+
form: a(o).data
|
|
2731
2724
|
}, {
|
|
2732
|
-
default:
|
|
2733
|
-
(
|
|
2734
|
-
setting:
|
|
2735
|
-
isView:
|
|
2736
|
-
store: a(
|
|
2725
|
+
default: $(() => [
|
|
2726
|
+
(M(), E(Le(a(Ne)[_.ctrlType]), {
|
|
2727
|
+
setting: _,
|
|
2728
|
+
isView: l.isView,
|
|
2729
|
+
store: a(o)
|
|
2737
2730
|
}, null, 8, ["setting", "isView", "store"]))
|
|
2738
2731
|
]),
|
|
2739
2732
|
_: 2
|
|
@@ -2755,7 +2748,7 @@ const bn = { ...St, ...kt }, wn = (n, e, t, l) => {
|
|
|
2755
2748
|
])
|
|
2756
2749
|
]));
|
|
2757
2750
|
}
|
|
2758
|
-
}), Bn = /* @__PURE__ */ Te(On, [["__scopeId", "data-v-
|
|
2751
|
+
}), Bn = /* @__PURE__ */ Te(On, [["__scopeId", "data-v-a6e8d345"]]), Qn = {
|
|
2759
2752
|
姓名: { "zh-CN": "姓名", en: "Name", _appCode: "framework" },
|
|
2760
2753
|
状态: { "zh-CN": "状态", en: "Status", _appCode: "framework" },
|
|
2761
2754
|
组织名称: { "zh-CN": "组织名称", en: "Organization Name", _appCode: "framework" },
|