@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/dist/index-BS45K9vK.js
DELETED
|
@@ -1,685 +0,0 @@
|
|
|
1
|
-
import { Modal as ne, Input as H, Spin as le, CheckboxGroup as ae, Checkbox as se, Tooltip as J, Tag as re, Button as L, Drawer as ue, Form as ie, FormItem as ce, Switch as de, Textarea as pe, Space as X } from "ant-design-vue/es";
|
|
2
|
-
import { useAuth as fe, PubinfoIcon as me } from "pubinfo";
|
|
3
|
-
import { SearchOutlined as _e, PlusCircleOutlined as ve } from "@ant-design/icons-vue";
|
|
4
|
-
import { defineComponent as z, mergeModels as xe, ref as k, useModel as be, watch as ge, createBlock as E, openBlock as r, withCtx as l, createElementVNode as p, toDisplayString as h, unref as a, createVNode as n, isRef as q, createCommentVNode as Y, createElementBlock as y, Fragment as G, renderList as N, createTextVNode as $, reactive as he, resolveDirective as ke, withDirectives as W } from "vue";
|
|
5
|
-
import "./request-DQLgc7lT.js";
|
|
6
|
-
import { g as ye, p as we, a as Re, b as Ie, d as Ce } from "./pubJiaosezukongzhiqi-CvYfc8Uz.js";
|
|
7
|
-
import { ProTable as De } from "@pubinfo/pro-components";
|
|
8
|
-
import { message as Z, Badge as Q, Modal as Ee } from "ant-design-vue";
|
|
9
|
-
import { e as $e } from "./jiaosejiekou-BfY4h7uI.js";
|
|
10
|
-
import { u as j } from "./index-Dm4sOX43.js";
|
|
11
|
-
import { _ as Fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
var x = /* @__PURE__ */ ((I) => (I.ADD = "新增", I.EDIT = "修改", I.REMOVE = "删除", I.RESOURCE_RELATION = "分配查看", I))(x || {});
|
|
13
|
-
const Se = { class: "h-340px border-1px border-solid flex flex-row border_color" }, Pe = { class: "w-360px flex flex-col" }, Te = { class: "w-full h-34px bg-[#F2F3F5] flex px-15px items-center justify-between text-[#1D2129] dark:bg-[#1D2129] dark:text-[#F2F3F5]" }, Me = { class: "flex-1 overflow-hidden py-10px px-10px" }, Oe = { class: "overflow-y-auto overflow-x-hidden h-[calc(100%-30px)] mt-10px" }, Ue = { key: 1 }, Ve = { class: "flex-1 flex flex-col border-solid border-0px border-l-1px border_color" }, Be = { class: "flex-1 p-10px overflow-auto" }, Ge = /* @__PURE__ */ z({
|
|
14
|
-
name: "RoleSelect",
|
|
15
|
-
__name: "roleSelect",
|
|
16
|
-
props: {
|
|
17
|
-
open: { type: Boolean },
|
|
18
|
-
openModifiers: {}
|
|
19
|
-
},
|
|
20
|
-
emits: /* @__PURE__ */ xe(["select"], ["update:open"]),
|
|
21
|
-
setup(I, { expose: U, emit: O }) {
|
|
22
|
-
const T = O, F = k(!1), m = k([]), w = k([]), v = k([]), c = k(""), u = be(I, "open"), s = j(u);
|
|
23
|
-
ge(() => m.value, (f) => {
|
|
24
|
-
w.value = f.reduce((e, M) => {
|
|
25
|
-
const V = v.value.find((d) => d.id === M) || {};
|
|
26
|
-
return e.push(V), e;
|
|
27
|
-
}, []);
|
|
28
|
-
}, { deep: !0 });
|
|
29
|
-
async function b(f) {
|
|
30
|
-
F.value = !0;
|
|
31
|
-
const e = await $e();
|
|
32
|
-
F.value = !1, v.value = e.data || [], m.value = [...f], s(!0);
|
|
33
|
-
}
|
|
34
|
-
function R() {
|
|
35
|
-
m.value = [];
|
|
36
|
-
}
|
|
37
|
-
function C(f) {
|
|
38
|
-
const e = m.value.findIndex((M) => M === f);
|
|
39
|
-
e >= 0 && m.value.splice(e, 1);
|
|
40
|
-
}
|
|
41
|
-
function g() {
|
|
42
|
-
T("select", w.value), s(!1);
|
|
43
|
-
}
|
|
44
|
-
function S() {
|
|
45
|
-
return v.value.filter((f) => {
|
|
46
|
-
var e;
|
|
47
|
-
return (e = f.name) == null ? void 0 : e.includes(c.value);
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
return U({
|
|
51
|
-
open: b
|
|
52
|
-
}), (f, e) => {
|
|
53
|
-
const M = H, V = le, d = J, t = se, P = ae, _ = re, B = L, A = ne;
|
|
54
|
-
return r(), E(A, {
|
|
55
|
-
open: u.value,
|
|
56
|
-
"onUpdate:open": e[3] || (e[3] = (o) => u.value = o),
|
|
57
|
-
class: "custom_modal",
|
|
58
|
-
title: "角色选择",
|
|
59
|
-
"mask-closable": !1,
|
|
60
|
-
width: 750
|
|
61
|
-
}, {
|
|
62
|
-
footer: l(() => [
|
|
63
|
-
n(B, {
|
|
64
|
-
onClick: e[2] || (e[2] = (o) => a(s)(!1))
|
|
65
|
-
}, {
|
|
66
|
-
default: l(() => e[6] || (e[6] = [
|
|
67
|
-
$(" 取消 ")
|
|
68
|
-
])),
|
|
69
|
-
_: 1
|
|
70
|
-
/* STABLE */
|
|
71
|
-
}),
|
|
72
|
-
n(B, {
|
|
73
|
-
type: "primary",
|
|
74
|
-
onClick: g
|
|
75
|
-
}, {
|
|
76
|
-
default: l(() => e[7] || (e[7] = [
|
|
77
|
-
$(" 确定 ")
|
|
78
|
-
])),
|
|
79
|
-
_: 1
|
|
80
|
-
/* STABLE */
|
|
81
|
-
})
|
|
82
|
-
]),
|
|
83
|
-
default: l(() => [
|
|
84
|
-
p("div", Se, [
|
|
85
|
-
p("div", Pe, [
|
|
86
|
-
p("div", Te, [
|
|
87
|
-
e[4] || (e[4] = p(
|
|
88
|
-
"div",
|
|
89
|
-
{ class: "" },
|
|
90
|
-
" 全部角色 ",
|
|
91
|
-
-1
|
|
92
|
-
/* HOISTED */
|
|
93
|
-
)),
|
|
94
|
-
p(
|
|
95
|
-
"div",
|
|
96
|
-
null,
|
|
97
|
-
h(a(m).length) + "/" + h(a(v).length),
|
|
98
|
-
1
|
|
99
|
-
/* TEXT */
|
|
100
|
-
)
|
|
101
|
-
]),
|
|
102
|
-
p("div", Me, [
|
|
103
|
-
n(M, {
|
|
104
|
-
value: a(c),
|
|
105
|
-
"onUpdate:value": e[0] || (e[0] = (o) => q(c) ? c.value = o : null),
|
|
106
|
-
placeholder: "请输入",
|
|
107
|
-
"allow-clear": "",
|
|
108
|
-
onChange: S
|
|
109
|
-
}, {
|
|
110
|
-
prefix: l(() => [
|
|
111
|
-
n(a(_e))
|
|
112
|
-
]),
|
|
113
|
-
_: 1
|
|
114
|
-
/* STABLE */
|
|
115
|
-
}, 8, ["value"]),
|
|
116
|
-
p("div", Oe, [
|
|
117
|
-
a(F) ? (r(), E(V, { key: 0 })) : Y("v-if", !0),
|
|
118
|
-
n(P, {
|
|
119
|
-
value: a(m),
|
|
120
|
-
"onUpdate:value": e[1] || (e[1] = (o) => q(m) ? m.value = o : null)
|
|
121
|
-
}, {
|
|
122
|
-
default: l(() => [
|
|
123
|
-
(r(!0), y(
|
|
124
|
-
G,
|
|
125
|
-
null,
|
|
126
|
-
N(S(), (o) => (r(), y("div", {
|
|
127
|
-
key: o.id,
|
|
128
|
-
class: "w-full py-10px bodb"
|
|
129
|
-
}, [
|
|
130
|
-
n(t, {
|
|
131
|
-
value: o.id
|
|
132
|
-
}, {
|
|
133
|
-
default: l(() => [
|
|
134
|
-
(o.name || "").length > 22 ? (r(), E(d, {
|
|
135
|
-
key: 0,
|
|
136
|
-
title: o.name
|
|
137
|
-
}, {
|
|
138
|
-
default: l(() => {
|
|
139
|
-
var D;
|
|
140
|
-
return [
|
|
141
|
-
$(
|
|
142
|
-
h(`${(D = o == null ? void 0 : o.name) == null ? void 0 : D.slice(0, 22)}...`),
|
|
143
|
-
1
|
|
144
|
-
/* TEXT */
|
|
145
|
-
)
|
|
146
|
-
];
|
|
147
|
-
}),
|
|
148
|
-
_: 2
|
|
149
|
-
/* DYNAMIC */
|
|
150
|
-
}, 1032, ["title"])) : (r(), y(
|
|
151
|
-
"span",
|
|
152
|
-
Ue,
|
|
153
|
-
h(o.name),
|
|
154
|
-
1
|
|
155
|
-
/* TEXT */
|
|
156
|
-
))
|
|
157
|
-
]),
|
|
158
|
-
_: 2
|
|
159
|
-
/* DYNAMIC */
|
|
160
|
-
}, 1032, ["value"])
|
|
161
|
-
]))),
|
|
162
|
-
128
|
|
163
|
-
/* KEYED_FRAGMENT */
|
|
164
|
-
))
|
|
165
|
-
]),
|
|
166
|
-
_: 1
|
|
167
|
-
/* STABLE */
|
|
168
|
-
}, 8, ["value"])
|
|
169
|
-
])
|
|
170
|
-
])
|
|
171
|
-
]),
|
|
172
|
-
p("div", Ve, [
|
|
173
|
-
p("div", { class: "w-full h-34px bg-[#F2F3F5] flex px-15px items-center justify-between text-[#1D2129] dark:bg-[#1D2129] dark:text-[#F2F3F5]" }, [
|
|
174
|
-
e[5] || (e[5] = p(
|
|
175
|
-
"div",
|
|
176
|
-
{ class: "" },
|
|
177
|
-
" 已选角色 ",
|
|
178
|
-
-1
|
|
179
|
-
/* HOISTED */
|
|
180
|
-
)),
|
|
181
|
-
p("div", {
|
|
182
|
-
class: "cursor-pointer text-[#165DFF]",
|
|
183
|
-
onClick: R
|
|
184
|
-
}, " 清空 ")
|
|
185
|
-
]),
|
|
186
|
-
p("div", Be, [
|
|
187
|
-
(r(!0), y(
|
|
188
|
-
G,
|
|
189
|
-
null,
|
|
190
|
-
N(a(w), (o) => (r(), y("div", {
|
|
191
|
-
key: o.id,
|
|
192
|
-
class: "inline-block mb-6px max-w-300px"
|
|
193
|
-
}, [
|
|
194
|
-
(o.name || "").length > 20 ? (r(), E(d, {
|
|
195
|
-
key: 0,
|
|
196
|
-
title: o.name
|
|
197
|
-
}, {
|
|
198
|
-
default: l(() => [
|
|
199
|
-
n(_, {
|
|
200
|
-
class: "custom_tag bg-[#e8f3ff] dark:bg-[#141414]",
|
|
201
|
-
closable: "",
|
|
202
|
-
onClose: (D) => C(o.id || "")
|
|
203
|
-
}, {
|
|
204
|
-
default: l(() => {
|
|
205
|
-
var D;
|
|
206
|
-
return [
|
|
207
|
-
$(
|
|
208
|
-
h(`${(D = o == null ? void 0 : o.name) == null ? void 0 : D.slice(0, 20)}...`),
|
|
209
|
-
1
|
|
210
|
-
/* TEXT */
|
|
211
|
-
)
|
|
212
|
-
];
|
|
213
|
-
}),
|
|
214
|
-
_: 2
|
|
215
|
-
/* DYNAMIC */
|
|
216
|
-
}, 1032, ["onClose"])
|
|
217
|
-
]),
|
|
218
|
-
_: 2
|
|
219
|
-
/* DYNAMIC */
|
|
220
|
-
}, 1032, ["title"])) : (r(), E(_, {
|
|
221
|
-
key: 1,
|
|
222
|
-
class: "custom_tag bg-[#e8f3ff] dark:bg-[#141414]",
|
|
223
|
-
closable: "",
|
|
224
|
-
onClose: (D) => C(o.id || "")
|
|
225
|
-
}, {
|
|
226
|
-
default: l(() => [
|
|
227
|
-
$(
|
|
228
|
-
h(o.name),
|
|
229
|
-
1
|
|
230
|
-
/* TEXT */
|
|
231
|
-
)
|
|
232
|
-
]),
|
|
233
|
-
_: 2
|
|
234
|
-
/* DYNAMIC */
|
|
235
|
-
}, 1032, ["onClose"]))
|
|
236
|
-
]))),
|
|
237
|
-
128
|
|
238
|
-
/* KEYED_FRAGMENT */
|
|
239
|
-
))
|
|
240
|
-
])
|
|
241
|
-
])
|
|
242
|
-
])
|
|
243
|
-
]),
|
|
244
|
-
_: 1
|
|
245
|
-
/* STABLE */
|
|
246
|
-
}, 8, ["open"]);
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
}), Ae = /* @__PURE__ */ Fe(Ge, [["__scopeId", "data-v-3273a107"]]), We = { class: "pt-10px" }, qe = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" }, Ne = {
|
|
250
|
-
key: 1,
|
|
251
|
-
class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]"
|
|
252
|
-
}, je = /* @__PURE__ */ z({
|
|
253
|
-
name: "DrawerRoleGroup",
|
|
254
|
-
__name: "drawerRole",
|
|
255
|
-
emits: ["submit"],
|
|
256
|
-
setup(I, { expose: U, emit: O }) {
|
|
257
|
-
const T = O, F = {
|
|
258
|
-
name: [
|
|
259
|
-
{ required: !0, message: "请输入名称", trigger: "blur" },
|
|
260
|
-
{ min: 2, max: 32, message: "角色组名称长度不能少于2位,不能超过32位", trigger: "change" }
|
|
261
|
-
],
|
|
262
|
-
roleIds: [{ required: !0, validator: m, trigger: ["blur", "change"] }]
|
|
263
|
-
};
|
|
264
|
-
function m(d, t) {
|
|
265
|
-
return t && t.length > 0 ? Promise.resolve() : Promise.reject(new Error("请选择角色"));
|
|
266
|
-
}
|
|
267
|
-
const w = he({
|
|
268
|
-
title: ""
|
|
269
|
-
}), [v, c] = j(!1), u = k(), s = k({ enable: !0 }), b = k([]);
|
|
270
|
-
async function R(d, t) {
|
|
271
|
-
var P;
|
|
272
|
-
if (w.title = d, d === x.EDIT) {
|
|
273
|
-
const _ = await ye({ id: t == null ? void 0 : t.id });
|
|
274
|
-
_.success && (s.value = _.data ?? {}, b.value = ((P = _.data) == null ? void 0 : P.roles) || []);
|
|
275
|
-
} else
|
|
276
|
-
s.value = {
|
|
277
|
-
enable: !0
|
|
278
|
-
}, b.value = [];
|
|
279
|
-
c(!0);
|
|
280
|
-
}
|
|
281
|
-
const [C, g] = j(!1);
|
|
282
|
-
function S() {
|
|
283
|
-
var t;
|
|
284
|
-
const d = w.title === x.EDIT ? we : Re;
|
|
285
|
-
(t = u.value) == null || t.validate().then(() => {
|
|
286
|
-
g(!0);
|
|
287
|
-
const P = { ...s.value };
|
|
288
|
-
d(P).then((_) => {
|
|
289
|
-
_.success && (Z.success(`${w.title}成功!`), c(!1), T("submit"));
|
|
290
|
-
}).finally(() => g(!1));
|
|
291
|
-
});
|
|
292
|
-
}
|
|
293
|
-
function f() {
|
|
294
|
-
s.value = {
|
|
295
|
-
enable: !0
|
|
296
|
-
}, c(!1);
|
|
297
|
-
}
|
|
298
|
-
const e = k();
|
|
299
|
-
function M() {
|
|
300
|
-
e.value.open(b.value.map((d) => d.id));
|
|
301
|
-
}
|
|
302
|
-
function V(d) {
|
|
303
|
-
s.value.roleIds = d.map((t) => t.id).join(","), b.value = d;
|
|
304
|
-
}
|
|
305
|
-
return U({
|
|
306
|
-
open: R
|
|
307
|
-
}), (d, t) => {
|
|
308
|
-
const P = H, _ = ce, B = de, A = pe, o = L, D = J, ee = ie, te = X, oe = ue;
|
|
309
|
-
return r(), E(oe, {
|
|
310
|
-
open: a(v),
|
|
311
|
-
"onUpdate:open": t[4] || (t[4] = (i) => q(v) ? v.value = i : null),
|
|
312
|
-
title: `${a(w).title}角色组`,
|
|
313
|
-
placement: "right",
|
|
314
|
-
width: 600,
|
|
315
|
-
"destroy-on-close": "",
|
|
316
|
-
"footer-style": { textAlign: "right" },
|
|
317
|
-
onClose: f
|
|
318
|
-
}, {
|
|
319
|
-
footer: l(() => [
|
|
320
|
-
n(te, null, {
|
|
321
|
-
default: l(() => [
|
|
322
|
-
n(o, { onClick: f }, {
|
|
323
|
-
default: l(() => t[6] || (t[6] = [
|
|
324
|
-
$(" 取消 ")
|
|
325
|
-
])),
|
|
326
|
-
_: 1
|
|
327
|
-
/* STABLE */
|
|
328
|
-
}),
|
|
329
|
-
n(o, {
|
|
330
|
-
type: "primary",
|
|
331
|
-
loading: a(C),
|
|
332
|
-
onClick: t[3] || (t[3] = (i) => S())
|
|
333
|
-
}, {
|
|
334
|
-
default: l(() => t[7] || (t[7] = [
|
|
335
|
-
$(" 提交 ")
|
|
336
|
-
])),
|
|
337
|
-
_: 1
|
|
338
|
-
/* STABLE */
|
|
339
|
-
}, 8, ["loading"])
|
|
340
|
-
]),
|
|
341
|
-
_: 1
|
|
342
|
-
/* STABLE */
|
|
343
|
-
})
|
|
344
|
-
]),
|
|
345
|
-
default: l(() => [
|
|
346
|
-
n(ee, {
|
|
347
|
-
ref_key: "formRef",
|
|
348
|
-
ref: u,
|
|
349
|
-
model: a(s),
|
|
350
|
-
rules: F,
|
|
351
|
-
"label-col": { span: 4 }
|
|
352
|
-
}, {
|
|
353
|
-
default: l(() => [
|
|
354
|
-
n(_, {
|
|
355
|
-
label: "角色组名称",
|
|
356
|
-
name: "name"
|
|
357
|
-
}, {
|
|
358
|
-
default: l(() => [
|
|
359
|
-
n(P, {
|
|
360
|
-
value: a(s).name,
|
|
361
|
-
"onUpdate:value": t[0] || (t[0] = (i) => a(s).name = i),
|
|
362
|
-
maxlength: 32
|
|
363
|
-
}, null, 8, ["value"])
|
|
364
|
-
]),
|
|
365
|
-
_: 1
|
|
366
|
-
/* STABLE */
|
|
367
|
-
}),
|
|
368
|
-
n(_, { label: "是否启用" }, {
|
|
369
|
-
default: l(() => [
|
|
370
|
-
n(B, {
|
|
371
|
-
checked: a(s).enable,
|
|
372
|
-
"onUpdate:checked": t[1] || (t[1] = (i) => a(s).enable = i)
|
|
373
|
-
}, null, 8, ["checked"])
|
|
374
|
-
]),
|
|
375
|
-
_: 1
|
|
376
|
-
/* STABLE */
|
|
377
|
-
}),
|
|
378
|
-
n(_, { label: "角色组描述" }, {
|
|
379
|
-
default: l(() => [
|
|
380
|
-
n(A, {
|
|
381
|
-
value: a(s).description,
|
|
382
|
-
"onUpdate:value": t[2] || (t[2] = (i) => a(s).description = i),
|
|
383
|
-
maxlength: 250,
|
|
384
|
-
"show-count": ""
|
|
385
|
-
}, null, 8, ["value"])
|
|
386
|
-
]),
|
|
387
|
-
_: 1
|
|
388
|
-
/* STABLE */
|
|
389
|
-
}),
|
|
390
|
-
n(_, {
|
|
391
|
-
label: "所属角色",
|
|
392
|
-
name: "roleIds"
|
|
393
|
-
}, {
|
|
394
|
-
default: l(() => [
|
|
395
|
-
n(o, {
|
|
396
|
-
type: "primary",
|
|
397
|
-
onClick: M
|
|
398
|
-
}, {
|
|
399
|
-
default: l(() => t[5] || (t[5] = [
|
|
400
|
-
$(" 编辑角色 ")
|
|
401
|
-
])),
|
|
402
|
-
_: 1
|
|
403
|
-
/* STABLE */
|
|
404
|
-
}),
|
|
405
|
-
p("div", We, [
|
|
406
|
-
(r(!0), y(
|
|
407
|
-
G,
|
|
408
|
-
null,
|
|
409
|
-
N(a(b), (i) => (r(), y(
|
|
410
|
-
G,
|
|
411
|
-
{ key: i },
|
|
412
|
-
[
|
|
413
|
-
((i == null ? void 0 : i.name) || "").length > 20 ? (r(), E(D, {
|
|
414
|
-
key: 0,
|
|
415
|
-
title: i.name
|
|
416
|
-
}, {
|
|
417
|
-
default: l(() => {
|
|
418
|
-
var K;
|
|
419
|
-
return [
|
|
420
|
-
p(
|
|
421
|
-
"span",
|
|
422
|
-
qe,
|
|
423
|
-
h(`${(K = i == null ? void 0 : i.name) == null ? void 0 : K.slice(0, 20)}...`),
|
|
424
|
-
1
|
|
425
|
-
/* TEXT */
|
|
426
|
-
)
|
|
427
|
-
];
|
|
428
|
-
}),
|
|
429
|
-
_: 2
|
|
430
|
-
/* DYNAMIC */
|
|
431
|
-
}, 1032, ["title"])) : (r(), y(
|
|
432
|
-
"span",
|
|
433
|
-
Ne,
|
|
434
|
-
h(i.name),
|
|
435
|
-
1
|
|
436
|
-
/* TEXT */
|
|
437
|
-
))
|
|
438
|
-
],
|
|
439
|
-
64
|
|
440
|
-
/* STABLE_FRAGMENT */
|
|
441
|
-
))),
|
|
442
|
-
128
|
|
443
|
-
/* KEYED_FRAGMENT */
|
|
444
|
-
))
|
|
445
|
-
])
|
|
446
|
-
]),
|
|
447
|
-
_: 1
|
|
448
|
-
/* STABLE */
|
|
449
|
-
})
|
|
450
|
-
]),
|
|
451
|
-
_: 1
|
|
452
|
-
/* STABLE */
|
|
453
|
-
}, 8, ["model"]),
|
|
454
|
-
n(
|
|
455
|
-
Ae,
|
|
456
|
-
{
|
|
457
|
-
ref_key: "roleModelRef",
|
|
458
|
-
ref: e,
|
|
459
|
-
onSelect: V
|
|
460
|
-
},
|
|
461
|
-
null,
|
|
462
|
-
512
|
|
463
|
-
/* NEED_PATCH */
|
|
464
|
-
)
|
|
465
|
-
]),
|
|
466
|
-
_: 1
|
|
467
|
-
/* STABLE */
|
|
468
|
-
}, 8, ["open", "title"]);
|
|
469
|
-
};
|
|
470
|
-
}
|
|
471
|
-
}), Le = {
|
|
472
|
-
"py-10px": "",
|
|
473
|
-
"px-10px": "",
|
|
474
|
-
"w-full": "",
|
|
475
|
-
"h-full": ""
|
|
476
|
-
}, ze = ["onClick"], Ke = {
|
|
477
|
-
class: "ml-4px"
|
|
478
|
-
}, Qe = ["onClick"], He = {
|
|
479
|
-
class: "ml-4px"
|
|
480
|
-
}, rt = /* @__PURE__ */ z({
|
|
481
|
-
name: "Role",
|
|
482
|
-
__name: "index",
|
|
483
|
-
setup(I) {
|
|
484
|
-
const {
|
|
485
|
-
auth: U
|
|
486
|
-
} = fe(), O = k(), T = k();
|
|
487
|
-
function F() {
|
|
488
|
-
O.value.reload();
|
|
489
|
-
}
|
|
490
|
-
async function m(c) {
|
|
491
|
-
var C, g;
|
|
492
|
-
const {
|
|
493
|
-
current: u,
|
|
494
|
-
pageSize: s,
|
|
495
|
-
...b
|
|
496
|
-
} = c, R = await Ie({
|
|
497
|
-
currentPage: u,
|
|
498
|
-
pageSize: s,
|
|
499
|
-
...b
|
|
500
|
-
});
|
|
501
|
-
return {
|
|
502
|
-
success: R.success,
|
|
503
|
-
data: ((C = R.data) == null ? void 0 : C.records) ?? [],
|
|
504
|
-
total: ((g = R.data) == null ? void 0 : g.total) ?? 0
|
|
505
|
-
};
|
|
506
|
-
}
|
|
507
|
-
const w = [{
|
|
508
|
-
valueType: "a-input",
|
|
509
|
-
bind: "value",
|
|
510
|
-
minWidth: 200,
|
|
511
|
-
title: "角色组名称",
|
|
512
|
-
dataIndex: "name",
|
|
513
|
-
ellipsis: !0,
|
|
514
|
-
fieldProps: {
|
|
515
|
-
placeholder: "请输入角色组名称",
|
|
516
|
-
allowClear: !0
|
|
517
|
-
}
|
|
518
|
-
}, {
|
|
519
|
-
hideInSearch: !0,
|
|
520
|
-
minWidth: 80,
|
|
521
|
-
title: "创建人",
|
|
522
|
-
dataIndex: "createUserName"
|
|
523
|
-
}, {
|
|
524
|
-
hideInSearch: !0,
|
|
525
|
-
minWidth: 100,
|
|
526
|
-
title: "创建部门",
|
|
527
|
-
dataIndex: "createOrgName"
|
|
528
|
-
}, {
|
|
529
|
-
hideInSearch: !0,
|
|
530
|
-
minWidth: 100,
|
|
531
|
-
title: "创建时间",
|
|
532
|
-
dataIndex: "createTime"
|
|
533
|
-
}, {
|
|
534
|
-
hideInSearch: !0,
|
|
535
|
-
minWidth: 100,
|
|
536
|
-
title: "修改时间",
|
|
537
|
-
dataIndex: "updateTime"
|
|
538
|
-
}, {
|
|
539
|
-
valueType: "a-select",
|
|
540
|
-
minWidth: 80,
|
|
541
|
-
title: "角色组状态",
|
|
542
|
-
dataIndex: "enable",
|
|
543
|
-
customRender: ({
|
|
544
|
-
text: c
|
|
545
|
-
}) => c ? n(Q, {
|
|
546
|
-
status: "success",
|
|
547
|
-
text: "正常"
|
|
548
|
-
}, null) : n(Q, {
|
|
549
|
-
status: "error",
|
|
550
|
-
text: "关闭"
|
|
551
|
-
}, null),
|
|
552
|
-
fieldProps: {
|
|
553
|
-
placeholder: "请选择是否启用",
|
|
554
|
-
allowClear: !0,
|
|
555
|
-
options: [{
|
|
556
|
-
value: 1,
|
|
557
|
-
label: "正常"
|
|
558
|
-
}, {
|
|
559
|
-
value: 0,
|
|
560
|
-
label: "关闭"
|
|
561
|
-
}]
|
|
562
|
-
}
|
|
563
|
-
}, {
|
|
564
|
-
hideInSearch: !0,
|
|
565
|
-
width: 140,
|
|
566
|
-
title: "操作",
|
|
567
|
-
dataIndex: "action",
|
|
568
|
-
fixed: "right",
|
|
569
|
-
hideInTable() {
|
|
570
|
-
return !U(["role_group_edit", "role_group_remove"]);
|
|
571
|
-
}
|
|
572
|
-
}];
|
|
573
|
-
function v(c, u) {
|
|
574
|
-
switch (c) {
|
|
575
|
-
case x.EDIT:
|
|
576
|
-
T.value.open(c, u);
|
|
577
|
-
break;
|
|
578
|
-
case x.ADD:
|
|
579
|
-
T.value.open(c);
|
|
580
|
-
break;
|
|
581
|
-
case x.REMOVE:
|
|
582
|
-
Ee.confirm({
|
|
583
|
-
title: "删除",
|
|
584
|
-
content: "确定要删除该角色组吗?",
|
|
585
|
-
onOk() {
|
|
586
|
-
Ce({
|
|
587
|
-
id: u == null ? void 0 : u.id
|
|
588
|
-
}).then((s) => {
|
|
589
|
-
s.success && (Z.success("删除成功"), F());
|
|
590
|
-
});
|
|
591
|
-
}
|
|
592
|
-
});
|
|
593
|
-
break;
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
return (c, u) => {
|
|
597
|
-
const s = ve, b = L, R = me, C = X, g = ke("auth");
|
|
598
|
-
return r(), y("div", Le, [n(
|
|
599
|
-
a(De),
|
|
600
|
-
{
|
|
601
|
-
ref_key: "tableRef",
|
|
602
|
-
ref: O,
|
|
603
|
-
"row-key": "id",
|
|
604
|
-
request: m,
|
|
605
|
-
columns: w,
|
|
606
|
-
"auto-height": "",
|
|
607
|
-
scroll: {
|
|
608
|
-
x: 1100
|
|
609
|
-
}
|
|
610
|
-
},
|
|
611
|
-
{
|
|
612
|
-
toolbar: l(() => [W((r(), E(b, {
|
|
613
|
-
type: "primary",
|
|
614
|
-
onClick: u[0] || (u[0] = (S) => v(a(x).ADD))
|
|
615
|
-
}, {
|
|
616
|
-
default: l(() => [n(s), $(
|
|
617
|
-
" " + h(a(x).ADD),
|
|
618
|
-
1
|
|
619
|
-
/* TEXT */
|
|
620
|
-
)]),
|
|
621
|
-
_: 1
|
|
622
|
-
/* STABLE */
|
|
623
|
-
})), [[g, "role_group_add"]])]),
|
|
624
|
-
bodyCell: l(({
|
|
625
|
-
column: S,
|
|
626
|
-
record: f
|
|
627
|
-
}) => [S.dataIndex === "action" ? (r(), E(
|
|
628
|
-
C,
|
|
629
|
-
{
|
|
630
|
-
key: 0
|
|
631
|
-
},
|
|
632
|
-
{
|
|
633
|
-
default: l(() => [W((r(), y("a", {
|
|
634
|
-
class: "flex items-center",
|
|
635
|
-
onClick: (e) => v(a(x).EDIT, f)
|
|
636
|
-
}, [n(R, {
|
|
637
|
-
name: "edit",
|
|
638
|
-
class: "text-base"
|
|
639
|
-
}), p(
|
|
640
|
-
"span",
|
|
641
|
-
Ke,
|
|
642
|
-
h(a(x).EDIT),
|
|
643
|
-
1
|
|
644
|
-
/* TEXT */
|
|
645
|
-
)], 8, ze)), [[g, "role_edit"]]), W((r(), y("span", {
|
|
646
|
-
class: "flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",
|
|
647
|
-
onClick: (e) => v(a(x).REMOVE, f)
|
|
648
|
-
}, [n(R, {
|
|
649
|
-
name: "remove",
|
|
650
|
-
class: "text-base"
|
|
651
|
-
}), p(
|
|
652
|
-
"span",
|
|
653
|
-
He,
|
|
654
|
-
h(a(x).REMOVE),
|
|
655
|
-
1
|
|
656
|
-
/* TEXT */
|
|
657
|
-
)], 8, Qe)), [[g, "role_remove"]])]),
|
|
658
|
-
_: 2
|
|
659
|
-
/* DYNAMIC */
|
|
660
|
-
},
|
|
661
|
-
1024
|
|
662
|
-
/* DYNAMIC_SLOTS */
|
|
663
|
-
)) : Y("v-if", !0)]),
|
|
664
|
-
_: 1
|
|
665
|
-
/* STABLE */
|
|
666
|
-
},
|
|
667
|
-
512
|
|
668
|
-
/* NEED_PATCH */
|
|
669
|
-
), n(
|
|
670
|
-
je,
|
|
671
|
-
{
|
|
672
|
-
ref_key: "drawerRoleRef",
|
|
673
|
-
ref: T,
|
|
674
|
-
onSubmit: u[1] || (u[1] = (S) => F())
|
|
675
|
-
},
|
|
676
|
-
null,
|
|
677
|
-
512
|
|
678
|
-
/* NEED_PATCH */
|
|
679
|
-
)]);
|
|
680
|
-
};
|
|
681
|
-
}
|
|
682
|
-
});
|
|
683
|
-
export {
|
|
684
|
-
rt as default
|
|
685
|
-
};
|