act-plus 1.1.13 → 1.1.15
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 -3
- package/act-plus.umd.cjs +16 -21
- package/lib/{configBtns-09c47bdc.js → configBtns-a70ef47b.js} +22 -21
- package/lib/{configFileds-b05ff8d6.js → configFileds-d2fb5908.js} +5 -4
- package/lib/{configTable-81177e8e.js → configTable-050f92f2.js} +4 -3
- package/lib/{dialogAddField-3ff21e12.js → dialogAddField-4ed56949.js} +4 -3
- package/lib/{dialogConfigBtn-fa6dfc7b.js → dialogConfigBtn-5b37468e.js} +5 -4
- package/lib/{index-e46742f5.js → index-1d32cd33.js} +8 -7
- package/lib/{index-1ead662a.js → index-22ca34a4.js} +4 -3
- package/lib/{index-fb500c0a.js → index-458cee1d.js} +4 -3
- package/lib/{index-116f3e14.js → index-606178f7.js} +4 -3
- package/lib/{index-4436398d.js → index-7793b196.js} +4 -3
- package/lib/index-eeba5e50.js +11184 -0
- package/package.json +1 -1
- package/lib/index-5c409834.js +0 -12798
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineAsyncComponent as U, reactive as A, ref as g, provide as D, watch as M, resolveComponent as m, openBlock as T, createBlock as W, withCtx as s, createVNode as f, unref as
|
|
2
|
-
import { _ as E, g as P, c as H } from "./index-
|
|
1
|
+
import { defineAsyncComponent as U, reactive as A, ref as g, provide as D, watch as M, resolveComponent as m, openBlock as T, createBlock as W, withCtx as s, createVNode as f, unref as l, isRef as F, createTextVNode as I, toDisplayString as O, pushScopeId as j, popScopeId as z, createElementVNode as x } from "vue";
|
|
2
|
+
import { _ as E, g as P, c as H } from "./index-eeba5e50.js";
|
|
3
3
|
import { useRoute as K } from "vue-router";
|
|
4
|
+
import "element-plus";
|
|
4
5
|
const $ = (r) => (j("data-v-7aea1297"), r = r(), z(), r), G = /* @__PURE__ */ $(() => /* @__PURE__ */ x("div", { class: "card-header" }, [
|
|
5
6
|
/* @__PURE__ */ x("div", { class: "card-header-title" }, "按钮配置")
|
|
6
7
|
], -1)), J = {
|
|
@@ -10,7 +11,7 @@ const $ = (r) => (j("data-v-7aea1297"), r = r(), z(), r), G = /* @__PURE__ */ $(
|
|
|
10
11
|
},
|
|
11
12
|
emits: ["update:modelValue"],
|
|
12
13
|
setup(r, { expose: V, emit: Q }) {
|
|
13
|
-
const h = K(), L = U(() => import("./dialogConfigBtn-
|
|
14
|
+
const h = K(), L = U(() => import("./dialogConfigBtn-5b37468e.js")), d = r, w = () => ({
|
|
14
15
|
sort: 0,
|
|
15
16
|
permissionCode: null,
|
|
16
17
|
requestUrl: "",
|
|
@@ -51,8 +52,8 @@ const $ = (r) => (j("data-v-7aea1297"), r = r(), z(), r), G = /* @__PURE__ */ $(
|
|
|
51
52
|
}, k = async (a) => {
|
|
52
53
|
try {
|
|
53
54
|
o.tableLoading = !0;
|
|
54
|
-
const t = d.id ? d.id : h.params.id, { data:
|
|
55
|
-
c.value = (
|
|
55
|
+
const t = d.id ? d.id : h.params.id, { data: i } = await H({ id: t });
|
|
56
|
+
c.value = (i || []).filter((n) => (a || []).some((u) => u.permissionCode == n.unique)).map((n) => n.unique), b.value = (i || []).map((n, u) => {
|
|
56
57
|
let _ = w(), p = (a || []).find((e) => e.permissionCode == n.unique) || {};
|
|
57
58
|
return { ..._, ...p, btnName: n.name, permissionCode: n.unique, sort: p.sort ? p.sort : (u + 1) * 10 };
|
|
58
59
|
}), o.tableLoading = !1;
|
|
@@ -64,10 +65,10 @@ const $ = (r) => (j("data-v-7aea1297"), r = r(), z(), r), G = /* @__PURE__ */ $(
|
|
|
64
65
|
() => d.modelValue,
|
|
65
66
|
async (a, t) => {
|
|
66
67
|
try {
|
|
67
|
-
const
|
|
68
|
-
v = (await P({ dynamicFilters: [{ field: "parentId", operate: "Equal", value:
|
|
69
|
-
} catch (
|
|
70
|
-
o.tableLoading = !1, console.error(
|
|
68
|
+
const i = d.id ? d.id : h.params.id;
|
|
69
|
+
v = (await P({ dynamicFilters: [{ field: "parentId", operate: "Equal", value: i }] })).data || [], await k(a);
|
|
70
|
+
} catch (i) {
|
|
71
|
+
o.tableLoading = !1, console.error(i);
|
|
71
72
|
}
|
|
72
73
|
},
|
|
73
74
|
{ deep: !0, immediate: !0 }
|
|
@@ -76,7 +77,7 @@ const $ = (r) => (j("data-v-7aea1297"), r = r(), z(), r), G = /* @__PURE__ */ $(
|
|
|
76
77
|
o.dialogData = a.row, y = a.$index, o.showConfigBtnDialog = !0;
|
|
77
78
|
};
|
|
78
79
|
return V({ getTableSelectionRows: R }), (a, t) => {
|
|
79
|
-
const
|
|
80
|
+
const i = m("el-tag"), n = m("el-input-number"), u = m("el-button"), _ = m("a-table"), p = m("el-card");
|
|
80
81
|
return T(), W(p, {
|
|
81
82
|
class: "form-card",
|
|
82
83
|
shadow: "hover"
|
|
@@ -88,16 +89,16 @@ const $ = (r) => (j("data-v-7aea1297"), r = r(), z(), r), G = /* @__PURE__ */ $(
|
|
|
88
89
|
f(_, {
|
|
89
90
|
ref_key: "tableRef",
|
|
90
91
|
ref: C,
|
|
91
|
-
loading:
|
|
92
|
+
loading: l(o).tableLoading,
|
|
92
93
|
rowKey: "permissionCode",
|
|
93
|
-
selection:
|
|
94
|
+
selection: l(c),
|
|
94
95
|
"onUpdate:selection": t[0] || (t[0] = (e) => F(c) ? c.value = e : c = e),
|
|
95
|
-
headers:
|
|
96
|
-
data:
|
|
96
|
+
headers: l(N),
|
|
97
|
+
data: l(b),
|
|
97
98
|
showPagination: !1
|
|
98
99
|
}, {
|
|
99
100
|
isCustomBtn: s(({ scope: e }) => [
|
|
100
|
-
f(
|
|
101
|
+
f(i, {
|
|
101
102
|
type: "primary",
|
|
102
103
|
effect: "dark",
|
|
103
104
|
size: "small"
|
|
@@ -131,11 +132,11 @@ const $ = (r) => (j("data-v-7aea1297"), r = r(), z(), r), G = /* @__PURE__ */ $(
|
|
|
131
132
|
]),
|
|
132
133
|
_: 1
|
|
133
134
|
}, 8, ["loading", "selection", "headers", "data"]),
|
|
134
|
-
f(
|
|
135
|
-
visible:
|
|
136
|
-
"onUpdate:visible": t[1] || (t[1] = (e) =>
|
|
135
|
+
f(l(L), {
|
|
136
|
+
visible: l(o).showConfigBtnDialog,
|
|
137
|
+
"onUpdate:visible": t[1] || (t[1] = (e) => l(o).showConfigBtnDialog = e),
|
|
137
138
|
title: "配置按钮",
|
|
138
|
-
data:
|
|
139
|
+
data: l(o).dialogData,
|
|
139
140
|
onRefresh: S
|
|
140
141
|
}, null, 8, ["visible", "data"])
|
|
141
142
|
]),
|
|
@@ -143,7 +144,7 @@ const $ = (r) => (j("data-v-7aea1297"), r = r(), z(), r), G = /* @__PURE__ */ $(
|
|
|
143
144
|
});
|
|
144
145
|
};
|
|
145
146
|
}
|
|
146
|
-
},
|
|
147
|
+
}, oe = /* @__PURE__ */ E(J, [["__scopeId", "data-v-7aea1297"]]);
|
|
147
148
|
export {
|
|
148
|
-
|
|
149
|
+
oe as default
|
|
149
150
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { defineAsyncComponent as I, inject as H, reactive as U, ref as j, watch as B, resolveComponent as m, openBlock as f, createBlock as w, withCtx as o, createElementVNode as C, createVNode as r, createTextVNode as i, unref as d, toDisplayString as _, createElementBlock as q, Fragment as K, renderList as O, createCommentVNode as W, pushScopeId as Y, popScopeId as G } from "vue";
|
|
2
2
|
import { a as J } from "./enum-99519ce0.js";
|
|
3
|
-
import { _ as M } from "./index-
|
|
3
|
+
import { _ as M } from "./index-eeba5e50.js";
|
|
4
4
|
import "vue-router";
|
|
5
|
+
import "element-plus";
|
|
5
6
|
const Q = (u) => (Y("data-v-d50513ad"), u = u(), G(), u), X = { class: "card-header" }, Z = /* @__PURE__ */ Q(() => /* @__PURE__ */ C("div", { class: "card-header-title" }, "字段配置", -1)), ee = {
|
|
6
7
|
__name: "configFileds",
|
|
7
8
|
props: {
|
|
@@ -9,7 +10,7 @@ const Q = (u) => (Y("data-v-d50513ad"), u = u(), G(), u), X = { class: "card-hea
|
|
|
9
10
|
},
|
|
10
11
|
emits: ["update:modelValue"],
|
|
11
12
|
setup(u, { emit: v }) {
|
|
12
|
-
const F = I(() => import("./dialogAddField-
|
|
13
|
+
const F = I(() => import("./dialogAddField-4ed56949.js")), g = v, h = u, V = H("configData")();
|
|
13
14
|
let l = U((() => ({
|
|
14
15
|
tableLoading: !1,
|
|
15
16
|
showAddFieldDialog: !1,
|
|
@@ -190,7 +191,7 @@ const Q = (u) => (Y("data-v-d50513ad"), u = u(), G(), u), X = { class: "card-hea
|
|
|
190
191
|
});
|
|
191
192
|
};
|
|
192
193
|
}
|
|
193
|
-
},
|
|
194
|
+
}, de = /* @__PURE__ */ M(ee, [["__scopeId", "data-v-d50513ad"]]);
|
|
194
195
|
export {
|
|
195
|
-
|
|
196
|
+
de as default
|
|
196
197
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { inject as B, ref as T, watch as j, resolveComponent as m, openBlock as i, createBlock as _, withCtx as l, createVNode as e, unref as o, createTextVNode as E, createElementBlock as y, Fragment as U, renderList as h, createCommentVNode as v } from "vue";
|
|
2
2
|
import { S as I } from "./enum-99519ce0.js";
|
|
3
|
-
import { _ as M } from "./index-
|
|
3
|
+
import { _ as M } from "./index-eeba5e50.js";
|
|
4
4
|
import "vue-router";
|
|
5
|
+
import "element-plus";
|
|
5
6
|
const A = {
|
|
6
7
|
__name: "configTable",
|
|
7
8
|
props: {
|
|
@@ -369,7 +370,7 @@ const A = {
|
|
|
369
370
|
});
|
|
370
371
|
};
|
|
371
372
|
}
|
|
372
|
-
},
|
|
373
|
+
}, K = /* @__PURE__ */ M(A, [["__scopeId", "data-v-e5474dc6"]]);
|
|
373
374
|
export {
|
|
374
|
-
|
|
375
|
+
K as default
|
|
375
376
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { inject as E, reactive as ne, ref as D, watch as re, resolveComponent as V, openBlock as n, createBlock as i, withCtx as a, createElementVNode as H, createVNode as l, unref as o, createTextVNode as U, createElementBlock as c, Fragment as _, renderList as g, createCommentVNode as T, toDisplayString as se } from "vue";
|
|
2
2
|
import { a as ie, j as me, P as pe, k as A, T as fe, A as be, C as ce, U as _e } from "./enum-99519ce0.js";
|
|
3
|
-
import { _ as Ve } from "./index-
|
|
3
|
+
import { _ as Ve } from "./index-eeba5e50.js";
|
|
4
4
|
import "vue-router";
|
|
5
|
+
import "element-plus";
|
|
5
6
|
const ge = { slot: "prepend" }, Ce = { class: "dialog-footer" }, ye = {
|
|
6
7
|
__name: "dialogAddField",
|
|
7
8
|
props: {
|
|
@@ -908,7 +909,7 @@ const ge = { slot: "prepend" }, Ce = { class: "dialog-footer" }, ye = {
|
|
|
908
909
|
}, 8, ["model-value", "title"]);
|
|
909
910
|
};
|
|
910
911
|
}
|
|
911
|
-
},
|
|
912
|
+
}, qe = /* @__PURE__ */ Ve(ye, [["__scopeId", "data-v-4134748b"]]);
|
|
912
913
|
export {
|
|
913
|
-
|
|
914
|
+
qe as default
|
|
914
915
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { defineAsyncComponent as ee, computed as le, reactive as ae, inject as S, ref as q, watch as te, resolveComponent as y, openBlock as d, createBlock as m, withCtx as l, createElementVNode as oe, 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
2
|
import { B as ue, b as ne, c as de, d as re, e as se, f as ie, g as me, h as pe, i as ce } from "./enum-99519ce0.js";
|
|
3
|
-
import { _ as be, d as fe } from "./index-
|
|
3
|
+
import { _ as be, d as fe } from "./index-eeba5e50.js";
|
|
4
4
|
import { useRoute as _e } from "vue-router";
|
|
5
|
+
import "element-plus";
|
|
5
6
|
const Ve = { class: "dialog-footer" }, ge = {
|
|
6
7
|
__name: "dialogConfigBtn",
|
|
7
8
|
props: {
|
|
@@ -11,7 +12,7 @@ const Ve = { class: "dialog-footer" }, ge = {
|
|
|
11
12
|
},
|
|
12
13
|
emits: ["update:visible", "refresh"],
|
|
13
14
|
setup(P, { emit: A }) {
|
|
14
|
-
const O = ee(() => import("./index-
|
|
15
|
+
const O = ee(() => import("./index-7793b196.js")), E = _e(), I = A, T = P, D = le(() => E.params.key);
|
|
15
16
|
let k = ae((() => ({
|
|
16
17
|
btnLoading: !1
|
|
17
18
|
}))());
|
|
@@ -764,7 +765,7 @@ const Ve = { class: "dialog-footer" }, ge = {
|
|
|
764
765
|
}, 8, ["model-value", "title"]);
|
|
765
766
|
};
|
|
766
767
|
}
|
|
767
|
-
},
|
|
768
|
+
}, ke = /* @__PURE__ */ be(ge, [["__scopeId", "data-v-599e2ff7"]]);
|
|
768
769
|
export {
|
|
769
|
-
|
|
770
|
+
ke as default
|
|
770
771
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
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,
|
|
2
|
+
import { a as ce, e as ue, r as fe, b as pe, _ as me, u as ye, T as W, P as be } from "./index-eeba5e50.js";
|
|
3
|
+
import { ElMessage as z } from "element-plus";
|
|
3
4
|
import "vue-router";
|
|
4
5
|
const $ = ce.create({
|
|
5
6
|
baseURL: "",
|
|
@@ -19,9 +20,9 @@ $.interceptors.response.use(
|
|
|
19
20
|
if (b.code == 200)
|
|
20
21
|
return b;
|
|
21
22
|
if (b.code == 401)
|
|
22
|
-
sessionStorage.clear(), fe.replace("/"), pe(),
|
|
23
|
+
sessionStorage.clear(), fe.replace("/"), pe(), z.error({ title: "错误", message: "登陆超时,请重新登录" });
|
|
23
24
|
else
|
|
24
|
-
return
|
|
25
|
+
return z.error({ title: "错误", message: b.msg }), Promise.reject(b.msg);
|
|
25
26
|
},
|
|
26
27
|
(s) => {
|
|
27
28
|
if (s.response.status != -1)
|
|
@@ -238,7 +239,7 @@ const _e = { class: "no-config-field" }, he = { class: "dialog-footer" }, ge = {
|
|
|
238
239
|
"onUpdate:modelValue": (t) => l(o)[e.fieldKey] = t,
|
|
239
240
|
type: e.fieldUiType,
|
|
240
241
|
placeholder: `${l(i)("act.selectPlaceholder")}${l(i)("act.time")}`,
|
|
241
|
-
"value-format": l(
|
|
242
|
+
"value-format": l(W)[e.fieldUiType],
|
|
242
243
|
disabled: e.isFormDisabled
|
|
243
244
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "placeholder", "value-format", "disabled"])) : e.fieldType === "dateRange" ? (r(), u(C, {
|
|
244
245
|
key: 5,
|
|
@@ -247,7 +248,7 @@ const _e = { class: "no-config-field" }, he = { class: "dialog-footer" }, ge = {
|
|
|
247
248
|
type: e.fieldUiType,
|
|
248
249
|
"start-placeholder": l(i)("act.startTime"),
|
|
249
250
|
"end-placeholder": l(i)("act.endTime"),
|
|
250
|
-
"value-format": l(
|
|
251
|
+
"value-format": l(W)[e.fieldUiType],
|
|
251
252
|
disabled: e.isFormDisabled
|
|
252
253
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "start-placeholder", "end-placeholder", "value-format", "disabled"])) : e.fieldType === "provinceCascade" ? (r(), u(p, {
|
|
253
254
|
key: 6,
|
|
@@ -284,7 +285,7 @@ const _e = { class: "no-config-field" }, he = { class: "dialog-footer" }, ge = {
|
|
|
284
285
|
}, 8, ["model-value", "title", "width"]);
|
|
285
286
|
};
|
|
286
287
|
}
|
|
287
|
-
},
|
|
288
|
+
}, De = /* @__PURE__ */ me(ge, [["__scopeId", "data-v-87936a1d"]]);
|
|
288
289
|
export {
|
|
289
|
-
|
|
290
|
+
De as default
|
|
290
291
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ref as P, watch as R, resolveComponent as u, resolveDirective as T, openBlock as a, createElementBlock as d, withDirectives as D, createBlock as n, withCtx as c, createTextVNode as K, toDisplayString as O, unref as f, Fragment as s, renderList as j, renderSlot as y, createCommentVNode as A, nextTick as w } from "vue";
|
|
2
|
-
import { _ as E, u as H } from "./index-
|
|
2
|
+
import { _ as E, u as H } from "./index-eeba5e50.js";
|
|
3
3
|
import "vue-router";
|
|
4
|
+
import "element-plus";
|
|
4
5
|
const U = { class: "act-table" }, V = {
|
|
5
6
|
__name: "index",
|
|
6
7
|
props: {
|
|
@@ -132,7 +133,7 @@ const U = { class: "act-table" }, V = {
|
|
|
132
133
|
]);
|
|
133
134
|
};
|
|
134
135
|
}
|
|
135
|
-
},
|
|
136
|
+
}, W = /* @__PURE__ */ E(V, [["__scopeId", "data-v-3c7bb62d"]]);
|
|
136
137
|
export {
|
|
137
|
-
|
|
138
|
+
W as default
|
|
138
139
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
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-eeba5e50.js";
|
|
3
3
|
import "vue-router";
|
|
4
|
+
import "element-plus";
|
|
4
5
|
const H = { class: "header-operate-container" }, M = {
|
|
5
6
|
__name: "index",
|
|
6
7
|
props: {
|
|
@@ -89,7 +90,7 @@ const H = { class: "header-operate-container" }, M = {
|
|
|
89
90
|
]);
|
|
90
91
|
};
|
|
91
92
|
}
|
|
92
|
-
},
|
|
93
|
+
}, Q = /* @__PURE__ */ E(M, [["__scopeId", "data-v-67a827c3"]]);
|
|
93
94
|
export {
|
|
94
|
-
|
|
95
|
+
Q as default
|
|
95
96
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ref as g, watch as M, resolveComponent as s, openBlock as a, createElementBlock as f, unref as t, createBlock as n, normalizeStyle as B, withCtx as p, Fragment as y, renderList as m, createCommentVNode as _, createTextVNode as E, toDisplayString as F } from "vue";
|
|
2
|
-
import { _ as L, u as O, P as R, T as $ } from "./index-
|
|
2
|
+
import { _ as L, u as O, P as R, T as $ } from "./index-eeba5e50.js";
|
|
3
3
|
import "vue-router";
|
|
4
|
+
import "element-plus";
|
|
4
5
|
const H = { class: "search-module-container" }, Q = {
|
|
5
6
|
__name: "index",
|
|
6
7
|
props: {
|
|
@@ -158,7 +159,7 @@ const H = { class: "search-module-container" }, Q = {
|
|
|
158
159
|
]);
|
|
159
160
|
};
|
|
160
161
|
}
|
|
161
|
-
},
|
|
162
|
+
}, G = /* @__PURE__ */ L(Q, [["__scopeId", "data-v-810f647f"]]);
|
|
162
163
|
export {
|
|
163
|
-
|
|
164
|
+
G as default
|
|
164
165
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ref as h, watch as I, resolveComponent as _, openBlock as a, createElementBlock as d, createVNode as u, unref as p, isRef as b, withCtx as m, createElementVNode as g, createBlock as w, createCommentVNode as C, createTextVNode as N, Fragment as B, renderList as E, normalizeClass as S } from "vue";
|
|
2
|
-
import { _ as z } from "./index-
|
|
2
|
+
import { _ as z } from "./index-eeba5e50.js";
|
|
3
3
|
import "vue-router";
|
|
4
|
+
import "element-plus";
|
|
4
5
|
const A = { class: "select-icon-container" }, F = { class: "icon-list" }, L = ["onClick"], P = {
|
|
5
6
|
class: "icon-value",
|
|
6
7
|
slot: "reference"
|
|
@@ -83,7 +84,7 @@ const A = { class: "select-icon-container" }, F = { class: "icon-list" }, L = ["
|
|
|
83
84
|
]);
|
|
84
85
|
};
|
|
85
86
|
}
|
|
86
|
-
},
|
|
87
|
+
}, G = /* @__PURE__ */ z(R, [["__scopeId", "data-v-eac43c79"]]);
|
|
87
88
|
export {
|
|
88
|
-
|
|
89
|
+
G as default
|
|
89
90
|
};
|