act-plus 1.1.82 → 1.1.84
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 +57 -57
- package/lib/{dialogAddField-2e9cd8dd.js → dialogAddField-5a12c821.js} +33 -33
- package/lib/{dialogConfigBtn-f03ef8a6.js → dialogConfigBtn-5b777690.js} +21 -21
- package/lib/{dialogSiteComponentsParams-86be6478.js → dialogSiteComponentsParams-7c830b4e.js} +7 -7
- package/lib/{index-7a82a0bc.js → index-2cdc185b.js} +113 -105
- package/lib/{index-4c83efe5.js → index-2e75da76.js} +2 -2
- package/lib/{index-b33bb0e0.js → index-45d7068f.js} +4 -4
- package/lib/{index-d69cc7dd.js → index-64e8b70b.js} +65 -64
- package/lib/{index-49c791d2.js → index-7b30e3ea.js} +1 -1
- package/lib/{index-46cda8de.js → index-a2fdd8b1.js} +5 -5
- package/lib/{index-a34395ac.js → index-c4aa6529.js} +18 -25
- package/lib/{index-66a60f4b.js → index-dd748976.js} +31 -45
- package/lib/{index-2e399e7e.js → index-e475caac.js} +1396 -1363
- package/lib/{index-753b774f.js → index-e96339f5.js} +4788 -4535
- package/package.json +16 -16
- package/style.css +1 -1
|
@@ -1,187 +1,188 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { _ as
|
|
1
|
+
import { ref as K, inject as p, computed as Q, watch as U, resolveComponent as g, resolveDirective as W, openBlock as t, createElementBlock as m, Fragment as C, renderList as I, createBlock as a, resolveDynamicComponent as F, unref as d, withCtx as r, withDirectives as k, createCommentVNode as f, createTextVNode as h, toDisplayString as B, createVNode as N } from "vue";
|
|
2
|
+
import { _ as X, u as Y, c as Z } from "./index-e475caac.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "element-plus";
|
|
5
|
-
const
|
|
5
|
+
const ee = { class: "header-operate-container" }, ne = {
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
8
8
|
data: { type: Object, default: () => ({}) }
|
|
9
9
|
},
|
|
10
10
|
emits: ["onOperate"],
|
|
11
11
|
setup(P, { emit: M }) {
|
|
12
|
-
const R = M, y = P, { t: w } =
|
|
13
|
-
let
|
|
14
|
-
const A =
|
|
12
|
+
const R = M, y = P, { t: w } = Y();
|
|
13
|
+
let b = K([]);
|
|
14
|
+
const A = p("globalProps"), O = p("menuPermissionBtns"), j = p("stringToBoolean"), q = p("matchCondition"), x = p("getTableData"), D = p("tableBtnRefs"), E = p("refreshTable"), v = Q(() => {
|
|
15
15
|
const {
|
|
16
16
|
tableConfig: { headerMoreBtnSplitNumber: o }
|
|
17
17
|
} = y.data;
|
|
18
|
-
return !o || o >=
|
|
19
|
-
}),
|
|
18
|
+
return !o || o >= b.value.length;
|
|
19
|
+
}), H = () => {
|
|
20
20
|
const {
|
|
21
21
|
tableConfig: { headerMoreBtnSplitNumber: o }
|
|
22
22
|
} = y.data;
|
|
23
|
-
return v.value ?
|
|
24
|
-
},
|
|
23
|
+
return v.value ? b.value : b.value.slice(0, o);
|
|
24
|
+
}, L = () => {
|
|
25
25
|
var n;
|
|
26
26
|
const {
|
|
27
27
|
tableConfig: { headerMoreBtnSplitNumber: o }
|
|
28
28
|
} = y.data;
|
|
29
|
-
return v.value ? [] :
|
|
30
|
-
},
|
|
29
|
+
return v.value ? [] : b.value.slice(o, (n = b.value) == null ? void 0 : n.length);
|
|
30
|
+
}, z = (o) => {
|
|
31
31
|
if (!o.matchFields.length)
|
|
32
32
|
return !0;
|
|
33
|
-
const n = o.matchFields.filter((
|
|
34
|
-
let $ = n.reduce((
|
|
35
|
-
const e =
|
|
36
|
-
return
|
|
37
|
-
|
|
33
|
+
const n = o.matchFields.filter((l) => l.matchType != "default"), i = (l) => A.matchData[l.matchType][l.matchFieldName];
|
|
34
|
+
let $ = n.reduce((l, s, u) => {
|
|
35
|
+
const e = i(s);
|
|
36
|
+
return l += q(
|
|
37
|
+
s.matchCondition,
|
|
38
38
|
e,
|
|
39
|
-
|
|
40
|
-
),
|
|
41
|
-
}, "").split("||"),
|
|
42
|
-
return new Function(`return ${
|
|
43
|
-
}, V = (o) => O.value.some((n) => n.unique == o.permissionCode) &&
|
|
44
|
-
|
|
39
|
+
s.fieldValue == "" ? null : s.fieldValue == "true" || s.fieldValue == "false" ? j(s.fieldValue) : s.fieldValue
|
|
40
|
+
), u !== n.length - 1 && (l += s.spliceCondition || "&&"), l;
|
|
41
|
+
}, "").split("||"), S = $.reduce((l, s, u) => (l += `(${s})`, u < $.length - 1 && (l += "||"), l), "");
|
|
42
|
+
return new Function(`return ${S}`)();
|
|
43
|
+
}, V = (o) => O.value.some((n) => n.unique == o.permissionCode) && z(o), G = (o) => {
|
|
44
|
+
b.value = (o || []).filter((n) => n.permissionCode !== 1001 && n.btnPostion.includes("header")).sort((n, i) => n.sort - i.sort).map((n) => (n.btnAlias && (n.btnName = n.btnAlias), Reflect.has(n, "isPromptVerificationSelectTable") || (n.isPromptVerificationSelectTable = "1"), n));
|
|
45
45
|
};
|
|
46
|
-
|
|
46
|
+
U(
|
|
47
47
|
() => y.data,
|
|
48
48
|
(o, n) => {
|
|
49
|
-
|
|
49
|
+
G(o.buttons);
|
|
50
50
|
},
|
|
51
51
|
{ immediate: !0 }
|
|
52
52
|
);
|
|
53
|
-
const
|
|
53
|
+
const T = (o) => {
|
|
54
54
|
R("onOperate", o, {});
|
|
55
55
|
};
|
|
56
56
|
return (o, n) => {
|
|
57
|
-
const
|
|
58
|
-
return t(), m("div",
|
|
59
|
-
(t(!0), m(C, null, I(
|
|
57
|
+
const i = g("a-svg-icon"), _ = g("el-button"), $ = g("el-icon"), S = g("el-dropdown-item"), l = g("el-dropdown-menu"), s = g("el-dropdown"), u = W("debounce");
|
|
58
|
+
return t(), m("div", ee, [
|
|
59
|
+
(t(!0), m(C, null, I(H(), (e, J) => (t(), m(C, {
|
|
60
60
|
key: e.permissionCode
|
|
61
61
|
}, [
|
|
62
62
|
V(e) ? (t(), m(C, { key: 0 }, [
|
|
63
|
-
e.isCustomBtn && e.customType == "component" ? (t(),
|
|
63
|
+
e.isCustomBtn && e.customType == "component" ? (t(), a(F(e[e.customComponentName]), {
|
|
64
64
|
key: 0,
|
|
65
65
|
class: "custom-btn",
|
|
66
66
|
ref_for: !0,
|
|
67
|
-
ref: (
|
|
67
|
+
ref: (c) => d(D)[`${e.customComponentName}-${e.permissionCode}`] = c,
|
|
68
68
|
buttonData: e,
|
|
69
|
-
onRefresh: n[0] || (n[0] = (
|
|
69
|
+
onRefresh: n[0] || (n[0] = (c) => d(x)()),
|
|
70
|
+
onRefreshTable: n[1] || (n[1] = (c) => d(E)())
|
|
70
71
|
}, {
|
|
71
72
|
default: r(() => [
|
|
72
|
-
k((t(),
|
|
73
|
+
k((t(), a(_, {
|
|
73
74
|
class: "el-btn",
|
|
74
75
|
type: e.btnColor,
|
|
75
76
|
loading: e[`loading${e.permissionCode}`],
|
|
76
|
-
onClick: (
|
|
77
|
+
onClick: (c) => T(e)
|
|
77
78
|
}, {
|
|
78
79
|
default: r(() => [
|
|
79
|
-
e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(),
|
|
80
|
+
e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), a(i, {
|
|
80
81
|
key: 0,
|
|
81
82
|
class: "mr4",
|
|
82
83
|
name: e.btnIcon,
|
|
83
84
|
width: "12",
|
|
84
85
|
height: "12",
|
|
85
86
|
color: "#fff"
|
|
86
|
-
}, null, 8, ["name"])) :
|
|
87
|
+
}, null, 8, ["name"])) : f("", !0),
|
|
87
88
|
h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + d(w)("act.loading") + "..." : e.btnName), 1)
|
|
88
89
|
]),
|
|
89
90
|
_: 2
|
|
90
91
|
}, 1032, ["type", "loading", "onClick"])), [
|
|
91
|
-
[
|
|
92
|
+
[u]
|
|
92
93
|
])
|
|
93
94
|
]),
|
|
94
95
|
_: 2
|
|
95
|
-
}, 1064, ["buttonData"])) : k((t(),
|
|
96
|
+
}, 1064, ["buttonData"])) : k((t(), a(_, {
|
|
96
97
|
key: 1,
|
|
97
98
|
class: "el-btn",
|
|
98
99
|
type: e.btnColor,
|
|
99
100
|
loading: e[`loading${e.permissionCode}`],
|
|
100
|
-
onClick: (
|
|
101
|
+
onClick: (c) => T(e)
|
|
101
102
|
}, {
|
|
102
103
|
default: r(() => [
|
|
103
|
-
e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(),
|
|
104
|
+
e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), a(i, {
|
|
104
105
|
key: 0,
|
|
105
106
|
class: "mr4",
|
|
106
107
|
name: e.btnIcon,
|
|
107
108
|
width: "12",
|
|
108
109
|
height: "12",
|
|
109
110
|
color: "#fff"
|
|
110
|
-
}, null, 8, ["name"])) :
|
|
111
|
+
}, null, 8, ["name"])) : f("", !0),
|
|
111
112
|
h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + d(w)("act.loading") + "..." : e.btnName), 1)
|
|
112
113
|
]),
|
|
113
114
|
_: 2
|
|
114
115
|
}, 1032, ["type", "loading", "onClick"])), [
|
|
115
|
-
[
|
|
116
|
+
[u]
|
|
116
117
|
])
|
|
117
|
-
], 64)) :
|
|
118
|
+
], 64)) : f("", !0)
|
|
118
119
|
], 64))), 128)),
|
|
119
|
-
v.value ?
|
|
120
|
+
v.value ? f("", !0) : (t(), a(s, {
|
|
120
121
|
key: 0,
|
|
121
122
|
class: "header-opreate-dropdown"
|
|
122
123
|
}, {
|
|
123
124
|
dropdown: r(() => [
|
|
124
|
-
N(
|
|
125
|
+
N(l, null, {
|
|
125
126
|
default: r(() => [
|
|
126
|
-
(t(!0), m(C, null, I(
|
|
127
|
+
(t(!0), m(C, null, I(L(), (e, J) => (t(), a(S, {
|
|
127
128
|
key: e.permissionCode,
|
|
128
|
-
onClick: (
|
|
129
|
+
onClick: (c) => T(e)
|
|
129
130
|
}, {
|
|
130
131
|
default: r(() => [
|
|
131
132
|
V(e) ? (t(), m(C, { key: 0 }, [
|
|
132
|
-
e.isCustomBtn && e.customType == "component" ? (t(),
|
|
133
|
+
e.isCustomBtn && e.customType == "component" ? (t(), a(F(e[e.customComponentName]), {
|
|
133
134
|
key: 0,
|
|
134
135
|
class: "custom-btn",
|
|
135
136
|
ref_for: !0,
|
|
136
|
-
ref: (
|
|
137
|
+
ref: (c) => d(D)[`${e.customComponentName}-${e.permissionCode}`] = c,
|
|
137
138
|
buttonData: e,
|
|
138
|
-
onRefresh: n[
|
|
139
|
+
onRefresh: n[2] || (n[2] = (c) => d(x)())
|
|
139
140
|
}, {
|
|
140
141
|
default: r(() => [
|
|
141
|
-
k((t(),
|
|
142
|
+
k((t(), a(_, {
|
|
142
143
|
class: "el-btn",
|
|
143
144
|
type: e.btnColor,
|
|
144
145
|
loading: e[`loading${e.permissionCode}`]
|
|
145
146
|
}, {
|
|
146
147
|
default: r(() => [
|
|
147
|
-
e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(),
|
|
148
|
+
e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), a(i, {
|
|
148
149
|
key: 0,
|
|
149
150
|
class: "mr4",
|
|
150
151
|
name: e.btnIcon,
|
|
151
152
|
width: "12",
|
|
152
153
|
height: "12",
|
|
153
154
|
color: "#fff"
|
|
154
|
-
}, null, 8, ["name"])) :
|
|
155
|
+
}, null, 8, ["name"])) : f("", !0),
|
|
155
156
|
h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + d(w)("act.loading") + "..." : e.btnName), 1)
|
|
156
157
|
]),
|
|
157
158
|
_: 2
|
|
158
159
|
}, 1032, ["type", "loading"])), [
|
|
159
|
-
[
|
|
160
|
+
[u]
|
|
160
161
|
])
|
|
161
162
|
]),
|
|
162
163
|
_: 2
|
|
163
|
-
}, 1064, ["buttonData"])) : k((t(),
|
|
164
|
+
}, 1064, ["buttonData"])) : k((t(), a(_, {
|
|
164
165
|
key: 1,
|
|
165
166
|
class: "el-btn",
|
|
166
167
|
type: e.btnColor,
|
|
167
168
|
loading: e[`loading${e.permissionCode}`]
|
|
168
169
|
}, {
|
|
169
170
|
default: r(() => [
|
|
170
|
-
e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(),
|
|
171
|
+
e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), a(i, {
|
|
171
172
|
key: 0,
|
|
172
173
|
class: "mr4",
|
|
173
174
|
name: e.btnIcon,
|
|
174
175
|
width: "12",
|
|
175
176
|
height: "12",
|
|
176
177
|
color: "#fff"
|
|
177
|
-
}, null, 8, ["name"])) :
|
|
178
|
+
}, null, 8, ["name"])) : f("", !0),
|
|
178
179
|
h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + d(w)("act.loading") + "..." : e.btnName), 1)
|
|
179
180
|
]),
|
|
180
181
|
_: 2
|
|
181
182
|
}, 1032, ["type", "loading"])), [
|
|
182
|
-
[
|
|
183
|
+
[u]
|
|
183
184
|
])
|
|
184
|
-
], 64)) :
|
|
185
|
+
], 64)) : f("", !0)
|
|
185
186
|
]),
|
|
186
187
|
_: 2
|
|
187
188
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -190,12 +191,12 @@ const Z = { class: "header-operate-container" }, ee = {
|
|
|
190
191
|
})
|
|
191
192
|
]),
|
|
192
193
|
default: r(() => [
|
|
193
|
-
N(
|
|
194
|
+
N(_, { type: "primary" }, {
|
|
194
195
|
default: r(() => [
|
|
195
|
-
n[
|
|
196
|
+
n[3] || (n[3] = h(" 更多按钮", -1)),
|
|
196
197
|
N($, { class: "el-icon--right" }, {
|
|
197
198
|
default: r(() => [
|
|
198
|
-
N(d(
|
|
199
|
+
N(d(Z))
|
|
199
200
|
]),
|
|
200
201
|
_: 1
|
|
201
202
|
})
|
|
@@ -208,7 +209,7 @@ const Z = { class: "header-operate-container" }, ee = {
|
|
|
208
209
|
]);
|
|
209
210
|
};
|
|
210
211
|
}
|
|
211
|
-
},
|
|
212
|
+
}, ae = /* @__PURE__ */ X(ne, [["__scopeId", "data-v-d86fe71c"]]);
|
|
212
213
|
export {
|
|
213
|
-
|
|
214
|
+
ae as default
|
|
214
215
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as N, watch as O, resolveComponent as u, resolveDirective as T, openBlock as l, createElementBlock as p, withDirectives as j, createBlock as i, mergeProps as D, withCtx as g, createTextVNode as W, toDisplayString as A, unref as y, Fragment as c, renderList as H, renderSlot as w, createCommentVNode as U, nextTick as b } from "vue";
|
|
2
|
-
import { _ as V, u as $ } from "./index-
|
|
2
|
+
import { _ as V, u as $ } from "./index-e475caac.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "element-plus";
|
|
5
5
|
const F = { class: "act-table" }, L = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { reactive as m, watch as
|
|
2
|
-
import { _ as k, u as w } from "./index-
|
|
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 w } from "./index-e475caac.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "element-plus";
|
|
5
5
|
const V = ["innerHTML"], B = { class: "dialog-footer" }, D = {
|
|
@@ -15,7 +15,7 @@ const V = ["innerHTML"], B = { class: "dialog-footer" }, D = {
|
|
|
15
15
|
let a = m((() => ({
|
|
16
16
|
loading: !1
|
|
17
17
|
}))());
|
|
18
|
-
|
|
18
|
+
v(
|
|
19
19
|
() => t.visible,
|
|
20
20
|
async (e, p) => {
|
|
21
21
|
e && (a.loading = !0, a.loading = !1);
|
|
@@ -28,7 +28,7 @@ const V = ["innerHTML"], B = { class: "dialog-footer" }, D = {
|
|
|
28
28
|
};
|
|
29
29
|
return (e, p) => {
|
|
30
30
|
const f = s("el-button"), u = s("el-dialog");
|
|
31
|
-
return
|
|
31
|
+
return b(), g(u, {
|
|
32
32
|
"model-value": t.visible,
|
|
33
33
|
title: t.title,
|
|
34
34
|
top: "5vh",
|
|
@@ -59,7 +59,7 @@ const V = ["innerHTML"], B = { class: "dialog-footer" }, D = {
|
|
|
59
59
|
}, 8, ["model-value", "title"]);
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
|
-
}, M = /* @__PURE__ */ k(D, [["__scopeId", "data-v-
|
|
62
|
+
}, M = /* @__PURE__ */ k(D, [["__scopeId", "data-v-95be1288"]]);
|
|
63
63
|
export {
|
|
64
64
|
M as default
|
|
65
65
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineAsyncComponent as de, inject as h, ref as q, watch as pe, resolveComponent as y, resolveDirective as ce, unref as t, openBlock as r, createElementBlock as _, createVNode as ie, normalizeStyle as fe, withCtx as T, Fragment as k, renderList as M, createBlock as d, mergeProps as m, withKeys as H, withModifiers as K, createCommentVNode as g, resolveDynamicComponent as ye, createElementVNode as me, toDisplayString as R, createTextVNode as O, withDirectives as Ve } from "vue";
|
|
2
|
-
import { _ as be, u as Ce, P as _e, a as he, b as W } from "./index-
|
|
2
|
+
import { _ as be, u as Ce, P as _e, a as he, b as W } from "./index-e475caac.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "element-plus";
|
|
5
5
|
const ge = {
|
|
@@ -129,9 +129,8 @@ const ge = {
|
|
|
129
129
|
modelValue: e.queryValue,
|
|
130
130
|
"onUpdate:modelValue": (a) => e.queryValue = a,
|
|
131
131
|
placeholder: `${t(p)("act.inputPlaceholder")}${e.fieldName}`,
|
|
132
|
-
clearable: ""
|
|
133
|
-
|
|
134
|
-
}, t(i)(e), {
|
|
132
|
+
clearable: ""
|
|
133
|
+
}, { ref_for: !0 }, t(i)(e), {
|
|
135
134
|
onKeyup: l[0] || (l[0] = H(K((a) => c({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"])),
|
|
136
135
|
onClear: se
|
|
137
136
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : g("", !0),
|
|
@@ -141,17 +140,15 @@ const ge = {
|
|
|
141
140
|
"onUpdate:modelValue": (a) => e.queryValue = a,
|
|
142
141
|
placeholder: `${t(p)("act.inputPlaceholder")}${e.fieldName}`,
|
|
143
142
|
clearable: "",
|
|
144
|
-
onKeyup: l[1] || (l[1] = H(K((a) => c({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"]))
|
|
145
|
-
|
|
146
|
-
}, t(i)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : ["select", "switch", "multipleSelect"].includes(e.fieldType) ? (r(), d($, m({
|
|
143
|
+
onKeyup: l[1] || (l[1] = H(K((a) => c({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"]))
|
|
144
|
+
}, { ref_for: !0 }, t(i)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : ["select", "switch", "multipleSelect"].includes(e.fieldType) ? (r(), d($, m({
|
|
147
145
|
key: 2,
|
|
148
146
|
modelValue: e.queryValue,
|
|
149
147
|
"onUpdate:modelValue": (a) => e.queryValue = a,
|
|
150
148
|
placeholder: `${t(p)("act.selectPlaceholder")}${e.fieldName}`,
|
|
151
149
|
clearable: "",
|
|
152
|
-
filterable: ""
|
|
153
|
-
|
|
154
|
-
}, t(i)(e), {
|
|
150
|
+
filterable: ""
|
|
151
|
+
}, { ref_for: !0 }, t(i)(e), {
|
|
155
152
|
multiple: e.fieldType === "multipleSelect",
|
|
156
153
|
"collapse-tags": e.fieldType === "multipleSelect",
|
|
157
154
|
"collapse-tags-tooltip": e.fieldType === "multipleSelect",
|
|
@@ -173,9 +170,8 @@ const ge = {
|
|
|
173
170
|
props: { ...t(_e) },
|
|
174
171
|
placeholder: `${t(p)("act.selectPlaceholder")}${e.fieldName}`,
|
|
175
172
|
clearable: "",
|
|
176
|
-
filterable: ""
|
|
177
|
-
|
|
178
|
-
}, t(i)(e), {
|
|
173
|
+
filterable: ""
|
|
174
|
+
}, { ref_for: !0 }, t(i)(e), {
|
|
179
175
|
"collapse-tags": e.fieldType === "virtualizedMultipleSelect",
|
|
180
176
|
"collapse-tags-tooltip": e.fieldType === "virtualizedMultipleSelect",
|
|
181
177
|
multiple: e.fieldType === "virtualizedMultipleSelect",
|
|
@@ -188,9 +184,8 @@ const ge = {
|
|
|
188
184
|
props: { ...t(he) },
|
|
189
185
|
clearable: "",
|
|
190
186
|
filterable: "",
|
|
191
|
-
placeholder: `${t(p)("act.selectPlaceholder")}${e.fieldName}
|
|
192
|
-
|
|
193
|
-
}, t(i)(e), {
|
|
187
|
+
placeholder: `${t(p)("act.selectPlaceholder")}${e.fieldName}`
|
|
188
|
+
}, { ref_for: !0 }, t(i)(e), {
|
|
194
189
|
onChange: l[4] || (l[4] = (a) => c({ permissionCode: 1001 }))
|
|
195
190
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder"])) : e.fieldType === "fullLoadTreeSelect" ? (r(), d(U, m({
|
|
196
191
|
key: 5,
|
|
@@ -208,7 +203,7 @@ const ge = {
|
|
|
208
203
|
"show-checkbox": "",
|
|
209
204
|
clearable: "",
|
|
210
205
|
filterable: ""
|
|
211
|
-
}, t(i)(e), {
|
|
206
|
+
}, { ref_for: !0 }, t(i)(e), {
|
|
212
207
|
onChange: l[5] || (l[5] = (a) => c({ permissionCode: 1001 }))
|
|
213
208
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "data", "placeholder", "props"])) : e.fieldType === "treeSelect" ? (r(), d(U, m({
|
|
214
209
|
key: 6,
|
|
@@ -227,7 +222,7 @@ const ge = {
|
|
|
227
222
|
filterable: "",
|
|
228
223
|
lazy: "",
|
|
229
224
|
load: (a, F) => re({ node: a, resolve: F }, e)
|
|
230
|
-
}, t(i)(e), {
|
|
225
|
+
}, { ref_for: !0 }, t(i)(e), {
|
|
231
226
|
onChange: l[6] || (l[6] = (a) => c({ permissionCode: 1001 }))
|
|
232
227
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "load"])) : e.fieldType === "date" ? (r(), d(D, m({
|
|
233
228
|
key: 7,
|
|
@@ -236,9 +231,8 @@ const ge = {
|
|
|
236
231
|
type: "date",
|
|
237
232
|
placeholder: `${t(p)("act.selectPlaceholder")}${t(p)("act.time")}`,
|
|
238
233
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
239
|
-
clearable: ""
|
|
240
|
-
|
|
241
|
-
}, t(i)(e), {
|
|
234
|
+
clearable: ""
|
|
235
|
+
}, { ref_for: !0 }, t(i)(e), {
|
|
242
236
|
onChange: l[7] || (l[7] = (a) => c({ permissionCode: 1001 }))
|
|
243
237
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : e.fieldType === "dateRange" ? (r(), d(D, m({
|
|
244
238
|
key: 8,
|
|
@@ -248,9 +242,8 @@ const ge = {
|
|
|
248
242
|
"start-placeholder": t(p)("act.startTime"),
|
|
249
243
|
"end-placeholder": t(p)("act.endTime"),
|
|
250
244
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
251
|
-
clearable: ""
|
|
252
|
-
|
|
253
|
-
}, t(i)(e), {
|
|
245
|
+
clearable: ""
|
|
246
|
+
}, { ref_for: !0 }, t(i)(e), {
|
|
254
247
|
onChange: l[8] || (l[8] = (a) => c({ permissionCode: 1001 }))
|
|
255
248
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder"])) : g("", !0)
|
|
256
249
|
]),
|
|
@@ -307,7 +300,7 @@ const ge = {
|
|
|
307
300
|
])) : g("", !0);
|
|
308
301
|
};
|
|
309
302
|
}
|
|
310
|
-
}, Ue = /* @__PURE__ */ be(Te, [["__scopeId", "data-v-
|
|
303
|
+
}, Ue = /* @__PURE__ */ be(Te, [["__scopeId", "data-v-cdf7c817"]]);
|
|
311
304
|
export {
|
|
312
305
|
Ue as default
|
|
313
306
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineAsyncComponent as O, inject as D, ref as N, watch as De, resolveComponent as _, resolveDirective as le, openBlock as u, createBlock as y, withCtx as K, createElementVNode as ae, createVNode as oe, createTextVNode as J, toDisplayString as A, unref as d, withDirectives as te, createElementBlock as L, Fragment as x, renderList as Q, mergeProps as v, createCommentVNode as se, resolveDynamicComponent as we, toRaw as Ne } from "vue";
|
|
2
|
-
import { _ as ke, u as Ue, P as Pe, b as re, a as Se } from "./index-
|
|
2
|
+
import { _ as ke, u as Ue, P as Pe, b as re, a as Se } from "./index-e475caac.js";
|
|
3
3
|
import { ElNotification as Le } from "element-plus";
|
|
4
4
|
import "vue-router";
|
|
5
5
|
const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
@@ -11,7 +11,7 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
11
11
|
},
|
|
12
12
|
emits: ["update:visible", "refresh"],
|
|
13
13
|
setup(k, { emit: de }) {
|
|
14
|
-
const ie = O(() => import("./index-e2f2023d.js")), ne = O(() => import("./index-
|
|
14
|
+
const ie = O(() => import("./index-e2f2023d.js")), ne = O(() => import("./index-45d7068f.js")), ue = O(() => import("./index-2e75da76.js")), ce = O(() => import("./index-2cdc185b.js")), { t: h } = Ue(), q = D("request"), fe = D("loadComponents"), w = D("formatDataType"), M = D("globalProps"), pe = D("stringToBoolean"), b = D("getFieldUiProps"), me = D("disposeRequestData"), X = de, p = k, R = N(!1), U = N(!1), E = N(null), P = N([]), o = N({}), j = N({}), ye = (l) => l.formColumnCol == null ? 24 : l.formColumnCol ? l.formColumnCol : 24 / l.formRow, be = (l) => ["input", "textarea"].includes(l.fieldType) ? "blur" : (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(l.fieldType), "change"), he = async ({ node: l, resolve: c }, a) => {
|
|
15
15
|
const r = b(a), { label: m, value: n, children: g, isLeaf: s } = { ...re, ...r.treeProps || {} };
|
|
16
16
|
if (l[s])
|
|
17
17
|
return c([]);
|
|
@@ -237,9 +237,8 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
237
237
|
modelValue: o.value[e.fieldKey],
|
|
238
238
|
"onUpdate:modelValue": (t) => o.value[e.fieldKey] = t,
|
|
239
239
|
placeholder: `${d(h)("act.inputPlaceholder")}${e.fieldName}`,
|
|
240
|
-
clearable: ""
|
|
241
|
-
|
|
242
|
-
}, d(b)(e), {
|
|
240
|
+
clearable: ""
|
|
241
|
+
}, { ref_for: !0 }, d(b)(e), {
|
|
243
242
|
disabled: e.isFormDisabled
|
|
244
243
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : se("", !0),
|
|
245
244
|
e.fieldType === "inputNumber" ? (u(), y(d(ie), v({
|
|
@@ -247,18 +246,16 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
247
246
|
modelValue: o.value[e.fieldKey],
|
|
248
247
|
"onUpdate:modelValue": (t) => o.value[e.fieldKey] = t,
|
|
249
248
|
placeholder: `${d(h)("act.inputPlaceholder")}${e.fieldName}`,
|
|
250
|
-
clearable: ""
|
|
251
|
-
|
|
252
|
-
}, d(b)(e), {
|
|
249
|
+
clearable: ""
|
|
250
|
+
}, { ref_for: !0 }, d(b)(e), {
|
|
253
251
|
disabled: e.isFormDisabled
|
|
254
252
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (u(), y(a, v({
|
|
255
253
|
key: 2,
|
|
256
254
|
modelValue: o.value[e.fieldKey],
|
|
257
255
|
"onUpdate:modelValue": (t) => o.value[e.fieldKey] = t,
|
|
258
256
|
placeholder: `${d(h)("act.inputPlaceholder")}${e.fieldName}`,
|
|
259
|
-
rows: 4
|
|
260
|
-
|
|
261
|
-
}, d(b)(e), {
|
|
257
|
+
rows: 4
|
|
258
|
+
}, { ref_for: !0 }, d(b)(e), {
|
|
262
259
|
type: "textarea",
|
|
263
260
|
disabled: e.isFormDisabled
|
|
264
261
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "selectIcon" ? (u(), y(d(ne), v({
|
|
@@ -266,9 +263,8 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
266
263
|
modelValue: o.value[e.fieldKey],
|
|
267
264
|
"onUpdate:modelValue": (t) => o.value[e.fieldKey] = t,
|
|
268
265
|
icons: e.dataList,
|
|
269
|
-
placeholder: `${d(h)("act.selectPlaceholder")}${e.fieldName}
|
|
270
|
-
|
|
271
|
-
}, d(b)(e), {
|
|
266
|
+
placeholder: `${d(h)("act.selectPlaceholder")}${e.fieldName}`
|
|
267
|
+
}, { ref_for: !0 }, d(b)(e), {
|
|
272
268
|
disabled: e.isFormDisabled
|
|
273
269
|
}), {
|
|
274
270
|
default: K(() => [
|
|
@@ -286,9 +282,8 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
286
282
|
placeholder: `${d(h)("act.selectPlaceholder")}${e.fieldName}`,
|
|
287
283
|
clearable: "",
|
|
288
284
|
filterable: "",
|
|
289
|
-
"value-key": "value"
|
|
290
|
-
|
|
291
|
-
}, d(b)(e), {
|
|
285
|
+
"value-key": "value"
|
|
286
|
+
}, { ref_for: !0 }, d(b)(e), {
|
|
292
287
|
multiple: e.fieldType === "multipleSelect",
|
|
293
288
|
disabled: e.isFormDisabled,
|
|
294
289
|
onChange: (t) => ve(t, e)
|
|
@@ -309,9 +304,8 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
309
304
|
props: { ...d(Pe) },
|
|
310
305
|
placeholder: `${d(h)("act.selectPlaceholder")}${e.fieldName}`,
|
|
311
306
|
clearable: "",
|
|
312
|
-
filterable: ""
|
|
313
|
-
|
|
314
|
-
}, d(b)(e), {
|
|
307
|
+
filterable: ""
|
|
308
|
+
}, { ref_for: !0 }, d(b)(e), {
|
|
315
309
|
disabled: e.isFormDisabled,
|
|
316
310
|
multiple: e.fieldType === "virtualizedMultipleSelect",
|
|
317
311
|
onChange: (t) => Ve(t, e)
|
|
@@ -328,9 +322,8 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
328
322
|
multiple: "",
|
|
329
323
|
"show-checkbox": "",
|
|
330
324
|
clearable: "",
|
|
331
|
-
filterable: ""
|
|
332
|
-
|
|
333
|
-
}, d(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "data", "default-expanded-keys", "placeholder", "props"])) : e.fieldType === "treeSelect" ? (u(), y(g, v({
|
|
325
|
+
filterable: ""
|
|
326
|
+
}, { ref_for: !0 }, d(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "data", "default-expanded-keys", "placeholder", "props"])) : e.fieldType === "treeSelect" ? (u(), y(g, v({
|
|
334
327
|
key: 7,
|
|
335
328
|
modelValue: o.value[e.fieldKey],
|
|
336
329
|
"onUpdate:modelValue": (t) => o.value[e.fieldKey] = t,
|
|
@@ -344,17 +337,15 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
344
337
|
clearable: "",
|
|
345
338
|
filterable: "",
|
|
346
339
|
lazy: "",
|
|
347
|
-
load: (t, S) => he({ node: t, resolve: S }, e)
|
|
348
|
-
|
|
349
|
-
}, d(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "load"])) : e.fieldType === "date" ? (u(), y(s, v({
|
|
340
|
+
load: (t, S) => he({ node: t, resolve: S }, e)
|
|
341
|
+
}, { ref_for: !0 }, d(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "load"])) : e.fieldType === "date" ? (u(), y(s, v({
|
|
350
342
|
key: 8,
|
|
351
343
|
modelValue: o.value[e.fieldKey],
|
|
352
344
|
"onUpdate:modelValue": (t) => o.value[e.fieldKey] = t,
|
|
353
345
|
type: "date",
|
|
354
346
|
placeholder: `${d(h)("act.selectPlaceholder")}${d(h)("act.time")}`,
|
|
355
|
-
"value-format": "YYYY-MM-DD HH:mm:ss"
|
|
356
|
-
|
|
357
|
-
}, d(b)(e), {
|
|
347
|
+
"value-format": "YYYY-MM-DD HH:mm:ss"
|
|
348
|
+
}, { ref_for: !0 }, d(b)(e), {
|
|
358
349
|
disabled: e.isFormDisabled
|
|
359
350
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (u(), y(s, v({
|
|
360
351
|
key: 9,
|
|
@@ -363,9 +354,8 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
363
354
|
type: "daterange",
|
|
364
355
|
"start-placeholder": d(h)("act.startTime"),
|
|
365
356
|
"end-placeholder": d(h)("act.endTime"),
|
|
366
|
-
"value-format": "YYYY-MM-DD HH:mm:ss"
|
|
367
|
-
|
|
368
|
-
}, d(b)(e), {
|
|
357
|
+
"value-format": "YYYY-MM-DD HH:mm:ss"
|
|
358
|
+
}, { ref_for: !0 }, d(b)(e), {
|
|
369
359
|
disabled: e.isFormDisabled
|
|
370
360
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (u(), y(i, v({
|
|
371
361
|
key: 10,
|
|
@@ -375,32 +365,28 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
375
365
|
props: d(Se),
|
|
376
366
|
clearable: "",
|
|
377
367
|
filterable: "",
|
|
378
|
-
placeholder: `${d(h)("act.selectPlaceholder")}${e.fieldName}
|
|
379
|
-
|
|
380
|
-
}, d(b)(e), {
|
|
368
|
+
placeholder: `${d(h)("act.selectPlaceholder")}${e.fieldName}`
|
|
369
|
+
}, { ref_for: !0 }, d(b)(e), {
|
|
381
370
|
disabled: e.isFormDisabled
|
|
382
371
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (u(), y(T, v({
|
|
383
372
|
key: 11,
|
|
384
373
|
modelValue: o.value[e.fieldKey],
|
|
385
374
|
"onUpdate:modelValue": (t) => o.value[e.fieldKey] = t,
|
|
386
375
|
"active-value": !0,
|
|
387
|
-
"inactive-value": !1
|
|
388
|
-
|
|
389
|
-
}, d(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (u(), y(d(ue), v({
|
|
376
|
+
"inactive-value": !1
|
|
377
|
+
}, { ref_for: !0 }, d(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (u(), y(d(ue), v({
|
|
390
378
|
key: 12,
|
|
391
379
|
class: "form-upload",
|
|
392
380
|
modelValue: o.value[e.fieldKey],
|
|
393
381
|
"onUpdate:modelValue": (t) => o.value[e.fieldKey] = t,
|
|
394
|
-
request: d(q)
|
|
395
|
-
|
|
396
|
-
}, d(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (u(), y(d(ce), v({
|
|
382
|
+
request: d(q)
|
|
383
|
+
}, { ref_for: !0 }, d(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (u(), y(d(ce), v({
|
|
397
384
|
key: 13,
|
|
398
385
|
modelValue: o.value[e.fieldKey],
|
|
399
386
|
"onUpdate:modelValue": (t) => o.value[e.fieldKey] = t,
|
|
400
387
|
disabled: e.isFormDisabled,
|
|
401
|
-
placeholder: `${d(h)("act.inputPlaceholder")}${e.fieldName}
|
|
402
|
-
|
|
403
|
-
}, d(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : se("", !0)
|
|
388
|
+
placeholder: `${d(h)("act.inputPlaceholder")}${e.fieldName}`
|
|
389
|
+
}, { ref_for: !0 }, d(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : se("", !0)
|
|
404
390
|
]),
|
|
405
391
|
_: 2
|
|
406
392
|
}, 1032, ["label", "prop", "rules"]))
|
|
@@ -421,7 +407,7 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
|
|
|
421
407
|
}, 8, ["model-value", "title", "width"]);
|
|
422
408
|
};
|
|
423
409
|
}
|
|
424
|
-
}, Ee = /* @__PURE__ */ ke(Oe, [["__scopeId", "data-v-
|
|
410
|
+
}, Ee = /* @__PURE__ */ ke(Oe, [["__scopeId", "data-v-0b8b3885"]]);
|
|
425
411
|
export {
|
|
426
412
|
Ee as default
|
|
427
413
|
};
|