@das-fed/ui 6.4.0-hot.1 → 6.4.0-hot.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- package/packages/business-components/app-container/index.js +255 -46
- package/packages/business-components/app-container/index.js.gz +0 -0
- package/packages/business-components/change-enterprises/index.js +298 -89
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/device-panel/index.js +28123 -23289
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/process-form/index.js +1010 -801
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-log/index.js +3669 -331
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +2338 -1553
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/components/alert/index.js +3418 -51
- package/packages/components/alert/index.js.gz +0 -0
- package/packages/components/autocomplete/index.js +2875 -456
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/breadcrumb/index.js +271 -47
- package/packages/components/breadcrumb/index.js.gz +0 -0
- package/packages/components/button/index.js +9800 -211
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/cascader/index.js +6406 -139
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/checkbox/index.js +3837 -179
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/collapse-panel/index.js +3624 -30
- package/packages/components/collapse-panel/index.js.gz +0 -0
- package/packages/components/collaspe/index.js +3624 -30
- package/packages/components/collaspe/index.js.gz +0 -0
- package/packages/components/color-picker/index.js +5346 -106
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/date-picker/index.js +13993 -529
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dialog/index.js +1835 -186
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/drawer/index.js +1614 -38
- package/packages/components/drawer/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +4615 -54
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/empty/index.js +800 -39
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/image-preview/index.js +1283 -34
- package/packages/components/image-preview/index.js.gz +0 -0
- package/packages/components/image-upload/index.js +11722 -111
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +13168 -386
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/input/index.js +1086 -157
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-number/index.js +1831 -145
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/live-player/index.js +3669 -2883
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/map/index.js +5214 -1190
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/index.js +8297 -603
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/menu-header/index.js +10077 -38
- package/packages/components/menu-header/index.js.gz +0 -0
- package/packages/components/message/index.js +1289 -53
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/notification/index.js +3269 -47
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/pagination/index.js +8025 -148
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/popover/index.js +2495 -44
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/progress/index.js +517 -107
- package/packages/components/progress/index.js.gz +0 -0
- package/packages/components/radio/index.js +3724 -159
- package/packages/components/radio/index.js.gz +0 -0
- package/packages/components/scrollbar/index.js +1442 -915
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/search/index.js +5261 -89
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/search-form/index.js +1010 -920
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/select/index.js +10505 -379
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/index.js +1433 -1173
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +2645 -196
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +2710 -259
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/index.js +3534 -48
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/step/index.js +4085 -28
- package/packages/components/step/index.js.gz +0 -0
- package/packages/components/steps/index.js +4070 -14
- package/packages/components/steps/index.js.gz +0 -0
- package/packages/components/switch/index.js +547 -31
- package/packages/components/switch/index.js.gz +0 -0
- package/packages/components/table/index.js +17503 -5201
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/tabs/index.js +12630 -172
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/tag/index.js +325 -55
- package/packages/components/tag/index.js.gz +0 -0
- package/packages/components/time-line/index.js +3397 -60
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/tooltip/index.js +2174 -65
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tree/index.js +6747 -1881
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-select/index.js +2778 -358
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/upload/index.js +11726 -115
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/index.js +2928 -86
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/components/watermark/index.js +368 -17
- package/packages/components/watermark/index.js.gz +0 -0
|
@@ -1,101 +1,100 @@
|
|
|
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
|
|
2
|
+
import { withInstall as Ge } from "@das-fed/utils/with-install/index";
|
|
3
|
+
import { ref as d, defineComponent as D, watch as O, openBlock as h, createBlock as V, unref as l, withCtx as S, createVNode as $, createElementVNode as Xe, createTextVNode as W, toDisplayString as Y, createElementBlock as I, Fragment as ee, isRef as oe, createSlots as et, createCommentVNode as J, h as C, warn as tt, getCurrentInstance as st, inject as _e, computed as x, provide as ot, resolveDynamicComponent as ce, normalizeClass as we, normalizeStyle as Ve, renderSlot as De, onMounted as nt, renderList as ye, withDirectives as at } from "vue";
|
|
4
|
+
import { DasFormRef as it, DasForm as lt } from "@das-fed/ui/packages/components/form/index";
|
|
5
|
+
import { DasButton as rt } from "@das-fed/ui/packages/components/button/index";
|
|
6
|
+
import { vOverlay as ut } from "@das-fed/ui/packages/components/overlay/index";
|
|
7
|
+
import { createService as K } from "@das-fed/utils/create-api-service";
|
|
8
|
+
import { DasUpload as pt } from "@das-fed/ui/packages/components/upload/index";
|
|
9
|
+
import { DasFormItem as M } from "@das-fed/ui/packages/components/form-item/index";
|
|
10
|
+
import { DasAutocomplete as gt } from "@das-fed/ui/packages/components/autocomplete/index";
|
|
11
|
+
import ge from "dayjs";
|
|
12
|
+
import { DasImageViewer as $e } from "@das-fed/ui/packages/components/image-viewer/index";
|
|
13
|
+
import { DasInput as ct } from "@das-fed/ui/packages/components/input/index";
|
|
14
14
|
import { DasTableColumn as T } from "@das-fed/ui/packages/components/table/index";
|
|
15
|
-
import { DasModelTableDialog as
|
|
16
|
-
import { getProjectInfo as
|
|
17
|
-
import { i18n as
|
|
18
|
-
import { getConfig as
|
|
19
|
-
import { DasRichEditor as
|
|
20
|
-
import { DasCollaspe as
|
|
21
|
-
import { DasCollaspePanel as
|
|
22
|
-
import { ElCol as Ze, ElRow as He } from "element-plus";
|
|
15
|
+
import { DasModelTableDialog as dt } from "@das-fed/ui/packages/business-components/model-table-dialog";
|
|
16
|
+
import { getProjectInfo as Re } from "@das-fed/utils/common-info";
|
|
17
|
+
import { i18n as E } from "@das-fed/web/packages/i18n/index";
|
|
18
|
+
import { getConfig as mt } from "@das-fed/utils/config";
|
|
19
|
+
import { DasRichEditor as Se } from "@das-fed/ui/packages/components/rich-editor/index";
|
|
20
|
+
import { DasCollaspe as ft } from "@das-fed/ui/packages/components/collaspe/index";
|
|
21
|
+
import { DasCollaspePanel as vt } from "@das-fed/ui/packages/components/collapse-panel/index";
|
|
23
22
|
import "element-plus/theme-chalk/el-row.css";
|
|
24
23
|
import "element-plus/theme-chalk/el-col.css";
|
|
25
|
-
const Q = "v1",
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
const
|
|
30
|
-
const { setDetailData:
|
|
31
|
-
const [
|
|
32
|
-
if (
|
|
33
|
-
const q = JSON.parse(
|
|
34
|
-
|
|
35
|
-
z.formKey ===
|
|
24
|
+
const Q = "v1", yt = K(`/workflow/form/form/${Q}`), ht = K(`/workflow/form/formDef/${Q}`);
|
|
25
|
+
K(`/workflow/api/user/${Q}`);
|
|
26
|
+
const Me = K(`/workflow/api/extend/${Q}`), bt = K(`/workflow/flow/def/${Q}`), _t = K(`/workflow/form/customQuery/${Q}`), k = K(`/api/enterpriseright/permission/${Q}`), de = K(`/api/space-manage/space-tree/${Q}`), wt = yt.get("/formDesign"), Vt = ht.get("/get"), Dt = Me.get("/report-config");
|
|
27
|
+
Me.get("/application-report");
|
|
28
|
+
const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St = k.get("/organization/authTree"), Mt = k.post("/user/list"), Lt = k.post("/data/user-query"), Ot = k.get("/role/list"), Tt = k.post("/data/role-ids"), jt = k.get("/organization/organizationpage"), Nt = k.get("/station/list"), Ft = k.get("/position/list"), ne = k.post("/organization/detailbyids"), qt = de.get("/controller/area-children"), Bt = de.get("/controller/fuzzy-tree-all"), Pt = de.get("/controller/space"), ae = d(""), Et = (s, e, t) => {
|
|
29
|
+
const { setDetailData: o, getFormData: m, setFormData: g, formRule: r } = t, p = d([]), n = d([]), a = d([]), i = d(!1), u = it(), c = (y) => Object.keys(y).length === 0, f = async (y) => {
|
|
30
|
+
const [b, w] = await wt({ formId: y }).run();
|
|
31
|
+
if (b) return;
|
|
32
|
+
const q = JSON.parse(w.bos);
|
|
33
|
+
ae.value = q[0].alias, n.value.length && n.value.forEach((z) => {
|
|
34
|
+
z.formKey === w.formKey && g(w.formKey, ae.value, z.id);
|
|
36
35
|
});
|
|
37
|
-
const [
|
|
38
|
-
|
|
36
|
+
const [A, Z] = await Vt({ formDefId: w.defId }).run();
|
|
37
|
+
a.value = JSON.parse(Z.value.expand).list, n.value.length || g(w.formKey, ae.value), c(s.data) && (i.value = !0), c(s.data) || (o(s.data), s.flowKey && (p.value = s.data.button_list ? JSON.parse(s.data.button_list) : []), i.value = !0);
|
|
39
38
|
};
|
|
40
39
|
return {
|
|
41
40
|
isShowPage: i,
|
|
42
|
-
formJsonList:
|
|
43
|
-
btnList:
|
|
41
|
+
formJsonList: a,
|
|
42
|
+
btnList: p,
|
|
44
43
|
formRef: u,
|
|
45
|
-
getForm:
|
|
44
|
+
getForm: f,
|
|
46
45
|
getBtnSet: async () => {
|
|
47
|
-
if (
|
|
48
|
-
const [
|
|
49
|
-
if (
|
|
50
|
-
|
|
46
|
+
if (s.formConfigurationId) {
|
|
47
|
+
const [y, b] = await Dt({ id: s.formConfigurationId }).run();
|
|
48
|
+
if (y) return;
|
|
49
|
+
n.value = b.reports, p.value = b.reports[0].buttons.filter((w) => !(s.isView && w.event !== "LINK")), f(b.reports[0].formId);
|
|
51
50
|
}
|
|
52
|
-
if (
|
|
53
|
-
const [
|
|
54
|
-
if (
|
|
55
|
-
|
|
51
|
+
if (s.flowKey) {
|
|
52
|
+
const [y, b] = await $t({ flowKey: s.flowKey }).run();
|
|
53
|
+
if (y) return;
|
|
54
|
+
f(b.pcForm.pcFormId);
|
|
56
55
|
}
|
|
57
56
|
},
|
|
58
|
-
handleClick: (
|
|
59
|
-
var
|
|
60
|
-
(
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
handleClick: (y) => {
|
|
58
|
+
var b;
|
|
59
|
+
(b = u.value) == null || b.validate(async (w) => {
|
|
60
|
+
w && (e("handleClick", y, m()), y.event === "LINK" && n.value.forEach((q) => {
|
|
61
|
+
y.eventTarget === q.formKey && (p.value = q.buttons.filter((A) => !(s.isView && A.event !== "LINK")), i.value = !1, r.value = {}, f(q.formId));
|
|
63
62
|
}));
|
|
64
63
|
});
|
|
65
64
|
},
|
|
66
|
-
validateFormData: () => new Promise((
|
|
67
|
-
var
|
|
68
|
-
(
|
|
69
|
-
const
|
|
70
|
-
|
|
65
|
+
validateFormData: () => new Promise((y, b) => {
|
|
66
|
+
var w;
|
|
67
|
+
(w = u.value) == null || w.validate((q) => {
|
|
68
|
+
const A = m();
|
|
69
|
+
y({
|
|
71
70
|
result: q,
|
|
72
|
-
data:
|
|
71
|
+
data: A
|
|
73
72
|
});
|
|
74
73
|
});
|
|
75
74
|
})
|
|
76
75
|
};
|
|
77
|
-
},
|
|
78
|
-
var e = new RegExp("<.+?>", "g"), t =
|
|
76
|
+
}, j = (s) => {
|
|
77
|
+
var e = new RegExp("<.+?>", "g"), t = s.replace(e, "").replace(/ /g, "");
|
|
79
78
|
return t;
|
|
80
|
-
},
|
|
81
|
-
const [t,
|
|
82
|
-
if (!t &&
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
|
|
79
|
+
}, X = async (s, e) => {
|
|
80
|
+
const [t, o] = await Rt({ alias: s }).run();
|
|
81
|
+
if (!t && o.url) {
|
|
82
|
+
const m = e.filter((a) => a.defaultType == 2), g = d({});
|
|
83
|
+
m.forEach((a) => {
|
|
84
|
+
g.value[a.field] = a.defaultValue;
|
|
86
85
|
});
|
|
87
|
-
const
|
|
88
|
-
return
|
|
86
|
+
const r = o.requestType === "POST" ? K(o.url).post("") : K(o.url).get(""), [p, n] = await r({}, { params: g.value }).run();
|
|
87
|
+
return p ? void 0 : n;
|
|
89
88
|
}
|
|
90
|
-
},
|
|
91
|
-
const e =
|
|
92
|
-
return
|
|
89
|
+
}, F = async (s) => {
|
|
90
|
+
const e = d(!1);
|
|
91
|
+
return s.forEach((t) => {
|
|
93
92
|
t.key === "required" && (e.value = !0);
|
|
94
93
|
}), e.value;
|
|
95
|
-
},
|
|
94
|
+
}, Kt = {
|
|
96
95
|
name: "attachment"
|
|
97
|
-
},
|
|
98
|
-
...
|
|
96
|
+
}, It = /* @__PURE__ */ D({
|
|
97
|
+
...Kt,
|
|
99
98
|
props: {
|
|
100
99
|
setting: { default: () => ({
|
|
101
100
|
icon: "",
|
|
@@ -109,36 +108,36 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
109
108
|
marginRight: { default: "80px" },
|
|
110
109
|
store: {}
|
|
111
110
|
},
|
|
112
|
-
setup(
|
|
113
|
-
const e =
|
|
114
|
-
e.setting.options.tip && (
|
|
115
|
-
const
|
|
116
|
-
return
|
|
117
|
-
t(e.setting.name, JSON.stringify(
|
|
118
|
-
}), (
|
|
111
|
+
setup(s) {
|
|
112
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d();
|
|
113
|
+
e.setting.options.tip && (g.value = j(e.setting.options.tip));
|
|
114
|
+
const r = d([{ name: "111", sizeText: "9.4KB" }]);
|
|
115
|
+
return r.value || t(e.setting.name, null), O(r, (p) => {
|
|
116
|
+
t(e.setting.name, JSON.stringify(p));
|
|
117
|
+
}), (p, n) => (h(), V(l(M), {
|
|
119
118
|
col: e.span,
|
|
120
|
-
marginRight:
|
|
121
|
-
label:
|
|
119
|
+
marginRight: p.marginRight,
|
|
120
|
+
label: p.setting.desc,
|
|
122
121
|
type: "custom",
|
|
123
|
-
helpMessage:
|
|
122
|
+
helpMessage: g.value
|
|
124
123
|
}, {
|
|
125
|
-
default:
|
|
126
|
-
|
|
124
|
+
default: S(() => [
|
|
125
|
+
$(l(pt), {
|
|
127
126
|
style: { width: "100%" },
|
|
128
|
-
modelValue:
|
|
129
|
-
"onUpdate:modelValue":
|
|
127
|
+
modelValue: r.value,
|
|
128
|
+
"onUpdate:modelValue": n[0] || (n[0] = (a) => r.value = a)
|
|
130
129
|
}, null, 8, ["modelValue"])
|
|
131
130
|
]),
|
|
132
131
|
_: 1
|
|
133
132
|
}, 8, ["col", "marginRight", "label", "helpMessage"]));
|
|
134
133
|
}
|
|
135
|
-
}),
|
|
134
|
+
}), Le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
136
135
|
__proto__: null,
|
|
137
|
-
default:
|
|
138
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
136
|
+
default: It
|
|
137
|
+
}, Symbol.toStringTag, { value: "Module" })), kt = {
|
|
139
138
|
name: "autocomplete"
|
|
140
|
-
},
|
|
141
|
-
...
|
|
139
|
+
}, At = /* @__PURE__ */ D({
|
|
140
|
+
...kt,
|
|
142
141
|
props: {
|
|
143
142
|
setting: { default: () => ({
|
|
144
143
|
icon: "",
|
|
@@ -152,54 +151,54 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
152
151
|
marginRight: { default: "80px" },
|
|
153
152
|
store: {}
|
|
154
153
|
},
|
|
155
|
-
setup(
|
|
156
|
-
const e =
|
|
157
|
-
|
|
158
|
-
|
|
154
|
+
setup(s) {
|
|
155
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
|
|
156
|
+
F(e.setting.options.validateList).then((c) => {
|
|
157
|
+
g.value = c;
|
|
159
158
|
});
|
|
160
|
-
const
|
|
161
|
-
e.setting.options.customQuery.alias ?
|
|
162
|
-
|
|
163
|
-
}) :
|
|
164
|
-
const i =
|
|
165
|
-
e.setting.options.tip && (i.value =
|
|
166
|
-
const u =
|
|
167
|
-
return u.value =
|
|
168
|
-
t(e.setting.name,
|
|
169
|
-
}), (
|
|
159
|
+
const r = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "value", p = e.setting.options.children ? e.setting.options.children : "children", n = !!e.setting.options.fillInFullPath, a = d([]);
|
|
160
|
+
e.setting.options.customQuery.alias ? X(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((c) => {
|
|
161
|
+
a.value = c;
|
|
162
|
+
}) : a.value = e.setting.options.options;
|
|
163
|
+
const i = d();
|
|
164
|
+
e.setting.options.tip && (i.value = j(e.setting.options.tip));
|
|
165
|
+
const u = d("");
|
|
166
|
+
return u.value = o(e.setting.name) || u.value, u.value || t(e.setting.name, null), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(u, (c) => {
|
|
167
|
+
t(e.setting.name, c.toString());
|
|
168
|
+
}), (c, f) => (h(), V(l(M), {
|
|
170
169
|
col: e.span,
|
|
171
|
-
marginRight:
|
|
170
|
+
marginRight: c.marginRight,
|
|
172
171
|
prop: e.setting.name,
|
|
173
172
|
modelValue: u.value,
|
|
174
|
-
"onUpdate:modelValue":
|
|
175
|
-
label:
|
|
173
|
+
"onUpdate:modelValue": f[1] || (f[1] = (R) => u.value = R),
|
|
174
|
+
label: c.setting.desc,
|
|
176
175
|
type: "custom",
|
|
177
176
|
helpMessage: i.value,
|
|
178
|
-
required:
|
|
177
|
+
required: g.value
|
|
179
178
|
}, {
|
|
180
|
-
default:
|
|
181
|
-
|
|
179
|
+
default: S(() => [
|
|
180
|
+
$(l(gt), {
|
|
182
181
|
modelValue: u.value,
|
|
183
|
-
"onUpdate:modelValue":
|
|
184
|
-
options:
|
|
182
|
+
"onUpdate:modelValue": f[0] || (f[0] = (R) => u.value = R),
|
|
183
|
+
options: a.value,
|
|
185
184
|
isView: e.isView,
|
|
186
185
|
width: "100%",
|
|
187
|
-
fieldNames: { label:
|
|
188
|
-
showFullPath: n
|
|
189
|
-
placeholder:
|
|
186
|
+
fieldNames: { label: l(r), children: l(p) },
|
|
187
|
+
showFullPath: l(n),
|
|
188
|
+
placeholder: c.setting.options.placeholder,
|
|
190
189
|
clearable: ""
|
|
191
190
|
}, null, 8, ["modelValue", "options", "isView", "fieldNames", "showFullPath", "placeholder"])
|
|
192
191
|
]),
|
|
193
192
|
_: 1
|
|
194
193
|
}, 8, ["col", "marginRight", "prop", "modelValue", "label", "helpMessage", "required"]));
|
|
195
194
|
}
|
|
196
|
-
}),
|
|
195
|
+
}), Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
197
196
|
__proto__: null,
|
|
198
|
-
default:
|
|
199
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
197
|
+
default: At
|
|
198
|
+
}, Symbol.toStringTag, { value: "Module" })), Ct = {
|
|
200
199
|
name: "checkbox"
|
|
201
|
-
},
|
|
202
|
-
...
|
|
200
|
+
}, Qt = /* @__PURE__ */ D({
|
|
201
|
+
...Ct,
|
|
203
202
|
props: {
|
|
204
203
|
setting: { default: () => ({
|
|
205
204
|
icon: "",
|
|
@@ -213,46 +212,46 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
213
212
|
marginRight: { default: "80px" },
|
|
214
213
|
store: {}
|
|
215
214
|
},
|
|
216
|
-
setup(
|
|
217
|
-
const e =
|
|
218
|
-
|
|
219
|
-
|
|
215
|
+
setup(s) {
|
|
216
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
|
|
217
|
+
F(e.setting.options.validateList).then((u) => {
|
|
218
|
+
g.value = u;
|
|
220
219
|
});
|
|
221
|
-
const
|
|
222
|
-
e.setting.options.customQuery.alias ?
|
|
223
|
-
|
|
224
|
-
}) :
|
|
225
|
-
const
|
|
226
|
-
e.setting.options.tip && (
|
|
227
|
-
const i =
|
|
220
|
+
const r = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", p = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", n = d([]);
|
|
221
|
+
e.setting.options.customQuery.alias ? X(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((u) => {
|
|
222
|
+
n.value = u;
|
|
223
|
+
}) : n.value = e.setting.options.options;
|
|
224
|
+
const a = d();
|
|
225
|
+
e.setting.options.tip && (a.value = j(e.setting.options.tip)());
|
|
226
|
+
const i = d([]);
|
|
228
227
|
return setTimeout(() => {
|
|
229
|
-
|
|
230
|
-
}, 50), e.setting.options.validateList.length &&
|
|
228
|
+
o(e.setting.name) && (i.value = o(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (i.value = e.setting.options.formulasDiyJs.split(",")), i.value.length || i.value || t(e.setting.name, null);
|
|
229
|
+
}, 50), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(i, (u) => {
|
|
231
230
|
t(e.setting.name, u.toString());
|
|
232
|
-
}), (u,
|
|
231
|
+
}), (u, c) => (h(), V(l(M), {
|
|
233
232
|
col: e.span,
|
|
234
233
|
marginRight: u.marginRight,
|
|
235
234
|
modelValue: i.value,
|
|
236
|
-
"onUpdate:modelValue":
|
|
235
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => i.value = f),
|
|
237
236
|
layout: u.setting.options.inline ? "vertical" : "default",
|
|
238
237
|
label: u.setting.desc,
|
|
239
238
|
prop: e.setting.name,
|
|
240
239
|
type: "checkbox",
|
|
241
|
-
options:
|
|
240
|
+
options: n.value,
|
|
242
241
|
isView: e.isView,
|
|
243
|
-
optionsValueKey:
|
|
244
|
-
optionsLabelKey:
|
|
245
|
-
helpMessage:
|
|
246
|
-
required:
|
|
242
|
+
optionsValueKey: l(r),
|
|
243
|
+
optionsLabelKey: l(p),
|
|
244
|
+
helpMessage: a.value,
|
|
245
|
+
required: g.value
|
|
247
246
|
}, null, 8, ["col", "marginRight", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"]));
|
|
248
247
|
}
|
|
249
|
-
}),
|
|
248
|
+
}), Te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
250
249
|
__proto__: null,
|
|
251
|
-
default:
|
|
252
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
250
|
+
default: Qt
|
|
251
|
+
}, Symbol.toStringTag, { value: "Module" })), zt = {
|
|
253
252
|
name: "date"
|
|
254
|
-
},
|
|
255
|
-
...
|
|
253
|
+
}, Ut = /* @__PURE__ */ D({
|
|
254
|
+
...zt,
|
|
256
255
|
props: {
|
|
257
256
|
setting: { default: () => ({
|
|
258
257
|
icon: "",
|
|
@@ -266,45 +265,45 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
266
265
|
marginRight: { default: "80px" },
|
|
267
266
|
store: {}
|
|
268
267
|
},
|
|
269
|
-
setup(
|
|
270
|
-
const e =
|
|
271
|
-
|
|
272
|
-
|
|
268
|
+
setup(s) {
|
|
269
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
|
|
270
|
+
F(e.setting.options.validateList).then((a) => {
|
|
271
|
+
g.value = a;
|
|
273
272
|
});
|
|
274
|
-
const
|
|
275
|
-
e.setting.options.tip && (
|
|
276
|
-
const
|
|
273
|
+
const r = e.setting.options.format === "yyyy-MM-dd" ? "YYYY/MM/DD" : "YYYY/MM/DD HH:mm:ss", p = d();
|
|
274
|
+
e.setting.options.tip && (p.value = j(e.setting.options.tip));
|
|
275
|
+
const n = d();
|
|
277
276
|
if (setTimeout(() => {
|
|
278
|
-
|
|
277
|
+
n.value = o(e.setting.name) || e.setting.options.formulasDiyJs || n.value, n.value || t(e.setting.name, null);
|
|
279
278
|
}, 50), e.setting.options.showCurrentDate) {
|
|
280
|
-
let
|
|
281
|
-
|
|
279
|
+
let a = /* @__PURE__ */ new Date();
|
|
280
|
+
a.setDate(a.getDate() + e.setting.options.day), n.value = ge(a.getTime()).format(r), t(e.setting.name, n.value);
|
|
282
281
|
}
|
|
283
|
-
return e.setting.options.validateList.length &&
|
|
284
|
-
t(e.setting.name,
|
|
285
|
-
}), (
|
|
282
|
+
return e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(n, (a) => {
|
|
283
|
+
t(e.setting.name, a);
|
|
284
|
+
}), (a, i) => (h(), V(l(M), {
|
|
286
285
|
col: e.span,
|
|
287
|
-
marginRight:
|
|
288
|
-
modelValue:
|
|
289
|
-
"onUpdate:modelValue": i[0] || (i[0] = (u) =>
|
|
290
|
-
label:
|
|
286
|
+
marginRight: a.marginRight,
|
|
287
|
+
modelValue: n.value,
|
|
288
|
+
"onUpdate:modelValue": i[0] || (i[0] = (u) => n.value = u),
|
|
289
|
+
label: a.setting.desc,
|
|
291
290
|
prop: e.setting.name,
|
|
292
291
|
type: e.setting.options.format === "yyyy/MM/dd" ? "date" : "dateTime",
|
|
293
|
-
format:
|
|
294
|
-
valueFormat:
|
|
292
|
+
format: l(r),
|
|
293
|
+
valueFormat: l(r),
|
|
295
294
|
isView: e.isView,
|
|
296
|
-
placeholder:
|
|
297
|
-
helpMessage:
|
|
298
|
-
required:
|
|
295
|
+
placeholder: a.setting.options.placeholder,
|
|
296
|
+
helpMessage: p.value,
|
|
297
|
+
required: g.value
|
|
299
298
|
}, null, 8, ["col", "marginRight", "modelValue", "label", "prop", "type", "format", "valueFormat", "isView", "placeholder", "helpMessage", "required"]));
|
|
300
299
|
}
|
|
301
|
-
}),
|
|
300
|
+
}), je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
302
301
|
__proto__: null,
|
|
303
|
-
default:
|
|
304
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
302
|
+
default: Ut
|
|
303
|
+
}, Symbol.toStringTag, { value: "Module" })), xt = {
|
|
305
304
|
name: "dropdown"
|
|
306
|
-
},
|
|
307
|
-
...
|
|
305
|
+
}, Jt = /* @__PURE__ */ D({
|
|
306
|
+
...xt,
|
|
308
307
|
props: {
|
|
309
308
|
setting: { default: () => ({
|
|
310
309
|
icon: "",
|
|
@@ -318,50 +317,50 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
318
317
|
marginRight: { default: "80px" },
|
|
319
318
|
store: {}
|
|
320
319
|
},
|
|
321
|
-
setup(
|
|
322
|
-
const e =
|
|
323
|
-
|
|
324
|
-
|
|
320
|
+
setup(s) {
|
|
321
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
|
|
322
|
+
F(e.setting.options.validateList).then((f) => {
|
|
323
|
+
g.value = f;
|
|
325
324
|
});
|
|
326
|
-
const
|
|
327
|
-
e.setting.options.customQuery.alias &&
|
|
328
|
-
i.value =
|
|
325
|
+
const r = d(""), p = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", n = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", a = e.setting.options.customQuery.PId || "children", i = d([]);
|
|
326
|
+
e.setting.options.customQuery.alias && X(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((f) => {
|
|
327
|
+
i.value = f;
|
|
329
328
|
});
|
|
330
|
-
const u =
|
|
331
|
-
e.setting.options.tip && (u.value =
|
|
332
|
-
const
|
|
333
|
-
return
|
|
334
|
-
t(e.setting.name,
|
|
335
|
-
}), (
|
|
329
|
+
const u = d();
|
|
330
|
+
e.setting.options.tip && (u.value = j(e.setting.options.tip));
|
|
331
|
+
const c = d();
|
|
332
|
+
return c.value = e.setting.options.multiple ? [] : "", e.setting.options.multiple && o(e.setting.name) ? c.value = o(e.setting.name).split(",") : c.value = o(e.setting.name) || c.value, c.value || t(e.setting.name, null), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(c, (f) => {
|
|
333
|
+
t(e.setting.name, f.toString());
|
|
334
|
+
}), (f, R) => (h(), V(l(M), {
|
|
336
335
|
col: e.span,
|
|
337
|
-
marginRight:
|
|
338
|
-
modelValue:
|
|
339
|
-
"onUpdate:modelValue":
|
|
340
|
-
keyword:
|
|
341
|
-
"onUpdate:keyword":
|
|
342
|
-
label:
|
|
336
|
+
marginRight: f.marginRight,
|
|
337
|
+
modelValue: c.value,
|
|
338
|
+
"onUpdate:modelValue": R[0] || (R[0] = (v) => c.value = v),
|
|
339
|
+
keyword: r.value,
|
|
340
|
+
"onUpdate:keyword": R[1] || (R[1] = (v) => r.value = v),
|
|
341
|
+
label: f.setting.desc,
|
|
343
342
|
type: "treeSelect",
|
|
344
|
-
"node-key":
|
|
345
|
-
placeholder:
|
|
346
|
-
mode:
|
|
343
|
+
"node-key": f.setting.options.customQuery.valueBind,
|
|
344
|
+
placeholder: f.setting.options.placeholder,
|
|
345
|
+
mode: f.setting.options.multiple ? "multiple" : "",
|
|
347
346
|
prop: e.setting.name,
|
|
348
|
-
filter:
|
|
347
|
+
filter: f.setting.options.filterable,
|
|
349
348
|
selectAttrs: { allowClear: !0 },
|
|
350
349
|
options: i.value,
|
|
351
350
|
isView: e.isView,
|
|
352
351
|
helpMessage: u.value,
|
|
353
|
-
props: { label: n
|
|
354
|
-
"check-strictly": !
|
|
355
|
-
required:
|
|
352
|
+
props: { label: l(n), value: l(p), children: l(a) },
|
|
353
|
+
"check-strictly": !f.setting.options.cascade,
|
|
354
|
+
required: g.value
|
|
356
355
|
}, null, 8, ["col", "marginRight", "modelValue", "keyword", "label", "node-key", "placeholder", "mode", "prop", "filter", "options", "isView", "helpMessage", "props", "check-strictly", "required"]));
|
|
357
356
|
}
|
|
358
|
-
}),
|
|
357
|
+
}), Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
359
358
|
__proto__: null,
|
|
360
|
-
default:
|
|
361
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
359
|
+
default: Jt
|
|
360
|
+
}, Symbol.toStringTag, { value: "Module" })), Wt = { class: "form-image" }, Yt = {
|
|
362
361
|
name: "imageViewer"
|
|
363
|
-
},
|
|
364
|
-
...
|
|
362
|
+
}, Zt = /* @__PURE__ */ D({
|
|
363
|
+
...Yt,
|
|
365
364
|
props: {
|
|
366
365
|
setting: { default: () => ({
|
|
367
366
|
icon: "",
|
|
@@ -375,47 +374,47 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
375
374
|
marginRight: { default: "80px" },
|
|
376
375
|
store: {}
|
|
377
376
|
},
|
|
378
|
-
setup(
|
|
379
|
-
const e =
|
|
380
|
-
|
|
381
|
-
|
|
377
|
+
setup(s) {
|
|
378
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
|
|
379
|
+
F(e.setting.options.validateList).then((i) => {
|
|
380
|
+
g.value = i;
|
|
382
381
|
});
|
|
383
|
-
const
|
|
384
|
-
e.isView && (
|
|
385
|
-
const
|
|
386
|
-
e.setting.options.tip && (
|
|
387
|
-
const
|
|
388
|
-
|
|
389
|
-
const
|
|
382
|
+
const r = d("normal");
|
|
383
|
+
e.isView && (r.value = "info");
|
|
384
|
+
const p = d();
|
|
385
|
+
e.setting.options.tip && (p.value = j(e.setting.options.tip));
|
|
386
|
+
const n = d();
|
|
387
|
+
n.value = e.setting.options.file.limit > 1 ? [] : "", e.setting.options.file.limit > 1 && o(e.setting.name) ? n.value = o(e.setting.name).split(",") : n.value = o(e.setting.name) || n.value, n.value || t(e.setting.name, null);
|
|
388
|
+
const a = (i) => {
|
|
390
389
|
setTimeout(() => {
|
|
391
|
-
t(e.setting.name,
|
|
390
|
+
t(e.setting.name, n.value.toString());
|
|
392
391
|
}, 100);
|
|
393
392
|
};
|
|
394
|
-
return e.setting.options.validateList.length &&
|
|
395
|
-
const u = i.map((
|
|
396
|
-
let
|
|
397
|
-
return
|
|
393
|
+
return e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(n.value, (i) => {
|
|
394
|
+
const u = i.map((c) => {
|
|
395
|
+
let f = "";
|
|
396
|
+
return c.indexOf("/oss/") != -1 ? f = c : f = `/oss/${c}`, f;
|
|
398
397
|
});
|
|
399
398
|
setTimeout(() => {
|
|
400
399
|
t(e.setting.name, u.join(","));
|
|
401
400
|
}, 100);
|
|
402
|
-
}), (i, u) => (
|
|
403
|
-
modelValue:
|
|
404
|
-
"onUpdate:modelValue": u[2] || (u[2] = (
|
|
401
|
+
}), (i, u) => (h(), V(l(M), {
|
|
402
|
+
modelValue: n.value,
|
|
403
|
+
"onUpdate:modelValue": u[2] || (u[2] = (c) => n.value = c),
|
|
405
404
|
"margin-bottom": "0",
|
|
406
405
|
prop: e.setting.name,
|
|
407
406
|
label: i.setting.desc,
|
|
408
407
|
type: "custom",
|
|
409
|
-
helpMessage:
|
|
410
|
-
required:
|
|
408
|
+
helpMessage: p.value,
|
|
409
|
+
required: g.value
|
|
411
410
|
}, {
|
|
412
|
-
default:
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
modelValue:
|
|
416
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
417
|
-
status:
|
|
418
|
-
"onUpdate:status": u[1] || (u[1] = (
|
|
411
|
+
default: S(() => [
|
|
412
|
+
Xe("div", Wt, [
|
|
413
|
+
$(l($e), {
|
|
414
|
+
modelValue: n.value,
|
|
415
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => n.value = c),
|
|
416
|
+
status: r.value,
|
|
417
|
+
"onUpdate:status": u[1] || (u[1] = (c) => r.value = c),
|
|
419
418
|
maxSize: "6",
|
|
420
419
|
"limit-num": i.setting.options.file.limit,
|
|
421
420
|
prop: e.setting.name,
|
|
@@ -427,26 +426,26 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
427
426
|
"show-image-name": "",
|
|
428
427
|
needDownloadBtn: i.setting.options.file.allowDownload == !0,
|
|
429
428
|
needPreview: i.setting.options.file.allowPreview == !0,
|
|
430
|
-
onImageUpload:
|
|
431
|
-
required:
|
|
429
|
+
onImageUpload: a,
|
|
430
|
+
required: g.value
|
|
432
431
|
}, null, 8, ["modelValue", "status", "limit-num", "prop", "needDownloadBtn", "needPreview", "required"])
|
|
433
432
|
])
|
|
434
433
|
]),
|
|
435
434
|
_: 1
|
|
436
435
|
}, 8, ["modelValue", "prop", "label", "helpMessage", "required"]));
|
|
437
436
|
}
|
|
438
|
-
}),
|
|
439
|
-
const t =
|
|
440
|
-
for (const [
|
|
441
|
-
t[
|
|
437
|
+
}), me = (s, e) => {
|
|
438
|
+
const t = s.__vccOpts || s;
|
|
439
|
+
for (const [o, m] of e)
|
|
440
|
+
t[o] = m;
|
|
442
441
|
return t;
|
|
443
|
-
},
|
|
442
|
+
}, Ht = /* @__PURE__ */ me(Zt, [["__scopeId", "data-v-e26b3898"]]), Fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
444
443
|
__proto__: null,
|
|
445
|
-
default:
|
|
446
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
444
|
+
default: Ht
|
|
445
|
+
}, Symbol.toStringTag, { value: "Module" })), Gt = {
|
|
447
446
|
name: "input"
|
|
448
|
-
},
|
|
449
|
-
...
|
|
447
|
+
}, Xt = /* @__PURE__ */ D({
|
|
448
|
+
...Gt,
|
|
450
449
|
props: {
|
|
451
450
|
setting: { default: () => ({
|
|
452
451
|
icon: "",
|
|
@@ -460,43 +459,43 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
460
459
|
marginRight: { default: "80px" },
|
|
461
460
|
store: {}
|
|
462
461
|
},
|
|
463
|
-
setup(
|
|
464
|
-
const e =
|
|
465
|
-
|
|
466
|
-
|
|
462
|
+
setup(s) {
|
|
463
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
|
|
464
|
+
F(e.setting.options.validateList).then((n) => {
|
|
465
|
+
g.value = n;
|
|
467
466
|
});
|
|
468
|
-
const
|
|
469
|
-
e.setting.options.tip && (
|
|
470
|
-
const
|
|
467
|
+
const r = d();
|
|
468
|
+
e.setting.options.tip && (r.value = j(e.setting.options.tip));
|
|
469
|
+
const p = d("");
|
|
471
470
|
return setTimeout(() => {
|
|
472
|
-
|
|
473
|
-
}, 50), e.setting.options.validateList.length &&
|
|
474
|
-
e.setting.options.dataType === "number" && !isNaN(
|
|
475
|
-
}), (
|
|
471
|
+
p.value = o(e.setting.name) || e.setting.options.formulasDiyJs || p.value, p.value || t(e.setting.name, null);
|
|
472
|
+
}, 50), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(p, (n) => {
|
|
473
|
+
e.setting.options.dataType === "number" && !isNaN(n) ? t(e.setting.name, Number(n)) : t(e.setting.name, n);
|
|
474
|
+
}), (n, a) => (h(), V(l(M), {
|
|
476
475
|
col: e.span,
|
|
477
|
-
marginRight:
|
|
476
|
+
marginRight: n.marginRight,
|
|
478
477
|
prop: e.setting.name,
|
|
479
|
-
modelValue:
|
|
480
|
-
"onUpdate:modelValue":
|
|
481
|
-
label:
|
|
478
|
+
modelValue: p.value,
|
|
479
|
+
"onUpdate:modelValue": a[1] || (a[1] = (i) => p.value = i),
|
|
480
|
+
label: n.setting.desc,
|
|
482
481
|
type: "custom",
|
|
483
|
-
helpMessage:
|
|
484
|
-
required:
|
|
482
|
+
helpMessage: r.value,
|
|
483
|
+
required: g.value
|
|
485
484
|
}, {
|
|
486
|
-
default:
|
|
487
|
-
|
|
488
|
-
modelValue:
|
|
489
|
-
"onUpdate:modelValue":
|
|
490
|
-
width:
|
|
491
|
-
disabled:
|
|
492
|
-
isView:
|
|
493
|
-
placeholder:
|
|
485
|
+
default: S(() => [
|
|
486
|
+
$(l(ct), {
|
|
487
|
+
modelValue: p.value,
|
|
488
|
+
"onUpdate:modelValue": a[0] || (a[0] = (i) => p.value = i),
|
|
489
|
+
width: n.setting.options.width,
|
|
490
|
+
disabled: n.setting.options.isInputEdit,
|
|
491
|
+
isView: n.setting.options.isReadonly || e.isView,
|
|
492
|
+
placeholder: n.setting.options.placeholder
|
|
494
493
|
}, {
|
|
495
|
-
prepend:
|
|
496
|
-
|
|
494
|
+
prepend: S(() => [
|
|
495
|
+
W(Y(n.setting.options.bindPreAndSufFixjson.preFix), 1)
|
|
497
496
|
]),
|
|
498
|
-
append:
|
|
499
|
-
|
|
497
|
+
append: S(() => [
|
|
498
|
+
W(Y(n.setting.options.bindPreAndSufFixjson.sufSix), 1)
|
|
500
499
|
]),
|
|
501
500
|
_: 1
|
|
502
501
|
}, 8, ["modelValue", "width", "disabled", "isView", "placeholder"])
|
|
@@ -504,13 +503,13 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
504
503
|
_: 1
|
|
505
504
|
}, 8, ["col", "marginRight", "prop", "modelValue", "label", "helpMessage", "required"]));
|
|
506
505
|
}
|
|
507
|
-
}),
|
|
506
|
+
}), qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
508
507
|
__proto__: null,
|
|
509
|
-
default:
|
|
510
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
508
|
+
default: Xt
|
|
509
|
+
}, Symbol.toStringTag, { value: "Module" })), es = {
|
|
511
510
|
name: "number"
|
|
512
|
-
},
|
|
513
|
-
...
|
|
511
|
+
}, ts = /* @__PURE__ */ D({
|
|
512
|
+
...es,
|
|
514
513
|
props: {
|
|
515
514
|
setting: { default: () => ({
|
|
516
515
|
icon: "",
|
|
@@ -524,43 +523,43 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
524
523
|
marginRight: { default: "80px" },
|
|
525
524
|
store: {}
|
|
526
525
|
},
|
|
527
|
-
setup(
|
|
528
|
-
const e =
|
|
529
|
-
|
|
530
|
-
|
|
526
|
+
setup(s) {
|
|
527
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
|
|
528
|
+
F(e.setting.options.validateList).then((n) => {
|
|
529
|
+
g.value = n;
|
|
531
530
|
});
|
|
532
|
-
const
|
|
533
|
-
e.setting.options.tip && (
|
|
534
|
-
const
|
|
531
|
+
const r = d();
|
|
532
|
+
e.setting.options.tip && (r.value = j(e.setting.options.tip));
|
|
533
|
+
const p = d(0);
|
|
535
534
|
return setTimeout(() => {
|
|
536
|
-
|
|
537
|
-
}, 50), e.setting.options.validateList.length &&
|
|
538
|
-
t(e.setting.name,
|
|
539
|
-
}), (
|
|
535
|
+
p.value = o(e.setting.name) || e.setting.options.formulasDiyJs || p.value, p.value || t(e.setting.name, null);
|
|
536
|
+
}, 50), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(p, (n) => {
|
|
537
|
+
t(e.setting.name, n);
|
|
538
|
+
}), (n, a) => (h(), V(l(M), {
|
|
540
539
|
col: e.span,
|
|
541
|
-
marginRight:
|
|
542
|
-
modelValue:
|
|
543
|
-
"onUpdate:modelValue":
|
|
540
|
+
marginRight: n.marginRight,
|
|
541
|
+
modelValue: p.value,
|
|
542
|
+
"onUpdate:modelValue": a[0] || (a[0] = (i) => p.value = i),
|
|
544
543
|
style: { width: "100%" },
|
|
545
|
-
label:
|
|
544
|
+
label: n.setting.desc,
|
|
546
545
|
type: "inputNumber",
|
|
547
546
|
prop: e.setting.name,
|
|
548
|
-
max:
|
|
549
|
-
min:
|
|
550
|
-
step:
|
|
547
|
+
max: n.setting.options.max,
|
|
548
|
+
min: n.setting.options.min,
|
|
549
|
+
step: n.setting.options.step,
|
|
551
550
|
isView: e.isView,
|
|
552
|
-
precision:
|
|
553
|
-
helpMessage:
|
|
554
|
-
required:
|
|
551
|
+
precision: n.setting.options.decimalDigits,
|
|
552
|
+
helpMessage: r.value,
|
|
553
|
+
required: g.value
|
|
555
554
|
}, null, 8, ["col", "marginRight", "modelValue", "label", "prop", "max", "min", "step", "isView", "precision", "helpMessage", "required"]));
|
|
556
555
|
}
|
|
557
|
-
}),
|
|
556
|
+
}), Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
558
557
|
__proto__: null,
|
|
559
|
-
default:
|
|
560
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
558
|
+
default: ts
|
|
559
|
+
}, Symbol.toStringTag, { value: "Module" })), ss = {
|
|
561
560
|
name: "radio"
|
|
562
|
-
},
|
|
563
|
-
...
|
|
561
|
+
}, os = /* @__PURE__ */ D({
|
|
562
|
+
...ss,
|
|
564
563
|
props: {
|
|
565
564
|
setting: { default: () => ({
|
|
566
565
|
icon: "",
|
|
@@ -574,47 +573,47 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
574
573
|
marginRight: { default: "80px" },
|
|
575
574
|
store: {}
|
|
576
575
|
},
|
|
577
|
-
setup(
|
|
578
|
-
const e =
|
|
579
|
-
|
|
580
|
-
|
|
576
|
+
setup(s) {
|
|
577
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
|
|
578
|
+
F(e.setting.options.validateList).then((u) => {
|
|
579
|
+
g.value = u;
|
|
581
580
|
});
|
|
582
|
-
const
|
|
583
|
-
e.setting.options.customQuery.alias ?
|
|
584
|
-
|
|
585
|
-
}) :
|
|
586
|
-
const
|
|
587
|
-
e.setting.options.tip && (
|
|
588
|
-
const i =
|
|
581
|
+
const r = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", p = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", n = d([]);
|
|
582
|
+
e.setting.options.customQuery.alias ? X(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((u) => {
|
|
583
|
+
n.value = u;
|
|
584
|
+
}) : n.value = e.setting.options.options;
|
|
585
|
+
const a = d();
|
|
586
|
+
e.setting.options.tip && (a.value = j(e.setting.options.tip));
|
|
587
|
+
const i = d(null);
|
|
589
588
|
return setTimeout(() => {
|
|
590
|
-
i.value =
|
|
591
|
-
}, 50), e.setting.options.validateList.length &&
|
|
589
|
+
i.value = o(e.setting.name) || e.setting.options.formulasDiyJs || i.value, i.value || t(e.setting.name, null);
|
|
590
|
+
}, 50), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(i, (u) => {
|
|
592
591
|
t(e.setting.name, u);
|
|
593
|
-
}), (u,
|
|
592
|
+
}), (u, c) => (h(), V(l(M), {
|
|
594
593
|
col: e.span,
|
|
595
594
|
marginRight: u.marginRight,
|
|
596
595
|
modelValue: i.value,
|
|
597
|
-
"onUpdate:modelValue":
|
|
596
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => i.value = f),
|
|
598
597
|
layout: u.setting.options.inline ? "vertical" : "default",
|
|
599
598
|
label: u.setting.desc,
|
|
600
599
|
type: "radio",
|
|
601
600
|
prop: e.setting.name,
|
|
602
|
-
options:
|
|
601
|
+
options: n.value,
|
|
603
602
|
isView: e.isView,
|
|
604
|
-
optionsValueKey:
|
|
605
|
-
optionsLabelKey:
|
|
606
|
-
helpMessage:
|
|
607
|
-
required:
|
|
603
|
+
optionsValueKey: l(r),
|
|
604
|
+
optionsLabelKey: l(p),
|
|
605
|
+
helpMessage: a.value,
|
|
606
|
+
required: g.value,
|
|
608
607
|
isSetTimeout: !0
|
|
609
608
|
}, null, 8, ["col", "marginRight", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"]));
|
|
610
609
|
}
|
|
611
|
-
}),
|
|
610
|
+
}), Pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
612
611
|
__proto__: null,
|
|
613
|
-
default:
|
|
614
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
612
|
+
default: os
|
|
613
|
+
}, Symbol.toStringTag, { value: "Module" })), ns = {
|
|
615
614
|
name: "select"
|
|
616
|
-
},
|
|
617
|
-
...
|
|
615
|
+
}, as = /* @__PURE__ */ D({
|
|
616
|
+
...ns,
|
|
618
617
|
props: {
|
|
619
618
|
setting: { default: () => ({
|
|
620
619
|
icon: "",
|
|
@@ -628,27 +627,27 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
628
627
|
marginRight: { default: "80px" },
|
|
629
628
|
store: {}
|
|
630
629
|
},
|
|
631
|
-
setup(
|
|
632
|
-
const e =
|
|
633
|
-
|
|
634
|
-
|
|
630
|
+
setup(s) {
|
|
631
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
|
|
632
|
+
F(e.setting.options.validateList).then((u) => {
|
|
633
|
+
g.value = u;
|
|
635
634
|
});
|
|
636
|
-
const
|
|
637
|
-
e.setting.options.customQuery.alias ?
|
|
638
|
-
|
|
639
|
-
}) :
|
|
640
|
-
const
|
|
641
|
-
e.setting.options.tip && (
|
|
642
|
-
const i =
|
|
635
|
+
const r = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", p = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", n = d([]);
|
|
636
|
+
e.setting.options.customQuery.alias ? X(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((u) => {
|
|
637
|
+
n.value = u;
|
|
638
|
+
}) : n.value = e.setting.options.options;
|
|
639
|
+
const a = d();
|
|
640
|
+
e.setting.options.tip && (a.value = j(e.setting.options.tip));
|
|
641
|
+
const i = d();
|
|
643
642
|
return i.value = e.setting.options.multiple ? [] : "", setTimeout(() => {
|
|
644
|
-
e.setting.options.multiple && (
|
|
645
|
-
}, 50), e.setting.options.validateList.length &&
|
|
643
|
+
e.setting.options.multiple && (o(e.setting.name) || e.setting.options.formulasDiyJs) ? (o(e.setting.name) && (i.value = o(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (i.value = e.setting.options.formulasDiyJs.split(","))) : i.value = o(e.setting.name) || e.setting.options.formulasDiyJs || i.value, i.value || t(e.setting.name, null);
|
|
644
|
+
}, 50), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(i, (u) => {
|
|
646
645
|
t(e.setting.name, u.toString());
|
|
647
|
-
}), (u,
|
|
646
|
+
}), (u, c) => (h(), V(l(M), {
|
|
648
647
|
col: e.span,
|
|
649
648
|
marginRight: u.marginRight,
|
|
650
649
|
modelValue: i.value,
|
|
651
|
-
"onUpdate:modelValue":
|
|
650
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => i.value = f),
|
|
652
651
|
label: u.setting.desc,
|
|
653
652
|
type: "select",
|
|
654
653
|
prop: e.setting.name,
|
|
@@ -657,60 +656,60 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
657
656
|
showSearch: u.setting.options.filterable,
|
|
658
657
|
allowClear: !0,
|
|
659
658
|
isView: e.isView,
|
|
660
|
-
options:
|
|
661
|
-
optionsValueKey:
|
|
662
|
-
optionsLabelKey:
|
|
663
|
-
helpMessage:
|
|
664
|
-
required:
|
|
659
|
+
options: n.value,
|
|
660
|
+
optionsValueKey: l(r),
|
|
661
|
+
optionsLabelKey: l(p),
|
|
662
|
+
helpMessage: a.value,
|
|
663
|
+
required: g.value
|
|
665
664
|
}, null, 8, ["col", "marginRight", "modelValue", "label", "prop", "placeholder", "mode", "showSearch", "isView", "options", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"]));
|
|
666
665
|
}
|
|
667
|
-
}),
|
|
666
|
+
}), Ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
668
667
|
__proto__: null,
|
|
669
|
-
default:
|
|
670
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
671
|
-
const e =
|
|
672
|
-
user:
|
|
673
|
-
org:
|
|
674
|
-
role:
|
|
675
|
-
job:
|
|
676
|
-
post:
|
|
677
|
-
},
|
|
668
|
+
default: as
|
|
669
|
+
}, Symbol.toStringTag, { value: "Module" })), is = (s) => {
|
|
670
|
+
const e = Re().id, t = d(!1), o = s.options.selector.type.alias.replace("eip-", "").replace("-selector", ""), m = d([]), g = d(""), r = {
|
|
671
|
+
user: E("用户选择器").value,
|
|
672
|
+
org: E("组织选择器").value,
|
|
673
|
+
role: E("角色选择器").value,
|
|
674
|
+
job: E("职务选择器").value,
|
|
675
|
+
post: E("岗位选择器").value
|
|
676
|
+
}, p = {
|
|
678
677
|
user: "id",
|
|
679
678
|
org: "id",
|
|
680
679
|
role: "id",
|
|
681
680
|
job: "positionId",
|
|
682
681
|
post: "stationId"
|
|
683
|
-
},
|
|
684
|
-
1:
|
|
685
|
-
2:
|
|
686
|
-
3:
|
|
687
|
-
},
|
|
688
|
-
0:
|
|
689
|
-
1:
|
|
682
|
+
}, n = {
|
|
683
|
+
1: E("正常").value,
|
|
684
|
+
2: E("锁定").value,
|
|
685
|
+
3: E("禁用").value
|
|
686
|
+
}, a = {
|
|
687
|
+
0: E("普通").value,
|
|
688
|
+
1: E("管理员").value
|
|
690
689
|
}, i = {
|
|
691
|
-
0:
|
|
692
|
-
1:
|
|
690
|
+
0: E("无效").value,
|
|
691
|
+
1: E("有效").value
|
|
693
692
|
}, u = {
|
|
694
|
-
user:
|
|
695
|
-
org:
|
|
696
|
-
role:
|
|
697
|
-
job:
|
|
698
|
-
post:
|
|
699
|
-
},
|
|
700
|
-
return
|
|
693
|
+
user: Lt,
|
|
694
|
+
org: ne,
|
|
695
|
+
role: Tt,
|
|
696
|
+
job: ne,
|
|
697
|
+
post: ne
|
|
698
|
+
}, c = r[o], f = d({});
|
|
699
|
+
return o === "org" ? f.value = {
|
|
701
700
|
left: !1,
|
|
702
701
|
content: {}
|
|
703
|
-
} :
|
|
702
|
+
} : f.value = {
|
|
704
703
|
left: {
|
|
705
|
-
api:
|
|
704
|
+
api: St,
|
|
706
705
|
params: {
|
|
707
706
|
projectId: e,
|
|
708
707
|
parentId: e
|
|
709
708
|
}
|
|
710
709
|
},
|
|
711
710
|
content: {}
|
|
712
|
-
},
|
|
713
|
-
api:
|
|
711
|
+
}, o === "user" && (f.value.content = {
|
|
712
|
+
api: Mt,
|
|
714
713
|
searchKey: "groupId",
|
|
715
714
|
params: {
|
|
716
715
|
status: 1
|
|
@@ -718,13 +717,13 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
718
717
|
selectListProps: {
|
|
719
718
|
data: []
|
|
720
719
|
}
|
|
721
|
-
}),
|
|
722
|
-
api:
|
|
720
|
+
}), o === "org" && (f.value.content = {
|
|
721
|
+
api: jt,
|
|
723
722
|
selectListProps: {
|
|
724
723
|
data: []
|
|
725
724
|
}
|
|
726
|
-
}),
|
|
727
|
-
api:
|
|
725
|
+
}), o === "role" && (f.value.content = {
|
|
726
|
+
api: Ot,
|
|
728
727
|
searchKey: "orgId",
|
|
729
728
|
params: {
|
|
730
729
|
status: 1
|
|
@@ -732,8 +731,8 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
732
731
|
selectListProps: {
|
|
733
732
|
data: []
|
|
734
733
|
}
|
|
735
|
-
}),
|
|
736
|
-
api:
|
|
734
|
+
}), o === "job" && (f.value.content = {
|
|
735
|
+
api: Ft,
|
|
737
736
|
searchKey: "groupId",
|
|
738
737
|
props: {
|
|
739
738
|
rowKey: "positionId"
|
|
@@ -741,8 +740,8 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
741
740
|
selectListProps: {
|
|
742
741
|
data: []
|
|
743
742
|
}
|
|
744
|
-
}),
|
|
745
|
-
api:
|
|
743
|
+
}), o === "post" && (f.value.content = {
|
|
744
|
+
api: Nt,
|
|
746
745
|
searchKey: "groupId",
|
|
747
746
|
props: {
|
|
748
747
|
rowKey: "stationId"
|
|
@@ -750,77 +749,77 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
750
749
|
selectListProps: {
|
|
751
750
|
data: []
|
|
752
751
|
}
|
|
753
|
-
}),
|
|
752
|
+
}), f.value.content.multiple = !s.options.selector.isSingle, {
|
|
754
753
|
dialogVisible: t,
|
|
755
|
-
title:
|
|
756
|
-
searchName:
|
|
757
|
-
selectorType:
|
|
758
|
-
selectOptions:
|
|
759
|
-
tableOptions:
|
|
760
|
-
userStatusMap:
|
|
761
|
-
roleTypeMap:
|
|
754
|
+
title: c,
|
|
755
|
+
searchName: g,
|
|
756
|
+
selectorType: o,
|
|
757
|
+
selectOptions: m,
|
|
758
|
+
tableOptions: f,
|
|
759
|
+
userStatusMap: n,
|
|
760
|
+
roleTypeMap: a,
|
|
762
761
|
roleStatusMap: i,
|
|
763
762
|
openDialog: () => {
|
|
764
|
-
|
|
765
|
-
let
|
|
766
|
-
|
|
763
|
+
g.value = "", t.value = !0;
|
|
764
|
+
let y = p[o];
|
|
765
|
+
f.value.content.selectListProps.data = m.value.map((b) => ({ name: b.label, [y]: b.value }));
|
|
767
766
|
},
|
|
768
|
-
confirm: (
|
|
769
|
-
let
|
|
770
|
-
|
|
767
|
+
confirm: (y) => {
|
|
768
|
+
let b = p[o];
|
|
769
|
+
m.value = y.map((w) => ({ label: w.name, value: w[b] }));
|
|
771
770
|
},
|
|
772
|
-
getDetail: async (
|
|
773
|
-
const
|
|
774
|
-
let
|
|
775
|
-
const q =
|
|
776
|
-
|
|
777
|
-
const [
|
|
778
|
-
|
|
771
|
+
getDetail: async (y) => {
|
|
772
|
+
const b = u[o];
|
|
773
|
+
let w = {};
|
|
774
|
+
const q = y.split(",");
|
|
775
|
+
o === "user" && (w = { userIds: q }), o === "role" ? w = { ids: q } : w = q;
|
|
776
|
+
const [A, Z] = await b().run(w);
|
|
777
|
+
A || (m.value = Z.map((z) => ({ label: z.name, value: z.id })));
|
|
779
778
|
}
|
|
780
779
|
};
|
|
781
|
-
},
|
|
782
|
-
const
|
|
780
|
+
}, ls = () => {
|
|
781
|
+
const s = d(""), e = d(""), t = d([]), o = d("");
|
|
783
782
|
return {
|
|
784
|
-
spacePath:
|
|
783
|
+
spacePath: s,
|
|
785
784
|
spaceName: e,
|
|
786
785
|
spaceTreeData: t,
|
|
787
|
-
searchSpace:
|
|
788
|
-
changeSpace: (
|
|
789
|
-
|
|
786
|
+
searchSpace: o,
|
|
787
|
+
changeSpace: (n, a) => {
|
|
788
|
+
s.value = a[0].path, e.value = a[0].pathName;
|
|
790
789
|
},
|
|
791
|
-
spaceLoad: async (
|
|
792
|
-
let
|
|
790
|
+
spaceLoad: async (n) => {
|
|
791
|
+
let a = {
|
|
793
792
|
pageSize: 1e4,
|
|
794
793
|
pageIndex: 1,
|
|
795
|
-
projectId:
|
|
794
|
+
projectId: Re().id,
|
|
796
795
|
//项目id
|
|
797
796
|
spaceId: ""
|
|
798
797
|
// orgId:getProjectInfo().id
|
|
799
798
|
};
|
|
800
|
-
|
|
801
|
-
let i =
|
|
802
|
-
const [u,
|
|
803
|
-
return u ? {} :
|
|
799
|
+
a.spaceId = n != null && n.id ? n.id : "";
|
|
800
|
+
let i = qt;
|
|
801
|
+
const [u, c] = await i(a).run();
|
|
802
|
+
return u ? {} : c;
|
|
804
803
|
},
|
|
805
|
-
filterSpaceTree: async (
|
|
806
|
-
if (!
|
|
807
|
-
let
|
|
804
|
+
filterSpaceTree: async (n) => {
|
|
805
|
+
if (!n) return [];
|
|
806
|
+
let a = Bt;
|
|
808
807
|
const i = {
|
|
809
|
-
name:
|
|
810
|
-
}, [u,
|
|
811
|
-
return u ? {} : (
|
|
812
|
-
|
|
813
|
-
}),
|
|
808
|
+
name: n
|
|
809
|
+
}, [u, c] = await a(i).run();
|
|
810
|
+
return u ? {} : (c.forEach((f) => {
|
|
811
|
+
f.path.startsWith("/0") && (f.path = f.path.slice(2) + `/${f.id}`), f._name = f.nodeName ? f.nodeName : f.name;
|
|
812
|
+
}), c);
|
|
814
813
|
},
|
|
815
|
-
getSpaceDetail: async (
|
|
816
|
-
const [
|
|
817
|
-
|
|
814
|
+
getSpaceDetail: async (n) => {
|
|
815
|
+
const [a, i] = await Pt().run({ spaceId: n });
|
|
816
|
+
a || (s.value = i.path);
|
|
818
817
|
}
|
|
819
818
|
};
|
|
820
|
-
},
|
|
819
|
+
}, rs = {
|
|
821
820
|
name: "selector"
|
|
822
|
-
},
|
|
823
|
-
...
|
|
821
|
+
}, us = /* @__PURE__ */ D({
|
|
822
|
+
...rs,
|
|
824
823
|
props: {
|
|
825
824
|
setting: { default: () => ({
|
|
826
825
|
icon: "",
|
|
@@ -834,149 +833,149 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
834
833
|
marginRight: { default: "80px" },
|
|
835
834
|
store: {}
|
|
836
835
|
},
|
|
837
|
-
setup(
|
|
838
|
-
const e =
|
|
839
|
-
dialogVisible:
|
|
840
|
-
title:
|
|
841
|
-
searchName:
|
|
842
|
-
tableOptions:
|
|
843
|
-
selectorType:
|
|
836
|
+
setup(s) {
|
|
837
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, {
|
|
838
|
+
dialogVisible: g,
|
|
839
|
+
title: r,
|
|
840
|
+
searchName: p,
|
|
841
|
+
tableOptions: n,
|
|
842
|
+
selectorType: a,
|
|
844
843
|
selectOptions: i,
|
|
845
844
|
userStatusMap: u,
|
|
846
|
-
roleTypeMap:
|
|
847
|
-
roleStatusMap:
|
|
848
|
-
openDialog:
|
|
849
|
-
confirm:
|
|
850
|
-
getDetail:
|
|
851
|
-
} =
|
|
852
|
-
|
|
853
|
-
|
|
845
|
+
roleTypeMap: c,
|
|
846
|
+
roleStatusMap: f,
|
|
847
|
+
openDialog: R,
|
|
848
|
+
confirm: v,
|
|
849
|
+
getDetail: _
|
|
850
|
+
} = is(e.setting), { spacePath: y, spaceName: b, searchSpace: w, changeSpace: q, spaceLoad: A, filterSpaceTree: Z, getSpaceDetail: z } = ls(), te = d(!1);
|
|
851
|
+
F(e.setting.options.validateList).then((B) => {
|
|
852
|
+
te.value = B;
|
|
854
853
|
});
|
|
855
|
-
const
|
|
856
|
-
return e.setting.options.tip && (
|
|
857
|
-
|
|
858
|
-
})) : (
|
|
854
|
+
const L = d(""), se = d();
|
|
855
|
+
return e.setting.options.tip && (se.value = j(e.setting.options.tip)), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), a !== "position" ? (L.value = o(e.setting.name) ? o(e.setting.name) : L.value, L.value && _(L.value), L.value.length || t(e.setting.name, null), O(i, (B) => {
|
|
856
|
+
L.value = B.map((P) => P.value).toString(), t(e.setting.name, L.value);
|
|
857
|
+
})) : (L.value = o(e.setting.name) ? o(e.setting.name) : L.value, L.value && z(L.value), L.value || t(e.setting.name, null), O(L, (B) => {
|
|
859
858
|
t(e.setting.name, B);
|
|
860
|
-
}),
|
|
859
|
+
}), O(b, (B) => {
|
|
861
860
|
t(e.setting.options.selector.type.positionName, B);
|
|
862
|
-
})), (B,
|
|
863
|
-
|
|
861
|
+
})), (B, P) => (h(), I(ee, null, [
|
|
862
|
+
l(a) != "position" ? (h(), V(l(M), {
|
|
864
863
|
key: 0,
|
|
865
864
|
col: e.span,
|
|
866
865
|
marginRight: B.marginRight,
|
|
867
|
-
modelValue:
|
|
868
|
-
"onUpdate:modelValue":
|
|
866
|
+
modelValue: L.value,
|
|
867
|
+
"onUpdate:modelValue": P[1] || (P[1] = (N) => L.value = N),
|
|
869
868
|
prop: e.setting.name,
|
|
870
869
|
label: B.setting.desc,
|
|
871
870
|
type: "inputDialogSelect",
|
|
872
|
-
options:
|
|
873
|
-
helpMessage:
|
|
871
|
+
options: l(i),
|
|
872
|
+
helpMessage: se.value,
|
|
874
873
|
isView: e.isView,
|
|
875
|
-
required:
|
|
876
|
-
onOpenDialog:
|
|
874
|
+
required: te.value,
|
|
875
|
+
onOpenDialog: l(R)
|
|
877
876
|
}, {
|
|
878
|
-
default:
|
|
879
|
-
|
|
880
|
-
modelValue:
|
|
881
|
-
"onUpdate:modelValue":
|
|
882
|
-
options: n
|
|
883
|
-
onConfirm:
|
|
884
|
-
title:
|
|
885
|
-
},
|
|
886
|
-
|
|
877
|
+
default: S(() => [
|
|
878
|
+
$(l(dt), {
|
|
879
|
+
modelValue: l(g),
|
|
880
|
+
"onUpdate:modelValue": P[0] || (P[0] = (N) => oe(g) ? g.value = N : null),
|
|
881
|
+
options: l(n),
|
|
882
|
+
onConfirm: l(v),
|
|
883
|
+
title: l(r)
|
|
884
|
+
}, et({ _: 2 }, [
|
|
885
|
+
l(a) === "user" ? {
|
|
887
886
|
name: "table-column",
|
|
888
|
-
fn:
|
|
889
|
-
|
|
887
|
+
fn: S(() => [
|
|
888
|
+
$(l(T), {
|
|
890
889
|
label: "姓名",
|
|
891
890
|
prop: "name"
|
|
892
891
|
}),
|
|
893
|
-
|
|
892
|
+
$(l(T), {
|
|
894
893
|
label: "账号",
|
|
895
894
|
prop: "userName"
|
|
896
895
|
}),
|
|
897
|
-
|
|
896
|
+
$(l(T), {
|
|
898
897
|
label: "手机号",
|
|
899
898
|
prop: "sensitivePhone"
|
|
900
899
|
}),
|
|
901
|
-
|
|
902
|
-
default:
|
|
903
|
-
|
|
900
|
+
$(l(T), { label: "状态" }, {
|
|
901
|
+
default: S(({ row: N }) => [
|
|
902
|
+
W(Y(l(u)[N.status]), 1)
|
|
904
903
|
]),
|
|
905
904
|
_: 1
|
|
906
905
|
})
|
|
907
906
|
]),
|
|
908
907
|
key: "0"
|
|
909
908
|
} : void 0,
|
|
910
|
-
|
|
909
|
+
l(a) === "org" ? {
|
|
911
910
|
name: "table-column",
|
|
912
|
-
fn:
|
|
913
|
-
|
|
911
|
+
fn: S(() => [
|
|
912
|
+
$(l(T), {
|
|
914
913
|
label: "组织名称",
|
|
915
914
|
prop: "name"
|
|
916
915
|
}),
|
|
917
|
-
|
|
916
|
+
$(l(T), {
|
|
918
917
|
label: "组织编码",
|
|
919
918
|
prop: "code"
|
|
920
919
|
}),
|
|
921
|
-
|
|
920
|
+
$(l(T), {
|
|
922
921
|
label: "组织类型",
|
|
923
922
|
prop: "typeName"
|
|
924
923
|
})
|
|
925
924
|
]),
|
|
926
925
|
key: "1"
|
|
927
926
|
} : void 0,
|
|
928
|
-
|
|
927
|
+
l(a) === "role" ? {
|
|
929
928
|
name: "table-column",
|
|
930
|
-
fn:
|
|
931
|
-
|
|
929
|
+
fn: S(() => [
|
|
930
|
+
$(l(T), {
|
|
932
931
|
label: "角色名称",
|
|
933
932
|
prop: "name"
|
|
934
933
|
}),
|
|
935
|
-
|
|
936
|
-
default:
|
|
937
|
-
|
|
934
|
+
$(l(T), { label: "角色类型" }, {
|
|
935
|
+
default: S(({ row: N }) => [
|
|
936
|
+
W(Y(l(c)[N.type]), 1)
|
|
938
937
|
]),
|
|
939
938
|
_: 1
|
|
940
939
|
}),
|
|
941
|
-
|
|
942
|
-
default:
|
|
943
|
-
|
|
940
|
+
$(l(T), { label: "角色状态" }, {
|
|
941
|
+
default: S(({ row: N }) => [
|
|
942
|
+
W(Y(l(f)[N.status]), 1)
|
|
944
943
|
]),
|
|
945
944
|
_: 1
|
|
946
945
|
})
|
|
947
946
|
]),
|
|
948
947
|
key: "2"
|
|
949
948
|
} : void 0,
|
|
950
|
-
|
|
949
|
+
l(a) === "job" ? {
|
|
951
950
|
name: "table-column",
|
|
952
|
-
fn:
|
|
953
|
-
|
|
951
|
+
fn: S(() => [
|
|
952
|
+
$(l(T), {
|
|
954
953
|
label: "职务名称",
|
|
955
954
|
prop: "name"
|
|
956
955
|
}),
|
|
957
|
-
|
|
956
|
+
$(l(T), {
|
|
958
957
|
label: "职务编码",
|
|
959
958
|
prop: "code"
|
|
960
959
|
}),
|
|
961
|
-
|
|
960
|
+
$(l(T), {
|
|
962
961
|
label: "所属组织路径",
|
|
963
962
|
prop: "groupName"
|
|
964
963
|
})
|
|
965
964
|
]),
|
|
966
965
|
key: "3"
|
|
967
966
|
} : void 0,
|
|
968
|
-
|
|
967
|
+
l(a) === "post" ? {
|
|
969
968
|
name: "table-column",
|
|
970
|
-
fn:
|
|
971
|
-
|
|
969
|
+
fn: S(() => [
|
|
970
|
+
$(l(T), {
|
|
972
971
|
label: "岗位名称",
|
|
973
972
|
prop: "name"
|
|
974
973
|
}),
|
|
975
|
-
|
|
974
|
+
$(l(T), {
|
|
976
975
|
label: "岗位编码",
|
|
977
976
|
prop: "code"
|
|
978
977
|
}),
|
|
979
|
-
|
|
978
|
+
$(l(T), {
|
|
980
979
|
label: "所属组织路径",
|
|
981
980
|
prop: "groupName"
|
|
982
981
|
})
|
|
@@ -986,8 +985,8 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
986
985
|
]), 1032, ["modelValue", "options", "onConfirm", "title"])
|
|
987
986
|
]),
|
|
988
987
|
_: 1
|
|
989
|
-
}, 8, ["col", "marginRight", "modelValue", "prop", "label", "options", "helpMessage", "isView", "required", "onOpenDialog"])) :
|
|
990
|
-
|
|
988
|
+
}, 8, ["col", "marginRight", "modelValue", "prop", "label", "options", "helpMessage", "isView", "required", "onOpenDialog"])) : J("", !0),
|
|
989
|
+
l(a) == "position" ? (h(), V(l(M), {
|
|
991
990
|
key: 1,
|
|
992
991
|
col: e.span,
|
|
993
992
|
marginRight: B.marginRight,
|
|
@@ -996,38 +995,38 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
996
995
|
type: "treeSelect",
|
|
997
996
|
"node-key": "id",
|
|
998
997
|
showFullPath: !0,
|
|
999
|
-
helpMessage:
|
|
1000
|
-
required:
|
|
1001
|
-
modelValue:
|
|
1002
|
-
"onUpdate:modelValue":
|
|
1003
|
-
keyword:
|
|
1004
|
-
"onUpdate:keyword":
|
|
1005
|
-
path:
|
|
1006
|
-
"onUpdate:path":
|
|
998
|
+
helpMessage: se.value,
|
|
999
|
+
required: te.value,
|
|
1000
|
+
modelValue: L.value,
|
|
1001
|
+
"onUpdate:modelValue": P[2] || (P[2] = (N) => L.value = N),
|
|
1002
|
+
keyword: l(w),
|
|
1003
|
+
"onUpdate:keyword": P[3] || (P[3] = (N) => oe(w) ? w.value = N : null),
|
|
1004
|
+
path: l(y),
|
|
1005
|
+
"onUpdate:path": P[4] || (P[4] = (N) => oe(y) ? y.value = N : null),
|
|
1007
1006
|
isView: e.isView,
|
|
1008
|
-
load:
|
|
1009
|
-
search:
|
|
1007
|
+
load: l(A),
|
|
1008
|
+
search: l(Z),
|
|
1010
1009
|
props: {
|
|
1011
1010
|
isLeaf: "leaf",
|
|
1012
1011
|
label: "name"
|
|
1013
1012
|
},
|
|
1014
|
-
onChange:
|
|
1015
|
-
}, null, 8, ["col", "marginRight", "label", "prop", "helpMessage", "required", "modelValue", "keyword", "path", "isView", "load", "search", "onChange"])) :
|
|
1013
|
+
onChange: l(q)
|
|
1014
|
+
}, null, 8, ["col", "marginRight", "label", "prop", "helpMessage", "required", "modelValue", "keyword", "path", "isView", "load", "search", "onChange"])) : J("", !0)
|
|
1016
1015
|
], 64));
|
|
1017
1016
|
}
|
|
1018
|
-
}),
|
|
1017
|
+
}), Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1019
1018
|
__proto__: null,
|
|
1020
|
-
default:
|
|
1021
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1019
|
+
default: us
|
|
1020
|
+
}, Symbol.toStringTag, { value: "Module" })), ps = {
|
|
1022
1021
|
key: 0,
|
|
1023
1022
|
class: "form-image"
|
|
1024
|
-
},
|
|
1023
|
+
}, gs = {
|
|
1025
1024
|
key: 1,
|
|
1026
1025
|
style: { "margin-bottom": "10px" }
|
|
1027
|
-
},
|
|
1026
|
+
}, cs = {
|
|
1028
1027
|
name: "soundRecording"
|
|
1029
|
-
},
|
|
1030
|
-
...
|
|
1028
|
+
}, ds = /* @__PURE__ */ D({
|
|
1029
|
+
...cs,
|
|
1031
1030
|
props: {
|
|
1032
1031
|
setting: { default: () => ({
|
|
1033
1032
|
icon: "",
|
|
@@ -1041,50 +1040,50 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
1041
1040
|
marginRight: { default: "80px" },
|
|
1042
1041
|
store: {}
|
|
1043
1042
|
},
|
|
1044
|
-
setup(
|
|
1045
|
-
const e =
|
|
1046
|
-
|
|
1047
|
-
|
|
1043
|
+
setup(s) {
|
|
1044
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, { baseURL: g } = mt(), r = d(!1);
|
|
1045
|
+
F(e.setting.options.validateList).then((i) => {
|
|
1046
|
+
r.value = i;
|
|
1048
1047
|
});
|
|
1049
|
-
const
|
|
1050
|
-
e.setting.options.tip && (
|
|
1051
|
-
const
|
|
1052
|
-
if (
|
|
1053
|
-
const i = JSON.parse(
|
|
1054
|
-
|
|
1048
|
+
const p = d("info"), n = d();
|
|
1049
|
+
e.setting.options.tip && (n.value = j(e.setting.options.tip));
|
|
1050
|
+
const a = d();
|
|
1051
|
+
if (o(e.setting.name)) {
|
|
1052
|
+
const i = JSON.parse(o(e.setting.name));
|
|
1053
|
+
a.value = g + i[0].url;
|
|
1055
1054
|
}
|
|
1056
|
-
return e.setting.options.validateList.length &&
|
|
1055
|
+
return e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), (i, u) => e.isView ? (h(), V(l(M), {
|
|
1057
1056
|
key: 0,
|
|
1058
|
-
modelValue:
|
|
1059
|
-
"onUpdate:modelValue": u[2] || (u[2] = (
|
|
1057
|
+
modelValue: a.value,
|
|
1058
|
+
"onUpdate:modelValue": u[2] || (u[2] = (c) => a.value = c),
|
|
1060
1059
|
"margin-bottom": "0",
|
|
1061
1060
|
prop: e.setting.name,
|
|
1062
1061
|
label: i.setting.desc,
|
|
1063
1062
|
type: "custom",
|
|
1064
|
-
helpMessage:
|
|
1065
|
-
required:
|
|
1063
|
+
helpMessage: n.value,
|
|
1064
|
+
required: r.value
|
|
1066
1065
|
}, {
|
|
1067
|
-
default:
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
modelValue:
|
|
1071
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1072
|
-
status:
|
|
1073
|
-
"onUpdate:status": u[1] || (u[1] = (
|
|
1074
|
-
required:
|
|
1066
|
+
default: S(() => [
|
|
1067
|
+
a.value ? (h(), I("div", ps, [
|
|
1068
|
+
$(l($e), {
|
|
1069
|
+
modelValue: a.value,
|
|
1070
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => a.value = c),
|
|
1071
|
+
status: p.value,
|
|
1072
|
+
"onUpdate:status": u[1] || (u[1] = (c) => p.value = c),
|
|
1073
|
+
required: r.value
|
|
1075
1074
|
}, null, 8, ["modelValue", "status", "required"])
|
|
1076
|
-
])) : (
|
|
1075
|
+
])) : (h(), I("div", gs, "-"))
|
|
1077
1076
|
]),
|
|
1078
1077
|
_: 1
|
|
1079
|
-
}, 8, ["modelValue", "prop", "label", "helpMessage", "required"])) :
|
|
1078
|
+
}, 8, ["modelValue", "prop", "label", "helpMessage", "required"])) : J("", !0);
|
|
1080
1079
|
}
|
|
1081
|
-
}),
|
|
1080
|
+
}), ms = /* @__PURE__ */ me(ds, [["__scopeId", "data-v-044dd90f"]]), Ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1082
1081
|
__proto__: null,
|
|
1083
|
-
default:
|
|
1084
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1082
|
+
default: ms
|
|
1083
|
+
}, Symbol.toStringTag, { value: "Module" })), fs = {
|
|
1085
1084
|
name: "switch"
|
|
1086
|
-
},
|
|
1087
|
-
...
|
|
1085
|
+
}, vs = /* @__PURE__ */ D({
|
|
1086
|
+
...fs,
|
|
1088
1087
|
props: {
|
|
1089
1088
|
setting: { default: () => ({
|
|
1090
1089
|
icon: "",
|
|
@@ -1098,42 +1097,42 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
1098
1097
|
marginRight: { default: "80px" },
|
|
1099
1098
|
store: {}
|
|
1100
1099
|
},
|
|
1101
|
-
setup(
|
|
1102
|
-
const e =
|
|
1103
|
-
|
|
1104
|
-
|
|
1100
|
+
setup(s) {
|
|
1101
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
|
|
1102
|
+
F(e.setting.options.validateList).then((n) => {
|
|
1103
|
+
g.value = n;
|
|
1105
1104
|
});
|
|
1106
|
-
const
|
|
1107
|
-
e.setting.options.tip && (
|
|
1108
|
-
const
|
|
1105
|
+
const r = d();
|
|
1106
|
+
e.setting.options.tip && (r.value = j(e.setting.options.tip));
|
|
1107
|
+
const p = d();
|
|
1109
1108
|
return setTimeout(() => {
|
|
1110
|
-
|
|
1111
|
-
}, 50), e.setting.options.validateList.length &&
|
|
1112
|
-
t(e.setting.name,
|
|
1113
|
-
}), (
|
|
1109
|
+
p.value = o(e.setting.name) || e.setting.options.formulasDiyJs || p.value, p.value || t(e.setting.name, null);
|
|
1110
|
+
}, 50), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(p, (n) => {
|
|
1111
|
+
t(e.setting.name, n);
|
|
1112
|
+
}), (n, a) => (h(), V(l(M), {
|
|
1114
1113
|
col: e.span,
|
|
1115
|
-
marginRight:
|
|
1116
|
-
modelValue:
|
|
1117
|
-
"onUpdate:modelValue":
|
|
1118
|
-
label:
|
|
1114
|
+
marginRight: n.marginRight,
|
|
1115
|
+
modelValue: p.value,
|
|
1116
|
+
"onUpdate:modelValue": a[0] || (a[0] = (i) => p.value = i),
|
|
1117
|
+
label: n.setting.desc,
|
|
1119
1118
|
type: "switch",
|
|
1120
1119
|
prop: e.setting.name,
|
|
1121
|
-
activeValue:
|
|
1122
|
-
inactiveValue:
|
|
1123
|
-
activeText:
|
|
1124
|
-
inactiveText:
|
|
1125
|
-
helpMessage:
|
|
1126
|
-
required:
|
|
1120
|
+
activeValue: n.setting.options.activeValue,
|
|
1121
|
+
inactiveValue: n.setting.options.inactiveValue,
|
|
1122
|
+
activeText: n.setting.options.activeText,
|
|
1123
|
+
inactiveText: n.setting.options.inactiveText,
|
|
1124
|
+
helpMessage: r.value,
|
|
1125
|
+
required: g.value,
|
|
1127
1126
|
isView: e.isView
|
|
1128
1127
|
}, null, 8, ["col", "marginRight", "modelValue", "label", "prop", "activeValue", "inactiveValue", "activeText", "inactiveText", "helpMessage", "required", "isView"]));
|
|
1129
1128
|
}
|
|
1130
|
-
}),
|
|
1129
|
+
}), ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1131
1130
|
__proto__: null,
|
|
1132
|
-
default:
|
|
1133
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1131
|
+
default: vs
|
|
1132
|
+
}, Symbol.toStringTag, { value: "Module" })), ys = {
|
|
1134
1133
|
name: "text"
|
|
1135
|
-
},
|
|
1136
|
-
...
|
|
1134
|
+
}, hs = /* @__PURE__ */ D({
|
|
1135
|
+
...ys,
|
|
1137
1136
|
props: {
|
|
1138
1137
|
setting: { default: () => ({
|
|
1139
1138
|
icon: "",
|
|
@@ -1147,38 +1146,38 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
1147
1146
|
marginRight: { default: "80px" },
|
|
1148
1147
|
store: {}
|
|
1149
1148
|
},
|
|
1150
|
-
setup(
|
|
1151
|
-
const e =
|
|
1152
|
-
e.setting.options.tip && (
|
|
1153
|
-
const
|
|
1154
|
-
return
|
|
1155
|
-
t(e.setting.name,
|
|
1156
|
-
}), (
|
|
1149
|
+
setup(s) {
|
|
1150
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d();
|
|
1151
|
+
e.setting.options.tip && (g.value = j(e.setting.options.tip));
|
|
1152
|
+
const r = d();
|
|
1153
|
+
return r.value = e.setting.options.textValue, r.value = o(e.setting.name) || r.value, r.value || t(e.setting.name, null), O(r, (p) => {
|
|
1154
|
+
t(e.setting.name, p);
|
|
1155
|
+
}), (p, n) => (h(), V(l(M), {
|
|
1157
1156
|
col: e.span,
|
|
1158
|
-
marginRight:
|
|
1159
|
-
modelValue:
|
|
1160
|
-
"onUpdate:modelValue":
|
|
1161
|
-
label:
|
|
1157
|
+
marginRight: p.marginRight,
|
|
1158
|
+
modelValue: r.value,
|
|
1159
|
+
"onUpdate:modelValue": n[1] || (n[1] = (a) => r.value = a),
|
|
1160
|
+
label: p.setting.desc,
|
|
1162
1161
|
type: "custom",
|
|
1163
|
-
helpMessage:
|
|
1162
|
+
helpMessage: g.value
|
|
1164
1163
|
}, {
|
|
1165
|
-
default:
|
|
1166
|
-
|
|
1164
|
+
default: S(() => [
|
|
1165
|
+
$(l(Se), {
|
|
1167
1166
|
type: "text",
|
|
1168
|
-
modelValue:
|
|
1169
|
-
"onUpdate:modelValue":
|
|
1167
|
+
modelValue: r.value,
|
|
1168
|
+
"onUpdate:modelValue": n[0] || (n[0] = (a) => r.value = a)
|
|
1170
1169
|
}, null, 8, ["modelValue"])
|
|
1171
1170
|
]),
|
|
1172
1171
|
_: 1
|
|
1173
1172
|
}, 8, ["col", "marginRight", "modelValue", "label", "helpMessage"]));
|
|
1174
1173
|
}
|
|
1175
|
-
}),
|
|
1174
|
+
}), Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1176
1175
|
__proto__: null,
|
|
1177
|
-
default:
|
|
1178
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1176
|
+
default: hs
|
|
1177
|
+
}, Symbol.toStringTag, { value: "Module" })), bs = {
|
|
1179
1178
|
name: "textarea"
|
|
1180
|
-
},
|
|
1181
|
-
...
|
|
1179
|
+
}, _s = /* @__PURE__ */ D({
|
|
1180
|
+
...bs,
|
|
1182
1181
|
props: {
|
|
1183
1182
|
setting: { default: () => ({
|
|
1184
1183
|
icon: "",
|
|
@@ -1192,29 +1191,29 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
1192
1191
|
marginRight: { default: "80px" },
|
|
1193
1192
|
store: {}
|
|
1194
1193
|
},
|
|
1195
|
-
setup(
|
|
1196
|
-
const e =
|
|
1197
|
-
|
|
1198
|
-
|
|
1194
|
+
setup(s) {
|
|
1195
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
|
|
1196
|
+
F(e.setting.options.validateList).then((i) => {
|
|
1197
|
+
g.value = i;
|
|
1199
1198
|
});
|
|
1200
|
-
const
|
|
1201
|
-
e.setting.options.tip && (
|
|
1202
|
-
const
|
|
1199
|
+
const r = d();
|
|
1200
|
+
e.setting.options.tip && (r.value = j(e.setting.options.tip));
|
|
1201
|
+
const p = d("");
|
|
1203
1202
|
setTimeout(() => {
|
|
1204
|
-
|
|
1203
|
+
p.value = o(e.setting.name) || e.setting.options.formulasDiyJs || p.value, p.value || t(e.setting.name, null);
|
|
1205
1204
|
}, 50);
|
|
1206
|
-
const
|
|
1207
|
-
return
|
|
1205
|
+
const n = d(), a = d();
|
|
1206
|
+
return n.value = e.setting.options.initialFrameWidth ? e.setting.options.initialFrameWidth + "px" : "", a.value = e.setting.options.initialFrameHeight ? e.setting.options.initialFrameHeight + "px" : "", e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(p, (i) => {
|
|
1208
1207
|
t(e.setting.name, i);
|
|
1209
|
-
}), (i, u) => (
|
|
1210
|
-
i.setting.options.isEditor ?
|
|
1208
|
+
}), (i, u) => (h(), I(ee, null, [
|
|
1209
|
+
i.setting.options.isEditor ? J("", !0) : (h(), V(l(M), {
|
|
1211
1210
|
key: 0,
|
|
1212
1211
|
col: e.span,
|
|
1213
1212
|
marginRight: i.marginRight,
|
|
1214
1213
|
label: i.setting.desc,
|
|
1215
1214
|
type: "textarea",
|
|
1216
|
-
modelValue:
|
|
1217
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1215
|
+
modelValue: p.value,
|
|
1216
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => p.value = c),
|
|
1218
1217
|
prop: e.setting.name,
|
|
1219
1218
|
placeholder: i.setting.options.placeholder,
|
|
1220
1219
|
disabled: i.setting.options.isInputEdit,
|
|
@@ -1224,42 +1223,42 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
1224
1223
|
maxRows: 3
|
|
1225
1224
|
},
|
|
1226
1225
|
"show-word-limit": "",
|
|
1227
|
-
helpMessage:
|
|
1228
|
-
required:
|
|
1226
|
+
helpMessage: r.value,
|
|
1227
|
+
required: g.value
|
|
1229
1228
|
}, null, 8, ["col", "marginRight", "label", "modelValue", "prop", "placeholder", "disabled", "isView", "helpMessage", "required"])),
|
|
1230
|
-
i.setting.options.isEditor ? (
|
|
1229
|
+
i.setting.options.isEditor ? (h(), V(l(M), {
|
|
1231
1230
|
key: 1,
|
|
1232
|
-
modelValue:
|
|
1233
|
-
"onUpdate:modelValue": u[2] || (u[2] = (
|
|
1231
|
+
modelValue: p.value,
|
|
1232
|
+
"onUpdate:modelValue": u[2] || (u[2] = (c) => p.value = c),
|
|
1234
1233
|
prop: e.setting.name,
|
|
1235
|
-
contentWidth:
|
|
1234
|
+
contentWidth: n.value,
|
|
1236
1235
|
label: i.setting.desc,
|
|
1237
1236
|
type: "custom",
|
|
1238
|
-
helpMessage:
|
|
1239
|
-
required:
|
|
1237
|
+
helpMessage: r.value,
|
|
1238
|
+
required: g.value,
|
|
1240
1239
|
readOnly: e.isView
|
|
1241
1240
|
}, {
|
|
1242
|
-
default:
|
|
1243
|
-
|
|
1241
|
+
default: S(() => [
|
|
1242
|
+
$(l(Se), {
|
|
1244
1243
|
ref: "editor",
|
|
1245
|
-
width:
|
|
1246
|
-
height:
|
|
1247
|
-
modelValue:
|
|
1248
|
-
"onUpdate:modelValue": u[1] || (u[1] = (
|
|
1244
|
+
width: n.value,
|
|
1245
|
+
height: a.value,
|
|
1246
|
+
modelValue: p.value,
|
|
1247
|
+
"onUpdate:modelValue": u[1] || (u[1] = (c) => p.value = c),
|
|
1249
1248
|
placeholder: i.setting.options.placeholder
|
|
1250
1249
|
}, null, 8, ["width", "height", "modelValue", "placeholder"])
|
|
1251
1250
|
]),
|
|
1252
1251
|
_: 1
|
|
1253
|
-
}, 8, ["modelValue", "prop", "contentWidth", "label", "helpMessage", "required", "readOnly"])) :
|
|
1252
|
+
}, 8, ["modelValue", "prop", "contentWidth", "label", "helpMessage", "required", "readOnly"])) : J("", !0)
|
|
1254
1253
|
], 64));
|
|
1255
1254
|
}
|
|
1256
|
-
}),
|
|
1255
|
+
}), Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1257
1256
|
__proto__: null,
|
|
1258
|
-
default:
|
|
1259
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1257
|
+
default: _s
|
|
1258
|
+
}, Symbol.toStringTag, { value: "Module" })), ws = {
|
|
1260
1259
|
name: "time"
|
|
1261
|
-
},
|
|
1262
|
-
...
|
|
1260
|
+
}, Vs = /* @__PURE__ */ D({
|
|
1261
|
+
...ws,
|
|
1263
1262
|
props: {
|
|
1264
1263
|
setting: { default: () => ({
|
|
1265
1264
|
icon: "",
|
|
@@ -1273,36 +1272,36 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
1273
1272
|
marginRight: { default: "80px" },
|
|
1274
1273
|
store: {}
|
|
1275
1274
|
},
|
|
1276
|
-
setup(
|
|
1277
|
-
const e =
|
|
1278
|
-
|
|
1279
|
-
|
|
1275
|
+
setup(s) {
|
|
1276
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
|
|
1277
|
+
F(e.setting.options.validateList).then((n) => {
|
|
1278
|
+
g.value = n;
|
|
1280
1279
|
});
|
|
1281
|
-
const
|
|
1282
|
-
e.setting.options.tip && (
|
|
1283
|
-
const
|
|
1280
|
+
const r = d();
|
|
1281
|
+
e.setting.options.tip && (r.value = j(e.setting.options.tip));
|
|
1282
|
+
const p = d();
|
|
1284
1283
|
return setTimeout(() => {
|
|
1285
|
-
const
|
|
1286
|
-
|
|
1287
|
-
}, 50), e.setting.options.validateList.length &&
|
|
1288
|
-
t(e.setting.name,
|
|
1289
|
-
}), (
|
|
1284
|
+
const n = ge().format("YYYY-MM-DD ");
|
|
1285
|
+
o(e.setting.name) && (p.value = o(e.setting.name)), e.setting.options.formulasDiyJs && (p.value = ge(n + e.setting.options.formulasDiyJs)), p.value || t(e.setting.name, null);
|
|
1286
|
+
}, 50), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(p, (n) => {
|
|
1287
|
+
t(e.setting.name, n);
|
|
1288
|
+
}), (n, a) => (h(), V(l(M), {
|
|
1290
1289
|
col: e.span,
|
|
1291
|
-
marginRight:
|
|
1292
|
-
modelValue:
|
|
1293
|
-
"onUpdate:modelValue":
|
|
1290
|
+
marginRight: n.marginRight,
|
|
1291
|
+
modelValue: p.value,
|
|
1292
|
+
"onUpdate:modelValue": a[0] || (a[0] = (i) => p.value = i),
|
|
1294
1293
|
prop: e.setting.name,
|
|
1295
|
-
label:
|
|
1294
|
+
label: n.setting.desc,
|
|
1296
1295
|
type: "time",
|
|
1297
|
-
helpMessage:
|
|
1296
|
+
helpMessage: r.value,
|
|
1298
1297
|
isView: e.isView,
|
|
1299
|
-
required:
|
|
1298
|
+
required: g.value
|
|
1300
1299
|
}, null, 8, ["col", "marginRight", "modelValue", "prop", "label", "helpMessage", "isView", "required"]));
|
|
1301
1300
|
}
|
|
1302
|
-
}),
|
|
1301
|
+
}), Qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1303
1302
|
__proto__: null,
|
|
1304
|
-
default:
|
|
1305
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1303
|
+
default: Vs
|
|
1304
|
+
}, Symbol.toStringTag, { value: "Module" })), Ds = D({
|
|
1306
1305
|
name: "accordion",
|
|
1307
1306
|
props: {
|
|
1308
1307
|
columns: {
|
|
@@ -1318,34 +1317,34 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
1318
1317
|
type: Object
|
|
1319
1318
|
}
|
|
1320
1319
|
},
|
|
1321
|
-
setup(
|
|
1322
|
-
const e =
|
|
1323
|
-
const
|
|
1324
|
-
(
|
|
1320
|
+
setup(s) {
|
|
1321
|
+
const e = d([]), t = s.columns.map((o) => {
|
|
1322
|
+
const m = o.list.map(
|
|
1323
|
+
(g) => C(ve[g.ctrlType], { setting: g, isView: s.isView, store: s.store })
|
|
1325
1324
|
);
|
|
1326
|
-
return
|
|
1327
|
-
|
|
1325
|
+
return o.isOpen == !0 && e.value.push(o.idKey), C(
|
|
1326
|
+
vt,
|
|
1328
1327
|
{
|
|
1329
|
-
header:
|
|
1330
|
-
key: `${
|
|
1328
|
+
header: o.span,
|
|
1329
|
+
key: `${o.idKey}`
|
|
1331
1330
|
},
|
|
1332
|
-
|
|
1331
|
+
C("div", m)
|
|
1333
1332
|
);
|
|
1334
1333
|
});
|
|
1335
|
-
return () =>
|
|
1334
|
+
return () => C(
|
|
1336
1335
|
"div",
|
|
1337
1336
|
{ class: "accordion-layout" },
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
{ activeKey: e.value, collapsible:
|
|
1337
|
+
C(
|
|
1338
|
+
ft,
|
|
1339
|
+
{ activeKey: e.value, collapsible: s.options.accordion ? "" : "disabled" },
|
|
1341
1340
|
t
|
|
1342
1341
|
)
|
|
1343
1342
|
);
|
|
1344
1343
|
}
|
|
1345
|
-
}),
|
|
1344
|
+
}), $s = {
|
|
1346
1345
|
name: "accordion"
|
|
1347
|
-
},
|
|
1348
|
-
|
|
1346
|
+
}, Rs = /* @__PURE__ */ D({
|
|
1347
|
+
...$s,
|
|
1349
1348
|
props: {
|
|
1350
1349
|
setting: { default: () => ({
|
|
1351
1350
|
name: "",
|
|
@@ -1372,8 +1371,8 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
1372
1371
|
isView: { type: Boolean },
|
|
1373
1372
|
store: {}
|
|
1374
1373
|
},
|
|
1375
|
-
setup(
|
|
1376
|
-
return (e, t) => (
|
|
1374
|
+
setup(s) {
|
|
1375
|
+
return (e, t) => (h(), V(l(Ds), {
|
|
1377
1376
|
columns: e.setting.columns,
|
|
1378
1377
|
options: e.setting.options,
|
|
1379
1378
|
isView: e.isView,
|
|
@@ -1381,10 +1380,220 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
1381
1380
|
style: { "margin-bottom": "10px" }
|
|
1382
1381
|
}, null, 8, ["columns", "options", "isView", "store"]));
|
|
1383
1382
|
}
|
|
1384
|
-
}),
|
|
1383
|
+
}), Ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1385
1384
|
__proto__: null,
|
|
1386
|
-
default:
|
|
1387
|
-
}, Symbol.toStringTag, { value: "Module" }))
|
|
1385
|
+
default: Rs
|
|
1386
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1387
|
+
/**
|
|
1388
|
+
* @vue/shared v3.4.35
|
|
1389
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1390
|
+
* @license MIT
|
|
1391
|
+
**/
|
|
1392
|
+
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
1393
|
+
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
1394
|
+
const Ms = Object.prototype.hasOwnProperty, he = (s, e) => Ms.call(s, e), fe = (s) => s !== null && typeof s == "object";
|
|
1395
|
+
function Ls(s) {
|
|
1396
|
+
for (var e = -1, t = s == null ? 0 : s.length, o = {}; ++e < t; ) {
|
|
1397
|
+
var m = s[e];
|
|
1398
|
+
o[m[0]] = m[1];
|
|
1399
|
+
}
|
|
1400
|
+
return o;
|
|
1401
|
+
}
|
|
1402
|
+
const be = (s) => typeof s == "number", ze = "__epPropKey", H = (s) => s, Os = (s) => fe(s) && !!s[ze], Ts = (s, e) => {
|
|
1403
|
+
if (!fe(s) || Os(s))
|
|
1404
|
+
return s;
|
|
1405
|
+
const { values: t, required: o, default: m, type: g, validator: r } = s, n = {
|
|
1406
|
+
type: g,
|
|
1407
|
+
required: !!o,
|
|
1408
|
+
validator: t || r ? (a) => {
|
|
1409
|
+
let i = !1, u = [];
|
|
1410
|
+
if (t && (u = Array.from(t), he(s, "default") && u.push(m), i || (i = u.includes(a))), r && (i || (i = r(a))), !i && u.length > 0) {
|
|
1411
|
+
const c = [...new Set(u)].map((f) => JSON.stringify(f)).join(", ");
|
|
1412
|
+
tt(`Invalid prop: validation failed${e ? ` for prop "${e}"` : ""}. Expected one of [${c}], got value ${JSON.stringify(a)}.`);
|
|
1413
|
+
}
|
|
1414
|
+
return i;
|
|
1415
|
+
} : void 0,
|
|
1416
|
+
[ze]: !0
|
|
1417
|
+
};
|
|
1418
|
+
return he(s, "default") && (n.default = m), n;
|
|
1419
|
+
}, Ue = (s) => Ls(Object.entries(s).map(([e, t]) => [
|
|
1420
|
+
e,
|
|
1421
|
+
Ts(t, e)
|
|
1422
|
+
])), xe = (s, e) => (s.install = (t) => {
|
|
1423
|
+
for (const o of [s, ...Object.values({})])
|
|
1424
|
+
t.component(o.name, o);
|
|
1425
|
+
}, s), G = (s) => s, ie = "el", js = "is-", U = (s, e, t, o, m) => {
|
|
1426
|
+
let g = `${s}-${e}`;
|
|
1427
|
+
return t && (g += `-${t}`), o && (g += `__${o}`), m && (g += `--${m}`), g;
|
|
1428
|
+
}, Ns = Symbol("namespaceContextKey"), Fs = (s) => {
|
|
1429
|
+
const e = st() ? _e(Ns, d(ie)) : d(ie);
|
|
1430
|
+
return x(() => l(e) || ie);
|
|
1431
|
+
}, Je = (s, e) => {
|
|
1432
|
+
const t = Fs();
|
|
1433
|
+
return {
|
|
1434
|
+
namespace: t,
|
|
1435
|
+
b: (v = "") => U(t.value, s, v, "", ""),
|
|
1436
|
+
e: (v) => v ? U(t.value, s, "", v, "") : "",
|
|
1437
|
+
m: (v) => v ? U(t.value, s, "", "", v) : "",
|
|
1438
|
+
be: (v, _) => v && _ ? U(t.value, s, v, _, "") : "",
|
|
1439
|
+
em: (v, _) => v && _ ? U(t.value, s, "", v, _) : "",
|
|
1440
|
+
bm: (v, _) => v && _ ? U(t.value, s, v, "", _) : "",
|
|
1441
|
+
bem: (v, _, y) => v && _ && y ? U(t.value, s, v, _, y) : "",
|
|
1442
|
+
is: (v, ..._) => {
|
|
1443
|
+
const y = _.length >= 1 ? _[0] : !0;
|
|
1444
|
+
return v && y ? `${js}${v}` : "";
|
|
1445
|
+
},
|
|
1446
|
+
cssVar: (v) => {
|
|
1447
|
+
const _ = {};
|
|
1448
|
+
for (const y in v)
|
|
1449
|
+
v[y] && (_[`--${t.value}-${y}`] = v[y]);
|
|
1450
|
+
return _;
|
|
1451
|
+
},
|
|
1452
|
+
cssVarName: (v) => `--${t.value}-${v}`,
|
|
1453
|
+
cssVarBlock: (v) => {
|
|
1454
|
+
const _ = {};
|
|
1455
|
+
for (const y in v)
|
|
1456
|
+
v[y] && (_[`--${t.value}-${s}-${y}`] = v[y]);
|
|
1457
|
+
return _;
|
|
1458
|
+
},
|
|
1459
|
+
cssVarBlockName: (v) => `--${t.value}-${s}-${v}`
|
|
1460
|
+
};
|
|
1461
|
+
};
|
|
1462
|
+
var We = (s, e) => {
|
|
1463
|
+
const t = s.__vccOpts || s;
|
|
1464
|
+
for (const [o, m] of e)
|
|
1465
|
+
t[o] = m;
|
|
1466
|
+
return t;
|
|
1467
|
+
};
|
|
1468
|
+
const Ye = Symbol("rowContextKey"), qs = [
|
|
1469
|
+
"start",
|
|
1470
|
+
"center",
|
|
1471
|
+
"end",
|
|
1472
|
+
"space-around",
|
|
1473
|
+
"space-between",
|
|
1474
|
+
"space-evenly"
|
|
1475
|
+
], Bs = ["top", "middle", "bottom"], Ps = Ue({
|
|
1476
|
+
tag: {
|
|
1477
|
+
type: String,
|
|
1478
|
+
default: "div"
|
|
1479
|
+
},
|
|
1480
|
+
gutter: {
|
|
1481
|
+
type: Number,
|
|
1482
|
+
default: 0
|
|
1483
|
+
},
|
|
1484
|
+
justify: {
|
|
1485
|
+
type: String,
|
|
1486
|
+
values: qs,
|
|
1487
|
+
default: "start"
|
|
1488
|
+
},
|
|
1489
|
+
align: {
|
|
1490
|
+
type: String,
|
|
1491
|
+
values: Bs
|
|
1492
|
+
}
|
|
1493
|
+
}), Es = D({
|
|
1494
|
+
name: "ElRow"
|
|
1495
|
+
}), Ks = /* @__PURE__ */ D({
|
|
1496
|
+
...Es,
|
|
1497
|
+
props: Ps,
|
|
1498
|
+
setup(s) {
|
|
1499
|
+
const e = s, t = Je("row"), o = x(() => e.gutter);
|
|
1500
|
+
ot(Ye, {
|
|
1501
|
+
gutter: o
|
|
1502
|
+
});
|
|
1503
|
+
const m = x(() => {
|
|
1504
|
+
const r = {};
|
|
1505
|
+
return e.gutter && (r.marginRight = r.marginLeft = `-${e.gutter / 2}px`), r;
|
|
1506
|
+
}), g = x(() => [
|
|
1507
|
+
t.b(),
|
|
1508
|
+
t.is(`justify-${e.justify}`, e.justify !== "start"),
|
|
1509
|
+
t.is(`align-${e.align}`, !!e.align)
|
|
1510
|
+
]);
|
|
1511
|
+
return (r, p) => (h(), V(ce(r.tag), {
|
|
1512
|
+
class: we(l(g)),
|
|
1513
|
+
style: Ve(l(m))
|
|
1514
|
+
}, {
|
|
1515
|
+
default: S(() => [
|
|
1516
|
+
De(r.$slots, "default")
|
|
1517
|
+
]),
|
|
1518
|
+
_: 3
|
|
1519
|
+
}, 8, ["class", "style"]));
|
|
1520
|
+
}
|
|
1521
|
+
});
|
|
1522
|
+
var Is = /* @__PURE__ */ We(Ks, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);
|
|
1523
|
+
const ks = xe(Is), As = Ue({
|
|
1524
|
+
tag: {
|
|
1525
|
+
type: String,
|
|
1526
|
+
default: "div"
|
|
1527
|
+
},
|
|
1528
|
+
span: {
|
|
1529
|
+
type: Number,
|
|
1530
|
+
default: 24
|
|
1531
|
+
},
|
|
1532
|
+
offset: {
|
|
1533
|
+
type: Number,
|
|
1534
|
+
default: 0
|
|
1535
|
+
},
|
|
1536
|
+
pull: {
|
|
1537
|
+
type: Number,
|
|
1538
|
+
default: 0
|
|
1539
|
+
},
|
|
1540
|
+
push: {
|
|
1541
|
+
type: Number,
|
|
1542
|
+
default: 0
|
|
1543
|
+
},
|
|
1544
|
+
xs: {
|
|
1545
|
+
type: H([Number, Object]),
|
|
1546
|
+
default: () => G({})
|
|
1547
|
+
},
|
|
1548
|
+
sm: {
|
|
1549
|
+
type: H([Number, Object]),
|
|
1550
|
+
default: () => G({})
|
|
1551
|
+
},
|
|
1552
|
+
md: {
|
|
1553
|
+
type: H([Number, Object]),
|
|
1554
|
+
default: () => G({})
|
|
1555
|
+
},
|
|
1556
|
+
lg: {
|
|
1557
|
+
type: H([Number, Object]),
|
|
1558
|
+
default: () => G({})
|
|
1559
|
+
},
|
|
1560
|
+
xl: {
|
|
1561
|
+
type: H([Number, Object]),
|
|
1562
|
+
default: () => G({})
|
|
1563
|
+
}
|
|
1564
|
+
}), Cs = D({
|
|
1565
|
+
name: "ElCol"
|
|
1566
|
+
}), Qs = /* @__PURE__ */ D({
|
|
1567
|
+
...Cs,
|
|
1568
|
+
props: As,
|
|
1569
|
+
setup(s) {
|
|
1570
|
+
const e = s, { gutter: t } = _e(Ye, { gutter: x(() => 0) }), o = Je("col"), m = x(() => {
|
|
1571
|
+
const r = {};
|
|
1572
|
+
return t.value && (r.paddingLeft = r.paddingRight = `${t.value / 2}px`), r;
|
|
1573
|
+
}), g = x(() => {
|
|
1574
|
+
const r = [];
|
|
1575
|
+
return ["span", "offset", "pull", "push"].forEach((a) => {
|
|
1576
|
+
const i = e[a];
|
|
1577
|
+
be(i) && (a === "span" ? r.push(o.b(`${e[a]}`)) : i > 0 && r.push(o.b(`${a}-${e[a]}`)));
|
|
1578
|
+
}), ["xs", "sm", "md", "lg", "xl"].forEach((a) => {
|
|
1579
|
+
be(e[a]) ? r.push(o.b(`${a}-${e[a]}`)) : fe(e[a]) && Object.entries(e[a]).forEach(([i, u]) => {
|
|
1580
|
+
r.push(i !== "span" ? o.b(`${a}-${i}-${u}`) : o.b(`${a}-${u}`));
|
|
1581
|
+
});
|
|
1582
|
+
}), t.value && r.push(o.is("guttered")), [o.b(), r];
|
|
1583
|
+
});
|
|
1584
|
+
return (r, p) => (h(), V(ce(r.tag), {
|
|
1585
|
+
class: we(l(g)),
|
|
1586
|
+
style: Ve(l(m))
|
|
1587
|
+
}, {
|
|
1588
|
+
default: S(() => [
|
|
1589
|
+
De(r.$slots, "default")
|
|
1590
|
+
]),
|
|
1591
|
+
_: 3
|
|
1592
|
+
}, 8, ["class", "style"]));
|
|
1593
|
+
}
|
|
1594
|
+
});
|
|
1595
|
+
var zs = /* @__PURE__ */ We(Qs, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);
|
|
1596
|
+
const Us = xe(zs), xs = D({
|
|
1388
1597
|
name: "grid",
|
|
1389
1598
|
props: {
|
|
1390
1599
|
columns: {
|
|
@@ -1399,24 +1608,24 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
1399
1608
|
type: Object
|
|
1400
1609
|
}
|
|
1401
1610
|
},
|
|
1402
|
-
setup(
|
|
1611
|
+
setup(s) {
|
|
1403
1612
|
let e = 0;
|
|
1404
|
-
const t =
|
|
1405
|
-
const
|
|
1406
|
-
e +=
|
|
1407
|
-
const
|
|
1408
|
-
return e == 24 && (e = 0),
|
|
1409
|
-
setting:
|
|
1410
|
-
isView:
|
|
1411
|
-
store:
|
|
1613
|
+
const t = s.columns.map((o) => {
|
|
1614
|
+
const m = o.list.map((g) => {
|
|
1615
|
+
e += o.span;
|
|
1616
|
+
const r = e == 24 ? "0px" : "80px";
|
|
1617
|
+
return e == 24 && (e = 0), C(Hs[g.ctrlType], {
|
|
1618
|
+
setting: g,
|
|
1619
|
+
isView: s.isView,
|
|
1620
|
+
store: s.store,
|
|
1412
1621
|
class: "grid-item-layout",
|
|
1413
|
-
marginRight:
|
|
1622
|
+
marginRight: r
|
|
1414
1623
|
});
|
|
1415
1624
|
});
|
|
1416
|
-
return
|
|
1625
|
+
return C(Us, { span: o.span }, m);
|
|
1417
1626
|
});
|
|
1418
|
-
return () =>
|
|
1419
|
-
|
|
1627
|
+
return () => C(
|
|
1628
|
+
ks,
|
|
1420
1629
|
{
|
|
1421
1630
|
class: "grid-layout"
|
|
1422
1631
|
// gutter: 0,
|
|
@@ -1424,10 +1633,10 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
1424
1633
|
t
|
|
1425
1634
|
);
|
|
1426
1635
|
}
|
|
1427
|
-
}),
|
|
1636
|
+
}), Js = {
|
|
1428
1637
|
name: "grid"
|
|
1429
|
-
},
|
|
1430
|
-
...
|
|
1638
|
+
}, Ws = /* @__PURE__ */ D({
|
|
1639
|
+
...Js,
|
|
1431
1640
|
props: {
|
|
1432
1641
|
setting: { default: () => ({
|
|
1433
1642
|
name: "",
|
|
@@ -1451,126 +1660,126 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
|
|
|
1451
1660
|
isView: { type: Boolean },
|
|
1452
1661
|
store: {}
|
|
1453
1662
|
},
|
|
1454
|
-
setup(
|
|
1455
|
-
const e =
|
|
1456
|
-
return (t,
|
|
1663
|
+
setup(s) {
|
|
1664
|
+
const e = s;
|
|
1665
|
+
return (t, o) => (h(), V(l(xs), {
|
|
1457
1666
|
columns: t.setting.columns,
|
|
1458
1667
|
isView: e.isView,
|
|
1459
1668
|
store: t.store
|
|
1460
1669
|
}, null, 8, ["columns", "isView", "store"]));
|
|
1461
1670
|
}
|
|
1462
|
-
}),
|
|
1671
|
+
}), Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1463
1672
|
__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
|
-
},
|
|
1673
|
+
default: Ws
|
|
1674
|
+
}, Symbol.toStringTag, { value: "Module" })), le = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": Le, "./base/autocomplete.vue": Oe, "./base/checkbox.vue": Te, "./base/date.vue": je, "./base/dropdown.vue": Ne, "./base/imageViewer.vue": Fe, "./base/input.vue": qe, "./base/number.vue": Be, "./base/radio.vue": Pe, "./base/select.vue": Ee, "./base/selector.vue": Ke, "./base/soundRecording.vue": Ie, "./base/switch.vue": ke, "./base/text.vue": Ae, "./base/textarea.vue": Ce, "./base/time.vue": Qe, "./layout/accordion/accordion.vue": Ss, "./layout/grid/gridLayout.vue": Ys }), re = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": Le, "./base/autocomplete.vue": Oe, "./base/checkbox.vue": Te, "./base/date.vue": je, "./base/dropdown.vue": Ne, "./base/imageViewer.vue": Fe, "./base/input.vue": qe, "./base/number.vue": Be, "./base/radio.vue": Pe, "./base/select.vue": Ee, "./base/selector.vue": Ke, "./base/soundRecording.vue": Ie, "./base/switch.vue": ke, "./base/text.vue": Ae, "./base/textarea.vue": Ce, "./base/time.vue": Qe }), ue = /* @__PURE__ */ Object.assign({}), pe = /* @__PURE__ */ Object.assign({}), ve = {}, Ze = {}, He = {}, Zs = {};
|
|
1675
|
+
Object.keys(re).map((s) => Ze[re[s].default.name] = re[s].default);
|
|
1676
|
+
Object.keys(ue).map((s) => He[ue[s].default.name] = ue[s].default);
|
|
1677
|
+
Object.keys(pe).map((s) => Zs[pe[s].default.name] = pe[s].default);
|
|
1678
|
+
Object.keys(le).map((s) => ve[le[s].default.name] = le[s].default);
|
|
1679
|
+
const Hs = { ...Ze, ...He }, Gs = (s, e, t, o) => {
|
|
1680
|
+
(!e || e.toString() === "") && parseInt(e) !== 0 ? t(new Error(`${o.name}`)) : t();
|
|
1681
|
+
}, Xs = (s, e, t, o) => {
|
|
1682
|
+
e !== "" && e.length > parseInt(o.value) ? t(new Error(`${o.name}不能超过${o.value}`)) : t();
|
|
1683
|
+
}, eo = (s, e, t, o) => {
|
|
1684
|
+
e !== "" && e.length < parseInt(o.value) ? t(new Error(`${o.name}不能少于${o.value}`)) : t();
|
|
1685
|
+
}, to = (s, e, t, o) => {
|
|
1477
1686
|
if (e !== "" && !/^1[3456789]\d{9}$/.test(e))
|
|
1478
1687
|
return t(new Error("手机号码格式不正确,请重新输入")), !1;
|
|
1479
1688
|
t();
|
|
1480
|
-
},
|
|
1689
|
+
}, so = (s, e, t) => {
|
|
1481
1690
|
if (e !== "" && !/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(e))
|
|
1482
1691
|
return t(new Error("电子邮箱格式不正确,请重新输入")), !1;
|
|
1483
1692
|
t();
|
|
1484
|
-
},
|
|
1693
|
+
}, oo = (s, e, t) => {
|
|
1485
1694
|
if (e !== "" && !/^-?\d+$/.test(e))
|
|
1486
1695
|
return t(new Error("请输入整数")), !1;
|
|
1487
1696
|
t();
|
|
1488
|
-
},
|
|
1489
|
-
if (e !== "" && e !=
|
|
1697
|
+
}, no = (s, e, t, o) => {
|
|
1698
|
+
if (e !== "" && e != o.value)
|
|
1490
1699
|
return t(new Error("请输入相同的值")), !1;
|
|
1491
1700
|
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
|
-
},
|
|
1701
|
+
}, ao = (s, e, t, o) => {
|
|
1702
|
+
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e < parseFloat(o.value) ? t(new Error(`${o.name}不能小于${o.value}`)) : t() : t(new Error("请输入数字"));
|
|
1703
|
+
}, io = (s, e, t, o) => {
|
|
1704
|
+
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e > parseFloat(o.value) ? t(new Error(`${o.name}不能大于${o.value}`)) : t() : t(new Error("请输入数字"));
|
|
1705
|
+
}, lo = (s, e, t, o) => {
|
|
1706
|
+
const m = /^[+-]?(\d*\.\d+([eE]?[+-]?\d+)?|\d+[eE][+-]?\d+)$/, g = /^-?\d+$/;
|
|
1707
|
+
e === "" ? t() : m.test(e) || g.test(e) ? e >= parseFloat(o.start) && e <= parseFloat(o.end) ? t() : t(new Error(`只能输入指定数字范围${o.start}-${o.end}`)) : t(new Error("请输入数字"));
|
|
1708
|
+
}, ro = (s, e, t, o) => {
|
|
1709
|
+
e === "" || parseFloat(e) === parseFloat(o.value) ? t() : t(new Error(`只能输入指定的值${o.value}`));
|
|
1710
|
+
}, uo = (s, e, t, o) => {
|
|
1711
|
+
e === "" ? t() : /^-?\d+$/.test(e) ? Math.abs(e).toString().length === parseInt(o.value) ? t() : t(new Error(`只能输入${o.value}位数数字`)) : t(new Error("请输入整数"));
|
|
1712
|
+
}, po = (s, e, t) => {
|
|
1504
1713
|
if (e !== "" && !/^[a-zA-Z]{1,}$/.test(e))
|
|
1505
1714
|
return t(new Error("只能输入字母")), !1;
|
|
1506
1715
|
t();
|
|
1507
|
-
},
|
|
1716
|
+
}, go = (s, e, t) => {
|
|
1508
1717
|
if (e !== "" && !/^[a-zA-Z ]{1,}$/.test(e))
|
|
1509
1718
|
return t(new Error("只能输入字母空格")), !1;
|
|
1510
1719
|
t();
|
|
1511
|
-
},
|
|
1720
|
+
}, co = (s, e, t) => {
|
|
1512
1721
|
if (e !== "" && !/^[0-9a-zA-Z_-]{1,}$/.test(e))
|
|
1513
1722
|
return t(new Error("只能输入字母数字横线下划线")), !1;
|
|
1514
1723
|
t();
|
|
1515
|
-
},
|
|
1724
|
+
}, mo = (s, e, t) => {
|
|
1516
1725
|
if (e !== "" && !/^[0-9a-zA-Z]{1,}$/.test(e))
|
|
1517
1726
|
return t(new Error("只能输入字母数字")), !1;
|
|
1518
1727
|
t();
|
|
1519
|
-
},
|
|
1520
|
-
const
|
|
1521
|
-
if (e !== "" && !
|
|
1728
|
+
}, fo = (s, e, t, o) => {
|
|
1729
|
+
const m = new RegExp(o.value);
|
|
1730
|
+
if (e !== "" && !m.test(e))
|
|
1522
1731
|
return t(new Error("校验失败")), !1;
|
|
1523
1732
|
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 { data:
|
|
1545
|
-
e.value.forEach((
|
|
1546
|
-
|
|
1733
|
+
}, vo = {
|
|
1734
|
+
required: Gs,
|
|
1735
|
+
min: eo,
|
|
1736
|
+
max: Xs,
|
|
1737
|
+
email: so,
|
|
1738
|
+
min_value: ao,
|
|
1739
|
+
max_value: io,
|
|
1740
|
+
confirmed: no,
|
|
1741
|
+
numeric: oo,
|
|
1742
|
+
between: lo,
|
|
1743
|
+
is: ro,
|
|
1744
|
+
digits: uo,
|
|
1745
|
+
mobile: to,
|
|
1746
|
+
alpha: po,
|
|
1747
|
+
alpha_spaces: go,
|
|
1748
|
+
alpha_dash: co,
|
|
1749
|
+
alpha_num: mo,
|
|
1750
|
+
regex: fo
|
|
1751
|
+
}, yo = () => {
|
|
1752
|
+
const s = d({}), e = d([]), t = d([]), o = d(""), m = d({});
|
|
1753
|
+
return { data: s, formData: e, formRule: m, setData: (c, f) => {
|
|
1754
|
+
e.value.forEach((R) => {
|
|
1755
|
+
R.formKey === o.value && (R.data[c] = f);
|
|
1547
1756
|
});
|
|
1548
|
-
}, setDetailData: (
|
|
1549
|
-
|
|
1550
|
-
|
|
1757
|
+
}, setDetailData: (c) => {
|
|
1758
|
+
s.value = c, e.value.forEach((f) => {
|
|
1759
|
+
f.formKey === o.value && (f.data = c);
|
|
1551
1760
|
});
|
|
1552
|
-
}, getData: (
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
}) : (t.value.push(
|
|
1556
|
-
formKey:
|
|
1557
|
-
boKey:
|
|
1558
|
-
reportId:
|
|
1761
|
+
}, getData: (c) => s.value[c], setFormData: (c, f, R) => {
|
|
1762
|
+
o.value = c, t.value.includes(c) ? e.value.forEach((v) => {
|
|
1763
|
+
v.formKey === c && (s.value = v.data);
|
|
1764
|
+
}) : (t.value.push(c), e.value.push({
|
|
1765
|
+
formKey: c,
|
|
1766
|
+
boKey: f,
|
|
1767
|
+
reportId: R || null,
|
|
1559
1768
|
data: {}
|
|
1560
1769
|
}));
|
|
1561
|
-
}, getFormData: () => e.value, setFormRule: (
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
validator: (
|
|
1770
|
+
}, getFormData: () => e.value, setFormRule: (c, f) => {
|
|
1771
|
+
m.value[c] = [], f.forEach((R) => {
|
|
1772
|
+
m.value[c].push({
|
|
1773
|
+
validator: (v, _, y) => vo[R.key](v, _, y, R)
|
|
1565
1774
|
});
|
|
1566
1775
|
});
|
|
1567
1776
|
}, clearData: () => {
|
|
1568
|
-
|
|
1777
|
+
s.value = {}, e.value = [], t.value = [], m.value = {};
|
|
1569
1778
|
} };
|
|
1570
|
-
},
|
|
1779
|
+
}, ho = { class: "custom-page" }, bo = {
|
|
1571
1780
|
key: 0,
|
|
1572
1781
|
class: "btn-box"
|
|
1573
|
-
},
|
|
1782
|
+
}, _o = { class: "content-box" }, wo = /* @__PURE__ */ D({
|
|
1574
1783
|
__name: "App",
|
|
1575
1784
|
props: {
|
|
1576
1785
|
formConfigurationId: {},
|
|
@@ -1579,60 +1788,60 @@ const cs = { ...Fe, ...je }, ms = (a, e, t, s) => {
|
|
|
1579
1788
|
data: {}
|
|
1580
1789
|
},
|
|
1581
1790
|
emits: ["handleClick"],
|
|
1582
|
-
setup(
|
|
1583
|
-
const
|
|
1584
|
-
c,
|
|
1791
|
+
setup(s, { expose: e, emit: t }) {
|
|
1792
|
+
const o = yo(), { formRule: m, clearData: g } = o, r = s, p = t, { formJsonList: n, isShowPage: a, btnList: i, formRef: u, getForm: c, getBtnSet: f, handleClick: R, validateFormData: v } = Et(
|
|
1585
1793
|
r,
|
|
1586
|
-
|
|
1794
|
+
p,
|
|
1795
|
+
o
|
|
1587
1796
|
);
|
|
1588
|
-
return
|
|
1589
|
-
|
|
1797
|
+
return nt(async () => {
|
|
1798
|
+
f();
|
|
1590
1799
|
}), e({
|
|
1591
|
-
validateFormData:
|
|
1592
|
-
clearData:
|
|
1593
|
-
}), (
|
|
1594
|
-
|
|
1595
|
-
(
|
|
1596
|
-
key:
|
|
1800
|
+
validateFormData: v,
|
|
1801
|
+
clearData: g
|
|
1802
|
+
}), (_, y) => (h(), I("div", ho, [
|
|
1803
|
+
l(i).length > 0 ? (h(), I("div", bo, [
|
|
1804
|
+
(h(!0), I(ee, null, ye(l(i), (b) => (h(), V(l(rt), {
|
|
1805
|
+
key: b.id,
|
|
1597
1806
|
style: { "margin-right": "20px" },
|
|
1598
1807
|
"btn-type": "primary",
|
|
1599
|
-
onClick: (
|
|
1808
|
+
onClick: (w) => l(R)(b)
|
|
1600
1809
|
}, {
|
|
1601
|
-
default:
|
|
1602
|
-
|
|
1810
|
+
default: S(() => [
|
|
1811
|
+
W(Y(b.name), 1)
|
|
1603
1812
|
]),
|
|
1604
1813
|
_: 2
|
|
1605
1814
|
}, 1032, ["onClick"]))), 128))
|
|
1606
|
-
])) :
|
|
1607
|
-
|
|
1608
|
-
|
|
1815
|
+
])) : J("", !0),
|
|
1816
|
+
at((h(), I("div", _o, [
|
|
1817
|
+
l(a) ? (h(), V(l(lt), {
|
|
1609
1818
|
key: 0,
|
|
1610
1819
|
ref_key: "formRef",
|
|
1611
1820
|
ref: u,
|
|
1612
1821
|
cols: 24,
|
|
1613
1822
|
"margin-right": "80px",
|
|
1614
|
-
rules:
|
|
1615
|
-
form:
|
|
1823
|
+
rules: l(m),
|
|
1824
|
+
form: l(o).data,
|
|
1616
1825
|
class: "form-preview-page",
|
|
1617
1826
|
alignType: "horizontal"
|
|
1618
1827
|
}, {
|
|
1619
|
-
default:
|
|
1620
|
-
(
|
|
1621
|
-
key:
|
|
1622
|
-
setting:
|
|
1623
|
-
isView:
|
|
1624
|
-
store:
|
|
1828
|
+
default: S(() => [
|
|
1829
|
+
(h(!0), I(ee, null, ye(l(n), (b) => (h(), V(ce(l(ve)[b.ctrlType]), {
|
|
1830
|
+
key: b.name,
|
|
1831
|
+
setting: b,
|
|
1832
|
+
isView: r.isView,
|
|
1833
|
+
store: l(o)
|
|
1625
1834
|
}, null, 8, ["setting", "isView", "store"]))), 128))
|
|
1626
1835
|
]),
|
|
1627
1836
|
_: 1
|
|
1628
|
-
}, 8, ["rules", "form"])) :
|
|
1837
|
+
}, 8, ["rules", "form"])) : J("", !0)
|
|
1629
1838
|
])), [
|
|
1630
|
-
[
|
|
1839
|
+
[l(ut)]
|
|
1631
1840
|
])
|
|
1632
1841
|
]));
|
|
1633
1842
|
}
|
|
1634
|
-
}),
|
|
1843
|
+
}), Vo = /* @__PURE__ */ me(wo, [["__scopeId", "data-v-993c1451"]]), Uo = Ge(Vo);
|
|
1635
1844
|
export {
|
|
1636
|
-
|
|
1637
|
-
|
|
1845
|
+
Uo as DasProcessForm,
|
|
1846
|
+
Uo as default
|
|
1638
1847
|
};
|