@pubinfo/module-rbac 2.0.0-rc.2 → 2.0.0-rc.3
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-Dyqb3Uh3.js → ComponentSelect-B1ZyenXP.js} +897 -945
- package/dist/ComponentSelect-DlVJI5an.js +2 -0
- package/dist/DynamicRoutesForm-Cu3WhRpA.js +4 -0
- package/dist/{DynamicRoutesForm-D3nGj7oA.js → DynamicRoutesForm-qjbrykW4.js} +95 -95
- package/dist/HCheckList-Cze_TkQp.js +2 -0
- package/dist/HoverCard-B79q5sly.js +43 -0
- package/dist/HoverCard-U5WTpvFy.js +2 -0
- package/dist/{ImportExport-Yt6dABIv.js → ImportExport-Clbc8xaw.js} +65 -65
- package/dist/ImportExport-CtEZTU87.js +4 -0
- package/dist/MetaForm-BWy4Lpr8.js +5 -0
- package/dist/MetaForm-DpH9an5A.js +300 -0
- package/dist/MetaForm.css +1 -0
- package/dist/OrgAndPosition-3lCm4Fyb.js +2 -0
- package/dist/ResourceEdit-0_cYB0iu.js +338 -0
- package/dist/ResourceEdit-CYPzEbqn.js +10 -0
- package/dist/{ResourceRelation-BihfkBCe.js → ResourceRelation-CZ8hGgOm.js} +6 -6
- package/dist/ResourceRelation-DMWa09ae.js +3 -0
- package/dist/{ResourceRelation-CBPrqf2V.js → ResourceRelation-DkKdZ3TD.js} +2 -2
- package/dist/ResourceRelation.css +1 -1
- package/dist/ResourceRelation2.css +1 -1
- package/dist/{ResourceSelector-CxZ1ae30.js → ResourceSelector-ConJ30Jd.js} +48 -48
- package/dist/ResourceSelector.css +1 -1
- package/dist/{RoleRelation-BlWDNAM1.js → RoleRelation-B1D1NM_L.js} +1 -1
- package/dist/RoleRelation-DySyilcs.js +2 -0
- package/dist/RoleSelector-DOt30OLy.js +279 -0
- package/dist/TenantEdit-D8-Pt7sf.js +6 -0
- package/dist/{TenantEdit-Bt31IV9W.js → TenantEdit-DNJzo8SS.js} +19 -19
- package/dist/{UserAuthorization-Dhp0ZamX.js → UserAuthorization-DPHUk69M.js} +6 -6
- package/dist/UserAuthorization-DuioGghR.js +4 -0
- package/dist/UserAuthorization.css +1 -1
- package/dist/UserEdit-6HYbgtOh.js +4 -0
- package/dist/{UserEdit-CqH6hxTZ.js → UserEdit-C6eNXSCu.js} +24 -24
- package/dist/animation_item-C3pkH-cB.js +2 -0
- package/dist/{blackWhiteList-B7tUj2Rx.js → blackWhiteList-DQALdBZf.js} +10 -10
- package/dist/blackWhiteList.css +1 -1
- package/dist/{breadcrumb_setting-CIm-6QHw.js → breadcrumb_setting-D3UjJYhA.js} +32 -32
- package/dist/breadcrumb_setting.css +1 -1
- package/dist/browserType-BGl2j5RW.js +2 -0
- package/dist/components/OrgUserSelector/OrgSelector.vue.d.ts +1 -1
- package/dist/components/OrgUserSelector/UserSelector.vue.d.ts +1 -1
- package/dist/components/ResourceSelector/index.vue.d.ts +1 -1
- package/dist/composables/useWebSocketManager.d.ts +8 -0
- package/dist/createAndEditDataPermission-CAaxueTy.js +8 -0
- package/dist/{createAndEditDataPermission-Bd3tlIEE.js → createAndEditDataPermission-DnAcKvaE.js} +55 -55
- package/dist/createAndEditDataPermission.css +1 -1
- package/dist/{data-permission-Db1Lu9KO.js → data-permission-CLnnLoPt.js} +8 -8
- package/dist/data-permission.css +1 -1
- package/dist/{dictionary-XMJprxvM.js → dictionary-BFM0Mx0P.js} +3 -3
- package/dist/{drawerBlackWhiteList-D-Sq4mul.js → drawerBlackWhiteList-BYACpO3D.js} +9 -9
- package/dist/drawerBlackWhiteList-C3xS7Kxx.js +3 -0
- package/dist/{drawerDictionary-Bw3w5PTm.js → drawerDictionary-BUBLrbTi.js} +13 -13
- package/dist/drawerDictionary-Bk0BgL7i.js +4 -0
- package/dist/{drawerDictionaryItem-4WIgL3No.js → drawerDictionaryItem-CfOPleN6.js} +14 -14
- package/dist/drawerDictionaryItem-Dy2T56AH.js +4 -0
- package/dist/{drawerGroup-932n7Ywc.js → drawerGroup-Bly3CWfM.js} +10 -10
- package/dist/drawerGroup-ZyzAWXOl.js +3 -0
- package/dist/{drawerOrganization-IwZZkHWM.js → drawerOrganization-BhO5-PP5.js} +27 -27
- package/dist/drawerOrganization-HSVB8JzO.js +3 -0
- package/dist/{drawerPosition-BiO92_At.js → drawerPosition-CM0NBfoR.js} +15 -15
- package/dist/drawerPosition-vsuG4JYe.js +3 -0
- package/dist/drawerRegion-BXZ751ge.js +3 -0
- package/dist/{drawerRegion-CNOK55im.js → drawerRegion-CGySAL6D.js} +17 -17
- package/dist/{drawerRole-IIsKhycU.js → drawerRole-BE0utb7R.js} +9 -9
- package/dist/drawerRole-BVeaz3Yb.js +5 -0
- package/dist/drawerRole-BdoMYLYW.js +215 -0
- package/dist/drawerRole-BeUNs7cF.js +6 -0
- package/dist/drawerRole-DNsK5a6O.js +3 -0
- package/dist/{drawerRole-PnDochPg.js → drawerRole-DS7fbx1h.js} +10 -10
- package/dist/{group-BzuuCGyR.js → group-B1gGoTD5.js} +10 -10
- package/dist/group.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2065 -1875
- package/dist/{itemlist-KOYuEUk4.js → itemlist-uCHnA_We.js} +3 -3
- package/dist/{layout_setting-DQgWzV7M.js → layout_setting-DMvxwL31.js} +20 -20
- package/dist/layout_setting.css +1 -1
- package/dist/{loginHistoryDetail-DgHx6n66.js → loginHistoryDetail-BAYuSqvw.js} +2 -2
- package/dist/loginHistoryDetail-DiuNa6Sv.js +4 -0
- package/dist/{login_history-Co6JLGsd.js → login_history-BexfCN-1.js} +7 -7
- package/dist/login_history.css +1 -1
- package/dist/{menu_setting-B0QIQ1um.js → menu_setting-BXR3EAXD.js} +43 -43
- package/dist/menu_setting.css +1 -1
- package/dist/not-data-OpiacaSk.js +2 -0
- package/dist/{operateHistoryDetail-BrdNmYD0.js → operateHistoryDetail-DiuqMTkN.js} +2 -2
- package/dist/operateHistoryDetail-r30ZBNqw.js +4 -0
- package/dist/{operate_history-CVeIorOr.js → operate_history-hXxS3atI.js} +7 -7
- package/dist/operate_history.css +1 -1
- package/dist/{organization-CXMk4mRo.js → organization-cvYm9P9w.js} +2647 -2647
- package/dist/organization.css +1 -1
- package/dist/{other_setting-DK9MHysY.js → other_setting-DjVQevBW.js} +69 -69
- package/dist/other_setting.css +1 -1
- package/dist/{page_animation_setting-tSYfjx-m.js → page_animation_setting-DgHHmFEc.js} +52 -52
- package/dist/page_animation_setting.css +1 -1
- package/dist/{page_w_setting-BDI5KsA-.js → page_w_setting-B_im6vBo.js} +20 -20
- package/dist/page_w_setting.css +1 -1
- package/dist/{position-BjUZQQUz.js → position-BkpbHXYP.js} +2 -2
- package/dist/{region-BsX0gK_y.js → region-DVkbjI9t.js} +6 -6
- package/dist/{resource-DKhlH74I.js → resource-CrhX7VRK.js} +13 -11
- package/dist/{role-ffXddsAo.js → role-PjmrOdFd.js} +6 -6
- package/dist/{role_group-BBH28A40.js → role_group-Dlx-6BZF.js} +2 -2
- package/dist/routeSystem-Dg0b6mAl.js +2 -0
- package/dist/{safe_setting-Dis73Gsw.js → safe_setting-DpWUCv2p.js} +1 -1
- package/dist/setItem-9ZBl0BlF.js +5 -0
- package/dist/setItem-BenNySNl.js +77 -0
- package/dist/setItem.css +1 -1
- package/dist/stores/view.d.ts +56 -0
- package/dist/{tabbar_setting-DGwk_Oec.js → tabbar_setting-9UKDc1Ev.js} +38 -38
- package/dist/tabbar_setting.css +1 -1
- package/dist/{tenant-BhA6R8aJ.js → tenant-BGtOP_wo.js} +5 -5
- package/dist/{theme_setting-Ca1YGTdZ.js → theme_setting-BBLaZ4NS.js} +8 -8
- package/dist/theme_setting.css +1 -1
- package/dist/{toolbar_setting-Cmrpyxgs.js → toolbar_setting-OemNp6pO.js} +37 -37
- package/dist/toolbar_setting.css +1 -1
- package/dist/{useAppAndResource-BgnrL15l.js → useAppAndResource-CeMCjg2v.js} +1 -1
- package/dist/{user-Bnb1cvVD.js → user-JCiGXodF.js} +11 -11
- package/dist/user.css +1 -1
- package/dist/utils/routeSystem.d.ts +55 -0
- package/dist/views/blackWhiteList/index.vue.d.ts +2 -2
- package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +5 -5
- package/dist/views/data-permission/index.vue.d.ts +7 -7
- package/dist/views/dictionary/index.vue.d.ts +2 -2
- package/dist/views/dictionary/itemlist.vue.d.ts +2 -2
- package/dist/views/group/index.vue.d.ts +2 -2
- package/dist/views/log_center/login_history.vue.d.ts +2 -2
- package/dist/views/log_center/operate_history.vue.d.ts +2 -2
- package/dist/views/position/index.vue.d.ts +2 -2
- package/dist/views/region/index.vue.d.ts +2 -2
- package/dist/views/resource/components/HoverCard.vue.d.ts +21 -0
- package/dist/views/resource/index.vue.d.ts +2 -2
- package/dist/views/resource/model.d.ts +3 -1
- package/dist/views/role/components/ResourceRelation.vue.d.ts +2 -2
- package/dist/views/role/components/drawerRole.vue.d.ts +2 -2
- package/dist/views/role/index.vue.d.ts +6 -6
- package/dist/views/role_group/index.vue.d.ts +2 -2
- package/dist/views/tenant/components/TenantEdit.vue.d.ts +2 -2
- package/dist/views/tenant/index.vue.d.ts +4 -4
- package/dist/views/user/index.vue.d.ts +2 -2
- package/dist/{watermark_setting-BnBt5gdM.js → watermark_setting-C1VFRfbW.js} +111 -111
- package/dist/watermark_setting.css +1 -1
- package/package.json +7 -7
- package/src/composables/useWebSocketManager.ts +104 -0
- package/src/index.ts +22 -0
- package/src/stores/view.ts +292 -0
- package/src/utils/routeSystem.ts +53 -0
- package/src/views/region/index.vue +1 -1
- package/src/views/resource/components/ComponentSelect.vue +12 -119
- package/src/views/resource/components/HoverCard.vue +62 -0
- package/src/views/resource/components/MetaForm.vue +129 -67
- package/src/views/resource/components/ResourceEdit.vue +33 -4
- package/src/views/resource/hooks/useMetaForm.ts +23 -0
- package/src/views/resource/model.ts +5 -1
- package/src/views/watermark_setting/index.vue +2 -2
- package/dist/ComponentSelect-Din5Vses.js +0 -2
- package/dist/DynamicRoutesForm-CkmCaHum.js +0 -4
- package/dist/HCheckList-Dd2Tx0jW.js +0 -2
- package/dist/ImportExport-BbZkZEW_.js +0 -4
- package/dist/MetaForm-CI-T2qEE.js +0 -284
- package/dist/MetaForm-CrsQmdOg.js +0 -4
- package/dist/OrgAndPosition-CDCim7yM.js +0 -2
- package/dist/ResourceEdit-BFXA953U.js +0 -309
- package/dist/ResourceEdit-V6gt22gW.js +0 -8
- package/dist/ResourceRelation-BnLQZey7.js +0 -3
- package/dist/RoleRelation-CAMzPMFz.js +0 -2
- package/dist/RoleSelector-DTnDRRTQ.js +0 -279
- package/dist/TenantEdit-DYHJehf0.js +0 -6
- package/dist/UserAuthorization-BdHxAQlK.js +0 -4
- package/dist/UserEdit-CqrRx717.js +0 -4
- package/dist/animation_item-COb6VI4T.js +0 -2
- package/dist/browserType-D2cPQa0k.js +0 -2
- package/dist/createAndEditDataPermission-6pvYsJo9.js +0 -8
- package/dist/drawerBlackWhiteList-DK4g_CpC.js +0 -3
- package/dist/drawerDictionary-DHIcxPrY.js +0 -4
- package/dist/drawerDictionaryItem-dg1sIDYE.js +0 -4
- package/dist/drawerGroup-CrF2c8UJ.js +0 -3
- package/dist/drawerOrganization-b39q3V33.js +0 -3
- package/dist/drawerPosition-BjoDy0cQ.js +0 -3
- package/dist/drawerRegion-omVT_dpq.js +0 -3
- package/dist/drawerRole-BaQBb2-J.js +0 -215
- package/dist/drawerRole-BqMh5l11.js +0 -5
- package/dist/drawerRole-D7VJRLmp.js +0 -6
- package/dist/drawerRole-dJ3m0_K2.js +0 -3
- package/dist/loginHistoryDetail-BNGtarOv.js +0 -4
- package/dist/not-data-uXybSS43.js +0 -2
- package/dist/operateHistoryDetail-DsM4L8Nz.js +0 -4
- package/dist/setItem-CjNn98dC.js +0 -77
- package/dist/setItem-H6NRNSt7.js +0 -5
- /package/dist/{HCheckList-3zLNVNr0.js → HCheckList-CmS0Zgjk.js} +0 -0
- /package/dist/{OrgAndPosition-BK5MTlOO.js → OrgAndPosition-DYxNkasL.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-Bvl99pNT.js → _plugin-vue_export-helper-DziIhCOI.js} +0 -0
- /package/dist/{add-child-sIXCU5sL.js → add-child-BqjLtFNF.js} +0 -0
- /package/dist/{animation_item-D78koyTo.js → animation_item-Cg-CB3zX.js} +0 -0
- /package/dist/{authority-DQ4-SayE.js → authority-BCFCPQkb.js} +0 -0
- /package/dist/{authorize-CR54jxEa.js → authorize-BykMzt1r.js} +0 -0
- /package/dist/{blacklist-disable-ypFSVSX1.js → blacklist-disable-COoLZMSA.js} +0 -0
- /package/dist/{blacklist-enable-DlkD_15-.js → blacklist-enable-LZep1trj.js} +0 -0
- /package/dist/{browser-chrome-DNH4U6iO.js → browser-chrome-D0rex7Ir.js} +0 -0
- /package/dist/{browser-edge-4sSjlzO1.js → browser-edge-KCb_AIL5.js} +0 -0
- /package/dist/{browser-ie-yTwVV0GC.js → browser-ie-C1znjJM-.js} +0 -0
- /package/dist/{browser-other-Jax-vzDs.js → browser-other-C4er8PkV.js} +0 -0
- /package/dist/{browser-safari-B7PIezpj.js → browser-safari-BPRC1TV-.js} +0 -0
- /package/dist/{browserType-DZrDbVVY.js → browserType-E4RCiZfN.js} +0 -0
- /package/dist/{configData-CONUFxaH.js → configData-DQOHeFW2.js} +0 -0
- /package/dist/{dayjs.min-KffHrkDe.js → dayjs.min-DcxwBe2I.js} +0 -0
- /package/dist/{edit-CCL7qbDV.js → edit-C9HH0bNg.js} +0 -0
- /package/dist/{enum-DUjQrWbG.js → enum-B1DCzyaW.js} +0 -0
- /package/dist/{enum-CUMv4gQ2.js → enum-BWzxzuim.js} +0 -0
- /package/dist/{enum-B-lkiBy0.js → enum-CYW8g64p.js} +0 -0
- /package/dist/{enum-BMY6bmPA.js → enum-D0U38jb6.js} +0 -0
- /package/dist/{enum-Bg70i-vM.js → enum-VH4_jOj5.js} +0 -0
- /package/dist/{icard-BUuV9yW4.js → icard-FW0Ro50-.js} +0 -0
- /package/dist/{icon_animation-rPC0qi0K.js → icon_animation-DuNUKCIP.js} +0 -0
- /package/dist/{icon_breadcrumb-BOiEdwRY.js → icon_breadcrumb-DrPNYW5B.js} +0 -0
- /package/dist/{icon_copyright-zk1pF8Jj.js → icon_copyright-Di3Yr0PZ.js} +0 -0
- /package/dist/{icon_jt-BMoQoZvf.js → icon_jt-C4rQLl9Y.js} +0 -0
- /package/dist/{icon_layout-KBHA8xU_.js → icon_layout-5L9E7uN2.js} +0 -0
- /package/dist/{icon_mainpage-BTdCCyi2.js → icon_mainpage-DMKqRgmE.js} +0 -0
- /package/dist/{icon_menu-5k8XiWt5.js → icon_menu-Cp7-Zght.js} +0 -0
- /package/dist/{icon_page_size-DUMZ6xhJ.js → icon_page_size-Dc0zqT2W.js} +0 -0
- /package/dist/{icon_position_type-Cnkn2IzO.js → icon_position_type-DH2qxQQE.js} +0 -0
- /package/dist/{icon_safe_manage-B0PtL90p.js → icon_safe_manage-DXYWl1y-.js} +0 -0
- /package/dist/{icon_screen_scale-CwVhfflc.js → icon_screen_scale-DwC6qqx2.js} +0 -0
- /package/dist/{icon_system_manage-vM71UmjM.js → icon_system_manage-BYTldLly.js} +0 -0
- /package/dist/{icon_tabbar-CuMnIey0.js → icon_tabbar-CxffARwI.js} +0 -0
- /package/dist/{icon_toolbar-BoCbAU3P.js → icon_toolbar-CsxnTrNJ.js} +0 -0
- /package/dist/{icon_topbar-DGIDBcE6.js → icon_topbar-DS-oEZFA.js} +0 -0
- /package/dist/{icon_watermark-BBU-lOdN.js → icon_watermark-DDXsHlfQ.js} +0 -0
- /package/dist/{log-center-Z3WDfhg1.js → log-center-BFjZ4IE1.js} +0 -0
- /package/dist/{log-BgIwPjNu.js → log-hgUXTuhy.js} +0 -0
- /package/dist/{not-data-DejN9beo.js → not-data-Bw8FlpyB.js} +0 -0
- /package/dist/{org-main-C2g7AMMY.js → org-main-D5Isevbc.js} +0 -0
- /package/dist/{org-unmain-CjGtvuIa.js → org-unmain-BHBqSuCz.js} +0 -0
- /package/dist/{remove-BroXCqy9.js → remove-DKMMsJNq.js} +0 -0
- /package/dist/{resource-app-DV2RZiRk.js → resource-app-DZwdNG6F.js} +0 -0
- /package/dist/{resource-btn-Dw9-L0P5.js → resource-btn-DPX0oM2L.js} +0 -0
- /package/dist/{resource-dynamic-Cmk2ihZb.js → resource-dynamic-Cb_vjMjt.js} +0 -0
- /package/dist/{resource-index-D9J-wVCc.js → resource-index-ah4NpEob.js} +0 -0
- /package/dist/{resource-menu-XnlgciPe.js → resource-menu-CzWI03EU.js} +0 -0
- /package/dist/{resource-micro-DzYCcl5c.js → resource-micro-Ca0NS7j_.js} +0 -0
- /package/dist/{resource-nonmenu-8bXZBBWf.js → resource-nonmenu-Deitjo_5.js} +0 -0
- /package/dist/{setting-manage-BPwzU94V.js → setting-manage-B3vaM0w1.js} +0 -0
- /package/dist/{stores-Di6SQ3pp.js → stores-D6JJmBEU.js} +0 -0
- /package/dist/{theme-check-mark-Dz4lGIXE.js → theme-check-mark-BK7E8lqd.js} +0 -0
- /package/dist/{theme-title-CPXdAbpI.js → theme-title-aqbHq846.js} +0 -0
- /package/dist/{view-D4SR4EYn.js → view-C6Eo1zRL.js} +0 -0
- /package/dist/{zddata-Cdy8vScr.js → zddata-fjEtQ3lZ.js} +0 -0
- /package/dist/{zy_checked-xjGWlIXf.js → zy_checked-DTsDCC94.js} +0 -0
- /package/dist/{zy_default-kwFuicHB.js → zy_default-BaIuMKw-.js} +0 -0
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { Z as e, a1 as t, a3 as n, am as r } from "./index.js";
|
|
2
|
+
import { b as i } from "./useAppAndResource-CeMCjg2v.js";
|
|
3
|
+
import { b as a } from "./ResourceSelector-ConJ30Jd.js";
|
|
4
|
+
import { Fragment as o, createBlock as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, isRef as ee, openBlock as p, reactive as m, ref as h, renderList as g, resolveComponent as _, toDisplayString as v, unref as y, withCtx as b } from "vue";
|
|
5
|
+
import { message as x } from "ant-design-vue";
|
|
6
|
+
import { Button as te, Drawer as S, Form as C, FormItem as w, Input as T, Select as E, Space as D, Switch as O, Textarea as k, Tooltip as A } from "ant-design-vue/es";
|
|
7
|
+
let j = /* @__PURE__ */ function(e) {
|
|
8
|
+
return e.ADD = "新增", e.EDIT = "修改", e.REMOVE = "删除", e.RESOURCE_RELATION = "分配查看", e;
|
|
9
|
+
}({}), M = /* @__PURE__ */ function(e) {
|
|
10
|
+
return e.OWNER = "1", e.ALL = "2", e;
|
|
11
|
+
}({}), N = /* @__PURE__ */ function(e) {
|
|
12
|
+
return e[e.ON = 1] = "ON", e[e.OFF = 0] = "OFF", e;
|
|
13
|
+
}({});
|
|
14
|
+
const P = [{
|
|
15
|
+
label: "仅自己",
|
|
16
|
+
value: M.OWNER
|
|
17
|
+
}, {
|
|
18
|
+
label: "全部可见",
|
|
19
|
+
value: M.ALL
|
|
20
|
+
}];
|
|
21
|
+
N.ON, N.OFF;
|
|
22
|
+
const F = { class: "pt-10px" }, I = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" }, L = {
|
|
23
|
+
key: 1,
|
|
24
|
+
class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]"
|
|
25
|
+
};
|
|
26
|
+
var R = /* @__PURE__ */ f({
|
|
27
|
+
name: "DrawerRole",
|
|
28
|
+
__name: "drawerRole",
|
|
29
|
+
emits: ["submit"],
|
|
30
|
+
setup(f, { expose: _, emit: M }) {
|
|
31
|
+
let N = M, { resourceModelRef: R, selectedResources: z, updateTreeDataAndResourceMap: B, setSelectedResources: V, updateSelectedResources: H, clearSelectedResources: U, openResourceModel: W } = i(), G = {
|
|
32
|
+
name: [{
|
|
33
|
+
required: !0,
|
|
34
|
+
message: "请输入名称",
|
|
35
|
+
trigger: "change"
|
|
36
|
+
}, {
|
|
37
|
+
min: 2,
|
|
38
|
+
max: 32,
|
|
39
|
+
message: "角色名称长度不能少于2位,不能超过32位",
|
|
40
|
+
trigger: "change"
|
|
41
|
+
}],
|
|
42
|
+
code: [{
|
|
43
|
+
required: !0,
|
|
44
|
+
message: "请输入编号",
|
|
45
|
+
trigger: "change"
|
|
46
|
+
}, {
|
|
47
|
+
min: 2,
|
|
48
|
+
max: 32,
|
|
49
|
+
message: "角色编码长度不能少于2位,不能超过32位",
|
|
50
|
+
trigger: "change"
|
|
51
|
+
}],
|
|
52
|
+
viewScope: [{
|
|
53
|
+
required: !0,
|
|
54
|
+
message: "请选择可见范围",
|
|
55
|
+
trigger: "change"
|
|
56
|
+
}],
|
|
57
|
+
resourceIds: [{
|
|
58
|
+
required: !0,
|
|
59
|
+
validator: K,
|
|
60
|
+
trigger: ["blur", "change"]
|
|
61
|
+
}]
|
|
62
|
+
};
|
|
63
|
+
function K(e, t) {
|
|
64
|
+
return t && t.length > 0 ? Promise.resolve() : Promise.reject(/* @__PURE__ */ Error("请选择所属资源"));
|
|
65
|
+
}
|
|
66
|
+
let q = m({
|
|
67
|
+
title: "",
|
|
68
|
+
type: ""
|
|
69
|
+
}), [J, Y] = r(!1), X = h(), Z = h({ enable: !0 });
|
|
70
|
+
async function ne(t, n) {
|
|
71
|
+
if (q.title = t, t === j.EDIT) {
|
|
72
|
+
let t = await e({ id: n?.id });
|
|
73
|
+
t.success && (Z.value = t.data ?? {}, await B(""), Z.value.resourceIds && H(Z.value.resourceIds));
|
|
74
|
+
} else Z.value = { enable: !0 }, U(), await B("");
|
|
75
|
+
Y(!0);
|
|
76
|
+
}
|
|
77
|
+
let [re, Q] = r(!1);
|
|
78
|
+
function ie() {
|
|
79
|
+
let e = q.title === j.EDIT ? n : t;
|
|
80
|
+
X.value?.validate().then(() => {
|
|
81
|
+
Q(!0);
|
|
82
|
+
let t = { ...Z.value };
|
|
83
|
+
e(t).then((e) => {
|
|
84
|
+
e.success && (x.success(`${q.title}成功!`), Y(!1), N("submit"));
|
|
85
|
+
}).finally(() => Q(!1));
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
function $() {
|
|
89
|
+
Z.value = { enable: !0 }, Y(!1);
|
|
90
|
+
}
|
|
91
|
+
function ae() {
|
|
92
|
+
Z.value.resourceIds ? W(Z.value.resourceIds) : W([]);
|
|
93
|
+
}
|
|
94
|
+
function oe(e) {
|
|
95
|
+
Z.value.resourceIds = e.map((e) => e.id), V(e);
|
|
96
|
+
}
|
|
97
|
+
return _({ open: ne }), (e, t) => {
|
|
98
|
+
let n = T, r = w, i = E, f = O, m = k, h = te, _ = A, x = C, M = D, N = S;
|
|
99
|
+
return p(), s(N, {
|
|
100
|
+
open: y(J),
|
|
101
|
+
"onUpdate:open": t[6] ||= (e) => ee(J) ? J.value = e : null,
|
|
102
|
+
title: `${q.title}角色`,
|
|
103
|
+
placement: "right",
|
|
104
|
+
width: 600,
|
|
105
|
+
"destroy-on-close": "",
|
|
106
|
+
"footer-style": { textAlign: "right" },
|
|
107
|
+
onClose: $
|
|
108
|
+
}, {
|
|
109
|
+
footer: b(() => [d(M, null, {
|
|
110
|
+
default: b(() => [d(h, { onClick: $ }, {
|
|
111
|
+
default: b(() => t[8] ||= [u(" 取消 ")]),
|
|
112
|
+
_: 1,
|
|
113
|
+
__: [8]
|
|
114
|
+
}), d(h, {
|
|
115
|
+
type: "primary",
|
|
116
|
+
loading: y(re),
|
|
117
|
+
onClick: t[5] ||= (e) => ie()
|
|
118
|
+
}, {
|
|
119
|
+
default: b(() => t[9] ||= [u(" 提交 ")]),
|
|
120
|
+
_: 1,
|
|
121
|
+
__: [9]
|
|
122
|
+
}, 8, ["loading"])]),
|
|
123
|
+
_: 1
|
|
124
|
+
})]),
|
|
125
|
+
default: b(() => [d(x, {
|
|
126
|
+
ref_key: "formRef",
|
|
127
|
+
ref: X,
|
|
128
|
+
model: Z.value,
|
|
129
|
+
rules: G,
|
|
130
|
+
"label-col": { span: 4 }
|
|
131
|
+
}, {
|
|
132
|
+
default: b(() => [
|
|
133
|
+
d(r, {
|
|
134
|
+
label: "角色名称",
|
|
135
|
+
name: "name"
|
|
136
|
+
}, {
|
|
137
|
+
default: b(() => [d(n, {
|
|
138
|
+
value: Z.value.name,
|
|
139
|
+
"onUpdate:value": t[0] ||= (e) => Z.value.name = e,
|
|
140
|
+
maxlength: 32
|
|
141
|
+
}, null, 8, ["value"])]),
|
|
142
|
+
_: 1
|
|
143
|
+
}),
|
|
144
|
+
d(r, {
|
|
145
|
+
label: "角色编号",
|
|
146
|
+
name: "code"
|
|
147
|
+
}, {
|
|
148
|
+
default: b(() => [d(n, {
|
|
149
|
+
value: Z.value.code,
|
|
150
|
+
"onUpdate:value": t[1] ||= (e) => Z.value.code = e,
|
|
151
|
+
disabled: q.title === y(j).EDIT,
|
|
152
|
+
maxlength: 32
|
|
153
|
+
}, null, 8, ["value", "disabled"])]),
|
|
154
|
+
_: 1
|
|
155
|
+
}),
|
|
156
|
+
d(r, {
|
|
157
|
+
label: "可见范围",
|
|
158
|
+
name: "viewScope"
|
|
159
|
+
}, {
|
|
160
|
+
default: b(() => [d(i, {
|
|
161
|
+
value: Z.value.viewScope,
|
|
162
|
+
"onUpdate:value": t[2] ||= (e) => Z.value.viewScope = e,
|
|
163
|
+
options: y(P)
|
|
164
|
+
}, null, 8, ["value", "options"])]),
|
|
165
|
+
_: 1
|
|
166
|
+
}),
|
|
167
|
+
d(r, { label: "是否启用" }, {
|
|
168
|
+
default: b(() => [d(f, {
|
|
169
|
+
checked: Z.value.enable,
|
|
170
|
+
"onUpdate:checked": t[3] ||= (e) => Z.value.enable = e
|
|
171
|
+
}, null, 8, ["checked"])]),
|
|
172
|
+
_: 1
|
|
173
|
+
}),
|
|
174
|
+
d(r, { label: "角色描述" }, {
|
|
175
|
+
default: b(() => [d(m, {
|
|
176
|
+
value: Z.value.description,
|
|
177
|
+
"onUpdate:value": t[4] ||= (e) => Z.value.description = e,
|
|
178
|
+
maxlength: 250,
|
|
179
|
+
"show-count": ""
|
|
180
|
+
}, null, 8, ["value"])]),
|
|
181
|
+
_: 1
|
|
182
|
+
}),
|
|
183
|
+
d(r, {
|
|
184
|
+
label: "所属资源",
|
|
185
|
+
name: "resourceIds"
|
|
186
|
+
}, {
|
|
187
|
+
default: b(() => [d(h, {
|
|
188
|
+
type: "primary",
|
|
189
|
+
onClick: ae
|
|
190
|
+
}, {
|
|
191
|
+
default: b(() => t[7] ||= [u(" 编辑资源 ")]),
|
|
192
|
+
_: 1,
|
|
193
|
+
__: [7]
|
|
194
|
+
}), l("div", F, [(p(!0), c(o, null, g(y(z), (e) => (p(), c(o, { key: e }, [e.name.length > 20 ? (p(), s(_, {
|
|
195
|
+
key: 0,
|
|
196
|
+
title: e.name
|
|
197
|
+
}, {
|
|
198
|
+
default: b(() => [l("span", I, v(`${e.name.slice(0, 20)}...`), 1)]),
|
|
199
|
+
_: 2
|
|
200
|
+
}, 1032, ["title"])) : (p(), c("span", L, v(e.name), 1))], 64))), 128))])]),
|
|
201
|
+
_: 1
|
|
202
|
+
})
|
|
203
|
+
]),
|
|
204
|
+
_: 1
|
|
205
|
+
}, 8, ["model"]), d(a, {
|
|
206
|
+
ref_key: "resourceModelRef",
|
|
207
|
+
ref: R,
|
|
208
|
+
onSelect: oe
|
|
209
|
+
}, null, 512)]),
|
|
210
|
+
_: 1
|
|
211
|
+
}, 8, ["open", "title"]);
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
}), z = R;
|
|
215
|
+
export { z as b, j as c, P as d };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { V as e, X as t, Y as n, am as r } from "./index.js";
|
|
2
|
-
import { b as i } from "./RoleSelector-
|
|
2
|
+
import { b as i } from "./RoleSelector-DOt30OLy.js";
|
|
3
3
|
import { Fragment as a, createBlock as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, isRef as f, openBlock as p, reactive as m, ref as h, renderList as g, resolveComponent as _, toDisplayString as v, unref as y, withCtx as b } from "vue";
|
|
4
4
|
import { message as x } from "ant-design-vue";
|
|
5
5
|
import { Button as S, Drawer as C, Form as w, FormItem as T, Input as E, Space as D, Switch as O, Textarea as k, Tooltip as A } from "ant-design-vue/es";
|
|
@@ -79,7 +79,7 @@ var I = /* @__PURE__ */ d({
|
|
|
79
79
|
return p(), o(M, {
|
|
80
80
|
open: y(B),
|
|
81
81
|
"onUpdate:open": t[4] ||= (e) => f(B) ? B.value = e : null,
|
|
82
|
-
title: `${
|
|
82
|
+
title: `${z.title}角色组`,
|
|
83
83
|
placement: "right",
|
|
84
84
|
width: 600,
|
|
85
85
|
"destroy-on-close": "",
|
|
@@ -105,7 +105,7 @@ var I = /* @__PURE__ */ d({
|
|
|
105
105
|
default: b(() => [u(x, {
|
|
106
106
|
ref_key: "formRef",
|
|
107
107
|
ref: H,
|
|
108
|
-
model:
|
|
108
|
+
model: U.value,
|
|
109
109
|
rules: L,
|
|
110
110
|
"label-col": { span: 4 }
|
|
111
111
|
}, {
|
|
@@ -115,23 +115,23 @@ var I = /* @__PURE__ */ d({
|
|
|
115
115
|
name: "name"
|
|
116
116
|
}, {
|
|
117
117
|
default: b(() => [u(n, {
|
|
118
|
-
value:
|
|
119
|
-
"onUpdate:value": t[0] ||= (e) =>
|
|
118
|
+
value: U.value.name,
|
|
119
|
+
"onUpdate:value": t[0] ||= (e) => U.value.name = e,
|
|
120
120
|
maxlength: 32
|
|
121
121
|
}, null, 8, ["value"])]),
|
|
122
122
|
_: 1
|
|
123
123
|
}),
|
|
124
124
|
u(r, { label: "是否启用" }, {
|
|
125
125
|
default: b(() => [u(d, {
|
|
126
|
-
checked:
|
|
127
|
-
"onUpdate:checked": t[1] ||= (e) =>
|
|
126
|
+
checked: U.value.enable,
|
|
127
|
+
"onUpdate:checked": t[1] ||= (e) => U.value.enable = e
|
|
128
128
|
}, null, 8, ["checked"])]),
|
|
129
129
|
_: 1
|
|
130
130
|
}),
|
|
131
131
|
u(r, { label: "角色组描述" }, {
|
|
132
132
|
default: b(() => [u(m, {
|
|
133
|
-
value:
|
|
134
|
-
"onUpdate:value": t[2] ||= (e) =>
|
|
133
|
+
value: U.value.description,
|
|
134
|
+
"onUpdate:value": t[2] ||= (e) => U.value.description = e,
|
|
135
135
|
maxlength: 250,
|
|
136
136
|
"show-count": ""
|
|
137
137
|
}, null, 8, ["value"])]),
|
|
@@ -148,7 +148,7 @@ var I = /* @__PURE__ */ d({
|
|
|
148
148
|
default: b(() => t[5] ||= [l(" 编辑角色 ")]),
|
|
149
149
|
_: 1,
|
|
150
150
|
__: [5]
|
|
151
|
-
}), c("div", N, [(p(!0), s(a, null, g(
|
|
151
|
+
}), c("div", N, [(p(!0), s(a, null, g(W.value, (e) => (p(), s(a, { key: e }, [(e?.name || "").length > 20 ? (p(), o(_, {
|
|
152
152
|
key: 0,
|
|
153
153
|
title: e.name
|
|
154
154
|
}, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { af as e, ah as t } from "./index.js";
|
|
2
|
-
import { b as n } from "./_plugin-vue_export-helper-
|
|
3
|
-
import { b as r } from "./enum-
|
|
4
|
-
import { b as i } from "./drawerGroup-
|
|
2
|
+
import { b as n } from "./_plugin-vue_export-helper-DziIhCOI.js";
|
|
3
|
+
import { b as r } from "./enum-BWzxzuim.js";
|
|
4
|
+
import { b as i } from "./drawerGroup-Bly3CWfM.js";
|
|
5
5
|
import { PubinfoIcon as a } from "pubinfo";
|
|
6
6
|
import { createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, openBlock as p, ref as m, resolveDirective as h, toDisplayString as g, unref as _, withCtx as v, withDirectives as y } from "vue";
|
|
7
7
|
import { PlusCircleOutlined as b } from "@ant-design/icons-vue";
|
|
@@ -116,8 +116,8 @@ var F = /* @__PURE__ */ f({
|
|
|
116
116
|
return (e, t) => {
|
|
117
117
|
let n = T, m = E, x = b, S = C, U = a, W = w, G = h("auth");
|
|
118
118
|
return p(), c("div", O, [l("div", k, [d(m, {
|
|
119
|
-
"active-key":
|
|
120
|
-
"onUpdate:activeKey": t[0] ||= (e) =>
|
|
119
|
+
"active-key": f.value.type,
|
|
120
|
+
"onUpdate:activeKey": t[0] ||= (e) => f.value.type = e,
|
|
121
121
|
class: "tabs_custom",
|
|
122
122
|
onChange: V
|
|
123
123
|
}, {
|
|
@@ -135,13 +135,13 @@ var F = /* @__PURE__ */ f({
|
|
|
135
135
|
"row-key": "id",
|
|
136
136
|
request: z,
|
|
137
137
|
columns: B,
|
|
138
|
-
"data-source":
|
|
138
|
+
"data-source": F.value,
|
|
139
139
|
"auto-height": "",
|
|
140
140
|
scroll: { x: 1100 }
|
|
141
141
|
}, {
|
|
142
142
|
toolbar: v(() => [y((p(), o(S, {
|
|
143
143
|
type: "primary",
|
|
144
|
-
onClick: t[1] ||= (e) => H(_(r).ADD,
|
|
144
|
+
onClick: t[1] ||= (e) => H(_(r).ADD, f.value.type)
|
|
145
145
|
}, {
|
|
146
146
|
default: v(() => [d(x), u(" " + g(_(r).ADD), 1)]),
|
|
147
147
|
_: 1
|
|
@@ -149,13 +149,13 @@ var F = /* @__PURE__ */ f({
|
|
|
149
149
|
bodyCell: v(({ column: e, record: t }) => [e.dataIndex === "action" ? (p(), o(W, { key: 0 }, {
|
|
150
150
|
default: v(() => [y((p(), c("a", {
|
|
151
151
|
class: "flex items-center",
|
|
152
|
-
onClick: (e) => H(_(r).EDIT,
|
|
152
|
+
onClick: (e) => H(_(r).EDIT, f.value.type, t)
|
|
153
153
|
}, [d(U, {
|
|
154
154
|
name: "edit",
|
|
155
155
|
class: "text-base"
|
|
156
156
|
}), l("span", M, g(_(r).EDIT), 1)], 8, j)), [[G, "group_edit"]]), y((p(), c("span", {
|
|
157
157
|
class: "flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",
|
|
158
|
-
onClick: (e) => H(_(r).REMOVE,
|
|
158
|
+
onClick: (e) => H(_(r).REMOVE, f.value.type, t)
|
|
159
159
|
}, [d(U, {
|
|
160
160
|
name: "remove",
|
|
161
161
|
class: "text-base"
|
|
@@ -170,5 +170,5 @@ var F = /* @__PURE__ */ f({
|
|
|
170
170
|
}, null, 512)]);
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
-
}), I = /* @__PURE__ */ n(F, [["__scopeId", "data-v-
|
|
173
|
+
}), I = /* @__PURE__ */ n(F, [["__scopeId", "data-v-26bcb8d4"]]);
|
|
174
174
|
export { I as default };
|
package/dist/group.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.box_sh[data-v-
|
|
1
|
+
.box_sh[data-v-26bcb8d4]{--un-shadow:0 1px 2px 0 #00000008,0 1px 6px -1px #00000005,0 2px 4px 0 #00000005;box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.tabs_custom[data-v-26bcb8d4]{height:46px}.tabs_custom[data-v-26bcb8d4] .ant-tabs-nav{margin:0}.tabs_custom[data-v-26bcb8d4] .ant-tabs-nav .ant-tabs-nav-list{padding-left:1rem}
|