@pubinfo/module-rbac 2.0.0-beta.10 → 2.0.0-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{animation_item.vue_vue_type_script_setup_true_lang-BQvmwheq.js → animation_item.vue_vue_type_script_setup_true_lang-B6l7UFLh.js} +281 -281
- package/dist/cloneDeep-8vjgfynq.js +8 -0
- package/dist/components/OrgUserSelector/index.d.ts +3 -2
- package/dist/{gangweijiekou-BxJq_m0o.js → gangweijiekou-DoXatrli.js} +1 -1
- package/dist/{index-a0E9oj3q.js → index--VjqUCuf.js} +12 -13
- package/dist/{index-U8kjKY6p.js → index-437l5ijj.js} +5 -6
- package/dist/{index-Cr17VOfm.js → index-B7KC3boK.js} +4 -5
- package/dist/{index-Cej8u1qo.js → index-BGQ99J2l.js} +10 -11
- package/dist/{index-KboUdpTh.js → index-BTXg6pUc.js} +12 -15
- package/dist/{index-yEpViVkx.js → index-BWc4onKs.js} +10 -11
- package/dist/{index-MtXfNGqS.js → index-BX1CIagK.js} +6486 -562
- package/dist/{index-j_ln_NSt.js → index-BXq997wj.js} +10 -11
- package/dist/{index-s32GbmsJ.js → index-BamJFV9x.js} +3 -3
- package/dist/{index-D0yB_8b0.js → index-BpZlEjLH.js} +3 -3
- package/dist/{index-CTiFd9M0.js → index-BuIXR9Hh.js} +3 -3
- package/dist/{index-CsHj-xDw.js → index-Bugwk8cz.js} +2 -2
- package/dist/index-C-Pw2BFu.js +465 -0
- package/dist/{index-CLSeuhTv.js → index-C0HpWF9q.js} +13 -14
- package/dist/{index-CFPhIFyG.js → index-CEdx5DQj.js} +2 -2
- package/dist/{index-BhcAk-IH.js → index-CIAVtlta.js} +1 -1
- package/dist/{index-zh8PZXw2.js → index-CLKpGgxo.js} +16 -18
- package/dist/{index-Bl4v-7On.js → index-CLmuHwlB.js} +2 -2
- package/dist/{index-BleenJqT.js → index-D8wjctLy.js} +3 -3
- package/dist/{index-CLxqmFPw.js → index-DX_JxMJ5.js} +3 -3
- package/dist/{index-DNf0NPrD.js → index-McuDTIU1.js} +3 -3
- package/dist/{index-Bbsiwecf.js → index-QwehJ7aS.js} +33 -38
- package/dist/{index-BS45K9vK.js → index-ZlLpG1f9.js} +5 -6
- package/dist/{index-UZeQsp70.js → index-dJJh8i9i.js} +3 -3
- package/dist/{index-gmUZUdNl.js → index-uJt-0g6U.js} +7 -8
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -3
- package/dist/{itemlist-xAbIKRVj.js → itemlist-D7MJp8Qk.js} +9 -10
- package/dist/{jiaosejiekou-BfY4h7uI.js → jiaosejiekou-BCXAevvU.js} +1 -1
- package/dist/{login_history-CuQv9Iw3.js → login_history-DmfGnXsn.js} +1 -1
- package/dist/{operate_history-CGP-1Xy2.js → operate_history-BzX4YfHD.js} +10 -10
- package/dist/{pubJiaosezukongzhiqi-CvYfc8Uz.js → pubJiaosezukongzhiqi-DjhWqIMC.js} +1 -1
- package/dist/{setItem-DkOvmWXP.js → setItem-A0ExOAEh.js} +1 -1
- package/dist/{shujuquanxianzhubiaokongzhiqi-DyNgf1y6.js → shujuquanxianzhubiaokongzhiqi-CmBc9yvH.js} +5 -5
- package/dist/style.css +1 -1
- package/dist/{useAppAndResource-D_b19V4t.js → useAppAndResource-BQ6GznA5.js} +2 -2
- package/dist/{xitongpeizhifuwu-C1Vm-W1B.js → xitongpeizhifuwu-DtEPa1iK.js} +1 -1
- package/dist/{zidianfuwu-yCWHhOfO.js → zidianfuwu-BUtPqzzu.js} +1 -1
- package/dist/{ziyuanjiekou-DhrAbneq.js → ziyuanjiekou-DMJynAKN.js} +1 -1
- package/dist/{zuzhijiaosebiaokongzhiqi-B1g74RqL.js → zuzhijiaosebiaokongzhiqi-Bf05-XJX.js} +1 -1
- package/package.json +4 -5
- package/src/components/OrgUserSelector/index.ts +5 -0
- package/src/index.ts +1 -0
- package/dist/OrgSelector.vue_vue_type_script_setup_true_lang-BcL0IFuA.js +0 -567
- package/dist/_baseClone-CQ44TFeq.js +0 -191
- package/dist/cloneDeep-BI4WNBQ9.js +0 -8
- package/dist/index-DFR8dd2B.js +0 -785
- package/dist/index-Dm4sOX43.js +0 -27
- package/dist/request-DQLgc7lT.js +0 -5
- package/dist/zuzhijiekou-PeZuFtCO.js +0 -85
|
@@ -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 "./
|
|
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-BX1CIagK.js";
|
|
8
6
|
import { _ as _e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
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-DjhWqIMC.js";
|
|
10
|
+
import { c as ft, e as _t } from "./shujuquanxianzhubiaokongzhiqi-CmBc9yvH.js";
|
|
11
|
+
import { e as gt } from "./jiaosejiekou-BCXAevvU.js";
|
|
12
|
+
import { g as vt } from "./gangweijiekou-DoXatrli.js";
|
|
13
|
+
import { useRequest as bt } from "alova/client";
|
|
14
|
+
import { c as xt } from "./cloneDeep-8vjgfynq.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 (
|
|
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 =
|
|
21
|
+
var E = Je(p);
|
|
27
22
|
if (E == ht || E == yt)
|
|
28
23
|
return !p.size;
|
|
29
|
-
if (
|
|
30
|
-
return !
|
|
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),
|
|
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
|
|
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
|
|
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
|
-
|
|
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 = [],
|
|
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
|
-
|
|
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 } =
|
|
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 } =
|
|
792
|
-
(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 =
|
|
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
|
|
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 ?
|
|
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
|
|
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(
|
|
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(
|
|
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
|
|
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
|
|
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
|
|
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(
|
|
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
|
-
|
|
1625
|
+
ha as default
|
|
1631
1626
|
};
|
|
@@ -2,12 +2,11 @@ import { Modal as ne, Input as H, Spin as le, CheckboxGroup as ae, Checkbox as s
|
|
|
2
2
|
import { useAuth as fe, PubinfoIcon as me } from "pubinfo";
|
|
3
3
|
import { SearchOutlined as _e, PlusCircleOutlined as ve } from "@ant-design/icons-vue";
|
|
4
4
|
import { defineComponent as z, mergeModels as xe, ref as k, useModel as be, watch as ge, createBlock as E, openBlock as r, withCtx as l, createElementVNode as p, toDisplayString as h, unref as a, createVNode as n, isRef as q, createCommentVNode as Y, createElementBlock as y, Fragment as G, renderList as N, createTextVNode as $, reactive as he, resolveDirective as ke, withDirectives as W } from "vue";
|
|
5
|
-
import "./
|
|
6
|
-
import { g as ye, p as we, a as Re, b as Ie, d as Ce } from "./pubJiaosezukongzhiqi-
|
|
5
|
+
import { u as j } from "./index-BX1CIagK.js";
|
|
6
|
+
import { g as ye, p as we, a as Re, b as Ie, d as Ce } from "./pubJiaosezukongzhiqi-DjhWqIMC.js";
|
|
7
7
|
import { ProTable as De } from "@pubinfo/pro-components";
|
|
8
8
|
import { message as Z, Badge as Q, Modal as Ee } from "ant-design-vue";
|
|
9
|
-
import { e as $e } from "./jiaosejiekou-
|
|
10
|
-
import { u as j } from "./index-Dm4sOX43.js";
|
|
9
|
+
import { e as $e } from "./jiaosejiekou-BCXAevvU.js";
|
|
11
10
|
import { _ as Fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
11
|
var x = /* @__PURE__ */ ((I) => (I.ADD = "新增", I.EDIT = "修改", I.REMOVE = "删除", I.RESOURCE_RELATION = "分配查看", I))(x || {});
|
|
13
12
|
const Se = { class: "h-340px border-1px border-solid flex flex-row border_color" }, Pe = { class: "w-360px flex flex-col" }, Te = { class: "w-full h-34px bg-[#F2F3F5] flex px-15px items-center justify-between text-[#1D2129] dark:bg-[#1D2129] dark:text-[#F2F3F5]" }, Me = { class: "flex-1 overflow-hidden py-10px px-10px" }, Oe = { class: "overflow-y-auto overflow-x-hidden h-[calc(100%-30px)] mt-10px" }, Ue = { key: 1 }, Ve = { class: "flex-1 flex flex-col border-solid border-0px border-l-1px border_color" }, Be = { class: "flex-1 p-10px overflow-auto" }, Ge = /* @__PURE__ */ z({
|
|
@@ -477,7 +476,7 @@ const Se = { class: "h-340px border-1px border-solid flex flex-row border_color"
|
|
|
477
476
|
class: "ml-4px"
|
|
478
477
|
}, Qe = ["onClick"], He = {
|
|
479
478
|
class: "ml-4px"
|
|
480
|
-
},
|
|
479
|
+
}, st = /* @__PURE__ */ z({
|
|
481
480
|
name: "Role",
|
|
482
481
|
__name: "index",
|
|
483
482
|
setup(I) {
|
|
@@ -681,5 +680,5 @@ const Se = { class: "h-340px border-1px border-solid flex flex-row border_color"
|
|
|
681
680
|
}
|
|
682
681
|
});
|
|
683
682
|
export {
|
|
684
|
-
|
|
683
|
+
st as default
|
|
685
684
|
};
|