yh-pub 2.0.45 → 2.0.47

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 (39) hide show
  1. package/{AdminLogin-BT4Heh9f.js → AdminLogin-BGGRNnlp.js} +2 -2
  2. package/{AdminLogin-BT4Heh9f.js.map → AdminLogin-BGGRNnlp.js.map} +1 -1
  3. package/{Error-DJpDsw1C.js → Error-DeCOZS97.js} +2 -2
  4. package/{Error-DJpDsw1C.js.map → Error-DeCOZS97.js.map} +1 -1
  5. package/{Error401-mFASiIFH.js → Error401-DuF8BRGh.js} +3 -3
  6. package/{Error401-mFASiIFH.js.map → Error401-DuF8BRGh.js.map} +1 -1
  7. package/{Error404-pH4D-5Z1.js → Error404-D7myXZJO.js} +3 -3
  8. package/{Error404-pH4D-5Z1.js.map → Error404-D7myXZJO.js.map} +1 -1
  9. package/{Error500-D0NqiIuJ.js → Error500-CuRvDbRv.js} +3 -3
  10. package/{Error500-D0NqiIuJ.js.map → Error500-CuRvDbRv.js.map} +1 -1
  11. package/{HomeIndex-c9niY7vh.js → HomeIndex-BaGgRhDm.js} +2 -2
  12. package/{HomeIndex-c9niY7vh.js.map → HomeIndex-BaGgRhDm.js.map} +1 -1
  13. package/{IconExplorer-DDmp72HM.js → IconExplorer-CfmiRU_m.js} +2 -2
  14. package/{IconExplorer-DDmp72HM.js.map → IconExplorer-CfmiRU_m.js.map} +1 -1
  15. package/Index-BO1MSW5E.js +5 -0
  16. package/Index-BO1MSW5E.js.map +1 -0
  17. package/{MainLogin-Ch1Eb62o.js → MainLogin-DwPsl10t.js} +2 -2
  18. package/{MainLogin-Ch1Eb62o.js.map → MainLogin-DwPsl10t.js.map} +1 -1
  19. package/{MenuManage-Cx_C2cLl.js → MenuManage-BAUTyUN0.js} +2 -2
  20. package/{MenuManage-Cx_C2cLl.js.map → MenuManage-BAUTyUN0.js.map} +1 -1
  21. package/{OrgManage-CIWIguAK.js → OrgManage-BM27d4NU.js} +2 -2
  22. package/{OrgManage-CIWIguAK.js.map → OrgManage-BM27d4NU.js.map} +1 -1
  23. package/{RoleManage-Bh8z1PtL.js → RoleManage-DOjU1Y69.js} +333 -296
  24. package/RoleManage-DOjU1Y69.js.map +1 -0
  25. package/{SysConfig-CZwGZsMC.js → SysConfig-C-E20xhr.js} +2 -2
  26. package/{SysConfig-CZwGZsMC.js.map → SysConfig-C-E20xhr.js.map} +1 -1
  27. package/{TenantList-DXLUHXsb.js → TenantList-DEt4zEko.js} +2 -2
  28. package/{TenantList-DXLUHXsb.js.map → TenantList-DEt4zEko.js.map} +1 -1
  29. package/{ThemeConfig-BCkJFT7L.js → ThemeConfig-BnSOVQLK.js} +2 -2
  30. package/{ThemeConfig-BCkJFT7L.js.map → ThemeConfig-BnSOVQLK.js.map} +1 -1
  31. package/{ThemeDemo-3RjWdFjL.js → ThemeDemo-ClUdN8kY.js} +2 -2
  32. package/{ThemeDemo-3RjWdFjL.js.map → ThemeDemo-ClUdN8kY.js.map} +1 -1
  33. package/{index-D2wR4sQS.js → index-CX2pD-5k.js} +2407 -2405
  34. package/{index-D2wR4sQS.js.map → index-CX2pD-5k.js.map} +1 -1
  35. package/index.es.js +1 -1
  36. package/package.json +1 -1
  37. package/Index-BSLbbj3e.js +0 -5
  38. package/Index-BSLbbj3e.js.map +0 -1
  39. package/RoleManage-Bh8z1PtL.js.map +0 -1
