@pubinfo/module-rbac 2.0.0-beta.10 → 2.0.0-beta.13

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 (82) hide show
  1. package/dist/{animation_item.vue_vue_type_script_setup_true_lang-BQvmwheq.js → animation_item.vue_vue_type_script_setup_true_lang-BlABHm3g.js} +281 -281
  2. package/dist/cloneDeep-T2g9unQR.js +8 -0
  3. package/dist/components/OrgUserSelector/index.d.ts +3 -2
  4. package/dist/{gangweijiekou-BxJq_m0o.js → gangweijiekou-CwKBZZeP.js} +1 -1
  5. package/dist/{index-Cr17VOfm.js → index-47WJIE75.js} +4 -5
  6. package/dist/{index-U8kjKY6p.js → index-B-1Jsa5i.js} +5 -6
  7. package/dist/{index-DNf0NPrD.js → index-B9SnAiRA.js} +3 -3
  8. package/dist/{index-zh8PZXw2.js → index-BJjDMYx8.js} +16 -18
  9. package/dist/index-BmbYHtUo.js +465 -0
  10. package/dist/{index-s32GbmsJ.js → index-Buo7eb6B.js} +3 -3
  11. package/dist/{index-gmUZUdNl.js → index-CIjaZglK.js} +7 -8
  12. package/dist/{index-BhcAk-IH.js → index-CKLCWwPt.js} +1 -1
  13. package/dist/{index-yEpViVkx.js → index-CQ3vb_jT.js} +10 -11
  14. package/dist/{index-CFPhIFyG.js → index-CQNzD8gU.js} +2 -2
  15. package/dist/index-CSRC9-GH.js +7089 -0
  16. package/dist/{index-CTiFd9M0.js → index-CTrsWwwV.js} +3 -3
  17. package/dist/{index-BS45K9vK.js → index-CcmcknCO.js} +5 -6
  18. package/dist/{index-KboUdpTh.js → index-CdodWDJE.js} +12 -15
  19. package/dist/{index-a0E9oj3q.js → index-Cvwv0Juq.js} +12 -13
  20. package/dist/{index-Bl4v-7On.js → index-D6bWQnQN.js} +2 -2
  21. package/dist/{index-j_ln_NSt.js → index-D9_ODpMq.js} +10 -11
  22. package/dist/{index-UZeQsp70.js → index-DIjgGlG6.js} +3 -3
  23. package/dist/{index-BleenJqT.js → index-DWR59p3f.js} +3 -3
  24. package/dist/{index-Bbsiwecf.js → index-DvpacIa_.js} +33 -38
  25. package/dist/{index-D0yB_8b0.js → index-DwECKZP3.js} +3 -3
  26. package/dist/{index-CsHj-xDw.js → index-EoZZJdHB.js} +2 -2
  27. package/dist/{index-CLxqmFPw.js → index-f9JH7TH1.js} +3 -3
  28. package/dist/{index-Cej8u1qo.js → index-j_xONibm.js} +10 -11
  29. package/dist/{index-CLSeuhTv.js → index-r44NDBFT.js} +13 -14
  30. package/dist/index.d.ts +1 -0
  31. package/dist/index.js +7 -3
  32. package/dist/{itemlist-xAbIKRVj.js → itemlist-CKM1UvLl.js} +9 -10
  33. package/dist/{jiaosejiekou-BfY4h7uI.js → jiaosejiekou-D8-56Dhc.js} +1 -1
  34. package/dist/{login_history-CuQv9Iw3.js → login_history-yZSmHn0C.js} +1 -1
  35. package/dist/{operate_history-CGP-1Xy2.js → operate_history-tJ1NKXS0.js} +10 -10
  36. package/dist/{pubJiaosezukongzhiqi-CvYfc8Uz.js → pubJiaosezukongzhiqi-DmA3aBGv.js} +1 -1
  37. package/dist/{setItem-DkOvmWXP.js → setItem-BbFsEYsU.js} +1 -1
  38. package/dist/{shujuquanxianzhubiaokongzhiqi-DyNgf1y6.js → shujuquanxianzhubiaokongzhiqi-D378zzpa.js} +5 -5
  39. package/dist/style.css +1 -1
  40. package/dist/{useAppAndResource-D_b19V4t.js → useAppAndResource-BMsYsunz.js} +2 -2
  41. package/dist/{xitongpeizhifuwu-C1Vm-W1B.js → xitongpeizhifuwu-DDQ84VjN.js} +1 -1
  42. package/dist/{zidianfuwu-yCWHhOfO.js → zidianfuwu-CYqN5-ya.js} +1 -1
  43. package/dist/{ziyuanjiekou-DhrAbneq.js → ziyuanjiekou-Bv8jxVnB.js} +1 -1
  44. package/dist/{zuzhijiaosebiaokongzhiqi-B1g74RqL.js → zuzhijiaosebiaokongzhiqi-L6qeDk5-.js} +1 -1
  45. package/package.json +7 -8
  46. package/src/components/OrgUserSelector/index.ts +5 -0
  47. package/src/index.ts +1 -0
  48. package/dist/OrgSelector.vue_vue_type_script_setup_true_lang-BcL0IFuA.js +0 -567
  49. package/dist/_baseClone-CQ44TFeq.js +0 -191
  50. package/dist/cloneDeep-BI4WNBQ9.js +0 -8
  51. package/dist/index-DFR8dd2B.js +0 -785
  52. package/dist/index-Dm4sOX43.js +0 -27
  53. package/dist/index-MtXfNGqS.js +0 -1246
  54. package/dist/request-DQLgc7lT.js +0 -5
  55. package/dist/zuzhijiekou-PeZuFtCO.js +0 -85
  56. package/src/assets/icons/403.svg +0 -1
  57. package/src/assets/icons/403_dark.svg +0 -1
  58. package/src/assets/icons/404.svg +0 -1
  59. package/src/assets/icons/404_dark.svg +0 -1
  60. package/src/assets/icons/browser-360.svg +0 -1
  61. package/src/assets/icons/browser-chrome.svg +0 -1
  62. package/src/assets/icons/browser-edge.svg +0 -1
  63. package/src/assets/icons/browser-ie.svg +0 -1
  64. package/src/assets/icons/browser-other.svg +0 -1
  65. package/src/assets/icons/browser-qq.svg +0 -1
  66. package/src/assets/icons/browser-safari.svg +0 -1
  67. package/src/assets/icons/browser-uc.svg +0 -1
  68. package/src/assets/icons/change-org.svg +0 -1
  69. package/src/assets/icons/empty-data.svg +0 -1
  70. package/src/assets/icons/favorites.svg +0 -1
  71. package/src/assets/icons/image-load-fail.svg +0 -1
  72. package/src/assets/icons/logo-sig.svg +0 -1
  73. package/src/assets/icons/logo.svg +0 -1
  74. package/src/assets/icons/mima.svg +0 -1
  75. package/src/assets/icons/process-management.svg +0 -1
  76. package/src/assets/icons/project-management.svg +0 -1
  77. package/src/assets/icons/rbac.svg +0 -1
  78. package/src/assets/icons/test.svg +0 -1
  79. package/src/assets/icons/toolbar-collapse.svg +0 -1
  80. package/src/assets/icons/tree_icon.svg +0 -1
  81. package/src/assets/icons/tree_icon_checked.svg +0 -1
  82. package/src/assets/icons/workbench.svg +0 -1
