@pubinfo-nightly/module-rbac 2025.12.8 → 2025.12.25
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-D0OCk6H1.js +3572 -0
- package/dist/ComponentSelect-WO-3S5rH.js +2 -0
- package/dist/DynamicRoutesForm-DP_sq_Uu.js +168 -0
- package/dist/DynamicRoutesForm-DjZ3eVLW.js +4 -0
- package/dist/HCheckList-B5Qk_HBI.js +2 -0
- package/dist/HCheckList-DLBewmPw.js +36 -0
- package/dist/HoverCard-69ZIOivd.js +2 -0
- package/dist/HoverCard-BDFcxxvk.js +43 -0
- package/dist/IconSelect-1pVgA_5l.js +705 -0
- package/dist/IconSelect-C5KTdyzv.js +3 -0
- package/dist/IconSelect.css +1 -1
- package/dist/ImportExport-CL5uPlby.js +342 -0
- package/dist/ImportExport-CPy2rvv7.js +4 -0
- package/dist/LayoutForm-Cp4bBrYl.js +124 -0
- package/dist/LayoutForm-QFjwakyQ.js +4 -0
- package/dist/MetaForm-Bb-um1Zo.js +4 -0
- package/dist/MetaForm-CVSgktB_.js +38917 -0
- package/dist/OrgAndPosition-ClASobEv.js +183 -0
- package/dist/OrgAndPosition-DoiGY5xb.js +2 -0
- package/dist/ResourceEdit-BX6xdiXV.js +10 -0
- package/dist/ResourceEdit-Dwr5KLyS.js +380 -0
- package/dist/ResourceRelation-BIOzTOKA.js +2 -0
- package/dist/ResourceRelation-ChEwIbWM.js +76 -0
- package/dist/ResourceRelation-D_j898zp.js +90 -0
- package/dist/ResourceRelation.css +1 -1
- package/dist/ResourceRelation2.css +1 -1
- package/dist/RoleRelation-CyTcqRfZ.js +2 -0
- package/dist/RoleRelation-DzyVn5dk.js +78 -0
- package/dist/RoleSelector-Cd6_RUsc.js +275 -0
- package/dist/TenantEdit-BOvXk7BZ.js +245 -0
- package/dist/TenantEdit-BlMmL6q5.js +2 -0
- package/dist/UserAuthorization-DLeivbs7.js +232 -0
- package/dist/UserAuthorization-qGr1Sdat.js +3 -0
- package/dist/UserEdit-CwfyqNWf.js +3 -0
- package/dist/UserEdit-YKS1FVW_.js +319 -0
- package/dist/add-child-CFHHkjfg.js +2 -0
- package/dist/animation_item-BU-LInxP.js +4485 -0
- package/dist/animation_item-GzGItm3s.js +2 -0
- package/dist/api/modules/assist/gonggaofuwu.d.ts +7 -7
- package/dist/api/modules/assist/qunzujiekou.d.ts +7 -7
- package/dist/api/modules/assist/quyujiekou.d.ts +6 -6
- package/dist/api/modules/configData/heibaimingdanfuwu.d.ts +6 -6
- package/dist/api/modules/configData/xitongpeizhifuwu.d.ts +15 -15
- package/dist/api/modules/configData/zidifuwu.d.ts +11 -11
- package/dist/api/modules/log/caozuorizhifuwu.d.ts +3 -3
- package/dist/api/modules/log/denglurizhifuwu.d.ts +3 -3
- package/dist/api/modules/rbac/gangweijiekou.d.ts +7 -7
- package/dist/api/modules/rbac/jiaosejiekou.d.ts +8 -8
- package/dist/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +8 -8
- package/dist/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +10 -10
- package/dist/api/modules/rbac/yonghujiekou.d.ts +16 -16
- package/dist/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +6 -6
- package/dist/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +5 -5
- package/dist/api/modules/rbac/ziyuandaorudaochuxiangguanjiekou.d.ts +7 -7
- package/dist/api/modules/rbac/ziyuanjiekou.d.ts +14 -14
- package/dist/api/modules/rbac/zuhuguanlijiekou.d.ts +6 -6
- package/dist/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +5 -5
- package/dist/api/modules/rbac/zuzhijiekou.d.ts +10 -10
- package/dist/api/request.d.ts +1 -1
- package/dist/authority-L7SfiMdP.js +2 -0
- package/dist/authorize-qMpV_BXT.js +2 -0
- package/dist/blackWhiteList-FZezar30.js +210 -0
- package/dist/blackWhiteList.css +1 -0
- package/dist/blacklist-disable-BT6Xx-JG.js +2 -0
- package/dist/blacklist-enable-CJ6DK_V2.js +2 -0
- package/dist/breadcrumb_setting-Ds-XJRR1.js +108 -0
- package/dist/browser-chrome-DuAegVCe.js +2 -0
- package/dist/browser-edge-DzkWdXRd.js +2 -0
- package/dist/browser-ie-DZ9g_MXr.js +2 -0
- package/dist/browser-other-BmkifoYq.js +2 -0
- package/dist/browser-safari-CXrCuF2a.js +2 -0
- package/dist/browserType-BXTT4j6i.js +2 -0
- package/dist/browserType-Dn_hQtAN.js +25 -0
- package/dist/chunk-Cpsc_9al.js +18 -0
- package/dist/cloneDeep-DDAtsK42.js +7 -0
- package/dist/components/DirectoryIcones/ComponentsIcones.vue.d.ts +3 -2
- package/dist/components/DirectoryIcones/FolderIcones.vue.d.ts +3 -2
- package/dist/components/DirectoryIcones/ModuleIcones.vue.d.ts +3 -2
- package/dist/components/DirectoryIcones/PackagesIcones.vue.d.ts +3 -2
- package/dist/components/DirectoryIcones/SrcIcones.vue.d.ts +3 -2
- package/dist/components/DirectoryIcones/ViewIcones.vue.d.ts +3 -2
- package/dist/components/DirectoryIcones/VueIcones.vue.d.ts +2 -1
- package/dist/components/GroupSelector/index.vue.d.ts +5 -10
- package/dist/components/JsonEditorModal/index.vue.d.ts +20 -0
- package/dist/components/OrgTree/index.vue.d.ts +6 -0
- package/dist/components/OrgUserSelector/OrgSelector.vue.d.ts +15 -18
- package/dist/components/OrgUserSelector/UserSelector.vue.d.ts +15 -18
- package/dist/components/OrgUserSelector/index.d.ts +4 -2
- package/dist/components/OrgUserSelector/provider.d.ts +1 -1
- package/dist/components/ResourceIcones/BoxColorPicker.vue.d.ts +4 -6
- package/dist/components/ResourceIcones/Select.vue.d.ts +14 -23
- package/dist/components/ResourceSelector/hooks/useAppAndResource.d.ts +16 -7
- package/dist/components/ResourceSelector/index.vue.d.ts +10 -14
- package/dist/components/RoleSelector/RoleSearch.vue.d.ts +6 -12
- package/dist/components/RoleSelector/RoleSelector.vue.d.ts +8 -12
- package/dist/components/RoleSelector/TooltipLabel.vue.d.ts +3 -2
- package/dist/components/RoleSelector/useRole.d.ts +68 -4
- package/dist/composables/useLottie.d.ts +1 -1
- package/dist/context.d.ts +2 -2
- package/dist/createAndEditDataPermission-CChlLDUm.js +5 -0
- package/dist/createAndEditDataPermission-CaOBJgoV.js +430 -0
- package/dist/createAndEditDataPermission.css +1 -1
- package/dist/data-permission-ZRQ-Aoib.js +152 -0
- package/dist/dayjs.min-sGDSMYRj.js +297 -0
- package/dist/dictionary-CtGgtPfc.js +179 -0
- package/dist/drawerBlackWhiteList-BqIDyn2Q.js +2 -0
- package/dist/drawerBlackWhiteList-CkbZ_9PZ.js +119 -0
- package/dist/drawerDictionary-D911w7pC.js +2 -0
- package/dist/drawerDictionary-dMHs-6Cw.js +125 -0
- package/dist/drawerDictionaryItem-CbTa_qL-.js +137 -0
- package/dist/drawerDictionaryItem-DLUI5Yuc.js +2 -0
- package/dist/drawerGroup-CEEDMBg9.js +3 -0
- package/dist/drawerGroup-DEuiiDPP.js +184 -0
- package/dist/drawerOrganization-CqEMD3gE.js +246 -0
- package/dist/drawerOrganization-mks5NMd9.js +2 -0
- package/dist/drawerPosition-Bd0s7qze.js +165 -0
- package/dist/drawerPosition-DwlTrlGA.js +2 -0
- package/dist/drawerRegion-DUbQAZuV.js +182 -0
- package/dist/drawerRegion-DwVzsZfT.js +2 -0
- package/dist/drawerRole-BNrbcSmr.js +3 -0
- package/dist/drawerRole-BxUIekjh.js +3 -0
- package/dist/drawerRole-CyA2oFht.js +4 -0
- package/dist/drawerRole-D5X7oHB_.js +153 -0
- package/dist/drawerRole-DNDyOvXw.js +166 -0
- package/dist/drawerRole-Dv61PBZR.js +208 -0
- package/dist/edit-fZ7h_z_Z.js +2 -0
- package/dist/enum-3E_sUqRF.js +50 -0
- package/dist/enum-3mYayxff.js +61 -0
- package/dist/enum-Cr7uWnB2.js +23 -0
- package/dist/enum-D2UEJsrC.js +4 -0
- package/dist/group-BbkZjv5e.js +172 -0
- package/dist/group.css +1 -0
- package/dist/icard-H-d9Pip-.js +2 -0
- package/dist/icon_animation-BCdRKkE5.js +2 -0
- package/dist/icon_breadcrumb-BR6LK8hP.js +2 -0
- package/dist/icon_copyright-BfWn1s6t.js +2 -0
- package/dist/icon_jt-DOMTq9De.js +2 -0
- package/dist/icon_layout-DKqAThpM.js +2 -0
- package/dist/icon_mainpage-CXB9JMGv.js +2 -0
- package/dist/icon_menu-BYQtWV-Q.js +2 -0
- package/dist/icon_page_size-r-z4oHWp.js +2 -0
- package/dist/icon_position_type-JDFdklRh.js +2 -0
- package/dist/icon_safe_manage-BDTIOduB.js +2 -0
- package/dist/icon_screen_scale-vEaAdr9S.js +2 -0
- package/dist/icon_system_manage-CkhQtieE.js +2 -0
- package/dist/icon_tabbar-DZNj-h-p.js +2 -0
- package/dist/icon_toolbar-BBYhGmEf.js +2 -0
- package/dist/icon_topbar-Bc379eaS.js +2 -0
- package/dist/icon_watermark-CTP8r-e2.js +2 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7503 -7465
- package/dist/interface.d.ts +2 -2
- package/dist/isEmpty-BvRqbmpu.js +13 -0
- package/dist/itemlist-By-FV6pN.js +156 -0
- package/dist/layout_setting-BUAgQ1Bk.js +68 -0
- package/dist/layout_setting.css +1 -0
- package/dist/log-center-CGT-BGAN.js +2 -0
- package/dist/log-vjU7aBPR.js +14 -0
- package/dist/loginHistoryDetail-C7GT2yME.js +77 -0
- package/dist/loginHistoryDetail-CkH5UUGU.js +3 -0
- package/dist/login_history-D08W00Qu.js +195 -0
- package/dist/login_history.css +1 -1
- package/dist/menu_setting-5Jet091Q.js +155 -0
- package/dist/not-data-Cx--tk_h.js +2 -0
- package/dist/not-data-tyTawN37.js +2 -0
- package/dist/operateHistoryDetail-BaNJRfwy.js +89 -0
- package/dist/operateHistoryDetail-CeVPJzD6.js +3 -0
- package/dist/operate_history-kJwIuPg2.js +190 -0
- package/dist/operate_history.css +1 -1
- package/dist/org-main-DnftBa38.js +2 -0
- package/dist/org-unmain-ByMarqFw.js +2 -0
- package/dist/organization-Cmj3DUXl.js +15322 -0
- package/dist/organization.css +1 -0
- package/dist/other_setting-DQ70WnZK.js +213 -0
- package/dist/other_setting.css +1 -0
- package/dist/page_animation_setting-Lp6cMuFM.js +108 -0
- package/dist/page_animation_setting.css +1 -0
- package/dist/page_w_setting-CD_HtSUv.js +63 -0
- package/dist/page_w_setting.css +1 -0
- package/dist/position-CLpbgKGj.js +166 -0
- package/dist/region-Dd9pt_Si.js +179 -0
- package/dist/remove-DfZZBE2T.js +2 -0
- package/dist/resource-B-gkg5Ti.js +271 -0
- package/dist/resource-app-QSLZ7Hts.js +2 -0
- package/dist/resource-btn-BcB4xMgR.js +2 -0
- package/dist/resource-dynamic-D69oEbaO.js +2 -0
- package/dist/resource-index-BIHr3PZY.js +2 -0
- package/dist/resource-menu-0JSNn7S7.js +2 -0
- package/dist/resource-micro-CcX_pmaJ.js +2 -0
- package/dist/resource-nonmenu-DFItasMT.js +2 -0
- package/dist/role-JGtvRObt.js +192 -0
- package/dist/role_group-CKOb_m63.js +171 -0
- package/dist/routeSystem-DXMoWhFo.js +2 -0
- package/dist/routes/index.d.ts +2 -2
- package/dist/routes/modules/authority.manage.menu.d.ts +1 -1
- package/dist/routes/modules/log.manage.menu.d.ts +1 -1
- package/dist/routes/modules/safe.manage.menu.d.ts +1 -1
- package/dist/routes/modules/stylesetting.manage.menu.d.ts +1 -1
- package/dist/routes/modules/system.manage.menu.d.ts +1 -1
- package/dist/safe_setting-G_ZP-jWQ.js +221 -0
- package/dist/setItem-Qa7UapHO.js +4 -0
- package/dist/setItem-yKhjmUh0.js +76 -0
- package/dist/setItem.css +1 -1
- package/dist/setting-manage-C9whamLP.js +2 -0
- package/dist/stores/view.d.ts +127 -22
- package/dist/stores-DPQF8JRt.js +2 -0
- package/dist/tabbar_setting-B3kMhRNm.js +139 -0
- package/dist/tenant-BBiCJkU_.js +177 -0
- package/dist/theme-check-mark-DG4oWCQN.js +2 -0
- package/dist/theme-title-BCYnl2jK.js +2 -0
- package/dist/theme_setting-vhNDLlkc.js +111 -0
- package/dist/theme_setting.css +1 -0
- package/dist/{index-C2G4xRrJ.js → toolbar_setting-DNBdxeGP.js} +140 -144
- package/dist/useAppAndResource-CPL2VpOJ.js +52 -0
- package/dist/user-DvCyUhZW.js +339 -0
- package/dist/utils/routeSystem.d.ts +133 -28
- package/dist/vanilla-picker-DcG96G63.js +724 -0
- package/dist/view-Bnu34EJT.js +2 -0
- package/dist/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +3 -8
- package/dist/views/blackWhiteList/index.vue.d.ts +2 -1534
- package/dist/views/breadcrumb_setting/animationData.d.ts +6 -6
- package/dist/views/breadcrumb_setting/index.vue.d.ts +2 -1
- package/dist/views/components/HCheckList.vue.d.ts +4 -3
- package/dist/views/components/animation_item.vue.d.ts +4 -5
- package/dist/views/components/setItem.vue.d.ts +3 -35
- package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +3 -169
- package/dist/views/data-permission/index.vue.d.ts +2 -1690
- package/dist/views/dictionary/components/drawerDictionary.vue.d.ts +3 -8
- package/dist/views/dictionary/components/drawerDictionaryItem.vue.d.ts +3 -8
- package/dist/views/dictionary/index.vue.d.ts +2 -1531
- package/dist/views/dictionary/itemlist.vue.d.ts +2 -1531
- package/dist/views/group/components/drawerGroup.vue.d.ts +3 -8
- package/dist/views/group/index.vue.d.ts +2 -1531
- package/dist/views/layout_setting/index.vue.d.ts +2 -1
- package/dist/views/log_center/components/browserType.vue.d.ts +4 -3
- package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +4 -10
- package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +4 -10
- package/dist/views/log_center/login_history.vue.d.ts +2 -1510
- package/dist/views/log_center/operate_history.vue.d.ts +2 -1510
- package/dist/views/menu_setting/animationData.d.ts +12 -12
- package/dist/views/menu_setting/index.vue.d.ts +2 -1
- package/dist/views/organization/components/drawerOrganization.vue.d.ts +3 -8
- package/dist/views/organization/components/drawerRole.vue.d.ts +3 -41
- package/dist/views/organization/index.vue.d.ts +2 -80
- package/dist/views/other_setting/animationData.d.ts +6 -6
- package/dist/views/other_setting/index.vue.d.ts +2 -1
- package/dist/views/other_setting/interface.d.ts +1 -1
- package/dist/views/page_animation_setting/animationData.d.ts +10 -10
- package/dist/views/page_animation_setting/index.vue.d.ts +2 -1
- package/dist/views/page_w_setting/index.vue.d.ts +2 -1
- package/dist/views/position/components/drawerPosition.vue.d.ts +3 -8
- package/dist/views/position/index.vue.d.ts +2 -1531
- package/dist/views/region/components/drawerRegion.vue.d.ts +3 -8
- package/dist/views/region/index.vue.d.ts +2 -1532
- package/dist/views/resource/components/ComponentSelect.vue.d.ts +5 -6
- package/dist/views/resource/components/DynamicRoutesForm.vue.d.ts +8 -6
- package/dist/views/resource/components/HoverCard.vue.d.ts +9 -12
- package/dist/views/resource/components/IconSelect.vue.d.ts +6 -5
- package/dist/views/resource/components/ImportExport.vue.d.ts +4 -7
- package/dist/views/resource/components/LayoutForm.vue.d.ts +6 -5
- package/dist/views/resource/components/MetaForm.vue.d.ts +6 -5
- package/dist/views/resource/components/ResourceEdit.vue.d.ts +4 -9
- package/dist/views/resource/components/RoleRelation.vue.d.ts +4 -3
- package/dist/views/resource/hooks/useLayoutForm.d.ts +5 -4
- package/dist/views/resource/hooks/useMetaForm.d.ts +12 -3
- package/dist/views/resource/index.vue.d.ts +2 -1570
- package/dist/views/resource/interface.d.ts +1 -1
- package/dist/views/role/components/ResourceRelation.vue.d.ts +4 -1512
- package/dist/views/role/components/drawerRole.vue.d.ts +3 -45
- package/dist/views/role/index.vue.d.ts +2 -3089
- package/dist/views/role_group/components/drawerRole.vue.d.ts +3 -41
- package/dist/views/role_group/index.vue.d.ts +2 -1564
- package/dist/views/safe_setting/index.vue.d.ts +2 -3
- package/dist/views/tabbar_setting/animationData.d.ts +10 -10
- package/dist/views/tabbar_setting/index.vue.d.ts +2 -1
- package/dist/views/tenant/components/TenantEdit.vue.d.ts +4 -10
- package/dist/views/tenant/index.vue.d.ts +2 -1533
- package/dist/views/theme_setting/index.vue.d.ts +2 -1
- package/dist/views/toolbar_setting/animationData.d.ts +14 -14
- package/dist/views/toolbar_setting/index.vue.d.ts +2 -1
- package/dist/views/user/components/OrgAndPosition.vue.d.ts +8 -7
- package/dist/views/user/components/UserAuthorization.vue.d.ts +3 -41
- package/dist/views/user/components/UserEdit.vue.d.ts +4 -9
- package/dist/views/user/index.vue.d.ts +2 -1593
- package/dist/views/watermark_setting/animationData.d.ts +2 -2
- package/dist/views/watermark_setting/index.vue.d.ts +2 -30
- package/dist/watermark_setting-CXp4Og0Y.js +191 -0
- package/dist/watermark_setting.css +1 -0
- package/dist/zddata-Ceyga3_2.js +2 -0
- package/dist/zy_checked-DvD7k9F8.js +2 -0
- package/dist/zy_default-DJ2tB3Fo.js +2 -0
- package/package.json +7 -5
- package/dist/ComponentSelect-ZLey_5w7.js +0 -4
- package/dist/ComponentSelect.vue_vue_type_style_index_0_lang-CMEO08Uz.js +0 -3981
- package/dist/DynamicRoutesForm-BU4EAISs.js +0 -4
- package/dist/DynamicRoutesForm.vue_vue_type_script_setup_true_lang-bEqJ03T_.js +0 -179
- package/dist/HCheckList-Dkxhu1br.js +0 -4
- package/dist/HCheckList.vue_vue_type_script_setup_true_lang-n_QczT28.js +0 -41
- package/dist/HoverCard-7agF2aDO.js +0 -4
- package/dist/HoverCard.vue_vue_type_script_setup_true_lang-DEScDCo1.js +0 -62
- package/dist/IconSelect-DtNpk3Rj.js +0 -4
- package/dist/IconSelect.vue_vue_type_script_setup_true_lang-D450SiKg.js +0 -757
- package/dist/ImportExport-DAe_Sl13.js +0 -4
- package/dist/ImportExport.vue_vue_type_script_setup_true_lang-CV0DrMvw.js +0 -456
- package/dist/LayoutForm-Pv6UyKl3.js +0 -173
- package/dist/MetaForm-BMPtZc0g.js +0 -42413
- package/dist/OrgAndPosition-R-YixdXG.js +0 -4
- package/dist/OrgAndPosition.vue_vue_type_script_setup_true_lang-jEjTok4n.js +0 -195
- package/dist/ResourceEdit-D59JUDvG.js +0 -4
- package/dist/ResourceEdit.vue_vue_type_script_setup_true_lang-IWn27Vz1.js +0 -429
- package/dist/ResourceRelation-CeM9Eq39.js +0 -90
- package/dist/ResourceRelation-qhIdXLAy.js +0 -111
- package/dist/RoleRelation-BuqK0cnl.js +0 -4
- package/dist/RoleRelation.vue_vue_type_script_setup_true_lang-BjEOlM2g.js +0 -93
- package/dist/RoleSelector.vue_vue_type_script_setup_true_lang-ZwsINUBu.js +0 -352
- package/dist/TenantEdit-C61O1pSu.js +0 -4
- package/dist/TenantEdit.vue_vue_type_script_setup_true_lang-BwsA9hth.js +0 -306
- package/dist/UserAuthorization-Ch_iKzms.js +0 -273
- package/dist/UserEdit-B1fnFcSC.js +0 -4
- package/dist/UserEdit.vue_vue_type_script_setup_true_lang-SIR1ZO_N.js +0 -315
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/add-child-B9gDBQjZ.js +0 -4
- package/dist/animation_item-BZ1HNA6o.js +0 -4
- package/dist/animation_item.vue_vue_type_script_setup_true_lang-CmwThjHB.js +0 -4858
- package/dist/authority-B-0S66Fv.js +0 -4
- package/dist/authorize-DnyYvAo3.js +0 -4
- package/dist/blacklist-disable-DzVU8JLV.js +0 -4
- package/dist/blacklist-enable-BmWQR1i4.js +0 -4
- package/dist/browser-chrome-O9MASusF.js +0 -4
- package/dist/browser-edge-Dk6N_uRy.js +0 -4
- package/dist/browser-ie-Dtz7hQTC.js +0 -4
- package/dist/browser-other-Crzi8vov.js +0 -4
- package/dist/browser-safari-DF0pVlrn.js +0 -4
- package/dist/browserType-DQySszjD.js +0 -4
- package/dist/browserType.vue_vue_type_script_setup_true_lang-od1-AmrS.js +0 -32
- package/dist/cloneDeep-BOLZdR62.js +0 -8
- package/dist/createAndEditDataPermission-DPeFulie.js +0 -4
- package/dist/createAndEditDataPermission.vue_vue_type_script_setup_true_lang-DlUIYtif.js +0 -528
- package/dist/dayjs.min-B2Yn1Frg.js +0 -284
- package/dist/drawerBlackWhiteList-eWyKScZN.js +0 -4
- package/dist/drawerBlackWhiteList.vue_vue_type_script_setup_true_lang-CNBKo3Jg.js +0 -173
- package/dist/drawerDictionary-BRGmcIFT.js +0 -4
- package/dist/drawerDictionary.vue_vue_type_script_setup_true_lang-0zsptmrP.js +0 -146
- package/dist/drawerDictionaryItem-CFBfyhEw.js +0 -4
- package/dist/drawerDictionaryItem.vue_vue_type_script_setup_true_lang-DeJblyyZ.js +0 -158
- package/dist/drawerGroup-Bs1Z8XPo.js +0 -4
- package/dist/drawerGroup.vue_vue_type_script_setup_true_lang-ClG-M0Ru.js +0 -202
- package/dist/drawerOrganization-Bs0YtPuo.js +0 -4
- package/dist/drawerOrganization.vue_vue_type_script_setup_true_lang-5YJaULAh.js +0 -250
- package/dist/drawerPosition-BA_gLotd.js +0 -4
- package/dist/drawerPosition.vue_vue_type_script_setup_true_lang-ZqfbI05C.js +0 -181
- package/dist/drawerRegion-CauOP4lh.js +0 -4
- package/dist/drawerRegion.vue_vue_type_script_setup_true_lang-DeL9jV-P.js +0 -235
- package/dist/drawerRole-CXGVqxPX.js +0 -4
- package/dist/drawerRole-CfJjf3v_.js +0 -4
- package/dist/drawerRole-nmMTIQYS.js +0 -4
- package/dist/drawerRole.vue_vue_type_script_setup_true_lang-B-VZS3gq.js +0 -243
- package/dist/drawerRole.vue_vue_type_script_setup_true_lang-B1eT0e_Q.js +0 -197
- package/dist/drawerRole.vue_vue_type_script_setup_true_lang-Surpf3ov.js +0 -191
- package/dist/edit-B69fMWPH.js +0 -4
- package/dist/enum-C9ihxJe7.js +0 -4
- package/dist/enum-D5iPiZiT.js +0 -17
- package/dist/enum-DDKThkSw.js +0 -24
- package/dist/enum-DkSNwGbC.js +0 -74
- package/dist/gangweijiekou-CUGlx4Ni.js +0 -48
- package/dist/icard-C4FaIC0V.js +0 -4
- package/dist/icon_animation-CfRxn8ne.js +0 -4
- package/dist/icon_breadcrumb-CAPCH16K.js +0 -4
- package/dist/icon_copyright-T9HuRtib.js +0 -4
- package/dist/icon_jt-BZgxEG_D.js +0 -4
- package/dist/icon_layout-BynQzkfn.js +0 -4
- package/dist/icon_mainpage-Bu_lyj_6.js +0 -4
- package/dist/icon_menu-D41hl_4p.js +0 -4
- package/dist/icon_page_size-Bioi61il.js +0 -4
- package/dist/icon_position_type-QpezzPDJ.js +0 -4
- package/dist/icon_safe_manage-ByWMOnwf.js +0 -4
- package/dist/icon_screen_scale-CuPyb7Ni.js +0 -4
- package/dist/icon_system_manage-BxRLv7Nw.js +0 -4
- package/dist/icon_tabbar-CetwmJHN.js +0 -4
- package/dist/icon_toolbar-DXt_LXp8.js +0 -4
- package/dist/icon_topbar-C186yIiC.js +0 -4
- package/dist/icon_watermark-DhaloO3m.js +0 -4
- package/dist/index-B0zXLUdu.js +0 -350
- package/dist/index-B5aP0re3.js +0 -170
- package/dist/index-BEB4liGe.js +0 -151
- package/dist/index-BNwGLzXe.js +0 -168
- package/dist/index-BXvJhqJD.js +0 -97
- package/dist/index-BhZNbJp6.js +0 -189
- package/dist/index-Bm3WQuJD.js +0 -226
- package/dist/index-C5WD-YUu.js +0 -246
- package/dist/index-CJQB8KAz.js +0 -186
- package/dist/index-CLnFLvHy.js +0 -193
- package/dist/index-CbVJdR5M.js +0 -194
- package/dist/index-ChWnVs6j.js +0 -196
- package/dist/index-CoZM8pyH.js +0 -197
- package/dist/index-Copy5kiW.js +0 -17701
- package/dist/index-D3Xw_aOi.js +0 -144
- package/dist/index-DHVEXch0.js +0 -253
- package/dist/index-DQhQqT_Z.js +0 -269
- package/dist/index-Dl0hWfIE.js +0 -118
- package/dist/index-En8oOf9e.js +0 -168
- package/dist/index-VZuizuKs.js +0 -257
- package/dist/index-XhYtVVT9.js +0 -88
- package/dist/index-iBmBJd50.js +0 -181
- package/dist/index10.css +0 -1
- package/dist/index13.css +0 -1
- package/dist/index16.css +0 -1
- package/dist/index17.css +0 -1
- package/dist/index4.css +0 -1
- package/dist/index5.css +0 -1
- package/dist/index7.css +0 -1
- package/dist/index8.css +0 -1
- package/dist/index9.css +0 -1
- package/dist/isEmpty-BgDIb4aS.js +0 -20
- package/dist/itemlist-zTYJtoSs.js +0 -172
- package/dist/jiaosejiekou-p42Hm9h3.js +0 -58
- package/dist/log-center-Bw9UlmOq.js +0 -4
- package/dist/loginHistoryDetail-BZVwG8m2.js +0 -105
- package/dist/login_history-CMZGS2PN.js +0 -221
- package/dist/not-data-BDuvYboz.js +0 -4
- package/dist/operateHistoryDetail-Badx3zl-.js +0 -123
- package/dist/operate_history-B42WNY1u.js +0 -217
- package/dist/org-main-DfWpX8Wv.js +0 -4
- package/dist/org-unmain-DrX63NH5.js +0 -4
- package/dist/remove-D2ES5tEr.js +0 -4
- package/dist/resource-app-1lqF6C6F.js +0 -4
- package/dist/resource-btn-Cfo6ddAY.js +0 -4
- package/dist/resource-dynamic-BAwkCWS4.js +0 -4
- package/dist/resource-index-BS4V5uy8.js +0 -4
- package/dist/resource-menu-CEWU8Iis.js +0 -4
- package/dist/resource-micro-9S0h5AlK.js +0 -4
- package/dist/resource-nonmenu-BZ9e4ynT.js +0 -4
- package/dist/setItem-Blb3dox4.js +0 -87
- package/dist/setting-manage-Xj_s0OoK.js +0 -4
- package/dist/shujuquanxianzhubiaokongzhiqi-SpN37fyO.js +0 -65
- package/dist/theme-check-mark-D58efagJ.js +0 -4
- package/dist/theme-title-CYUX2SBW.js +0 -4
- package/dist/useAppAndResource-DDywX2iz.js +0 -54
- package/dist/vanilla-picker-BAEwS4Fy.js +0 -536
- package/dist/view-BCWU0JWM.js +0 -4
- package/dist/xitongpeizhifuwu-BoCbGEk7.js +0 -23
- package/dist/zddata-DQP5Kx3c.js +0 -4
- package/dist/ziyuanjiekou-BC65-bFK.js +0 -69
- package/dist/zuzhijiaosebiaokongzhiqi-Cj4ZjkfZ.js +0 -28
- package/dist/zy_checked-Bb6zRsYe.js +0 -4
- package/dist/zy_default-BGjhoury.js +0 -4
- /package/dist/{index2.css → breadcrumb_setting.css} +0 -0
- /package/dist/{index3.css → data-permission.css} +0 -0
- /package/dist/{index6.css → menu_setting.css} +0 -0
- /package/dist/{index11.css → safe_setting.css} +0 -0
- /package/dist/{index12.css → tabbar_setting.css} +0 -0
- /package/dist/{index14.css → toolbar_setting.css} +0 -0
- /package/dist/{index15.css → user.css} +0 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { Lt as useToggle, T as postRbacOrgRoleRoleOrgPage, h as _plugin_vue_export_helper_default, yt as postRbacRoleRoleUserPage } from "./index.js";
|
|
2
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, isRef, openBlock, ref, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
3
|
+
import { Drawer, Segmented, Tag } from "ant-design-vue/es";
|
|
4
|
+
import { ProTable } from "@pubinfo/pro-components";
|
|
5
|
+
import './ResourceRelation2.css';var _hoisted_1 = { class: "mb-20px p-x-15px" }, _hoisted_2 = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "flex items-center"
|
|
8
|
+
}, _hoisted_3 = { class: "mr-4px" }, ResourceRelation_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
9
|
+
name: "ResourceRelation",
|
|
10
|
+
__name: "ResourceRelation",
|
|
11
|
+
setup(y, { expose: w }) {
|
|
12
|
+
let T = ref(["用户自选角色", "组织基础角色"]), E = ref(T.value[0]), [D, O] = useToggle(!1), k = ref(""), A = ref();
|
|
13
|
+
function j() {
|
|
14
|
+
A.value.fetch();
|
|
15
|
+
}
|
|
16
|
+
async function M(e) {
|
|
17
|
+
e.pageSize = 15, e.roleId = k.value;
|
|
18
|
+
let { current: y, pageSize: x, ...S } = e, C = await (E.value === "用户自选角色" ? postRbacRoleRoleUserPage : postRbacOrgRoleRoleOrgPage)({
|
|
19
|
+
currentPage: y,
|
|
20
|
+
pageSize: x,
|
|
21
|
+
...S
|
|
22
|
+
});
|
|
23
|
+
return {
|
|
24
|
+
success: C.success,
|
|
25
|
+
data: C.data?.records ?? [],
|
|
26
|
+
total: C.data?.total ?? 0
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
let N = computed(() => E.value === "用户自选角色" ? [{
|
|
30
|
+
title: "用户名称",
|
|
31
|
+
dataIndex: "realName",
|
|
32
|
+
ellipsis: !0
|
|
33
|
+
}, {
|
|
34
|
+
title: "组织名称",
|
|
35
|
+
dataIndex: "orgName",
|
|
36
|
+
ellipsis: !0
|
|
37
|
+
}] : [{
|
|
38
|
+
title: "组织名称",
|
|
39
|
+
dataIndex: "name",
|
|
40
|
+
ellipsis: !0
|
|
41
|
+
}]);
|
|
42
|
+
function P(e) {
|
|
43
|
+
k.value = e.id || "", O(!0);
|
|
44
|
+
}
|
|
45
|
+
return w({ open: P }), (e, v) => {
|
|
46
|
+
let y = Segmented, b = Tag, x = Drawer;
|
|
47
|
+
return openBlock(), createBlock(x, {
|
|
48
|
+
open: unref(D),
|
|
49
|
+
"onUpdate:open": v[1] ||= (e) => isRef(D) ? D.value = e : null,
|
|
50
|
+
title: "分配查看",
|
|
51
|
+
placement: "right",
|
|
52
|
+
width: 720,
|
|
53
|
+
"destroy-on-close": "",
|
|
54
|
+
"footer-style": { textAlign: "right" },
|
|
55
|
+
"body-style": {
|
|
56
|
+
paddingLeft: 0,
|
|
57
|
+
paddingRight: 0
|
|
58
|
+
}
|
|
59
|
+
}, {
|
|
60
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1, [createVNode(y, {
|
|
61
|
+
value: unref(E),
|
|
62
|
+
"onUpdate:value": v[0] ||= (e) => isRef(E) ? E.value = e : null,
|
|
63
|
+
block: "",
|
|
64
|
+
options: unref(T),
|
|
65
|
+
onChange: j
|
|
66
|
+
}, null, 8, ["value", "options"])]), createVNode(unref(ProTable), {
|
|
67
|
+
ref_key: "protable",
|
|
68
|
+
ref: A,
|
|
69
|
+
"row-key": "id",
|
|
70
|
+
request: M,
|
|
71
|
+
columns: unref(N),
|
|
72
|
+
search: !1,
|
|
73
|
+
toolbar: !1,
|
|
74
|
+
"auto-height": { offset: 50 }
|
|
75
|
+
}, {
|
|
76
|
+
bodyCell: withCtx(({ column: e, record: y }) => [e.dataIndex === "name" ? (openBlock(), createElementBlock("div", _hoisted_2, [createElementVNode("span", _hoisted_3, toDisplayString(y.name), 1), y.isInherit === "1" ? (openBlock(), createBlock(b, {
|
|
77
|
+
key: 0,
|
|
78
|
+
color: "processing"
|
|
79
|
+
}, {
|
|
80
|
+
default: withCtx(() => [...v[2] ||= [createTextVNode(" 及子组织 ", -1)]]),
|
|
81
|
+
_: 1
|
|
82
|
+
})) : createCommentVNode("", !0)])) : createCommentVNode("", !0)]),
|
|
83
|
+
_: 1
|
|
84
|
+
}, 8, ["columns"])]),
|
|
85
|
+
_: 1
|
|
86
|
+
}, 8, ["open"]);
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
}), [["__scopeId", "data-v-1167727f"]]);
|
|
90
|
+
export { ResourceRelation_default as t };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-
|
|
1
|
+
[data-v-f5867bc7] .ant-drawer-body{padding-left:0;padding-right:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-
|
|
1
|
+
[data-v-1167727f] .ant-drawer-body{padding-left:0;padding-right:0}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Lt as useToggle, N as getRbacResourceGetRoleListByResourceId } from "./index.js";
|
|
2
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, isRef, nextTick, normalizeStyle, openBlock, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
3
|
+
import { theme } from "ant-design-vue";
|
|
4
|
+
import { Avatar, Drawer, Table } from "ant-design-vue/es";
|
|
5
|
+
import { useRequest } from "alova/client";
|
|
6
|
+
var _hoisted_1 = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "w-full truncate space-x-2"
|
|
9
|
+
}, RoleRelation_default = /* @__PURE__ */ defineComponent({
|
|
10
|
+
name: "RoleRelation",
|
|
11
|
+
__name: "RoleRelation",
|
|
12
|
+
setup(x, { expose: C }) {
|
|
13
|
+
let { token: w } = theme.useToken(), [T, E] = useToggle(!1), { loading: D, data: O, send: k } = useRequest((e) => getRbacResourceGetRoleListByResourceId(e, { transform(e) {
|
|
14
|
+
return e.data ?? [];
|
|
15
|
+
} }), { immediate: !1 }), A = [{
|
|
16
|
+
title: "角色名称",
|
|
17
|
+
dataIndex: "name",
|
|
18
|
+
ellipsis: !0
|
|
19
|
+
}, {
|
|
20
|
+
title: "创建人",
|
|
21
|
+
dataIndex: "createUserName",
|
|
22
|
+
width: 180,
|
|
23
|
+
ellipsis: !0
|
|
24
|
+
}];
|
|
25
|
+
function j(e) {
|
|
26
|
+
E(!0), k({ id: e.id }), P();
|
|
27
|
+
}
|
|
28
|
+
let M = computed(() => window.innerHeight - 57 - 48 - 55 - 64);
|
|
29
|
+
function N() {
|
|
30
|
+
nextTick(() => {
|
|
31
|
+
let e = document.querySelector(".role-relation")?.querySelector(".ant-table-body");
|
|
32
|
+
e && (e.style.height = `${M.value}px`);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function P() {
|
|
36
|
+
nextTick(N);
|
|
37
|
+
}
|
|
38
|
+
return C({ open: j }), (e, y) => {
|
|
39
|
+
let b = Avatar, x = Table, S = Drawer;
|
|
40
|
+
return openBlock(), createBlock(S, {
|
|
41
|
+
open: unref(T),
|
|
42
|
+
"onUpdate:open": y[0] ||= (e) => isRef(T) ? T.value = e : null,
|
|
43
|
+
title: "分配查看",
|
|
44
|
+
placement: "right",
|
|
45
|
+
width: 520,
|
|
46
|
+
"footer-style": { textAlign: "right" }
|
|
47
|
+
}, {
|
|
48
|
+
default: withCtx(() => [createVNode(x, {
|
|
49
|
+
"row-key": "id",
|
|
50
|
+
loading: unref(D),
|
|
51
|
+
columns: A,
|
|
52
|
+
"data-source": unref(O),
|
|
53
|
+
scroll: { y: `${unref(M)}px` },
|
|
54
|
+
pagination: {
|
|
55
|
+
defaultPageSize: 20,
|
|
56
|
+
showSizeChanger: !0
|
|
57
|
+
},
|
|
58
|
+
class: "role-relation"
|
|
59
|
+
}, {
|
|
60
|
+
bodyCell: withCtx(({ column: e, text: y }) => [e.dataIndex === "name" ? (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(b, {
|
|
61
|
+
size: "small",
|
|
62
|
+
style: normalizeStyle({ backgroundColor: unref(w).colorPrimary })
|
|
63
|
+
}, {
|
|
64
|
+
default: withCtx(() => [createTextVNode(toDisplayString(y[0]), 1)]),
|
|
65
|
+
_: 2
|
|
66
|
+
}, 1032, ["style"]), createElementVNode("span", null, toDisplayString(y), 1)])) : createCommentVNode("", !0)]),
|
|
67
|
+
_: 1
|
|
68
|
+
}, 8, [
|
|
69
|
+
"loading",
|
|
70
|
+
"data-source",
|
|
71
|
+
"scroll"
|
|
72
|
+
])]),
|
|
73
|
+
_: 1
|
|
74
|
+
}, 8, ["open"]);
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
export { RoleRelation_default as t };
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import { Lt as useToggle, ct as getRbacPubRoleGroupGetAll, ht as getRbacRoleRoleList, lt as getRbacPubRoleGroupGetById } from "./index.js";
|
|
2
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, isRef, mergeModels, mergeProps, normalizeProps, normalizeStyle, onMounted, openBlock, reactive, ref, renderList, resolveComponent, toDisplayString, unref, useModel, vShow, withCtx, withDirectives } from "vue";
|
|
3
|
+
import { CloseOutlined, SearchOutlined } from "@ant-design/icons-vue";
|
|
4
|
+
import { Card, Checkbox, CheckboxGroup, Modal, Spin, Tooltip, theme } from "ant-design-vue";
|
|
5
|
+
import { Input as Input$1, Select, SelectOption, Tooltip as Tooltip$1 } from "ant-design-vue/es";
|
|
6
|
+
var _hoisted_1$1 = { key: 1 }, RoleSearch_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
name: "RoleSearch",
|
|
8
|
+
__name: "RoleSearch",
|
|
9
|
+
props: /* @__PURE__ */ mergeModels({ group: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: !1
|
|
12
|
+
} }, {
|
|
13
|
+
modelValue: {},
|
|
14
|
+
modelModifiers: {},
|
|
15
|
+
groupId: {},
|
|
16
|
+
groupIdModifiers: {}
|
|
17
|
+
}),
|
|
18
|
+
emits: /* @__PURE__ */ mergeModels(["select"], ["update:modelValue", "update:groupId"]),
|
|
19
|
+
setup(e, { emit: A }) {
|
|
20
|
+
let j = e, N = A, P = useModel(e, "modelValue"), F = useModel(e, "groupId"), L = ref([]);
|
|
21
|
+
async function R() {
|
|
22
|
+
let e = await getRbacPubRoleGroupGetAll({ name: "" });
|
|
23
|
+
e.success && (L.value = e.data ?? []);
|
|
24
|
+
}
|
|
25
|
+
return onMounted(() => {
|
|
26
|
+
j.group && R();
|
|
27
|
+
}), (k, A) => {
|
|
28
|
+
let j = SelectOption, R = Tooltip$1, z = Select, B = Input$1;
|
|
29
|
+
return openBlock(), createBlock(B, {
|
|
30
|
+
value: P.value,
|
|
31
|
+
"onUpdate:value": A[2] ||= (e) => P.value = e,
|
|
32
|
+
placeholder: "请输入",
|
|
33
|
+
"allow-clear": ""
|
|
34
|
+
}, {
|
|
35
|
+
addonBefore: withCtx(() => [e.group ? (openBlock(), createBlock(z, {
|
|
36
|
+
key: 0,
|
|
37
|
+
value: F.value,
|
|
38
|
+
"onUpdate:value": A[0] ||= (e) => F.value = e,
|
|
39
|
+
style: { width: "90px" },
|
|
40
|
+
onChange: A[1] ||= (e) => N("select", e)
|
|
41
|
+
}, {
|
|
42
|
+
default: withCtx(() => [createVNode(j, { value: "" }, {
|
|
43
|
+
default: withCtx(() => [...A[3] ||= [createTextVNode(" 全部 ", -1)]]),
|
|
44
|
+
_: 1
|
|
45
|
+
}), (openBlock(!0), createElementBlock(Fragment, null, renderList(unref(L), (e) => (openBlock(), createBlock(j, {
|
|
46
|
+
key: e.id,
|
|
47
|
+
value: e.id
|
|
48
|
+
}, {
|
|
49
|
+
default: withCtx(() => [createVNode(R, { title: e.name }, {
|
|
50
|
+
default: withCtx(() => [createTextVNode(toDisplayString(e.name), 1)]),
|
|
51
|
+
_: 2
|
|
52
|
+
}, 1032, ["title"])]),
|
|
53
|
+
_: 2
|
|
54
|
+
}, 1032, ["value"]))), 128))]),
|
|
55
|
+
_: 1
|
|
56
|
+
}, 8, ["value"])) : (openBlock(), createElementBlock("div", _hoisted_1$1, " 全部 "))]),
|
|
57
|
+
suffix: withCtx(() => [createVNode(unref(SearchOutlined))]),
|
|
58
|
+
_: 1
|
|
59
|
+
}, 8, ["value"]);
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
}), TooltipLabel_default = /* @__PURE__ */ defineComponent({
|
|
63
|
+
name: "TooltipLabel",
|
|
64
|
+
inheritAttrs: !1,
|
|
65
|
+
__name: "TooltipLabel",
|
|
66
|
+
props: {
|
|
67
|
+
name: {},
|
|
68
|
+
size: { default: 21 }
|
|
69
|
+
},
|
|
70
|
+
setup(e) {
|
|
71
|
+
return (k, A) => (e.name || "").length > e.size ? (openBlock(), createBlock(unref(Tooltip), {
|
|
72
|
+
key: 0,
|
|
73
|
+
title: e.name
|
|
74
|
+
}, {
|
|
75
|
+
default: withCtx(() => [createElementVNode("span", normalizeProps(guardReactiveProps(k.$attrs)), toDisplayString(`${e.name?.slice(0, e.size)}...`), 17)]),
|
|
76
|
+
_: 1
|
|
77
|
+
}, 8, ["title"])) : (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 1 }, k.$attrs)), toDisplayString(e.name), 17));
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
function useRole() {
|
|
81
|
+
let [k, j] = useToggle(!1), M = ref([]);
|
|
82
|
+
async function N() {
|
|
83
|
+
try {
|
|
84
|
+
j(!0);
|
|
85
|
+
let e = await getRbacRoleRoleList();
|
|
86
|
+
e.success && (M.value = e.data ?? []);
|
|
87
|
+
} finally {
|
|
88
|
+
j(!1);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
loading: k,
|
|
93
|
+
setLoading: j,
|
|
94
|
+
roles: M,
|
|
95
|
+
getData: N
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
function useRoleGroup() {
|
|
99
|
+
let [k, A] = useToggle(!1), M = ref([]);
|
|
100
|
+
async function N(e) {
|
|
101
|
+
try {
|
|
102
|
+
A(!0);
|
|
103
|
+
let k = await getRbacPubRoleGroupGetById({ id: e });
|
|
104
|
+
k.success && (M.value = k.data?.roles ?? []);
|
|
105
|
+
} finally {
|
|
106
|
+
A(!1);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
loading: k,
|
|
111
|
+
setLoading: A,
|
|
112
|
+
roles: M,
|
|
113
|
+
getData: N
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
var _hoisted_1 = { class: "h-full flex" }, _hoisted_2 = { class: "p-2 flex flex-col h-full gap-2" }, _hoisted_3 = { class: "flex-1 overflow-y-auto overflow-x-hidden" }, _hoisted_4 = {
|
|
117
|
+
key: 0,
|
|
118
|
+
class: "flex items-center justify-center size-full"
|
|
119
|
+
}, _hoisted_5 = { class: "gap-1 p-2 h-full overflow-y-auto" }, RoleSelector_default = /* @__PURE__ */ defineComponent({
|
|
120
|
+
name: "RoleSelector",
|
|
121
|
+
__name: "RoleSelector",
|
|
122
|
+
props: /* @__PURE__ */ mergeModels({ group: {
|
|
123
|
+
type: Boolean,
|
|
124
|
+
default: !1
|
|
125
|
+
} }, {
|
|
126
|
+
open: { type: Boolean },
|
|
127
|
+
openModifiers: {}
|
|
128
|
+
}),
|
|
129
|
+
emits: /* @__PURE__ */ mergeModels(["select"], ["update:open"]),
|
|
130
|
+
setup(k, { expose: A, emit: j }) {
|
|
131
|
+
let I = j, { token: L } = theme.useToken(), R = useModel(k, "open"), B = useToggle(R), V = ref([]), H = reactive(useRole()), U = reactive(useRoleGroup()), W = ref(""), G = ref("");
|
|
132
|
+
async function K(e) {
|
|
133
|
+
await U.getData(e);
|
|
134
|
+
}
|
|
135
|
+
async function q(e = []) {
|
|
136
|
+
V.value = e, W.value = "", G.value = "", await H.getData(), B(!0);
|
|
137
|
+
}
|
|
138
|
+
let J = computed(() => G.value === "" ? H.roles : U.roles);
|
|
139
|
+
function Y(e) {
|
|
140
|
+
return J.value.findIndex((k) => k.id === e.id) > -1 && e.name?.includes(W.value);
|
|
141
|
+
}
|
|
142
|
+
function X(e, k) {
|
|
143
|
+
e.target.checked ? V.value.push({
|
|
144
|
+
value: k.id,
|
|
145
|
+
label: k.name
|
|
146
|
+
}) : V.value = V.value.filter((e) => e.value !== k.id);
|
|
147
|
+
}
|
|
148
|
+
function Z(e) {
|
|
149
|
+
V.value = V.value.filter((k) => k.value !== e);
|
|
150
|
+
}
|
|
151
|
+
function Q() {
|
|
152
|
+
I("select", V.value), B(!1);
|
|
153
|
+
}
|
|
154
|
+
function $() {
|
|
155
|
+
V.value = V.value.filter((e) => !H.roles.some((k) => k.id === e.value));
|
|
156
|
+
}
|
|
157
|
+
return A({ open: q }), (e, A) => (openBlock(), createBlock(unref(Modal), {
|
|
158
|
+
open: R.value,
|
|
159
|
+
"onUpdate:open": A[3] ||= (e) => R.value = e,
|
|
160
|
+
title: "角色选择",
|
|
161
|
+
"mask-closable": !1,
|
|
162
|
+
width: 750,
|
|
163
|
+
"z-index": 1001,
|
|
164
|
+
"ok-text": "确认",
|
|
165
|
+
"cancel-text": "取消",
|
|
166
|
+
"destroy-on-close": "",
|
|
167
|
+
onOk: A[4] ||= (e) => Q()
|
|
168
|
+
}, {
|
|
169
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
170
|
+
class: "border border-solid h-[400px]",
|
|
171
|
+
style: normalizeStyle({ borderColor: unref(L).colorBorder })
|
|
172
|
+
}, [createElementVNode("div", _hoisted_1, [
|
|
173
|
+
createVNode(unref(Card), {
|
|
174
|
+
bordered: !1,
|
|
175
|
+
size: "small",
|
|
176
|
+
"head-style": {
|
|
177
|
+
backgroundColor: unref(L).colorBgLayout,
|
|
178
|
+
borderRadius: 0,
|
|
179
|
+
borderWidth: 0,
|
|
180
|
+
borderBottomWidth: "1px",
|
|
181
|
+
padding: 0
|
|
182
|
+
},
|
|
183
|
+
"body-style": {
|
|
184
|
+
flex: 1,
|
|
185
|
+
padding: 0,
|
|
186
|
+
height: "calc(100% - 38px)"
|
|
187
|
+
},
|
|
188
|
+
style: normalizeStyle({
|
|
189
|
+
boxShadow: "none",
|
|
190
|
+
borderRadius: 0,
|
|
191
|
+
borderColor: unref(L).colorBorder
|
|
192
|
+
}),
|
|
193
|
+
class: "flex h-full flex-col w-1/2"
|
|
194
|
+
}, {
|
|
195
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_2, [createVNode(RoleSearch_default, {
|
|
196
|
+
modelValue: unref(W),
|
|
197
|
+
"onUpdate:modelValue": A[0] ||= (e) => isRef(W) ? W.value = e : null,
|
|
198
|
+
"group-id": unref(G),
|
|
199
|
+
"onUpdate:groupId": A[1] ||= (e) => isRef(G) ? G.value = e : null,
|
|
200
|
+
group: k.group,
|
|
201
|
+
onSelect: K
|
|
202
|
+
}, null, 8, [
|
|
203
|
+
"modelValue",
|
|
204
|
+
"group-id",
|
|
205
|
+
"group"
|
|
206
|
+
]), createElementVNode("div", _hoisted_3, [unref(H).loading || unref(U).loading ? (openBlock(), createElementBlock("div", _hoisted_4, [createVNode(unref(Spin))])) : (openBlock(), createBlock(unref(CheckboxGroup), {
|
|
207
|
+
key: 1,
|
|
208
|
+
value: unref(V).map((e) => e.value),
|
|
209
|
+
class: "w-full overflow-x-hidden"
|
|
210
|
+
}, {
|
|
211
|
+
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(J), (e) => withDirectives((openBlock(), createElementBlock("div", {
|
|
212
|
+
key: e.id,
|
|
213
|
+
class: "w-full py-2 border-0 border-b border-solid truncate",
|
|
214
|
+
style: normalizeStyle({ borderColor: unref(L).colorBorder })
|
|
215
|
+
}, [createVNode(unref(Checkbox), {
|
|
216
|
+
value: e.id,
|
|
217
|
+
onChange: (k) => X(k, e)
|
|
218
|
+
}, {
|
|
219
|
+
default: withCtx(() => [createVNode(TooltipLabel_default, { name: e.name }, null, 8, ["name"])]),
|
|
220
|
+
_: 2
|
|
221
|
+
}, 1032, ["value", "onChange"])], 4)), [[vShow, Y(e)]])), 128))]),
|
|
222
|
+
_: 1
|
|
223
|
+
}, 8, ["value"]))])])]),
|
|
224
|
+
_: 1
|
|
225
|
+
}, 8, ["head-style", "style"]),
|
|
226
|
+
createElementVNode("div", {
|
|
227
|
+
style: normalizeStyle({ borderColor: unref(L).colorBorder }),
|
|
228
|
+
class: "h-full border-0 border-r border-solid"
|
|
229
|
+
}, null, 4),
|
|
230
|
+
createVNode(unref(Card), {
|
|
231
|
+
bordered: !1,
|
|
232
|
+
size: "small",
|
|
233
|
+
"head-style": {
|
|
234
|
+
backgroundColor: unref(L).colorBgLayout,
|
|
235
|
+
borderRadius: 0,
|
|
236
|
+
borderWidth: 0,
|
|
237
|
+
borderBottomWidth: "1px"
|
|
238
|
+
},
|
|
239
|
+
"body-style": {
|
|
240
|
+
flex: 1,
|
|
241
|
+
padding: 0,
|
|
242
|
+
overflow: "hidden"
|
|
243
|
+
},
|
|
244
|
+
style: {
|
|
245
|
+
boxShadow: "none",
|
|
246
|
+
borderRadius: 0
|
|
247
|
+
},
|
|
248
|
+
class: "flex h-full flex-col flex-1"
|
|
249
|
+
}, {
|
|
250
|
+
title: withCtx(() => [...A[5] ||= [createElementVNode("span", { class: "font-normal" }, " 已选角色 ", -1)]]),
|
|
251
|
+
extra: withCtx(() => [createElementVNode("a", {
|
|
252
|
+
style: normalizeStyle({ color: unref(L).colorPrimary }),
|
|
253
|
+
onClick: A[2] ||= (e) => $()
|
|
254
|
+
}, " 清空 ", 4)]),
|
|
255
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_5, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(V), (e) => (openBlock(), createElementBlock("div", {
|
|
256
|
+
key: e.value,
|
|
257
|
+
class: "inline-block mb-1 py-1 px-2 mx-0.5 max-w-full rounded",
|
|
258
|
+
style: normalizeStyle({ backgroundColor: unref(L).colorPrimaryBg })
|
|
259
|
+
}, [createVNode(TooltipLabel_default, {
|
|
260
|
+
name: e.label,
|
|
261
|
+
size: 20
|
|
262
|
+
}, null, 8, ["name"]), unref(H).roles.some((k) => k.id === e.value) ? (openBlock(), createBlock(unref(CloseOutlined), {
|
|
263
|
+
key: 0,
|
|
264
|
+
class: "ml-1 cursor-pointer text-xs",
|
|
265
|
+
style: normalizeStyle({ color: unref(L).colorPrimary }),
|
|
266
|
+
onClick: (k) => Z(e.value)
|
|
267
|
+
}, null, 8, ["style", "onClick"])) : createCommentVNode("", !0)], 4))), 128))])]),
|
|
268
|
+
_: 1
|
|
269
|
+
}, 8, ["head-style"])
|
|
270
|
+
])], 4)]),
|
|
271
|
+
_: 1
|
|
272
|
+
}, 8, ["open"]));
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
export { RoleSelector_default as t };
|