yh-pub 2.0.44 → 2.0.46
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/{AdminLogin-DgrFXKa0.js → AdminLogin-CkTFcGRO.js} +2 -2
- package/{AdminLogin-DgrFXKa0.js.map → AdminLogin-CkTFcGRO.js.map} +1 -1
- package/{Error-WCEN-cZW.js → Error-XILHcP0O.js} +2 -2
- package/{Error-WCEN-cZW.js.map → Error-XILHcP0O.js.map} +1 -1
- package/{Error401-CWSJEX2h.js → Error401-Cxo5TVpQ.js} +3 -3
- package/{Error401-CWSJEX2h.js.map → Error401-Cxo5TVpQ.js.map} +1 -1
- package/{Error404-DPKL_XwW.js → Error404-CcjhWGrm.js} +3 -3
- package/{Error404-DPKL_XwW.js.map → Error404-CcjhWGrm.js.map} +1 -1
- package/{Error500-I8j9J_Xn.js → Error500-Bse-kLs9.js} +3 -3
- package/{Error500-I8j9J_Xn.js.map → Error500-Bse-kLs9.js.map} +1 -1
- package/{HomeIndex-CcjM6XFc.js → HomeIndex-DB8pXN5w.js} +2 -2
- package/{HomeIndex-CcjM6XFc.js.map → HomeIndex-DB8pXN5w.js.map} +1 -1
- package/{IconExplorer-zKRyLyrY.js → IconExplorer-CTNHTSMJ.js} +2 -2
- package/{IconExplorer-zKRyLyrY.js.map → IconExplorer-CTNHTSMJ.js.map} +1 -1
- package/Index-DQcEaCHo.js +5 -0
- package/Index-DQcEaCHo.js.map +1 -0
- package/{MainLogin-BSAJHyKY.js → MainLogin-BWfTerlF.js} +2 -2
- package/{MainLogin-BSAJHyKY.js.map → MainLogin-BWfTerlF.js.map} +1 -1
- package/{MenuManage-BpggJYTj.js → MenuManage-BfSp15t-.js} +2 -2
- package/{MenuManage-BpggJYTj.js.map → MenuManage-BfSp15t-.js.map} +1 -1
- package/{OrgManage-gVBkZxT8.js → OrgManage-BUtZi6xl.js} +2 -2
- package/{OrgManage-gVBkZxT8.js.map → OrgManage-BUtZi6xl.js.map} +1 -1
- package/{RoleManage-DS3hfdok.js → RoleManage-Did2qaw3.js} +333 -296
- package/RoleManage-Did2qaw3.js.map +1 -0
- package/{SysConfig-DdmlRlDW.js → SysConfig-BIWrvHFR.js} +2 -2
- package/{SysConfig-DdmlRlDW.js.map → SysConfig-BIWrvHFR.js.map} +1 -1
- package/{TenantList-DaSbFPjN.js → TenantList-CxQbWA16.js} +2 -2
- package/{TenantList-DaSbFPjN.js.map → TenantList-CxQbWA16.js.map} +1 -1
- package/{ThemeConfig-C-A6W0Cv.js → ThemeConfig-CQR9h7s4.js} +2 -2
- package/{ThemeConfig-C-A6W0Cv.js.map → ThemeConfig-CQR9h7s4.js.map} +1 -1
- package/{ThemeDemo-Bu1Zmlwj.js → ThemeDemo-DECjqo8A.js} +2 -2
- package/{ThemeDemo-Bu1Zmlwj.js.map → ThemeDemo-DECjqo8A.js.map} +1 -1
- package/{index-BQuwZgw0.js → index-DbRDFziL.js} +1151 -1151
- package/{index-BQuwZgw0.js.map → index-DbRDFziL.js.map} +1 -1
- package/index.es.js +1 -1
- package/package.json +1 -1
- package/Index-Dy6jD-gx.js +0 -5
- package/Index-Dy6jD-gx.js.map +0 -1
- package/RoleManage-DS3hfdok.js.map +0 -1
|
@@ -1,206 +1,218 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as Ze, ref as u, reactive as el, onMounted as ll, resolveComponent as h, resolveDirective as tl, openBlock as T, createElementBlock as Z, createElementVNode as I, toDisplayString as f, unref as r, createVNode as n, withCtx as d, createTextVNode as m, withDirectives as ye, createBlock as j, Fragment as Ie, renderList as be, createCommentVNode as al, nextTick as Ce } from "vue";
|
|
2
2
|
import { ElMessage as g } from "element-plus";
|
|
3
|
-
import { httpRequest as
|
|
4
|
-
import { c as
|
|
5
|
-
|
|
6
|
-
const el = { class: "ver-container" }, ll = { class: "ver-col" }, tl = { class: "operation" }, al = { style: { padding: "5px 15px 5px 2px", "font-size": "13px" } }, ol = { class: "operation" }, nl = { style: { padding: "5px 15px 5px 2px", "font-size": "18px", "font-weight": "bold" } }, sl = { class: "ivu-card-head" }, rl = { style: { "margin-bottom": "0px" } }, dl = {
|
|
3
|
+
import { httpRequest as _ } from "yh-client";
|
|
4
|
+
import { c as o, o as ee } from "./index-DbRDFziL.js";
|
|
5
|
+
const ol = { class: "ver-container" }, nl = { class: "ver-col" }, sl = { class: "operation" }, rl = { style: { padding: "5px 15px 5px 2px", "font-size": "13px" } }, dl = { class: "operation" }, il = { style: { padding: "5px 15px 5px 2px", "font-size": "18px", "font-weight": "bold" } }, cl = { class: "ivu-card-head" }, ul = { style: { "margin-bottom": "0px" } }, hl = {
|
|
7
6
|
style: { padding: "0 10px" },
|
|
8
7
|
class: "custom-scrollbar"
|
|
9
|
-
},
|
|
8
|
+
}, fl = { style: { "margin-top": "15px", "min-height": "300px" } }, pl = { style: { position: "relative" } }, yl = /* @__PURE__ */ Ze({
|
|
10
9
|
name: "RoleManage",
|
|
11
10
|
__name: "RoleManage",
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
11
|
+
setup(ml) {
|
|
12
|
+
const L = u(!1), le = u([]), b = el({
|
|
14
13
|
currentPage: 1,
|
|
15
14
|
pageSize: 10,
|
|
16
15
|
total: 0
|
|
17
|
-
}),
|
|
16
|
+
}), q = u(""), te = u(), E = u(!1), V = u(""), J = u(!1), ae = u(), c = u({
|
|
18
17
|
adRoleId: "",
|
|
19
18
|
adOrgId: "",
|
|
20
19
|
name: "",
|
|
21
20
|
isAdmin: "N",
|
|
21
|
+
isThreeAdmin: "N",
|
|
22
22
|
description: ""
|
|
23
|
-
}), P =
|
|
23
|
+
}), Q = u([]), oe = u([]), P = u(!1), B = u(!1), ne = u([]), R = u(""), W = u(), F = u(""), C = u([]), M = u({}), w = u([]), N = u([]), G = u(!1), U = u(!1), se = u([]), K = u(), D = u([]), xe = u(!1), $ = u([]);
|
|
24
24
|
let S = null;
|
|
25
|
-
const
|
|
26
|
-
adOrgId: [{ required: !0, message:
|
|
27
|
-
name: [{ required: !0, message:
|
|
28
|
-
},
|
|
29
|
-
x();
|
|
25
|
+
const Ae = {
|
|
26
|
+
adOrgId: [{ required: !0, message: o("组织机构不能为空"), trigger: "change" }],
|
|
27
|
+
name: [{ required: !0, message: o("角色名称不能为空"), trigger: "change" }]
|
|
28
|
+
}, Ve = () => {
|
|
29
|
+
x(), Re();
|
|
30
|
+
}, Re = () => {
|
|
31
|
+
_.post("/orgController/getUserOrgTree", {}).then((l) => {
|
|
32
|
+
l.data.result && (Q.value = l.data.list || [], oe.value = re(Q.value));
|
|
33
|
+
}).catch((l) => {
|
|
34
|
+
console.error("获取组织机构树失败:", l);
|
|
35
|
+
});
|
|
36
|
+
}, re = (l) => {
|
|
37
|
+
const e = [];
|
|
38
|
+
return l.forEach((t) => {
|
|
39
|
+
t._childs && t._childs.length > 0 && (e.push(t.adOrgId), e.push(...re(t._childs)));
|
|
40
|
+
}), e;
|
|
30
41
|
}, x = () => {
|
|
31
|
-
|
|
32
|
-
name:
|
|
33
|
-
pageSize:
|
|
34
|
-
pageIndex:
|
|
42
|
+
L.value = !0, _.post("/roleController/getRoleList", {
|
|
43
|
+
name: q.value,
|
|
44
|
+
pageSize: b.pageSize,
|
|
45
|
+
pageIndex: b.currentPage
|
|
35
46
|
}).then((l) => {
|
|
36
|
-
l.data.result && (
|
|
47
|
+
l.data.result && (le.value = l.data.data.records, b.total = l.data.data.total);
|
|
37
48
|
}).catch((l) => {
|
|
38
|
-
console.error("获取角色列表失败:", l), g.error(
|
|
49
|
+
console.error("获取角色列表失败:", l), g.error(o("获取角色列表失败"));
|
|
39
50
|
}).finally(() => {
|
|
40
|
-
|
|
51
|
+
L.value = !1;
|
|
41
52
|
});
|
|
42
|
-
},
|
|
43
|
-
V.value = "添加角色",
|
|
44
|
-
},
|
|
45
|
-
V.value = "编辑角色",
|
|
46
|
-
},
|
|
53
|
+
}, we = () => {
|
|
54
|
+
V.value = "添加角色", c.value.adRoleId = "", c.value.name = "", c.value.isAdmin = "N", c.value.isThreeAdmin = "N", c.value.description = "", c.value.adOrgId = "", E.value = !0;
|
|
55
|
+
}, Oe = (l) => {
|
|
56
|
+
V.value = "编辑角色", c.value.adOrgId = l.adOrgId, c.value.name = l.name, c.value.isAdmin = l.isAdmin, c.value.isThreeAdmin = l.isThreeAdmin || "N", c.value.description = l.description, c.value.adRoleId = l.adRoleId, E.value = !0;
|
|
57
|
+
}, Te = () => {
|
|
47
58
|
var l;
|
|
48
|
-
(l =
|
|
59
|
+
(l = ae.value) == null || l.validate((e) => {
|
|
49
60
|
if (e) {
|
|
50
|
-
|
|
61
|
+
J.value = !0;
|
|
51
62
|
const t = {
|
|
52
|
-
orgId:
|
|
53
|
-
adRoleId:
|
|
54
|
-
name:
|
|
55
|
-
description:
|
|
56
|
-
isAdmin:
|
|
63
|
+
orgId: c.value.adOrgId,
|
|
64
|
+
adRoleId: c.value.adRoleId,
|
|
65
|
+
name: c.value.name,
|
|
66
|
+
description: c.value.description,
|
|
67
|
+
isAdmin: c.value.isAdmin,
|
|
68
|
+
isThreeAdmin: c.value.isThreeAdmin
|
|
57
69
|
};
|
|
58
|
-
|
|
59
|
-
a.data.result ? (g.success(
|
|
70
|
+
_.post("/roleController/submitRole", t).then((a) => {
|
|
71
|
+
a.data.result ? (g.success(o("操作成功")), x(), E.value = !1) : g.error(a.data.msg);
|
|
60
72
|
}).catch((a) => {
|
|
61
|
-
console.error("提交角色失败:", a), g.error(
|
|
73
|
+
console.error("提交角色失败:", a), g.error(o("提交失败,请稍后重试"));
|
|
62
74
|
}).finally(() => {
|
|
63
|
-
|
|
75
|
+
J.value = !1;
|
|
64
76
|
});
|
|
65
77
|
}
|
|
66
78
|
});
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
e.data.result ? (g.success(
|
|
79
|
+
}, de = () => {
|
|
80
|
+
E.value = !1;
|
|
81
|
+
}, ie = (l) => {
|
|
82
|
+
_.post("/roleController/delRoleByIds", { ids: l }).then((e) => {
|
|
83
|
+
e.data.result ? (g.success(o("删除成功")), Ne(), x()) : g.error(o("删除失败"));
|
|
72
84
|
}).catch((e) => {
|
|
73
|
-
console.error("删除角色失败:", e), g.error(
|
|
85
|
+
console.error("删除角色失败:", e), g.error(o("删除失败,请稍后重试"));
|
|
74
86
|
});
|
|
75
|
-
},
|
|
76
|
-
l && l.adRoleId &&
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
},
|
|
87
|
+
}, Ee = (l) => {
|
|
88
|
+
l && l.adRoleId && ie(l.adRoleId);
|
|
89
|
+
}, Me = (l) => {
|
|
90
|
+
$.value = l.map((e) => e.adRoleId);
|
|
91
|
+
}, Ne = () => {
|
|
80
92
|
var l;
|
|
81
|
-
|
|
82
|
-
},
|
|
83
|
-
if (
|
|
84
|
-
g.warning(
|
|
93
|
+
$.value = [], (l = te.value) == null || l.clearSelection();
|
|
94
|
+
}, De = () => {
|
|
95
|
+
if ($.value.length <= 0) {
|
|
96
|
+
g.warning(o("您还未选择要删除的数据"));
|
|
85
97
|
return;
|
|
86
98
|
}
|
|
87
|
-
const l =
|
|
88
|
-
|
|
89
|
-
},
|
|
99
|
+
const l = $.value.join(",");
|
|
100
|
+
ie(l);
|
|
101
|
+
}, ce = (l, e) => (l.forEach((t) => {
|
|
90
102
|
t.id = t.adMenuId, t.key = t.adMenuId, t.title = t.name, t.expand = !0, t.checked = !1, t.level = e, t._childs && t._childs.length > 0 && (t.children || (t.children = []), t._childs.forEach((a) => {
|
|
91
|
-
t.children.push(
|
|
103
|
+
t.children.push(ce([a], e + 1)[0]);
|
|
92
104
|
}));
|
|
93
|
-
}), l),
|
|
105
|
+
}), l), Se = async () => {
|
|
94
106
|
const l = {};
|
|
95
|
-
return await
|
|
107
|
+
return await _.post("/rolePermissionsSetting/getRoleMenus", { roleId: R.value }).then((e) => {
|
|
96
108
|
e.data.result && e.data.data.forEach((t) => {
|
|
97
109
|
l[t.AD_MENU_ID] = t;
|
|
98
110
|
});
|
|
99
111
|
}).catch((e) => {
|
|
100
112
|
console.error("获取角色菜单失败:", e);
|
|
101
113
|
}), l;
|
|
102
|
-
},
|
|
114
|
+
}, ue = (l, e) => {
|
|
103
115
|
let t = 0;
|
|
104
116
|
return l.forEach((a) => {
|
|
105
117
|
if (a.expand = !0, e[a.adMenuId] && (a.checked = !0, t++), a.children && a.children.length > 0) {
|
|
106
|
-
const
|
|
107
|
-
|
|
118
|
+
const i = ue(a.children, e);
|
|
119
|
+
i === a.children.length ? (a.checked = !0, a.indeterminate = !1) : i > 0 && i < a.children.length ? (a.indeterminate = !0, a.checked = !1) : (a.checked = !1, a.indeterminate = !1), a.checked && N.value.push(a.adMenuId), a.checked && w.value.push(a.adMenuId);
|
|
108
120
|
} else
|
|
109
121
|
a.checked && w.value.push(a.adMenuId);
|
|
110
122
|
}), t;
|
|
111
|
-
},
|
|
112
|
-
|
|
113
|
-
const l = await
|
|
114
|
-
|
|
123
|
+
}, ze = async () => {
|
|
124
|
+
B.value = !0, w.value = [], N.value = [];
|
|
125
|
+
const l = await Se();
|
|
126
|
+
_.post("/rolePermissionsSetting/getMenuList", {}).then((e) => {
|
|
115
127
|
if (e.data.result) {
|
|
116
128
|
let t = [];
|
|
117
129
|
e.data.menuList.forEach((a) => {
|
|
118
|
-
t.push(
|
|
119
|
-
}),
|
|
120
|
-
var
|
|
130
|
+
t.push(ce([a], 0)[0]);
|
|
131
|
+
}), ue(t, l), he(t), ne.value = t, B.value = !1, Ce(() => {
|
|
132
|
+
var i;
|
|
121
133
|
const a = w.value.filter(
|
|
122
|
-
(p) => !
|
|
134
|
+
(p) => !N.value.includes(p)
|
|
123
135
|
);
|
|
124
|
-
(
|
|
136
|
+
(i = W.value) == null || i.setCheckedKeys(a);
|
|
125
137
|
});
|
|
126
138
|
}
|
|
127
139
|
}).catch((e) => {
|
|
128
|
-
console.error("获取菜单列表失败:", e), g.error(
|
|
140
|
+
console.error("获取菜单列表失败:", e), g.error(o("获取菜单列表失败")), B.value = !1;
|
|
129
141
|
});
|
|
130
|
-
},
|
|
142
|
+
}, he = (l) => {
|
|
131
143
|
l.forEach((e) => {
|
|
132
|
-
e.status === -1 && (e.title = "[已禁用] " + e.title, e.disabled = !0), e.children && e.children.length > 0 &&
|
|
144
|
+
e.status === -1 && (e.title = "[已禁用] " + e.title, e.disabled = !0), e.children && e.children.length > 0 && he(e.children);
|
|
133
145
|
});
|
|
134
|
-
},
|
|
135
|
-
R.value = l.adRoleId, V.value = "分配 " + l.name + " 的菜单权限",
|
|
146
|
+
}, Pe = (l) => {
|
|
147
|
+
R.value = l.adRoleId, V.value = "分配 " + l.name + " 的菜单权限", ze(), _.post("/roleController/getRoleWindowButton", { roleId: R.value }).then((e) => {
|
|
136
148
|
if (e.data.result && e.data.data) {
|
|
137
149
|
const t = {};
|
|
138
150
|
e.data.data.forEach((a) => {
|
|
139
151
|
t[a.WINDOW_ID] || (t[a.WINDOW_ID] = []), t[a.WINDOW_ID].push(a.BUTTON_ID);
|
|
140
|
-
}),
|
|
152
|
+
}), M.value = t;
|
|
141
153
|
}
|
|
142
154
|
}), P.value = !0;
|
|
143
|
-
},
|
|
144
|
-
l && (
|
|
155
|
+
}, Ue = (l) => {
|
|
156
|
+
l && (F.value = l.sysWindowId, _.post("/rolePermissionsSetting/getMenuWindowButton", { windowId: F.value }).then((e) => {
|
|
145
157
|
const { result: t, data: a } = e.data;
|
|
146
158
|
if (t && a) {
|
|
147
|
-
const
|
|
148
|
-
a.forEach((
|
|
149
|
-
if (
|
|
159
|
+
const i = [], p = {};
|
|
160
|
+
a.forEach((k) => {
|
|
161
|
+
if (k.TYPE === "QY") {
|
|
150
162
|
const v = {
|
|
151
|
-
ID:
|
|
152
|
-
NAME:
|
|
163
|
+
ID: k.ID,
|
|
164
|
+
NAME: k.NAME,
|
|
153
165
|
checkAll: !1,
|
|
154
166
|
indeterminate: !1,
|
|
155
167
|
checkChilds: [],
|
|
156
168
|
childs: []
|
|
157
169
|
};
|
|
158
|
-
|
|
170
|
+
i.push(v), p[k.ID] = [];
|
|
159
171
|
} else
|
|
160
|
-
p[
|
|
161
|
-
}),
|
|
162
|
-
|
|
163
|
-
const
|
|
164
|
-
let
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
}),
|
|
168
|
-
}),
|
|
172
|
+
p[k.PARENT_ID] && p[k.PARENT_ID].push(k);
|
|
173
|
+
}), i.forEach((k, v) => {
|
|
174
|
+
i[v].childs = p[k.ID] || [];
|
|
175
|
+
const X = M.value[F.value] || [], A = [];
|
|
176
|
+
let z = 0;
|
|
177
|
+
i[v].childs.forEach((Y) => {
|
|
178
|
+
X.includes(Y.ID) && (A.push(Y.ID), z++);
|
|
179
|
+
}), z === i[v].childs.length ? (i[v].checkAll = !0, i[v].indeterminate = !1) : z > 0 ? (i[v].checkAll = !1, i[v].indeterminate = !0) : (i[v].checkAll = !1, i[v].indeterminate = !1), i[v].checkChilds = A;
|
|
180
|
+
}), C.value = i;
|
|
169
181
|
}
|
|
170
182
|
}).catch((e) => {
|
|
171
183
|
console.error("获取按钮权限失败:", e);
|
|
172
184
|
}));
|
|
173
|
-
},
|
|
185
|
+
}, Be = () => {
|
|
174
186
|
S && clearTimeout(S), S = window.setTimeout(() => {
|
|
175
187
|
var l, e;
|
|
176
|
-
w.value = ((l =
|
|
188
|
+
w.value = ((l = W.value) == null ? void 0 : l.getCheckedKeys(!0)) || [], N.value = ((e = W.value) == null ? void 0 : e.getHalfCheckedKeys(!0)) || [];
|
|
177
189
|
}, 300);
|
|
178
|
-
},
|
|
190
|
+
}, We = (l, e) => {
|
|
179
191
|
let t = [];
|
|
180
|
-
l.checkAll ? (t = l.childs.map((a) => a.ID), l.checkAll = !0, l.indeterminate = !1) : (l.checkAll = !1, l.indeterminate = !1), l.checkChilds = t,
|
|
181
|
-
},
|
|
182
|
-
const t = { ...
|
|
192
|
+
l.checkAll ? (t = l.childs.map((a) => a.ID), l.checkAll = !0, l.indeterminate = !1) : (l.checkAll = !1, l.indeterminate = !1), l.checkChilds = t, fe(), C.value[e] = l;
|
|
193
|
+
}, Fe = (l, e) => {
|
|
194
|
+
const t = { ...C.value[e] };
|
|
183
195
|
if (l.length > 0) {
|
|
184
|
-
let a = 0,
|
|
196
|
+
let a = 0, i = 0;
|
|
185
197
|
for (let p = 0; p < t.childs.length; p++)
|
|
186
|
-
l.includes(t.childs[p].ID) &&
|
|
187
|
-
|
|
198
|
+
l.includes(t.childs[p].ID) && i++;
|
|
199
|
+
i === t.childs.length ? a = 2 : a = 1, a === 1 ? (t.checkAll = !1, t.indeterminate = i !== 0) : a === 2 && (t.checkAll = !0, t.indeterminate = !1);
|
|
188
200
|
} else
|
|
189
201
|
t.checkAll = !1, t.indeterminate = !1;
|
|
190
|
-
t.checkChilds = l,
|
|
191
|
-
},
|
|
202
|
+
t.checkChilds = l, C.value[e] = t, fe();
|
|
203
|
+
}, fe = () => {
|
|
192
204
|
const l = /* @__PURE__ */ new Set();
|
|
193
|
-
|
|
205
|
+
C.value.forEach((e) => {
|
|
194
206
|
e.checkChilds.forEach((t) => {
|
|
195
207
|
l.add(t);
|
|
196
208
|
});
|
|
197
|
-
}),
|
|
198
|
-
},
|
|
199
|
-
|
|
200
|
-
const l = w.value.concat(
|
|
201
|
-
Object.keys(
|
|
202
|
-
e["W_" + t] =
|
|
203
|
-
}),
|
|
209
|
+
}), M.value[F.value] = Array.from(l);
|
|
210
|
+
}, Ke = () => {
|
|
211
|
+
G.value = !0;
|
|
212
|
+
const l = w.value.concat(N.value).join(","), e = {};
|
|
213
|
+
Object.keys(M.value).forEach((t) => {
|
|
214
|
+
e["W_" + t] = M.value[t];
|
|
215
|
+
}), _.post("/rolePermissionsSetting/setMenus", {
|
|
204
216
|
roleId: R.value,
|
|
205
217
|
ids: l,
|
|
206
218
|
btns: JSON.stringify(e)
|
|
@@ -209,147 +221,147 @@ const el = { class: "ver-container" }, ll = { class: "ver-col" }, tl = { class:
|
|
|
209
221
|
}).catch((t) => {
|
|
210
222
|
console.error("提交权限失败:", t), g.error("提交失败,请稍后重试");
|
|
211
223
|
}).finally(() => {
|
|
212
|
-
|
|
224
|
+
G.value = !1;
|
|
213
225
|
});
|
|
214
226
|
}, H = () => {
|
|
215
|
-
w.value = [],
|
|
216
|
-
},
|
|
227
|
+
w.value = [], N.value = [], M.value = {}, C.value = [], P.value = !1;
|
|
228
|
+
}, pe = (l, e, t) => {
|
|
217
229
|
const a = { ...l };
|
|
218
|
-
return a.key = l.adOrgId, a.title = l.name, t[l.adOrgId] && t[l.adOrgId].isOrgAdmin === "Y" &&
|
|
219
|
-
a.children || (a.children = []), a.children.push(
|
|
230
|
+
return a.key = l.adOrgId, a.title = l.name, t[l.adOrgId] && t[l.adOrgId].isOrgAdmin === "Y" && D.value.push(l.adOrgId), a.level = e, l._childs && l._childs.length > 0 && l._childs.forEach((i) => {
|
|
231
|
+
a.children || (a.children = []), a.children.push(pe(i, e + 1, t));
|
|
220
232
|
}), a;
|
|
221
|
-
},
|
|
233
|
+
}, $e = async () => {
|
|
222
234
|
const l = {};
|
|
223
|
-
return await
|
|
235
|
+
return await _.post("/roleController/getRoleOrgAccess", { roleId: R.value }).then((e) => {
|
|
224
236
|
e.data.result && e.data.roleOrgAccess && e.data.roleOrgAccess.forEach((t) => {
|
|
225
237
|
l[t.orgId] = t;
|
|
226
238
|
});
|
|
227
239
|
}).catch((e) => {
|
|
228
240
|
console.error("加载角色机构失败:", e);
|
|
229
241
|
}), l;
|
|
230
|
-
},
|
|
242
|
+
}, Ye = async (l) => {
|
|
231
243
|
R.value = l.adRoleId, V.value = "分配 " + l.name + " 的组织机构权限";
|
|
232
|
-
const e = await
|
|
233
|
-
|
|
244
|
+
const e = await $e();
|
|
245
|
+
_.post("/orgController/getUserOrgTree", {}).then((t) => {
|
|
234
246
|
if (t.data.result) {
|
|
235
247
|
const a = [];
|
|
236
|
-
|
|
237
|
-
a.push(
|
|
238
|
-
}),
|
|
239
|
-
var
|
|
240
|
-
(
|
|
248
|
+
D.value = [], t.data.list.forEach((i) => {
|
|
249
|
+
a.push(pe(i, 0, e));
|
|
250
|
+
}), se.value = a, Ce(() => {
|
|
251
|
+
var i;
|
|
252
|
+
(i = K.value) == null || i.setCheckedKeys(D.value);
|
|
241
253
|
});
|
|
242
254
|
}
|
|
243
255
|
}).catch((t) => {
|
|
244
256
|
console.error("获取机构树失败:", t);
|
|
245
|
-
}),
|
|
246
|
-
},
|
|
257
|
+
}), U.value = !0;
|
|
258
|
+
}, je = () => {
|
|
247
259
|
S && clearTimeout(S), S = window.setTimeout(() => {
|
|
248
260
|
var l;
|
|
249
|
-
|
|
261
|
+
D.value = ((l = K.value) == null ? void 0 : l.getCheckedKeys()) || [];
|
|
250
262
|
}, 300);
|
|
251
|
-
},
|
|
263
|
+
}, Le = () => {
|
|
252
264
|
var t;
|
|
253
265
|
const l = ((t = K.value) == null ? void 0 : t.getCheckedKeys()) || [], e = [];
|
|
254
266
|
l.forEach((a) => {
|
|
255
267
|
e.push({ ad_org_id: a, is_org_admin: "Y" });
|
|
256
|
-
}),
|
|
268
|
+
}), _.post("/roleController/saveRoleOrgAccess", {
|
|
257
269
|
roleId: R.value,
|
|
258
270
|
subJsonData: JSON.stringify(e)
|
|
259
271
|
}).then((a) => {
|
|
260
|
-
a.data.result ? (g.success(a.data.msg),
|
|
272
|
+
a.data.result ? (g.success(a.data.msg), U.value = !1) : g.error(a.data.msg);
|
|
261
273
|
}).catch((a) => {
|
|
262
274
|
console.error("提交角色机构失败:", a), g.error("提交失败,请稍后重试");
|
|
263
275
|
});
|
|
264
276
|
};
|
|
265
|
-
return
|
|
266
|
-
|
|
277
|
+
return ll(() => {
|
|
278
|
+
Ve();
|
|
267
279
|
}), (l, e) => {
|
|
268
|
-
const t = h("el-input"), a = h("el-button"),
|
|
269
|
-
return
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
modelValue:
|
|
275
|
-
"onUpdate:modelValue": e[0] || (e[0] = (s) =>
|
|
280
|
+
const t = h("el-input"), a = h("el-button"), i = h("el-popconfirm"), p = h("el-table-column"), k = h("el-table"), v = h("el-pagination"), X = h("el-tree-select"), A = h("el-form-item"), z = h("el-switch"), Y = h("el-form"), me = h("el-dialog"), ge = h("el-tree"), ve = h("el-col"), _e = h("el-checkbox"), qe = h("el-checkbox-group"), Je = h("el-card"), Qe = h("el-empty"), Ge = h("el-row"), He = h("el-drawer"), Xe = h("el-alert"), ke = tl("loading");
|
|
281
|
+
return T(), Z("div", ol, [
|
|
282
|
+
I("div", nl, [
|
|
283
|
+
I("div", sl, [
|
|
284
|
+
I("div", rl, f(r(o)("角色名称")), 1),
|
|
285
|
+
n(t, {
|
|
286
|
+
modelValue: q.value,
|
|
287
|
+
"onUpdate:modelValue": e[0] || (e[0] = (s) => q.value = s),
|
|
276
288
|
onChange: x,
|
|
277
|
-
placeholder: r(
|
|
289
|
+
placeholder: r(o)("输入关键词搜索"),
|
|
278
290
|
style: { width: "300px", "margin-left": "12px" },
|
|
279
291
|
clearable: ""
|
|
280
292
|
}, null, 8, ["modelValue", "placeholder"])
|
|
281
293
|
]),
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
onClick:
|
|
294
|
+
I("div", dl, [
|
|
295
|
+
I("div", il, f(r(o)("角色管理")), 1),
|
|
296
|
+
n(a, {
|
|
297
|
+
onClick: we,
|
|
286
298
|
type: "primary"
|
|
287
299
|
}, {
|
|
288
300
|
default: d(() => [
|
|
289
|
-
|
|
301
|
+
n(ee, {
|
|
290
302
|
fontFamily: "yhicon",
|
|
291
303
|
prefix: "yh-",
|
|
292
304
|
name: "plus"
|
|
293
305
|
}),
|
|
294
|
-
m(" " + f(r(
|
|
306
|
+
m(" " + f(r(o)("添加角色")), 1)
|
|
295
307
|
]),
|
|
296
308
|
_: 1
|
|
297
309
|
}),
|
|
298
|
-
|
|
299
|
-
title: r(
|
|
300
|
-
"ok-text": r(
|
|
301
|
-
"cancel-text": r(
|
|
302
|
-
onConfirm:
|
|
310
|
+
n(i, {
|
|
311
|
+
title: r(o)("确定要删除所选的角色吗?"),
|
|
312
|
+
"ok-text": r(o)("删除"),
|
|
313
|
+
"cancel-text": r(o)("取消"),
|
|
314
|
+
onConfirm: De,
|
|
303
315
|
style: { "margin-left": "12px" }
|
|
304
316
|
}, {
|
|
305
317
|
reference: d(() => [
|
|
306
|
-
|
|
318
|
+
n(a, null, {
|
|
307
319
|
default: d(() => [
|
|
308
|
-
|
|
320
|
+
n(ee, {
|
|
309
321
|
fontFamily: "yhicon",
|
|
310
322
|
prefix: "yh-",
|
|
311
323
|
name: "delete"
|
|
312
324
|
}),
|
|
313
|
-
m(" " + f(r(
|
|
325
|
+
m(" " + f(r(o)("批量删除")), 1)
|
|
314
326
|
]),
|
|
315
327
|
_: 1
|
|
316
328
|
})
|
|
317
329
|
]),
|
|
318
330
|
_: 1
|
|
319
331
|
}, 8, ["title", "ok-text", "cancel-text"]),
|
|
320
|
-
|
|
332
|
+
n(a, {
|
|
321
333
|
onClick: x,
|
|
322
334
|
style: { "margin-left": "12px" }
|
|
323
335
|
}, {
|
|
324
336
|
default: d(() => [
|
|
325
|
-
|
|
337
|
+
n(ee, {
|
|
326
338
|
fontFamily: "yhicon",
|
|
327
339
|
prefix: "yh-",
|
|
328
340
|
name: "refresh"
|
|
329
341
|
}),
|
|
330
|
-
m(" " + f(r(
|
|
342
|
+
m(" " + f(r(o)("刷新")), 1)
|
|
331
343
|
]),
|
|
332
344
|
_: 1
|
|
333
345
|
})
|
|
334
346
|
]),
|
|
335
|
-
|
|
347
|
+
ye((T(), j(k, {
|
|
336
348
|
"row-key": "adRoleId",
|
|
337
|
-
data:
|
|
349
|
+
data: le.value,
|
|
338
350
|
ref_key: "tableRef",
|
|
339
|
-
ref:
|
|
351
|
+
ref: te,
|
|
340
352
|
"highlight-current-row": "",
|
|
341
|
-
onSelectionChange:
|
|
353
|
+
onSelectionChange: Me,
|
|
342
354
|
"header-cell-style": { background: "#f8f8f8", color: "#606266", fontSize: "13px" },
|
|
343
355
|
stripe: ""
|
|
344
356
|
}, {
|
|
345
357
|
default: d(() => [
|
|
346
|
-
|
|
358
|
+
n(p, {
|
|
347
359
|
type: "selection",
|
|
348
360
|
width: "50",
|
|
349
361
|
align: "center"
|
|
350
362
|
}),
|
|
351
|
-
|
|
352
|
-
label: r(
|
|
363
|
+
n(p, {
|
|
364
|
+
label: r(o)("#"),
|
|
353
365
|
width: "50"
|
|
354
366
|
}, {
|
|
355
367
|
default: d((s) => [
|
|
@@ -357,75 +369,81 @@ const el = { class: "ver-container" }, ll = { class: "ver-col" }, tl = { class:
|
|
|
357
369
|
]),
|
|
358
370
|
_: 1
|
|
359
371
|
}, 8, ["label"]),
|
|
360
|
-
|
|
361
|
-
label: r(
|
|
372
|
+
n(p, {
|
|
373
|
+
label: r(o)("所属机构"),
|
|
362
374
|
"min-width": "150",
|
|
363
375
|
prop: "orgName"
|
|
364
376
|
}, null, 8, ["label"]),
|
|
365
|
-
|
|
366
|
-
label: r(
|
|
377
|
+
n(p, {
|
|
378
|
+
label: r(o)("角色名称"),
|
|
367
379
|
"min-width": "300",
|
|
368
380
|
prop: "name"
|
|
369
381
|
}, null, 8, ["label"]),
|
|
370
|
-
|
|
371
|
-
label: r(
|
|
382
|
+
n(p, {
|
|
383
|
+
label: r(o)("角色管理员"),
|
|
372
384
|
"min-width": "150",
|
|
373
385
|
prop: "isAdmin"
|
|
374
386
|
}, null, 8, ["label"]),
|
|
375
|
-
|
|
376
|
-
label: r(
|
|
387
|
+
n(p, {
|
|
388
|
+
label: r(o)("是否三员管理员"),
|
|
389
|
+
"min-width": "130",
|
|
390
|
+
prop: "isThreeAdmin",
|
|
391
|
+
formatter: (s) => s.isThreeAdmin === "Y" ? r(o)("是") : r(o)("否")
|
|
392
|
+
}, null, 8, ["label", "formatter"]),
|
|
393
|
+
n(p, {
|
|
394
|
+
label: r(o)("备注"),
|
|
377
395
|
"min-width": "200",
|
|
378
396
|
prop: "description"
|
|
379
397
|
}, null, 8, ["label"]),
|
|
380
|
-
|
|
398
|
+
n(p, {
|
|
381
399
|
width: "350",
|
|
382
|
-
label: r(
|
|
400
|
+
label: r(o)("操作")
|
|
383
401
|
}, {
|
|
384
402
|
default: d(({ row: s }) => [
|
|
385
|
-
|
|
403
|
+
n(a, {
|
|
386
404
|
size: "small",
|
|
387
405
|
type: "primary",
|
|
388
|
-
onClick: (
|
|
406
|
+
onClick: (O) => Pe(s)
|
|
389
407
|
}, {
|
|
390
408
|
default: d(() => [
|
|
391
|
-
m(f(r(
|
|
409
|
+
m(f(r(o)("菜单权限")), 1)
|
|
392
410
|
]),
|
|
393
411
|
_: 1
|
|
394
412
|
}, 8, ["onClick"]),
|
|
395
|
-
|
|
413
|
+
n(a, {
|
|
396
414
|
size: "small",
|
|
397
415
|
type: "success",
|
|
398
|
-
onClick: (
|
|
416
|
+
onClick: (O) => Ye(s)
|
|
399
417
|
}, {
|
|
400
418
|
default: d(() => [
|
|
401
|
-
m(f(r(
|
|
419
|
+
m(f(r(o)("角色机构")), 1)
|
|
402
420
|
]),
|
|
403
421
|
_: 1
|
|
404
422
|
}, 8, ["onClick"]),
|
|
405
|
-
|
|
423
|
+
n(a, {
|
|
406
424
|
size: "small",
|
|
407
425
|
type: "info",
|
|
408
|
-
onClick: (
|
|
426
|
+
onClick: (O) => Oe(s)
|
|
409
427
|
}, {
|
|
410
428
|
default: d(() => [
|
|
411
|
-
m(f(r(
|
|
429
|
+
m(f(r(o)("编辑")), 1)
|
|
412
430
|
]),
|
|
413
431
|
_: 1
|
|
414
432
|
}, 8, ["onClick"]),
|
|
415
|
-
|
|
416
|
-
title: r(
|
|
417
|
-
"ok-text": r(
|
|
418
|
-
"cancel-text": r(
|
|
419
|
-
onConfirm: (
|
|
433
|
+
n(i, {
|
|
434
|
+
title: r(o)("你确定要删除吗"),
|
|
435
|
+
"ok-text": r(o)("确定"),
|
|
436
|
+
"cancel-text": r(o)("取消"),
|
|
437
|
+
onConfirm: (O) => Ee(s)
|
|
420
438
|
}, {
|
|
421
439
|
reference: d(() => [
|
|
422
|
-
|
|
440
|
+
n(a, {
|
|
423
441
|
title: "删除",
|
|
424
442
|
size: "small",
|
|
425
443
|
type: "danger"
|
|
426
444
|
}, {
|
|
427
445
|
default: d(() => [
|
|
428
|
-
m(f(r(
|
|
446
|
+
m(f(r(o)("删除")), 1)
|
|
429
447
|
]),
|
|
430
448
|
_: 1
|
|
431
449
|
})
|
|
@@ -438,107 +456,126 @@ const el = { class: "ver-container" }, ll = { class: "ver-col" }, tl = { class:
|
|
|
438
456
|
]),
|
|
439
457
|
_: 1
|
|
440
458
|
}, 8, ["data"])), [
|
|
441
|
-
[
|
|
459
|
+
[ke, L.value]
|
|
442
460
|
]),
|
|
443
|
-
|
|
444
|
-
"current-page":
|
|
445
|
-
"onUpdate:currentPage": e[1] || (e[1] = (s) =>
|
|
446
|
-
"page-size":
|
|
447
|
-
"onUpdate:pageSize": e[2] || (e[2] = (s) =>
|
|
461
|
+
n(v, {
|
|
462
|
+
"current-page": b.currentPage,
|
|
463
|
+
"onUpdate:currentPage": e[1] || (e[1] = (s) => b.currentPage = s),
|
|
464
|
+
"page-size": b.pageSize,
|
|
465
|
+
"onUpdate:pageSize": e[2] || (e[2] = (s) => b.pageSize = s),
|
|
448
466
|
"page-sizes": [10, 30, 50, 100],
|
|
449
467
|
layout: "prev, pager, next, sizes, total, jumper",
|
|
450
|
-
total:
|
|
468
|
+
total: b.total,
|
|
451
469
|
onSizeChange: x,
|
|
452
470
|
onCurrentChange: x
|
|
453
471
|
}, null, 8, ["current-page", "page-size", "total"]),
|
|
454
|
-
|
|
472
|
+
n(me, {
|
|
455
473
|
title: V.value,
|
|
456
|
-
modelValue:
|
|
457
|
-
"onUpdate:modelValue": e[
|
|
474
|
+
modelValue: E.value,
|
|
475
|
+
"onUpdate:modelValue": e[8] || (e[8] = (s) => E.value = s),
|
|
458
476
|
"close-on-click-modal": !1,
|
|
459
|
-
onClose:
|
|
477
|
+
onClose: de,
|
|
460
478
|
width: 500
|
|
461
479
|
}, {
|
|
462
480
|
footer: d(() => [
|
|
463
|
-
|
|
481
|
+
n(a, {
|
|
464
482
|
text: "",
|
|
465
|
-
onClick:
|
|
483
|
+
onClick: de
|
|
466
484
|
}, {
|
|
467
485
|
default: d(() => [
|
|
468
|
-
m(f(r(
|
|
486
|
+
m(f(r(o)("取消")), 1)
|
|
469
487
|
]),
|
|
470
488
|
_: 1
|
|
471
489
|
}),
|
|
472
|
-
|
|
490
|
+
n(a, {
|
|
473
491
|
type: "primary",
|
|
474
|
-
loading:
|
|
475
|
-
onClick:
|
|
492
|
+
loading: J.value,
|
|
493
|
+
onClick: Te
|
|
476
494
|
}, {
|
|
477
495
|
default: d(() => [
|
|
478
|
-
m(f(r(
|
|
496
|
+
m(f(r(o)("提交")), 1)
|
|
479
497
|
]),
|
|
480
498
|
_: 1
|
|
481
499
|
}, 8, ["loading"])
|
|
482
500
|
]),
|
|
483
501
|
default: d(() => [
|
|
484
|
-
|
|
502
|
+
n(Y, {
|
|
485
503
|
ref_key: "roleFormRef",
|
|
486
|
-
ref:
|
|
487
|
-
model:
|
|
504
|
+
ref: ae,
|
|
505
|
+
model: c.value,
|
|
488
506
|
"label-width": 100,
|
|
489
|
-
rules:
|
|
507
|
+
rules: Ae
|
|
490
508
|
}, {
|
|
491
509
|
default: d(() => [
|
|
492
|
-
|
|
493
|
-
label: r(
|
|
494
|
-
prop: "
|
|
510
|
+
n(A, {
|
|
511
|
+
label: r(o)("组织机构"),
|
|
512
|
+
prop: "adOrgId"
|
|
495
513
|
}, {
|
|
496
514
|
default: d(() => [
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
515
|
+
n(X, {
|
|
516
|
+
modelValue: c.value.adOrgId,
|
|
517
|
+
"onUpdate:modelValue": e[3] || (e[3] = (s) => c.value.adOrgId = s),
|
|
518
|
+
data: Q.value,
|
|
519
|
+
props: { label: "name", children: "_childs" },
|
|
520
|
+
"node-key": "adOrgId",
|
|
521
|
+
"default-expanded-keys": oe.value,
|
|
522
|
+
placeholder: r(o)("请选择或输入搜索"),
|
|
503
523
|
filterable: "",
|
|
504
|
-
clearable: ""
|
|
505
|
-
|
|
524
|
+
clearable: "",
|
|
525
|
+
style: { width: "100%" }
|
|
526
|
+
}, null, 8, ["modelValue", "data", "default-expanded-keys", "placeholder"])
|
|
506
527
|
]),
|
|
507
528
|
_: 1
|
|
508
529
|
}, 8, ["label"]),
|
|
509
|
-
|
|
510
|
-
label: r(
|
|
530
|
+
n(A, {
|
|
531
|
+
label: r(o)("角色名称"),
|
|
511
532
|
prop: "name"
|
|
512
533
|
}, {
|
|
513
534
|
default: d(() => [
|
|
514
|
-
|
|
515
|
-
modelValue:
|
|
516
|
-
"onUpdate:modelValue": e[4] || (e[4] = (s) =>
|
|
517
|
-
placeholder: r(
|
|
535
|
+
n(t, {
|
|
536
|
+
modelValue: c.value.name,
|
|
537
|
+
"onUpdate:modelValue": e[4] || (e[4] = (s) => c.value.name = s),
|
|
538
|
+
placeholder: r(o)("请输入")
|
|
518
539
|
}, null, 8, ["modelValue", "placeholder"])
|
|
519
540
|
]),
|
|
520
541
|
_: 1
|
|
521
542
|
}, 8, ["label"]),
|
|
522
|
-
|
|
543
|
+
n(A, {
|
|
544
|
+
label: r(o)("角色管理员")
|
|
545
|
+
}, {
|
|
523
546
|
default: d(() => [
|
|
524
|
-
|
|
525
|
-
modelValue:
|
|
526
|
-
"onUpdate:modelValue": e[5] || (e[5] = (s) =>
|
|
547
|
+
n(z, {
|
|
548
|
+
modelValue: c.value.isAdmin,
|
|
549
|
+
"onUpdate:modelValue": e[5] || (e[5] = (s) => c.value.isAdmin = s),
|
|
527
550
|
"active-value": "Y",
|
|
528
551
|
"inactive-value": "N",
|
|
529
552
|
size: "large"
|
|
530
553
|
}, null, 8, ["modelValue"])
|
|
531
554
|
]),
|
|
532
555
|
_: 1
|
|
533
|
-
}),
|
|
534
|
-
|
|
535
|
-
label: r(
|
|
556
|
+
}, 8, ["label"]),
|
|
557
|
+
n(A, {
|
|
558
|
+
label: r(o)("是否三员管理员")
|
|
559
|
+
}, {
|
|
560
|
+
default: d(() => [
|
|
561
|
+
n(z, {
|
|
562
|
+
modelValue: c.value.isThreeAdmin,
|
|
563
|
+
"onUpdate:modelValue": e[6] || (e[6] = (s) => c.value.isThreeAdmin = s),
|
|
564
|
+
"active-value": "Y",
|
|
565
|
+
"inactive-value": "N",
|
|
566
|
+
size: "large"
|
|
567
|
+
}, null, 8, ["modelValue"])
|
|
568
|
+
]),
|
|
569
|
+
_: 1
|
|
570
|
+
}, 8, ["label"]),
|
|
571
|
+
n(A, {
|
|
572
|
+
label: r(o)("备注"),
|
|
536
573
|
prop: "description"
|
|
537
574
|
}, {
|
|
538
575
|
default: d(() => [
|
|
539
|
-
|
|
540
|
-
modelValue:
|
|
541
|
-
"onUpdate:modelValue": e[
|
|
576
|
+
n(t, {
|
|
577
|
+
modelValue: c.value.description,
|
|
578
|
+
"onUpdate:modelValue": e[7] || (e[7] = (s) => c.value.description = s)
|
|
542
579
|
}, null, 8, ["modelValue"])
|
|
543
580
|
]),
|
|
544
581
|
_: 1
|
|
@@ -549,47 +586,47 @@ const el = { class: "ver-container" }, ll = { class: "ver-col" }, tl = { class:
|
|
|
549
586
|
]),
|
|
550
587
|
_: 1
|
|
551
588
|
}, 8, ["title", "modelValue"]),
|
|
552
|
-
|
|
589
|
+
n(He, {
|
|
553
590
|
title: V.value,
|
|
554
591
|
modelValue: P.value,
|
|
555
|
-
"onUpdate:modelValue": e[
|
|
592
|
+
"onUpdate:modelValue": e[9] || (e[9] = (s) => P.value = s),
|
|
556
593
|
"close-on-click-modal": !1,
|
|
557
594
|
width: 800,
|
|
558
595
|
onClose: H
|
|
559
596
|
}, {
|
|
560
597
|
footer: d(() => [
|
|
561
|
-
|
|
598
|
+
n(a, {
|
|
562
599
|
type: "primary",
|
|
563
|
-
loading:
|
|
564
|
-
onClick:
|
|
600
|
+
loading: G.value,
|
|
601
|
+
onClick: Ke
|
|
565
602
|
}, {
|
|
566
603
|
default: d(() => [
|
|
567
|
-
m(f(r(
|
|
604
|
+
m(f(r(o)("提交")), 1)
|
|
568
605
|
]),
|
|
569
606
|
_: 1
|
|
570
607
|
}, 8, ["loading"]),
|
|
571
|
-
|
|
608
|
+
n(a, {
|
|
572
609
|
text: "",
|
|
573
610
|
onClick: H
|
|
574
611
|
}, {
|
|
575
612
|
default: d(() => [
|
|
576
|
-
m(f(r(
|
|
613
|
+
m(f(r(o)("取消")), 1)
|
|
577
614
|
]),
|
|
578
615
|
_: 1
|
|
579
616
|
})
|
|
580
617
|
]),
|
|
581
618
|
default: d(() => [
|
|
582
|
-
|
|
619
|
+
n(Ge, { gap: 10 }, {
|
|
583
620
|
default: d(() => [
|
|
584
|
-
|
|
621
|
+
n(ve, {
|
|
585
622
|
span: 12,
|
|
586
623
|
style: { overflow: "auto", height: "100%" }
|
|
587
624
|
}, {
|
|
588
625
|
default: d(() => [
|
|
589
|
-
|
|
626
|
+
ye(n(ge, {
|
|
590
627
|
ref_key: "treeRef",
|
|
591
|
-
ref:
|
|
592
|
-
data:
|
|
628
|
+
ref: W,
|
|
629
|
+
data: ne.value,
|
|
593
630
|
props: { label: "title" },
|
|
594
631
|
"show-checkbox": "",
|
|
595
632
|
"default-expand-all": "",
|
|
@@ -597,51 +634,51 @@ const el = { class: "ver-container" }, ll = { class: "ver-col" }, tl = { class:
|
|
|
597
634
|
"check-on-click-leaf": !1,
|
|
598
635
|
"expand-on-click-node": !1,
|
|
599
636
|
"highlight-current": !0,
|
|
600
|
-
onCurrentChange:
|
|
601
|
-
onCheckChange:
|
|
637
|
+
onCurrentChange: Ue,
|
|
638
|
+
onCheckChange: Be
|
|
602
639
|
}, null, 8, ["data"]), [
|
|
603
|
-
[
|
|
640
|
+
[ke, B.value]
|
|
604
641
|
])
|
|
605
642
|
]),
|
|
606
643
|
_: 1
|
|
607
644
|
}),
|
|
608
|
-
|
|
645
|
+
n(ve, {
|
|
609
646
|
span: 12,
|
|
610
647
|
style: { overflow: "auto", height: "100%" }
|
|
611
648
|
}, {
|
|
612
649
|
default: d(() => [
|
|
613
|
-
|
|
614
|
-
|
|
650
|
+
I("div", cl, [
|
|
651
|
+
I("p", ul, f(r(o)("按钮权限")), 1)
|
|
615
652
|
]),
|
|
616
|
-
|
|
617
|
-
(
|
|
618
|
-
key:
|
|
653
|
+
I("div", hl, [
|
|
654
|
+
(T(!0), Z(Ie, null, be(C.value, (s, O) => (T(), j(Je, {
|
|
655
|
+
key: O,
|
|
619
656
|
shadow: "never",
|
|
620
657
|
style: { "margin-top": "5px" }
|
|
621
658
|
}, {
|
|
622
659
|
header: d(() => [
|
|
623
660
|
m(f(s.NAME) + " ", 1),
|
|
624
|
-
|
|
661
|
+
n(_e, {
|
|
625
662
|
style: { "margin-left": "10px" },
|
|
626
663
|
indeterminate: s.indeterminate,
|
|
627
664
|
modelValue: s.checkAll,
|
|
628
665
|
"onUpdate:modelValue": (y) => s.checkAll = y,
|
|
629
|
-
onChange: (y) =>
|
|
666
|
+
onChange: (y) => We(s, O)
|
|
630
667
|
}, {
|
|
631
668
|
default: d(() => [
|
|
632
|
-
m(f(r(
|
|
669
|
+
m(f(r(o)("全选")), 1)
|
|
633
670
|
]),
|
|
634
671
|
_: 1
|
|
635
672
|
}, 8, ["indeterminate", "modelValue", "onUpdate:modelValue", "onChange"])
|
|
636
673
|
]),
|
|
637
674
|
default: d(() => [
|
|
638
|
-
|
|
675
|
+
n(qe, {
|
|
639
676
|
modelValue: s.checkChilds,
|
|
640
677
|
"onUpdate:modelValue": (y) => s.checkChilds = y,
|
|
641
|
-
onChange: (y) =>
|
|
678
|
+
onChange: (y) => Fe(y, O)
|
|
642
679
|
}, {
|
|
643
680
|
default: d(() => [
|
|
644
|
-
(
|
|
681
|
+
(T(!0), Z(Ie, null, be(s.childs, (y) => (T(), j(_e, {
|
|
645
682
|
key: y.ID,
|
|
646
683
|
label: y.ID
|
|
647
684
|
}, {
|
|
@@ -656,10 +693,10 @@ const el = { class: "ver-container" }, ll = { class: "ver-col" }, tl = { class:
|
|
|
656
693
|
]),
|
|
657
694
|
_: 2
|
|
658
695
|
}, 1024))), 128)),
|
|
659
|
-
|
|
696
|
+
C.value.length === 0 ? (T(), j(Qe, {
|
|
660
697
|
key: 0,
|
|
661
|
-
description: r(
|
|
662
|
-
}, null, 8, ["description"])) :
|
|
698
|
+
description: r(o)("暂无按钮权限数据")
|
|
699
|
+
}, null, 8, ["description"])) : al("", !0)
|
|
663
700
|
])
|
|
664
701
|
]),
|
|
665
702
|
_: 1
|
|
@@ -670,46 +707,46 @@ const el = { class: "ver-container" }, ll = { class: "ver-col" }, tl = { class:
|
|
|
670
707
|
]),
|
|
671
708
|
_: 1
|
|
672
709
|
}, 8, ["title", "modelValue"]),
|
|
673
|
-
|
|
710
|
+
n(me, {
|
|
674
711
|
title: V.value,
|
|
675
|
-
modelValue:
|
|
676
|
-
"onUpdate:modelValue": e[
|
|
712
|
+
modelValue: U.value,
|
|
713
|
+
"onUpdate:modelValue": e[12] || (e[12] = (s) => U.value = s),
|
|
677
714
|
"close-on-click-modal": !1,
|
|
678
715
|
width: 400,
|
|
679
716
|
class: "depModal yh-el-dialog"
|
|
680
717
|
}, {
|
|
681
718
|
footer: d(() => [
|
|
682
|
-
|
|
719
|
+
n(a, {
|
|
683
720
|
type: "primary",
|
|
684
|
-
loading:
|
|
685
|
-
onClick:
|
|
721
|
+
loading: xe.value,
|
|
722
|
+
onClick: Le
|
|
686
723
|
}, {
|
|
687
724
|
default: d(() => [
|
|
688
|
-
m(f(r(
|
|
725
|
+
m(f(r(o)("提交")), 1)
|
|
689
726
|
]),
|
|
690
727
|
_: 1
|
|
691
728
|
}, 8, ["loading"]),
|
|
692
|
-
|
|
729
|
+
n(a, {
|
|
693
730
|
text: "",
|
|
694
|
-
onClick: e[
|
|
731
|
+
onClick: e[11] || (e[11] = (s) => U.value = !1)
|
|
695
732
|
}, {
|
|
696
733
|
default: d(() => [
|
|
697
|
-
m(f(r(
|
|
734
|
+
m(f(r(o)("取消")), 1)
|
|
698
735
|
]),
|
|
699
736
|
_: 1
|
|
700
737
|
})
|
|
701
738
|
]),
|
|
702
739
|
default: d(() => [
|
|
703
|
-
|
|
740
|
+
n(Xe, {
|
|
704
741
|
"show-icon": "",
|
|
705
|
-
title: r(
|
|
742
|
+
title: r(o)("请勾选下方组织机构,选中复选框为角色管理员")
|
|
706
743
|
}, null, 8, ["title"]),
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
744
|
+
I("div", fl, [
|
|
745
|
+
I("div", pl, [
|
|
746
|
+
n(ge, {
|
|
710
747
|
ref_key: "depTreeRef",
|
|
711
748
|
ref: K,
|
|
712
|
-
data:
|
|
749
|
+
data: se.value,
|
|
713
750
|
props: { label: "title" },
|
|
714
751
|
"show-checkbox": "",
|
|
715
752
|
"default-expand-all": "",
|
|
@@ -718,9 +755,9 @@ const el = { class: "ver-container" }, ll = { class: "ver-col" }, tl = { class:
|
|
|
718
755
|
"expand-on-click-node": !1,
|
|
719
756
|
"highlight-current": !0,
|
|
720
757
|
"check-strictly": "",
|
|
721
|
-
modelValue:
|
|
722
|
-
"onUpdate:modelValue": e[
|
|
723
|
-
onCheckChange:
|
|
758
|
+
modelValue: D.value,
|
|
759
|
+
"onUpdate:modelValue": e[10] || (e[10] = (s) => D.value = s),
|
|
760
|
+
onCheckChange: je
|
|
724
761
|
}, null, 8, ["data", "modelValue"])
|
|
725
762
|
])
|
|
726
763
|
])
|
|
@@ -733,6 +770,6 @@ const el = { class: "ver-container" }, ll = { class: "ver-col" }, tl = { class:
|
|
|
733
770
|
}
|
|
734
771
|
});
|
|
735
772
|
export {
|
|
736
|
-
|
|
773
|
+
yl as default
|
|
737
774
|
};
|
|
738
|
-
//# sourceMappingURL=RoleManage-
|
|
775
|
+
//# sourceMappingURL=RoleManage-Did2qaw3.js.map
|