act-plus 1.1.20 → 1.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/act-plus.js +1 -1
- package/act-plus.umd.cjs +442 -442
- package/assets/css.worker-1af1972f.js +84 -0
- package/assets/html.worker-38c267f1.js +456 -0
- package/assets/json.worker-bf861c27.js +39 -0
- package/lib/{configBtns-3772e689.js → configBtns-c4e55eb0.js} +2 -2
- package/lib/{configFileds-d0911c87.js → configFileds-b79642bc.js} +3 -3
- package/lib/{configForm-ae4b725e.js → configForm-2212ebfa.js} +1 -1
- package/lib/{configTable-879063d4.js → configTable-21f37060.js} +92 -61
- package/lib/{cssMode-6d02ab39.js → cssMode-049c1acb.js} +1 -1
- package/lib/{dialogAddField-d6b18048.js → dialogAddField-535d4a6c.js} +246 -245
- package/lib/{dialogConfigBtn-75e37dc9.js → dialogConfigBtn-f4b70a91.js} +3 -3
- package/lib/dialogSiteComponentsParams-a99a4d71.js +71 -0
- package/lib/{enum-cc58b8fe.js → enum-ab7125f9.js} +2 -2
- package/lib/{freemarker2-205877bf.js → freemarker2-c93dec09.js} +1 -1
- package/lib/{handlebars-2d920faa.js → handlebars-8a7428d8.js} +1 -1
- package/lib/{html-6b99359b.js → html-2fad443c.js} +1 -1
- package/lib/{htmlMode-498c17d9.js → htmlMode-3c13e1c6.js} +1 -1
- package/lib/{index-68063c4c.js → index-14906725.js} +1 -1
- package/lib/index-742c1da3.js +327 -0
- package/lib/{index-aff95ab9.js → index-79e6c123.js} +1 -1
- package/lib/{index-da0a0bfe.js → index-a2634eef.js} +40545 -40196
- package/lib/index-cb908890.js +205 -0
- package/lib/{index-fb2754ee.js → index-f2795fa7.js} +1 -1
- package/lib/{javascript-5e40fe11.js → javascript-2ec13b45.js} +2 -2
- package/lib/{jsonMode-2a821e9e.js → jsonMode-33ed8d99.js} +1 -1
- package/lib/{liquid-dc78aaf7.js → liquid-40ee460a.js} +1 -1
- package/lib/{python-e55144b2.js → python-852dc2c1.js} +1 -1
- package/lib/{razor-1fb88f53.js → razor-c24d586d.js} +1 -1
- package/lib/{tsMode-8d12d976.js → tsMode-6d6244be.js} +1 -1
- package/lib/{typescript-97ed77ae.js → typescript-807ce4d9.js} +1 -1
- package/lib/{xml-e843c667.js → xml-cc91b485.js} +1 -1
- package/lib/{yaml-62bcf3fa.js → yaml-f2de88bb.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/index-7c264775.js +0 -192
- package/lib/index-a36b2284.js +0 -304
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent as O, computed as ae, reactive as te, inject as q, ref as N, watch as oe, resolveComponent as y, openBlock as d, createBlock as m, withCtx as l, createElementVNode as ue, createVNode as e, unref as o, createTextVNode as U, toDisplayString as x, createCommentVNode as C, createElementBlock as b, Fragment as f, renderList as _ } from "vue";
|
|
2
|
-
import { B as ne, b as de, c as re, d as se, e as ie, f as me, g as pe, h as ce, i as be } from "./enum-
|
|
3
|
-
import { _ as fe, f as _e } from "./index-
|
|
2
|
+
import { B as ne, b as de, c as re, d as se, e as ie, f as me, g as pe, h as ce, i as be } from "./enum-ab7125f9.js";
|
|
3
|
+
import { _ as fe, f as _e } from "./index-a2634eef.js";
|
|
4
4
|
import { useRoute as ge } from "vue-router";
|
|
5
5
|
import "element-plus";
|
|
6
6
|
const Ve = { class: "dialog-footer" }, ye = {
|
|
@@ -12,7 +12,7 @@ const Ve = { class: "dialog-footer" }, ye = {
|
|
|
12
12
|
},
|
|
13
13
|
emits: ["update:visible", "refresh"],
|
|
14
14
|
setup(A, { emit: P }) {
|
|
15
|
-
const E = O(() => import("./index-
|
|
15
|
+
const E = O(() => import("./index-f2795fa7.js")), D = O(() => import("./index-a2634eef.js").then((p) => p.k)), W = ge(), I = P, T = A, R = ae(() => W.params.key);
|
|
16
16
|
let k = te((() => ({
|
|
17
17
|
btnLoading: !1
|
|
18
18
|
}))());
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { defineAsyncComponent as g, ref as y, watch as C, resolveComponent as u, openBlock as h, createBlock as k, withCtx as a, createElementVNode as x, createVNode as s, createTextVNode as c, unref as p, isRef as w } from "vue";
|
|
2
|
+
const S = { class: "dialog-footer" }, N = {
|
|
3
|
+
__name: "dialogSiteComponentsParams",
|
|
4
|
+
props: {
|
|
5
|
+
visible: { type: Boolean, default: !1 },
|
|
6
|
+
title: { type: String, default: "" },
|
|
7
|
+
modelValue: { type: String, default: "" }
|
|
8
|
+
},
|
|
9
|
+
emits: ["update:visible", "refresh", "update:modelValue"],
|
|
10
|
+
setup(m, { emit: f }) {
|
|
11
|
+
const v = g(() => import("./index-a2634eef.js").then((t) => t.k)), n = f, o = m;
|
|
12
|
+
let e = y();
|
|
13
|
+
C(
|
|
14
|
+
() => o.visible,
|
|
15
|
+
async (t, l) => {
|
|
16
|
+
t && (e.value = o.modelValue);
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
const _ = (t) => {
|
|
20
|
+
d(), t();
|
|
21
|
+
}, d = () => {
|
|
22
|
+
e.value = "", n("update:visible", !1);
|
|
23
|
+
}, b = () => {
|
|
24
|
+
n("update:modelValue", e.value), n("update:visible", !1);
|
|
25
|
+
};
|
|
26
|
+
return (t, l) => {
|
|
27
|
+
const r = u("el-button"), V = u("el-dialog");
|
|
28
|
+
return h(), k(V, {
|
|
29
|
+
"model-value": o.visible,
|
|
30
|
+
title: o.title,
|
|
31
|
+
top: "5vh",
|
|
32
|
+
width: "800",
|
|
33
|
+
draggable: "",
|
|
34
|
+
overflow: "",
|
|
35
|
+
"close-on-click-modal": !1,
|
|
36
|
+
"before-close": _
|
|
37
|
+
}, {
|
|
38
|
+
footer: a(() => [
|
|
39
|
+
x("span", S, [
|
|
40
|
+
s(r, { onClick: d }, {
|
|
41
|
+
default: a(() => [
|
|
42
|
+
c("取消")
|
|
43
|
+
]),
|
|
44
|
+
_: 1
|
|
45
|
+
}),
|
|
46
|
+
s(r, {
|
|
47
|
+
type: "primary",
|
|
48
|
+
onClick: l[1] || (l[1] = (i) => b())
|
|
49
|
+
}, {
|
|
50
|
+
default: a(() => [
|
|
51
|
+
c("保存")
|
|
52
|
+
]),
|
|
53
|
+
_: 1
|
|
54
|
+
})
|
|
55
|
+
])
|
|
56
|
+
]),
|
|
57
|
+
default: a(() => [
|
|
58
|
+
s(p(v), {
|
|
59
|
+
modelValue: p(e),
|
|
60
|
+
"onUpdate:modelValue": l[0] || (l[0] = (i) => w(e) ? e.value = i : e = i),
|
|
61
|
+
style: { height: "600px" }
|
|
62
|
+
}, null, 8, ["modelValue"])
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
}, 8, ["model-value", "title"]);
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
export {
|
|
70
|
+
N as default
|
|
71
|
+
};
|
|
@@ -47,9 +47,9 @@ const e = [
|
|
|
47
47
|
{ key: "下拉多选框", value: "multipleSelect" },
|
|
48
48
|
{ key: "虚拟下拉多选框", value: "virtualizedMultipleSelect" },
|
|
49
49
|
{ key: "树形下拉框", value: "treeSelect" },
|
|
50
|
+
{ key: "级联下拉框", value: "provinceCascade" },
|
|
50
51
|
{ key: "时间框", value: "date" },
|
|
51
52
|
{ key: "时间范围框", value: "dateRange" },
|
|
52
|
-
{ key: "省市区级联", value: "provinceCascade" },
|
|
53
53
|
{ key: "上传", value: "upload" },
|
|
54
54
|
{ key: "富文本", value: "editor" },
|
|
55
55
|
{ key: "switch开关", value: "switch" }
|
|
@@ -66,7 +66,7 @@ const e = [
|
|
|
66
66
|
{ key: "左对齐", value: "left" },
|
|
67
67
|
{ key: "右对齐", value: "right" }
|
|
68
68
|
], r = [
|
|
69
|
-
{ key: "
|
|
69
|
+
{ key: "默认", value: "default" },
|
|
70
70
|
{ key: "链接", value: "link" },
|
|
71
71
|
{ key: "标签", value: "tag" }
|
|
72
72
|
], i = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var $e = Object.defineProperty;
|
|
2
2
|
var qe = (e, n, i) => n in e ? $e(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var E = (e, n, i) => (qe(e, typeof n != "symbol" ? n + "" : n, i), i);
|
|
4
|
-
import { m as Qe } from "./index-
|
|
4
|
+
import { m as Qe } from "./index-a2634eef.js";
|
|
5
5
|
import "vue";
|
|
6
6
|
import "vue-router";
|
|
7
7
|
import "element-plus";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as j, inject as l, watch as q, resolveComponent as C, openBlock as r, createElementBlock as f, Fragment as y, renderList as A, 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-a2634eef.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "element-plus";
|
|
5
5
|
const z = { class: "header-operate-container" }, G = {
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
import { defineAsyncComponent as L, inject as R, reactive as fe, ref as $, watch as me, resolveComponent as y, openBlock as n, createBlock as p, withCtx as g, createElementVNode as H, createVNode as T, unref as l, createTextVNode as x, toDisplayString as K, createElementBlock as w, Fragment as A, renderList as W, mergeProps as h, createCommentVNode as J, resolveDynamicComponent as ye, isRef as be, toRaw as _e } from "vue";
|
|
2
|
+
import { b as he, e as ge, r as Ve, c as Fe, _ as Ce, u as De, P as Te, a as Ke } from "./index-a2634eef.js";
|
|
3
|
+
import { ElMessage as G, ElNotification as we } from "element-plus";
|
|
4
|
+
import "vue-router";
|
|
5
|
+
const M = he.create({
|
|
6
|
+
baseURL: "",
|
|
7
|
+
// ""
|
|
8
|
+
timeout: 15e3
|
|
9
|
+
});
|
|
10
|
+
M.interceptors.request.use(
|
|
11
|
+
(r) => {
|
|
12
|
+
let b = sessionStorage.getItem("accessToken");
|
|
13
|
+
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;
|
|
14
|
+
},
|
|
15
|
+
(r) => Promise.reject(r)
|
|
16
|
+
);
|
|
17
|
+
M.interceptors.response.use(
|
|
18
|
+
(r) => {
|
|
19
|
+
const b = r.data;
|
|
20
|
+
if (b.code == 200)
|
|
21
|
+
return b;
|
|
22
|
+
if (b.code == 401)
|
|
23
|
+
sessionStorage.clear(), Ve.replace("/"), Fe(), G.error({ title: "错误", message: "登陆超时,请重新登录" });
|
|
24
|
+
else
|
|
25
|
+
return G.error({ title: "错误", message: b.msg }), Promise.reject(b.msg);
|
|
26
|
+
},
|
|
27
|
+
(r) => {
|
|
28
|
+
if (r.response.status != -1)
|
|
29
|
+
return Promise.reject(r);
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
|
|
33
|
+
__name: "index",
|
|
34
|
+
props: {
|
|
35
|
+
visible: { type: Boolean, default: !1 },
|
|
36
|
+
title: { type: String, default: "" },
|
|
37
|
+
data: { type: Object, default: () => ({}) }
|
|
38
|
+
},
|
|
39
|
+
emits: ["update:visible", "refresh"],
|
|
40
|
+
setup(r, { emit: b }) {
|
|
41
|
+
const Q = L(() => import("./index-e2f2023d.js")), X = L(() => import("./index-a2634eef.js").then((o) => o.n)), Z = L(() => import("./index-a2634eef.js").then((o) => o.l)), { t: c } = De(), I = R("loadComponents"), E = R("formatDataType"), O = R("globalProps"), j = b, u = r;
|
|
42
|
+
let C = fe((() => ({
|
|
43
|
+
btnLoading: !1
|
|
44
|
+
}))()), N = $([]), a = $({}), U = $(null), ee = {};
|
|
45
|
+
const _ = (o) => new Function("", o.fieldUiProps)() || {}, le = (o) => o.formColumnCol == null || o.customFiledsComponentes[o.customFiledsComponentes.customComponentName] ? 24 : o.formColumnCol ? o.formColumnCol : 24 / o.formRow, oe = (o) => {
|
|
46
|
+
if (["input", "textarea"].includes(o.fieldType))
|
|
47
|
+
return "blur";
|
|
48
|
+
if (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(o.fieldType))
|
|
49
|
+
return "change";
|
|
50
|
+
}, ae = (o) => {
|
|
51
|
+
if (!["input", "textarea"].includes(o) && ["multipleSelect", "dateRange"].includes(o))
|
|
52
|
+
return [];
|
|
53
|
+
}, te = (o, f) => {
|
|
54
|
+
if (["string"].includes(f))
|
|
55
|
+
return o.join(";");
|
|
56
|
+
if (["number"].includes(f))
|
|
57
|
+
return Number(o);
|
|
58
|
+
if (["array"].includes(f))
|
|
59
|
+
return o;
|
|
60
|
+
}, de = (o) => {
|
|
61
|
+
if (["multipleSelect"].includes(o.fieldType))
|
|
62
|
+
return u.data.rowData[o.fieldKey] ? u.data.rowData[o.fieldKey].split(";") : [];
|
|
63
|
+
if (["dateRange"].includes(o.fieldType)) {
|
|
64
|
+
const f = o.fieldKey.split("&");
|
|
65
|
+
return u.data.rowData[o.fieldKey] = f.map((s) => u.data.rowData[s]), u.data.rowData[o.fieldKey];
|
|
66
|
+
}
|
|
67
|
+
return u.data.rowData[o.fieldKey];
|
|
68
|
+
}, re = (o) => M({ url: u.data.dataItem.requestUrl, method: "post", data: o });
|
|
69
|
+
me(
|
|
70
|
+
() => u.visible,
|
|
71
|
+
async (o, f) => {
|
|
72
|
+
o && (u.data.formList.sort((s, V) => s.sort - V.sort).forEach(async (s) => {
|
|
73
|
+
ee[s.fieldKey] = { submitFieldType: s.fieldSubmitType, isFormSetValue: s.isFormSetValue }, a.value[s.fieldKey] = Object.keys(u.data.rowData).length && s.isFormSetValue ? de(s) : ae(s.fieldType);
|
|
74
|
+
const { isFiledCustom: V, customComponentName: m, customComponentUrl: D } = s.customFiledsComponentes;
|
|
75
|
+
if (V && !s.customFiledsComponentes[m]) {
|
|
76
|
+
const F = await I(D, m);
|
|
77
|
+
s.customFiledsComponentes[m] = F;
|
|
78
|
+
}
|
|
79
|
+
}), console.log(u.data.formList), N.value = u.data.formList || []);
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
const se = (o) => {
|
|
83
|
+
k(), o();
|
|
84
|
+
}, k = () => {
|
|
85
|
+
N.value = [], U.value.resetFields(), j("update:visible", !1);
|
|
86
|
+
}, ne = (o) => {
|
|
87
|
+
o && o.validate((f) => {
|
|
88
|
+
if (f) {
|
|
89
|
+
C.btnLoading = !0;
|
|
90
|
+
const { dataItem: s, rowData: V } = u.data;
|
|
91
|
+
let m = { ..._e(a.value) };
|
|
92
|
+
Object.keys(m).forEach((d) => {
|
|
93
|
+
d.includes("&") ? m[d].split("&").forEach((P, S) => {
|
|
94
|
+
m[P] = m[d][S];
|
|
95
|
+
}) : Array.isArray(m[d]) && (m[d] = te(m[d], "string"));
|
|
96
|
+
});
|
|
97
|
+
const D = s.submitFields.filter((d) => d.matchType == "default").reduce((d, i) => (i.submitFieldType === "string" && (d[i.submitFieldName] = i.matchFieldName.toString()), d), {}), F = s.submitFields.filter((d) => d.matchType == "match").reduce((d, i) => (Reflect.has(i, "submitFieldMatchOrigin") && i.submitFieldMatchOrigin != "rowData" ? Reflect.has(O.matchData, i.submitFieldMatchOrigin) && (d[i.submitFieldName] = E(i.submitFieldType, O.matchData[i.submitFieldMatchOrigin][i.matchFieldName])) : d[i.submitFieldName] = E(i.submitFieldType, V[i.matchFieldName]), d), {});
|
|
98
|
+
re({
|
|
99
|
+
...m,
|
|
100
|
+
...D,
|
|
101
|
+
...F
|
|
102
|
+
}).then((d) => {
|
|
103
|
+
try {
|
|
104
|
+
we({ title: c("act.tip"), message: c("act.saveSuccessfully"), type: "success", duration: 2500 }), k(), j("refresh");
|
|
105
|
+
} catch (i) {
|
|
106
|
+
console.error(i);
|
|
107
|
+
}
|
|
108
|
+
C.btnLoading = !1;
|
|
109
|
+
}).catch((d) => {
|
|
110
|
+
console.error(d), C.btnLoading = !1;
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
return (o, f) => {
|
|
116
|
+
var q;
|
|
117
|
+
const s = y("el-input"), V = y("el-option"), m = y("el-select"), D = y("el-select-v2"), F = y("el-date-picker"), d = y("el-cascader"), i = y("el-switch"), P = y("el-form-item"), S = y("el-col"), ie = y("el-row"), ce = y("el-form"), Y = y("el-button"), ue = y("el-dialog");
|
|
118
|
+
return n(), p(ue, {
|
|
119
|
+
"model-value": u.visible,
|
|
120
|
+
title: u.title,
|
|
121
|
+
top: "5vh",
|
|
122
|
+
width: (q = r.data.formConfig) == null ? void 0 : q.dialogWidth,
|
|
123
|
+
"append-to-body": "",
|
|
124
|
+
"destroy-on-close": "",
|
|
125
|
+
"close-on-click-modal": !1,
|
|
126
|
+
"before-close": se
|
|
127
|
+
}, {
|
|
128
|
+
footer: g(() => [
|
|
129
|
+
H("span", Ue, [
|
|
130
|
+
T(Y, {
|
|
131
|
+
loading: l(C).btnLoading,
|
|
132
|
+
onClick: k
|
|
133
|
+
}, {
|
|
134
|
+
default: g(() => [
|
|
135
|
+
x(K(l(c)("act.cancel")), 1)
|
|
136
|
+
]),
|
|
137
|
+
_: 1
|
|
138
|
+
}, 8, ["loading"]),
|
|
139
|
+
T(Y, {
|
|
140
|
+
type: "primary",
|
|
141
|
+
loading: l(C).btnLoading,
|
|
142
|
+
onClick: f[1] || (f[1] = (v) => ne(l(U)))
|
|
143
|
+
}, {
|
|
144
|
+
default: g(() => [
|
|
145
|
+
x(K(l(c)("act.save")), 1)
|
|
146
|
+
]),
|
|
147
|
+
_: 1
|
|
148
|
+
}, 8, ["loading"])
|
|
149
|
+
])
|
|
150
|
+
]),
|
|
151
|
+
default: g(() => {
|
|
152
|
+
var v, B;
|
|
153
|
+
return [
|
|
154
|
+
T(ce, {
|
|
155
|
+
ref_key: "formRef",
|
|
156
|
+
ref: U,
|
|
157
|
+
model: l(a),
|
|
158
|
+
"label-suffix": ":",
|
|
159
|
+
"label-width": (v = r.data.formConfig) == null ? void 0 : v.formLabelWidth,
|
|
160
|
+
"label-position": (B = r.data.formConfig) == null ? void 0 : B.formLabelPosition
|
|
161
|
+
}, {
|
|
162
|
+
default: g(() => [
|
|
163
|
+
T(ie, { gutter: 40 }, {
|
|
164
|
+
default: g(() => [
|
|
165
|
+
(n(!0), w(A, null, W(l(N), (e, z) => (n(), p(S, {
|
|
166
|
+
span: le(e),
|
|
167
|
+
key: z
|
|
168
|
+
}, {
|
|
169
|
+
default: g(() => [
|
|
170
|
+
e.customFiledsComponentes.isFiledCustom ? (n(), w(A, { key: 1 }, [
|
|
171
|
+
e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (n(), p(ye(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
|
|
172
|
+
key: 0,
|
|
173
|
+
fieldCofnigItem: e,
|
|
174
|
+
rowData: u.data.rowData,
|
|
175
|
+
form: l(a),
|
|
176
|
+
"onUpdate:form": f[0] || (f[0] = (t) => be(a) ? a.value = t : a = t)
|
|
177
|
+
}, null, 40, ["fieldCofnigItem", "rowData", "form"])) : (n(), w("div", {
|
|
178
|
+
class: "no-config",
|
|
179
|
+
key: z
|
|
180
|
+
}, [
|
|
181
|
+
H("span", Ne, "【" + K(e.fieldName) + "】", 1),
|
|
182
|
+
x(K(l(c)("act.fieldCustom")), 1)
|
|
183
|
+
]))
|
|
184
|
+
], 64)) : (n(), p(P, {
|
|
185
|
+
key: 0,
|
|
186
|
+
label: e.fieldName,
|
|
187
|
+
prop: e.fieldKey,
|
|
188
|
+
rules: [{ required: e.isFormFieldRequired, message: l(c)("act.requiredMessage"), trigger: oe(e) }]
|
|
189
|
+
}, {
|
|
190
|
+
default: g(() => [
|
|
191
|
+
e.fieldType === "input" ? (n(), p(s, h({
|
|
192
|
+
key: 0,
|
|
193
|
+
modelValue: l(a)[e.fieldKey],
|
|
194
|
+
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
195
|
+
placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
|
|
196
|
+
clearable: "",
|
|
197
|
+
ref_for: !0
|
|
198
|
+
}, _(e), {
|
|
199
|
+
disabled: e.isFormDisabled
|
|
200
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : J("", !0),
|
|
201
|
+
e.fieldType === "inputNumber" ? (n(), p(l(Q), h({
|
|
202
|
+
key: 1,
|
|
203
|
+
modelValue: l(a)[e.fieldKey],
|
|
204
|
+
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
205
|
+
placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
|
|
206
|
+
clearable: "",
|
|
207
|
+
ref_for: !0
|
|
208
|
+
}, _(e), {
|
|
209
|
+
disabled: e.isFormDisabled
|
|
210
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (n(), p(s, h({
|
|
211
|
+
key: 2,
|
|
212
|
+
modelValue: l(a)[e.fieldKey],
|
|
213
|
+
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
214
|
+
placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
|
|
215
|
+
rows: 4,
|
|
216
|
+
ref_for: !0
|
|
217
|
+
}, _(e), {
|
|
218
|
+
type: "textarea",
|
|
219
|
+
disabled: e.isFormDisabled
|
|
220
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (n(), p(m, h({
|
|
221
|
+
key: 3,
|
|
222
|
+
modelValue: l(a)[e.fieldKey],
|
|
223
|
+
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
224
|
+
placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
|
|
225
|
+
clearable: "",
|
|
226
|
+
filterable: "",
|
|
227
|
+
ref_for: !0
|
|
228
|
+
}, _(e), {
|
|
229
|
+
multiple: e.fieldType === "multipleSelect",
|
|
230
|
+
disabled: e.isFormDisabled
|
|
231
|
+
}), {
|
|
232
|
+
default: g(() => [
|
|
233
|
+
(n(!0), w(A, null, W(e.dataList, (t, pe) => (n(), p(V, {
|
|
234
|
+
key: pe,
|
|
235
|
+
label: t.key,
|
|
236
|
+
value: t.value
|
|
237
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
238
|
+
]),
|
|
239
|
+
_: 2
|
|
240
|
+
}, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (n(), p(D, h({
|
|
241
|
+
key: 4,
|
|
242
|
+
modelValue: l(a)[e.fieldKey],
|
|
243
|
+
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
244
|
+
options: e.dataList,
|
|
245
|
+
props: { ...l(Te) },
|
|
246
|
+
placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
|
|
247
|
+
clearable: "",
|
|
248
|
+
filterable: "",
|
|
249
|
+
ref_for: !0
|
|
250
|
+
}, _(e), {
|
|
251
|
+
disabled: e.isFormDisabled,
|
|
252
|
+
multiple: e.fieldType === "virtualizedMultipleSelect"
|
|
253
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "date" ? (n(), p(F, h({
|
|
254
|
+
key: 5,
|
|
255
|
+
modelValue: l(a)[e.fieldKey],
|
|
256
|
+
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
257
|
+
type: "date",
|
|
258
|
+
placeholder: `${l(c)("act.selectPlaceholder")}${l(c)("act.time")}`,
|
|
259
|
+
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
260
|
+
ref_for: !0
|
|
261
|
+
}, _(e), {
|
|
262
|
+
disabled: e.isFormDisabled
|
|
263
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (n(), p(F, h({
|
|
264
|
+
key: 6,
|
|
265
|
+
modelValue: l(a)[e.fieldKey],
|
|
266
|
+
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
267
|
+
type: "daterange",
|
|
268
|
+
"start-placeholder": l(c)("act.startTime"),
|
|
269
|
+
"end-placeholder": l(c)("act.endTime"),
|
|
270
|
+
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
271
|
+
ref_for: !0
|
|
272
|
+
}, _(e), {
|
|
273
|
+
disabled: e.isFormDisabled
|
|
274
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (n(), p(d, h({
|
|
275
|
+
key: 7,
|
|
276
|
+
modelValue: l(a)[e.fieldKey],
|
|
277
|
+
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
278
|
+
options: e.dataList,
|
|
279
|
+
props: l(Ke),
|
|
280
|
+
clearable: "",
|
|
281
|
+
filterable: "",
|
|
282
|
+
placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
|
|
283
|
+
ref_for: !0
|
|
284
|
+
}, _(e), {
|
|
285
|
+
disabled: e.isFormDisabled
|
|
286
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (n(), p(i, {
|
|
287
|
+
key: 8,
|
|
288
|
+
modelValue: l(a)[e.fieldKey],
|
|
289
|
+
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
290
|
+
"active-value": !0,
|
|
291
|
+
"inactive-value": !1
|
|
292
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (n(), p(l(X), h({
|
|
293
|
+
key: 9,
|
|
294
|
+
class: "form-upload",
|
|
295
|
+
modelValue: l(a)[e.fieldKey],
|
|
296
|
+
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
297
|
+
ref_for: !0
|
|
298
|
+
}, _(e)), null, 16, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "editor" ? (n(), p(l(Z), h({
|
|
299
|
+
key: 10,
|
|
300
|
+
modelValue: l(a)[e.fieldKey],
|
|
301
|
+
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
302
|
+
disabled: e.isFormDisabled,
|
|
303
|
+
placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
|
|
304
|
+
ref_for: !0
|
|
305
|
+
}, _(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : J("", !0)
|
|
306
|
+
]),
|
|
307
|
+
_: 2
|
|
308
|
+
}, 1032, ["label", "prop", "rules"]))
|
|
309
|
+
]),
|
|
310
|
+
_: 2
|
|
311
|
+
}, 1032, ["span"]))), 128))
|
|
312
|
+
]),
|
|
313
|
+
_: 1
|
|
314
|
+
})
|
|
315
|
+
]),
|
|
316
|
+
_: 1
|
|
317
|
+
}, 8, ["model", "label-width", "label-position"])
|
|
318
|
+
];
|
|
319
|
+
}),
|
|
320
|
+
_: 1
|
|
321
|
+
}, 8, ["model-value", "title", "width"]);
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
}, $e = /* @__PURE__ */ Ce(ke, [["__scopeId", "data-v-4734dc60"]]);
|
|
325
|
+
export {
|
|
326
|
+
$e as default
|
|
327
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { reactive as m, watch as v, resolveComponent as s, openBlock as b, createBlock as g, withCtx as o, createElementVNode as i, createVNode as x, createTextVNode as y, toDisplayString as h, unref as C } from "vue";
|
|
2
|
-
import { _ as k, u as V } from "./index-
|
|
2
|
+
import { _ as k, u as V } from "./index-a2634eef.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "element-plus";
|
|
5
5
|
const w = ["innerHTML"], B = { class: "dialog-footer" }, D = {
|