act-plus 1.1.37 → 1.1.38
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 +66 -66
- package/lib/{configBtns-091826d5.js → configBtns-513af95b.js} +2 -2
- package/lib/{configFileds-fd5ea537.js → configFileds-e8366eca.js} +2 -2
- package/lib/{configTable-2b7df811.js → configTable-f826e0ed.js} +1 -1
- package/lib/{dialogAddField-996920a1.js → dialogAddField-23fdc91b.js} +2 -2
- package/lib/{dialogConfigBtn-f0ec7e97.js → dialogConfigBtn-76b6fc69.js} +2 -2
- package/lib/{dialogInitConfig-fa84565d.js → dialogInitConfig-0cf159c5.js} +1 -1
- package/lib/{dialogSiteComponentsParams-5dfa4493.js → dialogSiteComponentsParams-baf32cea.js} +1 -1
- package/lib/index-49cea2f9.js +375 -0
- package/lib/{index-32ede4ba.js → index-4ba18a7e.js} +1 -1
- package/lib/index-93db90dd.js +254 -0
- package/lib/{index-585f3f09.js → index-ad34a2e8.js} +1 -1
- package/lib/{index-e39ab51b.js → index-b08d861b.js} +1 -1
- package/lib/{index-42b5a2b1.js → index-f9ec4c04.js} +21565 -21534
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/index-17a12636.js +0 -214
- package/lib/index-e31f5bfc.js +0 -341
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import { defineAsyncComponent as le, inject as x, ref as R, watch as ae, resolveComponent as i, resolveDirective as te, unref as l, openBlock as n, createElementBlock as $, createVNode as oe, normalizeStyle as re, withCtx as h, Fragment as E, renderList as D, withDirectives as z, createBlock as u, mergeProps as m, withKeys as A, withModifiers as F, createCommentVNode as g, vShow as ne, createTextVNode as Y, toDisplayString as B } from "vue";
|
|
2
|
+
import { _ as se, u as ue, P as H, a as de, b as pe } from "./index-f9ec4c04.js";
|
|
3
|
+
import "vue-router";
|
|
4
|
+
import "js-base64";
|
|
5
|
+
import "element-plus";
|
|
6
|
+
import "monaco-editor";
|
|
7
|
+
const ie = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "search-module-container"
|
|
10
|
+
}, ce = {
|
|
11
|
+
__name: "index",
|
|
12
|
+
props: {
|
|
13
|
+
data: { type: Object, default: () => ({}) }
|
|
14
|
+
},
|
|
15
|
+
emits: ["reset", "search"],
|
|
16
|
+
setup(W, { emit: j }) {
|
|
17
|
+
const I = le(() => import("./index-f9ec4c04.js").then((o) => o.g)), { t: d } = ue(), K = x("request"), p = x("getFieldUiProps"), L = x("formatDataType"), M = j, b = W;
|
|
18
|
+
let f = R([]), O = R([]), C = R(!0);
|
|
19
|
+
const G = (o) => b.data.tableConfig.isExpandQuery && C.value ? b.data.tableConfig.tableQueryRowWidth > o + 1 : !0, J = (o) => {
|
|
20
|
+
f.value = (o || []).filter((t) => t.useScenes.includes("tableSearch"));
|
|
21
|
+
}, X = (o) => {
|
|
22
|
+
const t = (o || []).filter((r) => r.permissionCode === 1001).map((r) => ({ ...r, loading: !1 }));
|
|
23
|
+
O.value = [...t, { btnName: d("act.reset"), permissionCode: "9999", btnColor: "info", btnIcon: "btn-reset", loading: !1 }];
|
|
24
|
+
}, Z = async ({ node: o, resolve: t }, r) => {
|
|
25
|
+
const _ = p(r), { label: w, value: U, children: Q, isLeaf: q } = { ...pe, ..._.treeProps || {} };
|
|
26
|
+
if (o[q])
|
|
27
|
+
return t([]);
|
|
28
|
+
const v = r.postRequestParams.filter((s) => s.submitType === "default").reduce((s, V) => (s[V.submitName] = L(V.paramsType, V.submitValue), s), {}), k = r.postRequestParams.filter((s) => s.submitType === "dynamic").map((s) => ({
|
|
29
|
+
field: s.submitName,
|
|
30
|
+
operate: s.submitMatchType,
|
|
31
|
+
value: _.loadCode ? o == null ? void 0 : o.data.value : L(s.paramsType, s.submitValue)
|
|
32
|
+
}));
|
|
33
|
+
let y = {};
|
|
34
|
+
Object.keys(v).length && (y = { ...y, ...v }), k.length && (y.dynamicFilters = k), _.loadCode && Reflect.has(y, _.loadCode) && (y[_.loadCode] = o == null ? void 0 : o.data.value);
|
|
35
|
+
const { data: T } = await K({
|
|
36
|
+
url: r.fieldRequestUrl,
|
|
37
|
+
method: r.fieldRequestType || "GET",
|
|
38
|
+
data: y
|
|
39
|
+
}), S = (T || []).map((s) => ({ label: s[w], value: s[U], children: [], isLeaf: s[q] }));
|
|
40
|
+
t(S);
|
|
41
|
+
};
|
|
42
|
+
ae(
|
|
43
|
+
() => b.data,
|
|
44
|
+
(o, t) => {
|
|
45
|
+
J(o.fields), X(o.buttons);
|
|
46
|
+
},
|
|
47
|
+
{ immediate: !0 }
|
|
48
|
+
);
|
|
49
|
+
const c = (o) => {
|
|
50
|
+
switch (o.loading = !0, o.permissionCode) {
|
|
51
|
+
case "9999":
|
|
52
|
+
f.value.forEach((r) => {
|
|
53
|
+
r.fieldType.includes("&") ? r.queryValue = [] : r.queryValue = void 0;
|
|
54
|
+
}), M("reset", [], () => {
|
|
55
|
+
o.loading = !1;
|
|
56
|
+
});
|
|
57
|
+
break;
|
|
58
|
+
default:
|
|
59
|
+
const t = f.value.filter((r) => Array.isArray(r.queryValue) ? r.queryValue.length : !!r.queryValue);
|
|
60
|
+
M("search", t, () => {
|
|
61
|
+
o.loading = !1;
|
|
62
|
+
});
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
}, ee = () => {
|
|
66
|
+
C.value = !C.value;
|
|
67
|
+
};
|
|
68
|
+
return (o, t) => {
|
|
69
|
+
var V;
|
|
70
|
+
const r = i("el-input"), _ = i("el-option"), w = i("el-select"), U = i("el-select-v2"), Q = i("el-cascader"), q = i("el-tree-select"), v = i("el-date-picker"), k = i("el-form-item"), y = i("a-svg-icon"), T = i("el-button"), S = i("el-form"), s = te("debounce");
|
|
71
|
+
return l(f) && l(f).length ? (n(), $("div", ie, [
|
|
72
|
+
oe(S, {
|
|
73
|
+
style: re({ "--table-query-row": b.data.tableConfig.tableQueryRowWidth }),
|
|
74
|
+
class: "form-content",
|
|
75
|
+
ref: "elForm",
|
|
76
|
+
"label-suffix": ":",
|
|
77
|
+
"label-position": "right"
|
|
78
|
+
}, {
|
|
79
|
+
default: h(() => [
|
|
80
|
+
(n(!0), $(E, null, D(l(f), (e, P) => z((n(), u(k, {
|
|
81
|
+
key: P,
|
|
82
|
+
class: "search-form-item",
|
|
83
|
+
"label-width": b.data.tableConfig.tableQueryLabelWidth,
|
|
84
|
+
label: e.fieldName
|
|
85
|
+
}, {
|
|
86
|
+
default: h(() => [
|
|
87
|
+
e.fieldType === "input" || e.fieldType === "editor" ? (n(), u(r, m({
|
|
88
|
+
key: 0,
|
|
89
|
+
modelValue: e.queryValue,
|
|
90
|
+
"onUpdate:modelValue": (a) => e.queryValue = a,
|
|
91
|
+
placeholder: `${l(d)("act.inputPlaceholder")}${e.fieldName}`,
|
|
92
|
+
clearable: "",
|
|
93
|
+
ref_for: !0
|
|
94
|
+
}, l(p)(e), {
|
|
95
|
+
onKeyup: t[0] || (t[0] = A(F((a) => c({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"]))
|
|
96
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : g("", !0),
|
|
97
|
+
e.fieldType === "inputNumber" ? (n(), u(l(I), m({
|
|
98
|
+
key: 1,
|
|
99
|
+
modelValue: e.queryValue,
|
|
100
|
+
"onUpdate:modelValue": (a) => e.queryValue = a,
|
|
101
|
+
placeholder: `${l(d)("act.inputPlaceholder")}${e.fieldName}`,
|
|
102
|
+
clearable: "",
|
|
103
|
+
onKeyup: t[1] || (t[1] = A(F((a) => c({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"])),
|
|
104
|
+
ref_for: !0
|
|
105
|
+
}, l(p)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : ["select", "switch", "multipleSelect"].includes(e.fieldType) ? (n(), u(w, m({
|
|
106
|
+
key: 2,
|
|
107
|
+
modelValue: e.queryValue,
|
|
108
|
+
"onUpdate:modelValue": (a) => e.queryValue = a,
|
|
109
|
+
placeholder: `${l(d)("act.selectPlaceholder")}${e.fieldName}`,
|
|
110
|
+
clearable: "",
|
|
111
|
+
filterable: "",
|
|
112
|
+
props: { ...l(H) },
|
|
113
|
+
ref_for: !0
|
|
114
|
+
}, l(p)(e), {
|
|
115
|
+
multiple: e.fieldType === "multipleSelect",
|
|
116
|
+
"collapse-tags": e.fieldType === "multipleSelect",
|
|
117
|
+
"collapse-tags-tooltip": e.fieldType === "multipleSelect",
|
|
118
|
+
onChange: t[2] || (t[2] = (a) => c({ permissionCode: 1001 }))
|
|
119
|
+
}), {
|
|
120
|
+
default: h(() => [
|
|
121
|
+
(n(!0), $(E, null, D(e.dataList, (a, N) => (n(), u(_, {
|
|
122
|
+
key: N,
|
|
123
|
+
label: a.key,
|
|
124
|
+
value: a.value
|
|
125
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
126
|
+
]),
|
|
127
|
+
_: 2
|
|
128
|
+
}, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "props", "multiple", "collapse-tags", "collapse-tags-tooltip"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (n(), u(U, m({
|
|
129
|
+
key: 3,
|
|
130
|
+
modelValue: e.queryValue,
|
|
131
|
+
"onUpdate:modelValue": (a) => e.queryValue = a,
|
|
132
|
+
options: e.dataList,
|
|
133
|
+
props: { ...l(H) },
|
|
134
|
+
placeholder: `${l(d)("act.selectPlaceholder")}${e.fieldName}`,
|
|
135
|
+
clearable: "",
|
|
136
|
+
filterable: "",
|
|
137
|
+
ref_for: !0
|
|
138
|
+
}, l(p)(e), {
|
|
139
|
+
"collapse-tags": e.fieldType === "virtualizedMultipleSelect",
|
|
140
|
+
"collapse-tags-tooltip": e.fieldType === "virtualizedMultipleSelect",
|
|
141
|
+
multiple: e.fieldType === "virtualizedMultipleSelect",
|
|
142
|
+
onChange: t[3] || (t[3] = (a) => c({ permissionCode: 1001 }))
|
|
143
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "collapse-tags", "collapse-tags-tooltip", "multiple"])) : e.fieldType === "provinceCascade" ? (n(), u(Q, m({
|
|
144
|
+
key: 4,
|
|
145
|
+
modelValue: e.queryValue,
|
|
146
|
+
"onUpdate:modelValue": (a) => e.queryValue = a,
|
|
147
|
+
options: e.dataList,
|
|
148
|
+
props: { ...l(de) },
|
|
149
|
+
clearable: "",
|
|
150
|
+
filterable: "",
|
|
151
|
+
placeholder: `${l(d)("act.selectPlaceholder")}${e.fieldName}`,
|
|
152
|
+
ref_for: !0
|
|
153
|
+
}, l(p)(e), {
|
|
154
|
+
onChange: t[4] || (t[4] = (a) => c({ permissionCode: 1001 }))
|
|
155
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder"])) : e.fieldType === "treeSelect" ? (n(), u(q, m({
|
|
156
|
+
key: 5,
|
|
157
|
+
modelValue: e.queryValue,
|
|
158
|
+
"onUpdate:modelValue": (a) => e.queryValue = a,
|
|
159
|
+
placeholder: `请选择${e.fieldName}`,
|
|
160
|
+
props: { isLeaf: "isLeaf" },
|
|
161
|
+
"render-after-expand": !1,
|
|
162
|
+
"collapse-tags": "",
|
|
163
|
+
"collapse-tags-tooltip": "",
|
|
164
|
+
multiple: "",
|
|
165
|
+
"show-checkbox": "",
|
|
166
|
+
clearable: "",
|
|
167
|
+
filterable: "",
|
|
168
|
+
lazy: "",
|
|
169
|
+
load: (a, N) => Z({ node: a, resolve: N }, e),
|
|
170
|
+
ref_for: !0
|
|
171
|
+
}, l(p)(e), {
|
|
172
|
+
onChange: t[5] || (t[5] = (a) => c({ permissionCode: 1001 }))
|
|
173
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "load"])) : e.fieldType === "date" ? (n(), u(v, m({
|
|
174
|
+
key: 6,
|
|
175
|
+
modelValue: e.queryValue,
|
|
176
|
+
"onUpdate:modelValue": (a) => e.queryValue = a,
|
|
177
|
+
type: "date",
|
|
178
|
+
placeholder: `${l(d)("act.selectPlaceholder")}${l(d)("act.time")}`,
|
|
179
|
+
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
180
|
+
ref_for: !0
|
|
181
|
+
}, l(p)(e), {
|
|
182
|
+
"value-key": l(p)(e).value,
|
|
183
|
+
"node-key": l(p)(e).value,
|
|
184
|
+
onChange: t[6] || (t[6] = (a) => c({ permissionCode: 1001 }))
|
|
185
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "value-key", "node-key"])) : e.fieldType === "dateRange" ? (n(), u(v, m({
|
|
186
|
+
key: 7,
|
|
187
|
+
modelValue: e.queryValue,
|
|
188
|
+
"onUpdate:modelValue": (a) => e.queryValue = a,
|
|
189
|
+
type: "daterange",
|
|
190
|
+
"start-placeholder": l(d)("act.startTime"),
|
|
191
|
+
"end-placeholder": l(d)("act.endTime"),
|
|
192
|
+
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
193
|
+
ref_for: !0
|
|
194
|
+
}, l(p)(e), {
|
|
195
|
+
onChange: t[7] || (t[7] = (a) => c({ permissionCode: 1001 }))
|
|
196
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder"])) : g("", !0)
|
|
197
|
+
]),
|
|
198
|
+
_: 2
|
|
199
|
+
}, 1032, ["label-width", "label"])), [
|
|
200
|
+
[ne, G(P)]
|
|
201
|
+
])), 128)),
|
|
202
|
+
l(f).length ? (n(), u(k, {
|
|
203
|
+
key: 0,
|
|
204
|
+
class: "search-form-btn",
|
|
205
|
+
"label-width": "0"
|
|
206
|
+
}, {
|
|
207
|
+
default: h(() => [
|
|
208
|
+
(n(!0), $(E, null, D(l(O), (e, P) => z((n(), u(T, {
|
|
209
|
+
key: P,
|
|
210
|
+
type: e.btnColor,
|
|
211
|
+
loading: e.loading,
|
|
212
|
+
onClick: (a) => c(e)
|
|
213
|
+
}, {
|
|
214
|
+
default: h(() => [
|
|
215
|
+
e.btnIcon ? (n(), u(y, {
|
|
216
|
+
key: 0,
|
|
217
|
+
class: "mr6",
|
|
218
|
+
name: e.btnIcon,
|
|
219
|
+
width: "12",
|
|
220
|
+
height: "12",
|
|
221
|
+
color: "#fff"
|
|
222
|
+
}, null, 8, ["name"])) : g("", !0),
|
|
223
|
+
Y(" " + B(e.btnName), 1)
|
|
224
|
+
]),
|
|
225
|
+
_: 2
|
|
226
|
+
}, 1032, ["type", "loading", "onClick"])), [
|
|
227
|
+
[s]
|
|
228
|
+
])), 128))
|
|
229
|
+
]),
|
|
230
|
+
_: 1
|
|
231
|
+
})) : g("", !0)
|
|
232
|
+
]),
|
|
233
|
+
_: 1
|
|
234
|
+
}, 8, ["style"]),
|
|
235
|
+
b.data.tableConfig.isExpandQuery && ((V = l(f)) == null ? void 0 : V.length) > b.data.tableConfig.tableQueryRowWidth ? (n(), u(T, {
|
|
236
|
+
key: 0,
|
|
237
|
+
class: "expand",
|
|
238
|
+
text: "",
|
|
239
|
+
size: "small",
|
|
240
|
+
icon: l(C) ? "ArrowDown" : "ArrowUp",
|
|
241
|
+
onClick: ee
|
|
242
|
+
}, {
|
|
243
|
+
default: h(() => [
|
|
244
|
+
Y(B(l(C) ? l(d)("act.expand") : l(d)("act.retract")), 1)
|
|
245
|
+
]),
|
|
246
|
+
_: 1
|
|
247
|
+
}, 8, ["icon"])) : g("", !0)
|
|
248
|
+
])) : g("", !0);
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
}, he = /* @__PURE__ */ se(ce, [["__scopeId", "data-v-e8e4dcb3"]]);
|
|
252
|
+
export {
|
|
253
|
+
he as default
|
|
254
|
+
};
|
|
@@ -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-f9ec4c04.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "js-base64";
|
|
5
5
|
import "element-plus";
|
|
@@ -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-f9ec4c04.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "js-base64";
|
|
5
5
|
import "element-plus";
|