act-plus 1.1.24 → 1.1.26
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-bba9ef3d.js +152 -0
- package/lib/{configFileds-a045430e.js → configFileds-886452aa.js} +12 -11
- package/lib/{configTable-0285d3f8.js → configTable-ce9b4287.js} +4 -3
- package/lib/{dialogAddField-f474439d.js → dialogAddField-373b55ab.js} +5 -4
- package/lib/{dialogConfigBtn-c97ccee8.js → dialogConfigBtn-5675ac9d.js} +56 -55
- package/lib/{dialogSiteComponentsParams-e2c5b8dd.js → dialogSiteComponentsParams-5fde7ab5.js} +1 -1
- package/lib/index-2ebc799e.js +61601 -0
- package/lib/{index-f58e1535.js → index-3aa3f525.js} +4 -3
- package/lib/{index-3e20553c.js → index-ac5b92d9.js} +4 -3
- package/lib/{index-85deefc8.js → index-e6d550f2.js} +125 -148
- package/lib/{index-36c9cd81.js → index-ebf653d3.js} +77 -69
- package/lib/{index-7de949f6.js → index-f6b1730a.js} +9 -8
- 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
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { inject as O, defineAsyncComponent as T, reactive as W, ref as g, provide as I, watch as j, resolveComponent as m, openBlock as F, createBlock as z, withCtx as d, createVNode as b, unref as i, isRef as E, createTextVNode as x, toDisplayString as P, pushScopeId as H, popScopeId as K, createElementVNode as L } from "vue";
|
|
2
|
+
import { useRoute as $ } from "vue-router";
|
|
3
|
+
import { _ as G } from "./index-2ebc799e.js";
|
|
4
|
+
import "js-base64";
|
|
5
|
+
import "element-plus";
|
|
6
|
+
import "monaco-editor";
|
|
7
|
+
const J = (u) => (H("data-v-c348bee1"), u = u(), K(), u), Q = /* @__PURE__ */ J(() => /* @__PURE__ */ L("div", { class: "card-header" }, [
|
|
8
|
+
/* @__PURE__ */ L("div", { class: "card-header-title" }, "按钮配置")
|
|
9
|
+
], -1)), X = {
|
|
10
|
+
__name: "configBtns",
|
|
11
|
+
props: {
|
|
12
|
+
modelValue: { type: Object, default: () => [] }
|
|
13
|
+
},
|
|
14
|
+
emits: ["update:modelValue"],
|
|
15
|
+
setup(u, { expose: V, emit: Y }) {
|
|
16
|
+
const h = $(), C = O("request"), q = T(() => import("./dialogConfigBtn-5675ac9d.js")), c = u, w = () => ({
|
|
17
|
+
sort: 0,
|
|
18
|
+
permissionCode: null,
|
|
19
|
+
requestUrl: "",
|
|
20
|
+
btnName: "",
|
|
21
|
+
btnAlias: "",
|
|
22
|
+
btnIcon: "",
|
|
23
|
+
btnPostion: "",
|
|
24
|
+
btnType: "",
|
|
25
|
+
btnColor: "",
|
|
26
|
+
submitWay: "",
|
|
27
|
+
isCustomBtn: !1,
|
|
28
|
+
customType: "",
|
|
29
|
+
codeStr: "",
|
|
30
|
+
customComponentName: "",
|
|
31
|
+
customComponentUrl: "",
|
|
32
|
+
// isBatchOperate: false,
|
|
33
|
+
associationMenuId: "",
|
|
34
|
+
submitFields: [],
|
|
35
|
+
matchFields: []
|
|
36
|
+
});
|
|
37
|
+
let n = W((() => ({
|
|
38
|
+
tableLoading: !1,
|
|
39
|
+
showConfigBtnDialog: !1,
|
|
40
|
+
dialogData: {}
|
|
41
|
+
}))()), v = g(null), y = 0, B = [], l = g([]), M = [
|
|
42
|
+
{ prop: "checkbox", width: 60 },
|
|
43
|
+
{ prop: "serialNumber", width: 80 },
|
|
44
|
+
{ label: "按钮名称", prop: "btnName", minWidth: 200 },
|
|
45
|
+
{ label: "权限码", prop: "permissionCode", minWidth: 200 },
|
|
46
|
+
{ label: "按钮别名", prop: "btnAlias", minWidth: 120 },
|
|
47
|
+
{ label: "按钮图标", prop: "btnIcon", minWidth: 120 },
|
|
48
|
+
{ label: "是否自定义", prop: "isCustomBtn", width: 120, render: !0 },
|
|
49
|
+
{ label: "排序", prop: "sort", width: 180, render: !0 },
|
|
50
|
+
{ label: "操作", prop: "operate", width: 120, render: !0, fixed: "right" }
|
|
51
|
+
], f = 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, o) => {
|
|
53
|
+
l.value.includes(e.permissionCode) || l.value.push(e.permissionCode), Object.assign(f.value[y], e), o(!0);
|
|
54
|
+
}, R = async (e) => {
|
|
55
|
+
try {
|
|
56
|
+
n.tableLoading = !0;
|
|
57
|
+
const o = c.id ? c.id : h.params.id, { data: s } = await S({ id: o });
|
|
58
|
+
l.value = (s || []).filter((a) => (e || []).some((r) => r.permissionCode == a.unique)).map((a) => a.unique), f.value = (s || []).map((a, r) => {
|
|
59
|
+
let _ = w(), p = (e || []).find((t) => t.permissionCode == a.unique) || {};
|
|
60
|
+
return { ..._, ...p, btnName: a.name, permissionCode: a.unique, sort: p.sort ? p.sort : (r + 1) * 10 };
|
|
61
|
+
}).sort((a, r) => a.sort - r.sort), n.tableLoading = !1;
|
|
62
|
+
} catch (o) {
|
|
63
|
+
n.tableLoading = !1, console.error(o);
|
|
64
|
+
}
|
|
65
|
+
}, A = () => v.value.getSelectionRows() || [];
|
|
66
|
+
I("associationMenuList", B), I("createDefaultButtonItem", w), j(
|
|
67
|
+
() => c.modelValue,
|
|
68
|
+
async (e, o) => {
|
|
69
|
+
try {
|
|
70
|
+
const s = c.id ? c.id : h.params.id;
|
|
71
|
+
B = (await N({ dynamicFilters: [{ field: "parentId", operate: "Equal", value: s }] })).data || [], await R(e);
|
|
72
|
+
} catch (s) {
|
|
73
|
+
n.tableLoading = !1, console.error(s);
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{ deep: !0, immediate: !0 }
|
|
77
|
+
);
|
|
78
|
+
const U = (e) => {
|
|
79
|
+
n.dialogData = e.row, y = e.$index, n.showConfigBtnDialog = !0;
|
|
80
|
+
};
|
|
81
|
+
return V({ getTableSelectionRows: A }), (e, o) => {
|
|
82
|
+
const s = m("el-tag"), a = m("el-input-number"), r = m("el-button"), _ = m("a-table"), p = m("el-card");
|
|
83
|
+
return F(), z(p, {
|
|
84
|
+
class: "form-card",
|
|
85
|
+
shadow: "hover"
|
|
86
|
+
}, {
|
|
87
|
+
header: d(() => [
|
|
88
|
+
Q
|
|
89
|
+
]),
|
|
90
|
+
default: d(() => [
|
|
91
|
+
b(_, {
|
|
92
|
+
ref_key: "tableRef",
|
|
93
|
+
ref: v,
|
|
94
|
+
loading: i(n).tableLoading,
|
|
95
|
+
rowKey: "permissionCode",
|
|
96
|
+
selection: i(l),
|
|
97
|
+
"onUpdate:selection": o[0] || (o[0] = (t) => E(l) ? l.value = t : l = t),
|
|
98
|
+
headers: i(M),
|
|
99
|
+
data: i(f),
|
|
100
|
+
showPagination: !1
|
|
101
|
+
}, {
|
|
102
|
+
isCustomBtn: d(({ scope: t }) => [
|
|
103
|
+
b(s, {
|
|
104
|
+
type: "primary",
|
|
105
|
+
effect: "dark",
|
|
106
|
+
size: "small"
|
|
107
|
+
}, {
|
|
108
|
+
default: d(() => [
|
|
109
|
+
x(P(t.row.isCustomBtn ? "是" : "否"), 1)
|
|
110
|
+
]),
|
|
111
|
+
_: 2
|
|
112
|
+
}, 1024)
|
|
113
|
+
]),
|
|
114
|
+
sort: d(({ scope: t }) => [
|
|
115
|
+
b(a, {
|
|
116
|
+
modelValue: t.row.sort,
|
|
117
|
+
"onUpdate:modelValue": (D) => t.row.sort = D,
|
|
118
|
+
min: 0
|
|
119
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
120
|
+
]),
|
|
121
|
+
operate: d(({ scope: t }) => [
|
|
122
|
+
b(r, {
|
|
123
|
+
type: "primary",
|
|
124
|
+
text: "",
|
|
125
|
+
size: "small",
|
|
126
|
+
icon: "Aim",
|
|
127
|
+
onClick: (D) => U(t)
|
|
128
|
+
}, {
|
|
129
|
+
default: d(() => [
|
|
130
|
+
x(" 配置 ")
|
|
131
|
+
]),
|
|
132
|
+
_: 2
|
|
133
|
+
}, 1032, ["onClick"])
|
|
134
|
+
]),
|
|
135
|
+
_: 1
|
|
136
|
+
}, 8, ["loading", "selection", "headers", "data"]),
|
|
137
|
+
b(i(q), {
|
|
138
|
+
visible: i(n).showConfigBtnDialog,
|
|
139
|
+
"onUpdate:visible": o[1] || (o[1] = (t) => i(n).showConfigBtnDialog = t),
|
|
140
|
+
title: "配置按钮",
|
|
141
|
+
data: i(n).dialogData,
|
|
142
|
+
onRefresh: k
|
|
143
|
+
}, null, 8, ["visible", "data"])
|
|
144
|
+
]),
|
|
145
|
+
_: 1
|
|
146
|
+
});
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
}, ie = /* @__PURE__ */ G(X, [["__scopeId", "data-v-c348bee1"]]);
|
|
150
|
+
export {
|
|
151
|
+
ie as default
|
|
152
|
+
};
|
|
@@ -1,17 +1,18 @@
|
|
|
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
2
|
import { a as J } from "./enum-ab7125f9.js";
|
|
3
|
-
import { _ as M } from "./index-
|
|
3
|
+
import { _ as M } from "./index-2ebc799e.js";
|
|
4
4
|
import "vue-router";
|
|
5
|
+
import "js-base64";
|
|
5
6
|
import "element-plus";
|
|
6
7
|
import "monaco-editor";
|
|
7
|
-
const Q = (u) => (Y("data-v-
|
|
8
|
+
const Q = (u) => (Y("data-v-3440b427"), u = u(), G(), u), X = { class: "card-header" }, Z = /* @__PURE__ */ Q(() => /* @__PURE__ */ C("div", { class: "card-header-title" }, "字段配置", -1)), ee = {
|
|
8
9
|
__name: "configFileds",
|
|
9
10
|
props: {
|
|
10
11
|
modelValue: { type: Object, default: () => [] }
|
|
11
12
|
},
|
|
12
13
|
emits: ["update:modelValue"],
|
|
13
14
|
setup(u, { emit: v }) {
|
|
14
|
-
const F = I(() => import("./dialogAddField-
|
|
15
|
+
const F = I(() => import("./dialogAddField-373b55ab.js")), g = v, b = u, V = H("configData")();
|
|
15
16
|
let l = U((() => ({
|
|
16
17
|
tableLoading: !1,
|
|
17
18
|
showAddFieldDialog: !1,
|
|
@@ -48,16 +49,16 @@ const Q = (u) => (Y("data-v-9d3ab8fb"), u = u(), G(), u), X = { class: "card-hea
|
|
|
48
49
|
useScenes: [...e.useScenes],
|
|
49
50
|
formCustomComponentes: [...e.formCustomComponentes]
|
|
50
51
|
};
|
|
51
|
-
|
|
52
|
+
g("update:modelValue", s.value), t(!0);
|
|
52
53
|
}, x = async () => {
|
|
53
54
|
try {
|
|
54
|
-
l.tableLoading = !0, s.value = (
|
|
55
|
+
l.tableLoading = !0, s.value = (b.modelValue || []).map((e) => ({ ...e, sort: e.sort ? e.sort : 0 })).sort((e, t) => e.sort - t.sort), l.tableLoading = !1;
|
|
55
56
|
} catch (e) {
|
|
56
57
|
l.tableLoading = !1, console.error(e);
|
|
57
58
|
}
|
|
58
59
|
};
|
|
59
60
|
B(
|
|
60
|
-
() =>
|
|
61
|
+
() => b.modelValue,
|
|
61
62
|
async (e, t) => {
|
|
62
63
|
await x();
|
|
63
64
|
},
|
|
@@ -68,9 +69,9 @@ const Q = (u) => (Y("data-v-9d3ab8fb"), u = u(), G(), u), X = { class: "card-hea
|
|
|
68
69
|
}, A = (e) => {
|
|
69
70
|
p = e.$index, l.dialogData = e.row, l.showAddFieldDialog = !0;
|
|
70
71
|
}, L = () => {
|
|
71
|
-
|
|
72
|
+
g("update:modelValue", s.value);
|
|
72
73
|
}, E = (e) => {
|
|
73
|
-
s.value.splice(e.$index, 1),
|
|
74
|
+
s.value.splice(e.$index, 1), g("update:modelValue", s.value);
|
|
74
75
|
};
|
|
75
76
|
return (e, t) => {
|
|
76
77
|
const n = m("el-button"), h = m("el-tag"), P = m("el-input-number"), R = m("a-table"), $ = m("el-card");
|
|
@@ -183,7 +184,7 @@ const Q = (u) => (Y("data-v-9d3ab8fb"), u = u(), G(), u), X = { class: "card-hea
|
|
|
183
184
|
visible: r(l).showAddFieldDialog,
|
|
184
185
|
"onUpdate:visible": t[1] || (t[1] = (o) => r(l).showAddFieldDialog = o),
|
|
185
186
|
title: r(l).dialogTitle,
|
|
186
|
-
configData:
|
|
187
|
+
configData: b.data,
|
|
187
188
|
data: r(l).dialogData,
|
|
188
189
|
onRefresh: k
|
|
189
190
|
}, null, 8, ["visible", "title", "configData", "data"])
|
|
@@ -192,7 +193,7 @@ const Q = (u) => (Y("data-v-9d3ab8fb"), u = u(), G(), u), X = { class: "card-hea
|
|
|
192
193
|
});
|
|
193
194
|
};
|
|
194
195
|
}
|
|
195
|
-
},
|
|
196
|
+
}, ie = /* @__PURE__ */ M(ee, [["__scopeId", "data-v-3440b427"]]);
|
|
196
197
|
export {
|
|
197
|
-
|
|
198
|
+
ie as default
|
|
198
199
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
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
2
|
import { S as I } from "./enum-ab7125f9.js";
|
|
3
|
-
import { _ as M } from "./index-
|
|
3
|
+
import { _ as M } from "./index-2ebc799e.js";
|
|
4
4
|
import "vue-router";
|
|
5
|
+
import "js-base64";
|
|
5
6
|
import "element-plus";
|
|
6
7
|
import "monaco-editor";
|
|
7
8
|
const A = {
|
|
@@ -409,7 +410,7 @@ const A = {
|
|
|
409
410
|
});
|
|
410
411
|
};
|
|
411
412
|
}
|
|
412
|
-
},
|
|
413
|
+
}, Z = /* @__PURE__ */ M(A, [["__scopeId", "data-v-ada54450"]]);
|
|
413
414
|
export {
|
|
414
|
-
|
|
415
|
+
Z as default
|
|
415
416
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { defineAsyncComponent as de, inject as E, reactive as se, ref as x, watch as ie, resolveComponent as g, openBlock as r, createBlock as m, withCtx as a, createElementVNode as A, createVNode as l, unref as o, createTextVNode as S, createElementBlock as c, Fragment as _, renderList as C, createCommentVNode as y, toDisplayString as me } from "vue";
|
|
2
2
|
import { a as pe, j as fe, P as be, k as H, T as ce, A as _e, C as ge, U as Ce } from "./enum-ab7125f9.js";
|
|
3
|
-
import { _ as Ve } from "./index-
|
|
3
|
+
import { _ as Ve } from "./index-2ebc799e.js";
|
|
4
4
|
import "vue-router";
|
|
5
|
+
import "js-base64";
|
|
5
6
|
import "element-plus";
|
|
6
7
|
import "monaco-editor";
|
|
7
8
|
const ye = { slot: "prepend" }, Te = { class: "dialog-footer" }, Se = {
|
|
@@ -13,7 +14,7 @@ const ye = { slot: "prepend" }, Te = { class: "dialog-footer" }, Se = {
|
|
|
13
14
|
},
|
|
14
15
|
emits: ["update:visible", "refresh"],
|
|
15
16
|
setup(L, { emit: K }) {
|
|
16
|
-
const W = de(() => import("./dialogSiteComponentsParams-
|
|
17
|
+
const W = de(() => import("./dialogSiteComponentsParams-5fde7ab5.js")), D = K, F = L, $ = E("configData")();
|
|
17
18
|
let U = se((() => ({
|
|
18
19
|
btnLoading: !1,
|
|
19
20
|
showSiteComponentsParamsDialog: !1
|
|
@@ -911,7 +912,7 @@ const ye = { slot: "prepend" }, Te = { class: "dialog-footer" }, Se = {
|
|
|
911
912
|
}, 8, ["model-value", "title"]);
|
|
912
913
|
};
|
|
913
914
|
}
|
|
914
|
-
},
|
|
915
|
+
}, Re = /* @__PURE__ */ Ve(Se, [["__scopeId", "data-v-3d2cbdfc"]]);
|
|
915
916
|
export {
|
|
916
|
-
|
|
917
|
+
Re as default
|
|
917
918
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineAsyncComponent as O,
|
|
2
|
-
import { B as
|
|
3
|
-
import { _ as fe, f as _e } from "./index-d0c3be37.js";
|
|
1
|
+
import { defineAsyncComponent as O, inject as N, computed as oe, reactive as ue, ref as B, watch as ne, resolveComponent as y, openBlock as d, createBlock as m, withCtx as l, createElementVNode as de, createVNode as e, unref as o, createTextVNode as U, toDisplayString as A, createCommentVNode as C, createElementBlock as b, Fragment as f, renderList as _ } from "vue";
|
|
2
|
+
import { B as re, b as se, c as ie, d as me, e as pe, f as ce, g as be, h as fe, i as _e } from "./enum-ab7125f9.js";
|
|
4
3
|
import { useRoute as ge } from "vue-router";
|
|
4
|
+
import { _ as Ve } from "./index-2ebc799e.js";
|
|
5
|
+
import "js-base64";
|
|
5
6
|
import "element-plus";
|
|
6
7
|
import "monaco-editor";
|
|
7
|
-
const
|
|
8
|
+
const ye = { class: "dialog-footer" }, he = {
|
|
8
9
|
__name: "dialogConfigBtn",
|
|
9
10
|
props: {
|
|
10
11
|
visible: { type: Boolean, default: !1 },
|
|
@@ -12,28 +13,28 @@ const Ve = { class: "dialog-footer" }, ye = {
|
|
|
12
13
|
data: { type: Object, default: () => ({}) }
|
|
13
14
|
},
|
|
14
15
|
emits: ["update:visible", "refresh"],
|
|
15
|
-
setup(
|
|
16
|
-
const E = O(() => import("./index-
|
|
17
|
-
let k =
|
|
16
|
+
setup(x, { emit: P }) {
|
|
17
|
+
const E = O(() => import("./index-ac5b92d9.js")), D = O(() => import("./index-2ebc799e.js").then((p) => p.i)), W = ge(), R = N("request"), I = P, T = x, Y = oe(() => W.params.key);
|
|
18
|
+
let k = ue((() => ({
|
|
18
19
|
btnLoading: !1
|
|
19
20
|
}))());
|
|
20
|
-
const M =
|
|
21
|
-
let w =
|
|
22
|
-
|
|
23
|
-
let
|
|
24
|
-
const
|
|
21
|
+
const M = N("createDefaultButtonItem"), $ = N("associationMenuList"), j = N("conditionList")();
|
|
22
|
+
let w = B([]);
|
|
23
|
+
B([]);
|
|
24
|
+
let S = B(null), t = B(M());
|
|
25
|
+
const z = (p) => R({ url: "/api/v1/icons/getAllList", method: "post", data: p }), H = async () => {
|
|
25
26
|
try {
|
|
26
|
-
const { data: p } = await
|
|
27
|
+
const { data: p } = await z({ dynamicFilters: [{ field: "type", operate: "Equal", value: "2" }] });
|
|
27
28
|
w.value = (p || []).map((n) => `btn-${n.name}`);
|
|
28
29
|
} catch (p) {
|
|
29
30
|
console.error(p);
|
|
30
31
|
}
|
|
31
32
|
};
|
|
32
|
-
|
|
33
|
+
ne(
|
|
33
34
|
() => T.visible,
|
|
34
35
|
async (p, n) => {
|
|
35
36
|
if (p) {
|
|
36
|
-
await
|
|
37
|
+
await H();
|
|
37
38
|
const c = { ...T.data };
|
|
38
39
|
Object.keys(t.value).forEach((r) => {
|
|
39
40
|
r == "submitFields" || r == "matchFields" ? t.value[r] = [...c[r] || []] : t.value[r] = c[r];
|
|
@@ -41,26 +42,26 @@ const Ve = { class: "dialog-footer" }, ye = {
|
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
);
|
|
44
|
-
const
|
|
45
|
+
const K = () => {
|
|
45
46
|
t.value.submitWay = [], t.value.requestUrl = void 0, t.value.submitWay = void 0, t.value.customType = void 0, t.value.codeStr = void 0, t.value.customComponentName = void 0, t.value.customComponentUrl = void 0;
|
|
46
|
-
},
|
|
47
|
+
}, G = () => {
|
|
47
48
|
t.value.submitFields.push({ matchType: "match", submitFieldMatchOrigin: "rowData", submitFieldName: "", matchFieldName: "", submitFieldType: "" });
|
|
48
|
-
},
|
|
49
|
+
}, J = (p) => {
|
|
49
50
|
t.value.submitFields.splice(p, 1);
|
|
50
|
-
},
|
|
51
|
+
}, Q = () => {
|
|
51
52
|
t.value.matchFields.push({ matchType: "default", matchFieldName: "", matchCondition: "", fieldValue: "", spliceCondition: "" });
|
|
52
|
-
}, J = (p) => {
|
|
53
|
-
t.value.matchFields.splice(p, 1), t.value.matchFields.length === 1 && (t.value.matchFields[0].spliceCondition = "");
|
|
54
|
-
}, Q = (p) => {
|
|
55
|
-
S(), p();
|
|
56
|
-
}, S = () => {
|
|
57
|
-
t.value = Object.assign(t.value, M()), B.value.resetFields(), I("update:visible", !1);
|
|
58
53
|
}, X = (p) => {
|
|
54
|
+
t.value.matchFields.splice(p, 1), t.value.matchFields.length === 1 && (t.value.matchFields[0].spliceCondition = "");
|
|
55
|
+
}, Z = (p) => {
|
|
56
|
+
q(), p();
|
|
57
|
+
}, q = () => {
|
|
58
|
+
t.value = Object.assign(t.value, M()), S.value.resetFields(), I("update:visible", !1);
|
|
59
|
+
}, ee = (p) => {
|
|
59
60
|
p && p.validate((n) => {
|
|
60
61
|
if (n)
|
|
61
62
|
try {
|
|
62
63
|
k.btnLoading = !0, I("refresh", { ...t.value, submitFields: [...t.value.submitFields], matchFields: [...t.value.matchFields] }, () => {
|
|
63
|
-
|
|
64
|
+
q();
|
|
64
65
|
}), k.btnLoading = !1;
|
|
65
66
|
} catch (c) {
|
|
66
67
|
console.error(c), k.btnLoading = !1;
|
|
@@ -68,8 +69,8 @@ const Ve = { class: "dialog-footer" }, ye = {
|
|
|
68
69
|
});
|
|
69
70
|
};
|
|
70
71
|
return (p, n) => {
|
|
71
|
-
const c = y("el-input"), r = y("el-form-item"), i = y("el-col"), g = y("el-option"), V = y("el-select"), F = y("el-row"), v = y("el-button"), L = y("el-divider"),
|
|
72
|
-
return d(), m(
|
|
72
|
+
const c = y("el-input"), r = y("el-form-item"), i = y("el-col"), g = y("el-option"), V = y("el-select"), F = y("el-row"), v = y("el-button"), L = y("el-divider"), le = y("el-switch"), ae = y("el-form"), te = y("el-dialog");
|
|
73
|
+
return d(), m(te, {
|
|
73
74
|
"model-value": T.visible,
|
|
74
75
|
title: T.title,
|
|
75
76
|
top: "5vh",
|
|
@@ -77,13 +78,13 @@ const Ve = { class: "dialog-footer" }, ye = {
|
|
|
77
78
|
draggable: "",
|
|
78
79
|
overflow: "",
|
|
79
80
|
"close-on-click-modal": !1,
|
|
80
|
-
"before-close":
|
|
81
|
+
"before-close": Z
|
|
81
82
|
}, {
|
|
82
83
|
footer: l(() => [
|
|
83
|
-
|
|
84
|
+
de("span", ye, [
|
|
84
85
|
e(v, {
|
|
85
86
|
loading: o(k).btnLoading,
|
|
86
|
-
onClick:
|
|
87
|
+
onClick: q
|
|
87
88
|
}, {
|
|
88
89
|
default: l(() => [
|
|
89
90
|
U("取消")
|
|
@@ -93,7 +94,7 @@ const Ve = { class: "dialog-footer" }, ye = {
|
|
|
93
94
|
e(v, {
|
|
94
95
|
type: "primary",
|
|
95
96
|
loading: o(k).btnLoading,
|
|
96
|
-
onClick: n[14] || (n[14] = (a) =>
|
|
97
|
+
onClick: n[14] || (n[14] = (a) => ee(o(S)))
|
|
97
98
|
}, {
|
|
98
99
|
default: l(() => [
|
|
99
100
|
U("保存")
|
|
@@ -103,9 +104,9 @@ const Ve = { class: "dialog-footer" }, ye = {
|
|
|
103
104
|
])
|
|
104
105
|
]),
|
|
105
106
|
default: l(() => [
|
|
106
|
-
e(
|
|
107
|
+
e(ae, {
|
|
107
108
|
ref_key: "formRef",
|
|
108
|
-
ref:
|
|
109
|
+
ref: S,
|
|
109
110
|
model: o(t),
|
|
110
111
|
"label-suffix": ":",
|
|
111
112
|
"label-position": "top"
|
|
@@ -127,7 +128,7 @@ const Ve = { class: "dialog-footer" }, ye = {
|
|
|
127
128
|
placeholder: "请输入按钮名称"
|
|
128
129
|
}, {
|
|
129
130
|
prepend: l(() => [
|
|
130
|
-
U(
|
|
131
|
+
U(A(o(t).permissionCode), 1)
|
|
131
132
|
]),
|
|
132
133
|
_: 1
|
|
133
134
|
}, 8, ["modelValue"])
|
|
@@ -194,7 +195,7 @@ const Ve = { class: "dialog-footer" }, ye = {
|
|
|
194
195
|
clearable: ""
|
|
195
196
|
}, {
|
|
196
197
|
default: l(() => [
|
|
197
|
-
(d(!0), b(f, null, _(o(
|
|
198
|
+
(d(!0), b(f, null, _(o(re), (a, s) => (d(), m(g, {
|
|
198
199
|
key: s,
|
|
199
200
|
label: a.key,
|
|
200
201
|
value: a.value
|
|
@@ -224,7 +225,7 @@ const Ve = { class: "dialog-footer" }, ye = {
|
|
|
224
225
|
clearable: ""
|
|
225
226
|
}, {
|
|
226
227
|
default: l(() => [
|
|
227
|
-
(d(!0), b(f, null, _(o(
|
|
228
|
+
(d(!0), b(f, null, _(o(se), (a, s) => (d(), m(g, {
|
|
228
229
|
key: s,
|
|
229
230
|
label: a.key,
|
|
230
231
|
value: a.value
|
|
@@ -273,7 +274,7 @@ const Ve = { class: "dialog-footer" }, ye = {
|
|
|
273
274
|
clearable: ""
|
|
274
275
|
}, {
|
|
275
276
|
default: l(() => [
|
|
276
|
-
(d(!0), b(f, null, _(o(
|
|
277
|
+
(d(!0), b(f, null, _(o(ie), (a, s) => (d(), m(g, {
|
|
277
278
|
key: s,
|
|
278
279
|
label: a.key,
|
|
279
280
|
value: a.value
|
|
@@ -307,7 +308,7 @@ const Ve = { class: "dialog-footer" }, ye = {
|
|
|
307
308
|
clearable: ""
|
|
308
309
|
}, {
|
|
309
310
|
default: l(() => [
|
|
310
|
-
(d(!0), b(f, null, _(o(
|
|
311
|
+
(d(!0), b(f, null, _(o(me), (a, s) => (d(), m(g, {
|
|
311
312
|
key: s,
|
|
312
313
|
label: a.key,
|
|
313
314
|
value: a.value
|
|
@@ -332,7 +333,7 @@ const Ve = { class: "dialog-footer" }, ye = {
|
|
|
332
333
|
type: "primary",
|
|
333
334
|
icon: "Plus",
|
|
334
335
|
circle: "",
|
|
335
|
-
onClick:
|
|
336
|
+
onClick: G
|
|
336
337
|
})
|
|
337
338
|
]),
|
|
338
339
|
_: 1
|
|
@@ -386,7 +387,7 @@ const Ve = { class: "dialog-footer" }, ye = {
|
|
|
386
387
|
onChange: (u) => a.submitFieldMatchOrigin = "rowData"
|
|
387
388
|
}, {
|
|
388
389
|
default: l(() => [
|
|
389
|
-
(d(!0), b(f, null, _(o(
|
|
390
|
+
(d(!0), b(f, null, _(o(pe), (u, h) => (d(), m(g, {
|
|
390
391
|
key: h,
|
|
391
392
|
label: u.key,
|
|
392
393
|
value: u.value
|
|
@@ -442,7 +443,7 @@ const Ve = { class: "dialog-footer" }, ye = {
|
|
|
442
443
|
clearable: ""
|
|
443
444
|
}, {
|
|
444
445
|
default: l(() => [
|
|
445
|
-
(d(!0), b(f, null, _(o(
|
|
446
|
+
(d(!0), b(f, null, _(o(ce), (u, h) => (d(), m(g, {
|
|
446
447
|
key: h,
|
|
447
448
|
label: u.key,
|
|
448
449
|
value: u.value
|
|
@@ -466,7 +467,7 @@ const Ve = { class: "dialog-footer" }, ye = {
|
|
|
466
467
|
type: "danger",
|
|
467
468
|
icon: "Minus",
|
|
468
469
|
circle: "",
|
|
469
|
-
onClick: (u) =>
|
|
470
|
+
onClick: (u) => J(s)
|
|
470
471
|
}, null, 8, ["onClick"])
|
|
471
472
|
]),
|
|
472
473
|
_: 2
|
|
@@ -482,7 +483,7 @@ const Ve = { class: "dialog-footer" }, ye = {
|
|
|
482
483
|
type: "primary",
|
|
483
484
|
icon: "Plus",
|
|
484
485
|
circle: "",
|
|
485
|
-
onClick:
|
|
486
|
+
onClick: Q
|
|
486
487
|
})
|
|
487
488
|
]),
|
|
488
489
|
_: 1
|
|
@@ -514,7 +515,7 @@ const Ve = { class: "dialog-footer" }, ye = {
|
|
|
514
515
|
style: { width: "180px" }
|
|
515
516
|
}, {
|
|
516
517
|
default: l(() => [
|
|
517
|
-
(d(!0), b(f, null, _(o(
|
|
518
|
+
(d(!0), b(f, null, _(o(be), (u, h) => (d(), m(g, {
|
|
518
519
|
key: h,
|
|
519
520
|
label: u.key,
|
|
520
521
|
value: u.value
|
|
@@ -547,7 +548,7 @@ const Ve = { class: "dialog-footer" }, ye = {
|
|
|
547
548
|
filterable: ""
|
|
548
549
|
}, {
|
|
549
550
|
default: l(() => [
|
|
550
|
-
(d(!0), b(f, null, _(o(
|
|
551
|
+
(d(!0), b(f, null, _(o(j), (u, h) => (d(), m(g, {
|
|
551
552
|
key: h,
|
|
552
553
|
label: u.key,
|
|
553
554
|
value: u.value
|
|
@@ -590,7 +591,7 @@ const Ve = { class: "dialog-footer" }, ye = {
|
|
|
590
591
|
type: "danger",
|
|
591
592
|
icon: "Minus",
|
|
592
593
|
circle: "",
|
|
593
|
-
onClick: (u) =>
|
|
594
|
+
onClick: (u) => X(s)
|
|
594
595
|
}, null, 8, ["onClick"])
|
|
595
596
|
]),
|
|
596
597
|
_: 2
|
|
@@ -615,7 +616,7 @@ const Ve = { class: "dialog-footer" }, ye = {
|
|
|
615
616
|
filterable: ""
|
|
616
617
|
}, {
|
|
617
618
|
default: l(() => [
|
|
618
|
-
(d(!0), b(f, null, _(o(
|
|
619
|
+
(d(!0), b(f, null, _(o(fe), (u, h) => (d(), m(g, {
|
|
619
620
|
key: h,
|
|
620
621
|
label: u.key,
|
|
621
622
|
value: u.value
|
|
@@ -641,10 +642,10 @@ const Ve = { class: "dialog-footer" }, ye = {
|
|
|
641
642
|
prop: "isCustomBtn"
|
|
642
643
|
}, {
|
|
643
644
|
default: l(() => [
|
|
644
|
-
e(
|
|
645
|
+
e(le, {
|
|
645
646
|
modelValue: o(t).isCustomBtn,
|
|
646
647
|
"onUpdate:modelValue": n[8] || (n[8] = (a) => o(t).isCustomBtn = a),
|
|
647
|
-
onChange:
|
|
648
|
+
onChange: K
|
|
648
649
|
}, null, 8, ["modelValue"])
|
|
649
650
|
]),
|
|
650
651
|
_: 1
|
|
@@ -671,7 +672,7 @@ const Ve = { class: "dialog-footer" }, ye = {
|
|
|
671
672
|
clearable: ""
|
|
672
673
|
}, {
|
|
673
674
|
default: l(() => [
|
|
674
|
-
(d(!0), b(f, null, _(o(
|
|
675
|
+
(d(!0), b(f, null, _(o(_e), (a, s) => (d(), m(g, {
|
|
675
676
|
key: s,
|
|
676
677
|
label: a.key,
|
|
677
678
|
value: a.value
|
|
@@ -734,7 +735,7 @@ const Ve = { class: "dialog-footer" }, ye = {
|
|
|
734
735
|
clearable: ""
|
|
735
736
|
}, {
|
|
736
737
|
prepend: l(() => [
|
|
737
|
-
U(
|
|
738
|
+
U(A(Y.value), 1)
|
|
738
739
|
]),
|
|
739
740
|
_: 1
|
|
740
741
|
}, 8, ["modelValue"])
|
|
@@ -776,7 +777,7 @@ const Ve = { class: "dialog-footer" }, ye = {
|
|
|
776
777
|
clearable: ""
|
|
777
778
|
}, {
|
|
778
779
|
default: l(() => [
|
|
779
|
-
(d(!0), b(f, null, _(o(
|
|
780
|
+
(d(!0), b(f, null, _(o($), (a, s) => (d(), m(g, {
|
|
780
781
|
key: s,
|
|
781
782
|
label: a.name,
|
|
782
783
|
value: a.id
|
|
@@ -801,7 +802,7 @@ const Ve = { class: "dialog-footer" }, ye = {
|
|
|
801
802
|
}, 8, ["model-value", "title"]);
|
|
802
803
|
};
|
|
803
804
|
}
|
|
804
|
-
},
|
|
805
|
+
}, Se = /* @__PURE__ */ Ve(he, [["__scopeId", "data-v-4b2dee6d"]]);
|
|
805
806
|
export {
|
|
806
|
-
|
|
807
|
+
Se as default
|
|
807
808
|
};
|
package/lib/{dialogSiteComponentsParams-e2c5b8dd.js → dialogSiteComponentsParams-5fde7ab5.js}
RENAMED
|
@@ -8,7 +8,7 @@ const S = { class: "dialog-footer" }, N = {
|
|
|
8
8
|
},
|
|
9
9
|
emits: ["update:visible", "refresh", "update:modelValue"],
|
|
10
10
|
setup(m, { emit: f }) {
|
|
11
|
-
const v = g(() => import("./index-
|
|
11
|
+
const v = g(() => import("./index-2ebc799e.js").then((t) => t.i)), n = f, o = m;
|
|
12
12
|
let e = y();
|
|
13
13
|
C(
|
|
14
14
|
() => o.visible,
|