act-plus 1.1.24 → 1.1.26
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/act-plus.js +4 -4
- package/act-plus.umd.cjs +76 -94
- package/lib/configBtns-bba9ef3d.js +152 -0
- package/lib/{configFileds-a045430e.js → configFileds-886452aa.js} +12 -11
- package/lib/{configTable-0285d3f8.js → configTable-ce9b4287.js} +4 -3
- package/lib/{dialogAddField-f474439d.js → dialogAddField-373b55ab.js} +5 -4
- package/lib/{dialogConfigBtn-c97ccee8.js → dialogConfigBtn-5675ac9d.js} +56 -55
- package/lib/{dialogSiteComponentsParams-e2c5b8dd.js → dialogSiteComponentsParams-5fde7ab5.js} +1 -1
- package/lib/index-2ebc799e.js +61601 -0
- package/lib/{index-f58e1535.js → index-3aa3f525.js} +4 -3
- package/lib/{index-3e20553c.js → index-ac5b92d9.js} +4 -3
- package/lib/{index-85deefc8.js → index-e6d550f2.js} +125 -148
- package/lib/{index-36c9cd81.js → index-ebf653d3.js} +77 -69
- package/lib/{index-7de949f6.js → index-f6b1730a.js} +9 -8
- package/package.json +2 -6
- package/style.css +1 -1
- package/lib/configBtns-15591aad.js +0 -151
- package/lib/index-d0c3be37.js +0 -68438
- package/lib/index-e2f2023d.js +0 -35
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ref as R, inject as l, watch as j, resolveComponent as C, openBlock as s, createElementBlock as f, Fragment as y, renderList as q, unref as c, createBlock as i, resolveDynamicComponent as O, withCtx as _, createVNode as E, createCommentVNode as u, createTextVNode as B, toDisplayString as k } from "vue";
|
|
2
|
-
import { _ as H, u as M } from "./index-
|
|
2
|
+
import { _ as H, u as M } from "./index-2ebc799e.js";
|
|
3
3
|
import "vue-router";
|
|
4
|
+
import "js-base64";
|
|
4
5
|
import "element-plus";
|
|
5
6
|
import "monaco-editor";
|
|
6
7
|
const z = { class: "header-operate-container" }, G = {
|
|
@@ -91,7 +92,7 @@ const z = { class: "header-operate-container" }, G = {
|
|
|
91
92
|
]);
|
|
92
93
|
};
|
|
93
94
|
}
|
|
94
|
-
},
|
|
95
|
+
}, Y = /* @__PURE__ */ H(G, [["__scopeId", "data-v-00d47037"]]);
|
|
95
96
|
export {
|
|
96
|
-
|
|
97
|
+
Y as default
|
|
97
98
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ref as h, watch as I, resolveComponent as _, openBlock as i, createElementBlock as d, createVNode as u, unref as p, isRef as b, withCtx as m, createElementVNode as g, createBlock as w, createCommentVNode as C, createTextVNode as N, Fragment as B, renderList as E, normalizeClass as S } from "vue";
|
|
2
|
-
import { _ as z } from "./index-
|
|
2
|
+
import { _ as z } from "./index-2ebc799e.js";
|
|
3
3
|
import "vue-router";
|
|
4
|
+
import "js-base64";
|
|
4
5
|
import "element-plus";
|
|
5
6
|
import "monaco-editor";
|
|
6
7
|
const A = { class: "select-icon-container" }, F = { class: "icon-list" }, L = ["onClick"], P = {
|
|
@@ -85,7 +86,7 @@ const A = { class: "select-icon-container" }, F = { class: "icon-list" }, L = ["
|
|
|
85
86
|
]);
|
|
86
87
|
};
|
|
87
88
|
}
|
|
88
|
-
},
|
|
89
|
+
}, J = /* @__PURE__ */ z(R, [["__scopeId", "data-v-3437a309"]]);
|
|
89
90
|
export {
|
|
90
|
-
|
|
91
|
+
J as default
|
|
91
92
|
};
|
|
@@ -1,36 +1,10 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { defineAsyncComponent as S, inject as D, reactive as pe, ref as L, watch as me, resolveComponent as m, resolveDirective as ye, openBlock as r, createBlock as c, withCtx as _, createElementVNode as H, createVNode as $, unref as l, createTextVNode as R, toDisplayString as T, withDirectives as be, createElementBlock as K, Fragment as x, renderList as z, mergeProps as b, createCommentVNode as W, resolveDynamicComponent as _e, isRef as he, toRaw as Ve } from "vue";
|
|
2
|
+
import { _ as ge, u as Fe, P as Ce, a as De } from "./index-2ebc799e.js";
|
|
3
|
+
import { ElNotification as Te } from "element-plus";
|
|
4
4
|
import "vue-router";
|
|
5
|
+
import "js-base64";
|
|
5
6
|
import "monaco-editor";
|
|
6
|
-
const
|
|
7
|
-
baseURL: "",
|
|
8
|
-
// ""
|
|
9
|
-
timeout: 15e3
|
|
10
|
-
});
|
|
11
|
-
M.interceptors.request.use(
|
|
12
|
-
(r) => {
|
|
13
|
-
let b = sessionStorage.getItem("accessToken");
|
|
14
|
-
return b && (r.headers.Authorization = "Bearer " + b), r.headers["Content-Type"] != "application/x-www-form-urlencoded" && (r.data = { ...r.data }, Reflect.has(r.data, "dynamicFilters") && (r.data.dynamicFilters = ge(JSON.stringify(r.data.dynamicFilters)))), r;
|
|
15
|
-
},
|
|
16
|
-
(r) => Promise.reject(r)
|
|
17
|
-
);
|
|
18
|
-
M.interceptors.response.use(
|
|
19
|
-
(r) => {
|
|
20
|
-
const b = r.data;
|
|
21
|
-
if (b.code == 200)
|
|
22
|
-
return b;
|
|
23
|
-
if (b.code == 401)
|
|
24
|
-
sessionStorage.clear(), Ve.replace("/"), Fe(), G.error({ title: "错误", message: "登陆超时,请重新登录" });
|
|
25
|
-
else
|
|
26
|
-
return G.error({ title: "错误", message: b.msg }), Promise.reject(b.msg);
|
|
27
|
-
},
|
|
28
|
-
(r) => {
|
|
29
|
-
if (r.response.status != -1)
|
|
30
|
-
return Promise.reject(r);
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
|
|
7
|
+
const Ke = { class: "no-config-field" }, we = { class: "dialog-footer" }, Ne = {
|
|
34
8
|
__name: "index",
|
|
35
9
|
props: {
|
|
36
10
|
visible: { type: Boolean, default: !1 },
|
|
@@ -38,272 +12,275 @@ const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
|
|
|
38
12
|
data: { type: Object, default: () => ({}) }
|
|
39
13
|
},
|
|
40
14
|
emits: ["update:visible", "refresh"],
|
|
41
|
-
setup(
|
|
42
|
-
const
|
|
43
|
-
let
|
|
15
|
+
setup(C, { emit: G }) {
|
|
16
|
+
const J = S(() => import("./index-2ebc799e.js").then((o) => o.f)), Q = S(() => import("./index-2ebc799e.js").then((o) => o.e)), X = S(() => import("./index-2ebc799e.js").then((o) => o.d)), { t: i } = Fe(), M = D("request"), Z = D("loadComponents"), A = D("formatDataType"), E = D("globalProps"), O = G, u = C;
|
|
17
|
+
let g = pe((() => ({
|
|
44
18
|
btnLoading: !1
|
|
45
|
-
}))()),
|
|
46
|
-
const
|
|
19
|
+
}))()), w = L([]), a = L({}), N = L(null), I = {};
|
|
20
|
+
const y = (o) => new Function("", o.fieldUiProps)() || {}, ee = (o) => o.formColumnCol == null || o.customFiledsComponentes[o.customFiledsComponentes.customComponentName] ? 24 : o.formColumnCol ? o.formColumnCol : 24 / o.formRow, le = (o) => {
|
|
47
21
|
if (["input", "textarea"].includes(o.fieldType))
|
|
48
22
|
return "blur";
|
|
49
23
|
if (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(o.fieldType))
|
|
50
24
|
return "change";
|
|
51
|
-
},
|
|
25
|
+
}, oe = (o) => {
|
|
52
26
|
if (!["input", "textarea"].includes(o) && ["multipleSelect", "dateRange"].includes(o))
|
|
53
27
|
return [];
|
|
54
|
-
},
|
|
28
|
+
}, ae = (o, f) => {
|
|
55
29
|
if (["string"].includes(f))
|
|
56
30
|
return o.join(";");
|
|
57
31
|
if (["number"].includes(f))
|
|
58
32
|
return Number(o);
|
|
59
33
|
if (["array"].includes(f))
|
|
60
34
|
return o;
|
|
61
|
-
},
|
|
35
|
+
}, te = (o) => {
|
|
62
36
|
if (["multipleSelect"].includes(o.fieldType))
|
|
63
37
|
return u.data.rowData[o.fieldKey] ? u.data.rowData[o.fieldKey].split(";") : [];
|
|
64
38
|
if (["dateRange"].includes(o.fieldType)) {
|
|
65
39
|
const f = o.fieldKey.split("&");
|
|
66
|
-
return u.data.rowData[o.fieldKey] = f.map((
|
|
40
|
+
return u.data.rowData[o.fieldKey] = f.map((n) => u.data.rowData[n]), u.data.rowData[o.fieldKey];
|
|
67
41
|
}
|
|
68
42
|
return u.data.rowData[o.fieldKey];
|
|
69
|
-
},
|
|
43
|
+
}, de = (o) => M({ url: u.data.dataItem.requestUrl, method: "post", data: o });
|
|
70
44
|
me(
|
|
71
45
|
() => u.visible,
|
|
72
46
|
async (o, f) => {
|
|
73
|
-
o && (u.data.formList.sort((
|
|
74
|
-
|
|
75
|
-
const { isFiledCustom:
|
|
76
|
-
if (
|
|
77
|
-
const
|
|
78
|
-
|
|
47
|
+
o && (u.data.formList.sort((n, h) => n.sort - h.sort).forEach(async (n) => {
|
|
48
|
+
I[n.fieldKey] = { submitFieldType: n.fieldSubmitType, isFormSetValue: n.isFormSetValue }, a.value[n.fieldKey] = Object.keys(u.data.rowData).length && n.isFormSetValue ? te(n) : oe(n.fieldType);
|
|
49
|
+
const { isFiledCustom: h, customComponentName: p, customComponentUrl: F } = n.customFiledsComponentes;
|
|
50
|
+
if (h && !n.customFiledsComponentes[p]) {
|
|
51
|
+
const V = await Z(F, p);
|
|
52
|
+
n.customFiledsComponentes[p] = V;
|
|
79
53
|
}
|
|
80
|
-
}), console.log(u.data.formList),
|
|
54
|
+
}), console.log(u.data.formList), w.value = u.data.formList || []);
|
|
81
55
|
}
|
|
82
56
|
);
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
},
|
|
86
|
-
|
|
57
|
+
const re = (o) => {
|
|
58
|
+
U(), o();
|
|
59
|
+
}, U = () => {
|
|
60
|
+
w.value = [], N.value.resetFields(), O("update:visible", !1);
|
|
87
61
|
}, ne = (o) => {
|
|
88
62
|
o && o.validate((f) => {
|
|
89
63
|
if (f) {
|
|
90
|
-
|
|
91
|
-
const { dataItem:
|
|
92
|
-
let
|
|
93
|
-
Object.keys(
|
|
94
|
-
d.includes("&") ?
|
|
95
|
-
|
|
96
|
-
}) : Array.isArray(
|
|
64
|
+
g.btnLoading = !0;
|
|
65
|
+
const { dataItem: n, rowData: h } = u.data;
|
|
66
|
+
let p = { ...Ve(a.value) };
|
|
67
|
+
Object.keys(p).forEach((d) => {
|
|
68
|
+
d.includes("&") ? p[d].split("&").forEach((k, v) => {
|
|
69
|
+
p[k] = p[d][v];
|
|
70
|
+
}) : Array.isArray(p[d]) && (p[d] = ae(p[d], "string"));
|
|
97
71
|
});
|
|
98
|
-
const
|
|
99
|
-
|
|
100
|
-
...
|
|
101
|
-
...
|
|
102
|
-
...
|
|
72
|
+
const F = n.submitFields.filter((d) => d.matchType == "default").reduce((d, s) => (s.submitFieldType === "string" && (d[s.submitFieldName] = s.matchFieldName.toString()), d), {}), V = n.submitFields.filter((d) => d.matchType == "match").reduce((d, s) => (Reflect.has(s, "submitFieldMatchOrigin") && s.submitFieldMatchOrigin != "rowData" ? Reflect.has(E.matchData, s.submitFieldMatchOrigin) && (d[s.submitFieldName] = A(s.submitFieldType, E.matchData[s.submitFieldMatchOrigin][s.matchFieldName])) : d[s.submitFieldName] = A(s.submitFieldType, h[s.matchFieldName]), d), {});
|
|
73
|
+
de({
|
|
74
|
+
...p,
|
|
75
|
+
...F,
|
|
76
|
+
...V
|
|
103
77
|
}).then((d) => {
|
|
104
78
|
try {
|
|
105
|
-
|
|
106
|
-
} catch (
|
|
107
|
-
console.error(
|
|
79
|
+
Te({ title: i("act.tip"), message: i("act.saveSuccessfully"), type: "success", duration: 2500 }), U(), O("refresh");
|
|
80
|
+
} catch (s) {
|
|
81
|
+
console.error(s);
|
|
108
82
|
}
|
|
109
|
-
|
|
83
|
+
g.btnLoading = !1;
|
|
110
84
|
}).catch((d) => {
|
|
111
|
-
console.error(d),
|
|
85
|
+
console.error(d), g.btnLoading = !1;
|
|
112
86
|
});
|
|
113
87
|
}
|
|
114
88
|
});
|
|
115
89
|
};
|
|
116
90
|
return (o, f) => {
|
|
117
|
-
var
|
|
118
|
-
const
|
|
119
|
-
return
|
|
91
|
+
var Y;
|
|
92
|
+
const n = m("el-input"), h = m("el-option"), p = m("el-select"), F = m("el-select-v2"), V = m("el-date-picker"), d = m("el-cascader"), s = m("el-switch"), k = m("el-form-item"), v = m("el-col"), se = m("el-row"), ie = m("el-form"), q = m("el-button"), ce = m("el-dialog"), ue = ye("debounce");
|
|
93
|
+
return r(), c(ce, {
|
|
120
94
|
"model-value": u.visible,
|
|
121
95
|
title: u.title,
|
|
122
96
|
top: "5vh",
|
|
123
|
-
width: (
|
|
97
|
+
width: (Y = C.data.formConfig) == null ? void 0 : Y.dialogWidth,
|
|
124
98
|
"append-to-body": "",
|
|
125
99
|
"destroy-on-close": "",
|
|
126
100
|
"close-on-click-modal": !1,
|
|
127
|
-
"before-close":
|
|
101
|
+
"before-close": re
|
|
128
102
|
}, {
|
|
129
|
-
footer:
|
|
130
|
-
H("span",
|
|
131
|
-
|
|
132
|
-
loading: l(
|
|
133
|
-
onClick:
|
|
103
|
+
footer: _(() => [
|
|
104
|
+
H("span", we, [
|
|
105
|
+
$(q, {
|
|
106
|
+
loading: l(g).btnLoading,
|
|
107
|
+
onClick: U
|
|
134
108
|
}, {
|
|
135
|
-
default:
|
|
136
|
-
|
|
109
|
+
default: _(() => [
|
|
110
|
+
R(T(l(i)("act.cancel")), 1)
|
|
137
111
|
]),
|
|
138
112
|
_: 1
|
|
139
113
|
}, 8, ["loading"]),
|
|
140
|
-
|
|
114
|
+
be((r(), c(q, {
|
|
141
115
|
type: "primary",
|
|
142
|
-
loading: l(
|
|
143
|
-
onClick: f[1] || (f[1] = (
|
|
116
|
+
loading: l(g).btnLoading,
|
|
117
|
+
onClick: f[1] || (f[1] = (P) => ne(l(N)))
|
|
144
118
|
}, {
|
|
145
|
-
default:
|
|
146
|
-
|
|
119
|
+
default: _(() => [
|
|
120
|
+
R(T(l(i)("act.save")), 1)
|
|
147
121
|
]),
|
|
148
122
|
_: 1
|
|
149
|
-
}, 8, ["loading"])
|
|
123
|
+
}, 8, ["loading"])), [
|
|
124
|
+
[ue]
|
|
125
|
+
])
|
|
150
126
|
])
|
|
151
127
|
]),
|
|
152
|
-
default:
|
|
153
|
-
var
|
|
128
|
+
default: _(() => {
|
|
129
|
+
var P, j;
|
|
154
130
|
return [
|
|
155
|
-
|
|
131
|
+
$(ie, {
|
|
156
132
|
ref_key: "formRef",
|
|
157
|
-
ref:
|
|
133
|
+
ref: N,
|
|
158
134
|
model: l(a),
|
|
159
135
|
"label-suffix": ":",
|
|
160
|
-
"label-width": (
|
|
161
|
-
"label-position": (
|
|
136
|
+
"label-width": (P = C.data.formConfig) == null ? void 0 : P.formLabelWidth,
|
|
137
|
+
"label-position": (j = C.data.formConfig) == null ? void 0 : j.formLabelPosition
|
|
162
138
|
}, {
|
|
163
|
-
default:
|
|
164
|
-
|
|
165
|
-
default:
|
|
166
|
-
(
|
|
167
|
-
span:
|
|
168
|
-
key:
|
|
139
|
+
default: _(() => [
|
|
140
|
+
$(se, { gutter: 40 }, {
|
|
141
|
+
default: _(() => [
|
|
142
|
+
(r(!0), K(x, null, z(l(w), (e, B) => (r(), c(v, {
|
|
143
|
+
span: ee(e),
|
|
144
|
+
key: B
|
|
169
145
|
}, {
|
|
170
|
-
default:
|
|
171
|
-
e.customFiledsComponentes.isFiledCustom ? (
|
|
172
|
-
e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (
|
|
146
|
+
default: _(() => [
|
|
147
|
+
e.customFiledsComponentes.isFiledCustom ? (r(), K(x, { key: 1 }, [
|
|
148
|
+
e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (r(), c(_e(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
|
|
173
149
|
key: 0,
|
|
174
150
|
fieldCofnigItem: e,
|
|
175
151
|
rowData: u.data.rowData,
|
|
176
152
|
form: l(a),
|
|
177
|
-
"onUpdate:form": f[0] || (f[0] = (t) =>
|
|
178
|
-
}, null, 40, ["fieldCofnigItem", "rowData", "form"])) : (
|
|
153
|
+
"onUpdate:form": f[0] || (f[0] = (t) => he(a) ? a.value = t : a = t)
|
|
154
|
+
}, null, 40, ["fieldCofnigItem", "rowData", "form"])) : (r(), K("div", {
|
|
179
155
|
class: "no-config",
|
|
180
|
-
key:
|
|
156
|
+
key: B
|
|
181
157
|
}, [
|
|
182
|
-
H("span",
|
|
183
|
-
|
|
158
|
+
H("span", Ke, "【" + T(e.fieldName) + "】", 1),
|
|
159
|
+
R(T(l(i)("act.fieldCustom")), 1)
|
|
184
160
|
]))
|
|
185
|
-
], 64)) : (
|
|
161
|
+
], 64)) : (r(), c(k, {
|
|
186
162
|
key: 0,
|
|
187
163
|
label: e.fieldName,
|
|
188
164
|
prop: e.fieldKey,
|
|
189
|
-
rules: [{ required: e.isFormFieldRequired, message: l(
|
|
165
|
+
rules: [{ required: e.isFormFieldRequired, message: l(i)("act.requiredMessage"), trigger: le(e) }]
|
|
190
166
|
}, {
|
|
191
|
-
default:
|
|
192
|
-
e.fieldType === "input" ? (
|
|
167
|
+
default: _(() => [
|
|
168
|
+
e.fieldType === "input" ? (r(), c(n, b({
|
|
193
169
|
key: 0,
|
|
194
170
|
modelValue: l(a)[e.fieldKey],
|
|
195
171
|
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
196
|
-
placeholder: `${l(
|
|
172
|
+
placeholder: `${l(i)("act.inputPlaceholder")}${e.fieldName}`,
|
|
197
173
|
clearable: "",
|
|
198
174
|
ref_for: !0
|
|
199
|
-
},
|
|
175
|
+
}, y(e), {
|
|
200
176
|
disabled: e.isFormDisabled
|
|
201
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) :
|
|
202
|
-
e.fieldType === "inputNumber" ? (
|
|
177
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : W("", !0),
|
|
178
|
+
e.fieldType === "inputNumber" ? (r(), c(l(J), b({
|
|
203
179
|
key: 1,
|
|
204
180
|
modelValue: l(a)[e.fieldKey],
|
|
205
181
|
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
206
|
-
placeholder: `${l(
|
|
182
|
+
placeholder: `${l(i)("act.inputPlaceholder")}${e.fieldName}`,
|
|
207
183
|
clearable: "",
|
|
208
184
|
ref_for: !0
|
|
209
|
-
},
|
|
185
|
+
}, y(e), {
|
|
210
186
|
disabled: e.isFormDisabled
|
|
211
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (
|
|
187
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (r(), c(n, b({
|
|
212
188
|
key: 2,
|
|
213
189
|
modelValue: l(a)[e.fieldKey],
|
|
214
190
|
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
215
|
-
placeholder: `${l(
|
|
191
|
+
placeholder: `${l(i)("act.inputPlaceholder")}${e.fieldName}`,
|
|
216
192
|
rows: 4,
|
|
217
193
|
ref_for: !0
|
|
218
|
-
},
|
|
194
|
+
}, y(e), {
|
|
219
195
|
type: "textarea",
|
|
220
196
|
disabled: e.isFormDisabled
|
|
221
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (
|
|
197
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (r(), c(p, b({
|
|
222
198
|
key: 3,
|
|
223
199
|
modelValue: l(a)[e.fieldKey],
|
|
224
200
|
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
225
|
-
placeholder: `${l(
|
|
201
|
+
placeholder: `${l(i)("act.selectPlaceholder")}${e.fieldName}`,
|
|
226
202
|
clearable: "",
|
|
227
203
|
filterable: "",
|
|
228
204
|
ref_for: !0
|
|
229
|
-
},
|
|
205
|
+
}, y(e), {
|
|
230
206
|
multiple: e.fieldType === "multipleSelect",
|
|
231
207
|
disabled: e.isFormDisabled
|
|
232
208
|
}), {
|
|
233
|
-
default:
|
|
234
|
-
(
|
|
235
|
-
key:
|
|
209
|
+
default: _(() => [
|
|
210
|
+
(r(!0), K(x, null, z(e.dataList, (t, fe) => (r(), c(h, {
|
|
211
|
+
key: fe,
|
|
236
212
|
label: t.key,
|
|
237
213
|
value: t.value
|
|
238
214
|
}, null, 8, ["label", "value"]))), 128))
|
|
239
215
|
]),
|
|
240
216
|
_: 2
|
|
241
|
-
}, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (
|
|
217
|
+
}, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (r(), c(F, b({
|
|
242
218
|
key: 4,
|
|
243
219
|
modelValue: l(a)[e.fieldKey],
|
|
244
220
|
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
245
221
|
options: e.dataList,
|
|
246
|
-
props: { ...l(
|
|
247
|
-
placeholder: `${l(
|
|
222
|
+
props: { ...l(Ce) },
|
|
223
|
+
placeholder: `${l(i)("act.selectPlaceholder")}${e.fieldName}`,
|
|
248
224
|
clearable: "",
|
|
249
225
|
filterable: "",
|
|
250
226
|
ref_for: !0
|
|
251
|
-
},
|
|
227
|
+
}, y(e), {
|
|
252
228
|
disabled: e.isFormDisabled,
|
|
253
229
|
multiple: e.fieldType === "virtualizedMultipleSelect"
|
|
254
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "date" ? (
|
|
230
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "date" ? (r(), c(V, b({
|
|
255
231
|
key: 5,
|
|
256
232
|
modelValue: l(a)[e.fieldKey],
|
|
257
233
|
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
258
234
|
type: "date",
|
|
259
|
-
placeholder: `${l(
|
|
235
|
+
placeholder: `${l(i)("act.selectPlaceholder")}${l(i)("act.time")}`,
|
|
260
236
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
261
237
|
ref_for: !0
|
|
262
|
-
},
|
|
238
|
+
}, y(e), {
|
|
263
239
|
disabled: e.isFormDisabled
|
|
264
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (
|
|
240
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (r(), c(V, b({
|
|
265
241
|
key: 6,
|
|
266
242
|
modelValue: l(a)[e.fieldKey],
|
|
267
243
|
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
268
244
|
type: "daterange",
|
|
269
|
-
"start-placeholder": l(
|
|
270
|
-
"end-placeholder": l(
|
|
245
|
+
"start-placeholder": l(i)("act.startTime"),
|
|
246
|
+
"end-placeholder": l(i)("act.endTime"),
|
|
271
247
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
272
248
|
ref_for: !0
|
|
273
|
-
},
|
|
249
|
+
}, y(e), {
|
|
274
250
|
disabled: e.isFormDisabled
|
|
275
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (
|
|
251
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (r(), c(d, b({
|
|
276
252
|
key: 7,
|
|
277
253
|
modelValue: l(a)[e.fieldKey],
|
|
278
254
|
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
279
255
|
options: e.dataList,
|
|
280
|
-
props: l(
|
|
256
|
+
props: l(De),
|
|
281
257
|
clearable: "",
|
|
282
258
|
filterable: "",
|
|
283
|
-
placeholder: `${l(
|
|
259
|
+
placeholder: `${l(i)("act.selectPlaceholder")}${e.fieldName}`,
|
|
284
260
|
ref_for: !0
|
|
285
|
-
},
|
|
261
|
+
}, y(e), {
|
|
286
262
|
disabled: e.isFormDisabled
|
|
287
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (
|
|
263
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (r(), c(s, {
|
|
288
264
|
key: 8,
|
|
289
265
|
modelValue: l(a)[e.fieldKey],
|
|
290
266
|
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
291
267
|
"active-value": !0,
|
|
292
268
|
"inactive-value": !1
|
|
293
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (
|
|
269
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (r(), c(l(Q), b({
|
|
294
270
|
key: 9,
|
|
295
271
|
class: "form-upload",
|
|
296
272
|
modelValue: l(a)[e.fieldKey],
|
|
297
273
|
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
274
|
+
request: l(M),
|
|
298
275
|
ref_for: !0
|
|
299
|
-
},
|
|
276
|
+
}, y(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (r(), c(l(X), b({
|
|
300
277
|
key: 10,
|
|
301
278
|
modelValue: l(a)[e.fieldKey],
|
|
302
279
|
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
303
280
|
disabled: e.isFormDisabled,
|
|
304
|
-
placeholder: `${l(
|
|
281
|
+
placeholder: `${l(i)("act.inputPlaceholder")}${e.fieldName}`,
|
|
305
282
|
ref_for: !0
|
|
306
|
-
},
|
|
283
|
+
}, y(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : W("", !0)
|
|
307
284
|
]),
|
|
308
285
|
_: 2
|
|
309
286
|
}, 1032, ["label", "prop", "rules"]))
|
|
@@ -322,7 +299,7 @@ const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
|
|
|
322
299
|
}, 8, ["model-value", "title", "width"]);
|
|
323
300
|
};
|
|
324
301
|
}
|
|
325
|
-
},
|
|
302
|
+
}, Re = /* @__PURE__ */ ge(Ne, [["__scopeId", "data-v-58ff2aa1"]]);
|
|
326
303
|
export {
|
|
327
|
-
|
|
304
|
+
Re as default
|
|
328
305
|
};
|