gs-eant-comp 3.0.7 → 3.0.9
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/dist/gs-eant-comp.css +1 -1
- package/dist/gs-eant-comp.js +5213 -26
- package/dist/gs-eant-comp.umd.cjs +4 -18
- package/package.json +1 -1
- package/dist/Activate-CfIQc-Zp.js +0 -169
- package/dist/ActivateForm-Cfmxf7JB.js +0 -134
- package/dist/AuthCallbackCAS-CLg-ACaV.js +0 -26
- package/dist/AuthCallbackOauth-DlRCCsJV.js +0 -30
- package/dist/AutoTaskEList-wQ6PdTlr.js +0 -291
- package/dist/AutoTaskEditor-BHiZevKj.js +0 -275
- package/dist/AutoTaskLog-DDKrty5r.js +0 -48
- package/dist/AutoTaskViewer-CYvggIGV.js +0 -33
- package/dist/DepartmentEList-CF6bKecL.js +0 -209
- package/dist/DepartmentETable-mct60T1p.js +0 -135
- package/dist/DepartmentETree-e6bJiA4U.js +0 -46
- package/dist/DepartmentETree-vL3HbFkn.js +0 -44
- package/dist/DepartmentEditor-CU5XTCf2.js +0 -214
- package/dist/DepartmentUserEList-BvYeoku6.js +0 -171
- package/dist/DepartmentViewer-CXMXe42a.js +0 -34
- package/dist/FlowCenter-CdrOcmJ3.js +0 -52
- package/dist/IconPicker-BplgUQ5t.js +0 -129
- package/dist/IconSelect-NuAXvxVh.js +0 -70
- package/dist/LogETable-B28F96I_.js +0 -221
- package/dist/LogETable-BkLXbzIJ.js +0 -220
- package/dist/LogETable-D938B_TI.js +0 -231
- package/dist/LogEditor-5nlkOAyR.js +0 -136
- package/dist/LogEditor-C2rGmjR_.js +0 -130
- package/dist/LogEditor-Dde9DlwW.js +0 -138
- package/dist/LoginForm-B-DefUdK.js +0 -346
- package/dist/LoginLogViewer-BrlSaCPp.js +0 -33
- package/dist/LoginPageClassic-D2a8kWiH.js +0 -91
- package/dist/LoginPagePortal-Q-Lwwpbu.js +0 -140
- package/dist/LoginViewer-Dxx6tjuD.js +0 -39
- package/dist/MenuApi-DzYTJysM.js +0 -162
- package/dist/MenuDrag-tjmY7o1N.js +0 -108
- package/dist/MenuETable-BAgUF0iO.js +0 -415
- package/dist/MenuEditor-luvfizeH.js +0 -431
- package/dist/MenuViewer-CpGhh20J.js +0 -35
- package/dist/OauthCallback-B_GjYhqd.js +0 -30
- package/dist/OperationLogViewer-DR9PO9Ea.js +0 -32
- package/dist/RegisterForm-C1c1SEvn.js +0 -134
- package/dist/RoleETree-CKy46-Zn.js +0 -150
- package/dist/RoleEditor-CNS3Qk8w.js +0 -168
- package/dist/RoleFacePermission-DEpiV8Zt.js +0 -92
- package/dist/RoleInterfacePermissionETable-Co773S1r.js +0 -115
- package/dist/RoleInterfacePermissionTree-ClUoM85L.js +0 -90
- package/dist/RoleMenuPermissionTree-D5UQJvZR.js +0 -81
- package/dist/RoleUserAddEditor-BlvKzs8m.js +0 -164
- package/dist/RoleUserEList-My5QAm8G.js +0 -106
- package/dist/RoleUserETable-Os7RJeik.js +0 -189
- package/dist/RoleUserManagerViewer-BduFxkpG.js +0 -109
- package/dist/RoleV2Viewer-DQzjP589.js +0 -139
- package/dist/RoleViewer-Dcg3qCCk.js +0 -74
- package/dist/SystemLogViewer-CTYfCAD0.js +0 -33
- package/dist/TaskCenter-CiUnpJ8A.js +0 -251
- package/dist/TaskCenter_v1-D9AxQsFj.js +0 -55
- package/dist/UserEList-BZOI6u_o.js +0 -279
- package/dist/UserEditor-CMaL_euI.js +0 -330
- package/dist/UserViewer-DI_f9xYf.js +0 -55
- package/dist/iconfont-CXJEu-zK.js +0 -7
- package/dist/index-C3Fr-kGd.js +0 -7899
- package/dist/useExComponentActions-BBBV87vq.js +0 -18
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { toRefs as O, ref as u, provide as d, inject as f, reactive as x, computed as q, resolveComponent as o, createElementBlock as D, openBlock as m, Fragment as F, createVNode as e, createSlots as P, withCtx as t, createElementVNode as _, createBlock as C, createCommentVNode as y, toDisplayString as G, withModifiers as N, unref as H, createTextVNode as J } from "vue";
|
|
2
|
-
import { useStore as L } from "vuex";
|
|
3
|
-
import { useRequest as Q } from "vue-request";
|
|
4
|
-
import U from "./RoleEditor-CNS3Qk8w.js";
|
|
5
|
-
const W = { class: "d-flex justify-content-between align-items-center" }, te = {
|
|
6
|
-
__name: "RoleETree",
|
|
7
|
-
props: {
|
|
8
|
-
refName: { type: String, default: "refETree" },
|
|
9
|
-
selectedKeysName: { type: String, default: "selectedKeys" }
|
|
10
|
-
},
|
|
11
|
-
setup(g) {
|
|
12
|
-
const T = g, { refName: S, selectedKeysName: b } = O(T), n = u();
|
|
13
|
-
d("refEModal", n);
|
|
14
|
-
const i = f(S.value, u());
|
|
15
|
-
d("refETree", i);
|
|
16
|
-
const l = f(b.value, u([]));
|
|
17
|
-
d("selectedKeys", l);
|
|
18
|
-
const v = f("$API"), M = x(v.role.list);
|
|
19
|
-
d("apiObj", M);
|
|
20
|
-
const E = x(v.role.del), z = () => {
|
|
21
|
-
l.value = [], n.value.open = !0, n.value.title = "创建角色";
|
|
22
|
-
}, K = (s) => {
|
|
23
|
-
l.value = [s], n.value.open = !0, n.value.title = "编辑角色";
|
|
24
|
-
}, { run: h } = Q((s) => E[E.method]({ key: s }), {
|
|
25
|
-
manual: !0,
|
|
26
|
-
onSuccess: (s) => {
|
|
27
|
-
i.value.sync();
|
|
28
|
-
},
|
|
29
|
-
onBefore: (s) => {
|
|
30
|
-
l.value = [];
|
|
31
|
-
}
|
|
32
|
-
}), w = L(), k = q(() => w.state.auth.userInfo);
|
|
33
|
-
return (s, r) => {
|
|
34
|
-
const c = o("a-icon"), p = o("a-button");
|
|
35
|
-
o("a-tag");
|
|
36
|
-
const B = o("a-tooltip"), j = o("a-space"), R = o("a-popconfirm"), V = o("ETree"), I = o("a-card"), $ = o("EModal");
|
|
37
|
-
return m(), D(F, null, [
|
|
38
|
-
e(I, {
|
|
39
|
-
title: "角色组",
|
|
40
|
-
size: "small",
|
|
41
|
-
class: "e-card rounded-0",
|
|
42
|
-
bordered: !1
|
|
43
|
-
}, P({
|
|
44
|
-
default: t(() => [
|
|
45
|
-
e(V, {
|
|
46
|
-
ref_key: "refETree",
|
|
47
|
-
ref: i,
|
|
48
|
-
fieldNames: { title: "jsmc", key: "jsdm" },
|
|
49
|
-
pageSize: 100
|
|
50
|
-
}, {
|
|
51
|
-
title: t(({ item: a }) => [
|
|
52
|
-
_("div", W, [
|
|
53
|
-
_("span", null, G(a.jsmc), 1),
|
|
54
|
-
a.jslx != "0" ? (m(), C(j, {
|
|
55
|
-
key: 0,
|
|
56
|
-
class: "pe-2"
|
|
57
|
-
}, {
|
|
58
|
-
default: t(() => [
|
|
59
|
-
y("", !0),
|
|
60
|
-
e(B, { title: "系统内置角色,非管理员请勿操作。" }, {
|
|
61
|
-
default: t(() => [
|
|
62
|
-
e(c, {
|
|
63
|
-
type: "icon-info-circle",
|
|
64
|
-
class: "text-warning"
|
|
65
|
-
})
|
|
66
|
-
]),
|
|
67
|
-
_: 1
|
|
68
|
-
})
|
|
69
|
-
]),
|
|
70
|
-
_: 1
|
|
71
|
-
})) : y("", !0),
|
|
72
|
-
k.value.is_super_admin == "1" && a.jslx == "0" ? (m(), C(j, {
|
|
73
|
-
key: 1,
|
|
74
|
-
class: "pe-2 d-none"
|
|
75
|
-
}, {
|
|
76
|
-
default: t(() => [
|
|
77
|
-
e(p, {
|
|
78
|
-
type: "dashed",
|
|
79
|
-
size: "small",
|
|
80
|
-
onClick: N((A) => K(a.jsdm), ["stop"])
|
|
81
|
-
}, {
|
|
82
|
-
default: t(() => [
|
|
83
|
-
e(c, { type: "icon-edit" })
|
|
84
|
-
]),
|
|
85
|
-
_: 1
|
|
86
|
-
}, 8, ["onClick"]),
|
|
87
|
-
e(R, {
|
|
88
|
-
title: "确定要删除?",
|
|
89
|
-
onClick: r[0] || (r[0] = N(() => {
|
|
90
|
-
}, ["stop"])),
|
|
91
|
-
onConfirm: (A) => H(h)(a.jsdm)
|
|
92
|
-
}, {
|
|
93
|
-
default: t(() => [
|
|
94
|
-
e(p, {
|
|
95
|
-
type: "dashed",
|
|
96
|
-
size: "small"
|
|
97
|
-
}, {
|
|
98
|
-
default: t(() => [
|
|
99
|
-
e(c, { type: "icon-delete" })
|
|
100
|
-
]),
|
|
101
|
-
_: 1
|
|
102
|
-
})
|
|
103
|
-
]),
|
|
104
|
-
_: 1
|
|
105
|
-
}, 8, ["onConfirm"])
|
|
106
|
-
]),
|
|
107
|
-
_: 2
|
|
108
|
-
}, 1024)) : y("", !0)
|
|
109
|
-
])
|
|
110
|
-
]),
|
|
111
|
-
_: 1
|
|
112
|
-
}, 512)
|
|
113
|
-
]),
|
|
114
|
-
_: 2
|
|
115
|
-
}, [
|
|
116
|
-
k.value.is_super_admin == "1" ? {
|
|
117
|
-
name: "extra",
|
|
118
|
-
fn: t(() => [
|
|
119
|
-
e(p, {
|
|
120
|
-
size: "small",
|
|
121
|
-
onClick: z
|
|
122
|
-
}, {
|
|
123
|
-
default: t(() => [
|
|
124
|
-
_("small", null, [
|
|
125
|
-
e(c, { type: "icon-plus" }),
|
|
126
|
-
r[1] || (r[1] = J("添加角色", -1))
|
|
127
|
-
])
|
|
128
|
-
]),
|
|
129
|
-
_: 1
|
|
130
|
-
})
|
|
131
|
-
]),
|
|
132
|
-
key: "0"
|
|
133
|
-
} : void 0
|
|
134
|
-
]), 1024),
|
|
135
|
-
e($, {
|
|
136
|
-
ref_key: "refEModal",
|
|
137
|
-
ref: n
|
|
138
|
-
}, {
|
|
139
|
-
default: t(() => [
|
|
140
|
-
e(U)
|
|
141
|
-
]),
|
|
142
|
-
_: 1
|
|
143
|
-
}, 512)
|
|
144
|
-
], 64);
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
};
|
|
148
|
-
export {
|
|
149
|
-
te as default
|
|
150
|
-
};
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import { defineComponent as R, resolveComponent as t, createBlock as T, openBlock as D, withCtx as a, createVNode as o, mergeProps as V, createCommentVNode as h, createTextVNode as q, toRefs as B, inject as m, reactive as f, ref as b } from "vue";
|
|
2
|
-
import { useRequest as S } from "vue-request";
|
|
3
|
-
import { Form as K } from "ant-design-vue";
|
|
4
|
-
import { _ as M } from "./index-C3Fr-kGd.js";
|
|
5
|
-
const P = K.useForm, U = R({
|
|
6
|
-
props: {
|
|
7
|
-
xs: {
|
|
8
|
-
type: Number,
|
|
9
|
-
default: 24
|
|
10
|
-
},
|
|
11
|
-
lg: {
|
|
12
|
-
type: Number,
|
|
13
|
-
default: 24
|
|
14
|
-
},
|
|
15
|
-
span: {
|
|
16
|
-
type: Number,
|
|
17
|
-
default: 4
|
|
18
|
-
},
|
|
19
|
-
layout: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: "horizontal"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
setup(e) {
|
|
25
|
-
const { xs: n, lg: w, span: C, layout: E } = B(e), p = m("$API"), i = f(p.role.add), s = f(p.role.info), c = f(p.role.update), v = m("refETree"), g = m("refEModal"), u = m("selectedKeys", b([])), r = b({
|
|
26
|
-
key: "",
|
|
27
|
-
jsdm: "",
|
|
28
|
-
jsmc: ""
|
|
29
|
-
}), y = f({
|
|
30
|
-
jsmc: [{ required: !0, message: "请填写信息" }]
|
|
31
|
-
}), { run: d, error: k, loading: N } = S(
|
|
32
|
-
(l) => s[s.method](l),
|
|
33
|
-
{
|
|
34
|
-
manual: !0,
|
|
35
|
-
onSuccess: (l) => {
|
|
36
|
-
r.value = l.data;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
);
|
|
40
|
-
u.value[0] && d({ key: u.value[0] });
|
|
41
|
-
const { run: F, loading: $ } = S(
|
|
42
|
-
async (l) => {
|
|
43
|
-
const j = u.value[0] ? c : i;
|
|
44
|
-
return j[j.method](l);
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
debounceInterval: 300,
|
|
48
|
-
manual: !0,
|
|
49
|
-
onSuccess: (l) => {
|
|
50
|
-
v.value.sync(), g.value.open = !1;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
), { resetFields: A, validate: _, validateInfos: I } = P(r, y);
|
|
54
|
-
return {
|
|
55
|
-
error: k,
|
|
56
|
-
loading: N,
|
|
57
|
-
save_loading: $,
|
|
58
|
-
formState: r,
|
|
59
|
-
resetFields: A,
|
|
60
|
-
validate: _,
|
|
61
|
-
validateInfos: I,
|
|
62
|
-
onSubmit: async () => {
|
|
63
|
-
try {
|
|
64
|
-
await _(), F(r.value);
|
|
65
|
-
} catch {
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
editDisabled: m("editDisabled", b(!0))
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
function z(e, n, w, C, E, p) {
|
|
73
|
-
const i = t("a-input"), s = t("a-form-item"), c = t("a-col"), v = t("a-row"), g = t("a-button"), u = t("a-space"), r = t("a-form"), y = t("ESpin");
|
|
74
|
-
return D(), T(y, {
|
|
75
|
-
spinning: e.loading,
|
|
76
|
-
error: e.error
|
|
77
|
-
}, {
|
|
78
|
-
default: a(() => [
|
|
79
|
-
o(r, {
|
|
80
|
-
class: "d-flex flex-column h-100 justify-content-between",
|
|
81
|
-
autocomplete: "off",
|
|
82
|
-
layout: e.layout,
|
|
83
|
-
"label-col": { span: e.layout == "vertical" ? 24 : 24 / e.lg * e.span },
|
|
84
|
-
"wrapper-col": { span: e.layout == "vertical" ? 24 : 24 - 24 / e.lg * e.span }
|
|
85
|
-
}, {
|
|
86
|
-
default: a(() => [
|
|
87
|
-
o(v, { gutter: [16] }, {
|
|
88
|
-
default: a(() => [
|
|
89
|
-
o(c, {
|
|
90
|
-
xs: e.xs,
|
|
91
|
-
lg: e.lg
|
|
92
|
-
}, {
|
|
93
|
-
default: a(() => [
|
|
94
|
-
o(s, {
|
|
95
|
-
label: "角色代码",
|
|
96
|
-
name: "jsdm"
|
|
97
|
-
}, {
|
|
98
|
-
default: a(() => [
|
|
99
|
-
o(i, {
|
|
100
|
-
value: e.formState.jsdm,
|
|
101
|
-
"onUpdate:value": n[0] || (n[0] = (d) => e.formState.jsdm = d),
|
|
102
|
-
disabled: e.editDisabled,
|
|
103
|
-
placeholder: "系统生成"
|
|
104
|
-
}, null, 8, ["value", "disabled"])
|
|
105
|
-
]),
|
|
106
|
-
_: 1
|
|
107
|
-
})
|
|
108
|
-
]),
|
|
109
|
-
_: 1
|
|
110
|
-
}, 8, ["xs", "lg"]),
|
|
111
|
-
o(c, {
|
|
112
|
-
xs: e.xs,
|
|
113
|
-
lg: e.lg
|
|
114
|
-
}, {
|
|
115
|
-
default: a(() => [
|
|
116
|
-
o(s, V({
|
|
117
|
-
label: "角色名称",
|
|
118
|
-
name: "jsmc"
|
|
119
|
-
}, e.validateInfos.jsmc), {
|
|
120
|
-
default: a(() => [
|
|
121
|
-
o(i, {
|
|
122
|
-
value: e.formState.jsmc,
|
|
123
|
-
"onUpdate:value": n[1] || (n[1] = (d) => e.formState.jsmc = d)
|
|
124
|
-
}, null, 8, ["value"])
|
|
125
|
-
]),
|
|
126
|
-
_: 1
|
|
127
|
-
}, 16)
|
|
128
|
-
]),
|
|
129
|
-
_: 1
|
|
130
|
-
}, 8, ["xs", "lg"])
|
|
131
|
-
]),
|
|
132
|
-
_: 1
|
|
133
|
-
}),
|
|
134
|
-
o(s, {
|
|
135
|
-
"wrapper-col": { span: 24, offset: 0 },
|
|
136
|
-
class: "mb-0"
|
|
137
|
-
}, {
|
|
138
|
-
default: a(() => [
|
|
139
|
-
o(u, { class: "d-flex justify-content-end" }, {
|
|
140
|
-
default: a(() => [
|
|
141
|
-
h("", !0),
|
|
142
|
-
o(g, {
|
|
143
|
-
type: "primary",
|
|
144
|
-
onClick: e.onSubmit,
|
|
145
|
-
loading: e.save_loading
|
|
146
|
-
}, {
|
|
147
|
-
default: a(() => [...n[3] || (n[3] = [
|
|
148
|
-
q("保存", -1)
|
|
149
|
-
])]),
|
|
150
|
-
_: 1
|
|
151
|
-
}, 8, ["onClick", "loading"])
|
|
152
|
-
]),
|
|
153
|
-
_: 1
|
|
154
|
-
})
|
|
155
|
-
]),
|
|
156
|
-
_: 1
|
|
157
|
-
})
|
|
158
|
-
]),
|
|
159
|
-
_: 1
|
|
160
|
-
}, 8, ["layout", "label-col", "wrapper-col"])
|
|
161
|
-
]),
|
|
162
|
-
_: 1
|
|
163
|
-
}, 8, ["spinning", "error"]);
|
|
164
|
-
}
|
|
165
|
-
const Q = /* @__PURE__ */ M(U, [["render", z]]);
|
|
166
|
-
export {
|
|
167
|
-
Q as default
|
|
168
|
-
};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { defineComponent as j, resolveComponent as h, createBlock as D, openBlock as E, withCtx as k, createVNode as v, createElementVNode as g, toDisplayString as L, ref as a, inject as p, computed as S, reactive as $, watch as w } from "vue";
|
|
2
|
-
import { useRequest as x } from "vue-request";
|
|
3
|
-
import { _ as N } from "./index-C3Fr-kGd.js";
|
|
4
|
-
const R = j({
|
|
5
|
-
components: {},
|
|
6
|
-
setup() {
|
|
7
|
-
const n = a([]), r = (e) => {
|
|
8
|
-
for (let o = 0; o < e.length; o++) {
|
|
9
|
-
const t = e[o];
|
|
10
|
-
t.jsdm != null && n.value.push({ key: t.key, title: t.title }), t.children && r(t.children);
|
|
11
|
-
}
|
|
12
|
-
}, u = a(), m = a([]), c = p("selectedKeys"), y = p("checkedKeys", a([])), i = p("expandedKeys", a([])), l = a(!0), f = S(() => c.value.length > 0), s = p("$API"), d = $(s.role.dataPermissionsList), K = (e) => {
|
|
13
|
-
d.params = { jsdm: e };
|
|
14
|
-
};
|
|
15
|
-
K(c.value[0]), w(c, (e) => {
|
|
16
|
-
K(e[0]);
|
|
17
|
-
});
|
|
18
|
-
const { run: U, loading: b } = x((e) => d[d.method]({ ...e, ...d.params }), {
|
|
19
|
-
refreshDeps: [d],
|
|
20
|
-
onSuccess: (e) => {
|
|
21
|
-
if (e.error) {
|
|
22
|
-
u.value = e.error;
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
m.value = e.data, n.value = [], r(e.data);
|
|
26
|
-
const o = n.value.map((t) => t.key).filter((t, _, P) => t && P.indexOf(t) === _);
|
|
27
|
-
y.value = o, i.value = o, l.value = !0;
|
|
28
|
-
}
|
|
29
|
-
}), { run: C } = x(
|
|
30
|
-
(e, o) => s.role.dataPermissionsUpdate.post({ jsdm: e, menuKeys: JSON.stringify(o) }),
|
|
31
|
-
{
|
|
32
|
-
manual: !0
|
|
33
|
-
}
|
|
34
|
-
);
|
|
35
|
-
return {
|
|
36
|
-
error403: u,
|
|
37
|
-
loading: b,
|
|
38
|
-
trueList: m,
|
|
39
|
-
checkable: f,
|
|
40
|
-
checkedKeys: y,
|
|
41
|
-
expandedKeys: i,
|
|
42
|
-
autoExpandParent: l,
|
|
43
|
-
onCheck: (e) => {
|
|
44
|
-
C(c.value, e);
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
}), A = { class: "d-flex justify-contentText-between d-hover" };
|
|
49
|
-
function O(n, r, u, m, c, y) {
|
|
50
|
-
const i = h("a-tree"), l = h("ESpin"), f = h("a-card");
|
|
51
|
-
return E(), D(f, {
|
|
52
|
-
title: "出入数据查询权限",
|
|
53
|
-
size: "small",
|
|
54
|
-
class: "e-card rounded-0",
|
|
55
|
-
bordered: !1
|
|
56
|
-
}, {
|
|
57
|
-
default: k(() => [
|
|
58
|
-
v(l, {
|
|
59
|
-
spinning: n.loading,
|
|
60
|
-
error403: n.error403
|
|
61
|
-
}, {
|
|
62
|
-
default: k(() => [
|
|
63
|
-
v(i, {
|
|
64
|
-
treeData: n.trueList,
|
|
65
|
-
blockNode: !0,
|
|
66
|
-
checkable: n.checkable,
|
|
67
|
-
"field-names": { title: "cdmc", key: "cddm" },
|
|
68
|
-
"auto-expand-parent": n.autoExpandParent,
|
|
69
|
-
checkedKeys: n.checkedKeys,
|
|
70
|
-
"onUpdate:checkedKeys": r[0] || (r[0] = (s) => n.checkedKeys = s),
|
|
71
|
-
expandedKeys: n.expandedKeys,
|
|
72
|
-
"onUpdate:expandedKeys": r[1] || (r[1] = (s) => n.expandedKeys = s),
|
|
73
|
-
onCheck: n.onCheck
|
|
74
|
-
}, {
|
|
75
|
-
title: k(({ cdmc: s }) => [
|
|
76
|
-
g("div", A, [
|
|
77
|
-
g("span", null, L(s), 1)
|
|
78
|
-
])
|
|
79
|
-
]),
|
|
80
|
-
_: 1
|
|
81
|
-
}, 8, ["treeData", "checkable", "auto-expand-parent", "checkedKeys", "expandedKeys", "onCheck"])
|
|
82
|
-
]),
|
|
83
|
-
_: 1
|
|
84
|
-
}, 8, ["spinning", "error403"])
|
|
85
|
-
]),
|
|
86
|
-
_: 1
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
const F = /* @__PURE__ */ N(R, [["render", O]]);
|
|
90
|
-
export {
|
|
91
|
-
F as default
|
|
92
|
-
};
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { toRefs as O, ref as d, provide as c, inject as k, reactive as U, watch as $, computed as D, resolveComponent as t, createElementBlock as f, openBlock as s, Fragment as y, createVNode as r, withCtx as n, createCommentVNode as H, renderList as G, createBlock as g, unref as J, toDisplayString as w, createTextVNode as b } from "vue";
|
|
2
|
-
import { useStore as L } from "vuex";
|
|
3
|
-
import { useRequest as Q } from "vue-request";
|
|
4
|
-
import { _ as W, g as X } from "./index-C3Fr-kGd.js";
|
|
5
|
-
const Y = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "ps-3"
|
|
8
|
-
}, Z = {
|
|
9
|
-
__name: "RoleInterfacePermissionETable",
|
|
10
|
-
props: {
|
|
11
|
-
refName: { type: String, default: "refETree" },
|
|
12
|
-
selectedKeysName: { type: String, default: "selectedKeys" }
|
|
13
|
-
},
|
|
14
|
-
setup(v) {
|
|
15
|
-
function p(e) {
|
|
16
|
-
return e.children && e.children.length > 0 && (e.children = e.children.map(p)), e.interfaces && e.interfaces.length > 0 && (e.interfaces = e.interfaces.map((o) => ({
|
|
17
|
-
...o,
|
|
18
|
-
fwqx: o.fwqx === "1"
|
|
19
|
-
}))), e.fwqx = e.fwqx === "1", e;
|
|
20
|
-
}
|
|
21
|
-
const E = v, { refName: I, selectedKeysName: q } = O(E), u = d();
|
|
22
|
-
c("refEModal", u);
|
|
23
|
-
const l = k(q.value, d([])), _ = k("$API"), i = U(_.role.menuInterfaceList);
|
|
24
|
-
c("apiObj", i);
|
|
25
|
-
const h = (e) => {
|
|
26
|
-
i.params = { jsdm: e };
|
|
27
|
-
};
|
|
28
|
-
h(l.value[0]), $(l, (e) => {
|
|
29
|
-
h(e[0]);
|
|
30
|
-
});
|
|
31
|
-
const m = d([]);
|
|
32
|
-
c("expandedRowKeys", m), c("onSuccess", (e, o) => {
|
|
33
|
-
e.value = o.data, e.value.map(p), m.value = X(e.value, "key");
|
|
34
|
-
});
|
|
35
|
-
const K = [
|
|
36
|
-
{ title: "访问权限", dataIndex: "cdmc", width: "220px" }
|
|
37
|
-
], { run: S } = Q(
|
|
38
|
-
(e) => _.role.updateRoleInterface.post(e),
|
|
39
|
-
{
|
|
40
|
-
manual: !0
|
|
41
|
-
}
|
|
42
|
-
), j = (e, o) => {
|
|
43
|
-
console.log(e, o), S({ jsdm: l.value[0], jkdm: e, fwqx: o });
|
|
44
|
-
}, N = d();
|
|
45
|
-
c("selectedKey", N);
|
|
46
|
-
const R = L(), T = D(() => R.state.auth.userInfo);
|
|
47
|
-
return (e, o) => {
|
|
48
|
-
const C = t("a-checkbox"), P = t("a-col"), M = t("a-row"), A = t("a-table-column");
|
|
49
|
-
t("a-button");
|
|
50
|
-
const B = t("ETable"), V = t("a-card"), z = t("EModal");
|
|
51
|
-
return s(), f(y, null, [
|
|
52
|
-
r(V, {
|
|
53
|
-
size: "small",
|
|
54
|
-
class: "e-card rounded-0",
|
|
55
|
-
bordered: !1
|
|
56
|
-
}, {
|
|
57
|
-
title: n(() => [...o[0] || (o[0] = [
|
|
58
|
-
b(" 页面『操作』权限管理 ", -1)
|
|
59
|
-
])]),
|
|
60
|
-
default: n(() => [
|
|
61
|
-
r(B, {
|
|
62
|
-
columns: K,
|
|
63
|
-
pageSize: 100,
|
|
64
|
-
bordered: !0,
|
|
65
|
-
showHeader: !1,
|
|
66
|
-
enablePagination: !1
|
|
67
|
-
}, {
|
|
68
|
-
default: n(() => [
|
|
69
|
-
r(A, { title: "操作权限" }, {
|
|
70
|
-
default: n(({ record: F }) => [
|
|
71
|
-
r(M, { gutter: [8, 8] }, {
|
|
72
|
-
default: n(() => [
|
|
73
|
-
(s(!0), f(y, null, G(F.interfaces, (a) => (s(), g(P, {
|
|
74
|
-
span: 8,
|
|
75
|
-
key: a
|
|
76
|
-
}, {
|
|
77
|
-
default: n(() => [
|
|
78
|
-
T.value.is_super_admin == "0" || J(l).length === 0 ? (s(), f("span", Y, w(a.jkmc), 1)) : (s(), g(C, {
|
|
79
|
-
key: 1,
|
|
80
|
-
checked: a.fwqx,
|
|
81
|
-
"onUpdate:checked": (x) => a.fwqx = x,
|
|
82
|
-
onChange: (x) => j(a.jkdm, a.fwqx)
|
|
83
|
-
}, {
|
|
84
|
-
default: n(() => [
|
|
85
|
-
b(w(a.jkmc), 1)
|
|
86
|
-
]),
|
|
87
|
-
_: 2
|
|
88
|
-
}, 1032, ["checked", "onUpdate:checked", "onChange"]))
|
|
89
|
-
]),
|
|
90
|
-
_: 2
|
|
91
|
-
}, 1024))), 128))
|
|
92
|
-
]),
|
|
93
|
-
_: 2
|
|
94
|
-
}, 1024)
|
|
95
|
-
]),
|
|
96
|
-
_: 1
|
|
97
|
-
}),
|
|
98
|
-
H("", !0)
|
|
99
|
-
]),
|
|
100
|
-
_: 1
|
|
101
|
-
})
|
|
102
|
-
]),
|
|
103
|
-
_: 1
|
|
104
|
-
}),
|
|
105
|
-
r(z, {
|
|
106
|
-
ref_key: "refEModal",
|
|
107
|
-
ref: u
|
|
108
|
-
}, null, 512)
|
|
109
|
-
], 64);
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
}, ce = /* @__PURE__ */ W(Z, [["__scopeId", "data-v-9d08ae68"]]);
|
|
113
|
-
export {
|
|
114
|
-
ce as default
|
|
115
|
-
};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { defineComponent as E, resolveComponent as h, createBlock as L, openBlock as P, withCtx as k, createVNode as K, createElementVNode as v, toDisplayString as S, ref as c, inject as i, computed as $, reactive as w, watch as D } from "vue";
|
|
2
|
-
import { useRequest as b } from "vue-request";
|
|
3
|
-
import { _ as N } from "./index-C3Fr-kGd.js";
|
|
4
|
-
const R = E({
|
|
5
|
-
components: {},
|
|
6
|
-
setup() {
|
|
7
|
-
const t = c([]), a = (e) => {
|
|
8
|
-
for (let s = 0; s < e.length; s++) {
|
|
9
|
-
const o = e[s];
|
|
10
|
-
o.jsdm != null && t.value.push({ key: o.key, title: o.title }), o.children && a(o.children);
|
|
11
|
-
}
|
|
12
|
-
}, p = c([]), r = i("selectedKeys"), u = i("checkedKeys", c([])), m = i("expandedKeys", c([])), d = c(!0), f = $(() => r.value.length > 0), l = i("$API"), n = w(l.role.interfaceList), y = (e) => {
|
|
13
|
-
n.params = { jsdm: e };
|
|
14
|
-
};
|
|
15
|
-
y(r.value[0]), D(r, (e) => {
|
|
16
|
-
y(e[0]);
|
|
17
|
-
});
|
|
18
|
-
const { error: g, loading: x } = b((e) => n[n.method]({ ...e, ...n.params }), {
|
|
19
|
-
refreshDeps: [n],
|
|
20
|
-
onSuccess: (e) => {
|
|
21
|
-
p.value = e.data, t.value = [], a(e.data);
|
|
22
|
-
const s = t.value.map(
|
|
23
|
-
(o) => o.key
|
|
24
|
-
).filter((o, C, _) => o && _.indexOf(o) === C);
|
|
25
|
-
u.value = s, m.value = s, d.value = !0;
|
|
26
|
-
}
|
|
27
|
-
}), { run: j } = b(
|
|
28
|
-
(e, s) => l.role.batchUpdateRoleInterfaces.post({ jsdm: e, interfaceKeys: JSON.stringify(s) }),
|
|
29
|
-
{
|
|
30
|
-
manual: !0
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
return {
|
|
34
|
-
error: g,
|
|
35
|
-
loading: x,
|
|
36
|
-
trueList: p,
|
|
37
|
-
checkable: f,
|
|
38
|
-
checkedKeys: u,
|
|
39
|
-
expandedKeys: m,
|
|
40
|
-
autoExpandParent: d,
|
|
41
|
-
onCheck: (e) => {
|
|
42
|
-
j(r.value, e);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
}), A = { class: "d-flex justify-contentText-between d-hover" };
|
|
47
|
-
function I(t, a, p, r, u, m) {
|
|
48
|
-
const d = h("a-tree"), f = h("ESpin"), l = h("a-card");
|
|
49
|
-
return P(), L(l, {
|
|
50
|
-
title: "页面『数据』权限管理",
|
|
51
|
-
size: "small",
|
|
52
|
-
class: "e-card rounded-0",
|
|
53
|
-
bordered: !1
|
|
54
|
-
}, {
|
|
55
|
-
default: k(() => [
|
|
56
|
-
K(f, {
|
|
57
|
-
spinning: t.loading,
|
|
58
|
-
error: t.error
|
|
59
|
-
}, {
|
|
60
|
-
default: k(() => [
|
|
61
|
-
K(d, {
|
|
62
|
-
treeData: t.trueList,
|
|
63
|
-
blockNode: !0,
|
|
64
|
-
checkable: t.checkable,
|
|
65
|
-
"field-names": { title: "jkmc", key: "jkdm" },
|
|
66
|
-
"auto-expand-parent": t.autoExpandParent,
|
|
67
|
-
checkedKeys: t.checkedKeys,
|
|
68
|
-
"onUpdate:checkedKeys": a[0] || (a[0] = (n) => t.checkedKeys = n),
|
|
69
|
-
expandedKeys: t.expandedKeys,
|
|
70
|
-
"onUpdate:expandedKeys": a[1] || (a[1] = (n) => t.expandedKeys = n),
|
|
71
|
-
onCheck: t.onCheck
|
|
72
|
-
}, {
|
|
73
|
-
title: k(({ jkmc: n }) => [
|
|
74
|
-
v("div", A, [
|
|
75
|
-
v("span", null, S(n), 1)
|
|
76
|
-
])
|
|
77
|
-
]),
|
|
78
|
-
_: 1
|
|
79
|
-
}, 8, ["treeData", "checkable", "auto-expand-parent", "checkedKeys", "expandedKeys", "onCheck"])
|
|
80
|
-
]),
|
|
81
|
-
_: 1
|
|
82
|
-
}, 8, ["spinning", "error"])
|
|
83
|
-
]),
|
|
84
|
-
_: 1
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
const V = /* @__PURE__ */ N(R, [["render", I]]);
|
|
88
|
-
export {
|
|
89
|
-
V as default
|
|
90
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { ref as o, inject as d, computed as L, reactive as P, watch as R, resolveComponent as y, createBlock as A, openBlock as O, withCtx as u, createVNode as K, unref as i, isRef as g, createElementVNode as b, toDisplayString as T, createTextVNode as U } from "vue";
|
|
2
|
-
import { useStore as V } from "vuex";
|
|
3
|
-
import { useRequest as j } from "vue-request";
|
|
4
|
-
const B = { class: "d-flex justify-contentText-between d-hover" }, M = {
|
|
5
|
-
__name: "RoleMenuPermissionTree",
|
|
6
|
-
setup(I) {
|
|
7
|
-
const S = V(), p = o([]), v = (e) => {
|
|
8
|
-
for (let t = 0; t < e.length; t++) {
|
|
9
|
-
const n = e[t];
|
|
10
|
-
n.jsdm != null && p.value.push({ key: n.key, title: n.title }), n.children && v(n.children);
|
|
11
|
-
}
|
|
12
|
-
}, h = o([]), r = d("selectedKeys"), c = d("checkedKeys", o([])), l = d("expandedKeys", o([])), k = o(!0), N = L(() => S.state.auth.userInfo.is_super_admin == "1" && r.value.length > 0), _ = d("$API"), s = P(_.role.menuList), x = (e) => {
|
|
13
|
-
s.params = { jsdm: e };
|
|
14
|
-
};
|
|
15
|
-
x(r.value[0]), R(r, (e) => {
|
|
16
|
-
x(e[0]);
|
|
17
|
-
});
|
|
18
|
-
const { error: w, loading: C } = j((e) => s[s.method]({ ...e, ...s.params }), {
|
|
19
|
-
refreshDeps: [s],
|
|
20
|
-
onSuccess: (e) => {
|
|
21
|
-
h.value = e.data, p.value = [], v(e.data);
|
|
22
|
-
const t = p.value.map(
|
|
23
|
-
(n) => n.key
|
|
24
|
-
).filter((n, m, f) => n && f.indexOf(n) === m);
|
|
25
|
-
c.value = t, l.value = t, k.value = !0;
|
|
26
|
-
}
|
|
27
|
-
}), { run: D } = j(
|
|
28
|
-
(e, t) => _.role.menuUpdate.post({ jsdm: e, menuKeys: JSON.stringify(t) }),
|
|
29
|
-
{
|
|
30
|
-
manual: !0
|
|
31
|
-
}
|
|
32
|
-
), E = (e) => {
|
|
33
|
-
D(r.value, e);
|
|
34
|
-
};
|
|
35
|
-
return (e, t) => {
|
|
36
|
-
const n = y("a-tree"), m = y("ESpin"), f = y("a-card");
|
|
37
|
-
return O(), A(f, {
|
|
38
|
-
size: "small",
|
|
39
|
-
class: "e-card rounded-0",
|
|
40
|
-
bordered: !1
|
|
41
|
-
}, {
|
|
42
|
-
title: u(() => [...t[2] || (t[2] = [
|
|
43
|
-
U(" 页面『访问』权限管理 ", -1)
|
|
44
|
-
])]),
|
|
45
|
-
default: u(() => [
|
|
46
|
-
K(m, {
|
|
47
|
-
spinning: i(C),
|
|
48
|
-
error: i(w)
|
|
49
|
-
}, {
|
|
50
|
-
default: u(() => [
|
|
51
|
-
K(n, {
|
|
52
|
-
treeData: h.value,
|
|
53
|
-
blockNode: !0,
|
|
54
|
-
checkable: N.value,
|
|
55
|
-
"field-names": { title: "cdmc", key: "cddm" },
|
|
56
|
-
"auto-expand-parent": k.value,
|
|
57
|
-
checkedKeys: i(c),
|
|
58
|
-
"onUpdate:checkedKeys": t[0] || (t[0] = (a) => g(c) ? c.value = a : null),
|
|
59
|
-
expandedKeys: i(l),
|
|
60
|
-
"onUpdate:expandedKeys": t[1] || (t[1] = (a) => g(l) ? l.value = a : null),
|
|
61
|
-
onCheck: E
|
|
62
|
-
}, {
|
|
63
|
-
title: u(({ cdmc: a }) => [
|
|
64
|
-
b("div", B, [
|
|
65
|
-
b("span", null, T(a), 1)
|
|
66
|
-
])
|
|
67
|
-
]),
|
|
68
|
-
_: 1
|
|
69
|
-
}, 8, ["treeData", "checkable", "auto-expand-parent", "checkedKeys", "expandedKeys"])
|
|
70
|
-
]),
|
|
71
|
-
_: 1
|
|
72
|
-
}, 8, ["spinning", "error"])
|
|
73
|
-
]),
|
|
74
|
-
_: 1
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
export {
|
|
80
|
-
M as default
|
|
81
|
-
};
|