yh-pub 2.0.48 → 2.0.49

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