@@ -1,206 +1,218 @@
1
- import { defineComponent as Je, ref as i, reactive as Ge, onMounted as Qe, resolveComponent as h, resolveDirective as He, openBlock as O, createElementBlock as X, createElementVNode as C, toDisplayString as f, unref as r, createVNode as o, withCtx as d, createTextVNode as m, withDirectives as ge, createBlock as L, Fragment as ve, renderList as _e, createCommentVNode as Xe, nextTick as ke } from "vue";
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 k } from "yh-client";
4
- import { c as n, o as Z } from "./index-D2wR4sQS.js";
5
- import { _ as Ze } from "./Dict.vue_vue_type_script_setup_true_lang-BGgSPFL2.js";
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-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 = {
7
6
  style: { padding: "0 10px" },
8
7
  class: "custom-scrollbar"
9
- }, cl = { style: { "margin-top": "15px", "min-height": "300px" } }, il = { style: { position: "relative" } }, vl = /* @__PURE__ */ Je({
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(ul) {
13
- const q = i(!1), ee = i([]), I = Ge({
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
- }), J = i(""), le = i(), M = i(!1), V = i(""), G = i(!1), te = i(), u = i({
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 = i(!1), W = i(!1), ae = i([]), R = i(""), F = i(), $ = i(""), b = i([]), E = i({}), w = i([]), D = i([]), Q = i(!1), z = i(!1), oe = i([]), K = i(), N = i([]), ye = i(!1), Y = i([]);
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 Ce = {
26
- adOrgId: [{ required: !0, message: n("组织机构不能为空"), trigger: "change" }],
27
- name: [{ required: !0, message: n("角色名称不能为空"), trigger: "change" }]
28
- }, Ie = () => {
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
- q.value = !0, k.post("/roleController/getRoleList", {
32
- name: J.value,
33
- pageSize: I.pageSize,
34
- pageIndex: I.currentPage
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 && (ee.value = l.data.data.records, I.total = l.data.data.total);
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(n("获取角色列表失败"));
49
+ console.error("获取角色列表失败:", l), g.error(o("获取角色列表失败"));
39
50
  }).finally(() => {
40
- q.value = !1;
51
+ L.value = !1;
41
52
  });
42
- }, be = () => {
43
- V.value = "添加角色", u.value.adRoleId = "", u.value.name = "", u.value.isAdmin = "N", u.value.description = "", u.value.adOrgId = "", M.value = !0;
44
- }, xe = (l) => {
45
- V.value = "编辑角色", u.value.adOrgId = l.adOrgId, u.value.name = l.name, u.value.isAdmin = l.isAdmin, u.value.description = l.description, u.value.adRoleId = l.adRoleId, M.value = !0;
46
- }, Ve = () => {
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 = te.value) == null || l.validate((e) => {
59
+ (l = ae.value) == null || l.validate((e) => {
49
60
  if (e) {
50
- G.value = !0;
61
+ J.value = !0;
51
62
  const t = {
52
- orgId: u.value.adOrgId,
53
- adRoleId: u.value.adRoleId,
54
- name: u.value.name,
55
- description: u.value.description,
56
- isAdmin: u.value.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
- k.post("/roleController/submitRole", t).then((a) => {
59
- a.data.result ? (g.success(n("操作成功")), x(), M.value = !1) : g.error(a.data.msg);
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(n("提交失败,请稍后重试"));
73
+ console.error("提交角色失败:", a), g.error(o("提交失败,请稍后重试"));
62
74
  }).finally(() => {
63
- G.value = !1;
75
+ J.value = !1;
64
76
  });
65
77
  }
66
78
  });
67
- }, ne = () => {
68
- M.value = !1;
69
- }, se = (l) => {
70
- k.post("/roleController/delRoleByIds", { ids: l }).then((e) => {
71
- e.data.result ? (g.success(n("删除成功")), Ae(), x()) : g.error(n("删除失败"));
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(n("删除失败,请稍后重试"));
85
+ console.error("删除角色失败:", e), g.error(o("删除失败,请稍后重试"));
74
86
  });
75
- }, Re = (l) => {
76
- l && l.adRoleId && se(l.adRoleId);
77
- }, we = (l) => {
78
- Y.value = l.map((e) => e.adRoleId);
79
- }, Ae = () => {
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
- Y.value = [], (l = le.value) == null || l.clearSelection();
82
- }, Oe = () => {
83
- if (Y.value.length <= 0) {
84
- g.warning(n("您还未选择要删除的数据"));
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 = Y.value.join(",");
88
- se(l);
89
- }, re = (l, e) => (l.forEach((t) => {
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(re([a], e + 1)[0]);
103
+ t.children.push(ce([a], e + 1)[0]);
92
104
  }));
93
- }), l), Me = async () => {
105
+ }), l), Se = async () => {
94
106
  const l = {};
95
- return await k.post("/rolePermissionsSetting/getRoleMenus", { roleId: R.value }).then((e) => {
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
- }, de = (l, e) => {
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 c = de(a.children, e);
107
- c === a.children.length ? (a.checked = !0, a.indeterminate = !1) : c > 0 && c < a.children.length ? (a.indeterminate = !0, a.checked = !1) : (a.checked = !1, a.indeterminate = !1), a.checked && D.value.push(a.adMenuId), a.checked && w.value.push(a.adMenuId);
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
- }, Ee = async () => {
112
- W.value = !0, w.value = [], D.value = [];
113
- const l = await Me();
114
- k.post("/rolePermissionsSetting/getMenuList", {}).then((e) => {
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(re([a], 0)[0]);
119
- }), de(t, l), ce(t), ae.value = t, W.value = !1, ke(() => {
120
- var c;
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) => !D.value.includes(p)
134
+ (p) => !N.value.includes(p)
123
135
  );
124
- (c = F.value) == null || c.setCheckedKeys(a);
136
+ (i = W.value) == null || i.setCheckedKeys(a);
125
137
  });
126
138
  }
127
139
  }).catch((e) => {
128
- console.error("获取菜单列表失败:", e), g.error(n("获取菜单列表失败")), W.value = !1;
140
+ console.error("获取菜单列表失败:", e), g.error(o("获取菜单列表失败")), B.value = !1;
129
141
  });
130
- }, ce = (l) => {
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 && ce(e.children);
144
+ e.status === -1 && (e.title = "[已禁用] " + e.title, e.disabled = !0), e.children && e.children.length > 0 && he(e.children);
133
145
  });
