act-plus 1.1.55 → 1.1.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/act-plus.js +4 -5
- package/act-plus.umd.cjs +146 -81
- package/lib/dialogAddField-6b06ab7c.js.gz +0 -0
- package/lib/dialogConfigBtn-d1568216.js.gz +0 -0
- package/lib/dialogSiteComponentsParams-3dcdc659.js.gz +0 -0
- package/lib/index-101b5643.js.gz +0 -0
- package/lib/index-208cc48a.js.gz +0 -0
- package/lib/index-2212d587.js.gz +0 -0
- package/lib/index-4e254a44.js.gz +0 -0
- package/lib/index-59fb9e5c.js.gz +0 -0
- package/lib/index-6933655a.js.gz +0 -0
- package/lib/index-93d2f191.js.gz +0 -0
- package/package.json +1 -1
- package/style.css.gz +0 -0
- package/lib/dialogAddField-03dd89f3.js +0 -941
- package/lib/dialogConfigBtn-ef3ee544.js +0 -808
- package/lib/dialogSiteComponentsParams-9ec43656.js +0 -71
- package/lib/index-0565f321.js +0 -67
- package/lib/index-0dfce03e.js +0 -105
- package/lib/index-0fdb6943.js +0 -409
- package/lib/index-1889e30b.js +0 -291
- package/lib/index-2693b9c5.js +0 -62987
- package/lib/index-c932841c.js +0 -108
- package/style.css +0 -1
package/lib/index-1889e30b.js
DELETED
|
@@ -1,291 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as re, inject as C, ref as U, watch as ne, resolveComponent as f, resolveDirective as se, unref as t, openBlock as s, createElementBlock as V, createVNode as ue, normalizeStyle as de, withCtx as g, Fragment as q, renderList as L, createBlock as d, mergeProps as _, withKeys as I, withModifiers as B, createCommentVNode as h, resolveDynamicComponent as pe, createElementVNode as ie, toDisplayString as S, createTextVNode as M, withDirectives as ce } from "vue";
|
|
2
|
-
import { _ as fe, u as ye, P as me, a as be, b as Ve } from "./index-2693b9c5.js";
|
|
3
|
-
import "vue-router";
|
|
4
|
-
import "js-base64";
|
|
5
|
-
import "element-plus";
|
|
6
|
-
import "monaco-editor";
|
|
7
|
-
const _e = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "search-module-container"
|
|
10
|
-
}, Ce = { class: "no-config-field" }, he = {
|
|
11
|
-
__name: "index",
|
|
12
|
-
props: {
|
|
13
|
-
data: { type: Object, default: () => ({}) }
|
|
14
|
-
},
|
|
15
|
-
emits: ["reset", "search"],
|
|
16
|
-
setup(j, { emit: H }) {
|
|
17
|
-
const K = re(() => import("./index-2693b9c5.js").then((r) => r.t)), { t: p } = ye(), W = C("request"), O = C("globalProps"), G = C("loadComponents"), y = C("getFieldUiProps"), x = C("formatDataType"), z = C("disposeDate"), J = C("getDefaultQueryValues"), A = H, m = j, X = U({});
|
|
18
|
-
let b = U([]), Y = U([]), T = U(!0);
|
|
19
|
-
const Z = (r) => m.data.tableConfig.isExpandQuery && T.value ? m.data.tableConfig.tableQueryRowWidth > r + 1 : !0, ee = async (r) => {
|
|
20
|
-
b.value = await Promise.all(
|
|
21
|
-
r.filter((l) => l.useScenes.includes("tableSearch")).map(async (l) => {
|
|
22
|
-
l.tableQueryDefaultValue && (["date", "dateRange"].includes(l.fieldType) ? l.queryValue = z(l) : l.queryValue = l.tableQueryDefaultValue ? l.tableQueryDefaultValue : void 0), O.defaultParams.some((o) => {
|
|
23
|
-
o.field == l.fieldKey && o.operate === l.tableQueryCondition && (l.queryValue = o.value);
|
|
24
|
-
});
|
|
25
|
-
const u = (l.formCustomComponentes ?? []).find((o) => o.permissionCode === "tableSearch");
|
|
26
|
-
if (l.isQueryFieldCustom = !1, u && u.isFieldCustom) {
|
|
27
|
-
const { isFieldCustom: o, customComponentName: k, customComponentUrl: P } = u;
|
|
28
|
-
if (l.isQueryFieldCustom = !0, o && !l.customQueryComponent) {
|
|
29
|
-
const $ = await G(P, k);
|
|
30
|
-
l.customQueryComponent = $;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return l;
|
|
34
|
-
})
|
|
35
|
-
);
|
|
36
|
-
}, le = (r) => {
|
|
37
|
-
const l = (r || []).filter((u) => u.permissionCode === 1001).map((u) => ({ ...u, loading: !1 }));
|
|
38
|
-
Y.value = [...l, { btnName: p("act.reset"), permissionCode: "9999", btnColor: "info", btnIcon: "btn-reset", loading: !1 }];
|
|
39
|
-
}, ae = async ({ node: r, resolve: l }, u) => {
|
|
40
|
-
const o = y(u), { label: k, value: P, children: $, isLeaf: w } = { ...Ve, ...o.treeProps || {} };
|
|
41
|
-
if (r[w])
|
|
42
|
-
return l([]);
|
|
43
|
-
const Q = u.postRequestParams.filter((n) => n.submitType === "default").reduce((n, e) => (n[e.submitName] = x(e.paramsType, e.submitValue), n), {}), D = u.postRequestParams.filter((n) => n.submitType === "match").reduce((n, e) => (n[e.submitName] = x(e.paramsType, O.matchData[e.submitValue][e.submitName]), n), {}), R = u.postRequestParams.filter((n) => n.submitType === "dynamic").map((n) => ({
|
|
44
|
-
field: n.submitName,
|
|
45
|
-
operate: n.submitMatchType,
|
|
46
|
-
value: o.loadCode ? r == null ? void 0 : r.data.value : x(n.paramsType, n.submitValue)
|
|
47
|
-
}));
|
|
48
|
-
let c = {};
|
|
49
|
-
Object.keys(Q).length && (c = { ...c, ...Q }), Object.keys(D).length && (c = { ...c, ...D }), R.length && (c.dynamicFilters = R), o.loadCode && Reflect.has(c, o.loadCode) && (c[o.loadCode] = r == null ? void 0 : r.data.value);
|
|
50
|
-
const { data: E } = await W({
|
|
51
|
-
url: u.fieldRequestUrl,
|
|
52
|
-
method: u.fieldRequestType || "GET",
|
|
53
|
-
data: c
|
|
54
|
-
}), v = (E || []).map((n) => ({ label: n[k], value: n[P], children: [], isLeaf: n[w] }));
|
|
55
|
-
l(v);
|
|
56
|
-
};
|
|
57
|
-
ne(
|
|
58
|
-
() => m.data,
|
|
59
|
-
(r, l) => {
|
|
60
|
-
ee(r.fields), le(r.buttons);
|
|
61
|
-
},
|
|
62
|
-
{ immediate: !0, deep: !0 }
|
|
63
|
-
);
|
|
64
|
-
const i = (r) => {
|
|
65
|
-
switch (r.loading = !0, r.permissionCode) {
|
|
66
|
-
case "9999":
|
|
67
|
-
b.value.forEach((o) => {
|
|
68
|
-
o.tableQueryDefaultValue ? ["date", "dateRange"].includes(o.fieldType) ? o.queryValue = z(o) : o.queryValue = o.tableQueryDefaultValue ? o.tableQueryDefaultValue : void 0 : o.fieldType.includes("&") ? o.queryValue = [] : o.queryValue = void 0;
|
|
69
|
-
});
|
|
70
|
-
const l = J();
|
|
71
|
-
A("reset", l, () => {
|
|
72
|
-
r.loading = !1;
|
|
73
|
-
});
|
|
74
|
-
break;
|
|
75
|
-
default:
|
|
76
|
-
const u = b.value.filter((o) => Array.isArray(o.queryValue) ? o.queryValue.length : !!o.queryValue);
|
|
77
|
-
A("search", u, () => {
|
|
78
|
-
r.loading = !1;
|
|
79
|
-
});
|
|
80
|
-
break;
|
|
81
|
-
}
|
|
82
|
-
}, te = () => {
|
|
83
|
-
T.value = !T.value;
|
|
84
|
-
}, oe = () => {
|
|
85
|
-
i({ permissionCode: 1001 });
|
|
86
|
-
};
|
|
87
|
-
return (r, l) => {
|
|
88
|
-
var n;
|
|
89
|
-
const u = f("el-input"), o = f("el-option"), k = f("el-select"), P = f("el-select-v2"), $ = f("el-cascader"), w = f("el-tree-select"), Q = f("el-date-picker"), D = f("el-form-item"), R = f("a-svg-icon"), c = f("el-button"), E = f("el-form"), v = se("debounce");
|
|
90
|
-
return t(b) && t(b).length ? (s(), V("div", _e, [
|
|
91
|
-
ue(E, {
|
|
92
|
-
style: de({ "--table-query-row": m.data.tableConfig.tableQueryRowWidth }),
|
|
93
|
-
class: "form-content",
|
|
94
|
-
ref: "elForm",
|
|
95
|
-
"label-suffix": ":",
|
|
96
|
-
"label-position": "right"
|
|
97
|
-
}, {
|
|
98
|
-
default: g(() => [
|
|
99
|
-
(s(!0), V(q, null, L(t(b), (e, N) => (s(), V(q, { key: N }, [
|
|
100
|
-
Z(N) ? (s(), V(q, { key: 0 }, [
|
|
101
|
-
e.isQueryFieldCustom ? (s(), V(q, { key: 1 }, [
|
|
102
|
-
e.customQueryComponent ? (s(), d(pe(e.customQueryComponent), {
|
|
103
|
-
key: 0,
|
|
104
|
-
class: "custom-btn",
|
|
105
|
-
ref_for: !0,
|
|
106
|
-
ref: (a) => X.value.customQueryComponent = a,
|
|
107
|
-
queryItem: e,
|
|
108
|
-
data: m.data,
|
|
109
|
-
onRefresh: (a) => i(e)
|
|
110
|
-
}, null, 40, ["queryItem", "data", "onRefresh"])) : (s(), V("div", {
|
|
111
|
-
class: "no-config",
|
|
112
|
-
key: N
|
|
113
|
-
}, [
|
|
114
|
-
ie("span", Ce, "【" + S(e.fieldName) + "】", 1),
|
|
115
|
-
M(S(t(p)("act.fieldCustom")), 1)
|
|
116
|
-
]))
|
|
117
|
-
], 64)) : (s(), d(D, {
|
|
118
|
-
key: 0,
|
|
119
|
-
class: "search-form-item",
|
|
120
|
-
"label-width": m.data.tableConfig.tableQueryLabelWidth,
|
|
121
|
-
label: e.fieldName
|
|
122
|
-
}, {
|
|
123
|
-
default: g(() => [
|
|
124
|
-
e.fieldType === "input" || e.fieldType === "editor" ? (s(), d(u, _({
|
|
125
|
-
key: 0,
|
|
126
|
-
modelValue: e.queryValue,
|
|
127
|
-
"onUpdate:modelValue": (a) => e.queryValue = a,
|
|
128
|
-
placeholder: `${t(p)("act.inputPlaceholder")}${e.fieldName}`,
|
|
129
|
-
clearable: "",
|
|
130
|
-
ref_for: !0
|
|
131
|
-
}, t(y)(e), {
|
|
132
|
-
onKeyup: l[0] || (l[0] = I(B((a) => i({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"])),
|
|
133
|
-
onClear: oe
|
|
134
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : h("", !0),
|
|
135
|
-
e.fieldType === "inputNumber" ? (s(), d(t(K), _({
|
|
136
|
-
key: 1,
|
|
137
|
-
modelValue: e.queryValue,
|
|
138
|
-
"onUpdate:modelValue": (a) => e.queryValue = a,
|
|
139
|
-
placeholder: `${t(p)("act.inputPlaceholder")}${e.fieldName}`,
|
|
140
|
-
clearable: "",
|
|
141
|
-
onKeyup: l[1] || (l[1] = I(B((a) => i({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"])),
|
|
142
|
-
ref_for: !0
|
|
143
|
-
}, t(y)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : ["select", "switch", "multipleSelect"].includes(e.fieldType) ? (s(), d(k, _({
|
|
144
|
-
key: 2,
|
|
145
|
-
modelValue: e.queryValue,
|
|
146
|
-
"onUpdate:modelValue": (a) => e.queryValue = a,
|
|
147
|
-
placeholder: `${t(p)("act.selectPlaceholder")}${e.fieldName}`,
|
|
148
|
-
clearable: "",
|
|
149
|
-
filterable: "",
|
|
150
|
-
ref_for: !0
|
|
151
|
-
}, t(y)(e), {
|
|
152
|
-
multiple: e.fieldType === "multipleSelect",
|
|
153
|
-
"collapse-tags": e.fieldType === "multipleSelect",
|
|
154
|
-
"collapse-tags-tooltip": e.fieldType === "multipleSelect",
|
|
155
|
-
onChange: l[2] || (l[2] = (a) => i({ permissionCode: 1001 }))
|
|
156
|
-
}), {
|
|
157
|
-
default: g(() => [
|
|
158
|
-
(s(!0), V(q, null, L(e.dataList, (a, F) => (s(), d(o, {
|
|
159
|
-
key: F,
|
|
160
|
-
label: a.key,
|
|
161
|
-
value: a.value
|
|
162
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
163
|
-
]),
|
|
164
|
-
_: 2
|
|
165
|
-
}, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "collapse-tags", "collapse-tags-tooltip"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (s(), d(P, _({
|
|
166
|
-
key: 3,
|
|
167
|
-
modelValue: e.queryValue,
|
|
168
|
-
"onUpdate:modelValue": (a) => e.queryValue = a,
|
|
169
|
-
options: e.dataList,
|
|
170
|
-
props: { ...t(me) },
|
|
171
|
-
placeholder: `${t(p)("act.selectPlaceholder")}${e.fieldName}`,
|
|
172
|
-
clearable: "",
|
|
173
|
-
filterable: "",
|
|
174
|
-
ref_for: !0
|
|
175
|
-
}, t(y)(e), {
|
|
176
|
-
"collapse-tags": e.fieldType === "virtualizedMultipleSelect",
|
|
177
|
-
"collapse-tags-tooltip": e.fieldType === "virtualizedMultipleSelect",
|
|
178
|
-
multiple: e.fieldType === "virtualizedMultipleSelect",
|
|
179
|
-
onChange: l[3] || (l[3] = (a) => i({ permissionCode: 1001 }))
|
|
180
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "collapse-tags", "collapse-tags-tooltip", "multiple"])) : e.fieldType === "provinceCascade" ? (s(), d($, _({
|
|
181
|
-
key: 4,
|
|
182
|
-
modelValue: e.queryValue,
|
|
183
|
-
"onUpdate:modelValue": (a) => e.queryValue = a,
|
|
184
|
-
options: e.dataList,
|
|
185
|
-
props: { ...t(be) },
|
|
186
|
-
clearable: "",
|
|
187
|
-
filterable: "",
|
|
188
|
-
placeholder: `${t(p)("act.selectPlaceholder")}${e.fieldName}`,
|
|
189
|
-
ref_for: !0
|
|
190
|
-
}, t(y)(e), {
|
|
191
|
-
onChange: l[4] || (l[4] = (a) => i({ permissionCode: 1001 }))
|
|
192
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder"])) : e.fieldType === "treeSelect" ? (s(), d(w, _({
|
|
193
|
-
key: 5,
|
|
194
|
-
modelValue: e.queryValue,
|
|
195
|
-
"onUpdate:modelValue": (a) => e.queryValue = a,
|
|
196
|
-
placeholder: `请选择${e.fieldName}`,
|
|
197
|
-
props: { isLeaf: "isLeaf" },
|
|
198
|
-
"render-after-expand": !1,
|
|
199
|
-
"collapse-tags": "",
|
|
200
|
-
"collapse-tags-tooltip": "",
|
|
201
|
-
multiple: "",
|
|
202
|
-
"show-checkbox": "",
|
|
203
|
-
clearable: "",
|
|
204
|
-
filterable: "",
|
|
205
|
-
lazy: "",
|
|
206
|
-
load: (a, F) => ae({ node: a, resolve: F }, e),
|
|
207
|
-
ref_for: !0
|
|
208
|
-
}, t(y)(e), {
|
|
209
|
-
onChange: l[5] || (l[5] = (a) => i({ permissionCode: 1001 }))
|
|
210
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "load"])) : e.fieldType === "date" ? (s(), d(Q, _({
|
|
211
|
-
key: 6,
|
|
212
|
-
modelValue: e.queryValue,
|
|
213
|
-
"onUpdate:modelValue": (a) => e.queryValue = a,
|
|
214
|
-
type: "date",
|
|
215
|
-
placeholder: `${t(p)("act.selectPlaceholder")}${t(p)("act.time")}`,
|
|
216
|
-
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
217
|
-
clearable: "",
|
|
218
|
-
ref_for: !0
|
|
219
|
-
}, t(y)(e), {
|
|
220
|
-
onChange: l[6] || (l[6] = (a) => i({ permissionCode: 1001 }))
|
|
221
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : e.fieldType === "dateRange" ? (s(), d(Q, _({
|
|
222
|
-
key: 7,
|
|
223
|
-
modelValue: e.queryValue,
|
|
224
|
-
"onUpdate:modelValue": (a) => e.queryValue = a,
|
|
225
|
-
type: "daterange",
|
|
226
|
-
"start-placeholder": t(p)("act.startTime"),
|
|
227
|
-
"end-placeholder": t(p)("act.endTime"),
|
|
228
|
-
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
229
|
-
clearable: "",
|
|
230
|
-
ref_for: !0
|
|
231
|
-
}, t(y)(e), {
|
|
232
|
-
onChange: l[7] || (l[7] = (a) => i({ permissionCode: 1001 }))
|
|
233
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder"])) : h("", !0)
|
|
234
|
-
]),
|
|
235
|
-
_: 2
|
|
236
|
-
}, 1032, ["label-width", "label"]))
|
|
237
|
-
], 64)) : h("", !0)
|
|
238
|
-
], 64))), 128)),
|
|
239
|
-
t(b).length ? (s(), d(D, {
|
|
240
|
-
key: 0,
|
|
241
|
-
class: "search-form-btn",
|
|
242
|
-
"label-width": "0"
|
|
243
|
-
}, {
|
|
244
|
-
default: g(() => [
|
|
245
|
-
(s(!0), V(q, null, L(t(Y), (e, N) => ce((s(), d(c, {
|
|
246
|
-
key: N,
|
|
247
|
-
type: e.btnColor,
|
|
248
|
-
loading: e.loading,
|
|
249
|
-
onClick: (a) => i(e)
|
|
250
|
-
}, {
|
|
251
|
-
default: g(() => [
|
|
252
|
-
e.btnIcon ? (s(), d(R, {
|
|
253
|
-
key: 0,
|
|
254
|
-
class: "mr6",
|
|
255
|
-
name: e.btnIcon,
|
|
256
|
-
width: "12",
|
|
257
|
-
height: "12",
|
|
258
|
-
color: "#fff"
|
|
259
|
-
}, null, 8, ["name"])) : h("", !0),
|
|
260
|
-
M(" " + S(e.btnName), 1)
|
|
261
|
-
]),
|
|
262
|
-
_: 2
|
|
263
|
-
}, 1032, ["type", "loading", "onClick"])), [
|
|
264
|
-
[v]
|
|
265
|
-
])), 128))
|
|
266
|
-
]),
|
|
267
|
-
_: 1
|
|
268
|
-
})) : h("", !0)
|
|
269
|
-
]),
|
|
270
|
-
_: 1
|
|
271
|
-
}, 8, ["style"]),
|
|
272
|
-
m.data.tableConfig.isExpandQuery && ((n = t(b)) == null ? void 0 : n.length) > m.data.tableConfig.tableQueryRowWidth ? (s(), d(c, {
|
|
273
|
-
key: 0,
|
|
274
|
-
class: "expand",
|
|
275
|
-
text: "",
|
|
276
|
-
size: "small",
|
|
277
|
-
icon: t(T) ? "ArrowDown" : "ArrowUp",
|
|
278
|
-
onClick: te
|
|
279
|
-
}, {
|
|
280
|
-
default: g(() => [
|
|
281
|
-
M(S(t(T) ? t(p)("act.expand") : t(p)("act.retract")), 1)
|
|
282
|
-
]),
|
|
283
|
-
_: 1
|
|
284
|
-
}, 8, ["icon"])) : h("", !0)
|
|
285
|
-
])) : h("", !0);
|
|
286
|
-
};
|
|
287
|
-
}
|
|
288
|
-
}, De = /* @__PURE__ */ fe(he, [["__scopeId", "data-v-3c6eb654"]]);
|
|
289
|
-
export {
|
|
290
|
-
De as default
|
|
291
|
-
};
|