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