134
- }, De = (l) => {
135
- R.value = l.adRoleId, V.value = "分配 " + l.name + " 的菜单权限", Ee(), k.post("/roleController/getRoleWindowButton", { roleId: R.value }).then((e) => {
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
- }), E.value = t;
152
+ }), M.value = t;
141
153
  }
142
154
  }), P.value = !0;
143
- }, Ne = (l) => {
144
- l && ($.value = l.sysWindowId, k.post("/rolePermissionsSetting/getMenuWindowButton", { windowId: $.value }).then((e) => {
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 c = [], p = {};
148
- a.forEach((_) => {
149
- if (_.TYPE === "QY") {
159
+ const i = [], p = {};
160
+ a.forEach((k) => {
161
+ if (k.TYPE === "QY") {
150
162
  const v = {
151
- ID: _.ID,
152
- NAME: _.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
- c.push(v), p[_.ID] = [];
170
+ i.push(v), p[k.ID] = [];
159
171
  } else
160
- p[_.PARENT_ID] && p[_.PARENT_ID].push(_);
161
- }), c.forEach((_, v) => {
162
- c[v].childs = p[_.ID] || [];
163
- const T = E.value[$.value] || [], j = [];
164
- let U = 0;
165
- c[v].childs.forEach((B) => {
166
- T.includes(B.ID) && (j.push(B.ID), U++);
167
- }), U === c[v].childs.length ? (c[v].checkAll = !0, c[v].indeterminate = !1) : U > 0 ? (c[v].checkAll = !1, c[v].indeterminate = !0) : (c[v].checkAll = !1, c[v].indeterminate = !1), c[v].checkChilds = j;
168
- }), b.value = c;
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
- }, Se = () => {
185
+ }, Be = () => {
174
186
  S && clearTimeout(S), S = window.setTimeout(() => {
175
187
  var l, e;
176
- w.value = ((l = F.value) == null ? void 0 : l.getCheckedKeys(!0)) || [], D.value = ((e = F.value) == null ? void 0 : e.getHalfCheckedKeys(!0)) || [];
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
- }, Te = (l, e) => {
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, ie(), b.value[e] = l;
181
- }, Pe = (l, e) => {
182
- const t = { ...b.value[e] };
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, c = 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) && c++;
187
- c === t.childs.length ? a = 2 : a = 1, a === 1 ? (t.checkAll = !1, t.indeterminate = c !== 0) : a === 2 && (t.checkAll = !0, t.indeterminate = !1);
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, b.value[e] = t, ie();
191
- }, ie = () => {
202
+ t.checkChilds = l, C.value[e] = t, fe();
203
+ }, fe = () => {
192
204
  const l = /* @__PURE__ */ new Set();
193
- b.value.forEach((e) => {
205
+ C.value.forEach((e) => {
194
206
  e.checkChilds.forEach((t) => {
195
207
  l.add(t);
196
208
  });
197
- }), E.value[$.value] = Array.from(l);
198
- }, ze = () => {
199
- Q.value = !0;
200
- const l = w.value.concat(D.value).join(","), e = {};
201
- Object.keys(E.value).forEach((t) => {
202
- e["W_" + t] = E.value[t];
203
- }), k.post("/rolePermissionsSetting/setMenus", {
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
- Q.value = !1;
224
+ G.value = !1;
213
225
  });
214
226
  }, H = () => {
215
- w.value = [], D.value = [], E.value = {}, b.value = [], P.value = !1;
216
- }, ue = (l, e, t) => {
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" && N.value.push(l.adOrgId), a.level = e, l._childs && l._childs.length > 0 && l._childs.forEach((c) => {
219
- a.children || (a.children = []), a.children.push(ue(c, e + 1, t));
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
- }, Ue = async () => {
233
+ }, $e = async () => {
222
234
  const l = {};
223
- return await k.post("/roleController/getRoleOrgAccess", { roleId: R.value }).then((e) => {
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
- }, Be = async (l) => {
242
+ }, Ye = async (l) => {
231
243
  R.value = l.adRoleId, V.value = "分配 " + l.name + " 的组织机构权限";
232
- const e = await Ue();
233
- k.post("/orgController/getUserOrgTree", {}).then((t) => {
244
+ const e = await $e();
245
+ _.post("/orgController/getUserOrgTree", {}).then((t) => {
234
246
  if (t.data.result) {
235
247
  const a = [];
236
- N.value = [], t.data.list.forEach((c) => {
237
- a.push(ue(c, 0, e));
238
- }), oe.value = a, ke(() => {
239
- var c;
240
- (c = K.value) == null || c.setCheckedKeys(N.value);
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
- }), z.value = !0;
246
- }, We = () => {
257
+ }), U.value = !0;
258
+ }, je = () => {
247
259
  S && clearTimeout(S), S = window.setTimeout(() => {
248
260
  var l;
249
- N.value = ((l = K.value) == null ? void 0 : l.getCheckedKeys()) || [];
261
+ D.value = ((l = K.value) == null ? void 0 : l.getCheckedKeys()) || [];
250
262
  }, 300);
251
- }, Fe = () => {
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
- }), k.post("/roleController/saveRoleOrgAccess", {
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), z.value = !1) : g.error(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 Qe(() => {
266
- Ie();
277
+ return ll(() => {
278
+ Ve();
267
279
  }), (l, e) => {
268
- const t = h("el-input"), a = h("el-button"), c = h("el-popconfirm"), p = h("el-table-column"), _ = h("el-table"), v = h("el-pagination"), T = h("el-form-item"), j = h("el-switch"), U = h("el-form"), B = h("el-dialog"), fe = h("el-tree"), he = h("el-col"), pe = h("el-checkbox"), $e = h("el-checkbox-group"), Ke = h("el-card"), Ye = h("el-empty"), je = h("el-row"), Le = h("el-drawer"), qe = h("el-alert"), me = He("loading");
269
- return O(), X("div", el, [
270
- C("div", ll, [
271
- C("div", tl, [
272
- C("div", al, f(r(n)("角色名称")), 1),
273
- o(t, {
274
- modelValue: J.value,
275
- "onUpdate:modelValue": e[0] || (e[0] = (s) => J.value = 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(n)("输入关键词搜索"),
289
+ placeholder: r(o)("输入关键词搜索"),
278
290
  style: { width: "300px", "margin-left": "12px" },
279
291
  clearable: ""
280
292
  }, null, 8, ["modelValue", "placeholder"])
281
293
  ]),
282
- C("div", ol, [
283
- C("div", nl, f(r(n)("角色管理")), 1),
284
- o(a, {
285
- onClick: be,
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
- o(Z, {
301
+ n(ee, {
290
302
  fontFamily: "yhicon",
291
303
  prefix: "yh-",
292
304
  name: "plus"
293
305
  }),
294
- m(" " + f(r(n)("添加角色")), 1)
306
+ m(" " + f(r(o)("添加角色")), 1)
295
307
  ]),
296
308
  _: 1
297
309
  }),
298
- o(c, {
299
- title: r(n)("确定要删除所选的角色吗?"),
300
- "ok-text": r(n)("删除"),
301
- "cancel-text": r(n)("取消"),
302
- onConfirm: Oe,
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
- o(a, null, {
318
+ n(a, null, {
307
319
  default: d(() => [
308
- o(Z, {
320
+ n(ee, {
309
321
  fontFamily: "yhicon",
310
322
  prefix: "yh-",
311
323
  name: "delete"
312
324
  }),
313
- m(" " + f(r(n)("批量删除")), 1)
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
- o(a, {
332
+ n(a, {
321
333
  onClick: x,
322
334
  style: { "margin-left": "12px" }
323
335
  }, {
324
336
  default: d(() => [
325
- o(Z, {
337
+ n(ee, {
326
338
  fontFamily: "yhicon",
327
339
  prefix: "yh-",
328
340
  name: "refresh"
329
341
  }),
330
- m(" " + f(r(n)("刷新")), 1)
342
+ m(" " + f(r(o)("刷新")), 1)
331
343
  ]),
332
344
  _: 1
333
345
  })
334
346
  ]),
335
- ge((O(), L(_, {
347
+ ye((T(), j(k, {
336
348
  "row-key": "adRoleId",
337
- data: ee.value,
349
+ data: le.value,
338
350
  ref_key: "tableRef",
339
- ref: le,
351
+ ref: te,
340
352
  "highlight-current-row": "",
341
- onSelectionChange: we,
353
+ onSelectionChange: Me,
342
354
  "header-cell-style": { background: "#f8f8f8", color: "#606266", fontSize: "13px" },
343
355
  stripe: ""
344
356
  }, {
345
357
  default: d(() => [
346
- o(p, {
358
+ n(p, {
347
359
  type: "selection",
348
360
  width: "50",
349
361
  align: "center"
350
362
  }),
351
- o(p, {
352
- label: r(n)("#"),
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
- o(p, {
361
- label: r(n)("所属机构"),
372
+ n(p, {
373
+ label: r(o)("所属机构"),
362
374
  "min-width": "150",
363
375
  prop: "orgName"
364
376
  }, null, 8, ["label"]),
365
- o(p, {
366
- label: r(n)("角色名称"),
377
+ n(p, {
378
+ label: r(o)("角色名称"),
367
379
  "min-width": "300",
368
380
  prop: "name"
369
381
  }, null, 8, ["label"]),
370
- o(p, {
371
- label: r(n)("角色管理员"),
382
+ n(p, {
383
+ label: r(o)("角色管理员"),
372
384
  "min-width": "150",
373
385
  prop: "isAdmin"
374
386
  }, null, 8, ["label"]),
375
- o(p, {
376
- label: r(n)("备注"),
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
- o(p, {
398
+ n(p, {
381
399
  width: "350",
382
- label: r(n)("操作")
400
+ label: r(o)("操作")
383
401
  }, {
384
402
  default: d(({ row: s }) => [
385
- o(a, {
403
+ n(a, {
386
404
  size: "small",
387
405
  type: "primary",
388
- onClick: (A) => De(s)
406
+ onClick: (O) => Pe(s)
389
407
  }, {
390
408
  default: d(() => [
391
- m(f(r(n)("菜单权限")), 1)
409
+ m(f(r(o)("菜单权限")), 1)
392
410
  ]),
393
411
  _: 1
394
412
  }, 8, ["onClick"]),
395
- o(a, {
413
+ n(a, {
396
414
  size: "small",
397
415
  type: "success",
398
- onClick: (A) => Be(s)
416
+ onClick: (O) => Ye(s)
399
417
  }, {
400
418
  default: d(() => [
401
- m(f(r(n)("角色机构")), 1)
419
+ m(f(r(o)("角色机构")), 1)
402
420
  ]),
403
421
  _: 1
404
422
  }, 8, ["onClick"]),
405
- o(a, {
423
+ n(a, {
406
424
  size: "small",
407
425
  type: "info",
408
- onClick: (A) => xe(s)
426
+ onClick: (O) => Oe(s)
409
427
  }, {
410
428
  default: d(() => [
411
- m(f(r(n)("编辑")), 1)
429
+ m(f(r(o)("编辑")), 1)
412
430
  ]),
413
431
  _: 1
414
432
  }, 8, ["onClick"]),
415
- o(c, {
416
- title: r(n)("你确定要删除吗"),
417
- "ok-text": r(n)("确定"),
418
- "cancel-text": r(n)("取消"),
419
- onConfirm: (A) => Re(s)
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
- o(a, {
440
+ n(a, {
423
441
  title: "删除",
424
442
  size: "small",
425
443
  type: "danger"
426
444
  }, {
427
445
  default: d(() => [
428
- m(f(r(n)("删除")), 1)
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
- [me, q.value]
459
+ [ke, L.value]
442
460
  ]),
443
- o(v, {
444
- "current-page": I.currentPage,
445
- "onUpdate:currentPage": e[1] || (e[1] = (s) => I.currentPage = s),
446
- "page-size": I.pageSize,
447
- "onUpdate:pageSize": e[2] || (e[2] = (s) => I.pageSize = 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: I.total,
468
+ total: b.total,
451
469
  onSizeChange: x,
452
470
  onCurrentChange: x
453
471
  }, null, 8, ["current-page", "page-size", "total"]),
454
- o(B, {
472
+ n(me, {
455
473
  title: V.value,
456
- modelValue: M.value,
457
- "onUpdate:modelValue": e[7] || (e[7] = (s) => M.value = s),
474
+ modelValue: E.value,
475
+ "onUpdate:modelValue": e[8] || (e[8] = (s) => E.value = s),
458
476
  "close-on-click-modal": !1,
459
- onClose: ne,
477
+ onClose: de,
460
478
  width: 500
461
479
  }, {
462
480
  footer: d(() => [
463
- o(a, {
481
+ n(a, {
464
482
  text: "",
465
- onClick: ne
483
+ onClick: de
466
484
  }, {
467
485
  default: d(() => [
468
- m(f(r(n)("取消")), 1)
486
+ m(f(r(o)("取消")), 1)
469
487
  ]),
470
488
  _: 1
471
489
  }),
472
- o(a, {
490
+ n(a, {
473
491
  type: "primary",
474
- loading: G.value,
475
- onClick: Ve
492
+ loading: J.value,
493
+ onClick: Te
476
494
  }, {
477
495
  default: d(() => [
478
- m(f(r(n)("提交")), 1)
496
+ m(f(r(o)("提交")), 1)
479
497
  ]),
480
498
  _: 1
481
499
  }, 8, ["loading"])
482
500
  ]),
483
501
  default: d(() => [
484
- o(U, {
502
+ n(Y, {
485
503
  ref_key: "roleFormRef",
486
- ref: te,
487
- model: u.value,
504
+ ref: ae,
505
+ model: c.value,
488
506
  "label-width": 100,
489
- rules: Ce
507
+ rules: Ae
490
508
  }, {
491
509
  default: d(() => [
492
- o(T, {
493
- label: r(n)("组织机构"),
494
- prop: "ad_org_id"
510
+ n(A, {
511
+ label: r(o)("组织机构"),
512
+ prop: "adOrgId"
495
513
  }, {
496
514
  default: d(() => [
497
- o(Ze, {
498
- dict: "ad_org_id",
499
- url: "/orgController/getGroupOrgs",
500
- modelValue: u.value.adOrgId,
501
- "onUpdate:modelValue": e[3] || (e[3] = (s) => u.value.adOrgId = s),
502
- placeholder: r(n)("请选择或输入搜索"),
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
- }, null, 8, ["modelValue", "placeholder"])
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
- o(T, {
510
- label: r(n)("角色名称"),
530
+ n(A, {
531
+ label: r(o)("角色名称"),
511
532
  prop: "name"
512
533
  }, {
513
534
  default: d(() => [
514
- o(t, {
515
- modelValue: u.value.name,
516
- "onUpdate:modelValue": e[4] || (e[4] = (s) => u.value.name = s),
517
- placeholder: r(n)("请输入")
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
- o(T, { label: "角色管理员" }, {
543
+ n(A, {
544
+ label: r(o)("角色管理员")
545
+ }, {
523
546
  default: d(() => [
524
- o(j, {
525
- modelValue: u.value.isAdmin,
526
- "onUpdate:modelValue": e[5] || (e[5] = (s) => u.value.isAdmin = 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
- o(T, {
535
- label: r(n)("备注"),
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
- o(t, {
540
- modelValue: u.value.description,
541
- "onUpdate:modelValue": e[6] || (e[6] = (s) => u.value.description = s)
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
- o(Le, {
589
+ n(He, {
553
590
  title: V.value,
554
591
  modelValue: P.value,
555
- "onUpdate:modelValue": e[8] || (e[8] = (s) => P.value = s),
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
- o(a, {
598
+ n(a, {
562
599
  type: "primary",
563
- loading: Q.value,
564
- onClick: ze
600
+ loading: G.value,
601
+ onClick: Ke
565
602
  }, {
566
603
  default: d(() => [
567
- m(f(r(n)("提交")), 1)
604
+ m(f(r(o)("提交")), 1)
568
605
  ]),
569
606
  _: 1
570
607
  }, 8, ["loading"]),
571
- o(a, {
608
+ n(a, {
572
609
  text: "",
573
610
  onClick: H
574
611
  }, {
575
612
  default: d(() => [
576
- m(f(r(n)("取消")), 1)
613
+ m(f(r(o)("取消")), 1)
577
614
  ]),
578
615
  _: 1
579
616
  })
580
617
  ]),
581
618
  default: d(() => [
582
- o(je, { gap: 10 }, {
619
+ n(Ge, { gap: 10 }, {
583
620
  default: d(() => [
584
- o(he, {
621
+ n(ve, {
585
622
  span: 12,
586
623
  style: { overflow: "auto", height: "100%" }
587
624
  }, {
588
625
  default: d(() => [
589
- ge(o(fe, {
626
+ ye(n(ge, {
590
627
  ref_key: "treeRef",
591
- ref: F,
592
- data: ae.value,
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: Ne,
601
- onCheckChange: Se
637
+ onCurrentChange: Ue,
638
+ onCheckChange: Be
602
639
  }, null, 8, ["data"]), [
603
- [me, W.value]
640
+ [ke, B.value]
604
641
  ])
605
642
  ]),
606
643
  _: 1
607
644
  }),
608
- o(he, {
645
+ n(ve, {
609
646
  span: 12,
610
647
  style: { overflow: "auto", height: "100%" }
611
648
  }, {
612
649
  default: d(() => [
613
- C("div", sl, [
614
- C("p", rl, f(r(n)("按钮权限")), 1)
650
+ I("div", cl, [
651
+ I("p", ul, f(r(o)("按钮权限")), 1)
615
652
  ]),
616
- C("div", dl, [
617
- (O(!0), X(ve, null, _e(b.value, (s, A) => (O(), L(Ke, {
618
- key: A,
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
- o(pe, {
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) => Te(s, A)
666
+ onChange: (y) => We(s, O)
630
667
  }, {
631
668
  default: d(() => [
632
- m(f(r(n)("全选")), 1)
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
- o($e, {
675
+ n(qe, {
639
676
  modelValue: s.checkChilds,
640
677
  "onUpdate:modelValue": (y) => s.checkChilds = y,
641
- onChange: (y) => Pe(y, A)
678
+ onChange: (y) => Fe(y, O)
642
679
  }, {
643
680
  default: d(() => [
644
- (O(!0), X(ve, null, _e(s.childs, (y) => (O(), L(pe, {
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
- b.value.length === 0 ? (O(), L(Ye, {
696
+ C.value.length === 0 ? (T(), j(Qe, {
660
697
  key: 0,
661
- description: r(n)("暂无按钮权限数据")
662
- }, null, 8, ["description"])) : Xe("", !0)
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
- o(B, {
710
+ n(me, {
674
711
  title: V.value,
675
- modelValue: z.value,
676
- "onUpdate:modelValue": e[11] || (e[11] = (s) => z.value = s),
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
- o(a, {
719
+ n(a, {
683
720
  type: "primary",
684
- loading: ye.value,
685
- onClick: Fe
721
+ loading: xe.value,
722
+ onClick: Le
686
723
  }, {
687
724
  default: d(() => [
688
- m(f(r(n)("提交")), 1)
725
+ m(f(r(o)("提交")), 1)
689
726
  ]),
690
727
  _: 1
691
728
  }, 8, ["loading"]),
692
- o(a, {
729
+ n(a, {
693
730
  text: "",
694
- onClick: e[10] || (e[10] = (s) => z.value = !1)
731
+ onClick: e[11] || (e[11] = (s) => U.value = !1)
695
732
  }, {
696
733
  default: d(() => [
697
- m(f(r(n)("取消")), 1)
734
+ m(f(r(o)("取消")), 1)
698
735
  ]),
699
736
  _: 1
700
737
  })
701
738
  ]),
702
739
  default: d(() => [
703
- o(qe, {
740
+ n(Xe, {
704
741
  "show-icon": "",
705
- title: r(n)("请勾选下方组织机构,选中复选框为角色管理员")
742
+ title: r(o)("请勾选下方组织机构,选中复选框为角色管理员")
706
743
  }, null, 8, ["title"]),
707
- C("div", cl, [
708
- C("div", il, [
709
- o(fe, {
744
+ I("div", fl, [
745
+ I("div", pl, [
746
+ n(ge, {
710
747
  ref_key: "depTreeRef",
711
748
  ref: K,
712
- data: oe.value,
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: N.value,
722
- "onUpdate:modelValue": e[9] || (e[9] = (s) => N.value = s),
723
- onCheckChange: We
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
- vl as default
773
+ yl as default
737
774
  };
738
- //# sourceMappingURL=RoleManage-Bh8z1PtL.js.map
775
+ //# sourceMappingURL=RoleManage-DOjU1Y69.js.map