@pubinfo/module-rbac 2.2.0-beta.2 → 2.2.0-beta.4
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/{ComponentSelect-CYmAgdm3.js → ComponentSelect-CWokGm7B.js} +665 -668
- package/dist/{DynamicRoutesForm-CMF3oh8h.js → DynamicRoutesForm-CstxkG5g.js} +2 -2
- package/dist/{HoverCard-B-uU48hF.js → HoverCard-ZGaQxL_a.js} +1 -1
- package/dist/{IconSelect-CvxGRN_O.js → IconSelect-_oirLsYS.js} +2 -2
- package/dist/ImportExport-BVxWc6FR.js +2 -0
- package/dist/{ImportExport-CzZssb7_.js → ImportExport-Cy_4EJLq.js} +4 -4
- package/dist/{LayoutForm-Bpdyi_2o.js → LayoutForm-_vBGeWiz.js} +3 -3
- package/dist/{MetaForm-ZLzLz68d.js → MetaForm-5_KpiusU.js} +4341 -4342
- package/dist/{OrgAndPosition-B0RE1Vc_.js → OrgAndPosition-COhhOBJL.js} +2 -2
- package/dist/{OrgSelector-C2rPIonI.js → OrgSelector-BX08YC6x.js} +314 -308
- package/dist/OrgUserSelector-DmmJMv-T.js +257 -0
- package/dist/{ResourceEdit-9fvxbd0K.js → ResourceEdit-3mgwBq-u.js} +9 -9
- package/dist/ResourceEdit-CsfgDKOf.js +2 -0
- package/dist/{ResourceRelation-IJvXnlpo.js → ResourceRelation-B4652Ceb.js} +3 -3
- package/dist/{ResourceRelation-BrluMHdX.js → ResourceRelation-R6cdzbIi.js} +3 -4
- package/dist/ResourceSelector-CS6VsQR7.js +237 -0
- package/dist/ResourceSelector.css +1 -0
- package/dist/{RoleRelation-DuRuQG08.js → RoleRelation-DCIke8tM.js} +2 -2
- package/dist/{RoleSelector-BTNYbcC6.js → RoleSelector-AE2dfmlz.js} +2 -2
- package/dist/{TenantEdit-Df3gZKLA.js → TenantEdit-KZYEtH3w.js} +4 -4
- package/dist/{UserAuthorization-DX7jNDDe.js → UserAuthorization-DOpcNUCm.js} +4 -4
- package/dist/{UserEdit-BLb0n7WM.js → UserEdit-BptyAvXG.js} +5 -5
- package/dist/{_baseClone-C7vkGgsW.js → _baseClone-YaHrtIbN.js} +1 -1
- package/dist/_baseSlice-Ca-qgxJ8.js +9 -0
- package/dist/{_initCloneObject-r-eWKqzl.js → _initCloneObject-D4OWzQJP.js} +3 -3
- package/dist/_plugin-vue_export-helper-gLzyemvl.js +8 -0
- package/dist/{animation_item-Coe-B0jQ.js → animation_item-ugNUvN0t.js} +7 -9
- package/dist/api/modules/assist/index.d.ts +0 -1
- package/dist/api/modules/assist/qunzujiekou.d.ts +28 -0
- package/dist/api/modules/rbac/gangweijiekou.d.ts +7 -0
- package/dist/api/modules/rbac/jiaosejiekou.d.ts +14 -0
- package/dist/api/modules/rbac/yonghujiekou.d.ts +42 -0
- package/dist/api/modules/rbac/ziyuanjiekou.d.ts +7 -0
- package/dist/api/modules/rbac/zuzhijiekou.d.ts +7 -0
- package/dist/{blackWhiteList-d6TVsK48.js → blackWhiteList-SNDF6H2d.js} +9 -9
- package/dist/{breadcrumb_setting-DMbvWP5t.js → breadcrumb_setting-DnAbw6Ty.js} +4 -6
- package/dist/{cloneDeep-REaxTPsZ.js → cloneDeep-DmYKbzBt.js} +1 -1
- package/dist/configData-CSxIdgBO.js +110 -0
- package/dist/{createAndEditDataPermission-OunqmBu_.js → createAndEditDataPermission-0LzmHcCV.js} +10 -9
- package/dist/{data-permission-2pzeFLxP.js → data-permission-BNwvh8Cy.js} +5 -10
- package/dist/{dictionary-DGqlAhRk.js → dictionary-DDTrw8BQ.js} +3 -4
- package/dist/{drawerBlackWhiteList-VxyjaBkA.js → drawerBlackWhiteList-dHAREMtd.js} +3 -3
- package/dist/{drawerDictionary-DhAB-LV9.js → drawerDictionary-Dq0MnTak.js} +3 -3
- package/dist/{drawerDictionaryItem-DYsJzZ2f.js → drawerDictionaryItem-C3XC0ZTH.js} +3 -3
- package/dist/{drawerGroup-CTO8Lmbb.js → drawerGroup-BzQHpv61.js} +11 -11
- package/dist/drawerOrganization-BvQcr5AP.js +289 -0
- package/dist/{drawerPosition-BmM9mLlP.js → drawerPosition-Cc6zxMDa.js} +3 -3
- package/dist/{drawerRegion-BD-xc1x2.js → drawerRegion-r3LaT1oP.js} +3 -3
- package/dist/{drawerRole-Cjp9iDsa.js → drawerRole-Bh3eb9Hr.js} +4 -4
- package/dist/{drawerRole-CgAPM-0g.js → drawerRole-CXDcX8Wv.js} +3 -3
- package/dist/{drawerRole-B348x40k.js → drawerRole-saCktlhp.js} +4 -4
- package/dist/{group-C6Rj3K5I.js → group-BKjChIg2.js} +4 -7
- package/dist/index.css +1 -1
- package/dist/index.js +168 -772
- package/dist/{isEmpty-2rx9iUQv.js → isEmpty-CxzDo-wx.js} +1 -1
- package/dist/{isEqual-CNeQLaCM.js → isEqual-CItLfH0k.js} +1 -1
- package/dist/{itemlist-BGe-z1IR.js → itemlist-BowSBoEx.js} +3 -4
- package/dist/{layout_setting-Cds3TCHc.js → layout_setting-DOodE1ZC.js} +3 -3
- package/dist/{loginHistoryDetail-Coba_ajy.js → loginHistoryDetail-D49ObmJp.js} +2 -2
- package/dist/{login_history-CrXkEsHb.js → login_history-Bio4B_vj.js} +3 -5
- package/dist/{menu_setting-Br5dOEUk.js → menu_setting-BPqs2Reh.js} +4 -6
- package/dist/{operateHistoryDetail-DfDQL5BF.js → operateHistoryDetail-DdEjFBPD.js} +2 -2
- package/dist/{operate_history-BtHgPhmF.js → operate_history-KQGzD4rn.js} +3 -5
- package/dist/{organization-BbFERZ1l.js → organization-BPJXMIsl.js} +20 -25
- package/dist/{other_setting-D92SlFvl.js → other_setting-BmN5mDQu.js} +4 -6
- package/dist/{page_animation_setting-Cy2R0vZy.js → page_animation_setting-B0ZMSxPR.js} +4 -4
- package/dist/{page_w_setting-DryWrqcx.js → page_w_setting-D4rHkTZk.js} +3 -3
- package/dist/{position-B1bqGly6.js → position-Bqcr98mj.js} +2 -3
- package/dist/{region-B_n1KXMG.js → region-BYNJ5YPt.js} +3 -4
- package/dist/{resource-CPNNd1l0.js → resource-BAjLl4BQ.js} +6 -16
- package/dist/{role-CMd7WDRC.js → role-B92mU8Xy.js} +3 -5
- package/dist/{role_group-DHh2s911.js → role_group-B8A2VV7y.js} +2 -4
- package/dist/{safe_setting-CuTBmUve.js → safe_setting-Ct-ZuM22.js} +7 -8
- package/dist/setItem-DEsf8kVv.js +2 -0
- package/dist/{setItem-DlhIkIgh.js → setItem-xdOcMJ1t.js} +3 -3
- package/dist/{tabbar_setting-CjW9LGPp.js → tabbar_setting-D_yX_4DE.js} +4 -6
- package/dist/{tenant-B_vgufMG.js → tenant-C9ecwsxr.js} +3 -4
- package/dist/{theme_setting-DMP0_nZ1.js → theme_setting-CVKpSR14.js} +3 -3
- package/dist/{toolbar_setting-ClxxvA7R.js → toolbar_setting-D09MJTQ0.js} +4 -6
- package/dist/{useAppAndResource-D6WnpUPR.js → useAppAndResource-CBlPPcNy.js} +2 -2
- package/dist/{user-BhytPqnx.js → user-DJ35BYay.js} +5 -10
- package/dist/{watermark_setting-b3vBYWwY.js → watermark_setting-Cr4Xmwhh.js} +4 -4
- package/package.json +4 -4
- package/src/api/modules/assist/index.ts +0 -1
- package/src/api/modules/assist/qunzujiekou.ts +72 -0
- package/src/api/modules/assist/typings.d.ts +17 -129
- package/src/api/modules/rbac/gangweijiekou.ts +18 -0
- package/src/api/modules/rbac/jiaosejiekou.ts +36 -0
- package/src/api/modules/rbac/typings.d.ts +133 -1
- package/src/api/modules/rbac/yonghujiekou.ts +122 -0
- package/src/api/modules/rbac/ziyuanjiekou.ts +21 -0
- package/src/api/modules/rbac/zuzhijiekou.ts +18 -0
- package/src/components/OrgUserSelector/provider.ts +2 -2
- package/src/views/organization/components/drawerOrganization.vue +43 -0
- package/dist/ImportExport-b1SnWRLj.js +0 -6
- package/dist/ResourceEdit-BMqfJ3aQ.js +0 -13
- package/dist/api/modules/assist/gonggaofuwu.d.ts +0 -43
- package/dist/drawerOrganization-DWhTc1fB.js +0 -253
- package/dist/setItem-BwXZ5Uqx.js +0 -4
- package/src/api/modules/assist/gonggaofuwu.ts +0 -124
- /package/dist/{HCheckList-CAhQwX7m.js → HCheckList-D6BkIlte.js} +0 -0
- /package/dist/{add-child-DPb_m2by.js → add-child-SqHvzhn2.js} +0 -0
- /package/dist/{assist-BRMYD-oT.js → assist-CCEHZYbk.js} +0 -0
- /package/dist/{authority-B9wtmsQd.js → authority-DZG6frqG.js} +0 -0
- /package/dist/{authorize-DxrutyIG.js → authorize-RS7p0wpP.js} +0 -0
- /package/dist/{blacklist-disable-BKSw91qq.js → blacklist-disable-ZtV-YVD4.js} +0 -0
- /package/dist/{blacklist-enable-CIB1fOHT.js → blacklist-enable-litWbSHv.js} +0 -0
- /package/dist/{browser-chrome-CM60RcrG.js → browser-chrome-BiVlXqFZ.js} +0 -0
- /package/dist/{browser-edge-4LBRzooM.js → browser-edge-D5PWVn6o.js} +0 -0
- /package/dist/{browser-ie-BF-wqbf6.js → browser-ie-BgsN3Ne3.js} +0 -0
- /package/dist/{browser-other-iXJH-9iL.js → browser-other-DMB23plx.js} +0 -0
- /package/dist/{browser-safari-CIpt0yPc.js → browser-safari-CvpCuRD1.js} +0 -0
- /package/dist/{browserType-Bik20-72.js → browserType-KQp2uAi9.js} +0 -0
- /package/dist/{dayjs.min-CJunOGCc.js → dayjs.min-BgJlrzRN.js} +0 -0
- /package/dist/{dist-DxAYQq3U.js → dist--qcnkvZ0.js} +0 -0
- /package/dist/{edit-Drp8yjRe.js → edit-B3kW-D-h.js} +0 -0
- /package/dist/{enum-DS4SGhiF.js → enum-CE12tD9J.js} +0 -0
- /package/dist/{enum-CR5ztb5v2.js → enum-CI_B-PzB2.js} +0 -0
- /package/dist/{enum-CG0P82pn.js → enum-DPlX5kGz.js} +0 -0
- /package/dist/{enum-zdKA3Jy-.js → enum-K9XzmA01.js} +0 -0
- /package/dist/{enum-CYCebJeC.js → enum-lpo6KsjD.js} +0 -0
- /package/dist/{icard-BULUUV5m.js → icard-CjidQkoC.js} +0 -0
- /package/dist/{icon_animation-DuEY1FMm.js → icon_animation-DeNcSU6L.js} +0 -0
- /package/dist/{icon_breadcrumb-Y788iP_T.js → icon_breadcrumb-Bpjp0d0O.js} +0 -0
- /package/dist/{icon_copyright-C1BER6kq.js → icon_copyright-B8OgrlNo.js} +0 -0
- /package/dist/{icon_jt-ICOdrIF6.js → icon_jt-DfKcGg_Q.js} +0 -0
- /package/dist/{icon_layout-D_wV9rX3.js → icon_layout-W4bq7wfz.js} +0 -0
- /package/dist/{icon_mainpage-Cz6_cxpJ.js → icon_mainpage-C38tMFtH.js} +0 -0
- /package/dist/{icon_menu-y7SblUoR.js → icon_menu-CBLk6iMA.js} +0 -0
- /package/dist/{icon_page_size-BjwT656E.js → icon_page_size-CYjv-vP3.js} +0 -0
- /package/dist/{icon_position_type-CPxcDgmM.js → icon_position_type-IasquxGG.js} +0 -0
- /package/dist/{icon_safe_manage-CoqVRBLl.js → icon_safe_manage-CV1MBNKv.js} +0 -0
- /package/dist/{icon_screen_scale-DURlkq3C.js → icon_screen_scale-Cu1qHiz_.js} +0 -0
- /package/dist/{icon_system_manage-BLXs2CQg.js → icon_system_manage-Lgt_k1uF.js} +0 -0
- /package/dist/{icon_tabbar-_0QWhSBV.js → icon_tabbar-DwBJfDbP.js} +0 -0
- /package/dist/{icon_toolbar-BXpfu0iq.js → icon_toolbar-DN25KLtF.js} +0 -0
- /package/dist/{icon_topbar-DrwvB8Jw.js → icon_topbar-l89sztnQ.js} +0 -0
- /package/dist/{icon_watermark-DwNqjAiA.js → icon_watermark-DL6f1aYx.js} +0 -0
- /package/dist/{log-center-BrGlNhMd.js → log-center-BfPDO_E8.js} +0 -0
- /package/dist/{log-DOMU9MyH.js → log-epFUj_5H.js} +0 -0
- /package/dist/{not-data-C-MacYF3.js → not-data-C6xyifvi.js} +0 -0
- /package/dist/{org-main-BRMBumDm.js → org-main-BbPnTL9E.js} +0 -0
- /package/dist/{org-unmain-0BHnrNdD.js → org-unmain-QSDnl74k.js} +0 -0
- /package/dist/{rbac-B59CVHDt.js → rbac-MKC8Y6Bl.js} +0 -0
- /package/dist/{remove-BTME2Fhs.js → remove-4enQSlxs.js} +0 -0
- /package/dist/{resource-app-D8to3Lkn.js → resource-app-U0GIaRHX.js} +0 -0
- /package/dist/{resource-btn-Cz-A_EQF.js → resource-btn-BYZaDWcM.js} +0 -0
- /package/dist/{resource-dynamic-BUqWxUiU.js → resource-dynamic-DqIjQcBG.js} +0 -0
- /package/dist/{resource-index-D2roT002.js → resource-index-gVQ9qSGV.js} +0 -0
- /package/dist/{resource-menu-BRER68rK.js → resource-menu-Cp6r9eRI.js} +0 -0
- /package/dist/{resource-micro-Hyucl9de.js → resource-micro-BxycfE8K.js} +0 -0
- /package/dist/{resource-nonmenu-7FcPEpHv.js → resource-nonmenu-CvGE_ILo.js} +0 -0
- /package/dist/{setting-manage-UHelpLrr.js → setting-manage-BIiyA0Mh.js} +0 -0
- /package/dist/{stores-C-zbXsms.js → stores-kAilSV2k.js} +0 -0
- /package/dist/{theme-check-mark-DRzx4sTs.js → theme-check-mark-C2J6cCwx.js} +0 -0
- /package/dist/{theme-title-BRvQ_qPg.js → theme-title-D5K9nUws.js} +0 -0
- /package/dist/{vanilla-picker-2HFham9c.js → vanilla-picker-yba16Mqn.js} +0 -0
- /package/dist/{view-Cridj7u2.js → view-Bckjhd1X.js} +0 -0
- /package/dist/{zddata-CnvPWtIW.js → zddata-DSibBPmo.js} +0 -0
- /package/dist/{zy_checked-C25HQlnr.js → zy_checked-CeABq1Mr.js} +0 -0
- /package/dist/{zy_default-B7RKtyqy.js → zy_default-DhiBHEmX.js} +0 -0
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { I as e, M as t, O as n, k as r } from "./_initCloneObject-D4OWzQJP.js";
|
|
2
|
+
import { _ as i, d as a, f as o, n as s, o as c, p as l, u, v as d, x as f } from "./isEqual-CItLfH0k.js";
|
|
3
|
+
import { n as p, t as m } from "./_baseClone-YaHrtIbN.js";
|
|
4
|
+
import { a as h, c as g, d as _, i as ee, l as te, n as v, o as y, r as b, s as x, t as S } from "./OrgSelector-BX08YC6x.js";
|
|
5
|
+
import { t as C } from "./_baseSlice-Ca-qgxJ8.js";
|
|
6
|
+
import { n as ne } from "./dist--qcnkvZ0.js";
|
|
7
|
+
import { createApp as w, createCommentVNode as T, createElementBlock as E, createVNode as D, defineComponent as O, h as k, isRef as A, mergeModels as j, mergeProps as M, openBlock as N, ref as P, renderSlot as F, unref as I, useAttrs as L, useModel as R, watch as z, withCtx as B } from "vue";
|
|
8
|
+
import { Form as V, Modal as H } from "ant-design-vue";
|
|
9
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/flatten.js
|
|
10
|
+
function U(e) {
|
|
11
|
+
return e != null && e.length ? u(e, 1) : [];
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_flatRest.js
|
|
15
|
+
function W(e) {
|
|
16
|
+
return d(i(e, void 0, U), e + "");
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_parent.js
|
|
20
|
+
function G(e, t) {
|
|
21
|
+
return t.length < 2 ? e : a(e, C(t, 0, -1));
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseUnset.js
|
|
25
|
+
var K = Object.prototype.hasOwnProperty;
|
|
26
|
+
function q(e, t) {
|
|
27
|
+
t = l(t, e);
|
|
28
|
+
var n = -1, r = t.length;
|
|
29
|
+
if (!r) return !0;
|
|
30
|
+
for (var i = e == null || typeof e != "object" && typeof e != "function"; ++n < r;) {
|
|
31
|
+
var a = t[n];
|
|
32
|
+
if (typeof a == "string") {
|
|
33
|
+
if (a === "__proto__" && !K.call(e, "__proto__")) return !1;
|
|
34
|
+
if (a === "constructor" && n + 1 < r && typeof t[n + 1] == "string" && t[n + 1] === "prototype") {
|
|
35
|
+
if (i && n === 0) continue;
|
|
36
|
+
return !1;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
var c = G(e, t);
|
|
41
|
+
return c == null || delete c[o(s(t))];
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_customOmitClone.js
|
|
45
|
+
function J(e) {
|
|
46
|
+
return _(e) ? void 0 : e;
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/omit.js
|
|
50
|
+
var Y = 1, X = 2, Z = 4, re = W(function(e, t) {
|
|
51
|
+
var r = {};
|
|
52
|
+
if (e == null) return r;
|
|
53
|
+
var i = !1;
|
|
54
|
+
t = f(t, function(t) {
|
|
55
|
+
return t = l(t, e), i ||= t.length > 1, t;
|
|
56
|
+
}), n(e, p(e), r), i && (r = m(r, Y | X | Z, J));
|
|
57
|
+
for (var a = t.length; a--;) q(r, t[a]);
|
|
58
|
+
return r;
|
|
59
|
+
});
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSet.js
|
|
62
|
+
function ie(n, i, a, s) {
|
|
63
|
+
if (!e(n)) return n;
|
|
64
|
+
i = l(i, n);
|
|
65
|
+
for (var c = -1, u = i.length, d = u - 1, f = n; f != null && ++c < u;) {
|
|
66
|
+
var p = o(i[c]), m = a;
|
|
67
|
+
if (p === "__proto__" || p === "constructor" || p === "prototype") return n;
|
|
68
|
+
if (c != d) {
|
|
69
|
+
var h = f[p];
|
|
70
|
+
m = s ? s(h, p, f) : void 0, m === void 0 && (m = e(h) ? h : t(i[c + 1]) ? [] : {});
|
|
71
|
+
}
|
|
72
|
+
r(f, p, m), f = f[p];
|
|
73
|
+
}
|
|
74
|
+
return n;
|
|
75
|
+
}
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_basePickBy.js
|
|
78
|
+
function ae(e, t, n) {
|
|
79
|
+
for (var r = -1, i = t.length, o = {}; ++r < i;) {
|
|
80
|
+
var s = t[r], c = a(e, s);
|
|
81
|
+
n(c, s) && ie(o, l(s, e), c);
|
|
82
|
+
}
|
|
83
|
+
return o;
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_basePick.js
|
|
87
|
+
function oe(e, t) {
|
|
88
|
+
return ae(e, t, function(t, n) {
|
|
89
|
+
return c(e, n);
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/pick.js
|
|
94
|
+
var se = W(function(e, t) {
|
|
95
|
+
return e == null ? {} : oe(e, t);
|
|
96
|
+
}), Q = /* @__PURE__ */ O({
|
|
97
|
+
name: "UserSelector",
|
|
98
|
+
__name: "UserSelector",
|
|
99
|
+
props: /* @__PURE__ */ j({
|
|
100
|
+
title: { default: "选择用户" },
|
|
101
|
+
multiple: {
|
|
102
|
+
type: Boolean,
|
|
103
|
+
default: !1
|
|
104
|
+
},
|
|
105
|
+
auth: {},
|
|
106
|
+
apis: { default: () => ({}) },
|
|
107
|
+
tabs: { default: () => [
|
|
108
|
+
{
|
|
109
|
+
value: "RecentlyUsed",
|
|
110
|
+
label: "最近常用"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
value: "Favorites",
|
|
114
|
+
label: "收藏"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
value: "TreeUserList",
|
|
118
|
+
label: "全部"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
value: "Groups",
|
|
122
|
+
label: "群组"
|
|
123
|
+
}
|
|
124
|
+
] },
|
|
125
|
+
disabledData: {
|
|
126
|
+
type: Function,
|
|
127
|
+
default: () => !1
|
|
128
|
+
},
|
|
129
|
+
filterOrg: {
|
|
130
|
+
type: Function,
|
|
131
|
+
default: () => !0
|
|
132
|
+
},
|
|
133
|
+
filterUser: {
|
|
134
|
+
type: Function,
|
|
135
|
+
default: () => !0
|
|
136
|
+
},
|
|
137
|
+
onSubmit: {}
|
|
138
|
+
}, {
|
|
139
|
+
open: { type: Boolean },
|
|
140
|
+
openModifiers: {},
|
|
141
|
+
modelValue: { default: [] },
|
|
142
|
+
modelModifiers: {}
|
|
143
|
+
}),
|
|
144
|
+
emits: ["update:open", "update:modelValue"],
|
|
145
|
+
setup(e, { expose: t }) {
|
|
146
|
+
let n = e, r = L(), i = {
|
|
147
|
+
...ee({
|
|
148
|
+
auth: n.auth,
|
|
149
|
+
filter: n.filterOrg
|
|
150
|
+
}),
|
|
151
|
+
...se(n.apis, ["orgTree", "orgList"])
|
|
152
|
+
}, a = {
|
|
153
|
+
...h({
|
|
154
|
+
auth: n.auth,
|
|
155
|
+
filter: n.filterUser
|
|
156
|
+
}),
|
|
157
|
+
...re(n.apis, ["orgTree", "orgList"])
|
|
158
|
+
}, o = R(e, "open"), s = R(e, "modelValue"), c = P([]), l = ne(o), { onFieldChange: u } = V.useInjectFormItemContext();
|
|
159
|
+
function d() {
|
|
160
|
+
l(!0);
|
|
161
|
+
}
|
|
162
|
+
z(o, async (e) => {
|
|
163
|
+
if (e) {
|
|
164
|
+
if (!s.value.length) {
|
|
165
|
+
c.value = [];
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
try {
|
|
169
|
+
c.value = await a?.getSelectedData?.(s.value) ?? s.value;
|
|
170
|
+
} catch {
|
|
171
|
+
c.value = s.value;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}, { immediate: !0 });
|
|
175
|
+
function f() {
|
|
176
|
+
let e = c.value?.map((e) => {
|
|
177
|
+
let t = b(e[y.value]);
|
|
178
|
+
return {
|
|
179
|
+
...e,
|
|
180
|
+
orgId: t.orgId,
|
|
181
|
+
userId: t.userId
|
|
182
|
+
};
|
|
183
|
+
});
|
|
184
|
+
s.value = e, n.onSubmit?.(e), u(), l(!1), a?.addRecentlyUsed?.(e);
|
|
185
|
+
}
|
|
186
|
+
return t({ open: d }), (t, n) => (N(), E("div", null, [t.$slots.trigger ? (N(), E("span", {
|
|
187
|
+
key: 0,
|
|
188
|
+
onClick: n[0] ||= (e) => d()
|
|
189
|
+
}, [F(t.$slots, "trigger")])) : T("", !0), D(I(H), M(I(r), {
|
|
190
|
+
open: o.value,
|
|
191
|
+
"onUpdate:open": n[2] ||= (e) => o.value = e,
|
|
192
|
+
title: e.title,
|
|
193
|
+
width: 760,
|
|
194
|
+
"z-index": 1001,
|
|
195
|
+
"ok-text": "确认",
|
|
196
|
+
"cancel-text": "取消",
|
|
197
|
+
onOk: n[3] ||= (e) => f()
|
|
198
|
+
}), {
|
|
199
|
+
default: B(() => [D(I(g), {
|
|
200
|
+
apis: i,
|
|
201
|
+
"field-names": I(v)
|
|
202
|
+
}, {
|
|
203
|
+
default: B(() => [D(I(te), {
|
|
204
|
+
apis: a,
|
|
205
|
+
"field-names": I(y)
|
|
206
|
+
}, {
|
|
207
|
+
default: B(() => [D(I(x), {
|
|
208
|
+
modelValue: I(c),
|
|
209
|
+
"onUpdate:modelValue": n[1] ||= (e) => A(c) ? c.value = e : null,
|
|
210
|
+
"default-tab": "TreeUserList",
|
|
211
|
+
tabs: e.tabs,
|
|
212
|
+
multiple: e.multiple,
|
|
213
|
+
"disabled-data": e.disabledData
|
|
214
|
+
}, null, 8, [
|
|
215
|
+
"modelValue",
|
|
216
|
+
"tabs",
|
|
217
|
+
"multiple",
|
|
218
|
+
"disabled-data"
|
|
219
|
+
])]),
|
|
220
|
+
_: 1
|
|
221
|
+
}, 8, ["field-names"])]),
|
|
222
|
+
_: 1
|
|
223
|
+
}, 8, ["field-names"])]),
|
|
224
|
+
_: 1
|
|
225
|
+
}, 16, ["open", "title"])]));
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
//#endregion
|
|
229
|
+
//#region src/components/OrgUserSelector/index.ts
|
|
230
|
+
function ce(e) {
|
|
231
|
+
$(S, e);
|
|
232
|
+
}
|
|
233
|
+
function le(e) {
|
|
234
|
+
$(Q, e);
|
|
235
|
+
}
|
|
236
|
+
function $(e, t) {
|
|
237
|
+
let n = w({ render() {
|
|
238
|
+
return k(e, {
|
|
239
|
+
...t,
|
|
240
|
+
open: !0,
|
|
241
|
+
onSubmit: (...e) => {
|
|
242
|
+
t.onSubmit?.(...e), i();
|
|
243
|
+
},
|
|
244
|
+
onCancel: () => {
|
|
245
|
+
i();
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
} }), r = document.createElement("div");
|
|
249
|
+
document.body.appendChild(r), n.mount(r);
|
|
250
|
+
function i() {
|
|
251
|
+
setTimeout(() => {
|
|
252
|
+
n.unmount(), document.body.removeChild(r);
|
|
253
|
+
}, 500);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
//#endregion
|
|
257
|
+
export { le as n, Q as r, ce as t };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { i as e, r as t, t as n } from "./MetaForm-
|
|
2
|
-
import { t as r } from "./cloneDeep-
|
|
3
|
-
import { n as i } from "./dist
|
|
4
|
-
import { E as a, T as o, x as s } from "./rbac-
|
|
5
|
-
import { n as c, r as ee } from "./enum-
|
|
6
|
-
import { i as l, n as u, r as d, t as f } from "./enum-
|
|
7
|
-
import { t as te } from "./DynamicRoutesForm-
|
|
8
|
-
import { t as ne } from "./IconSelect-
|
|
9
|
-
import { t as re } from "./LayoutForm-
|
|
1
|
+
import { i as e, r as t, t as n } from "./MetaForm-5_KpiusU.js";
|
|
2
|
+
import { t as r } from "./cloneDeep-DmYKbzBt.js";
|
|
3
|
+
import { n as i } from "./dist--qcnkvZ0.js";
|
|
4
|
+
import { E as a, T as o, x as s } from "./rbac-MKC8Y6Bl.js";
|
|
5
|
+
import { n as c, r as ee } from "./enum-lpo6KsjD.js";
|
|
6
|
+
import { i as l, n as u, r as d, t as f } from "./enum-CI_B-PzB2.js";
|
|
7
|
+
import { t as te } from "./DynamicRoutesForm-CstxkG5g.js";
|
|
8
|
+
import { t as ne } from "./IconSelect-_oirLsYS.js";
|
|
9
|
+
import { t as re } from "./LayoutForm-_vBGeWiz.js";
|
|
10
10
|
import { PartyLoginModal as ie } from "pubinfo";
|
|
11
11
|
import { computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createTextVNode as _, createVNode as v, defineComponent as y, isRef as b, openBlock as x, reactive as S, ref as C, toDisplayString as w, unref as T, withCtx as E } from "vue";
|
|
12
12
|
import { DatabaseOutlined as D } from "@ant-design/icons-vue";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as e } from "./chunk-WQLz0Won.js";
|
|
2
|
-
import { n as t } from "./dist
|
|
3
|
-
import { d as n, ft as r } from "./rbac-
|
|
4
|
-
import {
|
|
2
|
+
import { n as t } from "./dist--qcnkvZ0.js";
|
|
3
|
+
import { d as n, ft as r } from "./rbac-MKC8Y6Bl.js";
|
|
4
|
+
import { t as i } from "./_plugin-vue_export-helper-gLzyemvl.js";
|
|
5
5
|
import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, isRef as p, openBlock as m, ref as h, toDisplayString as g, unref as _, withCtx as v } from "vue";
|
|
6
6
|
import { Drawer as y, Segmented as b, Tag as x } from "ant-design-vue/es";
|
|
7
7
|
import { ProTable as S } from "@pubinfo/pro-components";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { h as n } from "./index.js";
|
|
1
|
+
import { n as e } from "./dist--qcnkvZ0.js";
|
|
2
|
+
import { ft as t } from "./rbac-MKC8Y6Bl.js";
|
|
3
|
+
import { t as n } from "./_plugin-vue_export-helper-gLzyemvl.js";
|
|
5
4
|
import { createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, isRef as u, normalizeStyle as d, openBlock as f, ref as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
6
5
|
import { theme as _ } from "ant-design-vue";
|
|
7
6
|
import { Avatar as v, Drawer as y } from "ant-design-vue/es";
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { n as e } from "./dist--qcnkvZ0.js";
|
|
2
|
+
import { t } from "./enum-DPlX5kGz.js";
|
|
3
|
+
import { t as n } from "./_plugin-vue_export-helper-gLzyemvl.js";
|
|
4
|
+
import { PubinfoIcon as r } from "pubinfo";
|
|
5
|
+
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as ee, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, isRef as f, mergeModels as p, openBlock as m, ref as h, renderList as g, toDisplayString as _, unref as v, useModel as y, watch as b, withCtx as x, withModifiers as S } from "vue";
|
|
6
|
+
import { DownOutlined as C } from "@ant-design/icons-vue";
|
|
7
|
+
import { Form as w } from "ant-design-vue";
|
|
8
|
+
import { Button as T, Dropdown as E, Menu as D, MenuItem as O, Modal as te, Tag as ne, Tooltip as re, Tree as ie } from "ant-design-vue/es";
|
|
9
|
+
import './ResourceSelector.css';//#region src/components/ResourceSelector/index.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
+
var ae = { class: "h-340px border-1px border-solid flex flex-row border_color" }, oe = { class: "w-360px flex flex-col" }, k = { class: "w-full h-34px bg-[#F2F3F5] flex px-15px items-center justify-between text-[#1D2129] dark:bg-[#1D2129] dark:text-[#F2F3F5]" }, se = { class: "flex-1 overflow-auto py-10px pr-10px" }, A = { class: "flex items-center" }, j = { class: "mx-4px" }, M = ["onClick"], N = ["onClick"], P = ["onClick"], F = ["onClick"], I = { class: "flex-1 flex flex-col border-solid border-0px border-l-1px border_color" }, L = { class: "flex-1 p-10px overflow-auto" }, R = /* @__PURE__ */ n(/* @__PURE__ */ d({
|
|
11
|
+
name: "ResourceSelector",
|
|
12
|
+
__name: "index",
|
|
13
|
+
props: /* @__PURE__ */ p({
|
|
14
|
+
title: { default: "资源选择" },
|
|
15
|
+
mode: { default: t.ROLE }
|
|
16
|
+
}, {
|
|
17
|
+
open: { type: Boolean },
|
|
18
|
+
openModifiers: {}
|
|
19
|
+
}),
|
|
20
|
+
emits: /* @__PURE__ */ p(["select"], ["update:open"]),
|
|
21
|
+
setup(n, { expose: d, emit: p }) {
|
|
22
|
+
let R = n, z = p, B = a(() => R.mode === t.DATA_PERMISSION), V = h({
|
|
23
|
+
checked: [],
|
|
24
|
+
halfChecked: []
|
|
25
|
+
}), H = h([]), U = h([]), W = h({}), G = h(0), K = h([]), q = y(n, "open"), J = e(q);
|
|
26
|
+
b(() => V.value.checked, (e) => {
|
|
27
|
+
U.value = e.reduce((e, t) => {
|
|
28
|
+
let n = {
|
|
29
|
+
id: t,
|
|
30
|
+
name: W.value[t]
|
|
31
|
+
};
|
|
32
|
+
return e.push(n), e;
|
|
33
|
+
}, []);
|
|
34
|
+
}, { deep: !0 });
|
|
35
|
+
function ce(e, t, n) {
|
|
36
|
+
V.value.checked = [...e], K.value = t, W.value = n, G.value = Object.keys(W.value).length, t[0]?.id && (H.value = [t[0]?.id]), J(!0);
|
|
37
|
+
}
|
|
38
|
+
function le(e, t) {
|
|
39
|
+
if (!B.value) {
|
|
40
|
+
if (t.checked) {
|
|
41
|
+
function e(t) {
|
|
42
|
+
t.parent ? (V.value.checked.push(t.key), e(t.parent)) : V.value.checked.push(t.key);
|
|
43
|
+
}
|
|
44
|
+
e(t.node);
|
|
45
|
+
} else Z([t.node], t.node.id).forEach((e) => {
|
|
46
|
+
let t = V.value.checked.findIndex((t) => t === e);
|
|
47
|
+
t >= 0 && V.value.checked.splice(t, 1);
|
|
48
|
+
});
|
|
49
|
+
V.value.checked = Array.from(new Set(V.value.checked));
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function ue() {
|
|
53
|
+
V.value.checked = [];
|
|
54
|
+
}
|
|
55
|
+
function Y(e) {
|
|
56
|
+
Z(K.value, e).forEach((e) => {
|
|
57
|
+
let t = V.value.checked.findIndex((t) => t === e);
|
|
58
|
+
t >= 0 && V.value.checked.splice(t, 1);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
function X(e, t) {
|
|
62
|
+
for (let n of e) {
|
|
63
|
+
if (n.id === t) return n;
|
|
64
|
+
if (n.children) {
|
|
65
|
+
let e = X(n.children, t);
|
|
66
|
+
if (e) return e;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
function Z(e, t) {
|
|
71
|
+
let n = [], r = X(e, t);
|
|
72
|
+
if (r) {
|
|
73
|
+
function e(t) {
|
|
74
|
+
if (n.push(t.id), t.children) for (let n of t.children) e(n);
|
|
75
|
+
}
|
|
76
|
+
e(r);
|
|
77
|
+
}
|
|
78
|
+
return n;
|
|
79
|
+
}
|
|
80
|
+
function de(e) {
|
|
81
|
+
let t = $(e.id);
|
|
82
|
+
t.length > 0 && (t.push(e.id), t.forEach((e) => {
|
|
83
|
+
V.value.checked.findIndex((t) => t === e) < 0 && V.value.checked.push(e);
|
|
84
|
+
}));
|
|
85
|
+
}
|
|
86
|
+
function fe(e) {
|
|
87
|
+
$(e.id).forEach((e) => {
|
|
88
|
+
let t = V.value.checked.findIndex((t) => t === e);
|
|
89
|
+
t >= 0 && V.value.checked.splice(t, 1);
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
function pe(e) {
|
|
93
|
+
let t = Q(e.id);
|
|
94
|
+
t.length > 0 && (t.push(e.id), t.forEach((e) => {
|
|
95
|
+
V.value.checked.findIndex((t) => t === e) < 0 && V.value.checked.push(e);
|
|
96
|
+
}));
|
|
97
|
+
}
|
|
98
|
+
function me(e) {
|
|
99
|
+
Q(e.id).forEach((e) => {
|
|
100
|
+
let t = V.value.checked.findIndex((t) => t === e);
|
|
101
|
+
t >= 0 && V.value.checked.splice(t, 1);
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
function Q(e) {
|
|
105
|
+
let t = X(K.value, e);
|
|
106
|
+
return t && t.children && t.children.length > 0 ? t.children.reduce((e, t) => (B.value && t?.disabled || e.push(t.id), e), []) : [];
|
|
107
|
+
}
|
|
108
|
+
function $(e) {
|
|
109
|
+
let t = Z(K.value, e), n = t.indexOf(e);
|
|
110
|
+
return t.splice(n, 1), t?.map((e) => X(K.value, e))?.filter((e) => B.value ? !e.disabled : !0)?.map((e) => e.id);
|
|
111
|
+
}
|
|
112
|
+
let { onFieldChange: he } = w.useInjectFormItemContext();
|
|
113
|
+
function ge() {
|
|
114
|
+
z("select", U.value), he(), J(!1);
|
|
115
|
+
}
|
|
116
|
+
return d({ open: ce }), (e, t) => {
|
|
117
|
+
let a = r, d = C, p = O, h = D, y = E, b = ie, w = ne, R = re, z = T, W = te;
|
|
118
|
+
return m(), o(W, {
|
|
119
|
+
open: q.value,
|
|
120
|
+
"onUpdate:open": t[4] ||= (e) => q.value = e,
|
|
121
|
+
class: "custom_modal",
|
|
122
|
+
title: n.title,
|
|
123
|
+
"mask-closable": !1,
|
|
124
|
+
width: 750
|
|
125
|
+
}, {
|
|
126
|
+
footer: x(() => [u(z, { onClick: t[3] ||= (e) => v(J)(!1) }, {
|
|
127
|
+
default: x(() => [...t[8] ||= [l(" 取消 ", -1)]]),
|
|
128
|
+
_: 1
|
|
129
|
+
}), u(z, {
|
|
130
|
+
type: "primary",
|
|
131
|
+
onClick: ge
|
|
132
|
+
}, {
|
|
133
|
+
default: x(() => [...t[9] ||= [l(" 确定 ", -1)]]),
|
|
134
|
+
_: 1
|
|
135
|
+
})]),
|
|
136
|
+
default: x(() => [c("div", ae, [c("div", oe, [c("div", k, [t[5] ||= c("div", { class: "" }, " 全部资源 ", -1), c("div", null, _(v(V).checked.length) + "/" + _(v(G)), 1)]), c("div", se, [u(b, {
|
|
137
|
+
"checked-keys": v(V),
|
|
138
|
+
"onUpdate:checkedKeys": t[1] ||= (e) => f(V) ? V.value = e : null,
|
|
139
|
+
"expanded-keys": v(H),
|
|
140
|
+
"onUpdate:expandedKeys": t[2] ||= (e) => f(H) ? H.value = e : null,
|
|
141
|
+
class: "h-full custom_tree",
|
|
142
|
+
"block-node": "",
|
|
143
|
+
checkable: "",
|
|
144
|
+
"check-strictly": "",
|
|
145
|
+
"field-names": {
|
|
146
|
+
children: "children",
|
|
147
|
+
title: "name",
|
|
148
|
+
key: "id"
|
|
149
|
+
},
|
|
150
|
+
"tree-data": v(K),
|
|
151
|
+
onCheck: le
|
|
152
|
+
}, {
|
|
153
|
+
title: x((e) => [c("div", A, [
|
|
154
|
+
e.checked ? (m(), o(a, {
|
|
155
|
+
key: 0,
|
|
156
|
+
name: "zy_checked",
|
|
157
|
+
size: "24px"
|
|
158
|
+
})) : (m(), o(a, {
|
|
159
|
+
key: 1,
|
|
160
|
+
name: "zy_default",
|
|
161
|
+
size: "24px"
|
|
162
|
+
})),
|
|
163
|
+
c("span", j, _(e.name), 1),
|
|
164
|
+
!e.leaf && (!v(B) || !e.disabled) ? (m(), o(y, {
|
|
165
|
+
key: 2,
|
|
166
|
+
class: "bg-[#e8f3ff] dark:bg-[#141414]",
|
|
167
|
+
trigger: ["click"]
|
|
168
|
+
}, {
|
|
169
|
+
overlay: x(() => [u(h, null, {
|
|
170
|
+
default: x(() => [
|
|
171
|
+
u(p, { key: "0" }, {
|
|
172
|
+
default: x(() => [c("a", { onClick: (t) => de(e) }, "选中所有下级", 8, M)]),
|
|
173
|
+
_: 2
|
|
174
|
+
}, 1024),
|
|
175
|
+
u(p, { key: "1" }, {
|
|
176
|
+
default: x(() => [c("a", { onClick: (t) => fe(e) }, "取消所有下级", 8, N)]),
|
|
177
|
+
_: 2
|
|
178
|
+
}, 1024),
|
|
179
|
+
u(p, { key: "3" }, {
|
|
180
|
+
default: x(() => [c("a", { onClick: (t) => pe(e) }, "选中下一级", 8, P)]),
|
|
181
|
+
_: 2
|
|
182
|
+
}, 1024),
|
|
183
|
+
u(p, { key: "4" }, {
|
|
184
|
+
default: x(() => [c("a", { onClick: (t) => me(e) }, "取消下一级", 8, F)]),
|
|
185
|
+
_: 2
|
|
186
|
+
}, 1024)
|
|
187
|
+
]),
|
|
188
|
+
_: 2
|
|
189
|
+
}, 1024)]),
|
|
190
|
+
default: x(() => [c("a", {
|
|
191
|
+
class: "ant-dropdown-link whitespace-nowrap",
|
|
192
|
+
style: { padding: "2px 4px" },
|
|
193
|
+
onClick: t[0] ||= S(() => {}, ["prevent"])
|
|
194
|
+
}, [t[6] ||= c("span", { class: "text-base" }, "操作", -1), u(d, { style: { fontSize: "10px" } })])]),
|
|
195
|
+
_: 2
|
|
196
|
+
}, 1024)) : ee("", !0)
|
|
197
|
+
])]),
|
|
198
|
+
_: 1
|
|
199
|
+
}, 8, [
|
|
200
|
+
"checked-keys",
|
|
201
|
+
"expanded-keys",
|
|
202
|
+
"tree-data"
|
|
203
|
+
])])]), c("div", I, [c("div", { class: "w-full h-34px bg-[#F2F3F5] flex px-15px items-center justify-between text-[#1D2129] dark:bg-[#1D2129] dark:text-[#F2F3F5]" }, [t[7] ||= c("div", { class: "" }, " 已选资源 ", -1), c("div", {
|
|
204
|
+
class: "cursor-pointer text-[#165DFF]",
|
|
205
|
+
onClick: ue
|
|
206
|
+
}, " 清空 ")]), c("div", L, [(m(!0), s(i, null, g(v(U), (e) => (m(), s("div", {
|
|
207
|
+
key: e.id,
|
|
208
|
+
class: "inline-block mb-6px max-w-300px"
|
|
209
|
+
}, [e.name?.length > 20 ? (m(), o(R, {
|
|
210
|
+
key: 0,
|
|
211
|
+
title: e.name
|
|
212
|
+
}, {
|
|
213
|
+
default: x(() => [u(w, {
|
|
214
|
+
class: "custom_tag bg-[#e8f3ff] dark:bg-[#141414]",
|
|
215
|
+
closable: "",
|
|
216
|
+
onClose: (t) => Y(e.id)
|
|
217
|
+
}, {
|
|
218
|
+
default: x(() => [l(_(`${e.name?.slice(0, 20)}...`), 1)]),
|
|
219
|
+
_: 2
|
|
220
|
+
}, 1032, ["onClose"])]),
|
|
221
|
+
_: 2
|
|
222
|
+
}, 1032, ["title"])) : (m(), o(w, {
|
|
223
|
+
key: 1,
|
|
224
|
+
class: "custom_tag bg-[#e8f3ff] dark:bg-[#141414]",
|
|
225
|
+
closable: "",
|
|
226
|
+
onClose: (t) => Y(e.id)
|
|
227
|
+
}, {
|
|
228
|
+
default: x(() => [l(_(e.name), 1)]),
|
|
229
|
+
_: 2
|
|
230
|
+
}, 1032, ["onClose"]))]))), 128))])])])]),
|
|
231
|
+
_: 1
|
|
232
|
+
}, 8, ["open", "title"]);
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
}), [["__scopeId", "data-v-70b6311e"]]);
|
|
236
|
+
//#endregion
|
|
237
|
+
export { R as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.border_color[data-v-70b6311e]{--un-border-opacity:1;border-color:rgb(229 230 235/var(--un-border-opacity))}[data-theme=dark] .border_color[data-v-70b6311e]{--un-border-opacity:.12;border-color:rgb(253 253 253/var(--un-border-opacity))}.border_c[data-v-70b6311e]{--un-border-opacity:1;border-width:1px;border-color:rgb(204 204 204/var(--un-border-opacity));border-style:dashed;border-radius:10px}[data-v-70b6311e] .ant-dropdown-link{--un-scale-x:.7;--un-scale-y:.7;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z));border-radius:.125rem;padding:.25rem .375rem;font-size:.75rem;line-height:1rem}.custom_modal[data-v-70b6311e] .ant-modal-content{border-radius:0;padding:0}.custom_modal[data-v-70b6311e] .ant-modal-header{--un-border-opacity:1;--un-border-bottom-opacity:var(--un-border-opacity);border-bottom-width:1px;border-bottom-color:rgb(229 230 235/var(--un-border-bottom-opacity));border-style:solid;margin-bottom:0;padding:.75rem 1rem}.custom_modal[data-v-70b6311e] .ant-modal-title{--un-text-opacity:1;color:rgb(29 33 41/var(--un-text-opacity)) ;font-size:1rem;font-weight:500;line-height:1.5rem}.custom_modal[data-v-70b6311e] .ant-modal-body{padding:1rem}.custom_modal[data-v-70b6311e] .ant-modal-footer{--un-border-opacity:1;--un-border-top-opacity:var(--un-border-opacity);border-top-width:1px;border-top-color:rgb(229 230 235/var(--un-border-top-opacity));border-style:solid;padding:1rem}.custom_modal[data-v-70b6311e] .ant-modal-footer .ant-btn{border-radius:.125rem}[data-v-70b6311e] .ant-tree-checkbox{margin-top:0;margin-right:2px}[data-v-70b6311e] .ant-tree-checkbox+span .ant-tree-iconEle{margin-right:.25rem}.custom_tag[data-v-70b6311e]{border-width:0;border-radius:.125rem;padding:3px .5rem}.custom_tag[data-v-70b6311e] .ant-tag-close-icon{--un-text-opacity:.6;color:rgb(22 93 255/var(--un-text-opacity)) }.custom_tag[data-v-70b6311e] .ant-tag-close-icon:hover{--un-text-opacity:1;color:rgb(22 93 255/var(--un-text-opacity)) }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as e } from "./chunk-WQLz0Won.js";
|
|
2
|
-
import { n as t } from "./dist
|
|
3
|
-
import { y as n } from "./rbac-
|
|
2
|
+
import { n as t } from "./dist--qcnkvZ0.js";
|
|
3
|
+
import { y as n } from "./rbac-MKC8Y6Bl.js";
|
|
4
4
|
import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, isRef as d, nextTick as f, normalizeStyle as p, openBlock as m, toDisplayString as h, unref as g, withCtx as _ } from "vue";
|
|
5
5
|
import { theme as v } from "ant-design-vue";
|
|
6
6
|
import { Avatar as y, Drawer as b, Table as x } from "ant-design-vue/es";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./dist
|
|
2
|
-
import { ct as t, nt as n, tt as r } from "./rbac-
|
|
1
|
+
import { n as e } from "./dist--qcnkvZ0.js";
|
|
2
|
+
import { ct as t, nt as n, tt as r } from "./rbac-MKC8Y6Bl.js";
|
|
3
3
|
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, guardReactiveProps as p, isRef as m, mergeModels as h, mergeProps as g, normalizeProps as _, normalizeStyle as v, onMounted as y, openBlock as b, reactive as x, ref as S, renderList as C, toDisplayString as w, unref as T, useModel as E, vShow as D, withCtx as O, withDirectives as k } from "vue";
|
|
4
4
|
import { CloseOutlined as A, SearchOutlined as j } from "@ant-design/icons-vue";
|
|
5
5
|
import { Card as M, Checkbox as N, CheckboxGroup as P, Modal as F, Spin as I, Tooltip as L, theme as R } from "ant-design-vue";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as e } from "./chunk-WQLz0Won.js";
|
|
2
|
-
import { t } from "./cloneDeep-
|
|
3
|
-
import { n } from "./dist
|
|
4
|
-
import { _ as r, h as i, m as a, w as o } from "./rbac-
|
|
5
|
-
import {
|
|
2
|
+
import { t } from "./cloneDeep-DmYKbzBt.js";
|
|
3
|
+
import { n } from "./dist--qcnkvZ0.js";
|
|
4
|
+
import { _ as r, h as i, m as a, w as o } from "./rbac-MKC8Y6Bl.js";
|
|
5
|
+
import { t as s } from "./ResourceSelector-CS6VsQR7.js";
|
|
6
6
|
import { Fragment as c, computed as l, createBlock as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, isRef as g, onMounted as _, openBlock as v, reactive as y, ref as b, renderList as x, toDisplayString as S, unref as C, withCtx as w } from "vue";
|
|
7
7
|
import { message as T } from "ant-design-vue";
|
|
8
8
|
import { Button as E, Drawer as D, Form as O, FormItem as k, Input as A, RangePicker as j, Space as M, Switch as N, Tooltip as ee } from "ant-design-vue/es";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as e } from "./chunk-WQLz0Won.js";
|
|
2
|
-
import { n as t } from "./dist
|
|
3
|
-
import { B as n, J as r, X as i, tt as a } from "./rbac-
|
|
4
|
-
import {
|
|
5
|
-
import { t as s } from "./RoleSelector-
|
|
2
|
+
import { n as t } from "./dist--qcnkvZ0.js";
|
|
3
|
+
import { B as n, J as r, X as i, tt as a } from "./rbac-MKC8Y6Bl.js";
|
|
4
|
+
import { t as o } from "./_plugin-vue_export-helper-gLzyemvl.js";
|
|
5
|
+
import { t as s } from "./RoleSelector-AE2dfmlz.js";
|
|
6
6
|
import { PubinfoIcon as c } from "pubinfo";
|
|
7
7
|
import { Fragment as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, isRef as _, nextTick as v, normalizeStyle as y, onMounted as b, openBlock as x, ref as S, renderList as C, toDisplayString as w, unref as T, withCtx as E } from "vue";
|
|
8
8
|
import { message as D, theme as O } from "ant-design-vue";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as e } from "./chunk-WQLz0Won.js";
|
|
2
|
-
import { t } from "./cloneDeep-
|
|
3
|
-
import { t as n } from "./isEmpty-
|
|
4
|
-
import { n as r } from "./dist
|
|
5
|
-
import { G as i, R as a, V as o } from "./rbac-
|
|
6
|
-
import { t as s } from "./OrgAndPosition-
|
|
2
|
+
import { t } from "./cloneDeep-DmYKbzBt.js";
|
|
3
|
+
import { t as n } from "./isEmpty-CxzDo-wx.js";
|
|
4
|
+
import { n as r } from "./dist--qcnkvZ0.js";
|
|
5
|
+
import { G as i, R as a, V as o } from "./rbac-MKC8Y6Bl.js";
|
|
6
|
+
import { t as s } from "./OrgAndPosition-COhhOBJL.js";
|
|
7
7
|
import { createBlock as c, createElementBlock as l, createTextVNode as u, createVNode as d, defineComponent as f, isRef as p, openBlock as m, reactive as h, ref as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
|
|
8
8
|
import { message as b } from "ant-design-vue";
|
|
9
9
|
import { Button as x, Drawer as S, Form as C, FormItem as w, Input as T, RadioGroup as E, Space as D, Switch as O, Textarea as k } from "ant-design-vue/es";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as e, I as t, L as n, O as r, P as ee, R as i, S as a, _ as o, a as s, b as c, c as l, d as te, f as ne, g as u, k as re, l as d, m as f, n as p, p as m, r as h, s as g, t as _, u as v, x as y } from "./_initCloneObject-
|
|
1
|
+
import { B as e, I as t, L as n, O as r, P as ee, R as i, S as a, _ as o, a as s, b as c, c as l, d as te, f as ne, g as u, k as re, l as d, m as f, n as p, p as m, r as h, s as g, t as _, u as v, x as y } from "./_initCloneObject-D4OWzQJP.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayEach.js
|
|
3
3
|
function ie(e, t) {
|
|
4
4
|
for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1;);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSlice.js
|
|
2
|
+
function e(e, t, n) {
|
|
3
|
+
var r = -1, i = e.length;
|
|
4
|
+
t < 0 && (t = -t > i ? 0 : i + t), n = n > i ? i : n, n < 0 && (n += i), i = t > n ? 0 : n - t >>> 0, t >>>= 0;
|
|
5
|
+
for (var a = Array(i); ++r < i;) a[r] = e[r + t];
|
|
6
|
+
return a;
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { e as t };
|
|
@@ -269,7 +269,7 @@ function vt() {
|
|
|
269
269
|
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashDelete.js
|
|
270
270
|
function yt(e) {
|
|
271
271
|
var t = this.has(e) && delete this.__data__[e];
|
|
272
|
-
return this.size -= t
|
|
272
|
+
return this.size -= +!!t, t;
|
|
273
273
|
}
|
|
274
274
|
//#endregion
|
|
275
275
|
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashGet.js
|
|
@@ -294,7 +294,7 @@ function wt(e) {
|
|
|
294
294
|
var Tt = "__lodash_hash_undefined__";
|
|
295
295
|
function Et(e, t) {
|
|
296
296
|
var n = this.__data__;
|
|
297
|
-
return this.size += this.has(e)
|
|
297
|
+
return this.size += +!this.has(e), n[e] = B && t === void 0 ? Tt : t, this;
|
|
298
298
|
}
|
|
299
299
|
//#endregion
|
|
300
300
|
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Hash.js
|
|
@@ -379,7 +379,7 @@ function G(e, t) {
|
|
|
379
379
|
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheDelete.js
|
|
380
380
|
function Ft(e) {
|
|
381
381
|
var t = G(this, e).delete(e);
|
|
382
|
-
return this.size -= t
|
|
382
|
+
return this.size -= +!!t, t;
|
|
383
383
|
}
|
|
384
384
|
//#endregion
|
|
385
385
|
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheGet.js
|