@pubinfo/module-rbac 2.0.0-beta.8 → 2.0.0-rc.1
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-AWuDE4De.js +2 -0
- package/dist/ComponentSelect-CFoCrAFh.js +483 -0
- package/dist/DynamicRoutesForm-DmQMP8-p.js +376 -0
- package/dist/DynamicRoutesForm-xXTdh5EX.js +4 -0
- package/dist/HCheckList-DDP7S_nc.js +37 -0
- package/dist/HCheckList-u43x0KiD.js +2 -0
- package/dist/ImportExport-BbZkZEW_.js +4 -0
- package/dist/ImportExport-Yt6dABIv.js +354 -0
- package/dist/MetaForm-BB80P4w6.js +284 -0
- package/dist/MetaForm-D_na1CP8.js +4 -0
- package/dist/OrgAndPosition-BK5MTlOO.js +188 -0
- package/dist/OrgAndPosition-CDCim7yM.js +2 -0
- package/dist/ResourceEdit-CVwNJMVm.js +309 -0
- package/dist/ResourceEdit-D1e8tLAA.js +8 -0
- package/dist/ResourceRelation-DJDFQYFT.js +93 -0
- package/dist/ResourceRelation-DWhWzKQJ.js +3 -0
- package/dist/ResourceRelation-cfGS-erP.js +78 -0
- package/dist/ResourceSelector-B4AXXCxI.js +247 -0
- package/dist/RoleRelation-BlWDNAM1.js +79 -0
- package/dist/RoleRelation-CAMzPMFz.js +2 -0
- package/dist/RoleSelector-Bqv2p_7X.js +279 -0
- package/dist/TenantEdit-6rMUS9EP.js +253 -0
- package/dist/TenantEdit-BhpSW4w7.js +6 -0
- package/dist/UserAuthorization-Cx9oYms2.js +238 -0
- package/dist/UserAuthorization-D5rSSagE.js +4 -0
- package/dist/UserEdit-CqH6hxTZ.js +336 -0
- package/dist/UserEdit-CqrRx717.js +4 -0
- package/dist/_plugin-vue_export-helper-Cmy-mbsL.js +6 -0
- package/dist/add-child-CJM7MvB2.js +2 -0
- package/dist/animation_item-Bf_Y_nyf.js +4536 -0
- package/dist/animation_item-Wmcl4yBo.js +2 -0
- package/dist/api/modules/assist/qunzujiekou.d.ts +7 -0
- package/dist/api/modules/configData/index.d.ts +1 -1
- package/dist/api/modules/configData/{zidianfuwu.d.ts → zidifuwu.d.ts} +14 -0
- package/dist/api/modules/rbac/gangweijiekou.d.ts +7 -0
- package/dist/api/modules/rbac/index.d.ts +1 -0
- package/dist/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +7 -0
- package/dist/api/modules/rbac/yonghujiekou.d.ts +21 -0
- package/dist/api/modules/rbac/ziyuandaorudaochuxiangguanjiekou.d.ts +43 -0
- package/dist/api/modules/rbac/ziyuanjiekou.d.ts +7 -0
- package/dist/api/request.d.ts +1 -1
- package/dist/authority-BofK2fFE.js +2 -0
- package/dist/authorize-Ck1i_5K5.js +2 -0
- package/dist/blackWhiteList-B-EAyXzG.js +213 -0
- package/dist/blacklist-disable-BgMERGDX.js +2 -0
- package/dist/blacklist-enable-D8ds6NgH.js +2 -0
- package/dist/breadcrumb_setting-Bv12pA15.js +111 -0
- package/dist/browser-chrome-BVvmyPYW.js +2 -0
- package/dist/browser-edge-Bc36eH7f.js +2 -0
- package/dist/browser-ie-BiDFft9C.js +2 -0
- package/dist/browser-other-BzyOvDmB.js +2 -0
- package/dist/browser-safari-CBxgFrI_.js +2 -0
- package/dist/browserType-BJeH2o0t.js +26 -0
- package/dist/browserType-pMY0VZ_3.js +2 -0
- package/dist/chunk-B3eAFu3c.js +11 -0
- package/dist/cloneDeep-BnvyNhik.js +7 -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 +4 -4
- package/dist/components/OrgTree/index.vue.d.ts +1 -1
- package/dist/components/OrgUserSelector/OrgSelector.vue.d.ts +7 -7
- package/dist/components/OrgUserSelector/UserSelector.vue.d.ts +7 -7
- package/dist/components/OrgUserSelector/index.d.ts +3 -2
- package/dist/components/ResourceIcones/Select.vue.d.ts +9 -0
- package/dist/components/ResourceSelector/index.vue.d.ts +5 -5
- 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 +1 -1
- package/dist/configData-BoeH9I4s.js +86 -0
- package/dist/context.d.ts +3 -0
- package/dist/createAndEditDataPermission-BFmD3zpY.js +443 -0
- package/dist/createAndEditDataPermission-Ll6GWW-p.js +8 -0
- package/dist/data-permission-Dz4eCdAg.js +156 -0
- package/dist/dayjs.min-KffHrkDe.js +297 -0
- package/dist/dictionary-C8UVX_8l.js +180 -0
- package/dist/drawerBlackWhiteList-opDsd2_O.js +125 -0
- package/dist/drawerBlackWhiteList-taaV8A5D.js +3 -0
- package/dist/drawerDictionary-CzT9KJGw.js +130 -0
- package/dist/drawerDictionary-D0Bi75vl.js +4 -0
- package/dist/drawerDictionaryItem-BqQojUNh.js +4 -0
- package/dist/drawerDictionaryItem-LBeuvrE8.js +142 -0
- package/dist/drawerGroup-BI0pYuIO.js +3 -0
- package/dist/drawerGroup-B_pYqrpy.js +188 -0
- package/dist/drawerOrganization-BeDsW0ah.js +251 -0
- package/dist/drawerOrganization-RbLK6k_c.js +3 -0
- package/dist/drawerPosition-CKZCt-Yc.js +3 -0
- package/dist/drawerPosition-DRacJCCQ.js +170 -0
- package/dist/drawerRegion-BM__zqtq.js +187 -0
- package/dist/drawerRegion-CaXvxWEn.js +3 -0
- package/dist/drawerRole-27ggtdnJ.js +6 -0
- package/dist/drawerRole-BOf6UXMc.js +172 -0
- package/dist/drawerRole-CQURGn5D.js +215 -0
- package/dist/drawerRole-D9Dt3l7O.js +5 -0
- package/dist/drawerRole-DPC9SVDe.js +3 -0
- package/dist/drawerRole-DhU_4L0Z.js +159 -0
- package/dist/edit-DF7Qsxtl.js +2 -0
- package/dist/enum-BMY6bmPA.js +54 -0
- package/dist/enum-BZtNAeJC.js +23 -0
- package/dist/enum-CtIne-Ul.js +61 -0
- package/dist/enum-DfCD4cL8.js +4 -0
- package/dist/enum-e5LlvaOv.js +4 -0
- package/dist/group-C0rajn0e.js +174 -0
- package/dist/icard-CtletXtq.js +2 -0
- package/dist/icon_animation-Do8Rw-K9.js +2 -0
- package/dist/icon_breadcrumb-CmZgmswj.js +2 -0
- package/dist/icon_copyright--7CIXSE1.js +2 -0
- package/dist/icon_jt--G-Amuu4.js +2 -0
- package/dist/icon_layout-BkQems5J.js +2 -0
- package/dist/icon_mainpage-98dHnXRL.js +2 -0
- package/dist/icon_menu-8foYPA9U.js +2 -0
- package/dist/icon_page_size-CPjiZpP2.js +2 -0
- package/dist/icon_position_type-Do71e9Ov.js +2 -0
- package/dist/icon_safe_manage-DiBn-uSS.js +2 -0
- package/dist/icon_screen_scale-Ct8iHVKy.js +2 -0
- package/dist/icon_system_manage-CzBNNisy.js +2 -0
- package/dist/icon_tabbar-BajHaWfA.js +2 -0
- package/dist/icon_toolbar-DHKFZD2w.js +2 -0
- package/dist/icon_topbar-C4mu7up7.js +2 -0
- package/dist/icon_watermark-2Wtjrft3.js +2 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6873 -5
- package/dist/interface.d.ts +27 -3
- package/dist/itemlist-CZBPz_rC.js +157 -0
- package/dist/layout_setting-oQd8BfKx.js +74 -0
- package/dist/log-CQfCPTsC.js +14 -0
- package/dist/log-center-qtOWNEaD.js +2 -0
- package/dist/loginHistoryDetail-Abn9eS5-.js +78 -0
- package/dist/loginHistoryDetail-DDEuFbYB.js +4 -0
- package/dist/login_history-Btv9KB0x.js +196 -0
- package/dist/menu_setting-Cju5OkSE.js +158 -0
- package/dist/not-data-BA50qHBT.js +2 -0
- package/dist/not-data-BzaRFolb.js +2 -0
- package/dist/operateHistoryDetail-Br_M3mhI.js +90 -0
- package/dist/operateHistoryDetail-CLsHDBp7.js +4 -0
- package/dist/operate_history-D7jq2IH-.js +191 -0
- package/dist/org-main-D0M4-Mu2.js +2 -0
- package/dist/org-unmain-Bh9hzLgK.js +2 -0
- package/dist/organization-CeOyltjo.js +15605 -0
- package/dist/other_setting-rbUoVood.js +220 -0
- package/dist/page_animation_setting-Diclx4mg.js +117 -0
- package/dist/page_w_setting-Dr2tu_oS.js +69 -0
- package/dist/position-Bodjtnh9.js +168 -0
- package/dist/region-B9xObK4Z.js +185 -0
- package/dist/remove-B3pgrGrf.js +2 -0
- package/dist/resource-DhkRTloI.js +270 -0
- package/dist/resource-app-BKgfDs09.js +2 -0
- package/dist/resource-btn-BXLyUStb.js +2 -0
- package/dist/resource-dynamic-Dx3RhbQk.js +2 -0
- package/dist/resource-index-C2COvmY-.js +2 -0
- package/dist/resource-menu-C_Q6AEFw.js +2 -0
- package/dist/resource-micro-D_OBvoET.js +2 -0
- package/dist/resource-nonmenu-CCpeV9Km.js +2 -0
- package/dist/role-DoBrQ1zG.js +196 -0
- package/dist/role_group-BMNZ1M1A.js +172 -0
- package/dist/routes/index.d.ts +3 -1
- 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-J6GWqrZx.js +232 -0
- package/dist/setItem-CcNK_f8V.js +77 -0
- package/dist/setItem-CqHPfTBZ.js +5 -0
- package/dist/setting-manage-Di7-Ks18.js +2 -0
- package/dist/stores-DXQ1Ibt6.js +2 -0
- package/dist/style.css +2 -1
- package/dist/tabbar_setting-Di3OcDig.js +142 -0
- package/dist/tenant-pPYq3xtM.js +183 -0
- package/dist/theme-check-mark-DhhsmM5v.js +2 -0
- package/dist/theme-title-DEVFVYNh.js +2 -0
- package/dist/theme_setting-DMyPJp3M.js +117 -0
- package/dist/{index-BleenJqT.js → toolbar_setting-ChcZxAJJ.js} +155 -167
- package/dist/useAppAndResource-DWQG9bqY.js +57 -0
- package/dist/user-BJL1Sw0q.js +345 -0
- package/dist/view-FR2dRATN.js +2 -0
- package/dist/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +4 -4
- package/dist/views/blackWhiteList/index.vue.d.ts +319 -319
- package/dist/views/breadcrumb_setting/index.vue.d.ts +1 -1
- package/dist/views/components/HCheckList.vue.d.ts +5 -5
- package/dist/views/components/animation_item.vue.d.ts +5 -5
- package/dist/views/components/setItem.vue.d.ts +18 -18
- package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +35 -35
- package/dist/views/data-permission/index.vue.d.ts +350 -350
- package/dist/views/dictionary/components/drawerDictionary.vue.d.ts +4 -4
- package/dist/views/dictionary/components/drawerDictionaryItem.vue.d.ts +4 -4
- package/dist/views/dictionary/index.vue.d.ts +319 -319
- package/dist/views/dictionary/itemlist.vue.d.ts +319 -319
- package/dist/views/group/components/drawerGroup.vue.d.ts +4 -4
- package/dist/views/group/index.vue.d.ts +319 -319
- package/dist/views/layout_setting/index.vue.d.ts +1 -1
- package/dist/views/log_center/components/browserType.vue.d.ts +3 -3
- package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +4 -4
- package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +4 -4
- package/dist/views/log_center/login_history.vue.d.ts +315 -315
- package/dist/views/log_center/operate_history.vue.d.ts +315 -315
- package/dist/views/menu_setting/index.vue.d.ts +1 -1
- package/dist/views/organization/components/drawerOrganization.vue.d.ts +4 -4
- package/dist/views/organization/components/drawerRole.vue.d.ts +18 -10
- package/dist/views/organization/index.vue.d.ts +23 -15
- package/dist/views/other_setting/index.vue.d.ts +1 -1
- package/dist/views/page_animation_setting/index.vue.d.ts +1 -1
- package/dist/views/page_w_setting/index.vue.d.ts +1 -1
- package/dist/views/position/components/drawerPosition.vue.d.ts +4 -4
- package/dist/views/position/index.vue.d.ts +319 -319
- package/dist/views/region/components/drawerRegion.vue.d.ts +4 -4
- package/dist/views/region/index.vue.d.ts +319 -319
- package/dist/views/resource/components/ComponentSelect.vue.d.ts +12 -0
- package/dist/views/resource/components/DynamicRoutesForm.vue.d.ts +13 -0
- package/dist/views/resource/components/ImportExport.vue.d.ts +13 -0
- package/dist/views/resource/components/MetaForm.vue.d.ts +10 -0
- package/dist/views/resource/components/ResourceEdit.vue.d.ts +4 -4
- package/dist/views/resource/components/RoleRelation.vue.d.ts +2 -2
- package/dist/views/resource/enum.d.ts +6 -13
- package/dist/views/resource/hooks/useMetaForm.d.ts +6 -0
- package/dist/views/resource/index.vue.d.ts +343 -321
- package/dist/views/resource/interface.d.ts +4 -1
- package/dist/views/resource/model.d.ts +37 -0
- package/dist/views/role/components/ResourceRelation.vue.d.ts +316 -316
- package/dist/views/role/components/drawerRole.vue.d.ts +10 -10
- package/dist/views/role/index.vue.d.ts +642 -642
- package/dist/views/role_group/components/drawerRole.vue.d.ts +18 -10
- package/dist/views/role_group/index.vue.d.ts +333 -325
- package/dist/views/safe_setting/index.vue.d.ts +1 -1
- package/dist/views/tabbar_setting/index.vue.d.ts +1 -1
- package/dist/views/tenant/components/TenantEdit.vue.d.ts +10 -10
- package/dist/views/tenant/index.vue.d.ts +325 -325
- package/dist/views/theme_setting/index.vue.d.ts +1 -1
- package/dist/views/toolbar_setting/index.vue.d.ts +1 -1
- package/dist/views/user/components/OrgAndPosition.vue.d.ts +3 -3
- package/dist/views/user/components/UserAuthorization.vue.d.ts +18 -10
- package/dist/views/user/components/UserEdit.vue.d.ts +4 -4
- package/dist/views/user/index.vue.d.ts +337 -329
- package/dist/views/watermark_setting/index.vue.d.ts +9 -9
- package/dist/watermark_setting-tqYUcPzF.js +199 -0
- package/dist/zddata-D9x-CcqP.js +2 -0
- package/dist/zy_checked-B0r0BaR-.js +2 -0
- package/dist/zy_default-BHbIn4if.js +2 -0
- package/package.json +14 -14
- package/src/api/modules/assist/gonggaofuwu.ts +24 -9
- package/src/api/modules/assist/index.ts +0 -2
- package/src/api/modules/assist/qunzujiekou.ts +37 -7
- package/src/api/modules/assist/quyujiekou.ts +12 -3
- package/src/api/modules/assist/typings.d.ts +62 -58
- package/src/api/modules/configData/heibaimingdanfuwu.ts +12 -3
- package/src/api/modules/configData/index.ts +1 -3
- package/src/api/modules/configData/typings.d.ts +84 -74
- package/src/api/modules/configData/xitongpeizhifuwu.ts +39 -15
- package/src/api/modules/configData/{zidianfuwu.ts → zidifuwu.ts} +80 -8
- package/src/api/modules/log/caozuorizhifuwu.ts +8 -2
- package/src/api/modules/log/denglurizhifuwu.ts +8 -2
- package/src/api/modules/log/index.ts +0 -2
- package/src/api/modules/log/typings.d.ts +29 -25
- package/src/api/modules/rbac/gangweijiekou.ts +44 -8
- package/src/api/modules/rbac/index.ts +1 -2
- package/src/api/modules/rbac/jiaosejiekou.ts +24 -9
- package/src/api/modules/rbac/pubJiaosezukongzhiqi.ts +45 -6
- package/src/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.ts +26 -12
- package/src/api/modules/rbac/typings.d.ts +419 -296
- package/src/api/modules/rbac/yonghujiekou.ts +115 -13
- package/src/api/modules/rbac/yonghushoucangbiaojiekou.ts +20 -5
- package/src/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.ts +12 -3
- package/src/api/modules/rbac/ziyuandaorudaochuxiangguanjiekou.ts +158 -0
- package/src/api/modules/rbac/ziyuanjiekou.ts +43 -4
- package/src/api/modules/rbac/zuhuguanlijiekou.ts +20 -11
- package/src/api/modules/rbac/zuzhijiaosebiaokongzhiqi.ts +12 -3
- package/src/api/modules/rbac/zuzhijiekou.ts +28 -10
- package/src/api/request.ts +3 -2
- package/src/assets/icons/resource-dynamic.svg +39 -0
- package/src/assets/icons/resource-micro.svg +40 -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 +64 -89
- package/src/components/OrgTree/index.vue +2 -2
- package/src/components/OrgUserSelector/index.ts +5 -0
- package/src/components/OrgUserSelector/provider.ts +1 -1
- package/src/components/ResourceIcones/Select.vue +240 -0
- package/src/components/ResourceSelector/index.vue +33 -50
- 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/context.ts +20 -0
- package/src/index.ts +21 -18
- package/src/interface.ts +31 -2
- package/src/routes/index.ts +9 -5
- package/src/routes/modules/authority.manage.menu.ts +0 -13
- package/src/routes/modules/log.manage.menu.ts +0 -8
- package/src/routes/modules/safe.manage.menu.ts +0 -12
- package/src/routes/modules/stylesetting.manage.menu.ts +0 -16
- package/src/routes/modules/system.manage.menu.ts +0 -10
- package/src/views/blackWhiteList/components/drawerBlackWhiteList.vue +1 -1
- package/src/views/blackWhiteList/index.vue +14 -26
- package/src/views/breadcrumb_setting/index.vue +3 -3
- package/src/views/components/animation_item.vue +2 -2
- package/src/views/components/setItem.vue +13 -20
- package/src/views/data-permission/components/createAndEditDataPermission.vue +4 -4
- package/src/views/data-permission/enum.ts +7 -7
- package/src/views/data-permission/index.vue +9 -12
- package/src/views/dictionary/components/drawerDictionary.vue +1 -1
- package/src/views/dictionary/components/drawerDictionaryItem.vue +1 -1
- package/src/views/dictionary/index.vue +3 -3
- package/src/views/dictionary/itemlist.vue +3 -3
- package/src/views/group/components/drawerGroup.vue +2 -2
- package/src/views/group/index.vue +13 -18
- package/src/views/layout_setting/index.vue +154 -164
- package/src/views/log_center/components/loginHistoryDetail.vue +6 -8
- package/src/views/log_center/components/operateHistoryDetail.vue +6 -8
- package/src/views/log_center/login_history.vue +6 -11
- package/src/views/log_center/operate_history.vue +6 -11
- package/src/views/menu_setting/index.vue +3 -3
- package/src/views/organization/components/drawerOrganization.vue +3 -3
- package/src/views/organization/components/drawerRole.vue +9 -7
- package/src/views/organization/index.vue +23 -49
- package/src/views/other_setting/index.vue +2 -2
- package/src/views/page_animation_setting/index.vue +10 -18
- package/src/views/page_w_setting/index.vue +133 -116
- package/src/views/position/components/drawerPosition.vue +2 -2
- package/src/views/position/index.vue +1 -1
- package/src/views/region/components/drawerRegion.vue +2 -2
- package/src/views/region/index.vue +1 -1
- package/src/views/resource/components/ComponentSelect.vue +375 -0
- package/src/views/resource/components/DynamicRoutesForm.vue +92 -0
- package/src/views/resource/components/ImportExport.vue +313 -0
- package/src/views/resource/components/MetaForm.vue +119 -0
- package/src/views/resource/components/ResourceEdit.vue +144 -73
- package/src/views/resource/components/RoleRelation.vue +1 -1
- package/src/views/resource/enum.ts +12 -13
- package/src/views/resource/hooks/useMetaForm.ts +103 -0
- package/src/views/resource/index.vue +59 -32
- package/src/views/resource/interface.ts +5 -1
- package/src/views/resource/model.ts +53 -0
- package/src/views/role/components/ResourceRelation.vue +3 -4
- package/src/views/role/components/drawerRole.vue +3 -3
- package/src/views/role/index.vue +1 -1
- package/src/views/role_group/components/ResourceRelation.vue +3 -4
- package/src/views/role_group/components/drawerRole.vue +8 -7
- package/src/views/role_group/index.vue +1 -1
- package/src/views/safe_setting/index.vue +5 -7
- package/src/views/tabbar_setting/index.vue +2 -2
- package/src/views/tenant/components/TenantEdit.vue +1 -1
- package/src/views/tenant/index.vue +1 -1
- package/src/views/theme_setting/index.vue +202 -231
- package/src/views/toolbar_setting/index.vue +3 -3
- package/src/views/user/components/OrgAndPosition.vue +2 -2
- package/src/views/user/components/UserAuthorization.vue +13 -12
- package/src/views/user/components/UserEdit.vue +1 -1
- package/src/views/user/index.vue +1 -1
- package/src/views/watermark_setting/index.vue +8 -15
- package/dist/OrgSelector.vue_vue_type_script_setup_true_lang-BcL0IFuA.js +0 -567
- package/dist/_baseClone-CQ44TFeq.js +0 -191
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/animation_item.vue_vue_type_script_setup_true_lang-BQvmwheq.js +0 -4864
- package/dist/browserType.vue_vue_type_script_setup_true_lang-Cv8wph6G.js +0 -38
- package/dist/cloneDeep-BI4WNBQ9.js +0 -8
- package/dist/enum-BEHz_Q18.js +0 -74
- package/dist/enum-C9ihxJe7.js +0 -4
- package/dist/enum-CTUzwCYG.js +0 -4
- package/dist/enum-DDKThkSw.js +0 -24
- package/dist/gangweijiekou-BxJq_m0o.js +0 -46
- package/dist/index-BS45K9vK.js +0 -685
- package/dist/index-Bbsiwecf.js +0 -1631
- package/dist/index-BhcAk-IH.js +0 -399
- package/dist/index-Bl4v-7On.js +0 -125
- package/dist/index-CFPhIFyG.js +0 -140
- package/dist/index-CLSeuhTv.js +0 -872
- package/dist/index-CLxqmFPw.js +0 -317
- package/dist/index-CTiFd9M0.js +0 -303
- package/dist/index-Cej8u1qo.js +0 -274
- package/dist/index-Cr17VOfm.js +0 -389
- package/dist/index-CsHj-xDw.js +0 -283
- package/dist/index-D0yB_8b0.js +0 -181
- package/dist/index-DFR8dd2B.js +0 -785
- package/dist/index-DNf0NPrD.js +0 -131
- package/dist/index-Dm4sOX43.js +0 -27
- package/dist/index-KboUdpTh.js +0 -18588
- package/dist/index-MtXfNGqS.js +0 -1246
- package/dist/index-U8kjKY6p.js +0 -462
- package/dist/index-UZeQsp70.js +0 -177
- package/dist/index-a0E9oj3q.js +0 -703
- package/dist/index-gmUZUdNl.js +0 -634
- package/dist/index-j_ln_NSt.js +0 -455
- package/dist/index-s32GbmsJ.js +0 -164
- package/dist/index-yEpViVkx.js +0 -409
- package/dist/index-zh8PZXw2.js +0 -862
- package/dist/itemlist-xAbIKRVj.js +0 -369
- package/dist/jiaosejiekou-BfY4h7uI.js +0 -58
- package/dist/login_history-CuQv9Iw3.js +0 -430
- package/dist/operate_history-CGP-1Xy2.js +0 -468
- package/dist/pubJiaosezukongzhiqi-CvYfc8Uz.js +0 -57
- package/dist/request-DQLgc7lT.js +0 -5
- package/dist/setItem-DkOvmWXP.js +0 -152
- package/dist/shujuquanxianzhubiaokongzhiqi-DyNgf1y6.js +0 -65
- package/dist/useAppAndResource-D_b19V4t.js +0 -55
- package/dist/views/organization/components/roleSelect.vue.d.ts +0 -14
- package/dist/views/role_group/components/roleSelect.vue.d.ts +0 -14
- package/dist/views/user/components/roleSelect.vue.d.ts +0 -14
- package/dist/xitongpeizhifuwu-C1Vm-W1B.js +0 -23
- package/dist/zidianfuwu-yCWHhOfO.js +0 -65
- package/dist/ziyuanjiekou-DhrAbneq.js +0 -69
- package/dist/zuzhijiaosebiaokongzhiqi-B1g74RqL.js +0 -28
- package/dist/zuzhijiekou-PeZuFtCO.js +0 -85
- package/src/assets/icons/403.svg +0 -1
- package/src/assets/icons/403_dark.svg +0 -1
- package/src/assets/icons/404.svg +0 -1
- package/src/assets/icons/404_dark.svg +0 -1
- package/src/assets/icons/browser-360.svg +0 -1
- package/src/assets/icons/browser-qq.svg +0 -1
- package/src/assets/icons/browser-uc.svg +0 -1
- package/src/assets/icons/change-org.svg +0 -1
- package/src/assets/icons/empty-data.svg +0 -1
- package/src/assets/icons/favorites.svg +0 -1
- package/src/assets/icons/image-load-fail.svg +0 -1
- package/src/assets/icons/logo-sig.svg +0 -1
- package/src/assets/icons/logo.svg +0 -1
- package/src/assets/icons/mima.svg +0 -1
- package/src/assets/icons/process-management.svg +0 -1
- package/src/assets/icons/project-management.svg +0 -1
- package/src/assets/icons/rbac.svg +0 -1
- package/src/assets/icons/test.svg +0 -1
- package/src/assets/icons/toolbar-collapse.svg +0 -1
- package/src/assets/icons/tree_icon.svg +0 -1
- package/src/assets/icons/tree_icon_checked.svg +0 -1
- package/src/assets/icons/workbench.svg +0 -1
- package/src/views/organization/components/roleSelect.vue +0 -258
- package/src/views/role_group/components/roleSelect.vue +0 -224
- package/src/views/user/components/roleSelect.vue +0 -258
package/src/context.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { InternalContext } from './interface';
|
|
2
|
+
import { createContext } from 'pubinfo';
|
|
3
|
+
|
|
4
|
+
// 持久化 rbac 模块上下文,避免 HMR 后丢失 request
|
|
5
|
+
const g = globalThis as any;
|
|
6
|
+
g.__PUBINFO__ = g.__PUBINFO__ || {};
|
|
7
|
+
if (!g.__PUBINFO__.rbacCtx) {
|
|
8
|
+
g.__PUBINFO__.rbacCtx = createContext<InternalContext>();
|
|
9
|
+
}
|
|
10
|
+
export const ctx = g.__PUBINFO__.rbacCtx as ReturnType<typeof createContext<InternalContext>>;
|
|
11
|
+
|
|
12
|
+
// HMR 恢复
|
|
13
|
+
if (g.__PUBINFO__.rbacState) {
|
|
14
|
+
try {
|
|
15
|
+
ctx.set(g.__PUBINFO__.rbacState);
|
|
16
|
+
}
|
|
17
|
+
catch {
|
|
18
|
+
// ignore
|
|
19
|
+
}
|
|
20
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -1,31 +1,34 @@
|
|
|
1
1
|
import type { ModuleOptions } from 'pubinfo';
|
|
2
2
|
import type { RbacOptions } from './interface';
|
|
3
|
-
import { defineAsyncRoutes,
|
|
3
|
+
import { defineAsyncRoutes, defineIconModule, defineRouteModule } from 'pubinfo';
|
|
4
|
+
import modules from 'virtual:pubinfo-resolver';
|
|
5
|
+
import { ctx } from './context';
|
|
4
6
|
import { filterPages } from './routes';
|
|
5
|
-
|
|
6
7
|
import './assets/styles/vxe-table.css';
|
|
7
8
|
import 'uno.css';
|
|
8
9
|
|
|
9
|
-
export function rbac(options: RbacOptions
|
|
10
|
-
const { pages } = options;
|
|
10
|
+
export function rbac(options: RbacOptions): ModuleOptions {
|
|
11
|
+
const { pages, sort, id = 'RBAC', request } = options;
|
|
12
|
+
|
|
13
|
+
ctx.set({ request });
|
|
14
|
+
// 缓存以便 HMR 恢复
|
|
15
|
+
(globalThis as any).__PUBINFO__.rbacState = { request };
|
|
16
|
+
|
|
17
|
+
defineIconModule(id, modules.icons);
|
|
11
18
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
19
|
+
if (pages === 'dynamic') {
|
|
20
|
+
defineRouteModule(id, modules.pages);
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
// 兼容 1.x 版本的本地路由
|
|
24
|
+
const asyncRoutes = filterPages({ pages, id });
|
|
25
|
+
defineAsyncRoutes(asyncRoutes, { sort });
|
|
26
|
+
}
|
|
15
27
|
|
|
16
28
|
return {
|
|
17
|
-
name: 'rbac',
|
|
18
|
-
async setup({ app }) {
|
|
19
|
-
app.provide(pubinfoInjectionKey, {
|
|
20
|
-
loadIcon(name?: string) {
|
|
21
|
-
const modules = (import.meta as any).glob('./assets/icons/*', { eager: true });
|
|
22
|
-
const path = `./assets/icons/${name}.svg`;
|
|
23
|
-
return modules[path]?.default;
|
|
24
|
-
},
|
|
25
|
-
});
|
|
26
|
-
},
|
|
29
|
+
name: 'pubinfo:rbac',
|
|
27
30
|
};
|
|
28
31
|
}
|
|
29
32
|
|
|
33
|
+
export * from './components/OrgUserSelector';
|
|
30
34
|
export * from './interface';
|
|
31
|
-
export default rbac;
|
package/src/interface.ts
CHANGED
|
@@ -1,8 +1,31 @@
|
|
|
1
|
+
import type { RequestInstance } from 'pubinfo';
|
|
1
2
|
import type { RouteRecordRaw } from 'vue-router';
|
|
2
3
|
|
|
3
4
|
export interface RbacOptions {
|
|
4
|
-
/**
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* 接口请求实例
|
|
7
|
+
*/
|
|
8
|
+
request: InternalContext['request']
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* 页面配置。
|
|
12
|
+
* - 为 `RbacPages类型` 时, 通过该值指定页面配置
|
|
13
|
+
* - 为 `dynamic` 时, 通过资源管理的数据配置
|
|
14
|
+
* - 为空时, 默认展示所有页面
|
|
15
|
+
*/
|
|
16
|
+
pages?: RbacPages | 'dynamic'
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* 配置动态路由时,在资源管理中 `动态应用` 的 `资源编码` 值。
|
|
20
|
+
*
|
|
21
|
+
* 默认值为 `RBAC`
|
|
22
|
+
*/
|
|
23
|
+
id?: string
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* 路由排序,仅在使用本地注册路由时生效。
|
|
27
|
+
*/
|
|
28
|
+
sort?: number
|
|
6
29
|
}
|
|
7
30
|
|
|
8
31
|
export interface RbacPages {
|
|
@@ -52,3 +75,9 @@ export interface RbacPages {
|
|
|
52
75
|
}
|
|
53
76
|
|
|
54
77
|
export type PageOptions = RouteRecordRaw | boolean;
|
|
78
|
+
|
|
79
|
+
export interface InternalContext {
|
|
80
|
+
request: RequestInstance
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export { RequestInstance };
|
package/src/routes/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { RbacPages } from '@/interface';
|
|
2
1
|
import type { RouteRecordRaw } from 'vue-router';
|
|
2
|
+
import type { RbacPages } from '@/interface';
|
|
3
3
|
import { merge } from 'lodash-es';
|
|
4
4
|
import AuthorityManageMenu from './modules/authority.manage.menu';
|
|
5
5
|
import LogManageMenu from './modules/log.manage.menu';
|
|
@@ -11,8 +11,8 @@ const asyncRoutes = [
|
|
|
11
11
|
{
|
|
12
12
|
meta: {
|
|
13
13
|
title: '权限管理系统',
|
|
14
|
-
// i18n: $t('route.rbac.title'),
|
|
15
14
|
icon: 'authority',
|
|
15
|
+
auth: 'RBAC',
|
|
16
16
|
},
|
|
17
17
|
children: [
|
|
18
18
|
AuthorityManageMenu,
|
|
@@ -73,10 +73,14 @@ const RBAC_ROUTE_MAP: RbacPages = {
|
|
|
73
73
|
/**
|
|
74
74
|
* 根据传入的 `pages` 过滤路由
|
|
75
75
|
*/
|
|
76
|
-
export function filterPages(options: { pages?: RbacPages }) {
|
|
77
|
-
const { pages } = options;
|
|
76
|
+
export function filterPages(options: { pages?: RbacPages, id?: string }) {
|
|
77
|
+
const { pages, id } = options;
|
|
78
78
|
const pageMap = merge(RBAC_ROUTE_MAP, pages);
|
|
79
79
|
|
|
80
|
+
if (id) {
|
|
81
|
+
asyncRoutes[0].meta.auth = id;
|
|
82
|
+
}
|
|
83
|
+
|
|
80
84
|
const children = filterRoutesByMap(asyncRoutes[0].children, pageMap);
|
|
81
85
|
|
|
82
86
|
return [
|
|
@@ -93,7 +97,7 @@ export function filterPages(options: { pages?: RbacPages }) {
|
|
|
93
97
|
function filterRoutesByMap(routes: RouteRecordRaw[], pageMap: RbacPages) {
|
|
94
98
|
function filterRecursive(routeList: RouteRecordRaw[], map: Record<string, any>): RouteRecordRaw[] {
|
|
95
99
|
return routeList
|
|
96
|
-
.map(route => {
|
|
100
|
+
.map((route) => {
|
|
97
101
|
if (!route.name || !(route.name in map)) {
|
|
98
102
|
return null;
|
|
99
103
|
}
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import type { RouteRecordRaw } from 'vue-router';
|
|
2
|
-
// import { $t } from '@/locales';
|
|
3
|
-
|
|
4
|
-
// function Layout() {
|
|
5
|
-
// return import('@/layouts/index.vue');
|
|
6
|
-
// }
|
|
7
2
|
|
|
8
3
|
const routes: RouteRecordRaw = {
|
|
9
4
|
path: '/authority_manage',
|
|
10
|
-
// component: Layout,
|
|
11
5
|
redirect: '/authority_manage/resource',
|
|
12
6
|
name: 'AuthorityManage',
|
|
13
7
|
meta: {
|
|
@@ -22,7 +16,6 @@ const routes: RouteRecordRaw = {
|
|
|
22
16
|
meta: {
|
|
23
17
|
title: '资源管理',
|
|
24
18
|
singleMenu: true,
|
|
25
|
-
// i18n: $t('route.rbac.resource'),
|
|
26
19
|
auth: 'resource',
|
|
27
20
|
activeIcon: 'system-point',
|
|
28
21
|
},
|
|
@@ -34,7 +27,6 @@ const routes: RouteRecordRaw = {
|
|
|
34
27
|
meta: {
|
|
35
28
|
title: '角色管理',
|
|
36
29
|
singleMenu: true,
|
|
37
|
-
// i18n: $t('route.rbac.role'),
|
|
38
30
|
auth: 'role',
|
|
39
31
|
activeIcon: 'system-point',
|
|
40
32
|
},
|
|
@@ -46,7 +38,6 @@ const routes: RouteRecordRaw = {
|
|
|
46
38
|
meta: {
|
|
47
39
|
title: '角色组管理',
|
|
48
40
|
singleMenu: true,
|
|
49
|
-
// i18n: $t('route.rbac.roleGroup'),
|
|
50
41
|
auth: 'role_group',
|
|
51
42
|
activeIcon: 'system-point',
|
|
52
43
|
},
|
|
@@ -58,7 +49,6 @@ const routes: RouteRecordRaw = {
|
|
|
58
49
|
meta: {
|
|
59
50
|
title: '数据权限管理',
|
|
60
51
|
singleMenu: true,
|
|
61
|
-
// i18n: $t('route.rbac.dataPermission'),
|
|
62
52
|
auth: 'data_permission',
|
|
63
53
|
activeIcon: 'system-point',
|
|
64
54
|
},
|
|
@@ -70,7 +60,6 @@ const routes: RouteRecordRaw = {
|
|
|
70
60
|
meta: {
|
|
71
61
|
title: '组织管理',
|
|
72
62
|
singleMenu: true,
|
|
73
|
-
// i18n: $t('route.rbac.organization'),
|
|
74
63
|
auth: 'organization',
|
|
75
64
|
activeIcon: 'system-point',
|
|
76
65
|
},
|
|
@@ -82,7 +71,6 @@ const routes: RouteRecordRaw = {
|
|
|
82
71
|
meta: {
|
|
83
72
|
title: '用户管理',
|
|
84
73
|
singleMenu: true,
|
|
85
|
-
// i18n: $t('route.rbac.user'),
|
|
86
74
|
auth: 'user',
|
|
87
75
|
activeIcon: 'system-point',
|
|
88
76
|
},
|
|
@@ -94,7 +82,6 @@ const routes: RouteRecordRaw = {
|
|
|
94
82
|
meta: {
|
|
95
83
|
title: '租户管理',
|
|
96
84
|
singleMenu: true,
|
|
97
|
-
// i18n: $t('route.rbac.tenant'),
|
|
98
85
|
auth: 'tenant',
|
|
99
86
|
activeIcon: 'system-point',
|
|
100
87
|
},
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import type { RouteRecordRaw } from 'vue-router';
|
|
2
|
-
// import { $t } from '@/locales';
|
|
3
|
-
|
|
4
|
-
// function Layout() {
|
|
5
|
-
// return import('@/layouts/index.vue');
|
|
6
|
-
// }
|
|
7
2
|
|
|
8
3
|
const routes: RouteRecordRaw = {
|
|
9
4
|
path: '/log_manage',
|
|
10
|
-
// component: Layout,
|
|
11
5
|
redirect: '/log_manage/login_history',
|
|
12
6
|
name: 'LogManage',
|
|
13
7
|
meta: {
|
|
@@ -22,7 +16,6 @@ const routes: RouteRecordRaw = {
|
|
|
22
16
|
meta: {
|
|
23
17
|
title: '登录日志',
|
|
24
18
|
singleMenu: true,
|
|
25
|
-
// i18n: $t('route.rbac.loginHistory'),
|
|
26
19
|
activeIcon: 'system-point',
|
|
27
20
|
auth: 'login_history',
|
|
28
21
|
},
|
|
@@ -34,7 +27,6 @@ const routes: RouteRecordRaw = {
|
|
|
34
27
|
meta: {
|
|
35
28
|
title: '操作日志',
|
|
36
29
|
singleMenu: true,
|
|
37
|
-
// i18n: $t('route.rbac.operateHistory'),
|
|
38
30
|
activeIcon: 'system-point',
|
|
39
31
|
auth: 'operate_history',
|
|
40
32
|
},
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import type { RouteRecordRaw } from 'vue-router';
|
|
2
|
-
// import { $t } from '@/locales';
|
|
3
|
-
|
|
4
|
-
// function Layout() {
|
|
5
|
-
// return import('@/layouts/index.vue');
|
|
6
|
-
// }
|
|
7
2
|
|
|
8
3
|
const routes: RouteRecordRaw = {
|
|
9
4
|
path: '/safe_manage',
|
|
10
|
-
// component: Layout,
|
|
11
5
|
redirect: '/safe_manage/blacklist',
|
|
12
6
|
name: 'SafeManage',
|
|
13
7
|
meta: {
|
|
@@ -22,9 +16,7 @@ const routes: RouteRecordRaw = {
|
|
|
22
16
|
meta: {
|
|
23
17
|
title: '黑名单管理',
|
|
24
18
|
singleMenu: true,
|
|
25
|
-
// i18n: $t('route.rbac.blacklist'),
|
|
26
19
|
auth: 'blacklist',
|
|
27
|
-
type: 'black',
|
|
28
20
|
activeIcon: 'system-point',
|
|
29
21
|
},
|
|
30
22
|
},
|
|
@@ -35,9 +27,7 @@ const routes: RouteRecordRaw = {
|
|
|
35
27
|
meta: {
|
|
36
28
|
title: '白名单管理',
|
|
37
29
|
singleMenu: true,
|
|
38
|
-
// i18n: $t('route.rbac.whitelist'),
|
|
39
30
|
auth: 'whitelist',
|
|
40
|
-
type: 'white',
|
|
41
31
|
activeIcon: 'system-point',
|
|
42
32
|
},
|
|
43
33
|
},
|
|
@@ -48,7 +38,6 @@ const routes: RouteRecordRaw = {
|
|
|
48
38
|
meta: {
|
|
49
39
|
title: '安全配置',
|
|
50
40
|
singleMenu: true,
|
|
51
|
-
// i18n: $t('route.rbac.safeSetting'),
|
|
52
41
|
activeIcon: 'system-point',
|
|
53
42
|
auth: 'safe_setting',
|
|
54
43
|
},
|
|
@@ -60,7 +49,6 @@ const routes: RouteRecordRaw = {
|
|
|
60
49
|
meta: {
|
|
61
50
|
title: '页面水印配置',
|
|
62
51
|
singleMenu: true,
|
|
63
|
-
// i18n: $t('route.rbac.watermarkSetting'),
|
|
64
52
|
activeIcon: 'system-point',
|
|
65
53
|
auth: 'watermarkSetting',
|
|
66
54
|
},
|
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
import type { RouteRecordRaw } from 'vue-router';
|
|
2
|
-
// import { $t } from '@/locales';
|
|
3
|
-
|
|
4
|
-
// function Layout() {
|
|
5
|
-
// return import('@/layouts/index.vue');
|
|
6
|
-
// }
|
|
7
2
|
|
|
8
3
|
const routes: RouteRecordRaw = {
|
|
9
4
|
path: '/setting_manage',
|
|
10
|
-
// component: Layout,
|
|
11
5
|
redirect: '/setting_manage/theme-setting',
|
|
12
6
|
name: 'SettingManage',
|
|
13
7
|
meta: {
|
|
14
8
|
title: '样式配置',
|
|
15
9
|
icon: 'setting-manage',
|
|
16
|
-
auth: 'globalsettings',
|
|
17
10
|
},
|
|
18
11
|
children: [
|
|
19
12
|
{
|
|
@@ -23,7 +16,6 @@ const routes: RouteRecordRaw = {
|
|
|
23
16
|
meta: {
|
|
24
17
|
title: '主题配置',
|
|
25
18
|
singleMenu: true,
|
|
26
|
-
// i18n: $t('route.rbac.themeSetting'),
|
|
27
19
|
auth: 'themeSetting',
|
|
28
20
|
activeIcon: 'system-point',
|
|
29
21
|
},
|
|
@@ -35,7 +27,6 @@ const routes: RouteRecordRaw = {
|
|
|
35
27
|
meta: {
|
|
36
28
|
title: '布局配置',
|
|
37
29
|
singleMenu: true,
|
|
38
|
-
// i18n: $t('route.rbac.layoutSetting'),
|
|
39
30
|
auth: 'layoutSetting',
|
|
40
31
|
activeIcon: 'system-point',
|
|
41
32
|
},
|
|
@@ -47,7 +38,6 @@ const routes: RouteRecordRaw = {
|
|
|
47
38
|
meta: {
|
|
48
39
|
title: '页面动画配置',
|
|
49
40
|
singleMenu: true,
|
|
50
|
-
// i18n: $t('route.rbac.pageAnimationSetting'),
|
|
51
41
|
auth: 'pageSetting',
|
|
52
42
|
activeIcon: 'system-point',
|
|
53
43
|
},
|
|
@@ -59,7 +49,6 @@ const routes: RouteRecordRaw = {
|
|
|
59
49
|
meta: {
|
|
60
50
|
title: '页宽配置',
|
|
61
51
|
singleMenu: true,
|
|
62
|
-
// i18n: $t('route.rbac.pageSizeSetting'),
|
|
63
52
|
auth: 'pagesizeSetting',
|
|
64
53
|
activeIcon: 'system-point',
|
|
65
54
|
},
|
|
@@ -71,7 +60,6 @@ const routes: RouteRecordRaw = {
|
|
|
71
60
|
meta: {
|
|
72
61
|
title: '导航栏配置',
|
|
73
62
|
singleMenu: true,
|
|
74
|
-
// i18n: $t('route.rbac.menuSetting'),
|
|
75
63
|
auth: 'menuSetting',
|
|
76
64
|
activeIcon: 'system-point',
|
|
77
65
|
},
|
|
@@ -83,7 +71,6 @@ const routes: RouteRecordRaw = {
|
|
|
83
71
|
meta: {
|
|
84
72
|
title: '标签栏配置',
|
|
85
73
|
singleMenu: true,
|
|
86
|
-
// i18n: $t('route.rbac.tabbarSetting'),
|
|
87
74
|
auth: 'tabbarSetting',
|
|
88
75
|
activeIcon: 'system-point',
|
|
89
76
|
},
|
|
@@ -95,7 +82,6 @@ const routes: RouteRecordRaw = {
|
|
|
95
82
|
meta: {
|
|
96
83
|
title: '工具栏配置',
|
|
97
84
|
singleMenu: true,
|
|
98
|
-
// i18n: $t('route.rbac.toolbarSetting'),
|
|
99
85
|
auth: 'toolbarSetting',
|
|
100
86
|
activeIcon: 'system-point',
|
|
101
87
|
},
|
|
@@ -107,7 +93,6 @@ const routes: RouteRecordRaw = {
|
|
|
107
93
|
meta: {
|
|
108
94
|
title: '面包屑配置',
|
|
109
95
|
singleMenu: true,
|
|
110
|
-
// i18n: $t('route.rbac.breadcrumbSetting'),
|
|
111
96
|
auth: 'breadcrumbSetting',
|
|
112
97
|
activeIcon: 'system-point',
|
|
113
98
|
},
|
|
@@ -119,7 +104,6 @@ const routes: RouteRecordRaw = {
|
|
|
119
104
|
meta: {
|
|
120
105
|
title: '其他配置',
|
|
121
106
|
singleMenu: true,
|
|
122
|
-
// i18n: $t('route.rbac.otherSetting'),
|
|
123
107
|
auth: 'otherSetting',
|
|
124
108
|
activeIcon: 'system-point',
|
|
125
109
|
},
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import type { RouteRecordRaw } from 'vue-router';
|
|
2
|
-
// import { $t } from '@/locales';
|
|
3
|
-
|
|
4
|
-
// function Layout() {
|
|
5
|
-
// return import('@/layouts/index.vue');
|
|
6
|
-
// }
|
|
7
2
|
|
|
8
3
|
const routes: RouteRecordRaw = {
|
|
9
4
|
path: '/system_manage',
|
|
10
|
-
// component: Layout,
|
|
11
5
|
redirect: '/system_manage/dictionary',
|
|
12
6
|
name: 'SystemManage',
|
|
13
7
|
meta: {
|
|
@@ -20,7 +14,6 @@ const routes: RouteRecordRaw = {
|
|
|
20
14
|
name: 'DictionaryPage',
|
|
21
15
|
meta: {
|
|
22
16
|
title: '字典管理',
|
|
23
|
-
// i18n: $t('route.rbac.dictionary'),
|
|
24
17
|
auth: 'dictionary',
|
|
25
18
|
activeIcon: 'system-point',
|
|
26
19
|
},
|
|
@@ -57,7 +50,6 @@ const routes: RouteRecordRaw = {
|
|
|
57
50
|
meta: {
|
|
58
51
|
title: '岗位管理',
|
|
59
52
|
singleMenu: true,
|
|
60
|
-
// i18n: $t('route.rbac.position'),
|
|
61
53
|
auth: 'position',
|
|
62
54
|
activeIcon: 'system-point',
|
|
63
55
|
},
|
|
@@ -69,7 +61,6 @@ const routes: RouteRecordRaw = {
|
|
|
69
61
|
meta: {
|
|
70
62
|
title: '区域管理',
|
|
71
63
|
singleMenu: true,
|
|
72
|
-
// i18n: $t('route.rbac.region'),
|
|
73
64
|
auth: 'region',
|
|
74
65
|
activeIcon: 'system-point',
|
|
75
66
|
},
|
|
@@ -81,7 +72,6 @@ const routes: RouteRecordRaw = {
|
|
|
81
72
|
meta: {
|
|
82
73
|
title: '群组管理',
|
|
83
74
|
singleMenu: true,
|
|
84
|
-
// i18n: $t('route.rbac.group'),
|
|
85
75
|
auth: 'group',
|
|
86
76
|
activeIcon: 'system-point',
|
|
87
77
|
},
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { Rule } from 'ant-design-vue/es/form';
|
|
3
3
|
import type { FormExpose } from 'ant-design-vue/es/form/Form';
|
|
4
|
-
import { postBlackWhiteListAddBlackWhiteList, postBlackWhiteListUpdateBlackWhiteList } from '@/api/modules/configData';
|
|
5
4
|
import { useToggle } from '@vueuse/core';
|
|
6
5
|
import { message } from 'ant-design-vue';
|
|
6
|
+
import { postBlackWhiteListAddBlackWhiteList, postBlackWhiteListUpdateBlackWhiteList } from '@/api/modules/configData';
|
|
7
7
|
|
|
8
8
|
defineOptions({
|
|
9
9
|
name: 'DrawerBlackWhiteList',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script setup lang="tsx">
|
|
2
2
|
import type { ProColumns } from '@pubinfo/pro-components';
|
|
3
|
-
import { getBlackWhiteListDeleteById, postBlackWhiteListGetBlackWhiteListPageList, postBlackWhiteListUpdateBlackWhiteList } from '@/api/modules/configData';
|
|
4
3
|
import { ProTable } from '@pubinfo/pro-components';
|
|
5
4
|
import { useToggle } from '@vueuse/core';
|
|
6
5
|
import { message, Modal } from 'ant-design-vue';
|
|
6
|
+
import { getBlackWhiteListDeleteById, postBlackWhiteListGetBlackWhiteListPageList, postBlackWhiteListUpdateBlackWhiteList } from '@/api/modules/configData';
|
|
7
7
|
import DrawerBlackWhiteList from './components/drawerBlackWhiteList.vue';
|
|
8
8
|
import { ACTION } from './enum';
|
|
9
9
|
|
|
@@ -12,7 +12,7 @@ defineOptions({
|
|
|
12
12
|
});
|
|
13
13
|
|
|
14
14
|
const route = useRoute();
|
|
15
|
-
const isBlacklistMode = ref(route.
|
|
15
|
+
const isBlacklistMode = ref(route.path.includes('blacklist'));
|
|
16
16
|
|
|
17
17
|
// 黑名单0,白名单1
|
|
18
18
|
const currentType = computed(() => {
|
|
@@ -239,7 +239,7 @@ function onAction(key: string, record?: API.PubBlackWhiteList): void {
|
|
|
239
239
|
<PubinfoIcon name="edit" class="text-base" />
|
|
240
240
|
<span class="ml-4px">{{ ACTION.EDIT }}</span>
|
|
241
241
|
</a>
|
|
242
|
-
<
|
|
242
|
+
<span
|
|
243
243
|
v-auth="deleteRights"
|
|
244
244
|
flex
|
|
245
245
|
items-center
|
|
@@ -251,15 +251,11 @@ function onAction(key: string, record?: API.PubBlackWhiteList): void {
|
|
|
251
251
|
>
|
|
252
252
|
<PubinfoIcon name="remove" class="text-base" />
|
|
253
253
|
<span class="ml-4px">{{ ACTION.REMOVE }}</span>
|
|
254
|
-
</
|
|
254
|
+
</span>
|
|
255
255
|
<a
|
|
256
256
|
v-if="record.enable"
|
|
257
257
|
v-auth="disableRights"
|
|
258
|
-
flex
|
|
259
|
-
items-center
|
|
260
|
-
class="text-#1D2129"
|
|
261
|
-
hover:cursor-pointer
|
|
262
|
-
hover:opacity-80
|
|
258
|
+
class="flex items-center"
|
|
263
259
|
@click="onAction(ACTION.DISABLE, record)"
|
|
264
260
|
>
|
|
265
261
|
<PubinfoIcon name="blacklist-disable" class="text-20px" />
|
|
@@ -286,24 +282,16 @@ function onAction(key: string, record?: API.PubBlackWhiteList): void {
|
|
|
286
282
|
</div>
|
|
287
283
|
</template>
|
|
288
284
|
|
|
289
|
-
<style
|
|
290
|
-
.page-black-white-list {
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
border-top-right-radius: 0;
|
|
294
|
-
}
|
|
285
|
+
<style scoped>
|
|
286
|
+
.page-black-white-list :deep(.ant-card.pro-table) {
|
|
287
|
+
--at-apply: rounded-t-none;
|
|
288
|
+
}
|
|
295
289
|
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
height: 8px;
|
|
300
|
-
margin-right: 4px;
|
|
301
|
-
background-color: #aeaeae;
|
|
302
|
-
border-radius: 50%;
|
|
290
|
+
.page-black-white-list .status-mark {
|
|
291
|
+
--at-apply: inline-block w-2 h-2 bg-[#aeaeae] mr-1 rounded-[50%];
|
|
292
|
+
}
|
|
303
293
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
}
|
|
307
|
-
}
|
|
294
|
+
.page-black-white-list .status-mark.active {
|
|
295
|
+
--at-apply: [background:#01d689];
|
|
308
296
|
}
|
|
309
297
|
</style>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import { message } from 'ant-design-vue';
|
|
2
3
|
import { postSysconfigAddOrEidtSysThemeStyleConfig } from '@/api/modules/configData';
|
|
3
|
-
import { useSettingsStore } from '@/stores';
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { useSettingsStore } from '@/stores';
|
|
6
6
|
import SetItem from '../components/setItem.vue';
|
|
7
7
|
import {
|
|
8
8
|
darkEnableData,
|
|
@@ -140,7 +140,7 @@ function setStyle(jsonStr: string) {
|
|
|
140
140
|
</div>
|
|
141
141
|
</template>
|
|
142
142
|
|
|
143
|
-
<style
|
|
143
|
+
<style scoped>
|
|
144
144
|
.bar-header {
|
|
145
145
|
background: var(--g-bg);
|
|
146
146
|
}
|
|
@@ -7,14 +7,14 @@ defineOptions({
|
|
|
7
7
|
});
|
|
8
8
|
const props = withDefaults(
|
|
9
9
|
defineProps<{
|
|
10
|
-
name
|
|
11
|
-
descripe
|
|
12
|
-
type
|
|
13
|
-
open
|
|
10
|
+
name?: string
|
|
11
|
+
descripe?: string
|
|
12
|
+
type?: string
|
|
13
|
+
open?: boolean
|
|
14
14
|
activeStyle?: Val
|
|
15
15
|
styleOptions?: CheckOptions
|
|
16
|
-
lightAnimationData
|
|
17
|
-
darkAnimationData
|
|
16
|
+
lightAnimationData?: string
|
|
17
|
+
darkAnimationData?: string
|
|
18
18
|
}>(),
|
|
19
19
|
{
|
|
20
20
|
name: '',
|
|
@@ -103,24 +103,17 @@ watch(() => setActiveStyle.value, () => {
|
|
|
103
103
|
</div>
|
|
104
104
|
</template>
|
|
105
105
|
|
|
106
|
-
<style
|
|
106
|
+
<style scoped>
|
|
107
107
|
.item_ani {
|
|
108
|
-
|
|
109
|
-
flex-direction: column;
|
|
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;
|
|
110
109
|
place-items: center center;
|
|
111
|
-
|
|
112
|
-
background-color: var(--g-bg);
|
|
113
|
-
border: 1px solid var(--g-tabbar-tab-hover-bg);
|
|
114
|
-
border-radius: 8px;
|
|
110
|
+
}
|
|
115
111
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
112
|
+
.item_ani .jb {
|
|
113
|
+
background: linear-gradient(180deg, var(--g-container-bg) 0%, transparent 100%);
|
|
119
114
|
}
|
|
120
115
|
|
|
121
|
-
.custom_style {
|
|
122
|
-
:
|
|
123
|
-
font-size: 12px;
|
|
124
|
-
}
|
|
116
|
+
.custom_style :deep(.text-sm) {
|
|
117
|
+
--at-apply: text-xs;
|
|
125
118
|
}
|
|
126
119
|
</style>
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { ModelValue } from '@/components/OrgUserSelector/OrgSelector.vue';
|
|
3
|
-
import type { SelectedResourceInfo } from '@/components/ResourceSelector/hooks/useAppAndResource';
|
|
4
2
|
import type { Rule } from 'ant-design-vue/es/form';
|
|
5
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';
|
|
6
8
|
import { getRbacPubDataPermissionsGetById, postRbacPubDataPermissionsSave, postRbacPubDataPermissionsUpdate } from '@/api/modules/rbac';
|
|
7
9
|
import GroupSelector from '@/components/GroupSelector/index.vue';
|
|
8
10
|
import OrgSelector from '@/components/OrgUserSelector/OrgSelector.vue';
|
|
9
11
|
import { RESOURCE_MODE } from '@/components/ResourceSelector/enum';
|
|
10
12
|
import useAppAndResource from '@/components/ResourceSelector/hooks/useAppAndResource';
|
|
11
13
|
import ResourceSelector from '@/components/ResourceSelector/index.vue';
|
|
12
|
-
import { useToggle } from '@vueuse/core';
|
|
13
|
-
import { message } from 'ant-design-vue';
|
|
14
14
|
import { DATA_PERMISSION_TYPE, dataPermissionOptionsAll } from '../enum';
|
|
15
15
|
|
|
16
16
|
defineOptions({
|
|
@@ -23,13 +23,13 @@ export enum DATA_PERMISSION_TYPE {
|
|
|
23
23
|
CUSTOM_GROUP = '7',
|
|
24
24
|
}
|
|
25
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;
|
|
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
33
|
|
|
34
34
|
export const dataPermissionTypeLabel = {
|
|
35
35
|
[DATA_PERMISSION_TYPE.ALL]: '查看全部',
|