yh-pub 1.0.2 → 2.0.2

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