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