@@ -2,32 +2,27 @@ import { Card as ue, Spin as ge, Empty as Re, Tree as Oe, Modal as Pe, Input as
2
2
  import { PubinfoIcon as fe, useAuth as Ae } from "pubinfo";
3
3
  import { SearchOutlined as Fe, PlusCircleOutlined as Ve } from "@ant-design/icons-vue";
4
4
  import { defineComponent as Q, ref as $, onMounted as ye, createBlock as R, openBlock as l, withCtx as n, createVNode as t, unref as a, mergeProps as ze, createElementVNode as w, toDisplayString as U, mergeModels as Me, useModel as ke, watch as se, isRef as ee, createElementBlock as S, createTextVNode as j, Fragment as Z, renderList as K, withDirectives as X, vShow as je, createCommentVNode as H, normalizeStyle as re, nextTick as Ne, reactive as Be, resolveDirective as Ge, isVNode as qe } from "vue";
5
- import "./request-DQLgc7lT.js";
6
- import { b as We } from "./zuzhijiekou-PeZuFtCO.js";
7
- import { u as J } from "./index-Dm4sOX43.js";
5
+ import { j as We, k as Ze, l as He, m as Ke, n as Xe, o as Je, q as Qe, r as Ye, u as J, c as et, s as tt, _ as at, t as nt, v as ot, w as lt, x as st, y as rt, z as it } from "./index-CSRC9-GH.js";
8
6
  import { _ as _e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- import { a as Ze, _ as He, g as Ke, b as Xe, c as Je, d as Qe, e as Ye, f as et } from "./OrgSelector.vue_vue_type_script_setup_true_lang-BcL0IFuA.js";
10
- import { ProTable as tt } from "@pubinfo/pro-components";
11
- import { theme as we, message as ne, Form as at, Modal as ie, Popover as nt, Space as ot, Badge as oe } from "ant-design-vue";
12
- import { g as lt, c as Ie } from "./pubJiaosezukongzhiqi-CvYfc8Uz.js";
13
- import { c as st, e as rt } from "./shujuquanxianzhubiaokongzhiqi-DyNgf1y6.js";
14
- import { e as it } from "./jiaosejiekou-BfY4h7uI.js";
15
- import { g as ut } from "./gangweijiekou-BxJq_m0o.js";
16
- import { useRequest as dt } from "alova/client";
17
- import { g as ct, b as pt } from "./_baseClone-CQ44TFeq.js";
18
- import { i as mt, a as ft, b as _t, c as gt, d as vt, e as bt } from "./index-MtXfNGqS.js";
19
- import { c as xt } from "./cloneDeep-BI4WNBQ9.js";
7
+ import { ProTable as ut } from "@pubinfo/pro-components";
8
+ import { theme as we, message as ne, Form as dt, Modal as ie, Popover as ct, Space as pt, Badge as oe } from "ant-design-vue";
9
+ import { g as mt, c as Ie } from "./pubJiaosezukongzhiqi-DmA3aBGv.js";
10
+ import { c as ft, e as _t } from "./shujuquanxianzhubiaokongzhiqi-D378zzpa.js";
11
+ import { e as gt } from "./jiaosejiekou-D8-56Dhc.js";
12
+ import { g as vt } from "./gangweijiekou-CwKBZZeP.js";
13
+ import { useRequest as bt } from "alova/client";
14
+ import { c as xt } from "./cloneDeep-T2g9unQR.js";
20
15
  var ht = "[object Map]", yt = "[object Set]", kt = Object.prototype, wt = kt.hasOwnProperty;
21
16
  function le(p) {
22
17
  if (p == null)
23
18
  return !0;
24
- if (mt(p) && (ft(p) || typeof p == "string" || typeof p.splice == "function" || _t(p) || gt(p) || vt(p)))
19
+ if (We(p) && (Ze(p) || typeof p == "string" || typeof p.splice == "function" || He(p) || Ke(p) || Xe(p)))
25
20
  return !p.length;
26
- var E = ct(p);
21
+ var E = Je(p);
27
22
  if (E == ht || E == yt)
28
23
  return !p.size;
29
- if (bt(p))
30
- return !pt(p).length;
24
+ if (Qe(p))
25
+ return !Ye(p).length;
31
26
  for (var A in p)
32
27
  if (wt.call(p, A))
33
28
  return !1;
@@ -48,7 +43,7 @@ const It = { class: "flex w-full items-center overflow-hidden" }, Rt = ["title"]
48
43
  s();
49
44
  return;
50
45
  }
51
- z(!0), We(
46
+ z(!0), et(
52
47
  {
53
48
  parentId: (y = _ == null ? void 0 : _.dataRef) == null ? void 0 : y.id,
54
49
  enable: !0
@@ -150,10 +145,10 @@ const It = { class: "flex w-full items-center overflow-hidden" }, Rt = ["title"]
150
145
  async function h(r) {
151
146
  var e;
152
147
  if (z.value = !0, r) {
153
- const d = await lt({ id: r });
148
+ const d = await mt({ id: r });
154
149
  z.value = !1, x.value = ((e = d.data) == null ? void 0 : e.roles) || [];
155
150
  } else {
156
- const d = await it();
151
+ const d = await gt();
157
152
  z.value = !1, _.value = d.data || [], x.value = [..._.value].filter((o) => [...d.data || []].some((c) => c.id === o.id));
158
153
  }
159
154
  }
@@ -413,14 +408,14 @@ const It = { class: "flex w-full items-center overflow-hidden" }, Rt = ["title"]
413
408
  authList: []
414
409
  }), x = $([]), I = $([]);
415
410
  function b() {
416
- st().then((o) => {
411
+ ft().then((o) => {
417
412
  o.data && o.data.length && (I.value = o.data);
418
413
  }), Ie({ name: "" }).then((o) => {
419
414
  o.data && o.data.length && (x.value = o.data);
420
415
  });
421
416
  }
422
417
  function u() {
423
- F.userId && (y.value.authList = [], rt({ userId: F.userId }).then((o) => {
418
+ F.userId && (y.value.authList = [], _t({ userId: F.userId }).then((o) => {
424
419
  o.data && o.data.userOrgPermissionBos && o.data.userOrgPermissionBos.length && (y.value.authList = o.data.userOrgPermissionBos.map((c) => {
425
420
  const { orgId: f = "", orgName: P = "", main: V = !1, dataPermissionsList: C, roleList: G, orgRoleList: M } = c, g = {
426
421
  userId: F.userId,
@@ -455,7 +450,7 @@ const It = { class: "flex w-full items-center overflow-hidden" }, Rt = ["title"]
455
450
  dataPermissionIds: g
456
451
  };
457
452
  });
458
- Ze(c).then((f) => {
453
+ tt(c).then((f) => {
459
454
  f.success && (ne.success("授权成功"), z("submit"), N());
460
455
  }).finally(() => {
461
456
  v(!1);
@@ -784,12 +779,12 @@ const Zt = { class: "space-y-2" }, Ht = { class: "flex items-center space-x-1" }
784
779
  },
785
780
  emits: ["update:modelValue"],
786
781
  setup(p) {
787
- const E = ke(p, "modelValue"), { token: A } = we.useToken(), { onFieldChange: F } = at.useInjectFormItemContext();
782
+ const E = ke(p, "modelValue"), { token: A } = we.useToken(), { onFieldChange: F } = dt.useInjectFormItemContext();
788
783
  se(() => E.value, () => {
789
784
  F();
790
785
  }, { deep: !0 });
791
- const { data: z } = dt(
792
- (v) => ut(v, {
786
+ const { data: z } = bt(
787
+ (v) => vt(v, {
793
788
  transform(m) {
794
789
  return m.data ?? [];
795
790
  }
@@ -827,7 +822,7 @@ const Zt = { class: "space-y-2" }, Ht = { class: "flex items-center space-x-1" }
827
822
  });
828
823
  }
829
824
  return (v, m) => {
830
- const y = fe, x = te, I = ce, b = He, u = pe, T = de, N = he, B = ue;
825
+ const y = fe, x = te, I = ce, b = at, u = pe, T = de, N = he, B = ue;
831
826
  return l(), S("div", Zt, [
832
827
  (l(!0), S(
833
828
  Z,
@@ -1049,7 +1044,7 @@ const Zt = { class: "space-y-2" }, Ht = { class: "flex items-center space-x-1" }
1049
1044
  async function u(r, e) {
1050
1045
  var d, o;
1051
1046
  if (v.title = r, s.value = xt(v.initData), s.value.userOrgList[0].orgId = (d = F.currentOrg) == null ? void 0 : d.orgId, s.value.userOrgList[0].orgName = (o = F.currentOrg) == null ? void 0 : o.orgName, D(!0), r === k.EDIT) {
1052
- const c = await Ke({ id: e == null ? void 0 : e.id });
1047
+ const c = await nt({ id: e == null ? void 0 : e.id });
1053
1048
  if (c.success) {
1054
1049
  const { userOrgList: f = [], ...P } = (c == null ? void 0 : c.data) ?? {};
1055
1050
  s.value = {
@@ -1090,7 +1085,7 @@ const Zt = { class: "space-y-2" }, Ht = { class: "flex items-center space-x-1" }
1090
1085
  postIds: V.map((C) => C.value)
1091
1086
  };
1092
1087
  })
1093
- }, c = v.title === k.ADD ? Xe(o) : Je(o);
1088
+ }, c = v.title === k.ADD ? ot(o) : lt(o);
1094
1089
  B(!0), c.then((f) => {
1095
1090
  f != null && f.success && (ne.success(`${v.title}成功!`), D(!1), z("submit"));
1096
1091
  }).finally(() => B(!1));
@@ -1329,7 +1324,7 @@ const Zt = { class: "space-y-2" }, Ht = { class: "flex items-center space-x-1" }
1329
1324
  function la(p) {
1330
1325
  return typeof p == "function" || Object.prototype.toString.call(p) === "[object Object]" && !qe(p);
1331
1326
  }
1332
- const Ra = /* @__PURE__ */ Q({
1327
+ const ha = /* @__PURE__ */ Q({
1333
1328
  name: "User",
1334
1329
  __name: "index",
1335
1330
  setup(p) {
@@ -1368,14 +1363,14 @@ const Ra = /* @__PURE__ */ Q({
1368
1363
  customRender({
1369
1364
  text: b
1370
1365
  }) {
1371
- return t(nt, {
1366
+ return t(ct, {
1372
1367
  placement: "topLeft",
1373
1368
  getPopupContainer: () => document.body
1374
1369
  }, {
1375
1370
  default: () => b == null ? void 0 : b.map((u) => u.orgName).join(","),
1376
1371
  content: () => {
1377
1372
  let u;
1378
- return t(ot, {
1373
+ return t(pt, {
1379
1374
  direction: "vertical"
1380
1375
  }, la(u = b.map((T) => t(oe, {
1381
1376
  status: T.main ? "processing" : "success",
@@ -1423,7 +1418,7 @@ const Ra = /* @__PURE__ */ Q({
1423
1418
  current: u,
1424
1419
  pageSize: T,
1425
1420
  ...N
1426
- } = b, B = await Qe({
1421
+ } = b, B = await st({
1427
1422
  currentPage: u,
1428
1423
  pageSize: T,
1429
1424
  orgId: (h = F.value) == null ? void 0 : h.orgId,
@@ -1465,7 +1460,7 @@ const Ra = /* @__PURE__ */ Q({
1465
1460
  title: "重置密码",
1466
1461
  content: "确定要重置该用户密码吗?",
1467
1462
  async onOk() {
1468
- (await et({
1463
+ (await it({
1469
1464
  userId: u == null ? void 0 : u.id
1470
1465
  })).success && ne.success("重置密码成功");
1471
1466
  }
@@ -1477,7 +1472,7 @@ const Ra = /* @__PURE__ */ Q({
1477
1472
  title: "删除",
1478
1473
  content: `确定要删除该用户吗?${N ? "该用户存在多个组织下,若只需移除组织,请在编辑中操作。" : ""}`,
1479
1474
  async onOk() {
1480
- (await Ye({
1475
+ (await rt({
1481
1476
  userId: u == null ? void 0 : u.id
1482
1477
  })).success && (ne.success("删除成功"), s());
1483
1478
  }
@@ -1512,7 +1507,7 @@ const Ra = /* @__PURE__ */ Q({
1512
1507
  flex: "auto",
1513
1508
  class: "h-full"
1514
1509
  }, {
1515
- default: n(() => [t(a(tt), {
1510
+ default: n(() => [t(a(ut), {
1516
1511
  ref_key: "tableRef",
1517
1512
  ref: D,
1518
1513
  "row-key": (c) => `${c.id}-${c.orgId}`,
@@ -1627,5 +1622,5 @@ const Ra = /* @__PURE__ */ Q({
1627
1622
  }
1628
1623
  });
1629
1624
  export {
1630
- Ra as default
1625
+ ha as default
1631
1626
  };