@pubinfo/module-rbac 2.0.0-beta.3 → 2.0.0-beta.5
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/es/OrgSelector.vue_vue_type_script_setup_true_lang-DV8KkpJD.js +567 -0
- package/es/_baseClone-GtUoMmZh.js +191 -0
- package/es/_commonjsHelpers-C6fGbg64.js +6 -0
- package/es/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/es/animation_item.vue_vue_type_script_setup_true_lang-CNTrygHf.js +4864 -0
- package/es/api/modules/assist/gonggaofuwu.d.ts +43 -0
- package/es/api/modules/assist/index.d.ts +3 -0
- package/es/api/modules/assist/qunzujiekou.d.ts +36 -0
- package/es/api/modules/assist/quyujiekou.d.ts +36 -0
- package/es/api/modules/configData/heibaimingdanfuwu.d.ts +36 -0
- package/es/api/modules/configData/index.d.ts +3 -0
- package/es/api/modules/configData/xitongpeizhifuwu.d.ts +99 -0
- package/es/api/modules/configData/zidianfuwu.d.ts +57 -0
- package/es/api/modules/log/caozuorizhifuwu.d.ts +15 -0
- package/es/api/modules/log/denglurizhifuwu.d.ts +15 -0
- package/es/api/modules/log/index.d.ts +2 -0
- package/es/api/modules/rbac/gangweijiekou.d.ts +36 -0
- package/es/api/modules/rbac/index.d.ts +11 -0
- package/es/api/modules/rbac/jiaosejiekou.d.ts +50 -0
- package/es/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +43 -0
- package/es/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +64 -0
- package/es/api/modules/rbac/yonghujiekou.d.ts +85 -0
- package/es/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +36 -0
- package/es/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +29 -0
- package/es/api/modules/rbac/ziyuanjiekou.d.ts +85 -0
- package/es/api/modules/rbac/zuhuguanlijiekou.d.ts +36 -0
- package/es/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +29 -0
- package/es/api/modules/rbac/zuzhijiekou.d.ts +64 -0
- package/es/api/request.d.ts +1 -0
- package/es/browserType.vue_vue_type_script_setup_true_lang-Cv8wph6G.js +38 -0
- package/es/cloneDeep-DWP4OxCI.js +8 -0
- package/es/components/GroupSelector/index.vue.d.ts +20 -0
- package/es/components/OrgTree/index.vue.d.ts +5 -0
- package/es/components/OrgUserSelector/OrgSelector.vue.d.ts +68 -0
- package/es/components/OrgUserSelector/UserSelector.vue.d.ts +72 -0
- package/es/components/OrgUserSelector/index.d.ts +8 -0
- package/es/components/OrgUserSelector/provider.d.ts +24 -0
- package/es/components/ResourceSelector/enum.d.ts +5 -0
- package/es/components/ResourceSelector/hooks/useAppAndResource.d.ts +29 -0
- package/es/components/ResourceSelector/index.vue.d.ts +26 -0
- package/es/composables/useLottie.d.ts +11 -0
- package/es/enum-BEHz_Q18.js +74 -0
- package/es/enum-C9ihxJe7.js +4 -0
- package/es/enum-CTUzwCYG.js +4 -0
- package/es/enum-DDKThkSw.js +24 -0
- package/es/gangweijiekou-BxJq_m0o.js +46 -0
- package/es/index-BDrI8Oyk.js +685 -0
- package/es/index-BIfx_Xrr.js +303 -0
- package/es/index-Bl4v-7On.js +125 -0
- package/es/index-BsoyF96V.js +131 -0
- package/es/index-Bz9QeL8M.js +399 -0
- package/es/index-C2dINi50.js +634 -0
- package/es/index-C7QJHUwa.js +30 -0
- package/es/index-CBMCWEIQ.js +274 -0
- package/es/index-CDHVSKIo.js +18588 -0
- package/es/index-CFPhIFyG.js +140 -0
- package/es/index-CYt7363u.js +874 -0
- package/es/index-CgiGLpzT.js +317 -0
- package/es/index-CsHj-xDw.js +283 -0
- package/es/index-D5T_4btx.js +862 -0
- package/es/index-DY1mOFzi.js +455 -0
- package/es/index-DcvR6q4y.js +1246 -0
- package/es/index-DuVeXn9R.js +409 -0
- package/es/index-Dvq9O5uC.js +164 -0
- package/es/index-F-kmM1iD.js +181 -0
- package/es/index-Gw-_3-qN.js +785 -0
- package/es/index-JFZ3GtN-.js +1631 -0
- package/es/index-U-g1yyH-.js +703 -0
- package/es/index-gCLgMcJu.js +462 -0
- package/es/index-gHIfcbvd.js +168 -0
- package/es/index-kFyBHYs8.js +389 -0
- package/es/index-uSBZoA3n.js +177 -0
- package/es/index.d.ts +7 -0
- package/es/index.js +6 -0
- package/es/interface.d.ts +47 -0
- package/es/itemlist-BRhA5jzY.js +369 -0
- package/es/jiaosejiekou-BfY4h7uI.js +58 -0
- package/es/login_history-CuQv9Iw3.js +430 -0
- package/es/operate_history-CGP-1Xy2.js +468 -0
- package/es/pubJiaosezukongzhiqi-CvYfc8Uz.js +57 -0
- package/es/request-DQLgc7lT.js +5 -0
- package/es/routes/index.d.ts +14 -0
- package/es/routes/modules/authority.manage.menu.d.ts +3 -0
- package/es/routes/modules/log.manage.menu.d.ts +3 -0
- package/es/routes/modules/safe.manage.menu.d.ts +3 -0
- package/es/routes/modules/stylesetting.manage.menu.d.ts +3 -0
- package/es/routes/modules/system.manage.menu.d.ts +3 -0
- package/es/setItem-C1_olVDY.js +152 -0
- package/es/shujuquanxianzhubiaokongzhiqi-DyNgf1y6.js +65 -0
- package/es/stores/index.d.ts +1 -0
- package/es/style.css +1 -0
- package/es/useAppAndResource-D_b19V4t.js +55 -0
- package/es/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +14 -0
- package/es/views/blackWhiteList/enum.d.ts +7 -0
- package/es/views/blackWhiteList/index.vue.d.ts +1535 -0
- package/es/views/blackWhiteList/types.d.ts +4 -0
- package/es/views/breadcrumb_setting/animationData.d.ts +7 -0
- package/es/views/breadcrumb_setting/index.vue.d.ts +2 -0
- package/es/views/components/HCheckList.vue.d.ts +20 -0
- package/es/views/components/animation_item.vue.d.ts +14 -0
- package/es/views/components/setItem.vue.d.ts +61 -0
- package/es/views/data-permission/enum.d.ts +34 -0
- package/es/views/dictionary/components/drawerDictionary.vue.d.ts +12 -0
- package/es/views/dictionary/components/drawerDictionaryItem.vue.d.ts +12 -0
- package/es/views/dictionary/enum.d.ts +8 -0
- package/es/views/dictionary/index.vue.d.ts +1532 -0
- package/es/views/dictionary/itemlist.vue.d.ts +1532 -0
- package/es/views/group/components/drawerGroup.vue.d.ts +12 -0
- package/es/views/group/enum.d.ts +21 -0
- package/es/views/group/index.vue.d.ts +1532 -0
- package/es/views/layout_setting/index.vue.d.ts +2 -0
- package/es/views/log_center/components/browserType.vue.d.ts +12 -0
- package/es/views/log_center/components/loginHistoryDetail.vue.d.ts +14 -0
- package/es/views/log_center/components/operateHistoryDetail.vue.d.ts +14 -0
- package/es/views/log_center/login_history.vue.d.ts +1511 -0
- package/es/views/log_center/operate_history.vue.d.ts +1511 -0
- package/es/views/menu_setting/animationData.d.ts +13 -0
- package/es/views/menu_setting/index.vue.d.ts +2 -0
- package/es/views/organization/components/drawerOrganization.vue.d.ts +12 -0
- package/es/views/organization/components/drawerRole.vue.d.ts +36 -0
- package/es/views/organization/components/roleSelect.vue.d.ts +14 -0
- package/es/views/organization/enum.d.ts +25 -0
- package/es/views/organization/index.vue.d.ts +73 -0
- package/es/views/other_setting/animationData.d.ts +7 -0
- package/es/views/other_setting/index.vue.d.ts +2 -0
- package/es/views/other_setting/interface.d.ts +23 -0
- package/es/views/page_animation_setting/animationData.d.ts +11 -0
- package/es/views/page_animation_setting/index.vue.d.ts +2 -0
- package/es/views/page_w_setting/index.vue.d.ts +2 -0
- package/es/views/position/components/drawerPosition.vue.d.ts +12 -0
- package/es/views/position/enum.d.ts +8 -0
- package/es/views/position/index.vue.d.ts +1532 -0
- package/es/views/region/components/drawerRegion.vue.d.ts +12 -0
- package/es/views/region/enum.d.ts +22 -0
- package/es/views/region/index.vue.d.ts +1533 -0
- package/es/views/resource/components/ResourceEdit.vue.d.ts +16 -0
- package/es/views/resource/components/RoleRelation.vue.d.ts +6 -0
- package/es/views/resource/enum.d.ts +30 -0
- package/es/views/resource/index.vue.d.ts +1549 -0
- package/es/views/resource/interface.d.ts +6 -0
- package/es/views/role/components/ResourceRelation.vue.d.ts +1515 -0
- package/es/views/role/enum.d.ts +25 -0
- package/es/views/role/interface.d.ts +6 -0
- package/es/views/role_group/components/drawerRole.vue.d.ts +37 -0
- package/es/views/role_group/components/roleSelect.vue.d.ts +14 -0
- package/es/views/role_group/enum.d.ts +21 -0
- package/es/views/role_group/index.vue.d.ts +1557 -0
- package/es/views/role_group/interface.d.ts +6 -0
- package/es/views/safe_setting/index.vue.d.ts +4 -0
- package/es/views/tabbar_setting/animationData.d.ts +11 -0
- package/es/views/tabbar_setting/index.vue.d.ts +2 -0
- package/es/views/tenant/interface.d.ts +6 -0
- package/es/views/theme_setting/index.vue.d.ts +2 -0
- package/es/views/toolbar_setting/animationData.d.ts +17 -0
- package/es/views/toolbar_setting/index.vue.d.ts +2 -0
- package/es/views/user/components/UserAuthorization.vue.d.ts +39 -0
- package/es/views/user/components/UserEdit.vue.d.ts +16 -0
- package/es/views/user/components/roleSelect.vue.d.ts +14 -0
- package/es/views/user/enum.d.ts +13 -0
- package/es/views/user/index.vue.d.ts +1586 -0
- package/es/views/user/interface.d.ts +40 -0
- package/es/views/watermark_setting/animationData.d.ts +3 -0
- package/es/views/watermark_setting/index.vue.d.ts +31 -0
- package/es/xitongpeizhifuwu-C1Vm-W1B.js +23 -0
- package/es/zidianfuwu-yCWHhOfO.js +65 -0
- package/es/ziyuanjiekou-DhrAbneq.js +69 -0
- package/es/zuzhijiaosebiaokongzhiqi-B1g74RqL.js +28 -0
- package/es/zuzhijiekou-PeZuFtCO.js +85 -0
- package/lib/OrgSelector.vue_vue_type_script_setup_true_lang-BI6dIQO9.cjs +1 -0
- package/lib/_baseClone-bvg2h-nB.cjs +1 -0
- package/lib/_commonjsHelpers-DwGv2jUC.cjs +1 -0
- package/lib/_plugin-vue_export-helper-BHFhmbuH.cjs +1 -0
- package/lib/animation_item.vue_vue_type_script_setup_true_lang-DJntALjR.cjs +9 -0
- package/lib/api/modules/assist/gonggaofuwu.d.ts +43 -0
- package/lib/api/modules/assist/index.d.ts +3 -0
- package/lib/api/modules/assist/qunzujiekou.d.ts +36 -0
- package/lib/api/modules/assist/quyujiekou.d.ts +36 -0
- package/lib/api/modules/configData/heibaimingdanfuwu.d.ts +36 -0
- package/lib/api/modules/configData/index.d.ts +3 -0
- package/lib/api/modules/configData/xitongpeizhifuwu.d.ts +99 -0
- package/lib/api/modules/configData/zidianfuwu.d.ts +57 -0
- package/lib/api/modules/log/caozuorizhifuwu.d.ts +15 -0
- package/lib/api/modules/log/denglurizhifuwu.d.ts +15 -0
- package/lib/api/modules/log/index.d.ts +2 -0
- package/lib/api/modules/rbac/gangweijiekou.d.ts +36 -0
- package/lib/api/modules/rbac/index.d.ts +11 -0
- package/lib/api/modules/rbac/jiaosejiekou.d.ts +50 -0
- package/lib/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +43 -0
- package/lib/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +64 -0
- package/lib/api/modules/rbac/yonghujiekou.d.ts +85 -0
- package/lib/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +36 -0
- package/lib/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +29 -0
- package/lib/api/modules/rbac/ziyuanjiekou.d.ts +85 -0
- package/lib/api/modules/rbac/zuhuguanlijiekou.d.ts +36 -0
- package/lib/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +29 -0
- package/lib/api/modules/rbac/zuzhijiekou.d.ts +64 -0
- package/lib/api/request.d.ts +1 -0
- package/lib/browserType.vue_vue_type_script_setup_true_lang-BuTZw501.cjs +1 -0
- package/lib/cloneDeep-DKvAzXJU.cjs +1 -0
- package/lib/components/GroupSelector/index.vue.d.ts +20 -0
- package/lib/components/OrgTree/index.vue.d.ts +5 -0
- package/lib/components/OrgUserSelector/OrgSelector.vue.d.ts +68 -0
- package/lib/components/OrgUserSelector/UserSelector.vue.d.ts +72 -0
- package/lib/components/OrgUserSelector/index.d.ts +8 -0
- package/lib/components/OrgUserSelector/provider.d.ts +24 -0
- package/lib/components/ResourceSelector/enum.d.ts +5 -0
- package/lib/components/ResourceSelector/hooks/useAppAndResource.d.ts +29 -0
- package/lib/components/ResourceSelector/index.vue.d.ts +26 -0
- package/lib/composables/useLottie.d.ts +11 -0
- package/lib/enum-B-paw5p0.cjs +1 -0
- package/lib/enum-BFYGJ2YJ.cjs +1 -0
- package/lib/enum-BHDP2ejy.cjs +1 -0
- package/lib/enum-OwSMnw51.cjs +1 -0
- package/lib/gangweijiekou-DYYmkjys.cjs +1 -0
- package/lib/index-Apq1nfrg.cjs +1 -0
- package/lib/index-BOdrElTX.cjs +1 -0
- package/lib/index-BdQKw1uE.cjs +1 -0
- package/lib/index-BwkSE-Zz.cjs +1 -0
- package/lib/index-Bx53OKE6.cjs +1 -0
- package/lib/index-C151ukdL.cjs +1 -0
- package/lib/index-C3m3S7_Q.cjs +1 -0
- package/lib/index-CMf8N2mC.cjs +1 -0
- package/lib/index-CNtyqLTX.cjs +1 -0
- package/lib/index-Cm5xLy57.cjs +9 -0
- package/lib/index-D1vGtVqY.cjs +1 -0
- package/lib/index-D2gE9FFs.cjs +1 -0
- package/lib/index-D34uPnyD.cjs +1 -0
- package/lib/index-D7Awj4JU.cjs +1 -0
- package/lib/index-D9QyS2NB.cjs +1 -0
- package/lib/index-D9dMBtdM.cjs +1 -0
- package/lib/index-DBzHTy7k.cjs +1 -0
- package/lib/index-DG9uEqRG.cjs +1 -0
- package/lib/index-DQ8p9Bwg.cjs +1 -0
- package/lib/index-DUagbQoK.cjs +1 -0
- package/lib/index-D_APeiaQ.cjs +1 -0
- package/lib/index-DoCoA6Nr.cjs +1 -0
- package/lib/index-Dv-KtCh8.cjs +1 -0
- package/lib/index-F735VVe_.cjs +1 -0
- package/lib/index-Jc3VoxhA.cjs +1 -0
- package/lib/index-n5tzubbZ.cjs +1 -0
- package/lib/index.cjs +1 -0
- package/lib/index.d.ts +7 -0
- package/lib/interface.d.ts +47 -0
- package/lib/itemlist-BEyAbkw5.cjs +1 -0
- package/lib/jiaosejiekou-BNn96VFQ.cjs +1 -0
- package/lib/login_history-C25qj8eL.cjs +1 -0
- package/lib/operate_history-Bmg66_WI.cjs +1 -0
- package/lib/pubJiaosezukongzhiqi-fVUoXj6y.cjs +1 -0
- package/lib/request-DML6P6cf.cjs +1 -0
- package/lib/routes/index.d.ts +14 -0
- package/lib/routes/modules/authority.manage.menu.d.ts +3 -0
- package/lib/routes/modules/log.manage.menu.d.ts +3 -0
- package/lib/routes/modules/safe.manage.menu.d.ts +3 -0
- package/lib/routes/modules/stylesetting.manage.menu.d.ts +3 -0
- package/lib/routes/modules/system.manage.menu.d.ts +3 -0
- package/lib/setItem-DIzkZHtI.cjs +1 -0
- package/lib/shujuquanxianzhubiaokongzhiqi-C6sd8pC3.cjs +1 -0
- package/lib/stores/index.d.ts +1 -0
- package/lib/style.css +1 -0
- package/lib/useAppAndResource-ChvKK2DZ.cjs +1 -0
- package/lib/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +14 -0
- package/lib/views/blackWhiteList/enum.d.ts +7 -0
- package/lib/views/blackWhiteList/index.vue.d.ts +1535 -0
- package/lib/views/blackWhiteList/types.d.ts +4 -0
- package/lib/views/breadcrumb_setting/animationData.d.ts +7 -0
- package/lib/views/breadcrumb_setting/index.vue.d.ts +2 -0
- package/lib/views/components/HCheckList.vue.d.ts +20 -0
- package/lib/views/components/animation_item.vue.d.ts +14 -0
- package/lib/views/components/setItem.vue.d.ts +61 -0
- package/lib/views/data-permission/enum.d.ts +34 -0
- package/lib/views/dictionary/components/drawerDictionary.vue.d.ts +12 -0
- package/lib/views/dictionary/components/drawerDictionaryItem.vue.d.ts +12 -0
- package/lib/views/dictionary/enum.d.ts +8 -0
- package/lib/views/dictionary/index.vue.d.ts +1532 -0
- package/lib/views/dictionary/itemlist.vue.d.ts +1532 -0
- package/lib/views/group/components/drawerGroup.vue.d.ts +12 -0
- package/lib/views/group/enum.d.ts +21 -0
- package/lib/views/group/index.vue.d.ts +1532 -0
- package/lib/views/layout_setting/index.vue.d.ts +2 -0
- package/lib/views/log_center/components/browserType.vue.d.ts +12 -0
- package/lib/views/log_center/components/loginHistoryDetail.vue.d.ts +14 -0
- package/lib/views/log_center/components/operateHistoryDetail.vue.d.ts +14 -0
- package/lib/views/log_center/login_history.vue.d.ts +1511 -0
- package/lib/views/log_center/operate_history.vue.d.ts +1511 -0
- package/lib/views/menu_setting/animationData.d.ts +13 -0
- package/lib/views/menu_setting/index.vue.d.ts +2 -0
- package/lib/views/organization/components/drawerOrganization.vue.d.ts +12 -0
- package/lib/views/organization/components/drawerRole.vue.d.ts +36 -0
- package/lib/views/organization/components/roleSelect.vue.d.ts +14 -0
- package/lib/views/organization/enum.d.ts +25 -0
- package/lib/views/organization/index.vue.d.ts +73 -0
- package/lib/views/other_setting/animationData.d.ts +7 -0
- package/lib/views/other_setting/index.vue.d.ts +2 -0
- package/lib/views/other_setting/interface.d.ts +23 -0
- package/lib/views/page_animation_setting/animationData.d.ts +11 -0
- package/lib/views/page_animation_setting/index.vue.d.ts +2 -0
- package/lib/views/page_w_setting/index.vue.d.ts +2 -0
- package/lib/views/position/components/drawerPosition.vue.d.ts +12 -0
- package/lib/views/position/enum.d.ts +8 -0
- package/lib/views/position/index.vue.d.ts +1532 -0
- package/lib/views/region/components/drawerRegion.vue.d.ts +12 -0
- package/lib/views/region/enum.d.ts +22 -0
- package/lib/views/region/index.vue.d.ts +1533 -0
- package/lib/views/resource/components/ResourceEdit.vue.d.ts +16 -0
- package/lib/views/resource/components/RoleRelation.vue.d.ts +6 -0
- package/lib/views/resource/enum.d.ts +30 -0
- package/lib/views/resource/index.vue.d.ts +1549 -0
- package/lib/views/resource/interface.d.ts +6 -0
- package/lib/views/role/components/ResourceRelation.vue.d.ts +1515 -0
- package/lib/views/role/enum.d.ts +25 -0
- package/lib/views/role/interface.d.ts +6 -0
- package/lib/views/role_group/components/drawerRole.vue.d.ts +37 -0
- package/lib/views/role_group/components/roleSelect.vue.d.ts +14 -0
- package/lib/views/role_group/enum.d.ts +21 -0
- package/lib/views/role_group/index.vue.d.ts +1557 -0
- package/lib/views/role_group/interface.d.ts +6 -0
- package/lib/views/safe_setting/index.vue.d.ts +4 -0
- package/lib/views/tabbar_setting/animationData.d.ts +11 -0
- package/lib/views/tabbar_setting/index.vue.d.ts +2 -0
- package/lib/views/tenant/interface.d.ts +6 -0
- package/lib/views/theme_setting/index.vue.d.ts +2 -0
- package/lib/views/toolbar_setting/animationData.d.ts +17 -0
- package/lib/views/toolbar_setting/index.vue.d.ts +2 -0
- package/lib/views/user/components/UserAuthorization.vue.d.ts +39 -0
- package/lib/views/user/components/UserEdit.vue.d.ts +16 -0
- package/lib/views/user/components/roleSelect.vue.d.ts +14 -0
- package/lib/views/user/enum.d.ts +13 -0
- package/lib/views/user/index.vue.d.ts +1586 -0
- package/lib/views/user/interface.d.ts +40 -0
- package/lib/views/watermark_setting/animationData.d.ts +3 -0
- package/lib/views/watermark_setting/index.vue.d.ts +31 -0
- package/lib/xitongpeizhifuwu-r-I2Ogxj.cjs +1 -0
- package/lib/zidianfuwu-VChcnkm9.cjs +1 -0
- package/lib/ziyuanjiekou-CvKeunY5.cjs +1 -0
- package/lib/zuzhijiaosebiaokongzhiqi-DYI3Zu-M.cjs +1 -0
- package/lib/zuzhijiekou-CFQtYuGW.cjs +1 -0
- package/package.json +5 -4
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OrgProviderProps, UserProviderProps } from '@pubinfo/headlessui';
|
|
2
|
+
interface ExtraApis {
|
|
3
|
+
/** 回显选中项 */
|
|
4
|
+
getSelectedData?: (items: any[]) => Promise<any[]>;
|
|
5
|
+
/** 添加到最近常用 */
|
|
6
|
+
addRecentlyUsed?: (items: any[]) => Promise<any>;
|
|
7
|
+
}
|
|
8
|
+
type Filter<T = any> = (value: T, index: number) => boolean;
|
|
9
|
+
export declare const orgFieldNames: OrgProviderProps['fieldNames'];
|
|
10
|
+
export declare const userFieldNames: OrgProviderProps['fieldNames'];
|
|
11
|
+
export declare function joinId(orgId?: string, userId?: string): string;
|
|
12
|
+
export declare function resolveId(orgUserId: string): {
|
|
13
|
+
orgId: string;
|
|
14
|
+
userId: string;
|
|
15
|
+
};
|
|
16
|
+
export declare function useOrgAPIs({ auth, filter }: {
|
|
17
|
+
auth?: string;
|
|
18
|
+
filter: Filter;
|
|
19
|
+
}): OrgProviderProps['apis'] & ExtraApis;
|
|
20
|
+
export declare function useUserAPIs({ auth, filter }: {
|
|
21
|
+
auth?: string;
|
|
22
|
+
filter: Filter;
|
|
23
|
+
}): UserProviderProps['apis'] & ExtraApis;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ResourceMode } from '../enum';
|
|
2
|
+
export type TreeNode = API.PubResource & {
|
|
3
|
+
children?: TreeNode[];
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export interface StringMap<T> {
|
|
7
|
+
[key: string]: T;
|
|
8
|
+
}
|
|
9
|
+
export interface SelectedResourceInfo {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
}
|
|
13
|
+
export default function useAppAndResource(mode?: ResourceMode): {
|
|
14
|
+
appList: Ref<API.PubResource[] | {
|
|
15
|
+
label: string | undefined;
|
|
16
|
+
value: string | undefined;
|
|
17
|
+
}[]>;
|
|
18
|
+
resourceModelRef: any;
|
|
19
|
+
treeData: Ref<TreeNode[]>;
|
|
20
|
+
resourceMap: Ref<StringMap<string>>;
|
|
21
|
+
selectedResources: any;
|
|
22
|
+
isDataPermissionMode: any;
|
|
23
|
+
getAppList: () => void;
|
|
24
|
+
updateTreeDataAndResourceMap: (appId: string) => Promise<void>;
|
|
25
|
+
setSelectedResources: (resources: SelectedResourceInfo[]) => void;
|
|
26
|
+
updateSelectedResources: (resourceIds: string[]) => never[] | undefined;
|
|
27
|
+
clearSelectedResources: () => void;
|
|
28
|
+
openResourceModel: (resourceIds: string[]) => void;
|
|
29
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Key } from 'ant-design-vue/es/vc-tree/interface.d';
|
|
2
|
+
import { ResourceMode } from './enum';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
title?: string;
|
|
5
|
+
mode?: ResourceMode;
|
|
6
|
+
};
|
|
7
|
+
interface StringMap<T> {
|
|
8
|
+
[key: string]: T;
|
|
9
|
+
}
|
|
10
|
+
declare function onOpen(ids: Key[], tree: any[], resMap: StringMap<string>): void;
|
|
11
|
+
type __VLS_PublicProps = {
|
|
12
|
+
'open'?: boolean;
|
|
13
|
+
} & __VLS_Props;
|
|
14
|
+
declare const _default: import('../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').DefineComponent<__VLS_PublicProps, {
|
|
15
|
+
open: typeof onOpen;
|
|
16
|
+
}, {}, {}, {}, import('../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').ComponentOptionsMixin, import('../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').ComponentOptionsMixin, {
|
|
17
|
+
select: (...args: any[]) => void;
|
|
18
|
+
"update:open": (value: boolean) => void;
|
|
19
|
+
}, string, import('../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
20
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
title: string;
|
|
24
|
+
mode: ResourceMode;
|
|
25
|
+
}, {}, {}, {}, string, import('../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MaybeRef } from '../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue';
|
|
2
|
+
interface Path {
|
|
3
|
+
lightAnimationData: any;
|
|
4
|
+
darkAnimationData: any;
|
|
5
|
+
}
|
|
6
|
+
export declare function useLottie(DomRef: MaybeRef<Element | null>, themePath: Path): {
|
|
7
|
+
play: () => void;
|
|
8
|
+
stop: () => void;
|
|
9
|
+
destroy: () => void;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
var l = /* @__PURE__ */ ((a) => (a.ADD = "新增", a.EDIT = "编辑", a.VIEW = "查看", a.REMOVE = "删除", a))(l || {}), e = /* @__PURE__ */ ((a) => (a.ALL = "1", a.ONLY_SELF = "2", a.SELF_DEPT_ONLY = "3", a.SELF_DEPT_AND_SUB = "4", a.CUSTOM_DEPT_ONLY = "5", a.CUSTOM_DEPT_AND_SUB = "6", a.CUSTOM_GROUP = "7", a))(e || {});
|
|
2
|
+
const s = {
|
|
3
|
+
1: "查看全部",
|
|
4
|
+
2: "仅看自己",
|
|
5
|
+
3: "仅看所在部门",
|
|
6
|
+
4: "仅看所在部门及子部门",
|
|
7
|
+
6: "自选部门及子部门",
|
|
8
|
+
5: "仅自选部门",
|
|
9
|
+
7: "指定群组"
|
|
10
|
+
}, b = [
|
|
11
|
+
{
|
|
12
|
+
label: "查看全部",
|
|
13
|
+
value: "1"
|
|
14
|
+
/* ALL */
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
label: "仅看自己",
|
|
18
|
+
value: "2"
|
|
19
|
+
/* ONLY_SELF */
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
label: "仅看所在部门",
|
|
23
|
+
value: "3"
|
|
24
|
+
/* SELF_DEPT_ONLY */
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
label: "仅看所在部门及子部门",
|
|
28
|
+
value: "4"
|
|
29
|
+
/* SELF_DEPT_AND_SUB */
|
|
30
|
+
}
|
|
31
|
+
], u = [
|
|
32
|
+
{
|
|
33
|
+
label: "查看全部",
|
|
34
|
+
value: "1"
|
|
35
|
+
/* ALL */
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: "仅看自己",
|
|
39
|
+
value: "2"
|
|
40
|
+
/* ONLY_SELF */
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
label: "仅看所在部门",
|
|
44
|
+
value: "3"
|
|
45
|
+
/* SELF_DEPT_ONLY */
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
label: "仅看所在部门及子部门",
|
|
49
|
+
value: "4"
|
|
50
|
+
/* SELF_DEPT_AND_SUB */
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
label: "自选部门及子部门",
|
|
54
|
+
value: "6"
|
|
55
|
+
/* CUSTOM_DEPT_AND_SUB */
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
label: "仅自选部门",
|
|
59
|
+
value: "5"
|
|
60
|
+
/* CUSTOM_DEPT_ONLY */
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: "指定群组",
|
|
64
|
+
value: "7"
|
|
65
|
+
/* CUSTOM_GROUP */
|
|
66
|
+
}
|
|
67
|
+
];
|
|
68
|
+
export {
|
|
69
|
+
l as A,
|
|
70
|
+
e as D,
|
|
71
|
+
u as a,
|
|
72
|
+
s as b,
|
|
73
|
+
b as d
|
|
74
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var e = /* @__PURE__ */ ((a) => (a.ADD = "新增", a.EDIT = "编辑", a.REMOVE = "删除", a))(e || {});
|
|
2
|
+
const r = [
|
|
3
|
+
{
|
|
4
|
+
label: "本部门",
|
|
5
|
+
value: "1"
|
|
6
|
+
/* OWNER */
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
label: "本部门及子部门",
|
|
10
|
+
value: "2"
|
|
11
|
+
/* PARENT */
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
label: "全部",
|
|
15
|
+
value: "3"
|
|
16
|
+
/* ALL */
|
|
17
|
+
}
|
|
18
|
+
];
|
|
19
|
+
var l = /* @__PURE__ */ ((a) => (a.ORG = "1", a.PER = "2", a))(l || {});
|
|
20
|
+
export {
|
|
21
|
+
e as A,
|
|
22
|
+
l as G,
|
|
23
|
+
r as u
|
|
24
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { b as s } from "./request-DQLgc7lT.js";
|
|
2
|
+
function r(t, a) {
|
|
3
|
+
const { id: e, ...o } = t;
|
|
4
|
+
return s.Delete(
|
|
5
|
+
`/rbac/post/delete/${e}`,
|
|
6
|
+
{},
|
|
7
|
+
{
|
|
8
|
+
params: { ...o }
|
|
9
|
+
}
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
function p(t, a) {
|
|
13
|
+
const { id: e, ...o } = t;
|
|
14
|
+
return s.Get(`/rbac/post/detail/${e}`, {
|
|
15
|
+
params: { ...o }
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function i(t, a) {
|
|
19
|
+
return s.Post("/rbac/post/findPage", t, {
|
|
20
|
+
headers: {
|
|
21
|
+
"Content-Type": "application/json"
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function c(t, a) {
|
|
26
|
+
return s.Get("/rbac/post/list", {
|
|
27
|
+
params: {
|
|
28
|
+
...t
|
|
29
|
+
},
|
|
30
|
+
...a || {}
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function b(t, a) {
|
|
34
|
+
return s.Post("/rbac/post/save", t, {
|
|
35
|
+
headers: {
|
|
36
|
+
"Content-Type": "application/json"
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
p as a,
|
|
42
|
+
i as b,
|
|
43
|
+
r as d,
|
|
44
|
+
c as g,
|
|
45
|
+
b as p
|
|
46
|
+
};
|