@pubinfo-nightly/module-rbac 2025.11.14
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/LICENSE +21 -0
- package/dist/ComponentSelect-ZLey_5w7.js +4 -0
- package/dist/ComponentSelect.css +1 -0
- package/dist/ComponentSelect.vue_vue_type_style_index_0_lang-CMEO08Uz.js +3981 -0
- package/dist/DynamicRoutesForm-BU4EAISs.js +4 -0
- package/dist/DynamicRoutesForm.vue_vue_type_script_setup_true_lang-bEqJ03T_.js +179 -0
- package/dist/HCheckList-Dkxhu1br.js +4 -0
- package/dist/HCheckList.vue_vue_type_script_setup_true_lang-n_QczT28.js +41 -0
- package/dist/HoverCard-7agF2aDO.js +4 -0
- package/dist/HoverCard.vue_vue_type_script_setup_true_lang-DEScDCo1.js +62 -0
- package/dist/IconSelect-DtNpk3Rj.js +4 -0
- package/dist/IconSelect.css +1 -0
- package/dist/IconSelect.vue_vue_type_script_setup_true_lang-D450SiKg.js +757 -0
- package/dist/ImportExport-DAe_Sl13.js +4 -0
- package/dist/ImportExport.vue_vue_type_script_setup_true_lang-CV0DrMvw.js +456 -0
- package/dist/LayoutForm-Pv6UyKl3.js +173 -0
- package/dist/LayoutForm.css +1 -0
- package/dist/MetaForm-BMPtZc0g.js +42413 -0
- package/dist/MetaForm.css +1 -0
- package/dist/OrgAndPosition-R-YixdXG.js +4 -0
- package/dist/OrgAndPosition.vue_vue_type_script_setup_true_lang-jEjTok4n.js +195 -0
- package/dist/ResourceEdit-D59JUDvG.js +4 -0
- package/dist/ResourceEdit.vue_vue_type_script_setup_true_lang-IWn27Vz1.js +429 -0
- package/dist/ResourceRelation-CeM9Eq39.js +90 -0
- package/dist/ResourceRelation-qhIdXLAy.js +111 -0
- package/dist/ResourceRelation.css +1 -0
- package/dist/ResourceRelation2.css +1 -0
- package/dist/RoleRelation-BuqK0cnl.js +4 -0
- package/dist/RoleRelation.vue_vue_type_script_setup_true_lang-BjEOlM2g.js +93 -0
- package/dist/RoleSelector.vue_vue_type_script_setup_true_lang-ZwsINUBu.js +352 -0
- package/dist/TenantEdit-C61O1pSu.js +4 -0
- package/dist/TenantEdit.vue_vue_type_script_setup_true_lang-BwsA9hth.js +306 -0
- package/dist/UserAuthorization-Ch_iKzms.js +273 -0
- package/dist/UserAuthorization.css +1 -0
- package/dist/UserEdit-B1fnFcSC.js +4 -0
- package/dist/UserEdit.vue_vue_type_script_setup_true_lang-SIR1ZO_N.js +315 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/add-child-B9gDBQjZ.js +4 -0
- package/dist/animation_item-BZ1HNA6o.js +4 -0
- package/dist/animation_item.vue_vue_type_script_setup_true_lang-CmwThjHB.js +4858 -0
- package/dist/api/modules/assist/gonggaofuwu.d.ts +43 -0
- package/dist/api/modules/assist/index.d.ts +3 -0
- package/dist/api/modules/assist/qunzujiekou.d.ts +43 -0
- package/dist/api/modules/assist/quyujiekou.d.ts +36 -0
- package/dist/api/modules/configData/heibaimingdanfuwu.d.ts +36 -0
- package/dist/api/modules/configData/index.d.ts +3 -0
- package/dist/api/modules/configData/xitongpeizhifuwu.d.ts +99 -0
- package/dist/api/modules/configData/zidifuwu.d.ts +71 -0
- package/dist/api/modules/log/caozuorizhifuwu.d.ts +15 -0
- package/dist/api/modules/log/denglurizhifuwu.d.ts +15 -0
- package/dist/api/modules/log/index.d.ts +2 -0
- package/dist/api/modules/rbac/gangweijiekou.d.ts +43 -0
- package/dist/api/modules/rbac/index.d.ts +12 -0
- package/dist/api/modules/rbac/jiaosejiekou.d.ts +50 -0
- package/dist/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +50 -0
- package/dist/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +64 -0
- package/dist/api/modules/rbac/yonghujiekou.d.ts +106 -0
- package/dist/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +36 -0
- package/dist/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +29 -0
- package/dist/api/modules/rbac/ziyuandaorudaochuxiangguanjiekou.d.ts +43 -0
- package/dist/api/modules/rbac/ziyuanjiekou.d.ts +92 -0
- package/dist/api/modules/rbac/zuhuguanlijiekou.d.ts +36 -0
- package/dist/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +29 -0
- package/dist/api/modules/rbac/zuzhijiekou.d.ts +64 -0
- package/dist/api/request.d.ts +1 -0
- package/dist/authority-B-0S66Fv.js +4 -0
- package/dist/authorize-DnyYvAo3.js +4 -0
- package/dist/blacklist-disable-DzVU8JLV.js +4 -0
- package/dist/blacklist-enable-BmWQR1i4.js +4 -0
- package/dist/browser-chrome-O9MASusF.js +4 -0
- package/dist/browser-edge-Dk6N_uRy.js +4 -0
- package/dist/browser-ie-Dtz7hQTC.js +4 -0
- package/dist/browser-other-Crzi8vov.js +4 -0
- package/dist/browser-safari-DF0pVlrn.js +4 -0
- package/dist/browserType-DQySszjD.js +4 -0
- package/dist/browserType.vue_vue_type_script_setup_true_lang-od1-AmrS.js +32 -0
- package/dist/cloneDeep-BOLZdR62.js +8 -0
- package/dist/components/DirectoryIcones/ComponentsIcones.vue.d.ts +7 -0
- package/dist/components/DirectoryIcones/FolderIcones.vue.d.ts +7 -0
- package/dist/components/DirectoryIcones/ModuleIcones.vue.d.ts +7 -0
- package/dist/components/DirectoryIcones/PackagesIcones.vue.d.ts +7 -0
- package/dist/components/DirectoryIcones/SrcIcones.vue.d.ts +7 -0
- package/dist/components/DirectoryIcones/ViewIcones.vue.d.ts +7 -0
- package/dist/components/DirectoryIcones/VueIcones.vue.d.ts +2 -0
- package/dist/components/GroupSelector/index.vue.d.ts +15 -0
- package/dist/components/GroupSelector/interface.d.ts +6 -0
- package/dist/components/OrgUserSelector/OrgSelector.vue.d.ts +68 -0
- package/dist/components/OrgUserSelector/UserSelector.vue.d.ts +72 -0
- package/dist/components/OrgUserSelector/index.d.ts +9 -0
- package/dist/components/OrgUserSelector/provider.d.ts +24 -0
- package/dist/components/ResourceIcones/BoxColorPicker.vue.d.ts +26 -0
- package/dist/components/ResourceIcones/Select.vue.d.ts +58 -0
- package/dist/components/ResourceSelector/enum.d.ts +5 -0
- package/dist/components/ResourceSelector/hooks/useAppAndResource.d.ts +29 -0
- package/dist/components/ResourceSelector/index.vue.d.ts +24 -0
- package/dist/components/RoleSelector/RoleSearch.vue.d.ts +19 -0
- package/dist/components/RoleSelector/RoleSelector.vue.d.ts +20 -0
- package/dist/components/RoleSelector/TooltipLabel.vue.d.ts +8 -0
- package/dist/components/RoleSelector/index.d.ts +2 -0
- package/dist/components/RoleSelector/interface.d.ts +4 -0
- package/dist/components/RoleSelector/useRole.d.ts +13 -0
- package/dist/composables/useLottie.d.ts +11 -0
- package/dist/composables/useWebSocketManager.d.ts +8 -0
- package/dist/context.d.ts +2 -0
- package/dist/createAndEditDataPermission-DPeFulie.js +4 -0
- package/dist/createAndEditDataPermission.css +1 -0
- package/dist/createAndEditDataPermission.vue_vue_type_script_setup_true_lang-DlUIYtif.js +528 -0
- package/dist/dayjs.min-B2Yn1Frg.js +284 -0
- package/dist/drawerBlackWhiteList-eWyKScZN.js +4 -0
- package/dist/drawerBlackWhiteList.vue_vue_type_script_setup_true_lang-CNBKo3Jg.js +173 -0
- package/dist/drawerDictionary-BRGmcIFT.js +4 -0
- package/dist/drawerDictionary.vue_vue_type_script_setup_true_lang-0zsptmrP.js +146 -0
- package/dist/drawerDictionaryItem-CFBfyhEw.js +4 -0
- package/dist/drawerDictionaryItem.vue_vue_type_script_setup_true_lang-DeJblyyZ.js +158 -0
- package/dist/drawerGroup-Bs1Z8XPo.js +4 -0
- package/dist/drawerGroup.vue_vue_type_script_setup_true_lang-ClG-M0Ru.js +202 -0
- package/dist/drawerOrganization-Bs0YtPuo.js +4 -0
- package/dist/drawerOrganization.vue_vue_type_script_setup_true_lang-5YJaULAh.js +250 -0
- package/dist/drawerPosition-BA_gLotd.js +4 -0
- package/dist/drawerPosition.vue_vue_type_script_setup_true_lang-ZqfbI05C.js +181 -0
- package/dist/drawerRegion-CauOP4lh.js +4 -0
- package/dist/drawerRegion.vue_vue_type_script_setup_true_lang-DeL9jV-P.js +235 -0
- package/dist/drawerRole-CXGVqxPX.js +4 -0
- package/dist/drawerRole-CfJjf3v_.js +4 -0
- package/dist/drawerRole-nmMTIQYS.js +4 -0
- package/dist/drawerRole.vue_vue_type_script_setup_true_lang-B-VZS3gq.js +243 -0
- package/dist/drawerRole.vue_vue_type_script_setup_true_lang-B1eT0e_Q.js +197 -0
- package/dist/drawerRole.vue_vue_type_script_setup_true_lang-Surpf3ov.js +191 -0
- package/dist/edit-B69fMWPH.js +4 -0
- package/dist/enum-C9ihxJe7.js +4 -0
- package/dist/enum-D5iPiZiT.js +17 -0
- package/dist/enum-DDKThkSw.js +24 -0
- package/dist/enum-DkSNwGbC.js +74 -0
- package/dist/gangweijiekou-CUGlx4Ni.js +48 -0
- package/dist/icard-C4FaIC0V.js +4 -0
- package/dist/icon_animation-CfRxn8ne.js +4 -0
- package/dist/icon_breadcrumb-CAPCH16K.js +4 -0
- package/dist/icon_copyright-T9HuRtib.js +4 -0
- package/dist/icon_jt-BZgxEG_D.js +4 -0
- package/dist/icon_layout-BynQzkfn.js +4 -0
- package/dist/icon_mainpage-Bu_lyj_6.js +4 -0
- package/dist/icon_menu-D41hl_4p.js +4 -0
- package/dist/icon_page_size-Bioi61il.js +4 -0
- package/dist/icon_position_type-QpezzPDJ.js +4 -0
- package/dist/icon_safe_manage-ByWMOnwf.js +4 -0
- package/dist/icon_screen_scale-CuPyb7Ni.js +4 -0
- package/dist/icon_system_manage-BxRLv7Nw.js +4 -0
- package/dist/icon_tabbar-CetwmJHN.js +4 -0
- package/dist/icon_toolbar-DXt_LXp8.js +4 -0
- package/dist/icon_topbar-C186yIiC.js +4 -0
- package/dist/icon_watermark-DhaloO3m.js +4 -0
- package/dist/index-B0zXLUdu.js +350 -0
- package/dist/index-B5aP0re3.js +170 -0
- package/dist/index-BEB4liGe.js +151 -0
- package/dist/index-BNwGLzXe.js +168 -0
- package/dist/index-BXvJhqJD.js +97 -0
- package/dist/index-BhZNbJp6.js +189 -0
- package/dist/index-Bm3WQuJD.js +226 -0
- package/dist/index-C2G4xRrJ.js +144 -0
- package/dist/index-C5WD-YUu.js +246 -0
- package/dist/index-CJQB8KAz.js +186 -0
- package/dist/index-CLnFLvHy.js +193 -0
- package/dist/index-CbVJdR5M.js +194 -0
- package/dist/index-ChWnVs6j.js +196 -0
- package/dist/index-CoZM8pyH.js +197 -0
- package/dist/index-Copy5kiW.js +17701 -0
- package/dist/index-D3Xw_aOi.js +144 -0
- package/dist/index-DHVEXch0.js +253 -0
- package/dist/index-DQhQqT_Z.js +269 -0
- package/dist/index-Dl0hWfIE.js +118 -0
- package/dist/index-En8oOf9e.js +168 -0
- package/dist/index-VZuizuKs.js +257 -0
- package/dist/index-XhYtVVT9.js +88 -0
- package/dist/index-iBmBJd50.js +181 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +7496 -0
- package/dist/index10.css +1 -0
- package/dist/index11.css +1 -0
- package/dist/index12.css +1 -0
- package/dist/index13.css +1 -0
- package/dist/index14.css +1 -0
- package/dist/index15.css +1 -0
- package/dist/index16.css +1 -0
- package/dist/index17.css +1 -0
- package/dist/index2.css +1 -0
- package/dist/index3.css +1 -0
- package/dist/index4.css +1 -0
- package/dist/index5.css +1 -0
- package/dist/index6.css +1 -0
- package/dist/index7.css +1 -0
- package/dist/index8.css +1 -0
- package/dist/index9.css +1 -0
- package/dist/interface.d.ts +71 -0
- package/dist/isEmpty-BgDIb4aS.js +20 -0
- package/dist/itemlist-zTYJtoSs.js +172 -0
- package/dist/jiaosejiekou-p42Hm9h3.js +58 -0
- package/dist/log-center-Bw9UlmOq.js +4 -0
- package/dist/loginHistoryDetail-BZVwG8m2.js +105 -0
- package/dist/loginHistoryDetail.css +1 -0
- package/dist/login_history-CMZGS2PN.js +221 -0
- package/dist/login_history.css +1 -0
- package/dist/not-data-BDuvYboz.js +4 -0
- package/dist/operateHistoryDetail-Badx3zl-.js +123 -0
- package/dist/operateHistoryDetail.css +1 -0
- package/dist/operate_history-B42WNY1u.js +217 -0
- package/dist/operate_history.css +1 -0
- package/dist/org-main-DfWpX8Wv.js +4 -0
- package/dist/org-unmain-DrX63NH5.js +4 -0
- package/dist/remove-D2ES5tEr.js +4 -0
- package/dist/resource-app-1lqF6C6F.js +4 -0
- package/dist/resource-btn-Cfo6ddAY.js +4 -0
- package/dist/resource-dynamic-BAwkCWS4.js +4 -0
- package/dist/resource-index-BS4V5uy8.js +4 -0
- package/dist/resource-menu-CEWU8Iis.js +4 -0
- package/dist/resource-micro-9S0h5AlK.js +4 -0
- package/dist/resource-nonmenu-BZ9e4ynT.js +4 -0
- package/dist/routes/index.d.ts +16 -0
- package/dist/routes/modules/authority.manage.menu.d.ts +3 -0
- package/dist/routes/modules/log.manage.menu.d.ts +3 -0
- package/dist/routes/modules/safe.manage.menu.d.ts +3 -0
- package/dist/routes/modules/stylesetting.manage.menu.d.ts +3 -0
- package/dist/routes/modules/system.manage.menu.d.ts +3 -0
- package/dist/setItem-Blb3dox4.js +87 -0
- package/dist/setItem.css +1 -0
- package/dist/setting-manage-Xj_s0OoK.js +4 -0
- package/dist/shujuquanxianzhubiaokongzhiqi-SpN37fyO.js +65 -0
- package/dist/stores/index.d.ts +1 -0
- package/dist/stores/view.d.ts +56 -0
- package/dist/theme-check-mark-D58efagJ.js +4 -0
- package/dist/theme-title-CYUX2SBW.js +4 -0
- package/dist/useAppAndResource-DDywX2iz.js +54 -0
- package/dist/utils/dict.d.ts +6 -0
- package/dist/utils/routeSystem.d.ts +55 -0
- package/dist/utils/validateObjectStructure.d.ts +11 -0
- package/dist/vanilla-picker-BAEwS4Fy.js +536 -0
- package/dist/view-BCWU0JWM.js +4 -0
- package/dist/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +14 -0
- package/dist/views/blackWhiteList/enum.d.ts +7 -0
- package/dist/views/blackWhiteList/index.vue.d.ts +1535 -0
- package/dist/views/blackWhiteList/types.d.ts +4 -0
- package/dist/views/breadcrumb_setting/animationData.d.ts +7 -0
- package/dist/views/breadcrumb_setting/index.vue.d.ts +2 -0
- package/dist/views/components/HCheckList.vue.d.ts +20 -0
- package/dist/views/components/animation_item.vue.d.ts +14 -0
- package/dist/views/components/setItem.vue.d.ts +61 -0
- package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +172 -0
- package/dist/views/data-permission/enum.d.ts +34 -0
- package/dist/views/data-permission/index.vue.d.ts +1691 -0
- package/dist/views/dictionary/components/drawerDictionary.vue.d.ts +12 -0
- package/dist/views/dictionary/components/drawerDictionaryItem.vue.d.ts +12 -0
- package/dist/views/dictionary/enum.d.ts +8 -0
- package/dist/views/dictionary/index.vue.d.ts +1532 -0
- package/dist/views/dictionary/itemlist.vue.d.ts +1532 -0
- package/dist/views/group/components/drawerGroup.vue.d.ts +12 -0
- package/dist/views/group/enum.d.ts +21 -0
- package/dist/views/group/index.vue.d.ts +1532 -0
- package/dist/views/layout_setting/index.vue.d.ts +2 -0
- package/dist/views/log_center/components/browserType.vue.d.ts +12 -0
- package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +14 -0
- package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +14 -0
- package/dist/views/log_center/login_history.vue.d.ts +1511 -0
- package/dist/views/log_center/operate_history.vue.d.ts +1511 -0
- package/dist/views/menu_setting/animationData.d.ts +13 -0
- package/dist/views/menu_setting/index.vue.d.ts +2 -0
- package/dist/views/organization/components/drawerOrganization.vue.d.ts +12 -0
- package/dist/views/organization/components/drawerRole.vue.d.ts +44 -0
- package/dist/views/organization/enum.d.ts +25 -0
- package/dist/views/organization/index.vue.d.ts +81 -0
- package/dist/views/other_setting/animationData.d.ts +7 -0
- package/dist/views/other_setting/index.vue.d.ts +2 -0
- package/dist/views/other_setting/interface.d.ts +23 -0
- package/dist/views/page_animation_setting/animationData.d.ts +11 -0
- package/dist/views/page_animation_setting/index.vue.d.ts +2 -0
- package/dist/views/page_w_setting/index.vue.d.ts +2 -0
- package/dist/views/position/components/drawerPosition.vue.d.ts +12 -0
- package/dist/views/position/enum.d.ts +8 -0
- package/dist/views/position/index.vue.d.ts +1532 -0
- package/dist/views/region/components/drawerRegion.vue.d.ts +12 -0
- package/dist/views/region/enum.d.ts +22 -0
- package/dist/views/region/index.vue.d.ts +1533 -0
- package/dist/views/resource/components/ComponentSelect.vue.d.ts +14 -0
- package/dist/views/resource/components/DynamicRoutesForm.vue.d.ts +13 -0
- package/dist/views/resource/components/HoverCard.vue.d.ts +21 -0
- package/dist/views/resource/components/IconSelect.vue.d.ts +10 -0
- package/dist/views/resource/components/ImportExport.vue.d.ts +13 -0
- package/dist/views/resource/components/LayoutForm.vue.d.ts +10 -0
- package/dist/views/resource/components/MetaForm.vue.d.ts +10 -0
- package/dist/views/resource/components/ResourceEdit.vue.d.ts +16 -0
- package/dist/views/resource/components/RoleRelation.vue.d.ts +6 -0
- package/dist/views/resource/enum.d.ts +23 -0
- package/dist/views/resource/hooks/useLayoutForm.d.ts +12 -0
- package/dist/views/resource/hooks/useMetaForm.d.ts +6 -0
- package/dist/views/resource/index.vue.d.ts +1571 -0
- package/dist/views/resource/interface.d.ts +9 -0
- package/dist/views/resource/model.d.ts +53 -0
- package/dist/views/role/components/ResourceRelation.vue.d.ts +1515 -0
- package/dist/views/role/components/drawerRole.vue.d.ts +49 -0
- package/dist/views/role/enum.d.ts +25 -0
- package/dist/views/role/index.vue.d.ts +3090 -0
- package/dist/views/role/interface.d.ts +6 -0
- package/dist/views/role_group/components/drawerRole.vue.d.ts +45 -0
- package/dist/views/role_group/enum.d.ts +21 -0
- package/dist/views/role_group/index.vue.d.ts +1565 -0
- package/dist/views/role_group/interface.d.ts +6 -0
- package/dist/views/safe_setting/index.vue.d.ts +4 -0
- package/dist/views/tabbar_setting/animationData.d.ts +11 -0
- package/dist/views/tabbar_setting/index.vue.d.ts +2 -0
- package/dist/views/tenant/components/TenantEdit.vue.d.ts +14 -0
- package/dist/views/tenant/enum.d.ts +7 -0
- package/dist/views/tenant/index.vue.d.ts +1534 -0
- package/dist/views/tenant/interface.d.ts +6 -0
- package/dist/views/theme_setting/index.vue.d.ts +2 -0
- package/dist/views/toolbar_setting/animationData.d.ts +15 -0
- package/dist/views/toolbar_setting/index.vue.d.ts +2 -0
- package/dist/views/user/components/OrgAndPosition.vue.d.ts +14 -0
- package/dist/views/user/components/UserAuthorization.vue.d.ts +47 -0
- package/dist/views/user/components/UserEdit.vue.d.ts +16 -0
- package/dist/views/user/enum.d.ts +13 -0
- package/dist/views/user/index.vue.d.ts +1594 -0
- package/dist/views/user/interface.d.ts +39 -0
- package/dist/views/watermark_setting/animationData.d.ts +3 -0
- package/dist/views/watermark_setting/index.vue.d.ts +31 -0
- package/dist/xitongpeizhifuwu-BoCbGEk7.js +23 -0
- package/dist/zddata-DQP5Kx3c.js +4 -0
- package/dist/ziyuanjiekou-BC65-bFK.js +69 -0
- package/dist/zuzhijiaosebiaokongzhiqi-Cj4ZjkfZ.js +28 -0
- package/dist/zy_checked-Bb6zRsYe.js +4 -0
- package/dist/zy_default-BGjhoury.js +4 -0
- package/package.json +59 -0
- package/src/api/modules/assist/gonggaofuwu.ts +124 -0
- package/src/api/modules/assist/index.ts +3 -0
- package/src/api/modules/assist/qunzujiekou.ts +128 -0
- package/src/api/modules/assist/quyujiekou.ts +108 -0
- package/src/api/modules/assist/typings.d.ts +368 -0
- package/src/api/modules/configData/heibaimingdanfuwu.ts +106 -0
- package/src/api/modules/configData/index.ts +3 -0
- package/src/api/modules/configData/typings.d.ts +357 -0
- package/src/api/modules/configData/xitongpeizhifuwu.ts +346 -0
- package/src/api/modules/configData/zidifuwu.ts +227 -0
- package/src/api/modules/log/caozuorizhifuwu.ts +43 -0
- package/src/api/modules/log/denglurizhifuwu.ts +43 -0
- package/src/api/modules/log/index.ts +2 -0
- package/src/api/modules/log/typings.d.ts +183 -0
- package/src/api/modules/rbac/gangweijiekou.ts +132 -0
- package/src/api/modules/rbac/index.ts +12 -0
- package/src/api/modules/rbac/jiaosejiekou.ts +139 -0
- package/src/api/modules/rbac/pubJiaosezukongzhiqi.ts +152 -0
- package/src/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.ts +200 -0
- package/src/api/modules/rbac/typings.d.ts +2124 -0
- package/src/api/modules/rbac/yonghujiekou.ts +327 -0
- package/src/api/modules/rbac/yonghushoucangbiaojiekou.ts +110 -0
- package/src/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.ts +82 -0
- package/src/api/modules/rbac/ziyuandaorudaochuxiangguanjiekou.ts +158 -0
- package/src/api/modules/rbac/ziyuanjiekou.ts +262 -0
- package/src/api/modules/rbac/zuhuguanlijiekou.ts +100 -0
- package/src/api/modules/rbac/zuzhijiaosebiaokongzhiqi.ts +85 -0
- package/src/api/modules/rbac/zuzhijiekou.ts +189 -0
- package/src/api/request.ts +4 -0
- package/src/assets/icons/add-child.svg +1 -0
- package/src/assets/icons/authority.svg +1 -0
- package/src/assets/icons/authorize.svg +1 -0
- package/src/assets/icons/blacklist-disable.svg +1 -0
- package/src/assets/icons/blacklist-enable.svg +1 -0
- package/src/assets/icons/browser-chrome.svg +1 -0
- package/src/assets/icons/browser-edge.svg +1 -0
- package/src/assets/icons/browser-ie.svg +1 -0
- package/src/assets/icons/browser-other.svg +1 -0
- package/src/assets/icons/browser-safari.svg +1 -0
- package/src/assets/icons/edit.svg +1 -0
- package/src/assets/icons/icard.svg +1 -0
- package/src/assets/icons/icon_animation.svg +1 -0
- package/src/assets/icons/icon_breadcrumb.svg +1 -0
- package/src/assets/icons/icon_copyright.svg +1 -0
- package/src/assets/icons/icon_jt.svg +1 -0
- package/src/assets/icons/icon_layout.svg +1 -0
- package/src/assets/icons/icon_mainpage.svg +1 -0
- package/src/assets/icons/icon_menu.svg +1 -0
- package/src/assets/icons/icon_page_size.svg +1 -0
- package/src/assets/icons/icon_position_type.svg +1 -0
- package/src/assets/icons/icon_safe_manage.svg +1 -0
- package/src/assets/icons/icon_screen_scale.svg +6 -0
- package/src/assets/icons/icon_system_manage.svg +1 -0
- package/src/assets/icons/icon_tabbar.svg +1 -0
- package/src/assets/icons/icon_toolbar.svg +1 -0
- package/src/assets/icons/icon_topbar.svg +1 -0
- package/src/assets/icons/icon_watermark.svg +1 -0
- package/src/assets/icons/log-center.svg +1 -0
- package/src/assets/icons/not-data.svg +1 -0
- package/src/assets/icons/org-main.svg +1 -0
- package/src/assets/icons/org-unmain.svg +1 -0
- package/src/assets/icons/remove.svg +1 -0
- package/src/assets/icons/resource-app.svg +1 -0
- package/src/assets/icons/resource-btn.svg +1 -0
- package/src/assets/icons/resource-dynamic.svg +39 -0
- package/src/assets/icons/resource-index.svg +1 -0
- package/src/assets/icons/resource-menu.svg +1 -0
- package/src/assets/icons/resource-micro.svg +40 -0
- package/src/assets/icons/resource-nonmenu.svg +1 -0
- package/src/assets/icons/setting-manage.svg +1 -0
- package/src/assets/icons/theme-check-mark.svg +1 -0
- package/src/assets/icons/theme-title.svg +1 -0
- package/src/assets/icons/view.svg +1 -0
- package/src/assets/icons/zddata.svg +1 -0
- package/src/assets/icons/zy_checked.svg +1 -0
- package/src/assets/icons/zy_default.svg +1 -0
- package/src/assets/images/layout/item1.webp +0 -0
- package/src/assets/images/layout/item1_dark.webp +0 -0
- package/src/assets/images/layout/item2.webp +0 -0
- package/src/assets/images/layout/item2_dark.webp +0 -0
- package/src/assets/images/layout/item3.webp +0 -0
- package/src/assets/images/layout/item3_dark.webp +0 -0
- package/src/assets/images/layout/item4.webp +0 -0
- package/src/assets/images/layout/item4_dark.webp +0 -0
- package/src/assets/images/layout/item5.webp +0 -0
- package/src/assets/images/layout/item5_dark.webp +0 -0
- package/src/assets/images/page-width/anto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/auto.webp +0 -0
- package/src/assets/images/page-width/auto_dark.webp +0 -0
- package/src/assets/images/page-width/auto_min_w.webp +0 -0
- package/src/assets/images/page-width/auto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/icon_auto.webp +0 -0
- package/src/assets/images/page-width/icon_auto_dark.webp +0 -0
- package/src/assets/images/page-width/icon_auto_min_w.webp +0 -0
- package/src/assets/images/page-width/icon_auto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/icon_middle.webp +0 -0
- package/src/assets/images/page-width/icon_middle_dark.webp +0 -0
- package/src/assets/images/page-width/icon_middle_max_w.webp +0 -0
- package/src/assets/images/page-width/icon_middle_max_w_dark.webp +0 -0
- package/src/assets/images/page-width/middle.webp +0 -0
- package/src/assets/images/page-width/middle_dark.webp +0 -0
- package/src/assets/images/page-width/middle_max_w.webp +0 -0
- package/src/assets/images/page-width/middle_max_w_dark.webp +0 -0
- package/src/assets/lottie/breadcrumb/dark/enable.json +1 -0
- package/src/assets/lottie/breadcrumb/dark/enableMainMenu.json +1 -0
- package/src/assets/lottie/breadcrumb/dark/style.json +1 -0
- package/src/assets/lottie/breadcrumb/light/enable.json +1 -0
- package/src/assets/lottie/breadcrumb/light/enableMainMenu.json +1 -0
- package/src/assets/lottie/breadcrumb/light/style.json +1 -0
- package/src/assets/lottie/layout/data-test.json +1 -0
- package/src/assets/lottie/layout/data.json +1 -0
- package/src/assets/lottie/menu/dark/enableHotkeys.json +1 -0
- package/src/assets/lottie/menu/dark/enableSubMenuCollapseButton.json +1 -0
- package/src/assets/lottie/menu/dark/isRounded.json +1 -0
- package/src/assets/lottie/menu/dark/menuActiveStyle.json +1 -0
- package/src/assets/lottie/menu/dark/subMenuCollapse.json +1 -0
- package/src/assets/lottie/menu/dark/subMenuUniqueOpened.json +1 -0
- package/src/assets/lottie/menu/light/enableHotkeys.json +1 -0
- package/src/assets/lottie/menu/light/enableSubMenuCollapseButton.json +1 -0
- package/src/assets/lottie/menu/light/isRounded.json +1 -0
- package/src/assets/lottie/menu/light/menuActiveStyle.json +1 -0
- package/src/assets/lottie/menu/light/subMenuCollapse.json +1 -0
- package/src/assets/lottie/menu/light/subMenuUniqueOpened.json +1 -0
- package/src/assets/lottie/other/dark/enableCopyright.json +1 -0
- package/src/assets/lottie/other/dark/enableHotkeys.json +1 -0
- package/src/assets/lottie/other/dark/switchTabbarAndToolbar.json +1 -0
- package/src/assets/lottie/other/light/enableCopyright.json +1 -0
- package/src/assets/lottie/other/light/enableHotkeys.json +1 -0
- package/src/assets/lottie/other/light/switchTabbarAndToolbar.json +1 -0
- package/src/assets/lottie/page_animation/dark/fadeinout.json +1 -0
- package/src/assets/lottie/page_animation/dark/fadeinout_old.json +1 -0
- package/src/assets/lottie/page_animation/dark/tobottom.json +1 -0
- package/src/assets/lottie/page_animation/dark/tobottom_old.json +1 -0
- package/src/assets/lottie/page_animation/dark/toleft.json +1 -0
- package/src/assets/lottie/page_animation/dark/toleft_old.json +1 -0
- package/src/assets/lottie/page_animation/dark/toright.json +1 -0
- package/src/assets/lottie/page_animation/dark/toright_old.json +1 -0
- package/src/assets/lottie/page_animation/dark/totop.json +1 -0
- package/src/assets/lottie/page_animation/dark/totop_old.json +1 -0
- package/src/assets/lottie/page_animation/light/fadeinout.json +1 -0
- package/src/assets/lottie/page_animation/light/tobottom.json +1 -0
- package/src/assets/lottie/page_animation/light/toleft.json +1 -0
- package/src/assets/lottie/page_animation/light/toright.json +1 -0
- package/src/assets/lottie/page_animation/light/totop.json +1 -0
- package/src/assets/lottie/tabbar/dark/enable.json +1 -0
- package/src/assets/lottie/tabbar/dark/enableHotkeys.json +1 -0
- package/src/assets/lottie/tabbar/dark/enableIcon.json +1 -0
- package/src/assets/lottie/tabbar/dark/enableMemory.json +1 -0
- package/src/assets/lottie/tabbar/dark/style.json +1 -0
- package/src/assets/lottie/tabbar/light/enable.json +1 -0
- package/src/assets/lottie/tabbar/light/enableHotkeys.json +1 -0
- package/src/assets/lottie/tabbar/light/enableIcon.json +1 -0
- package/src/assets/lottie/tabbar/light/enableMemory.json +1 -0
- package/src/assets/lottie/tabbar/light/style.json +1 -0
- package/src/assets/lottie/toolbar/dark/enableColorScheme.json +1 -0
- package/src/assets/lottie/toolbar/dark/enableFullscreen.json +1 -0
- package/src/assets/lottie/toolbar/dark/enableI18n.json +1 -0
- package/src/assets/lottie/toolbar/dark/enableNotification.json +1 -0
- package/src/assets/lottie/toolbar/dark/enablePageReload.json +1 -0
- package/src/assets/lottie/toolbar/dark/enableUserPreferences.json +1 -0
- package/src/assets/lottie/toolbar/dark/navSearchEnable.json +1 -0
- package/src/assets/lottie/toolbar/dark/navSearchEnableHotkeys.json +1 -0
- package/src/assets/lottie/toolbar/light/enableColorScheme.json +1 -0
- package/src/assets/lottie/toolbar/light/enableFullscreen.json +1 -0
- package/src/assets/lottie/toolbar/light/enableI18n.json +1 -0
- package/src/assets/lottie/toolbar/light/enableNotification.json +1 -0
- package/src/assets/lottie/toolbar/light/enablePageReload.json +1 -0
- package/src/assets/lottie/toolbar/light/enableUserPreferences.json +1 -0
- package/src/assets/lottie/toolbar/light/navSearchEnable.json +1 -0
- package/src/assets/lottie/toolbar/light/navSearchEnableHotkeys.json +1 -0
- package/src/assets/lottie/watermark/dark/enableWatermark.json +1 -0
- package/src/assets/lottie/watermark/light/enableWatermark.json +1 -0
- package/src/assets/styles/vxe-table.css +13 -0
- package/src/components/DirectoryIcones/ComponentsIcones.vue +18 -0
- package/src/components/DirectoryIcones/FolderIcones.vue +18 -0
- package/src/components/DirectoryIcones/ModuleIcones.vue +18 -0
- package/src/components/DirectoryIcones/PackagesIcones.vue +18 -0
- package/src/components/DirectoryIcones/SrcIcones.vue +18 -0
- package/src/components/DirectoryIcones/ViewIcones.vue +18 -0
- package/src/components/DirectoryIcones/VueIcones.vue +9 -0
- package/src/components/GroupSelector/index.vue +280 -0
- package/src/components/GroupSelector/interface.ts +6 -0
- package/src/components/JsonEditorModal/index.vue +59 -0
- package/src/components/OrgTree/index.vue +91 -0
- package/src/components/OrgUserSelector/OrgSelector.vue +135 -0
- package/src/components/OrgUserSelector/UserSelector.vue +164 -0
- package/src/components/OrgUserSelector/index.ts +52 -0
- package/src/components/OrgUserSelector/provider.ts +373 -0
- package/src/components/ResourceIcones/BoxColorPicker.vue +228 -0
- package/src/components/ResourceIcones/Select.vue +474 -0
- package/src/components/ResourceSelector/enum.ts +5 -0
- package/src/components/ResourceSelector/hooks/useAppAndResource.ts +96 -0
- package/src/components/ResourceSelector/index.vue +414 -0
- package/src/components/RoleSelector/RoleSearch.vue +60 -0
- package/src/components/RoleSelector/RoleSelector.vue +174 -0
- package/src/components/RoleSelector/TooltipLabel.vue +24 -0
- package/src/components/RoleSelector/index.ts +2 -0
- package/src/components/RoleSelector/interface.ts +4 -0
- package/src/components/RoleSelector/useRole.ts +56 -0
- package/src/composables/useLottie.ts +65 -0
- package/src/composables/useWebSocketManager.ts +103 -0
- package/src/context.ts +4 -0
- package/src/index.ts +51 -0
- package/src/interface.ts +83 -0
- package/src/routes/index.ts +160 -0
- package/src/routes/modules/authority.manage.menu.ts +92 -0
- package/src/routes/modules/log.manage.menu.ts +37 -0
- package/src/routes/modules/safe.manage.menu.ts +59 -0
- package/src/routes/modules/stylesetting.manage.menu.ts +114 -0
- package/src/routes/modules/system.manage.menu.ts +82 -0
- package/src/stores/index.ts +1 -0
- package/src/stores/view.ts +292 -0
- package/src/utils/dict.ts +21 -0
- package/src/utils/routeSystem.ts +53 -0
- package/src/utils/validateObjectStructure.ts +47 -0
- package/src/views/blackWhiteList/components/drawerBlackWhiteList.vue +132 -0
- package/src/views/blackWhiteList/enum.ts +7 -0
- package/src/views/blackWhiteList/index.vue +297 -0
- package/src/views/blackWhiteList/types.ts +4 -0
- package/src/views/breadcrumb_setting/animationData.ts +15 -0
- package/src/views/breadcrumb_setting/index.vue +147 -0
- package/src/views/components/HCheckList.vue +47 -0
- package/src/views/components/animation_item.vue +37 -0
- package/src/views/components/setItem.vue +119 -0
- package/src/views/data-permission/components/createAndEditDataPermission.vue +354 -0
- package/src/views/data-permission/enum.ts +59 -0
- package/src/views/data-permission/index.vue +187 -0
- package/src/views/dictionary/components/drawerDictionary.vue +108 -0
- package/src/views/dictionary/components/drawerDictionaryItem.vue +115 -0
- package/src/views/dictionary/enum.ts +8 -0
- package/src/views/dictionary/index.vue +194 -0
- package/src/views/dictionary/itemlist.vue +164 -0
- package/src/views/group/components/drawerGroup.vue +177 -0
- package/src/views/group/enum.ts +25 -0
- package/src/views/group/index.vue +202 -0
- package/src/views/layout_setting/index.vue +296 -0
- package/src/views/log_center/components/browserType.vue +35 -0
- package/src/views/log_center/components/loginHistoryDetail.vue +69 -0
- package/src/views/log_center/components/operateHistoryDetail.vue +78 -0
- package/src/views/log_center/login_history.vue +234 -0
- package/src/views/log_center/operate_history.vue +228 -0
- package/src/views/menu_setting/animationData.ts +27 -0
- package/src/views/menu_setting/index.vue +207 -0
- package/src/views/organization/components/drawerOrganization.vue +161 -0
- package/src/views/organization/components/drawerRole.vue +161 -0
- package/src/views/organization/enum.ts +26 -0
- package/src/views/organization/index.vue +497 -0
- package/src/views/other_setting/animationData.ts +15 -0
- package/src/views/other_setting/index.vue +250 -0
- package/src/views/other_setting/interface.ts +26 -0
- package/src/views/page_animation_setting/animationData.ts +23 -0
- package/src/views/page_animation_setting/index.vue +192 -0
- package/src/views/page_w_setting/index.vue +255 -0
- package/src/views/position/components/drawerPosition.vue +131 -0
- package/src/views/position/enum.ts +8 -0
- package/src/views/position/index.vue +167 -0
- package/src/views/region/components/drawerRegion.vue +143 -0
- package/src/views/region/enum.ts +24 -0
- package/src/views/region/index.vue +246 -0
- package/src/views/resource/components/ComponentSelect.vue +303 -0
- package/src/views/resource/components/DynamicRoutesForm.vue +84 -0
- package/src/views/resource/components/HoverCard.vue +62 -0
- package/src/views/resource/components/IconSelect.vue +188 -0
- package/src/views/resource/components/ImportExport.vue +313 -0
- package/src/views/resource/components/LayoutForm.vue +92 -0
- package/src/views/resource/components/MetaForm.vue +216 -0
- package/src/views/resource/components/ResourceEdit.vue +331 -0
- package/src/views/resource/components/RoleRelation.vue +100 -0
- package/src/views/resource/enum.ts +33 -0
- package/src/views/resource/hooks/useLayoutForm.ts +57 -0
- package/src/views/resource/hooks/useMetaForm.ts +130 -0
- package/src/views/resource/index.vue +261 -0
- package/src/views/resource/interface.ts +10 -0
- package/src/views/resource/model.ts +81 -0
- package/src/views/role/components/ResourceRelation.vue +112 -0
- package/src/views/role/components/drawerRole.vue +191 -0
- package/src/views/role/enum.ts +26 -0
- package/src/views/role/index.vue +183 -0
- package/src/views/role/interface.ts +6 -0
- package/src/views/role_group/components/ResourceRelation.vue +90 -0
- package/src/views/role_group/components/drawerRole.vue +154 -0
- package/src/views/role_group/enum.ts +22 -0
- package/src/views/role_group/index.vue +170 -0
- package/src/views/role_group/interface.ts +6 -0
- package/src/views/safe_setting/index.vue +235 -0
- package/src/views/tabbar_setting/animationData.ts +23 -0
- package/src/views/tabbar_setting/index.vue +186 -0
- package/src/views/tenant/components/TenantEdit.vue +219 -0
- package/src/views/tenant/enum.ts +7 -0
- package/src/views/tenant/index.vue +185 -0
- package/src/views/tenant/interface.ts +4 -0
- package/src/views/theme_setting/index.vue +436 -0
- package/src/views/toolbar_setting/animationData.ts +38 -0
- package/src/views/toolbar_setting/index.vue +176 -0
- package/src/views/user/components/OrgAndPosition.vue +156 -0
- package/src/views/user/components/UserAuthorization.vue +261 -0
- package/src/views/user/components/UserEdit.vue +267 -0
- package/src/views/user/enum.ts +13 -0
- package/src/views/user/index.vue +266 -0
- package/src/views/user/interface.ts +43 -0
- package/src/views/watermark_setting/animationData.ts +7 -0
- package/src/views/watermark_setting/index.vue +229 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import AnimationItem from './animation_item.vue';
|
|
3
|
+
import HCheckList from './HCheckList.vue';
|
|
4
|
+
|
|
5
|
+
defineOptions({
|
|
6
|
+
name: 'SetItem',
|
|
7
|
+
});
|
|
8
|
+
const props = withDefaults(
|
|
9
|
+
defineProps<{
|
|
10
|
+
name?: string
|
|
11
|
+
descripe?: string
|
|
12
|
+
type?: string
|
|
13
|
+
open?: boolean
|
|
14
|
+
activeStyle?: Val
|
|
15
|
+
styleOptions?: CheckOptions
|
|
16
|
+
lightAnimationData?: string
|
|
17
|
+
darkAnimationData?: string
|
|
18
|
+
}>(),
|
|
19
|
+
{
|
|
20
|
+
name: '',
|
|
21
|
+
descripe: '',
|
|
22
|
+
type: '',
|
|
23
|
+
open: false,
|
|
24
|
+
activeStyle: '',
|
|
25
|
+
styleOptions: () => { return []; },
|
|
26
|
+
lightAnimationData: '',
|
|
27
|
+
darkAnimationData: '',
|
|
28
|
+
},
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
const emit = defineEmits(['change']);
|
|
32
|
+
|
|
33
|
+
type CheckOptions = {
|
|
34
|
+
label?: string | number
|
|
35
|
+
icon?: string
|
|
36
|
+
value: string | number
|
|
37
|
+
disabled?: boolean
|
|
38
|
+
}[];
|
|
39
|
+
|
|
40
|
+
type Val = Exclude<Settings.breadcrumb['style'] | Settings.menu['menuActiveStyle'] | Settings.tabbar['style'], undefined>;
|
|
41
|
+
|
|
42
|
+
const setOpen = ref(props.open);
|
|
43
|
+
const setActiveStyle = ref(props.activeStyle);
|
|
44
|
+
const animateItem = ref();
|
|
45
|
+
|
|
46
|
+
function play() {
|
|
47
|
+
if (animateItem.value) {
|
|
48
|
+
animateItem.value?.play();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function stop() {
|
|
53
|
+
if (animateItem.value) {
|
|
54
|
+
animateItem.value?.stop();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
watch(() => setOpen.value, () => {
|
|
59
|
+
emit('change', setOpen.value);
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
watch(() => setActiveStyle.value, () => {
|
|
63
|
+
emit('change', setActiveStyle.value);
|
|
64
|
+
});
|
|
65
|
+
</script>
|
|
66
|
+
|
|
67
|
+
<template>
|
|
68
|
+
<div class="flex flex-col">
|
|
69
|
+
<div class="flex flex-row items-center justify-between h-24px">
|
|
70
|
+
<div class="flex flex-row items-center">
|
|
71
|
+
<span class="text-[#4E5969] text-[14px] dark:text-[#C9CDD4]">{{ props.name }}</span>
|
|
72
|
+
<a-tooltip v-if="props.descripe" :title="props.descripe">
|
|
73
|
+
<PubinfoIcon name="i-ri-question-line" class="text-[#4E5969] dark:text-[#C9CDD4]" />
|
|
74
|
+
</a-tooltip>
|
|
75
|
+
</div>
|
|
76
|
+
|
|
77
|
+
<a-switch
|
|
78
|
+
v-if="props.type === 'switch'"
|
|
79
|
+
v-model:checked="setOpen"
|
|
80
|
+
checked-children="开启"
|
|
81
|
+
un-checked-children="关闭"
|
|
82
|
+
/>
|
|
83
|
+
<HCheckList
|
|
84
|
+
v-if="props.type === 'check'"
|
|
85
|
+
v-model="setActiveStyle"
|
|
86
|
+
class="custom_style h-24px"
|
|
87
|
+
:options="styleOptions"
|
|
88
|
+
/>
|
|
89
|
+
</div>
|
|
90
|
+
<div
|
|
91
|
+
class="mt-[16px] item_ani flex-1 dark:bg-[#3a3e43]! dark:border-transparent!"
|
|
92
|
+
@mouseenter="play()"
|
|
93
|
+
@mouseleave="stop()"
|
|
94
|
+
>
|
|
95
|
+
<div class="h-full w-[75%] rounded-[8px] jb flex justify-center">
|
|
96
|
+
<AnimationItem
|
|
97
|
+
ref="animateItem"
|
|
98
|
+
:light-animation-data="props.lightAnimationData"
|
|
99
|
+
:dark-animation-data="props.darkAnimationData"
|
|
100
|
+
/>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
</template>
|
|
105
|
+
|
|
106
|
+
<style scoped>
|
|
107
|
+
.item_ani {
|
|
108
|
+
--at-apply: flex flex-col bg-[color:var(--g-bg)] border border-[color:var(--g-tabbar-tab-hover-bg)] pt-[26px] rounded-lg border-solid;
|
|
109
|
+
place-items: center center;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.item_ani .jb {
|
|
113
|
+
background: linear-gradient(180deg, var(--g-container-bg) 0%, transparent 100%);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.custom_style :deep(.text-sm) {
|
|
117
|
+
--at-apply: text-xs;
|
|
118
|
+
}
|
|
119
|
+
</style>
|
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { Rule } from 'ant-design-vue/es/form';
|
|
3
|
+
import type { FormExpose } from 'ant-design-vue/es/form/Form';
|
|
4
|
+
import type { ModelValue } from '@/components/OrgUserSelector/OrgSelector.vue';
|
|
5
|
+
import type { SelectedResourceInfo } from '@/components/ResourceSelector/hooks/useAppAndResource';
|
|
6
|
+
import { useToggle } from '@vueuse/core';
|
|
7
|
+
import { message } from 'ant-design-vue';
|
|
8
|
+
import { getRbacPubDataPermissionsGetById, postRbacPubDataPermissionsSave, postRbacPubDataPermissionsUpdate } from '@/api/modules/rbac';
|
|
9
|
+
import GroupSelector from '@/components/GroupSelector/index.vue';
|
|
10
|
+
import OrgSelector from '@/components/OrgUserSelector/OrgSelector.vue';
|
|
11
|
+
import { RESOURCE_MODE } from '@/components/ResourceSelector/enum';
|
|
12
|
+
import useAppAndResource from '@/components/ResourceSelector/hooks/useAppAndResource';
|
|
13
|
+
import ResourceSelector from '@/components/ResourceSelector/index.vue';
|
|
14
|
+
import { DATA_PERMISSION_TYPE, dataPermissionOptionsAll } from '../enum';
|
|
15
|
+
|
|
16
|
+
defineOptions({
|
|
17
|
+
name: 'CreateAndEditDataPermission',
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
const emit = defineEmits(['submit']);
|
|
21
|
+
|
|
22
|
+
const resourceMode = RESOURCE_MODE.DATA_PERMISSION;
|
|
23
|
+
const {
|
|
24
|
+
appList,
|
|
25
|
+
resourceModelRef,
|
|
26
|
+
selectedResources,
|
|
27
|
+
getAppList,
|
|
28
|
+
updateTreeDataAndResourceMap,
|
|
29
|
+
setSelectedResources,
|
|
30
|
+
updateSelectedResources,
|
|
31
|
+
clearSelectedResources,
|
|
32
|
+
openResourceModel,
|
|
33
|
+
} = useAppAndResource(resourceMode);
|
|
34
|
+
|
|
35
|
+
const dialogTitle = ref('');
|
|
36
|
+
const defaultFormData = {
|
|
37
|
+
name: '',
|
|
38
|
+
type: '',
|
|
39
|
+
appId: '',
|
|
40
|
+
orgIds: [],
|
|
41
|
+
resourceIds: [],
|
|
42
|
+
};
|
|
43
|
+
const formRef = ref<FormExpose>();
|
|
44
|
+
const rules: Record<string, Rule[]> = {
|
|
45
|
+
name: [
|
|
46
|
+
{
|
|
47
|
+
required: true,
|
|
48
|
+
message: '请输入数据权限名称',
|
|
49
|
+
trigger: ['blur', 'change'],
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
type: [
|
|
53
|
+
{
|
|
54
|
+
required: true,
|
|
55
|
+
message: '请选择数据权限规则',
|
|
56
|
+
trigger: ['blur', 'change'],
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
appId: [{ required: true, message: '请选择所属应用', trigger: ['blur', 'change'] }],
|
|
60
|
+
resourceIds: [{ type: 'array', required: true, message: '请选择资源', trigger: ['blur', 'change'] }],
|
|
61
|
+
orgIds: [{ type: 'array', required: true, message: '请选择部门', trigger: ['blur', 'change'] }],
|
|
62
|
+
groupIds: [{ type: 'array', required: true, message: '请选择群组', trigger: ['blur', 'change'] }],
|
|
63
|
+
};
|
|
64
|
+
const form = ref<API.shujuquanxianxinzenghuogengxinduixiang>({
|
|
65
|
+
...defaultFormData,
|
|
66
|
+
});
|
|
67
|
+
const needOrg = computed(() => form.value.type === DATA_PERMISSION_TYPE.CUSTOM_DEPT_AND_SUB || form.value.type === DATA_PERMISSION_TYPE.CUSTOM_DEPT_ONLY);
|
|
68
|
+
const needGroup = computed(() => form.value.type === DATA_PERMISSION_TYPE.CUSTOM_GROUP);
|
|
69
|
+
|
|
70
|
+
const isEdit = ref(false);
|
|
71
|
+
const [open, setOpen] = useToggle(false);
|
|
72
|
+
|
|
73
|
+
// 部门相关
|
|
74
|
+
const orgRef = ref();
|
|
75
|
+
const selectedOrgs = ref<ModelValue[]>([]);
|
|
76
|
+
|
|
77
|
+
// 群组相关
|
|
78
|
+
const groupRef = ref();
|
|
79
|
+
const selectedGroups = ref<API.PubGroup[]>([]);
|
|
80
|
+
|
|
81
|
+
// 获取应用列表
|
|
82
|
+
getAppList();
|
|
83
|
+
|
|
84
|
+
async function onOpen(
|
|
85
|
+
title: string,
|
|
86
|
+
record?: API.shujuquanxianxinzenghuogengxinduixiang,
|
|
87
|
+
) {
|
|
88
|
+
dialogTitle.value = title;
|
|
89
|
+
isEdit.value = false;
|
|
90
|
+
form.value = { ...defaultFormData };
|
|
91
|
+
clearSelectedResources();
|
|
92
|
+
clearSelectedOrgs();
|
|
93
|
+
clearSelectedGroups();
|
|
94
|
+
|
|
95
|
+
if (record) {
|
|
96
|
+
isEdit.value = true;
|
|
97
|
+
|
|
98
|
+
const res: API.ResponseDatashujuquanxianbianjiduixiang = await getRbacPubDataPermissionsGetById({ id: record?.id as string });
|
|
99
|
+
if (res.success && res.data) {
|
|
100
|
+
const { id, type, name, appId, orgs, resources, groups } = res.data;
|
|
101
|
+
form.value = {
|
|
102
|
+
id,
|
|
103
|
+
type,
|
|
104
|
+
appId,
|
|
105
|
+
name: name || '',
|
|
106
|
+
orgIds: orgs?.map((item: API.PubOrgBo) => item.id || ''),
|
|
107
|
+
resourceIds: resources?.map((item: API.PubResourceTreeBo) => item.id || ''),
|
|
108
|
+
groupIds: groups?.map((item: API.PubResourceTreeBo) => item.id || ''),
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
if (orgs && orgs.length) {
|
|
112
|
+
selectedOrgs.value = orgs.map((org) => {
|
|
113
|
+
return {
|
|
114
|
+
orgId: org.id,
|
|
115
|
+
orgName: org.name,
|
|
116
|
+
};
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
if (groups && groups.length) {
|
|
121
|
+
selectedGroups.value = groups.map((org) => {
|
|
122
|
+
return {
|
|
123
|
+
id: org.id,
|
|
124
|
+
name: org.name,
|
|
125
|
+
value: org.id,
|
|
126
|
+
label: org.name && org.name.length > 20 ? org.name.slice(0, 20) : org.name,
|
|
127
|
+
};
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
await updateTreeDataAndResourceMap(form.value.appId as string);
|
|
132
|
+
if (form.value.resourceIds) {
|
|
133
|
+
updateSelectedResources(form.value.resourceIds);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
setOpen(true);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function changeApp(value: any) {
|
|
142
|
+
form.value.resourceIds = [];
|
|
143
|
+
selectedResources.value = [];
|
|
144
|
+
|
|
145
|
+
if (value) {
|
|
146
|
+
updateTreeDataAndResourceMap(value);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
function chooseResource() {
|
|
151
|
+
formRef.value?.validateFields(['appId']).then(() => {
|
|
152
|
+
if (form.value.appId && form.value.resourceIds) {
|
|
153
|
+
openResourceModel(form.value.resourceIds);
|
|
154
|
+
}
|
|
155
|
+
}).catch(() => {});
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
function onResourceSelected(data: SelectedResourceInfo[]) {
|
|
159
|
+
setSelectedResources(data);
|
|
160
|
+
if (data && data.length) {
|
|
161
|
+
form.value.resourceIds = data.map(item => item.id);
|
|
162
|
+
formRef.value?.clearValidate(['resourceIds']);
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
form.value.resourceIds = [];
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
function showOrg() {
|
|
170
|
+
if (orgRef.value) {
|
|
171
|
+
orgRef.value.open();
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function showGroup() {
|
|
176
|
+
if (groupRef.value) {
|
|
177
|
+
groupRef.value.open(selectedGroups.value);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
function clearSelectedOrgs() {
|
|
182
|
+
selectedOrgs.value = [];
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
function clearSelectedGroups() {
|
|
186
|
+
selectedGroups.value = [];
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
function onOrgSelected(orgs: ModelValue[]) {
|
|
190
|
+
selectedOrgs.value = orgs;
|
|
191
|
+
if (orgs.length) {
|
|
192
|
+
form.value.orgIds = orgs.map(org => org.orgId || '');
|
|
193
|
+
formRef.value?.clearValidate(['orgIds']);
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
form.value.orgIds = [];
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
function onGroupSelect(groups: API.PubGroup[]) {
|
|
201
|
+
selectedGroups.value = groups;
|
|
202
|
+
if (groups.length) {
|
|
203
|
+
form.value.groupIds = groups.map(group => group.id || '');
|
|
204
|
+
formRef.value?.clearValidate(['groupIds']);
|
|
205
|
+
}
|
|
206
|
+
else {
|
|
207
|
+
form.value.groupIds = [];
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
const [loading, setLoading] = useToggle(false);
|
|
212
|
+
function onSubmit() {
|
|
213
|
+
formRef.value?.validate().then(() => {
|
|
214
|
+
setLoading(true);
|
|
215
|
+
|
|
216
|
+
const submitFn = isEdit.value
|
|
217
|
+
? postRbacPubDataPermissionsUpdate
|
|
218
|
+
: postRbacPubDataPermissionsSave;
|
|
219
|
+
|
|
220
|
+
const params: API.shujuquanxianxinzenghuogengxinduixiang = {
|
|
221
|
+
...form.value,
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
if (!needOrg.value) {
|
|
225
|
+
delete params.orgIds;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
if (!needGroup.value) {
|
|
229
|
+
delete params.groupIds;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
submitFn(params)
|
|
233
|
+
.then((res: API.ResponseDataVoid) => {
|
|
234
|
+
if (res.success) {
|
|
235
|
+
message.success(`${dialogTitle.value}成功!`);
|
|
236
|
+
setOpen(false);
|
|
237
|
+
emit('submit');
|
|
238
|
+
}
|
|
239
|
+
})
|
|
240
|
+
.finally(() => setLoading(false));
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
function close() {
|
|
245
|
+
setOpen(false);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
defineExpose({
|
|
249
|
+
open: onOpen,
|
|
250
|
+
});
|
|
251
|
+
</script>
|
|
252
|
+
|
|
253
|
+
<template>
|
|
254
|
+
<a-drawer
|
|
255
|
+
v-model:open="open"
|
|
256
|
+
:title="`${dialogTitle}数据权限`"
|
|
257
|
+
placement="right"
|
|
258
|
+
:width="600"
|
|
259
|
+
destroy-on-close
|
|
260
|
+
:footer-style="{ textAlign: 'right' }"
|
|
261
|
+
@close="close"
|
|
262
|
+
>
|
|
263
|
+
<a-form ref="formRef" :model="form" :rules="rules" :label-col="{ span: 6 }">
|
|
264
|
+
<a-form-item label="数据权限名称" name="name">
|
|
265
|
+
<a-input v-model:value="form.name" :maxlength="20" />
|
|
266
|
+
</a-form-item>
|
|
267
|
+
<a-form-item label="数据权限规则" name="type">
|
|
268
|
+
<a-select
|
|
269
|
+
v-model:value="form.type"
|
|
270
|
+
:options="dataPermissionOptionsAll"
|
|
271
|
+
placeholder="请选择"
|
|
272
|
+
/>
|
|
273
|
+
</a-form-item>
|
|
274
|
+
<a-form-item label="所属应用" name="appId">
|
|
275
|
+
<a-select
|
|
276
|
+
v-model:value="form.appId"
|
|
277
|
+
:disabled="isEdit"
|
|
278
|
+
:options="appList"
|
|
279
|
+
@change="changeApp"
|
|
280
|
+
/>
|
|
281
|
+
</a-form-item>
|
|
282
|
+
<a-form-item label="所属资源" name="resourceIds">
|
|
283
|
+
<a-button type="primary" @click="chooseResource">
|
|
284
|
+
编辑资源
|
|
285
|
+
</a-button>
|
|
286
|
+
<div class="pt-10px">
|
|
287
|
+
<template v-for="item in selectedResources" :key="item">
|
|
288
|
+
<a-tooltip v-if="item.name.length > 20" :title="item.name">
|
|
289
|
+
<span class="inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]">
|
|
290
|
+
{{ `${item.name.slice(0, 20)}...` }}
|
|
291
|
+
</span>
|
|
292
|
+
</a-tooltip>
|
|
293
|
+
<span v-else class="inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]">
|
|
294
|
+
{{ item.name }}
|
|
295
|
+
</span>
|
|
296
|
+
</template>
|
|
297
|
+
</div>
|
|
298
|
+
</a-form-item>
|
|
299
|
+
<a-form-item v-if="needOrg" label="所属部门" name="orgIds">
|
|
300
|
+
<a-button type="primary" @click="showOrg">
|
|
301
|
+
编辑部门
|
|
302
|
+
</a-button>
|
|
303
|
+
<div class="pt-10px">
|
|
304
|
+
<template v-for="item in selectedOrgs" :key="item">
|
|
305
|
+
<a-tooltip v-if="item.orgName && item.orgName.length > 20" :title="item.orgName">
|
|
306
|
+
<span class="inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]">
|
|
307
|
+
{{ `${item.orgName?.slice(0, 20)}...` }}
|
|
308
|
+
</span>
|
|
309
|
+
</a-tooltip>
|
|
310
|
+
<span v-else class="inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]">
|
|
311
|
+
{{ item.orgName }}
|
|
312
|
+
</span>
|
|
313
|
+
</template>
|
|
314
|
+
</div>
|
|
315
|
+
</a-form-item>
|
|
316
|
+
<a-form-item v-if="needGroup" label="所属群组" name="groupIds">
|
|
317
|
+
<a-button type="primary" @click="showGroup">
|
|
318
|
+
编辑群组
|
|
319
|
+
</a-button>
|
|
320
|
+
<div class="pt-10px">
|
|
321
|
+
<template v-for="item in selectedGroups" :key="item">
|
|
322
|
+
<a-tooltip v-if="item.name && item.name.length > 20" :title="item.name">
|
|
323
|
+
<span class="inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]">
|
|
324
|
+
{{ `${item.name?.slice(0, 20)}...` }}
|
|
325
|
+
</span>
|
|
326
|
+
</a-tooltip>
|
|
327
|
+
<span v-else class="inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]">
|
|
328
|
+
{{ item.name }}
|
|
329
|
+
</span>
|
|
330
|
+
</template>
|
|
331
|
+
</div>
|
|
332
|
+
</a-form-item>
|
|
333
|
+
</a-form>
|
|
334
|
+
<template #footer>
|
|
335
|
+
<a-space>
|
|
336
|
+
<a-button @click="close">
|
|
337
|
+
取消
|
|
338
|
+
</a-button>
|
|
339
|
+
<a-button type="primary" :loading="loading" @click="onSubmit()">
|
|
340
|
+
提交
|
|
341
|
+
</a-button>
|
|
342
|
+
</a-space>
|
|
343
|
+
</template>
|
|
344
|
+
|
|
345
|
+
<OrgSelector
|
|
346
|
+
ref="orgRef"
|
|
347
|
+
:model-value="selectedOrgs"
|
|
348
|
+
multiple
|
|
349
|
+
@submit="onOrgSelected"
|
|
350
|
+
/>
|
|
351
|
+
<ResourceSelector ref="resourceModelRef" :mode="resourceMode" @select="onResourceSelected" />
|
|
352
|
+
<GroupSelector ref="groupRef" @select="onGroupSelect" />
|
|
353
|
+
</a-drawer>
|
|
354
|
+
</template>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export enum ACTION {
|
|
2
|
+
ADD = '新增',
|
|
3
|
+
EDIT = '编辑',
|
|
4
|
+
VIEW = '查看',
|
|
5
|
+
REMOVE = '删除',
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/** 数据权限类型 */
|
|
9
|
+
export enum DATA_PERMISSION_TYPE {
|
|
10
|
+
/* 查看全部 */
|
|
11
|
+
ALL = '1',
|
|
12
|
+
/* 仅看自己 */
|
|
13
|
+
ONLY_SELF = '2',
|
|
14
|
+
/* 仅看所在部门 */
|
|
15
|
+
SELF_DEPT_ONLY = '3',
|
|
16
|
+
/* 仅看所在部门及子部门 */
|
|
17
|
+
SELF_DEPT_AND_SUB = '4',
|
|
18
|
+
/* 仅自选部门 */
|
|
19
|
+
CUSTOM_DEPT_ONLY = '5',
|
|
20
|
+
/* 自选部门及子部门 */
|
|
21
|
+
CUSTOM_DEPT_AND_SUB = '6',
|
|
22
|
+
/* 指定群组 */
|
|
23
|
+
CUSTOM_GROUP = '7',
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type dataPermissionType = DATA_PERMISSION_TYPE.ALL
|
|
27
|
+
| DATA_PERMISSION_TYPE.ONLY_SELF
|
|
28
|
+
| DATA_PERMISSION_TYPE.SELF_DEPT_ONLY
|
|
29
|
+
| DATA_PERMISSION_TYPE.SELF_DEPT_AND_SUB
|
|
30
|
+
| DATA_PERMISSION_TYPE.CUSTOM_DEPT_AND_SUB
|
|
31
|
+
| DATA_PERMISSION_TYPE.CUSTOM_DEPT_ONLY
|
|
32
|
+
| DATA_PERMISSION_TYPE.CUSTOM_GROUP;
|
|
33
|
+
|
|
34
|
+
export const dataPermissionTypeLabel = {
|
|
35
|
+
[DATA_PERMISSION_TYPE.ALL]: '查看全部',
|
|
36
|
+
[DATA_PERMISSION_TYPE.ONLY_SELF]: '仅看自己',
|
|
37
|
+
[DATA_PERMISSION_TYPE.SELF_DEPT_ONLY]: '仅看所在部门',
|
|
38
|
+
[DATA_PERMISSION_TYPE.SELF_DEPT_AND_SUB]: '仅看所在部门及子部门',
|
|
39
|
+
[DATA_PERMISSION_TYPE.CUSTOM_DEPT_AND_SUB]: '自选部门及子部门',
|
|
40
|
+
[DATA_PERMISSION_TYPE.CUSTOM_DEPT_ONLY]: '仅自选部门',
|
|
41
|
+
[DATA_PERMISSION_TYPE.CUSTOM_GROUP]: '指定群组',
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export const dataPermissionOptions = [
|
|
45
|
+
{ label: '查看全部', value: DATA_PERMISSION_TYPE.ALL },
|
|
46
|
+
{ label: '仅看自己', value: DATA_PERMISSION_TYPE.ONLY_SELF },
|
|
47
|
+
{ label: '仅看所在部门', value: DATA_PERMISSION_TYPE.SELF_DEPT_ONLY },
|
|
48
|
+
{ label: '仅看所在部门及子部门', value: DATA_PERMISSION_TYPE.SELF_DEPT_AND_SUB },
|
|
49
|
+
];
|
|
50
|
+
|
|
51
|
+
export const dataPermissionOptionsAll = [
|
|
52
|
+
{ label: '查看全部', value: DATA_PERMISSION_TYPE.ALL },
|
|
53
|
+
{ label: '仅看自己', value: DATA_PERMISSION_TYPE.ONLY_SELF },
|
|
54
|
+
{ label: '仅看所在部门', value: DATA_PERMISSION_TYPE.SELF_DEPT_ONLY },
|
|
55
|
+
{ label: '仅看所在部门及子部门', value: DATA_PERMISSION_TYPE.SELF_DEPT_AND_SUB },
|
|
56
|
+
{ label: '自选部门及子部门', value: DATA_PERMISSION_TYPE.CUSTOM_DEPT_AND_SUB },
|
|
57
|
+
{ label: '仅自选部门', value: DATA_PERMISSION_TYPE.CUSTOM_DEPT_ONLY },
|
|
58
|
+
{ label: '指定群组', value: DATA_PERMISSION_TYPE.CUSTOM_GROUP },
|
|
59
|
+
];
|