act-plus 1.1.35 → 1.1.37
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 +1 -1
- package/act-plus.umd.cjs +63 -63
- package/lib/{configBtns-b466947f.js → configBtns-091826d5.js} +2 -2
- package/lib/{configFileds-f0231b08.js → configFileds-fd5ea537.js} +3 -3
- package/lib/{configForm-e3af844f.js → configForm-e91a1aa7.js} +1 -1
- package/lib/{configTable-3ed8b3cd.js → configTable-2b7df811.js} +2 -2
- package/lib/{dialogAddField-17e1aa96.js → dialogAddField-996920a1.js} +45 -43
- package/lib/{dialogConfigBtn-666a5a33.js → dialogConfigBtn-f0ec7e97.js} +178 -176
- package/lib/dialogInitConfig-fa84565d.js +188 -0
- package/lib/{dialogSiteComponentsParams-9831d8a6.js → dialogSiteComponentsParams-5dfa4493.js} +1 -1
- package/lib/{enum-95788c42.js → enum-d734222c.js} +2 -1
- package/lib/{index-b7ef2e32.js → index-17a12636.js} +2 -2
- package/lib/{index-49f864eb.js → index-32ede4ba.js} +1 -1
- package/lib/{index-adf3ff12.js → index-42b5a2b1.js} +16024 -16004
- package/lib/{index-b0157be1.js → index-585f3f09.js} +1 -1
- package/lib/{index-75b07771.js → index-e31f5bfc.js} +141 -126
- package/lib/{index-71efc775.js → index-e39ab51b.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as d, watch as y, resolveComponent as _, openBlock as r, createElementBlock as m, createVNode as v, unref as u, isRef as w, withCtx as f, createElementVNode as g, createBlock as C, createCommentVNode as N, createTextVNode as $, Fragment as B, renderList as E, normalizeClass as L } from "vue";
|
|
2
|
-
import { _ as P } from "./index-
|
|
2
|
+
import { _ as P } from "./index-42b5a2b1.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "js-base64";
|
|
5
5
|
import "element-plus";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineAsyncComponent as K, inject as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { ElNotification as
|
|
1
|
+
import { defineAsyncComponent as K, inject as F, reactive as ge, ref as $, watch as Ve, resolveComponent as y, resolveDirective as H, openBlock as d, createBlock as n, withCtx as h, createElementVNode as W, createVNode as G, unref as l, createTextVNode as x, toDisplayString as N, withDirectives as J, createElementBlock as D, Fragment as w, renderList as A, mergeProps as _, createCommentVNode as Q, resolveDynamicComponent as Fe, isRef as Ce, toRaw as De } from "vue";
|
|
2
|
+
import { _ as Te, u as Ke, P as Ne, a as we } from "./index-42b5a2b1.js";
|
|
3
|
+
import { ElNotification as Ue } from "element-plus";
|
|
4
4
|
import "vue-router";
|
|
5
5
|
import "js-base64";
|
|
6
6
|
import "monaco-editor";
|
|
7
|
-
const
|
|
7
|
+
const ke = { class: "no-config-field" }, Le = { class: "dialog-footer" }, ve = {
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: {
|
|
10
10
|
visible: { type: Boolean, default: !1 },
|
|
@@ -12,296 +12,309 @@ const Ue = { class: "no-config-field" }, we = { class: "dialog-footer" }, ke = {
|
|
|
12
12
|
data: { type: Object, default: () => ({}) }
|
|
13
13
|
},
|
|
14
14
|
emits: ["update:visible", "refresh"],
|
|
15
|
-
setup(T, { emit:
|
|
16
|
-
const
|
|
17
|
-
let
|
|
15
|
+
setup(T, { emit: X }) {
|
|
16
|
+
const Z = K(() => import("./index-42b5a2b1.js").then((o) => o.f)), I = K(() => import("./index-585f3f09.js")), ee = K(() => import("./index-42b5a2b1.js").then((o) => o.e)), le = K(() => import("./index-42b5a2b1.js").then((o) => o.d)), { t: u } = Ke(), M = F("request"), oe = F("loadComponents"), q = F("formatDataType"), E = F("globalProps"), ae = F("stringToBoolean"), b = F("getFieldUiProps"), te = F("disposeRequestData"), O = X, f = T;
|
|
17
|
+
let g = ge((() => ({
|
|
18
|
+
dialogLoading: !1,
|
|
18
19
|
btnLoading: !1
|
|
19
|
-
}))()),
|
|
20
|
-
const
|
|
20
|
+
}))()), U = $([]), t = $({}), k = $(null), de = {};
|
|
21
|
+
const se = (o) => o.formColumnCol == null || o.customFiledsComponentes[o.customFiledsComponentes.customComponentName] ? 24 : o.formColumnCol ? o.formColumnCol : 24 / o.formRow, re = (o) => {
|
|
21
22
|
if (["input", "textarea"].includes(o.fieldType))
|
|
22
23
|
return "blur";
|
|
23
24
|
if (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(o.fieldType))
|
|
24
25
|
return "change";
|
|
25
|
-
},
|
|
26
|
+
}, ie = (o) => {
|
|
26
27
|
if (!["input", "textarea"].includes(o) && ["multipleSelect", "dateRange"].includes(o))
|
|
27
28
|
return [];
|
|
28
|
-
},
|
|
29
|
-
if (["string"].includes(
|
|
29
|
+
}, ne = (o, c) => {
|
|
30
|
+
if (["string"].includes(c))
|
|
30
31
|
return o.join(";");
|
|
31
|
-
if (["number"].includes(
|
|
32
|
+
if (["number"].includes(c))
|
|
32
33
|
return Number(o);
|
|
33
|
-
if (["array"].includes(
|
|
34
|
+
if (["array"].includes(c))
|
|
34
35
|
return o;
|
|
35
|
-
},
|
|
36
|
+
}, ce = (o) => {
|
|
36
37
|
if (["multipleSelect"].includes(o.fieldType))
|
|
37
38
|
return f.data.rowData[o.fieldKey] ? f.data.rowData[o.fieldKey].split(";") : [];
|
|
38
39
|
if (["dateRange"].includes(o.fieldType)) {
|
|
39
|
-
const
|
|
40
|
-
return f.data.rowData[o.fieldKey] =
|
|
40
|
+
const m = o.fieldKey.split("&");
|
|
41
|
+
return f.data.rowData[o.fieldKey] = m.map((i) => f.data.rowData[i]), f.data.rowData[o.fieldKey];
|
|
42
|
+
}
|
|
43
|
+
let c = f.data.rowData[o.fieldKey];
|
|
44
|
+
if (["select", "virtualizedSelect"].includes(o.fieldType)) {
|
|
45
|
+
const m = b(o);
|
|
46
|
+
o.dataList && typeof o.dataList[0][m["value-key"] ? m["value-key"] : "value"] == "string" && (c = c.toString());
|
|
41
47
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
be(
|
|
48
|
+
return (c === "true" || c === "false") && (c = ae(c)), c;
|
|
49
|
+
}, ue = (o) => M({ url: f.data.dataItem.requestUrl, method: "post", data: o });
|
|
50
|
+
Ve(
|
|
46
51
|
() => f.visible,
|
|
47
|
-
async (o,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
async (o, c) => {
|
|
53
|
+
if (o)
|
|
54
|
+
try {
|
|
55
|
+
g.dialogLoading = !0;
|
|
56
|
+
const m = await te(f.data.formList, f.data.rowData, !1, !0);
|
|
57
|
+
f.data.formList.sort((i, p) => i.sort - p.sort).forEach(async (i) => {
|
|
58
|
+
const p = m.find((r) => i.fieldName == r.fieldName && i.fieldKey == r.fieldKey);
|
|
59
|
+
p && (i.dataList = (p == null ? void 0 : p.dataList) ?? []), de[i.fieldKey] = { submitFieldType: i.fieldSubmitType, isFormSetValue: i.isFormSetValue }, t.value[i.fieldKey] = Object.keys(f.data.rowData).length && i.isFormSetValue ? ce(i) : ie(i.fieldType);
|
|
60
|
+
const { isFiledCustom: C, customComponentName: V, customComponentUrl: s } = i.customFiledsComponentes;
|
|
61
|
+
if (C && !i.customFiledsComponentes[V]) {
|
|
62
|
+
const r = await oe(s, V);
|
|
63
|
+
i.customFiledsComponentes[V] = r;
|
|
64
|
+
}
|
|
65
|
+
}), console.log(f.data.formList), U.value = f.data.formList || [], g.dialogLoading = !1;
|
|
66
|
+
} catch {
|
|
67
|
+
g.dialogLoading = !1, ƒ;
|
|
54
68
|
}
|
|
55
|
-
}), w.value = f.data.formList || []);
|
|
56
69
|
}
|
|
57
70
|
);
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
},
|
|
63
|
-
o && o.validate((
|
|
64
|
-
if (
|
|
65
|
-
|
|
66
|
-
const { dataItem:
|
|
67
|
-
let p = { ...
|
|
68
|
-
Object.keys(p).forEach((
|
|
69
|
-
|
|
70
|
-
p[
|
|
71
|
-
}) : Array.isArray(p[
|
|
71
|
+
const fe = (o) => {
|
|
72
|
+
L(), o();
|
|
73
|
+
}, L = () => {
|
|
74
|
+
U.value = [], k.value.resetFields(), O("update:visible", !1);
|
|
75
|
+
}, pe = (o) => {
|
|
76
|
+
o && o.validate((c) => {
|
|
77
|
+
if (c) {
|
|
78
|
+
g.btnLoading = !0;
|
|
79
|
+
const { dataItem: m, rowData: i } = f.data;
|
|
80
|
+
let p = { ...De(t.value) };
|
|
81
|
+
Object.keys(p).forEach((s) => {
|
|
82
|
+
s.includes("&") ? s.split("&").forEach((v, P) => {
|
|
83
|
+
p[v] = p[s][P];
|
|
84
|
+
}) : Array.isArray(p[s]) && (p[s] = ne(p[s], "string"));
|
|
72
85
|
});
|
|
73
|
-
const C =
|
|
74
|
-
|
|
86
|
+
const C = m.submitFields.filter((s) => s.matchType == "default").reduce((s, r) => (r.submitFieldType === "string" && (s[r.submitFieldName] = r.matchFieldName.toString()), s), {}), V = m.submitFields.filter((s) => s.matchType == "match").reduce((s, r) => (Reflect.has(r, "submitFieldMatchOrigin") && r.submitFieldMatchOrigin != "rowData" ? Reflect.has(E.matchData, r.submitFieldMatchOrigin) && (s[r.submitFieldName] = q(r.submitFieldType, E.matchData[r.submitFieldMatchOrigin][r.matchFieldName])) : s[r.submitFieldName] = q(r.submitFieldType, i[r.matchFieldName]), s), {});
|
|
87
|
+
ue({
|
|
75
88
|
...p,
|
|
76
89
|
...C,
|
|
77
90
|
...V
|
|
78
|
-
}).then((
|
|
91
|
+
}).then((s) => {
|
|
79
92
|
try {
|
|
80
|
-
|
|
81
|
-
} catch (
|
|
82
|
-
console.error(
|
|
93
|
+
Ue({ title: u("act.tip"), message: u("act.saveSuccessfully"), type: "success", duration: 2500 }), L(), O("refresh");
|
|
94
|
+
} catch (r) {
|
|
95
|
+
console.error(r);
|
|
83
96
|
}
|
|
84
|
-
|
|
85
|
-
}).catch((
|
|
86
|
-
console.error(
|
|
97
|
+
g.btnLoading = !1;
|
|
98
|
+
}).catch((s) => {
|
|
99
|
+
console.error(s), g.btnLoading = !1;
|
|
87
100
|
});
|
|
88
101
|
}
|
|
89
102
|
});
|
|
90
103
|
};
|
|
91
|
-
return (o,
|
|
92
|
-
var
|
|
93
|
-
const
|
|
94
|
-
return d(),
|
|
104
|
+
return (o, c) => {
|
|
105
|
+
var B;
|
|
106
|
+
const m = y("el-input"), i = y("el-option"), p = y("el-select"), C = y("el-select-v2"), V = y("el-date-picker"), s = y("el-cascader"), r = y("el-switch"), v = y("el-form-item"), P = y("el-col"), me = y("el-row"), ye = y("el-form"), Y = y("el-button"), be = y("el-dialog"), _e = H("loading"), he = H("debounce");
|
|
107
|
+
return d(), n(be, {
|
|
95
108
|
"model-value": f.visible,
|
|
96
109
|
title: f.title,
|
|
97
110
|
top: "5vh",
|
|
98
|
-
width: (
|
|
111
|
+
width: (B = T.data.formConfig) == null ? void 0 : B.dialogWidth,
|
|
99
112
|
draggable: "",
|
|
100
113
|
overflow: "",
|
|
101
114
|
"append-to-body": "",
|
|
102
115
|
"destroy-on-close": "",
|
|
103
116
|
"close-on-click-modal": !1,
|
|
104
|
-
"before-close":
|
|
117
|
+
"before-close": fe
|
|
105
118
|
}, {
|
|
106
119
|
footer: h(() => [
|
|
107
|
-
W("span",
|
|
108
|
-
|
|
109
|
-
loading: l(
|
|
110
|
-
onClick:
|
|
120
|
+
W("span", Le, [
|
|
121
|
+
G(Y, {
|
|
122
|
+
loading: l(g).btnLoading,
|
|
123
|
+
onClick: L
|
|
111
124
|
}, {
|
|
112
125
|
default: h(() => [
|
|
113
|
-
|
|
126
|
+
x(N(l(u)("act.cancel")), 1)
|
|
114
127
|
]),
|
|
115
128
|
_: 1
|
|
116
129
|
}, 8, ["loading"]),
|
|
117
|
-
|
|
130
|
+
J((d(), n(Y, {
|
|
118
131
|
type: "primary",
|
|
119
|
-
loading: l(
|
|
120
|
-
onClick:
|
|
132
|
+
loading: l(g).btnLoading,
|
|
133
|
+
onClick: c[1] || (c[1] = (S) => pe(l(k)))
|
|
121
134
|
}, {
|
|
122
135
|
default: h(() => [
|
|
123
|
-
|
|
136
|
+
x(N(l(u)("act.save")), 1)
|
|
124
137
|
]),
|
|
125
138
|
_: 1
|
|
126
139
|
}, 8, ["loading"])), [
|
|
127
|
-
[
|
|
140
|
+
[he]
|
|
128
141
|
])
|
|
129
142
|
])
|
|
130
143
|
]),
|
|
131
144
|
default: h(() => {
|
|
132
|
-
var
|
|
145
|
+
var S, j;
|
|
133
146
|
return [
|
|
134
|
-
|
|
147
|
+
J((d(), n(ye, {
|
|
135
148
|
ref_key: "formRef",
|
|
136
149
|
ref: k,
|
|
137
150
|
model: l(t),
|
|
138
151
|
"label-suffix": ":",
|
|
139
|
-
"label-width": (
|
|
140
|
-
"label-position": (
|
|
152
|
+
"label-width": (S = T.data.formConfig) == null ? void 0 : S.formLabelWidth,
|
|
153
|
+
"label-position": (j = T.data.formConfig) == null ? void 0 : j.formLabelPosition
|
|
141
154
|
}, {
|
|
142
155
|
default: h(() => [
|
|
143
|
-
|
|
156
|
+
G(me, { gutter: 40 }, {
|
|
144
157
|
default: h(() => [
|
|
145
|
-
(d(!0), D(
|
|
146
|
-
span:
|
|
158
|
+
(d(!0), D(w, null, A(l(U), (e, z) => (d(), n(P, {
|
|
159
|
+
span: se(e),
|
|
147
160
|
key: z
|
|
148
161
|
}, {
|
|
149
162
|
default: h(() => [
|
|
150
|
-
e.customFiledsComponentes.isFiledCustom ? (d(), D(
|
|
151
|
-
e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (d(),
|
|
163
|
+
e.customFiledsComponentes.isFiledCustom ? (d(), D(w, { key: 1 }, [
|
|
164
|
+
e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (d(), n(Fe(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
|
|
152
165
|
key: 0,
|
|
153
166
|
fieldCofnigItem: e,
|
|
154
167
|
rowData: f.data.rowData,
|
|
155
168
|
form: l(t),
|
|
156
|
-
"onUpdate:form":
|
|
169
|
+
"onUpdate:form": c[0] || (c[0] = (a) => Ce(t) ? t.value = a : t = a)
|
|
157
170
|
}, null, 40, ["fieldCofnigItem", "rowData", "form"])) : (d(), D("div", {
|
|
158
171
|
class: "no-config",
|
|
159
172
|
key: z
|
|
160
173
|
}, [
|
|
161
|
-
W("span",
|
|
162
|
-
|
|
174
|
+
W("span", ke, "【" + N(e.fieldName) + "】", 1),
|
|
175
|
+
x(N(l(u)("act.fieldCustom")), 1)
|
|
163
176
|
]))
|
|
164
|
-
], 64)) : (d(),
|
|
177
|
+
], 64)) : (d(), n(v, {
|
|
165
178
|
key: 0,
|
|
166
179
|
label: e.fieldName,
|
|
167
180
|
prop: e.fieldKey,
|
|
168
|
-
rules: [{ required: e.isFormFieldRequired, message: l(
|
|
181
|
+
rules: [{ required: e.isFormFieldRequired, message: l(u)("act.requiredMessage"), trigger: re(e) }]
|
|
169
182
|
}, {
|
|
170
183
|
default: h(() => [
|
|
171
|
-
e.fieldType === "input" ? (d(),
|
|
184
|
+
e.fieldType === "input" ? (d(), n(m, _({
|
|
172
185
|
key: 0,
|
|
173
186
|
modelValue: l(t)[e.fieldKey],
|
|
174
187
|
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
175
|
-
placeholder: `${l(
|
|
188
|
+
placeholder: `${l(u)("act.inputPlaceholder")}${e.fieldName}`,
|
|
176
189
|
clearable: "",
|
|
177
190
|
ref_for: !0
|
|
178
|
-
}, l(
|
|
191
|
+
}, l(b)(e), {
|
|
179
192
|
disabled: e.isFormDisabled
|
|
180
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) :
|
|
181
|
-
e.fieldType === "inputNumber" ? (d(),
|
|
193
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : Q("", !0),
|
|
194
|
+
e.fieldType === "inputNumber" ? (d(), n(l(Z), _({
|
|
182
195
|
key: 1,
|
|
183
196
|
modelValue: l(t)[e.fieldKey],
|
|
184
197
|
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
185
|
-
placeholder: `${l(
|
|
198
|
+
placeholder: `${l(u)("act.inputPlaceholder")}${e.fieldName}`,
|
|
186
199
|
clearable: "",
|
|
187
200
|
ref_for: !0
|
|
188
|
-
}, l(
|
|
201
|
+
}, l(b)(e), {
|
|
189
202
|
disabled: e.isFormDisabled
|
|
190
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (d(),
|
|
203
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (d(), n(m, _({
|
|
191
204
|
key: 2,
|
|
192
205
|
modelValue: l(t)[e.fieldKey],
|
|
193
206
|
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
194
|
-
placeholder: `${l(
|
|
207
|
+
placeholder: `${l(u)("act.inputPlaceholder")}${e.fieldName}`,
|
|
195
208
|
rows: 4,
|
|
196
209
|
ref_for: !0
|
|
197
|
-
}, l(
|
|
210
|
+
}, l(b)(e), {
|
|
198
211
|
type: "textarea",
|
|
199
212
|
disabled: e.isFormDisabled
|
|
200
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "selectIcon" ? (d(),
|
|
213
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "selectIcon" ? (d(), n(l(I), _({
|
|
201
214
|
key: 3,
|
|
202
215
|
modelValue: l(t)[e.fieldKey],
|
|
203
216
|
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
204
217
|
icons: e.dataList,
|
|
205
|
-
placeholder: `${l(
|
|
218
|
+
placeholder: `${l(u)("act.selectPlaceholder")}${e.fieldName}`,
|
|
206
219
|
ref_for: !0
|
|
207
|
-
}, l(
|
|
220
|
+
}, l(b)(e), {
|
|
208
221
|
disabled: e.isFormDisabled
|
|
209
222
|
}), {
|
|
210
223
|
default: h(() => [
|
|
211
|
-
(d(!0), D(
|
|
212
|
-
key:
|
|
224
|
+
(d(!0), D(w, null, A(e.dataList, (a, R) => (d(), n(i, {
|
|
225
|
+
key: R,
|
|
213
226
|
label: a.key,
|
|
214
227
|
value: a.value
|
|
215
228
|
}, null, 8, ["label", "value"]))), 128))
|
|
216
229
|
]),
|
|
217
230
|
_: 2
|
|
218
|
-
}, 1040, ["modelValue", "onUpdate:modelValue", "icons", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (d(),
|
|
231
|
+
}, 1040, ["modelValue", "onUpdate:modelValue", "icons", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (d(), n(p, _({
|
|
219
232
|
key: 4,
|
|
220
233
|
modelValue: l(t)[e.fieldKey],
|
|
221
234
|
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
222
|
-
placeholder: `${l(
|
|
235
|
+
placeholder: `${l(u)("act.selectPlaceholder")}${e.fieldName}`,
|
|
223
236
|
clearable: "",
|
|
224
237
|
filterable: "",
|
|
225
238
|
ref_for: !0
|
|
226
|
-
}, l(
|
|
239
|
+
}, l(b)(e), {
|
|
227
240
|
multiple: e.fieldType === "multipleSelect",
|
|
228
241
|
disabled: e.isFormDisabled
|
|
229
242
|
}), {
|
|
230
243
|
default: h(() => [
|
|
231
|
-
(d(!0), D(
|
|
232
|
-
key:
|
|
244
|
+
(d(!0), D(w, null, A(e.dataList, (a, R) => (d(), n(i, {
|
|
245
|
+
key: R,
|
|
233
246
|
label: a.key,
|
|
234
247
|
value: a.value
|
|
235
248
|
}, null, 8, ["label", "value"]))), 128))
|
|
236
249
|
]),
|
|
237
250
|
_: 2
|
|
238
|
-
}, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (d(),
|
|
251
|
+
}, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (d(), n(C, _({
|
|
239
252
|
key: 5,
|
|
240
253
|
modelValue: l(t)[e.fieldKey],
|
|
241
254
|
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
242
255
|
options: e.dataList,
|
|
243
|
-
props: { ...l(
|
|
244
|
-
placeholder: `${l(
|
|
256
|
+
props: { ...l(Ne) },
|
|
257
|
+
placeholder: `${l(u)("act.selectPlaceholder")}${e.fieldName}`,
|
|
245
258
|
clearable: "",
|
|
246
259
|
filterable: "",
|
|
247
260
|
ref_for: !0
|
|
248
|
-
}, l(
|
|
261
|
+
}, l(b)(e), {
|
|
249
262
|
disabled: e.isFormDisabled,
|
|
250
263
|
multiple: e.fieldType === "virtualizedMultipleSelect"
|
|
251
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "date" ? (d(),
|
|
264
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "date" ? (d(), n(V, _({
|
|
252
265
|
key: 6,
|
|
253
266
|
modelValue: l(t)[e.fieldKey],
|
|
254
267
|
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
255
268
|
type: "date",
|
|
256
|
-
placeholder: `${l(
|
|
269
|
+
placeholder: `${l(u)("act.selectPlaceholder")}${l(u)("act.time")}`,
|
|
257
270
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
258
271
|
ref_for: !0
|
|
259
|
-
}, l(
|
|
272
|
+
}, l(b)(e), {
|
|
260
273
|
disabled: e.isFormDisabled
|
|
261
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (d(),
|
|
274
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (d(), n(V, _({
|
|
262
275
|
key: 7,
|
|
263
276
|
modelValue: l(t)[e.fieldKey],
|
|
264
277
|
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
265
278
|
type: "daterange",
|
|
266
|
-
"start-placeholder": l(
|
|
267
|
-
"end-placeholder": l(
|
|
279
|
+
"start-placeholder": l(u)("act.startTime"),
|
|
280
|
+
"end-placeholder": l(u)("act.endTime"),
|
|
268
281
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
269
282
|
ref_for: !0
|
|
270
|
-
}, l(
|
|
283
|
+
}, l(b)(e), {
|
|
271
284
|
disabled: e.isFormDisabled
|
|
272
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (d(),
|
|
285
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (d(), n(s, _({
|
|
273
286
|
key: 8,
|
|
274
287
|
modelValue: l(t)[e.fieldKey],
|
|
275
288
|
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
276
289
|
options: e.dataList,
|
|
277
|
-
props: l(
|
|
290
|
+
props: l(we),
|
|
278
291
|
clearable: "",
|
|
279
292
|
filterable: "",
|
|
280
|
-
placeholder: `${l(
|
|
293
|
+
placeholder: `${l(u)("act.selectPlaceholder")}${e.fieldName}`,
|
|
281
294
|
ref_for: !0
|
|
282
|
-
}, l(
|
|
295
|
+
}, l(b)(e), {
|
|
283
296
|
disabled: e.isFormDisabled
|
|
284
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (d(),
|
|
297
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (d(), n(r, {
|
|
285
298
|
key: 9,
|
|
286
299
|
modelValue: l(t)[e.fieldKey],
|
|
287
300
|
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
288
301
|
"active-value": !0,
|
|
289
302
|
"inactive-value": !1
|
|
290
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (d(),
|
|
303
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (d(), n(l(ee), _({
|
|
291
304
|
key: 10,
|
|
292
305
|
class: "form-upload",
|
|
293
306
|
modelValue: l(t)[e.fieldKey],
|
|
294
307
|
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
295
|
-
request: l(
|
|
308
|
+
request: l(M),
|
|
296
309
|
ref_for: !0
|
|
297
|
-
}, l(
|
|
310
|
+
}, l(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (d(), n(l(le), _({
|
|
298
311
|
key: 11,
|
|
299
312
|
modelValue: l(t)[e.fieldKey],
|
|
300
313
|
"onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
|
|
301
314
|
disabled: e.isFormDisabled,
|
|
302
|
-
placeholder: `${l(
|
|
315
|
+
placeholder: `${l(u)("act.inputPlaceholder")}${e.fieldName}`,
|
|
303
316
|
ref_for: !0
|
|
304
|
-
}, l(
|
|
317
|
+
}, l(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : Q("", !0)
|
|
305
318
|
]),
|
|
306
319
|
_: 2
|
|
307
320
|
}, 1032, ["label", "prop", "rules"]))
|
|
@@ -313,14 +326,16 @@ const Ue = { class: "no-config-field" }, we = { class: "dialog-footer" }, ke = {
|
|
|
313
326
|
})
|
|
314
327
|
]),
|
|
315
328
|
_: 1
|
|
316
|
-
}, 8, ["model", "label-width", "label-position"])
|
|
329
|
+
}, 8, ["model", "label-width", "label-position"])), [
|
|
330
|
+
[_e, l(g).dialogLoading]
|
|
331
|
+
])
|
|
317
332
|
];
|
|
318
333
|
}),
|
|
319
334
|
_: 1
|
|
320
335
|
}, 8, ["model-value", "title", "width"]);
|
|
321
336
|
};
|
|
322
337
|
}
|
|
323
|
-
},
|
|
338
|
+
}, qe = /* @__PURE__ */ Te(ve, [["__scopeId", "data-v-898d1774"]]);
|
|
324
339
|
export {
|
|
325
|
-
|
|
340
|
+
qe as default
|
|
326
341
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as R, inject as l, watch as j, resolveComponent as C, openBlock as r, 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-42b5a2b1.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "js-base64";
|
|
5
5
|
import "element-plus";
|
package/package.json
CHANGED
package/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.page-container{padding:12px}.form-card .el-card__header{font-size:16px;font-weight:700}.rotate180{transform:rotate(180deg)}.cp{cursor:pointer}.cp:hover{opacity:.8}.ml12{margin-left:12px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt24{margin-top:24px}.ml6{margin-left:6px!important}.ml4{margin-left:4px!important}.mr6{margin-right:6px}.mr2{margin-right:2px}.mr4{margin-right:4px}.el-table{--el-table-header-bg-color: #eef1f6;--el-table-header-text-color: #1f2d3d;font-size:14px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%;--el-card-padding: 16px}.el-card__body{height:calc(100% - 45px);box-sizing:border-box}.el-date-editor{--el-date-editor-width: 100%}[data-v-
|
|
1
|
+
@charset "UTF-8";.page-container{padding:12px}.form-card .el-card__header{font-size:16px;font-weight:700}.rotate180{transform:rotate(180deg)}.cp{cursor:pointer}.cp:hover{opacity:.8}.ml12{margin-left:12px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt24{margin-top:24px}.ml6{margin-left:6px!important}.ml4{margin-left:4px!important}.mr6{margin-right:6px}.mr2{margin-right:2px}.mr4{margin-right:4px}.el-table{--el-table-header-bg-color: #eef1f6;--el-table-header-text-color: #1f2d3d;font-size:14px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%;--el-card-padding: 16px}.el-card__body{height:calc(100% - 45px);box-sizing:border-box}.el-date-editor{--el-date-editor-width: 100%}[data-v-94e140e2] .el-empty__image{width:100%}.table-link[data-v-94e140e2]{cursor:pointer;color:#409eff;text-decoration:underline}.file-image[data-v-94e140e2]{display:block;width:32px;height:32px;margin:0 auto;border-radius:4px;line-height:32px!important}.no-image[data-v-94e140e2]{width:100%;height:100%;font-size:12px;background-color:#f5f7fa}.page-container[data-v-356e8a63]{position:relative}.page-container .header-operate[data-v-356e8a63]{position:sticky;top:0;z-index:999}.page-container .submit-box[data-v-356e8a63]{display:flex;align-items:center;justify-content:space-between}.page-container .submit-box-r[data-v-356e8a63]{display:flex;align-items:center}.page-container .submit-box-r .menu-select[data-v-356e8a63]{width:360px;margin:0 24px}.act-table .table-pagination[data-v-3ccfdf86]{padding:12px 4px;justify-content:flex-end}.tox-tinymce-aux{z-index:99999!important}.tinymce.ui.FloatPanel{z-index:99}.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before{color:#a8abb2}.upload-container[data-v-f839bee6]{width:100%}.upload-container[data-v-f839bee6] .el-upload-list--picture-card{display:flex;flex:1}.upload-container[data-v-f839bee6] .el-upload.is-drag{width:100%;height:100%}.upload-container .tip-text[data-v-f839bee6]{margin:0;padding:0;font-size:12px;color:#999}.upload-container .file-list[data-v-f839bee6]{display:flex;align-items:center;justify-content:space-between;margin:6px 0;padding:6px 12px;font-size:14px;border-radius:4px;border:1px solid #dcdfe6}.upload-container .file-list[data-v-f839bee6]:hover{cursor:pointer;opacity:.8}.upload-container .file-list:hover .el-file-name[data-v-f839bee6]{text-decoration:underline}.upload-container .file-list-l[data-v-f839bee6]{display:flex;align-items:center;flex:1;width:500px}.upload-container .file-list-image[data-v-f839bee6]{flex-shrink:0;width:40px;height:40px;border-radius:4px}.upload-container .file-list-icon[data-v-f839bee6]{flex-shrink:0;width:40px;height:40px}.upload-container .file-list .el-file-name[data-v-f839bee6]{flex:1;padding:0 12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.upload-container .file-list .el-file-operate[data-v-f839bee6]{display:flex;justify-content:flex-end;flex-shrink:0;min-width:82px;margin-left:auto}.upload-container .file-list .el-file-operate>i[data-v-f839bee6]{cursor:pointer;margin-left:12px}.upload-container .file-list .el-file-operate>i[data-v-f839bee6]:hover{opacity:.8}.search-module-container[data-v-39165fde] .el-form-item{margin-bottom:8px}.search-module-container[data-v-39165fde] .el-select__selection{flex-wrap:nowrap}.search-module-container .form-content[data-v-39165fde]{display:grid;grid-template-columns:repeat(var(--table-query-row),1fr);gap:6px;padding:6px 6px 0}.search-module-container .form-content .search-form-btn[data-v-39165fde]{justify-self:end;align-self:start;grid-column-start:var(--table-query-row);grid-column-end:var(--table-query-row)}.search-module-container .expand[data-v-39165fde]{display:flex;margin:0 auto;color:#a4a2a2}.header-operate-container[data-v-b8dfe0ca]{display:flex;align-items:center;justify-content:flex-end}.header-operate-container .el-btn[data-v-b8dfe0ca]{margin:6px}.card-header[data-v-898d1774]{display:flex;align-items:center}.card-header-operate[data-v-898d1774]{margin-left:auto}.no-config[data-v-898d1774]{line-height:32px;font-weight:700}.no-config-field[data-v-898d1774]{margin-left:60px;color:red}.card-header[data-v-be1c5be6]{display:flex;align-items:center}.card-header-operate[data-v-be1c5be6]{margin-left:auto}.add-icon-btn[data-v-ada54450]{cursor:pointer;width:24px;height:24px;margin-left:6px}.table-post-params[data-v-ada54450]{position:relative;margin-bottom:12px}.table-post-params .submit-operate[data-v-ada54450]{position:absolute;top:-20px;right:-10px;display:flex;align-items:center}.table-post-params .submit-operate .match-opreate[data-v-ada54450]{cursor:pointer;width:12px;height:12px}.card-header[data-v-862782ff]{display:flex;align-items:center}.card-header-operate[data-v-862782ff]{margin-left:auto}.form-list[data-v-862782ff]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-862782ff]:last-child{border:none}.config-list-operate[data-v-862782ff]{display:flex;align-items:center;justify-content:flex-end}.card-header[data-v-3440b427]{display:flex;align-items:center}.card-header-operate[data-v-3440b427]{margin-left:auto}.form-list[data-v-3440b427]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-3440b427]:last-child{border:none}.config-list-operate[data-v-3440b427]{display:flex;align-items:center;justify-content:flex-end}.submit-operate[data-v-c63f456e]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-c63f456e]{cursor:pointer;width:20px;height:20px}.select-icon-popover .icon-list{display:grid;grid-template-columns:repeat(8,1fr)}.select-icon-popover .icon-list .icon-item{display:flex;align-items:center;justify-content:center;margin:4px 0;border:1px solid transparent}.select-icon-popover .icon-list .icon-item .icon-svg{cursor:pointer}.select-icon-popover .icon-list .icon-item-checked{border:1px solid #000}.select-icon-container .icon-value[data-v-308d02d4]{display:flex;align-items:center}.select-icon-container .icon-value .icon-btn[data-v-308d02d4]{margin-left:12px}.add-icon-btn[data-v-bc91dc45]{cursor:pointer;width:24px;height:24px;margin-left:6px}.condition-box[data-v-bc91dc45]{display:flex;justify-content:center}.condition-box[data-v-bc91dc45] .el-form-item__content{flex:0;min-width:300px}.submit-operate[data-v-bc91dc45]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-bc91dc45]{cursor:pointer;width:20px;height:20px}.add-icon-btn[data-v-9f0c7bbf]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-9f0c7bbf]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-9f0c7bbf]{cursor:pointer;width:20px;height:20px}
|