act-plus 1.1.11 → 1.1.13
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 +8 -8
- package/lib/{configBtns-43a0b3ed.js → configBtns-09c47bdc.js} +2 -2
- package/lib/{configFileds-ee22e86c.js → configFileds-b05ff8d6.js} +2 -2
- package/lib/{configTable-b2af06b3.js → configTable-81177e8e.js} +1 -1
- package/lib/{dialogAddField-9cabb5f6.js → dialogAddField-3ff21e12.js} +1 -1
- package/lib/{dialogConfigBtn-72808668.js → dialogConfigBtn-fa6dfc7b.js} +2 -2
- package/lib/{index-40bead86.js → index-116f3e14.js} +1 -1
- package/lib/{index-56d6c2f1.js → index-1ead662a.js} +1 -1
- package/lib/{index-1ea4771f.js → index-4436398d.js} +1 -1
- package/lib/{index-f7012667.js → index-5c409834.js} +241 -241
- package/lib/{index-3c967e66.js → index-e46742f5.js} +62 -57
- package/lib/{index-fd0e4c95.js → index-fb500c0a.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inject as M, reactive as de, ref as
|
|
2
|
-
import { a as ce, e as ue, r as fe, b as pe, E as W, _ as me, u as ye, T as z, P as be } from "./index-
|
|
1
|
+
import { inject as M, reactive as de, ref as L, watch as se, resolveComponent as y, openBlock as r, createBlock as u, withCtx as _, createElementVNode as B, createVNode as T, unref as l, createTextVNode as P, toDisplayString as w, createElementBlock as V, Fragment as D, renderList as R, createCommentVNode as re, resolveDynamicComponent as ne, isRef as ie } from "vue";
|
|
2
|
+
import { a as ce, e as ue, r as fe, b as pe, E as W, _ as me, u as ye, T as z, P as be } from "./index-5c409834.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
const $ = ce.create({
|
|
5
5
|
baseURL: "",
|
|
@@ -7,25 +7,25 @@ const $ = ce.create({
|
|
|
7
7
|
timeout: 15e3
|
|
8
8
|
});
|
|
9
9
|
$.interceptors.request.use(
|
|
10
|
-
(
|
|
11
|
-
let
|
|
12
|
-
return
|
|
10
|
+
(s) => {
|
|
11
|
+
let b = sessionStorage.getItem("accessToken");
|
|
12
|
+
return b && (s.headers.Authorization = "Bearer " + b), s.headers["Content-Type"] != "application/x-www-form-urlencoded" && (s.data = { ...s.data }, Reflect.has(s.data, "dynamicFilters") && (s.data.dynamicFilters = ue(JSON.stringify(s.data.dynamicFilters)))), s;
|
|
13
13
|
},
|
|
14
|
-
(
|
|
14
|
+
(s) => Promise.reject(s)
|
|
15
15
|
);
|
|
16
16
|
$.interceptors.response.use(
|
|
17
|
-
(
|
|
18
|
-
const
|
|
19
|
-
if (
|
|
20
|
-
return
|
|
21
|
-
if (
|
|
17
|
+
(s) => {
|
|
18
|
+
const b = s.data;
|
|
19
|
+
if (b.code == 200)
|
|
20
|
+
return b;
|
|
21
|
+
if (b.code == 401)
|
|
22
22
|
sessionStorage.clear(), fe.replace("/"), pe(), W.error({ title: "错误", message: "登陆超时,请重新登录" });
|
|
23
23
|
else
|
|
24
|
-
return W.error({ title: "错误", message:
|
|
24
|
+
return W.error({ title: "错误", message: b.msg }), Promise.reject(b.msg);
|
|
25
25
|
},
|
|
26
|
-
(
|
|
27
|
-
if (
|
|
28
|
-
return Promise.reject(
|
|
26
|
+
(s) => {
|
|
27
|
+
if (s.response.status != -1)
|
|
28
|
+
return Promise.reject(s);
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
31
|
const _e = { class: "no-config-field" }, he = { class: "dialog-footer" }, ge = {
|
|
@@ -36,11 +36,11 @@ const _e = { class: "no-config-field" }, he = { class: "dialog-footer" }, ge = {
|
|
|
36
36
|
data: { type: Object, default: () => ({}) }
|
|
37
37
|
},
|
|
38
38
|
emits: ["update:visible", "refresh"],
|
|
39
|
-
setup(
|
|
40
|
-
const { t: i } = ye(), J = M("loadComponents"), G = M("formatDataType"), A =
|
|
41
|
-
let
|
|
39
|
+
setup(s, { emit: b }) {
|
|
40
|
+
const { t: i } = ye(), J = M("loadComponents"), G = M("formatDataType"), A = b, c = s;
|
|
41
|
+
let F = de((() => ({
|
|
42
42
|
btnLoading: !1
|
|
43
|
-
}))()),
|
|
43
|
+
}))()), v = L([]), o = L({}), K = L(null), H = {};
|
|
44
44
|
const Q = (a) => a.formColumnCol == null || a.customFiledsComponentes[a.customFiledsComponentes.customComponentName] ? 24 : a.formColumnCol ? a.formColumnCol : 24 / a.formRow, X = (a) => {
|
|
45
45
|
if (["input", "textarea"].includes(a.fieldType))
|
|
46
46
|
return "blur";
|
|
@@ -70,44 +70,49 @@ const _e = { class: "no-config-field" }, he = { class: "dialog-footer" }, ge = {
|
|
|
70
70
|
async (a, f) => {
|
|
71
71
|
a && (c.data.formList.forEach(async (n) => {
|
|
72
72
|
H[n.fieldKey] = { submitFieldType: n.fieldSubmitType, isFormSetValue: n.isFormSetValue }, o.value[n.fieldKey] = Object.keys(c.data.rowData).length && n.isFormSetValue ? I(n) : Y(n.fieldType);
|
|
73
|
-
const { isFiledCustom:
|
|
74
|
-
if (
|
|
75
|
-
const p = await J(
|
|
73
|
+
const { isFiledCustom: g, customComponentName: h, customComponentUrl: C } = n.customFiledsComponentes;
|
|
74
|
+
if (g && !n.customFiledsComponentes[h]) {
|
|
75
|
+
const p = await J(C, h);
|
|
76
76
|
n.customFiledsComponentes[h] = p;
|
|
77
77
|
}
|
|
78
|
-
}),
|
|
78
|
+
}), v.value = c.data.formList || []);
|
|
79
79
|
}
|
|
80
80
|
);
|
|
81
81
|
const le = (a) => {
|
|
82
|
-
|
|
83
|
-
},
|
|
84
|
-
|
|
82
|
+
k(), a();
|
|
83
|
+
}, k = () => {
|
|
84
|
+
v.value = [], K.value.resetFields(), A("update:visible", !1);
|
|
85
85
|
}, ae = (a) => {
|
|
86
86
|
a && a.validate((f) => {
|
|
87
87
|
if (f) {
|
|
88
|
-
|
|
89
|
-
const { dataItem: n, rowData:
|
|
90
|
-
let p = { ...h, ...
|
|
91
|
-
Object.keys(p).forEach((
|
|
92
|
-
|
|
93
|
-
p[U] = p[
|
|
94
|
-
}) : Array.isArray(p[
|
|
95
|
-
}), ee(p).then((
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
88
|
+
F.btnLoading = !0;
|
|
89
|
+
const { dataItem: n, rowData: g } = c.data, h = n.submitFields.filter((d) => d.matchType == "default").reduce((d, m) => (m.submitFieldType === "string" && (d[m.submitFieldName] = m.matchFieldName.toString()), d), {}), C = n.submitFields.filter((d) => d.matchType == "match").reduce((d, m) => (d[m.submitFieldName] = G(m.submitFieldType, g[m.matchFieldName]), d), {});
|
|
90
|
+
let p = { ...h, ...C, ...o.value };
|
|
91
|
+
Object.keys(p).forEach((d) => {
|
|
92
|
+
d.includes("&") ? p[d].split("&").forEach((U, N) => {
|
|
93
|
+
p[U] = p[d][N];
|
|
94
|
+
}) : Array.isArray(p[d]) && (p[d] = Z(p[d].submitFieldType));
|
|
95
|
+
}), ee(p).then((d) => {
|
|
96
|
+
try {
|
|
97
|
+
ElNotification({ title: i("act.tip"), message: i("act.saveSuccessfully"), type: "success", duration: 2500 }), k(), A("refresh");
|
|
98
|
+
} catch (m) {
|
|
99
|
+
console.error(m);
|
|
100
|
+
}
|
|
101
|
+
F.btnLoading = !1;
|
|
102
|
+
}).catch((d) => {
|
|
103
|
+
console.error(d), F.btnLoading = !1;
|
|
104
|
+
});
|
|
100
105
|
}
|
|
101
106
|
});
|
|
102
107
|
};
|
|
103
108
|
return (a, f) => {
|
|
104
109
|
var j;
|
|
105
|
-
const n =
|
|
110
|
+
const n = y("el-input"), g = y("el-option"), h = y("el-select"), C = y("el-date-picker"), p = y("el-cascader"), d = y("el-switch"), m = y("el-form-item"), U = y("el-col"), N = y("el-row"), te = y("el-form"), E = y("el-button"), oe = y("el-dialog");
|
|
106
111
|
return r(), u(oe, {
|
|
107
112
|
"model-value": c.visible,
|
|
108
113
|
title: c.title,
|
|
109
114
|
top: "5vh",
|
|
110
|
-
width: (j =
|
|
115
|
+
width: (j = s.data.formConfig) == null ? void 0 : j.dialogWidth,
|
|
111
116
|
"append-to-body": "",
|
|
112
117
|
"destroy-on-close": "",
|
|
113
118
|
"close-on-click-modal": !1,
|
|
@@ -116,8 +121,8 @@ const _e = { class: "no-config-field" }, he = { class: "dialog-footer" }, ge = {
|
|
|
116
121
|
footer: _(() => [
|
|
117
122
|
B("span", he, [
|
|
118
123
|
T(E, {
|
|
119
|
-
loading: l(
|
|
120
|
-
onClick:
|
|
124
|
+
loading: l(F).btnLoading,
|
|
125
|
+
onClick: k
|
|
121
126
|
}, {
|
|
122
127
|
default: _(() => [
|
|
123
128
|
P(w(l(i)("act.cancel")), 1)
|
|
@@ -126,8 +131,8 @@ const _e = { class: "no-config-field" }, he = { class: "dialog-footer" }, ge = {
|
|
|
126
131
|
}, 8, ["loading"]),
|
|
127
132
|
T(E, {
|
|
128
133
|
type: "primary",
|
|
129
|
-
loading: l(
|
|
130
|
-
onClick: f[1] || (f[1] = (S) => ae(l(
|
|
134
|
+
loading: l(F).btnLoading,
|
|
135
|
+
onClick: f[1] || (f[1] = (S) => ae(l(K)))
|
|
131
136
|
}, {
|
|
132
137
|
default: _(() => [
|
|
133
138
|
P(w(l(i)("act.save")), 1)
|
|
@@ -141,16 +146,16 @@ const _e = { class: "no-config-field" }, he = { class: "dialog-footer" }, ge = {
|
|
|
141
146
|
return [
|
|
142
147
|
T(te, {
|
|
143
148
|
ref_key: "formRef",
|
|
144
|
-
ref:
|
|
149
|
+
ref: K,
|
|
145
150
|
model: l(o),
|
|
146
151
|
"label-suffix": ":",
|
|
147
|
-
"label-width": (S =
|
|
148
|
-
"label-position": (O =
|
|
152
|
+
"label-width": (S = s.data.formConfig) == null ? void 0 : S.formLabelWidth,
|
|
153
|
+
"label-position": (O = s.data.formConfig) == null ? void 0 : O.formLabelPosition
|
|
149
154
|
}, {
|
|
150
155
|
default: _(() => [
|
|
151
156
|
T(N, { gutter: 40 }, {
|
|
152
157
|
default: _(() => [
|
|
153
|
-
(r(!0), V(D, null, R(l(
|
|
158
|
+
(r(!0), V(D, null, R(l(v), (e, q) => (r(), u(U, {
|
|
154
159
|
span: Q(e),
|
|
155
160
|
key: q
|
|
156
161
|
}, {
|
|
@@ -169,7 +174,7 @@ const _e = { class: "no-config-field" }, he = { class: "dialog-footer" }, ge = {
|
|
|
169
174
|
B("span", _e, "【" + w(e.fieldName) + "】", 1),
|
|
170
175
|
P(w(l(i)("act.fieldCustom")), 1)
|
|
171
176
|
]))
|
|
172
|
-
], 64)) : (r(), u(
|
|
177
|
+
], 64)) : (r(), u(m, {
|
|
173
178
|
key: 0,
|
|
174
179
|
label: e.fieldName,
|
|
175
180
|
prop: e.fieldKey,
|
|
@@ -203,8 +208,8 @@ const _e = { class: "no-config-field" }, he = { class: "dialog-footer" }, ge = {
|
|
|
203
208
|
filterable: ""
|
|
204
209
|
}, {
|
|
205
210
|
default: _(() => [
|
|
206
|
-
(r(!0), V(D, null, R(e.dataList, (t,
|
|
207
|
-
key:
|
|
211
|
+
(r(!0), V(D, null, R(e.dataList, (t, x) => (r(), u(g, {
|
|
212
|
+
key: x,
|
|
208
213
|
label: t.key,
|
|
209
214
|
value: t.value
|
|
210
215
|
}, null, 8, ["label", "value"]))), 128))
|
|
@@ -220,14 +225,14 @@ const _e = { class: "no-config-field" }, he = { class: "dialog-footer" }, ge = {
|
|
|
220
225
|
filterable: ""
|
|
221
226
|
}, {
|
|
222
227
|
default: _(() => [
|
|
223
|
-
(r(!0), V(D, null, R(e.dataList, (t,
|
|
224
|
-
key:
|
|
228
|
+
(r(!0), V(D, null, R(e.dataList, (t, x) => (r(), u(g, {
|
|
229
|
+
key: x,
|
|
225
230
|
label: t.key,
|
|
226
231
|
value: t.value
|
|
227
232
|
}, null, 8, ["label", "value"]))), 128))
|
|
228
233
|
]),
|
|
229
234
|
_: 2
|
|
230
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "date" ? (r(), u(
|
|
235
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "date" ? (r(), u(C, {
|
|
231
236
|
key: 4,
|
|
232
237
|
modelValue: l(o)[e.fieldKey],
|
|
233
238
|
"onUpdate:modelValue": (t) => l(o)[e.fieldKey] = t,
|
|
@@ -235,7 +240,7 @@ const _e = { class: "no-config-field" }, he = { class: "dialog-footer" }, ge = {
|
|
|
235
240
|
placeholder: `${l(i)("act.selectPlaceholder")}${l(i)("act.time")}`,
|
|
236
241
|
"value-format": l(z)[e.fieldUiType],
|
|
237
242
|
disabled: e.isFormDisabled
|
|
238
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "placeholder", "value-format", "disabled"])) : e.fieldType === "dateRange" ? (r(), u(
|
|
243
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "placeholder", "value-format", "disabled"])) : e.fieldType === "dateRange" ? (r(), u(C, {
|
|
239
244
|
key: 5,
|
|
240
245
|
modelValue: l(o)[e.fieldKey],
|
|
241
246
|
"onUpdate:modelValue": (t) => l(o)[e.fieldKey] = t,
|
|
@@ -254,7 +259,7 @@ const _e = { class: "no-config-field" }, he = { class: "dialog-footer" }, ge = {
|
|
|
254
259
|
filterable: "",
|
|
255
260
|
placeholder: `${l(i)("act.selectPlaceholder")}${e.fieldName}`,
|
|
256
261
|
disabled: e.isFormDisabled
|
|
257
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (r(), u(
|
|
262
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (r(), u(d, {
|
|
258
263
|
key: 7,
|
|
259
264
|
modelValue: l(o)[e.fieldKey],
|
|
260
265
|
"onUpdate:modelValue": (t) => l(o)[e.fieldKey] = t,
|
|
@@ -279,7 +284,7 @@ const _e = { class: "no-config-field" }, he = { class: "dialog-footer" }, ge = {
|
|
|
279
284
|
}, 8, ["model-value", "title", "width"]);
|
|
280
285
|
};
|
|
281
286
|
}
|
|
282
|
-
}, we = /* @__PURE__ */ me(ge, [["__scopeId", "data-v-
|
|
287
|
+
}, we = /* @__PURE__ */ me(ge, [["__scopeId", "data-v-87936a1d"]]);
|
|
283
288
|
export {
|
|
284
289
|
we as default
|
|
285
290
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as R, inject as l, watch as j, resolveComponent as g, openBlock as s, createElementBlock as m, Fragment as y, renderList as q, unref as f, createBlock as c, resolveDynamicComponent as A, withCtx as _, createVNode as O, createCommentVNode as i, createTextVNode as B, toDisplayString as k } from "vue";
|
|
2
|
-
import { _ as E } from "./index-
|
|
2
|
+
import { _ as E } from "./index-5c409834.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
const H = { class: "header-operate-container" }, M = {
|
|
5
5
|
__name: "index",
|
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}.ml6{margin-left:6px!important}.ml4{margin-left:4px!important}.mr6{margin-right:6px}.mr2{margin-right:2px}.mr4{margin-right:4px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%}.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}.ml6{margin-left:6px!important}.ml4{margin-left:4px!important}.mr6{margin-right:6px}.mr2{margin-right:2px}.mr4{margin-right:4px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%}.el-date-editor{--el-date-editor-width: 100%}[data-v-d6afac32] .el-empty__image{width:100%}.page-container[data-v-182c790b]{position:relative}.page-container .header-operate[data-v-182c790b]{position:sticky;top:0;z-index:999}.page-container .submit-box[data-v-182c790b]{display:flex;align-items:center;justify-content:flex-end}.page-container .submit-box-l[data-v-182c790b]{width:360px;margin-right:24px}.act-table .table-pagination[data-v-3c7bb62d]{padding:12px 4px;justify-content:flex-end}.search-module-container[data-v-810f647f] .el-form-item--default{margin-bottom:12px}.search-module-container .form-content[data-v-810f647f]{display:grid;grid-template-columns:repeat(var(--table-query-row-width),1fr);gap:12px 24px;padding:12px 12px 0}.search-module-container .form-content .search-form-btn[data-v-810f647f]{justify-self:end;align-self:start;grid-column-start:var(--table-query-row-width);grid-column-end:var(--table-query-row-width)}.header-operate-container[data-v-67a827c3]{display:flex;align-items:center;justify-content:flex-end}.header-operate-container .el-btn[data-v-67a827c3]{margin:6px}.card-header[data-v-87936a1d]{display:flex;align-items:center}.card-header-operate[data-v-87936a1d]{margin-left:auto}.no-config[data-v-87936a1d]{line-height:32px;font-weight:700}.no-config-field[data-v-87936a1d]{margin-left:60px;color:red}.add-icon-btn[data-v-e5474dc6]{cursor:pointer;width:24px;height:24px;margin-left:6px}.table-post-params[data-v-e5474dc6]{position:relative;margin-bottom:12px}.table-post-params .submit-operate[data-v-e5474dc6]{position:absolute;top:-20px;right:-10px;display:flex;align-items:center}.table-post-params .submit-operate .match-opreate[data-v-e5474dc6]{cursor:pointer;width:12px;height:12px}.card-header[data-v-7aea1297]{display:flex;align-items:center}.card-header-operate[data-v-7aea1297]{margin-left:auto}.form-list[data-v-7aea1297]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-7aea1297]:last-child{border:none}.config-list-operate[data-v-7aea1297]{display:flex;align-items:center;justify-content:flex-end}.card-header[data-v-d50513ad]{display:flex;align-items:center}.card-header-operate[data-v-d50513ad]{margin-left:auto}.form-list[data-v-d50513ad]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-d50513ad]:last-child{border:none}.config-list-operate[data-v-d50513ad]{display:flex;align-items:center;justify-content:flex-end}.add-icon-btn[data-v-599e2ff7]{cursor:pointer;width:24px;height:24px;margin-left:6px}.condition-box[data-v-599e2ff7]{display:flex;justify-content:center}.condition-box[data-v-599e2ff7] .el-form-item__content{flex:0;min-width:300px}.submit-operate[data-v-599e2ff7]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-599e2ff7]{cursor:pointer;width:20px;height:20px}.add-icon-btn[data-v-4134748b]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-4134748b]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-4134748b]{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-eac43c79]{display:flex;align-items:center}.select-icon-container .icon-value .icon-btn[data-v-eac43c79]{margin-left:12px}
|