@pubinfo/module-rbac 2.0.0-beta.9 → 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
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { TreeNode } from '../interface';
|
|
3
|
+
import { ClockCircleOutlined, CloudDownloadOutlined, CloudUploadOutlined, DeleteOutlined, UndoOutlined } from '@ant-design/icons-vue';
|
|
4
|
+
import { useToggle } from '@vueuse/core';
|
|
5
|
+
import { message, theme, Upload } from 'ant-design-vue';
|
|
6
|
+
import dayjs from 'dayjs';
|
|
7
|
+
import { saveAs } from 'file-saver';
|
|
8
|
+
import { deleteRbacResourceBackupDeleteResourceBackup, getRbacResourceBackupDetail, getRbacResourceBackupList, getRbacResourceBackupRestore, postRbacResourceBackupExportResourceData, postRbacResourceBackupImportResourceData } from '@/api/modules/rbac';
|
|
9
|
+
import { RESOURCE_COLOR, resourceOptions } from '../enum';
|
|
10
|
+
|
|
11
|
+
defineOptions({
|
|
12
|
+
name: 'ImportExport',
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
const props = defineProps<{ dataSource: TreeNode[] }>();
|
|
16
|
+
const emit = defineEmits(['submit']);
|
|
17
|
+
|
|
18
|
+
const { token } = theme.useToken();
|
|
19
|
+
|
|
20
|
+
const [open, setOpen] = useToggle(false);
|
|
21
|
+
const [loading, setLoading] = useToggle(false);
|
|
22
|
+
|
|
23
|
+
const historyState = reactive<{
|
|
24
|
+
selectedId: string
|
|
25
|
+
list: any[]
|
|
26
|
+
treeData: any[]
|
|
27
|
+
}>({
|
|
28
|
+
selectedId: '',
|
|
29
|
+
list: [],
|
|
30
|
+
treeData: [],
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
const tabList = computed(() => {
|
|
34
|
+
return historyState.selectedId
|
|
35
|
+
? [
|
|
36
|
+
{ key: 'current', tab: '当前资源' },
|
|
37
|
+
{ key: 'history', tab: '历史记录' },
|
|
38
|
+
]
|
|
39
|
+
: [{ key: 'current', tab: '当前资源' }];
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
const selectedKeys = ref<string[]>([]);
|
|
43
|
+
const treeData = computed(() => props.dataSource as any);
|
|
44
|
+
|
|
45
|
+
const tabState = reactive({
|
|
46
|
+
list: tabList,
|
|
47
|
+
key: 'current',
|
|
48
|
+
onTabChange(key: string) {
|
|
49
|
+
tabState.key = key;
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
function onOpen() {
|
|
54
|
+
setOpen(true);
|
|
55
|
+
tabState.key = 'current';
|
|
56
|
+
selectedKeys.value = [];
|
|
57
|
+
historyState.selectedId = '';
|
|
58
|
+
getHistoryList();
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const [historyLoading, setHistoryLoading] = useToggle(false);
|
|
62
|
+
async function getHistoryList() {
|
|
63
|
+
try {
|
|
64
|
+
setHistoryLoading(true);
|
|
65
|
+
const res = await getRbacResourceBackupList({ type: '0' });
|
|
66
|
+
if (res.success) {
|
|
67
|
+
historyState.list = res?.data ?? [];
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
finally {
|
|
71
|
+
setHistoryLoading(false);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
const [selectHistoryLoading, setSelectHistoryLoading] = useToggle(false);
|
|
76
|
+
async function onSelectHistory(id: string) {
|
|
77
|
+
if (historyState.selectedId === id) {
|
|
78
|
+
historyState.selectedId = '';
|
|
79
|
+
tabState.key = 'current';
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
historyState.selectedId = id;
|
|
83
|
+
tabState.key = 'history';
|
|
84
|
+
|
|
85
|
+
try {
|
|
86
|
+
setSelectHistoryLoading(true);
|
|
87
|
+
const res = await getRbacResourceBackupDetail({ id });
|
|
88
|
+
if (res.success) {
|
|
89
|
+
historyState.treeData = res.data?.content ?? [];
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
finally {
|
|
93
|
+
setSelectHistoryLoading(false);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
async function onExport() {
|
|
98
|
+
if (selectedKeys.value.length === 0) {
|
|
99
|
+
message.info(`请选中你要导出的资源节点。`);
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
try {
|
|
104
|
+
setLoading(true);
|
|
105
|
+
const res = await postRbacResourceBackupExportResourceData(selectedKeys.value);
|
|
106
|
+
if (res.success) {
|
|
107
|
+
downloadJSON(res.data);
|
|
108
|
+
message.success('导出成功!');
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
finally {
|
|
112
|
+
setLoading(false);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
async function onImport(file: File) {
|
|
117
|
+
try {
|
|
118
|
+
setLoading(true);
|
|
119
|
+
const res = await postRbacResourceBackupImportResourceData({ parentId: selectedKeys.value[0] ?? '0' }, {}, file);
|
|
120
|
+
if (res.success) {
|
|
121
|
+
message.success('导入成功!');
|
|
122
|
+
getHistoryList();
|
|
123
|
+
}
|
|
124
|
+
return Upload.LIST_IGNORE;
|
|
125
|
+
}
|
|
126
|
+
catch {
|
|
127
|
+
return Upload.LIST_IGNORE;
|
|
128
|
+
}
|
|
129
|
+
finally {
|
|
130
|
+
setLoading(false);
|
|
131
|
+
emit('submit');
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
function downloadJSON(data: any, filename = `资源数据_${dayjs().format('YYYYMMDDHHmmss')}.json`) {
|
|
136
|
+
const jsonStr = JSON.stringify(data, null, 2);
|
|
137
|
+
const blob = new Blob([jsonStr], { type: 'application/json;charset=utf-8' });
|
|
138
|
+
saveAs(blob, filename);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
const [restoreLoading, setRestoreLoading] = useToggle(false);
|
|
142
|
+
async function restoreBackup() {
|
|
143
|
+
try {
|
|
144
|
+
setRestoreLoading(true);
|
|
145
|
+
const res = await getRbacResourceBackupRestore({ id: historyState.selectedId });
|
|
146
|
+
if (res.success) {
|
|
147
|
+
message.success('恢复备份成功!');
|
|
148
|
+
getHistoryList();
|
|
149
|
+
emit('submit');
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
finally {
|
|
153
|
+
setRestoreLoading(false);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
const [removeLoading, setRemoveLoading] = useToggle(false);
|
|
158
|
+
async function removeBackup() {
|
|
159
|
+
try {
|
|
160
|
+
setRemoveLoading(true);
|
|
161
|
+
const res = await deleteRbacResourceBackupDeleteResourceBackup({ id: historyState.selectedId });
|
|
162
|
+
if (res.success) {
|
|
163
|
+
message.success('删除备份成功!');
|
|
164
|
+
getHistoryList();
|
|
165
|
+
tabState.key = 'current';
|
|
166
|
+
historyState.selectedId = '';
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
finally {
|
|
170
|
+
setRemoveLoading(false);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
defineExpose({
|
|
175
|
+
open: onOpen,
|
|
176
|
+
});
|
|
177
|
+
</script>
|
|
178
|
+
|
|
179
|
+
<template>
|
|
180
|
+
<a-modal
|
|
181
|
+
v-model:open="open"
|
|
182
|
+
title="导入 / 导出"
|
|
183
|
+
centered
|
|
184
|
+
:width="1000"
|
|
185
|
+
destroy-on-close
|
|
186
|
+
:mask-closable="false"
|
|
187
|
+
:footer="null"
|
|
188
|
+
>
|
|
189
|
+
<div class="h-[70vh]">
|
|
190
|
+
<a-row :gutter="8" class="h-full">
|
|
191
|
+
<a-col span="16" class="h-full">
|
|
192
|
+
<a-card
|
|
193
|
+
:head-style="{ marginBottom: 0, padding: '0 12px' }"
|
|
194
|
+
:body-style="{ padding: '12px', height: 'calc(100% - 56px)', overflow: 'auto' }"
|
|
195
|
+
:tab-list="tabState.list"
|
|
196
|
+
:active-tab-key="tabState.key"
|
|
197
|
+
class="h-full"
|
|
198
|
+
@tab-change="(key: string) => tabState.onTabChange(key)"
|
|
199
|
+
>
|
|
200
|
+
<template #tabBarExtraContent>
|
|
201
|
+
<a-space v-if="tabState.key === 'current'">
|
|
202
|
+
<a-upload :before-upload="onImport">
|
|
203
|
+
<a-button type="primary" :loading="loading">
|
|
204
|
+
<CloudUploadOutlined />
|
|
205
|
+
导入
|
|
206
|
+
</a-button>
|
|
207
|
+
</a-upload>
|
|
208
|
+
<a-button :disabled="selectedKeys.length === 0" :loading="loading" @click="onExport()">
|
|
209
|
+
<CloudDownloadOutlined />
|
|
210
|
+
导出
|
|
211
|
+
</a-button>
|
|
212
|
+
</a-space>
|
|
213
|
+
|
|
214
|
+
<template v-if="tabState.key === 'history'">
|
|
215
|
+
<a-space>
|
|
216
|
+
<a-popconfirm
|
|
217
|
+
title="是否使用该历史数据覆盖当前数据?"
|
|
218
|
+
@confirm="restoreBackup()"
|
|
219
|
+
>
|
|
220
|
+
<a-button :loading="restoreLoading">
|
|
221
|
+
<UndoOutlined />
|
|
222
|
+
恢复备份
|
|
223
|
+
</a-button>
|
|
224
|
+
</a-popconfirm>
|
|
225
|
+
<a-popconfirm
|
|
226
|
+
title="是否删除该历史数据备份?"
|
|
227
|
+
@confirm="removeBackup()"
|
|
228
|
+
>
|
|
229
|
+
<a-button :loading="removeLoading" danger>
|
|
230
|
+
<DeleteOutlined />
|
|
231
|
+
删除备份
|
|
232
|
+
</a-button>
|
|
233
|
+
</a-popconfirm>
|
|
234
|
+
</a-space>
|
|
235
|
+
</template>
|
|
236
|
+
</template>
|
|
237
|
+
|
|
238
|
+
<div v-show="tabState.key === 'current'">
|
|
239
|
+
<a-tree
|
|
240
|
+
key="current"
|
|
241
|
+
v-model:selected-keys="selectedKeys"
|
|
242
|
+
:field-names="{ children: 'children', title: 'name', key: 'id' }"
|
|
243
|
+
:tree-data="treeData"
|
|
244
|
+
block-node
|
|
245
|
+
>
|
|
246
|
+
<template #title="node">
|
|
247
|
+
<a-tag :color="RESOURCE_COLOR[node.type]" :bordered="false">
|
|
248
|
+
{{ resourceOptions.find(item => item.value === node.type)?.label }}
|
|
249
|
+
</a-tag>
|
|
250
|
+
<span>{{ node.name }}</span>
|
|
251
|
+
</template>
|
|
252
|
+
</a-tree>
|
|
253
|
+
</div>
|
|
254
|
+
|
|
255
|
+
<div v-show="tabState.key === 'history' " class="size-full">
|
|
256
|
+
<a-spin :spinning="selectHistoryLoading">
|
|
257
|
+
<a-tree
|
|
258
|
+
key="history"
|
|
259
|
+
:field-names="{ children: 'children', title: 'name', key: 'id' }"
|
|
260
|
+
:tree-data="historyState.treeData"
|
|
261
|
+
:selectable="false"
|
|
262
|
+
class="size-full"
|
|
263
|
+
>
|
|
264
|
+
<template #title="node">
|
|
265
|
+
<a-tag :color="RESOURCE_COLOR[node.type]" :bordered="false">
|
|
266
|
+
{{ resourceOptions.find(item => item.value === node.type)?.label }}
|
|
267
|
+
</a-tag>
|
|
268
|
+
<span>{{ node.name }}</span>
|
|
269
|
+
</template>
|
|
270
|
+
</a-tree>
|
|
271
|
+
</a-spin>
|
|
272
|
+
</div>
|
|
273
|
+
</a-card>
|
|
274
|
+
</a-col>
|
|
275
|
+
|
|
276
|
+
<a-col span="8" class="h-full">
|
|
277
|
+
<a-card
|
|
278
|
+
title="历史记录"
|
|
279
|
+
:head-style="{ marginBottom: 0, padding: '0 12px' }"
|
|
280
|
+
:body-style="{ padding: '8px', height: 'calc(100% - 56px)', overflowY: 'auto' }"
|
|
281
|
+
class="h-full"
|
|
282
|
+
>
|
|
283
|
+
<div
|
|
284
|
+
v-if="historyLoading"
|
|
285
|
+
class="flex flex-col items-center justify-center size-full"
|
|
286
|
+
>
|
|
287
|
+
<a-spin />
|
|
288
|
+
</div>
|
|
289
|
+
<div
|
|
290
|
+
v-if="historyState.list.length === 0 && !historyLoading"
|
|
291
|
+
class="flex flex-col items-center justify-center size-full"
|
|
292
|
+
>
|
|
293
|
+
<a-empty />
|
|
294
|
+
</div>
|
|
295
|
+
<div
|
|
296
|
+
v-for="item in historyState.list"
|
|
297
|
+
:key="item.id"
|
|
298
|
+
class="flex justify-between items-center space-x-2 cursor-pointer hover:bg-gray-50 py-1 px-2 rounded"
|
|
299
|
+
:style="{ backgroundColor: historyState.selectedId === item.id ? token.colorPrimaryBg : '' }"
|
|
300
|
+
@click="onSelectHistory(item.id)"
|
|
301
|
+
>
|
|
302
|
+
<div class="space-x-1">
|
|
303
|
+
<ClockCircleOutlined />
|
|
304
|
+
<span class="text-sm truncate">{{ item.createTime }}</span>
|
|
305
|
+
</div>
|
|
306
|
+
<span class="text-xs shrink-0" :style="{ color: token.colorTextTertiary }">{{ item.createUserName }}</span>
|
|
307
|
+
</div>
|
|
308
|
+
</a-card>
|
|
309
|
+
</a-col>
|
|
310
|
+
</a-row>
|
|
311
|
+
</div>
|
|
312
|
+
</a-modal>
|
|
313
|
+
</template>
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { Form } from '../interface';
|
|
3
|
+
import { dataPermissionOptions } from '@/views/data-permission/enum';
|
|
4
|
+
import { useMetaForm } from '../hooks/useMetaForm';
|
|
5
|
+
|
|
6
|
+
defineOptions({
|
|
7
|
+
name: 'MetaForm',
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
const form = defineModel<Form>({
|
|
11
|
+
default: {
|
|
12
|
+
meta: {
|
|
13
|
+
url: '',
|
|
14
|
+
component: '',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
const { show } = useMetaForm(form);
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<template>
|
|
23
|
+
<div>
|
|
24
|
+
<a-divider>其他配置</a-divider>
|
|
25
|
+
|
|
26
|
+
<!--
|
|
27
|
+
其他配置区域:根据资源类型的不同,显示不同的配置选项
|
|
28
|
+
- 开发模式:仅对应用和动态应用有效,用于开发环境的特殊配置
|
|
29
|
+
- 缓存标签页/固定标签页:仅对菜单有效,因为只有菜单会在浏览器标签页中展示
|
|
30
|
+
- 其他显示相关配置:适用于所有可视化的资源类型
|
|
31
|
+
-->
|
|
32
|
+
|
|
33
|
+
<a-row :gutter="8">
|
|
34
|
+
<a-col :span="9" :offset="3">
|
|
35
|
+
<a-form-item name="enable">
|
|
36
|
+
<a-checkbox v-model:checked="form.enable">
|
|
37
|
+
启用
|
|
38
|
+
</a-checkbox>
|
|
39
|
+
</a-form-item>
|
|
40
|
+
</a-col>
|
|
41
|
+
<!-- 开发模式:仅在应用或动态应用中显示 -->
|
|
42
|
+
<a-col v-if="show.devMode" :span="9" :offset="3">
|
|
43
|
+
<a-form-item name="isDev">
|
|
44
|
+
<a-checkbox v-model:checked="form.meta!.isDev">
|
|
45
|
+
开发模式
|
|
46
|
+
</a-checkbox>
|
|
47
|
+
</a-form-item>
|
|
48
|
+
</a-col>
|
|
49
|
+
<!-- 开发模式文本:仅在开启开发模式时显示 -->
|
|
50
|
+
<a-col v-if="show.devMode && form.meta?.isDev" :span="18" :offset="3">
|
|
51
|
+
<a-form-item label="开发模式提示文本" name="devText" :label-col="{ style: { width: '120px' } }">
|
|
52
|
+
<a-input
|
|
53
|
+
v-model:value="form.meta!.devText"
|
|
54
|
+
placeholder="请输入开发模式下的提示文本"
|
|
55
|
+
:maxlength="100"
|
|
56
|
+
show-count
|
|
57
|
+
/>
|
|
58
|
+
<div class="text-xs text-gray-500 mt-1">
|
|
59
|
+
此文本将在用户点击开发模式应用时显示在提示框中
|
|
60
|
+
</div>
|
|
61
|
+
</a-form-item>
|
|
62
|
+
</a-col>
|
|
63
|
+
<!-- 缓存标签页:仅在菜单中显示 -->
|
|
64
|
+
<a-col v-if="show.cacheAndPin" :span="9" :offset="3">
|
|
65
|
+
<a-form-item name="cache">
|
|
66
|
+
<a-checkbox v-model:checked="form.meta!.cache">
|
|
67
|
+
缓存标签页
|
|
68
|
+
</a-checkbox>
|
|
69
|
+
</a-form-item>
|
|
70
|
+
</a-col>
|
|
71
|
+
<!-- 固定标签页:仅在菜单中显示 -->
|
|
72
|
+
<a-col v-if="show.cacheAndPin" :span="9" :offset="3">
|
|
73
|
+
<a-form-item name="pin">
|
|
74
|
+
<a-checkbox v-model:checked="form.meta!.pin">
|
|
75
|
+
固定在标签页
|
|
76
|
+
</a-checkbox>
|
|
77
|
+
</a-form-item>
|
|
78
|
+
</a-col>
|
|
79
|
+
<!-- 侧边栏显示:不适用于应用和动态应用 -->
|
|
80
|
+
<a-col v-if="show.sidebar" :span="9" :offset="3">
|
|
81
|
+
<a-form-item name="sidebar">
|
|
82
|
+
<a-checkbox v-model:checked="form.meta!.sidebar">
|
|
83
|
+
在侧边栏显示
|
|
84
|
+
</a-checkbox>
|
|
85
|
+
</a-form-item>
|
|
86
|
+
</a-col>
|
|
87
|
+
<!-- 标签栏显示:不适用于应用、动态应用和目录 -->
|
|
88
|
+
<a-col v-if="show.tabbar" :span="9" :offset="3">
|
|
89
|
+
<a-form-item name="tabbar">
|
|
90
|
+
<a-checkbox v-model:checked="form.meta!.tabbar">
|
|
91
|
+
在标签栏显示
|
|
92
|
+
</a-checkbox>
|
|
93
|
+
</a-form-item>
|
|
94
|
+
</a-col>
|
|
95
|
+
<a-col v-if="show.breadcrumb" :span="9" :offset="3">
|
|
96
|
+
<a-form-item name="breadcrumb">
|
|
97
|
+
<a-checkbox v-model:checked="form.meta!.breadcrumb">
|
|
98
|
+
在面包屑显示
|
|
99
|
+
</a-checkbox>
|
|
100
|
+
</a-form-item>
|
|
101
|
+
</a-col>
|
|
102
|
+
</a-row>
|
|
103
|
+
|
|
104
|
+
<a-row v-if="show.dataPermission" :gutter="8">
|
|
105
|
+
<a-col :span="6" :offset="3">
|
|
106
|
+
<a-form-item name="enableDataPermission">
|
|
107
|
+
<a-checkbox v-model:checked="form.enableDataPermission">
|
|
108
|
+
启用数据权限
|
|
109
|
+
</a-checkbox>
|
|
110
|
+
</a-form-item>
|
|
111
|
+
</a-col>
|
|
112
|
+
<a-col :span="12" :offset="3">
|
|
113
|
+
<a-form-item v-if="form.enableDataPermission" label="数据权限规则" name="dataPermissionType">
|
|
114
|
+
<a-select v-model:value="form.dataPermissionType" :options="dataPermissionOptions" />
|
|
115
|
+
</a-form-item>
|
|
116
|
+
</a-col>
|
|
117
|
+
</a-row>
|
|
118
|
+
</div>
|
|
119
|
+
</template>
|