act-plus 1.1.39 → 1.1.41
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 +62 -62
- package/lib/{dialogAddField-15d985a0.js → dialogAddField-3c740262.js} +219 -213
- package/lib/{dialogConfigBtn-2dff5fd1.js → dialogConfigBtn-8bfd8dd7.js} +84 -87
- package/lib/dialogSiteComponentsParams-b6c8001c.js +71 -0
- package/lib/{index-049908aa.js → index-0c36aa40.js} +3 -3
- package/lib/index-266b8842.js +403 -0
- package/lib/{index-9532f747.js → index-333a11e5.js} +1 -1
- package/lib/{index-695e54dd.js → index-40115216.js} +32991 -31790
- package/lib/{index-fced38e4.js → index-4398f116.js} +33 -33
- package/lib/index-e9d31e0d.js +107 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/configBtns-728ef16d.js +0 -155
- package/lib/configFileds-9e744154.js +0 -199
- package/lib/configForm-e91a1aa7.js +0 -129
- package/lib/configTable-416757c9.js +0 -416
- package/lib/dialogInitConfig-51ed8f7d.js +0 -188
- package/lib/dialogSiteComponentsParams-9c74c09e.js +0 -71
- package/lib/enum-d734222c.js +0 -119
- package/lib/index-12816422.js +0 -376
- package/lib/index-2a3f9431.js +0 -102
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ref as d, watch as
|
|
2
|
-
import { _ as P } from "./index-
|
|
1
|
+
import { ref as d, watch as h, resolveComponent as m, openBlock as r, createElementBlock as _, createVNode as v, unref as u, isRef as w, withCtx as f, createElementVNode as g, createBlock as C, createCommentVNode as N, createTextVNode as $, Fragment as B, renderList as E, normalizeClass as L } from "vue";
|
|
2
|
+
import { _ as P } from "./index-40115216.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "js-base64";
|
|
5
5
|
import "element-plus";
|
|
@@ -19,72 +19,72 @@ const R = { class: "select-icon-container" }, S = { class: "icon-list" }, j = ["
|
|
|
19
19
|
},
|
|
20
20
|
emits: ["update:modelValue"],
|
|
21
21
|
setup(x, { emit: V }) {
|
|
22
|
-
const
|
|
23
|
-
let
|
|
24
|
-
const b = () =>
|
|
25
|
-
|
|
26
|
-
() =>
|
|
27
|
-
(
|
|
28
|
-
|
|
29
|
-
const { props:
|
|
30
|
-
return Reflect.has(
|
|
22
|
+
const y = V, s = x;
|
|
23
|
+
let c = d(!1), n = d(-1), i = d([]);
|
|
24
|
+
const b = () => n.value == -1 ? "" : i.value[n.value];
|
|
25
|
+
h(
|
|
26
|
+
() => s.icons,
|
|
27
|
+
(l, e) => {
|
|
28
|
+
l && (i.value = (s.icons || []).map((t) => {
|
|
29
|
+
const { props: o } = s;
|
|
30
|
+
return Reflect.has(t, o.value) ? `${o.type}-${t[o.value]}` : `${o.type}-${t}`;
|
|
31
31
|
}));
|
|
32
32
|
},
|
|
33
33
|
{ deep: !0, immediate: !0 }
|
|
34
|
-
),
|
|
35
|
-
() =>
|
|
36
|
-
(
|
|
37
|
-
if (!
|
|
38
|
-
|
|
34
|
+
), h(
|
|
35
|
+
() => s.modelValue,
|
|
36
|
+
(l, e) => {
|
|
37
|
+
if (!l) {
|
|
38
|
+
n.value = -1, y("update:modelValue", "");
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
-
const
|
|
42
|
-
|
|
41
|
+
const t = i.value.findIndex((o) => o === l);
|
|
42
|
+
n.value = t;
|
|
43
43
|
},
|
|
44
44
|
{ deep: !0, immediate: !0 }
|
|
45
45
|
);
|
|
46
|
-
const k = (
|
|
47
|
-
|
|
46
|
+
const k = (l, e) => {
|
|
47
|
+
n.value = e, y("update:modelValue", b()), c.value = !1;
|
|
48
48
|
};
|
|
49
|
-
return (
|
|
50
|
-
const
|
|
51
|
-
return r(),
|
|
49
|
+
return (l, e) => {
|
|
50
|
+
const t = m("a-svg-icon"), o = m("el-button"), I = m("el-popover");
|
|
51
|
+
return r(), _("div", R, [
|
|
52
52
|
v(I, {
|
|
53
53
|
"popper-class": "select-icon-popover",
|
|
54
54
|
placement: "bottom-start",
|
|
55
|
-
visible: u(
|
|
56
|
-
"onUpdate:visible":
|
|
55
|
+
visible: u(c),
|
|
56
|
+
"onUpdate:visible": e[0] || (e[0] = (a) => w(c) ? c.value = a : c = a),
|
|
57
57
|
width: 400,
|
|
58
58
|
trigger: "click"
|
|
59
59
|
}, {
|
|
60
60
|
reference: f(() => [
|
|
61
61
|
g("div", z, [
|
|
62
|
-
u(
|
|
62
|
+
u(n) >= 0 ? (r(), C(t, {
|
|
63
63
|
key: 0,
|
|
64
|
-
name:
|
|
64
|
+
name: s.modelValue,
|
|
65
65
|
width: "24",
|
|
66
66
|
height: "24",
|
|
67
67
|
color: "#000"
|
|
68
68
|
}, null, 8, ["name"])) : N("", !0),
|
|
69
|
-
v(
|
|
69
|
+
v(o, {
|
|
70
70
|
class: "icon-btn",
|
|
71
71
|
type: "primary"
|
|
72
72
|
}, {
|
|
73
|
-
default: f(() => [
|
|
73
|
+
default: f(() => e[1] || (e[1] = [
|
|
74
74
|
$("选择图标")
|
|
75
|
-
]),
|
|
75
|
+
])),
|
|
76
76
|
_: 1
|
|
77
77
|
})
|
|
78
78
|
])
|
|
79
79
|
]),
|
|
80
80
|
default: f(() => [
|
|
81
81
|
g("ul", S, [
|
|
82
|
-
(r(!0),
|
|
83
|
-
class: L(["icon-item", { "icon-item-checked": u(
|
|
82
|
+
(r(!0), _(B, null, E(u(i), (a, p) => (r(), _("li", {
|
|
83
|
+
class: L(["icon-item", { "icon-item-checked": u(n) == p }]),
|
|
84
84
|
key: p,
|
|
85
85
|
onClick: (F) => k(a, p)
|
|
86
86
|
}, [
|
|
87
|
-
v(
|
|
87
|
+
v(t, {
|
|
88
88
|
class: "icon-svg",
|
|
89
89
|
name: a,
|
|
90
90
|
width: "24",
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { ref as j, inject as l, watch as q, resolveComponent as C, resolveDirective as O, openBlock as s, createElementBlock as u, Fragment as f, renderList as E, unref as d, createBlock as i, resolveDynamicComponent as H, withCtx as _, withDirectives as k, createCommentVNode as b, createTextVNode as B, toDisplayString as w } from "vue";
|
|
2
|
+
import { _ as M, u as z } from "./index-40115216.js";
|
|
3
|
+
import "vue-router";
|
|
4
|
+
import "js-base64";
|
|
5
|
+
import "element-plus";
|
|
6
|
+
import "monaco-editor";
|
|
7
|
+
const G = { class: "header-operate-container" }, J = {
|
|
8
|
+
__name: "index",
|
|
9
|
+
props: {
|
|
10
|
+
data: { type: Object, default: () => ({}) }
|
|
11
|
+
},
|
|
12
|
+
emits: ["operate"],
|
|
13
|
+
setup(x, { emit: N }) {
|
|
14
|
+
const T = N, D = x, { t: V } = z();
|
|
15
|
+
let h = j([]);
|
|
16
|
+
const v = l("globalProps"), F = l("menuPermissionBtns"), $ = l("stringToBoolean"), S = l("matchCondition"), P = l("getTableData"), A = l("tableBtnRefs"), I = (r) => {
|
|
17
|
+
if (!r.matchFields.length)
|
|
18
|
+
return !0;
|
|
19
|
+
const t = r.matchFields.filter((o) => o.matchType != "default"), a = (o) => v.matchData[o.matchType][o.matchFieldName];
|
|
20
|
+
let c = t.reduce((o, n, m) => {
|
|
21
|
+
const R = a(n);
|
|
22
|
+
return o += S(
|
|
23
|
+
n.matchCondition,
|
|
24
|
+
R,
|
|
25
|
+
n.fieldValue == "" ? null : n.fieldValue == "true" || n.fieldValue == "false" ? $(n.fieldValue) : n.fieldValue
|
|
26
|
+
), m !== t.length - 1 && (o += n.spliceCondition || "&&"), o;
|
|
27
|
+
}, "").split("||"), e = c.reduce((o, n, m) => (o += `(${n})`, m < c.length - 1 && (o += "||"), o), "");
|
|
28
|
+
return new Function(`return ${e}`)();
|
|
29
|
+
}, g = (r) => F.value.some((t) => t.unique == r.permissionCode) && I(r), L = (r) => {
|
|
30
|
+
h.value = (r || []).filter((t) => t.permissionCode !== 1001 && t.btnPostion.includes("header")).map((t) => (t.btnAlias && (t.btnName = t.btnAlias), t)).sort((t, a) => t.sort - a.sort);
|
|
31
|
+
};
|
|
32
|
+
q(
|
|
33
|
+
() => D.data,
|
|
34
|
+
(r, t) => {
|
|
35
|
+
L(r.buttons);
|
|
36
|
+
},
|
|
37
|
+
{ immediate: !0 }
|
|
38
|
+
);
|
|
39
|
+
const y = (r) => {
|
|
40
|
+
T("operate", r, {});
|
|
41
|
+
};
|
|
42
|
+
return (r, t) => {
|
|
43
|
+
const a = C("a-svg-icon"), p = C("el-button"), c = O("debounce");
|
|
44
|
+
return s(), u("div", G, [
|
|
45
|
+
(s(!0), u(f, null, E(d(h), (e, o) => (s(), u(f, { key: o }, [
|
|
46
|
+
e.isCustomBtn && e.customType == "component" && g(e) ? (s(), i(H(e[e.customComponentName]), {
|
|
47
|
+
key: 0,
|
|
48
|
+
ref_for: !0,
|
|
49
|
+
ref: (n) => d(A)[`${e.customComponentName}-${e.permissionCode}`] = n,
|
|
50
|
+
buttonData: e,
|
|
51
|
+
onRefresh: t[0] || (t[0] = (n) => d(P)())
|
|
52
|
+
}, {
|
|
53
|
+
default: _(() => [
|
|
54
|
+
k((s(), i(p, {
|
|
55
|
+
class: "el-btn",
|
|
56
|
+
type: e.btnColor,
|
|
57
|
+
onClick: (n) => y(e)
|
|
58
|
+
}, {
|
|
59
|
+
default: _(() => [
|
|
60
|
+
e.btnIcon ? (s(), i(a, {
|
|
61
|
+
key: 0,
|
|
62
|
+
class: "mr4",
|
|
63
|
+
name: e.btnIcon,
|
|
64
|
+
width: "12",
|
|
65
|
+
height: "12",
|
|
66
|
+
color: "#fff"
|
|
67
|
+
}, null, 8, ["name"])) : b("", !0),
|
|
68
|
+
B(" " + w(e.btnName), 1)
|
|
69
|
+
]),
|
|
70
|
+
_: 2
|
|
71
|
+
}, 1032, ["type", "onClick"])), [
|
|
72
|
+
[c]
|
|
73
|
+
])
|
|
74
|
+
]),
|
|
75
|
+
_: 2
|
|
76
|
+
}, 1064, ["buttonData"])) : (s(), u(f, { key: 1 }, [
|
|
77
|
+
g(e) ? k((s(), i(p, {
|
|
78
|
+
key: 0,
|
|
79
|
+
class: "el-btn",
|
|
80
|
+
type: e.btnColor,
|
|
81
|
+
loading: e.opeateLoading,
|
|
82
|
+
onClick: (n) => y(e)
|
|
83
|
+
}, {
|
|
84
|
+
default: _(() => [
|
|
85
|
+
e.btnIcon ? (s(), i(a, {
|
|
86
|
+
key: 0,
|
|
87
|
+
class: "mr4",
|
|
88
|
+
name: e.btnIcon,
|
|
89
|
+
width: "12",
|
|
90
|
+
height: "12",
|
|
91
|
+
color: "#fff"
|
|
92
|
+
}, null, 8, ["name"])) : b("", !0),
|
|
93
|
+
B(" " + w(e.opeateLoading ? e.btnName + d(V)("act.loading") + "..." : e.btnName), 1)
|
|
94
|
+
]),
|
|
95
|
+
_: 2
|
|
96
|
+
}, 1032, ["type", "loading", "onClick"])), [
|
|
97
|
+
[c]
|
|
98
|
+
]) : b("", !0)
|
|
99
|
+
], 64))
|
|
100
|
+
], 64))), 128))
|
|
101
|
+
]);
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
}, Z = /* @__PURE__ */ M(J, [["__scopeId", "data-v-4698b9e6"]]);
|
|
105
|
+
export {
|
|
106
|
+
Z as default
|
|
107
|
+
};
|
package/package.json
CHANGED
package/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.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}.mt16{margin-top:16px}.mt24{margin-top:24px}.ml6{margin-left:6px!important}.ml4{margin-left:4px!important}.mr6{margin-right:6px}.mr2{margin-right:2px}.mr4{margin-right:4px}.el-table{font-size:14px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%;--el-card-padding:
|
|
1
|
+
@charset "UTF-8";.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}.mt16{margin-top:16px}.mt24{margin-top:24px}.ml6{margin-left:6px!important}.ml4{margin-left:4px!important}.mr6{margin-right:6px}.mr2{margin-right:2px}.mr4{margin-right:4px}.el-table{font-size:14px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%;--el-card-padding: 12px}.el-card__body{height:100%;box-sizing:border-box}.el-date-editor{--el-date-editor-width: 100%}.a-loading[data-v-048c6c03]{display:flex;align-items:center;justify-content:center;width:100%;height:50px;font-size:32px}.a-loading .dot[data-v-048c6c03]{animation:antRotate-048c6c03 1.2s infinite linear;transform:rotate(45deg);position:relative;display:inline-block;width:28px;height:28px;box-sizing:border-box}.a-loading .dot i[data-v-048c6c03]{width:12px;height:12px;position:absolute;display:block;background-color:#1890ff;border-radius:100%;transform:scale(.75);transform-origin:50% 50%;opacity:.3;animation:antSpinMove-048c6c03 1s infinite linear alternate}.a-loading .dot i[data-v-048c6c03]:nth-child(1){top:0;left:0}.a-loading .dot i[data-v-048c6c03]:nth-child(2){top:0;right:0;-webkit-animation-delay:.4s;animation-delay:.4s}.a-loading .dot i[data-v-048c6c03]:nth-child(3){right:0;bottom:0;-webkit-animation-delay:.8s;animation-delay:.8s}.a-loading .dot i[data-v-048c6c03]:nth-child(4){bottom:0;left:0;-webkit-animation-delay:1.2s;animation-delay:1.2s}@keyframes antRotate-048c6c03{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@-webkit-keyframes antRotate-048c6c03{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@keyframes antSpinMove-048c6c03{to{opacity:1}}@-webkit-keyframes antSpinMove-048c6c03{to{opacity:1}}[data-v-18a32590] .el-empty__image{width:100%}.table-link[data-v-18a32590]{cursor:pointer;color:#409eff;text-decoration:underline}.file-image[data-v-18a32590]{display:block;width:32px;height:32px;margin:0 auto;border-radius:4px;line-height:32px!important}.no-image[data-v-18a32590]{width:100%;height:100%;font-size:12px;background-color:#f5f7fa}.act-module[data-v-18a32590]{padding:0;margin:0;border:none}.add-icon-btn[data-v-ada54450]{cursor:pointer;width:24px;height:24px;margin-left:6px}.table-post-params[data-v-ada54450]{position:relative;margin-bottom:12px}.table-post-params .submit-operate[data-v-ada54450]{position:absolute;top:-20px;right:-10px;display:flex;align-items:center}.table-post-params .submit-operate .match-opreate[data-v-ada54450]{cursor:pointer;width:12px;height:12px}.card-header[data-v-3e5e9347]{display:flex;align-items:center}.card-header -operate[data-v-3e5e9347]{margin-left:auto}.form-list[data-v-3e5e9347]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-3e5e9347]:last-child{border:none}.config-list-operate[data-v-3e5e9347]{display:flex;align-items:center;justify-content:flex-end}.card-header[data-v-3440b427]{display:flex;align-items:center}.card-header-operate[data-v-3440b427]{margin-left:auto}.form-list[data-v-3440b427]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-3440b427]:last-child{border:none}.config-list-operate[data-v-3440b427]{display:flex;align-items:center;justify-content:flex-end}.submit-operate[data-v-c63f456e]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-c63f456e]{cursor:pointer;width:20px;height:20px}.page-container[data-v-4ec549a6]{position:relative}.page-container .header-operate[data-v-4ec549a6]{position:sticky;top:0;z-index:999}.page-container .submit-box[data-v-4ec549a6]{display:flex;align-items:center;justify-content:space-between}.page-container .submit-box-r[data-v-4ec549a6]{display:flex;align-items:center}.page-container .submit-box-r .menu-select[data-v-4ec549a6]{width:360px;margin:0 24px}.act-table .table-pagination[data-v-92f0fcb4]{padding:12px 4px;justify-content:flex-end}.tox-tinymce-aux{z-index:99999!important}.tinymce.ui.FloatPanel{z-index:99}.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before{color:#a8abb2}.upload-container[data-v-f839bee6]{width:100%}.upload-container[data-v-f839bee6] .el-upload-list--picture-card{display:flex;flex:1}.upload-container[data-v-f839bee6] .el-upload.is-drag{width:100%;height:100%}.upload-container .tip-text[data-v-f839bee6]{margin:0;padding:0;font-size:12px;color:#999}.upload-container .file-list[data-v-f839bee6]{display:flex;align-items:center;justify-content:space-between;margin:6px 0;padding:6px 12px;font-size:14px;border-radius:4px;border:1px solid #dcdfe6}.upload-container .file-list[data-v-f839bee6]:hover{cursor:pointer;opacity:.8}.upload-container .file-list:hover .el-file-name[data-v-f839bee6]{text-decoration:underline}.upload-container .file-list-l[data-v-f839bee6]{display:flex;align-items:center;flex:1;width:500px}.upload-container .file-list-image[data-v-f839bee6]{flex-shrink:0;width:40px;height:40px;border-radius:4px}.upload-container .file-list-icon[data-v-f839bee6]{flex-shrink:0;width:40px;height:40px}.upload-container .file-list .el-file-name[data-v-f839bee6]{flex:1;padding:0 12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.upload-container .file-list .el-file-operate[data-v-f839bee6]{display:flex;justify-content:flex-end;flex-shrink:0;min-width:82px;margin-left:auto}.upload-container .file-list .el-file-operate>i[data-v-f839bee6]{cursor:pointer;margin-left:12px}.upload-container .file-list .el-file-operate>i[data-v-f839bee6]:hover{opacity:.8}.search-module-container[data-v-5dc94ebf] .el-form-item{margin-bottom:8px}.search-module-container[data-v-5dc94ebf] .el-select__selection{flex-wrap:nowrap}.search-module-container .form-content[data-v-5dc94ebf]{display:grid;grid-template-columns:repeat(var(--table-query-row),1fr);gap:6px;padding:6px 6px 0}.search-module-container .form-content .search-form-btn[data-v-5dc94ebf]{justify-self:end;align-self:start;grid-column-start:var(--table-query-row);grid-column-end:var(--table-query-row)}.search-module-container .expand[data-v-5dc94ebf]{display:flex;margin:0 auto;color:#a4a2a2}.header-operate-container[data-v-4698b9e6]{display:flex;align-items:center;justify-content:flex-end}.header-operate-container .el-btn[data-v-4698b9e6]{margin:6px}.no-config[data-v-4ec013fe]{line-height:32px;font-weight:700}.no-config-field[data-v-4ec013fe]{color:red}.card-header[data-v-be1c5be6]{display:flex;align-items:center}.card-header-operate[data-v-be1c5be6]{margin-left:auto}.add-icon-btn[data-v-75eab9b4]{cursor:pointer;width:24px;height:24px;margin-left:6px}.condition-box[data-v-75eab9b4]{display:flex;justify-content:center}.condition-box[data-v-75eab9b4] .el-form-item__content{flex:0;min-width:300px}.submit-operate[data-v-75eab9b4]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-75eab9b4]{cursor:pointer;width:20px;height:20px}.add-icon-btn[data-v-2aab2179]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-2aab2179]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-2aab2179]{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-308d02d4]{display:flex;align-items:center}.select-icon-container .icon-value .icon-btn[data-v-308d02d4]{margin-left:12px}
|
|
@@ -1,155 +0,0 @@
|
|
|
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
|
-
import { useRoute as $ } from "vue-router";
|
|
3
|
-
import { _ as G } from "./index-695e54dd.js";
|
|
4
|
-
import "js-base64";
|
|
5
|
-
import "element-plus";
|
|
6
|
-
import "monaco-editor";
|
|
7
|
-
const J = (u) => (H("data-v-862782ff"), 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-2dff5fd1.js")), p = 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 = [], s = 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
|
-
], 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
|
-
}, R = async (e) => {
|
|
55
|
-
try {
|
|
56
|
-
n.tableLoading = !0;
|
|
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
|
-
}
|
|
65
|
-
}, A = () => v.value.getSelectionRows() || [];
|
|
66
|
-
D("associationMenuList", B), D("createDefaultButtonItem", w), j(
|
|
67
|
-
() => p.modelValue,
|
|
68
|
-
async (e, a) => {
|
|
69
|
-
try {
|
|
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);
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
{ deep: !0 }
|
|
80
|
-
);
|
|
81
|
-
const U = (e) => {
|
|
82
|
-
n.dialogData = e.row, y = e.$index, n.showConfigBtnDialog = !0;
|
|
83
|
-
};
|
|
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, {
|
|
87
|
-
class: "form-card",
|
|
88
|
-
shadow: "hover"
|
|
89
|
-
}, {
|
|
90
|
-
header: d(() => [
|
|
91
|
-
Q
|
|
92
|
-
]),
|
|
93
|
-
default: d(() => [
|
|
94
|
-
f(_, {
|
|
95
|
-
ref_key: "tableRef",
|
|
96
|
-
ref: v,
|
|
97
|
-
loading: l(n).tableLoading,
|
|
98
|
-
rowKey: "permissionCode",
|
|
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),
|
|
103
|
-
showPagination: !1
|
|
104
|
-
}, {
|
|
105
|
-
isCustomBtn: d(({ scope: t }) => [
|
|
106
|
-
f(i, {
|
|
107
|
-
type: "primary",
|
|
108
|
-
effect: "dark",
|
|
109
|
-
size: "small"
|
|
110
|
-
}, {
|
|
111
|
-
default: d(() => [
|
|
112
|
-
x(P(t.row.isCustomBtn ? "是" : "否"), 1)
|
|
113
|
-
]),
|
|
114
|
-
_: 2
|
|
115
|
-
}, 1024)
|
|
116
|
-
]),
|
|
117
|
-
sort: d(({ scope: t }) => [
|
|
118
|
-
f(o, {
|
|
119
|
-
modelValue: t.row.sort,
|
|
120
|
-
"onUpdate:modelValue": (I) => t.row.sort = I,
|
|
121
|
-
min: 0
|
|
122
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
123
|
-
]),
|
|
124
|
-
operate: d(({ scope: t }) => [
|
|
125
|
-
f(r, {
|
|
126
|
-
type: "primary",
|
|
127
|
-
text: "",
|
|
128
|
-
size: "small",
|
|
129
|
-
icon: "Aim",
|
|
130
|
-
onClick: (I) => U(t)
|
|
131
|
-
}, {
|
|
132
|
-
default: d(() => [
|
|
133
|
-
x(" 配置 ")
|
|
134
|
-
]),
|
|
135
|
-
_: 2
|
|
136
|
-
}, 1032, ["onClick"])
|
|
137
|
-
]),
|
|
138
|
-
_: 1
|
|
139
|
-
}, 8, ["loading", "selection", "headers", "data"]),
|
|
140
|
-
f(l(q), {
|
|
141
|
-
visible: l(n).showConfigBtnDialog,
|
|
142
|
-
"onUpdate:visible": a[1] || (a[1] = (t) => l(n).showConfigBtnDialog = t),
|
|
143
|
-
title: "配置按钮",
|
|
144
|
-
data: l(n).dialogData,
|
|
145
|
-
onRefresh: k
|
|
146
|
-
}, null, 8, ["visible", "data"])
|
|
147
|
-
]),
|
|
148
|
-
_: 1
|
|
149
|
-
});
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
}, ie = /* @__PURE__ */ G(X, [["__scopeId", "data-v-862782ff"]]);
|
|
153
|
-
export {
|
|
154
|
-
ie as default
|
|
155
|
-
};
|
|
@@ -1,199 +0,0 @@
|
|
|
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-d734222c.js";
|
|
3
|
-
import { _ as M } from "./index-695e54dd.js";
|
|
4
|
-
import "vue-router";
|
|
5
|
-
import "js-base64";
|
|
6
|
-
import "element-plus";
|
|
7
|
-
import "monaco-editor";
|
|
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 = {
|
|
9
|
-
__name: "configFileds",
|
|
10
|
-
props: {
|
|
11
|
-
modelValue: { type: Object, default: () => [] }
|
|
12
|
-
},
|
|
13
|
-
emits: ["update:modelValue"],
|
|
14
|
-
setup(u, { emit: v }) {
|
|
15
|
-
const F = I(() => import("./dialogAddField-15d985a0.js")), g = v, b = u, V = H("configData")();
|
|
16
|
-
let l = U((() => ({
|
|
17
|
-
tableLoading: !1,
|
|
18
|
-
showAddFieldDialog: !1,
|
|
19
|
-
dialogTitle: "字段配置",
|
|
20
|
-
dialogData: {}
|
|
21
|
-
}))()), p = 0, D = [
|
|
22
|
-
{ label: "序号", prop: "serialNumber", width: 60 },
|
|
23
|
-
{ label: "字段", prop: "fieldName", width: 220 },
|
|
24
|
-
{ label: "字段Key", prop: "fieldKey", width: 180 },
|
|
25
|
-
{ label: "字段类型", prop: "fieldType", width: 180, render: !0 },
|
|
26
|
-
{ label: "使用场景", prop: "useScenes", minWidth: 180, render: !0 },
|
|
27
|
-
{ label: "是否自定义表头", prop: "customTableHeaderName", width: 140, render: !0 },
|
|
28
|
-
{ label: "场景自定义", prop: "formCustomComponentes", width: 140, render: !0 },
|
|
29
|
-
{ label: "排序", prop: "sort", width: 180, render: !0 },
|
|
30
|
-
{ label: "操作", prop: "operate", width: 180, render: !0, fixed: "right" }
|
|
31
|
-
], s = j([]);
|
|
32
|
-
const S = (e) => {
|
|
33
|
-
if (!Reflect.has(e, "fieldType"))
|
|
34
|
-
return "";
|
|
35
|
-
const t = J.find((n) => n.value == e.fieldType);
|
|
36
|
-
return (t == null ? void 0 : t.key) || "";
|
|
37
|
-
}, T = (e) => Reflect.has(e, "useScenes") ? [
|
|
38
|
-
{ btnName: "表格查询", permissionCode: "tableSearch" },
|
|
39
|
-
{ btnName: "表格展示", permissionCode: "tableShow" },
|
|
40
|
-
...V.value.buttons || []
|
|
41
|
-
].filter((n) => e.useScenes.includes(n.permissionCode)).map((n) => n.btnName) : [], y = (e) => (e.formCustomComponentes || []).filter((t) => t.isFiledCustom).map((t) => `${t.btnName}:是`).join(), k = (e, t) => {
|
|
42
|
-
if (p == null) {
|
|
43
|
-
const n = s.value.length;
|
|
44
|
-
s.value.push({ ...e, sort: (n + 1) * 10 });
|
|
45
|
-
} else
|
|
46
|
-
s.value[p] = {
|
|
47
|
-
...e,
|
|
48
|
-
postRequestParams: [...e.postRequestParams],
|
|
49
|
-
useScenes: [...e.useScenes],
|
|
50
|
-
formCustomComponentes: [...e.formCustomComponentes]
|
|
51
|
-
};
|
|
52
|
-
g("update:modelValue", s.value), t(!0);
|
|
53
|
-
}, x = async () => {
|
|
54
|
-
try {
|
|
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;
|
|
56
|
-
} catch (e) {
|
|
57
|
-
l.tableLoading = !1, console.error(e);
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
B(
|
|
61
|
-
() => b.modelValue,
|
|
62
|
-
async (e, t) => {
|
|
63
|
-
await x();
|
|
64
|
-
},
|
|
65
|
-
{ deep: !0, immediate: !0 }
|
|
66
|
-
);
|
|
67
|
-
const N = () => {
|
|
68
|
-
p = null, l.dialogData = {}, l.showAddFieldDialog = !0;
|
|
69
|
-
}, A = (e) => {
|
|
70
|
-
p = e.$index, l.dialogData = e.row, l.showAddFieldDialog = !0;
|
|
71
|
-
}, L = () => {
|
|
72
|
-
g("update:modelValue", s.value);
|
|
73
|
-
}, E = (e) => {
|
|
74
|
-
s.value.splice(e.$index, 1), g("update:modelValue", s.value);
|
|
75
|
-
};
|
|
76
|
-
return (e, t) => {
|
|
77
|
-
const n = m("el-button"), h = m("el-tag"), P = m("el-input-number"), R = m("a-table"), $ = m("el-card");
|
|
78
|
-
return f(), w($, {
|
|
79
|
-
class: "form-card",
|
|
80
|
-
shadow: "hover"
|
|
81
|
-
}, {
|
|
82
|
-
header: a(() => [
|
|
83
|
-
C("div", X, [
|
|
84
|
-
Z,
|
|
85
|
-
d(n, {
|
|
86
|
-
class: "card-header-operate",
|
|
87
|
-
type: "primary",
|
|
88
|
-
icon: "Plus",
|
|
89
|
-
onClick: t[0] || (t[0] = (o) => N())
|
|
90
|
-
}, {
|
|
91
|
-
default: a(() => [
|
|
92
|
-
i("添加字段")
|
|
93
|
-
]),
|
|
94
|
-
_: 1
|
|
95
|
-
})
|
|
96
|
-
])
|
|
97
|
-
]),
|
|
98
|
-
default: a(() => [
|
|
99
|
-
d(R, {
|
|
100
|
-
loading: r(l).tableLoading,
|
|
101
|
-
headers: r(D),
|
|
102
|
-
data: r(s),
|
|
103
|
-
showPagination: !1
|
|
104
|
-
}, {
|
|
105
|
-
fieldType: a(({ scope: o }) => [
|
|
106
|
-
i(_(S(o.row)), 1)
|
|
107
|
-
]),
|
|
108
|
-
useScenes: a(({ scope: o }) => [
|
|
109
|
-
(f(!0), q(K, null, O(T(o.row), (c, z) => (f(), w(h, {
|
|
110
|
-
style: { margin: "0 4px" },
|
|
111
|
-
key: z,
|
|
112
|
-
type: "success",
|
|
113
|
-
effect: "dark",
|
|
114
|
-
size: "small"
|
|
115
|
-
}, {
|
|
116
|
-
default: a(() => [
|
|
117
|
-
i(_(c), 1)
|
|
118
|
-
]),
|
|
119
|
-
_: 2
|
|
120
|
-
}, 1024))), 128))
|
|
121
|
-
]),
|
|
122
|
-
customTableHeaderName: a(({ scope: o }) => [
|
|
123
|
-
d(h, {
|
|
124
|
-
type: "primary",
|
|
125
|
-
effect: "dark",
|
|
126
|
-
size: "small"
|
|
127
|
-
}, {
|
|
128
|
-
default: a(() => [
|
|
129
|
-
i(_(o.row.customTableHeaderName ? "是" : "否"), 1)
|
|
130
|
-
]),
|
|
131
|
-
_: 2
|
|
132
|
-
}, 1024)
|
|
133
|
-
]),
|
|
134
|
-
formCustomComponentes: a(({ scope: o }) => [
|
|
135
|
-
y(o.row) ? (f(), w(h, {
|
|
136
|
-
key: 0,
|
|
137
|
-
type: "primary",
|
|
138
|
-
effect: "dark",
|
|
139
|
-
size: "small"
|
|
140
|
-
}, {
|
|
141
|
-
default: a(() => [
|
|
142
|
-
i(_(y(o.row)), 1)
|
|
143
|
-
]),
|
|
144
|
-
_: 2
|
|
145
|
-
}, 1024)) : W("", !0)
|
|
146
|
-
]),
|
|
147
|
-
sort: a(({ scope: o }) => [
|
|
148
|
-
d(P, {
|
|
149
|
-
modelValue: o.row.sort,
|
|
150
|
-
"onUpdate:modelValue": (c) => o.row.sort = c,
|
|
151
|
-
min: 0,
|
|
152
|
-
onChange: L
|
|
153
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
154
|
-
]),
|
|
155
|
-
operate: a(({ scope: o }) => [
|
|
156
|
-
d(n, {
|
|
157
|
-
type: "primary",
|
|
158
|
-
text: "",
|
|
159
|
-
size: "small",
|
|
160
|
-
icon: "EditPen",
|
|
161
|
-
onClick: (c) => A(o)
|
|
162
|
-
}, {
|
|
163
|
-
default: a(() => [
|
|
164
|
-
i(" 编辑 ")
|
|
165
|
-
]),
|
|
166
|
-
_: 2
|
|
167
|
-
}, 1032, ["onClick"]),
|
|
168
|
-
d(n, {
|
|
169
|
-
type: "danger",
|
|
170
|
-
text: "",
|
|
171
|
-
size: "small",
|
|
172
|
-
icon: "Delete",
|
|
173
|
-
onClick: (c) => E(o)
|
|
174
|
-
}, {
|
|
175
|
-
default: a(() => [
|
|
176
|
-
i(" 删除 ")
|
|
177
|
-
]),
|
|
178
|
-
_: 2
|
|
179
|
-
}, 1032, ["onClick"])
|
|
180
|
-
]),
|
|
181
|
-
_: 1
|
|
182
|
-
}, 8, ["loading", "headers", "data"]),
|
|
183
|
-
d(r(F), {
|
|
184
|
-
visible: r(l).showAddFieldDialog,
|
|
185
|
-
"onUpdate:visible": t[1] || (t[1] = (o) => r(l).showAddFieldDialog = o),
|
|
186
|
-
title: r(l).dialogTitle,
|
|
187
|
-
configData: b.data,
|
|
188
|
-
data: r(l).dialogData,
|
|
189
|
-
onRefresh: k
|
|
190
|
-
}, null, 8, ["visible", "title", "configData", "data"])
|
|
191
|
-
]),
|
|
192
|
-
_: 1
|
|
193
|
-
});
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
}, ie = /* @__PURE__ */ M(ee, [["__scopeId", "data-v-3440b427"]]);
|
|
197
|
-
export {
|
|
198
|
-
ie as default
|
|
199
|
-
};
|