act-plus 1.1.33 → 1.1.35
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 +62 -62
- package/lib/{configBtns-ed29fe0b.js → configBtns-b466947f.js} +45 -42
- package/lib/{configFileds-699ace4a.js → configFileds-f0231b08.js} +3 -3
- package/lib/{configForm-2212ebfa.js → configForm-e3af844f.js} +1 -1
- package/lib/{configTable-90bfcea3.js → configTable-3ed8b3cd.js} +2 -2
- package/lib/{dialogAddField-83ad1dc8.js → dialogAddField-17e1aa96.js} +181 -147
- package/lib/{dialogConfigBtn-b63efb63.js → dialogConfigBtn-666a5a33.js} +50 -49
- package/lib/{dialogSiteComponentsParams-9ce01f01.js → dialogSiteComponentsParams-9831d8a6.js} +1 -1
- package/lib/{enum-ab7125f9.js → enum-95788c42.js} +14 -13
- package/lib/{index-279c9602.js → index-49f864eb.js} +1 -1
- package/lib/{index-c98ba0e6.js → index-71efc775.js} +24 -20
- package/lib/index-75b07771.js +326 -0
- package/lib/{index-76e96bb6.js → index-adf3ff12.js} +12994 -12990
- package/lib/index-b0157be1.js +105 -0
- package/lib/{index-71a7d469.js → index-b7ef2e32.js} +76 -76
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/index-753a8734.js +0 -307
- package/lib/index-bd619054.js +0 -92
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { inject as O, defineAsyncComponent as T, reactive as W, ref as g, provide as
|
|
1
|
+
import { inject as O, defineAsyncComponent as T, reactive as W, ref as g, provide as D, watch as j, resolveComponent as m, openBlock as F, createBlock as z, withCtx as d, createVNode as f, unref as l, isRef as E, createTextVNode as x, toDisplayString as P, pushScopeId as H, popScopeId as K, createElementVNode as L } from "vue";
|
|
2
2
|
import { useRoute as $ } from "vue-router";
|
|
3
|
-
import { _ as G } from "./index-
|
|
3
|
+
import { _ as G } from "./index-adf3ff12.js";
|
|
4
4
|
import "js-base64";
|
|
5
5
|
import "element-plus";
|
|
6
6
|
import "monaco-editor";
|
|
7
|
-
const J = (u) => (H("data-v-
|
|
7
|
+
const J = (u) => (H("data-v-862782ff"), u = u(), K(), u), Q = /* @__PURE__ */ J(() => /* @__PURE__ */ L("div", { class: "card-header" }, [
|
|
8
8
|
/* @__PURE__ */ L("div", { class: "card-header-title" }, "按钮配置")
|
|
9
9
|
], -1)), X = {
|
|
10
10
|
__name: "configBtns",
|
|
@@ -13,7 +13,7 @@ const J = (u) => (H("data-v-c348bee1"), u = u(), K(), u), Q = /* @__PURE__ */ J(
|
|
|
13
13
|
},
|
|
14
14
|
emits: ["update:modelValue"],
|
|
15
15
|
setup(u, { expose: V, emit: Y }) {
|
|
16
|
-
const h = $(), C = O("request"), q = T(() => import("./dialogConfigBtn-
|
|
16
|
+
const h = $(), C = O("request"), q = T(() => import("./dialogConfigBtn-666a5a33.js")), p = u, w = () => ({
|
|
17
17
|
sort: 0,
|
|
18
18
|
permissionCode: null,
|
|
19
19
|
requestUrl: "",
|
|
@@ -38,7 +38,7 @@ const J = (u) => (H("data-v-c348bee1"), u = u(), K(), u), Q = /* @__PURE__ */ J(
|
|
|
38
38
|
tableLoading: !1,
|
|
39
39
|
showConfigBtnDialog: !1,
|
|
40
40
|
dialogData: {}
|
|
41
|
-
}))()), v = g(null), y = 0, B = [],
|
|
41
|
+
}))()), v = g(null), y = 0, B = [], s = g([]), M = [
|
|
42
42
|
{ prop: "checkbox", width: 60 },
|
|
43
43
|
{ prop: "serialNumber", width: 80 },
|
|
44
44
|
{ label: "按钮名称", prop: "btnName", minWidth: 200 },
|
|
@@ -48,39 +48,42 @@ const J = (u) => (H("data-v-c348bee1"), u = u(), K(), u), Q = /* @__PURE__ */ J(
|
|
|
48
48
|
{ label: "是否自定义", prop: "isCustomBtn", width: 120, render: !0 },
|
|
49
49
|
{ label: "排序", prop: "sort", width: 180, render: !0 },
|
|
50
50
|
{ label: "操作", prop: "operate", width: 120, render: !0, fixed: "right" }
|
|
51
|
-
],
|
|
52
|
-
const N = (e) => C({ url: "/api/v1/sysMenus/getAllList", method: "post", data: e }), S = (e) => C({ url: "/api/v1/sysMenus/getMenuOfOperate", method: "get", params: e }), k = (e,
|
|
53
|
-
|
|
51
|
+
], b = g([]);
|
|
52
|
+
const N = (e) => C({ url: "/api/v1/sysMenus/getAllList", method: "post", data: e }), S = (e) => C({ url: "/api/v1/sysMenus/getMenuOfOperate", method: "get", params: e }), k = (e, a) => {
|
|
53
|
+
s.value.includes(e.permissionCode) || s.value.push(e.permissionCode), Object.assign(b.value[y], e), a(!0);
|
|
54
54
|
}, R = async (e) => {
|
|
55
55
|
try {
|
|
56
56
|
n.tableLoading = !0;
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
let _ = w(),
|
|
60
|
-
return { ..._, ...
|
|
61
|
-
}).sort((
|
|
62
|
-
} catch (
|
|
63
|
-
n.tableLoading = !1, console.error(
|
|
57
|
+
const a = p.id ? p.id : h.params.id, { data: i } = await S({ id: a });
|
|
58
|
+
s.value = (i || []).filter((o) => (e || []).some((r) => r.permissionCode == o.unique)).map((o) => o.unique), b.value = (i || []).map((o, r) => {
|
|
59
|
+
let _ = w(), c = (e || []).find((t) => t.permissionCode == o.unique) || {};
|
|
60
|
+
return { ..._, btnIcon: o.icon || "", ...c, btnName: o.name, permissionCode: o.unique, sort: c.sort ? c.sort : (r + 1) * 10 };
|
|
61
|
+
}).sort((o, r) => o.sort - r.sort), n.tableLoading = !1;
|
|
62
|
+
} catch (a) {
|
|
63
|
+
n.tableLoading = !1, console.error(a);
|
|
64
64
|
}
|
|
65
65
|
}, A = () => v.value.getSelectionRows() || [];
|
|
66
|
-
|
|
67
|
-
() =>
|
|
68
|
-
async (e,
|
|
66
|
+
D("associationMenuList", B), D("createDefaultButtonItem", w), j(
|
|
67
|
+
() => p.modelValue,
|
|
68
|
+
async (e, a) => {
|
|
69
69
|
try {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
if (e.length) {
|
|
71
|
+
const i = p.id ? p.id : h.params.id;
|
|
72
|
+
B = (await N({ dynamicFilters: [{ field: "parentId", operate: "Equal", value: i }] })).data || [], await R(e);
|
|
73
|
+
} else
|
|
74
|
+
s.value = [], b.value = [];
|
|
75
|
+
} catch (i) {
|
|
76
|
+
n.tableLoading = !1, console.error(i);
|
|
74
77
|
}
|
|
75
78
|
},
|
|
76
|
-
{ deep: !0
|
|
79
|
+
{ deep: !0 }
|
|
77
80
|
);
|
|
78
81
|
const U = (e) => {
|
|
79
82
|
n.dialogData = e.row, y = e.$index, n.showConfigBtnDialog = !0;
|
|
80
83
|
};
|
|
81
|
-
return V({ getTableSelectionRows: A }), (e,
|
|
82
|
-
const
|
|
83
|
-
return F(), z(
|
|
84
|
+
return V({ getTableSelectionRows: A }), (e, a) => {
|
|
85
|
+
const i = m("el-tag"), o = m("el-input-number"), r = m("el-button"), _ = m("a-table"), c = m("el-card");
|
|
86
|
+
return F(), z(c, {
|
|
84
87
|
class: "form-card",
|
|
85
88
|
shadow: "hover"
|
|
86
89
|
}, {
|
|
@@ -88,19 +91,19 @@ const J = (u) => (H("data-v-c348bee1"), u = u(), K(), u), Q = /* @__PURE__ */ J(
|
|
|
88
91
|
Q
|
|
89
92
|
]),
|
|
90
93
|
default: d(() => [
|
|
91
|
-
|
|
94
|
+
f(_, {
|
|
92
95
|
ref_key: "tableRef",
|
|
93
96
|
ref: v,
|
|
94
|
-
loading:
|
|
97
|
+
loading: l(n).tableLoading,
|
|
95
98
|
rowKey: "permissionCode",
|
|
96
|
-
selection:
|
|
97
|
-
"onUpdate:selection":
|
|
98
|
-
headers:
|
|
99
|
-
data:
|
|
99
|
+
selection: l(s),
|
|
100
|
+
"onUpdate:selection": a[0] || (a[0] = (t) => E(s) ? s.value = t : s = t),
|
|
101
|
+
headers: l(M),
|
|
102
|
+
data: l(b),
|
|
100
103
|
showPagination: !1
|
|
101
104
|
}, {
|
|
102
105
|
isCustomBtn: d(({ scope: t }) => [
|
|
103
|
-
|
|
106
|
+
f(i, {
|
|
104
107
|
type: "primary",
|
|
105
108
|
effect: "dark",
|
|
106
109
|
size: "small"
|
|
@@ -112,19 +115,19 @@ const J = (u) => (H("data-v-c348bee1"), u = u(), K(), u), Q = /* @__PURE__ */ J(
|
|
|
112
115
|
}, 1024)
|
|
113
116
|
]),
|
|
114
117
|
sort: d(({ scope: t }) => [
|
|
115
|
-
|
|
118
|
+
f(o, {
|
|
116
119
|
modelValue: t.row.sort,
|
|
117
|
-
"onUpdate:modelValue": (
|
|
120
|
+
"onUpdate:modelValue": (I) => t.row.sort = I,
|
|
118
121
|
min: 0
|
|
119
122
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
120
123
|
]),
|
|
121
124
|
operate: d(({ scope: t }) => [
|
|
122
|
-
|
|
125
|
+
f(r, {
|
|
123
126
|
type: "primary",
|
|
124
127
|
text: "",
|
|
125
128
|
size: "small",
|
|
126
129
|
icon: "Aim",
|
|
127
|
-
onClick: (
|
|
130
|
+
onClick: (I) => U(t)
|
|
128
131
|
}, {
|
|
129
132
|
default: d(() => [
|
|
130
133
|
x(" 配置 ")
|
|
@@ -134,11 +137,11 @@ const J = (u) => (H("data-v-c348bee1"), u = u(), K(), u), Q = /* @__PURE__ */ J(
|
|
|
134
137
|
]),
|
|
135
138
|
_: 1
|
|
136
139
|
}, 8, ["loading", "selection", "headers", "data"]),
|
|
137
|
-
|
|
138
|
-
visible:
|
|
139
|
-
"onUpdate:visible":
|
|
140
|
+
f(l(q), {
|
|
141
|
+
visible: l(n).showConfigBtnDialog,
|
|
142
|
+
"onUpdate:visible": a[1] || (a[1] = (t) => l(n).showConfigBtnDialog = t),
|
|
140
143
|
title: "配置按钮",
|
|
141
|
-
data:
|
|
144
|
+
data: l(n).dialogData,
|
|
142
145
|
onRefresh: k
|
|
143
146
|
}, null, 8, ["visible", "data"])
|
|
144
147
|
]),
|
|
@@ -146,7 +149,7 @@ const J = (u) => (H("data-v-c348bee1"), u = u(), K(), u), Q = /* @__PURE__ */ J(
|
|
|
146
149
|
});
|
|
147
150
|
};
|
|
148
151
|
}
|
|
149
|
-
}, ie = /* @__PURE__ */ G(X, [["__scopeId", "data-v-
|
|
152
|
+
}, ie = /* @__PURE__ */ G(X, [["__scopeId", "data-v-862782ff"]]);
|
|
150
153
|
export {
|
|
151
154
|
ie as default
|
|
152
155
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
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 a, createElementVNode as C, createVNode as d, createTextVNode as i, unref as r, toDisplayString as _, createElementBlock as q, Fragment as K, renderList as O, createCommentVNode as W, pushScopeId as Y, popScopeId as G } from "vue";
|
|
2
|
-
import { a as J } from "./enum-
|
|
3
|
-
import { _ as M } from "./index-
|
|
2
|
+
import { a as J } from "./enum-95788c42.js";
|
|
3
|
+
import { _ as M } from "./index-adf3ff12.js";
|
|
4
4
|
import "vue-router";
|
|
5
5
|
import "js-base64";
|
|
6
6
|
import "element-plus";
|
|
@@ -12,7 +12,7 @@ const Q = (u) => (Y("data-v-3440b427"), u = u(), G(), u), X = { class: "card-hea
|
|
|
12
12
|
},
|
|
13
13
|
emits: ["update:modelValue"],
|
|
14
14
|
setup(u, { emit: v }) {
|
|
15
|
-
const F = I(() => import("./dialogAddField-
|
|
15
|
+
const F = I(() => import("./dialogAddField-17e1aa96.js")), g = v, b = u, V = H("configData")();
|
|
16
16
|
let l = U((() => ({
|
|
17
17
|
tableLoading: !1,
|
|
18
18
|
showAddFieldDialog: !1,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as _, watch as P, resolveComponent as m, openBlock as i, createBlock as p, withCtx as o, createVNode as e, unref as a, createElementBlock as R, Fragment as W, renderList as F } from "vue";
|
|
2
|
-
import { F as O } from "./enum-
|
|
2
|
+
import { F as O } from "./enum-95788c42.js";
|
|
3
3
|
const C = {
|
|
4
4
|
__name: "configForm",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { inject as z, ref as T, watch as j, resolveComponent as i, openBlock as s, createBlock as b, withCtx as l, createVNode as e, unref as u, createTextVNode as B, createElementBlock as y, Fragment as U, renderList as w, createCommentVNode as x } from "vue";
|
|
2
|
-
import { S as I } from "./enum-
|
|
3
|
-
import { _ as M } from "./index-
|
|
2
|
+
import { S as I } from "./enum-95788c42.js";
|
|
3
|
+
import { _ as M } from "./index-adf3ff12.js";
|
|
4
4
|
import "vue-router";
|
|
5
5
|
import "js-base64";
|
|
6
6
|
import "element-plus";
|