act-plus 1.1.24 → 1.1.25
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 -4
- package/act-plus.umd.cjs +76 -94
- package/lib/configBtns-63d416ef.js +152 -0
- package/lib/{configFileds-a045430e.js → configFileds-105ca288.js} +12 -11
- package/lib/{configTable-0285d3f8.js → configTable-5bf09aac.js} +4 -3
- package/lib/{dialogAddField-f474439d.js → dialogAddField-bb493c88.js} +5 -4
- package/lib/{dialogConfigBtn-c97ccee8.js → dialogConfigBtn-1fcd1496.js} +56 -55
- package/lib/{dialogSiteComponentsParams-e2c5b8dd.js → dialogSiteComponentsParams-708737d2.js} +1 -1
- package/lib/{index-36c9cd81.js → index-6b7ddc83.js} +73 -65
- package/lib/{index-7de949f6.js → index-740fe217.js} +9 -8
- package/lib/{index-3e20553c.js → index-9071c381.js} +4 -3
- package/lib/{index-f58e1535.js → index-9bd009b2.js} +4 -3
- package/lib/index-ba8fa827.js +61597 -0
- package/lib/{index-85deefc8.js → index-f8e81c41.js} +125 -148
- package/package.json +2 -6
- package/style.css +1 -1
- package/lib/configBtns-15591aad.js +0 -151
- package/lib/index-d0c3be37.js +0 -68438
- package/lib/index-e2f2023d.js +0 -35
|
@@ -1,151 +0,0 @@
|
|
|
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 d, createVNode as f, unref as s, 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, d as H } from "./index-d0c3be37.js";
|
|
3
|
-
import { useRoute as K } from "vue-router";
|
|
4
|
-
import "element-plus";
|
|
5
|
-
import "monaco-editor";
|
|
6
|
-
const $ = (c) => (j("data-v-2943c543"), c = c(), z(), c), G = /* @__PURE__ */ $(() => /* @__PURE__ */ x("div", { class: "card-header" }, [
|
|
7
|
-
/* @__PURE__ */ x("div", { class: "card-header-title" }, "按钮配置")
|
|
8
|
-
], -1)), J = {
|
|
9
|
-
__name: "configBtns",
|
|
10
|
-
props: {
|
|
11
|
-
modelValue: { type: Object, default: () => [] }
|
|
12
|
-
},
|
|
13
|
-
emits: ["update:modelValue"],
|
|
14
|
-
setup(c, { expose: V, emit: Q }) {
|
|
15
|
-
const h = K(), L = U(() => import("./dialogConfigBtn-c97ccee8.js")), u = c, C = () => ({
|
|
16
|
-
sort: 0,
|
|
17
|
-
permissionCode: null,
|
|
18
|
-
requestUrl: "",
|
|
19
|
-
btnName: "",
|
|
20
|
-
btnAlias: "",
|
|
21
|
-
btnIcon: "",
|
|
22
|
-
btnPostion: "",
|
|
23
|
-
btnType: "",
|
|
24
|
-
btnColor: "",
|
|
25
|
-
submitWay: "",
|
|
26
|
-
isCustomBtn: !1,
|
|
27
|
-
customType: "",
|
|
28
|
-
codeStr: "",
|
|
29
|
-
customComponentName: "",
|
|
30
|
-
customComponentUrl: "",
|
|
31
|
-
// isBatchOperate: false,
|
|
32
|
-
associationMenuId: "",
|
|
33
|
-
submitFields: [],
|
|
34
|
-
matchFields: []
|
|
35
|
-
});
|
|
36
|
-
let n = A((() => ({
|
|
37
|
-
tableLoading: !1,
|
|
38
|
-
showConfigBtnDialog: !1,
|
|
39
|
-
dialogData: {}
|
|
40
|
-
}))()), w = g(null), v = 0, y = [], l = g([]), N = [
|
|
41
|
-
{ prop: "checkbox", width: 60 },
|
|
42
|
-
{ prop: "serialNumber", width: 80 },
|
|
43
|
-
{ label: "按钮名称", prop: "btnName", minWidth: 200 },
|
|
44
|
-
{ label: "权限码", prop: "permissionCode", minWidth: 200 },
|
|
45
|
-
{ label: "按钮别名", prop: "btnAlias", minWidth: 120 },
|
|
46
|
-
{ label: "按钮图标", prop: "btnIcon", minWidth: 120 },
|
|
47
|
-
{ label: "是否自定义", prop: "isCustomBtn", width: 120, render: !0 },
|
|
48
|
-
{ label: "排序", prop: "sort", width: 180, render: !0 },
|
|
49
|
-
{ label: "操作", prop: "operate", width: 120, render: !0, fixed: "right" }
|
|
50
|
-
], b = g([]);
|
|
51
|
-
const S = (t, o) => {
|
|
52
|
-
l.value.includes(t.permissionCode) || l.value.push(t.permissionCode), Object.assign(b.value[v], t), o(!0);
|
|
53
|
-
}, k = async (t) => {
|
|
54
|
-
try {
|
|
55
|
-
n.tableLoading = !0;
|
|
56
|
-
const o = u.id ? u.id : h.params.id, { data: i } = await H({ id: o });
|
|
57
|
-
l.value = (i || []).filter((a) => (t || []).some((r) => r.permissionCode == a.unique)).map((a) => a.unique), b.value = (i || []).map((a, r) => {
|
|
58
|
-
let _ = C(), p = (t || []).find((e) => e.permissionCode == a.unique) || {};
|
|
59
|
-
return { ..._, ...p, btnName: a.name, permissionCode: a.unique, sort: p.sort ? p.sort : (r + 1) * 10 };
|
|
60
|
-
}).sort((a, r) => a.sort - r.sort), n.tableLoading = !1;
|
|
61
|
-
} catch (o) {
|
|
62
|
-
n.tableLoading = !1, console.error(o);
|
|
63
|
-
}
|
|
64
|
-
}, R = () => w.value.getSelectionRows() || [];
|
|
65
|
-
D("associationMenuList", y), D("createDefaultButtonItem", C), M(
|
|
66
|
-
() => u.modelValue,
|
|
67
|
-
async (t, o) => {
|
|
68
|
-
try {
|
|
69
|
-
const i = u.id ? u.id : h.params.id;
|
|
70
|
-
y = (await P({ dynamicFilters: [{ field: "parentId", operate: "Equal", value: i }] })).data || [], await k(t);
|
|
71
|
-
} catch (i) {
|
|
72
|
-
n.tableLoading = !1, console.error(i);
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
{ deep: !0, immediate: !0 }
|
|
76
|
-
);
|
|
77
|
-
const q = (t) => {
|
|
78
|
-
n.dialogData = t.row, v = t.$index, n.showConfigBtnDialog = !0;
|
|
79
|
-
};
|
|
80
|
-
return V({ getTableSelectionRows: R }), (t, o) => {
|
|
81
|
-
const i = m("el-tag"), a = m("el-input-number"), r = m("el-button"), _ = m("a-table"), p = m("el-card");
|
|
82
|
-
return T(), W(p, {
|
|
83
|
-
class: "form-card",
|
|
84
|
-
shadow: "hover"
|
|
85
|
-
}, {
|
|
86
|
-
header: d(() => [
|
|
87
|
-
G
|
|
88
|
-
]),
|
|
89
|
-
default: d(() => [
|
|
90
|
-
f(_, {
|
|
91
|
-
ref_key: "tableRef",
|
|
92
|
-
ref: w,
|
|
93
|
-
loading: s(n).tableLoading,
|
|
94
|
-
rowKey: "permissionCode",
|
|
95
|
-
selection: s(l),
|
|
96
|
-
"onUpdate:selection": o[0] || (o[0] = (e) => F(l) ? l.value = e : l = e),
|
|
97
|
-
headers: s(N),
|
|
98
|
-
data: s(b),
|
|
99
|
-
showPagination: !1
|
|
100
|
-
}, {
|
|
101
|
-
isCustomBtn: d(({ scope: e }) => [
|
|
102
|
-
f(i, {
|
|
103
|
-
type: "primary",
|
|
104
|
-
effect: "dark",
|
|
105
|
-
size: "small"
|
|
106
|
-
}, {
|
|
107
|
-
default: d(() => [
|
|
108
|
-
I(O(e.row.isCustomBtn ? "是" : "否"), 1)
|
|
109
|
-
]),
|
|
110
|
-
_: 2
|
|
111
|
-
}, 1024)
|
|
112
|
-
]),
|
|
113
|
-
sort: d(({ scope: e }) => [
|
|
114
|
-
f(a, {
|
|
115
|
-
modelValue: e.row.sort,
|
|
116
|
-
"onUpdate:modelValue": (B) => e.row.sort = B,
|
|
117
|
-
min: 0
|
|
118
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
119
|
-
]),
|
|
120
|
-
operate: d(({ scope: e }) => [
|
|
121
|
-
f(r, {
|
|
122
|
-
type: "primary",
|
|
123
|
-
text: "",
|
|
124
|
-
size: "small",
|
|
125
|
-
icon: "Aim",
|
|
126
|
-
onClick: (B) => q(e)
|
|
127
|
-
}, {
|
|
128
|
-
default: d(() => [
|
|
129
|
-
I(" 配置 ")
|
|
130
|
-
]),
|
|
131
|
-
_: 2
|
|
132
|
-
}, 1032, ["onClick"])
|
|
133
|
-
]),
|
|
134
|
-
_: 1
|
|
135
|
-
}, 8, ["loading", "selection", "headers", "data"]),
|
|
136
|
-
f(s(L), {
|
|
137
|
-
visible: s(n).showConfigBtnDialog,
|
|
138
|
-
"onUpdate:visible": o[1] || (o[1] = (e) => s(n).showConfigBtnDialog = e),
|
|
139
|
-
title: "配置按钮",
|
|
140
|
-
data: s(n).dialogData,
|
|
141
|
-
onRefresh: S
|
|
142
|
-
}, null, 8, ["visible", "data"])
|
|
143
|
-
]),
|
|
144
|
-
_: 1
|
|
145
|
-
});
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
}, ae = /* @__PURE__ */ E(J, [["__scopeId", "data-v-2943c543"]]);
|
|
149
|
-
export {
|
|
150
|
-
ae as default
|
|
151
|
-
};
|