@pubinfo/module-rbac 2.0.0-beta.3 → 2.0.0-beta.4
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 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("ant-design-vue/es"),q=require("pubinfo"),O=require("@ant-design/icons-vue"),e=require("vue"),N=require("./request-DML6P6cf.cjs"),M=require("@pubinfo/pro-components"),L=require("ant-design-vue"),$=require("./index-BOdrElTX.cjs"),U=require("vue-router");function j(s,m){return N.basic.Post("/blackWhiteList/addBlackWhiteList",s,{headers:{"Content-Type":"application/json"},...m||{}})}function F(s,m){const{id:_,...x}=s;return N.basic.Get(`/blackWhiteList/delete/${_}`,{params:{...x}})}function z(s,m){return N.basic.Post("/blackWhiteList/getBlackWhiteListPageList",s,{headers:{"Content-Type":"application/json"}})}function A(s,m){return N.basic.Post("/blackWhiteList/updateBlackWhiteList",s,{headers:{"Content-Type":"application/json"},...m||{}})}const G=e.defineComponent({name:"DrawerBlackWhiteList",__name:"drawerBlackWhiteList",props:{type:{}},emits:["submit"],setup(s,{expose:m,emit:_}){const x=s,v=_,V={ip:[{required:!0,validator:P,trigger:["blur","change"]}],enable:[{required:!0,message:"请选择是否开启",trigger:["blur","change"]}]},g=e.ref(""),[y,B]=$.useToggle(!1),D=e.ref(),I={enable:!0},r=e.ref({}),b=e.ref(!1);function P(h,n,c){n?/^(25[0-5]|2[0-4]\d|[01]?\d{1,2})\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})$/.test(n)?c():c(new Error("ip地址格式不正确")):c(new Error("请输入ip地址"))}async function R(h,n,c){g.value=h,B(!0),n?(b.value=!0,r.value={...c??{}}):(b.value=!1,r.value={...I})}const[S,w]=$.useToggle(!1);function W(){var h;(h=D.value)==null||h.validate().then(()=>{w(!0);const n=b.value?A:j,c={...r.value,type:x.type};n(c).then(t=>{t.success&&(L.message.success(`${g.value}成功!`),B(!1),v("submit"))}).finally(()=>w(!1))})}function k(){B(!1)}return m({open:R}),(h,n)=>{const c=f.Input,t=f.FormItem,a=f.Switch,o=f.Textarea,C=f.Form,p=f.Button,E=f.Space,u=f.Drawer;return e.openBlock(),e.createBlock(u,{open:e.unref(y),"onUpdate:open":n[4]||(n[4]=l=>e.isRef(y)?y.value=l:null),title:`${e.unref(g)}信息`,placement:"right",width:600,"destroy-on-close":"","footer-style":{textAlign:"right"},onClose:k},{footer:e.withCtx(()=>[e.createVNode(E,null,{default:e.withCtx(()=>[e.createVNode(p,{onClick:k},{default:e.withCtx(()=>n[5]||(n[5]=[e.createTextVNode(" 取消 ")])),_:1}),e.createVNode(p,{type:"primary",loading:e.unref(S),onClick:n[3]||(n[3]=l=>W())},{default:e.withCtx(()=>n[6]||(n[6]=[e.createTextVNode(" 提交 ")])),_:1},8,["loading"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(C,{ref_key:"formRef",ref:D,model:e.unref(r),rules:V,"label-col":{span:4}},{default:e.withCtx(()=>[e.createVNode(t,{label:"来源ip地址",name:"ip"},{default:e.withCtx(()=>[e.createVNode(c,{value:e.unref(r).ip,"onUpdate:value":n[0]||(n[0]=l=>e.unref(r).ip=l),maxlength:20},null,8,["value"])]),_:1}),e.createVNode(t,{label:"状态",name:"enable"},{default:e.withCtx(()=>[e.createVNode(a,{checked:e.unref(r).enable,"onUpdate:checked":n[1]||(n[1]=l=>e.unref(r).enable=l)},null,8,["checked"])]),_:1}),e.createVNode(t,{label:"描述",name:"description"},{default:e.withCtx(()=>[e.createVNode(o,{value:e.unref(r).description,"onUpdate:value":n[2]||(n[2]=l=>e.unref(r).description=l),rows:3,"show-count":"",maxlength:200},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1},8,["open","title"])}}});var i=(s=>(s.ADD="新增",s.EDIT="编辑",s.REMOVE="删除",s.ENABLE="启用",s.DISABLE="停用",s))(i||{});const K={"w-full":"","h-full":"","py-10px":"","px-10px":"",flex:"","flex-col":"",class:"page-black-white-list"},H={key:0,class:"flex items-center"},J={class:"ml-4px"},Q=["onClick"],X={class:"ml-4px"},Y=["onClick"],Z={class:"ml-4px"},ee=["onClick"],te={class:"ml-4px"},ne=["onClick"],ae={class:"ml-4px"},se=e.defineComponent({name:"BlackWhiteList",__name:"index",setup(s){const m=U.useRoute(),_=e.ref(m.meta.type==="black"),x=e.computed(()=>_.value?0:1),v=e.computed(()=>_.value?"blacklist":"whitelist"),V=e.computed(()=>`${v.value}_add`),g=e.computed(()=>`${v.value}_edit`),y=e.computed(()=>`${v.value}_delete`),B=e.computed(()=>`${v.value}_enable`),D=e.computed(()=>`${v.value}_disable`),{auth:I}=q.useAuth(),r=e.ref(),b=e.ref(),R=[{valueType:"a-input",minWidth:60,hideInTable:!1,title:"IP地址",dataIndex:"ip",fieldProps:{placeholder:"请输入",allowClear:!0}},{hideInSearch:!0,minWidth:200,title:"描述",dataIndex:"description",ellipsis:!0},{valueType:"a-select",minWidth:100,title:"状态",dataIndex:"enable",fieldProps:{placeholder:"请选择",allowClear:!0,options:[{label:"启用",value:1},{label:"停用",value:0}]},ellipsis:!0},{hideInSearch:!0,title:"操作",dataIndex:"action",width:200,fixed:"right",hideInTable(){return!I([V.value,g.value,y.value,B.value,D.value])}}];async function S(t){var l,d;const{current:a,pageSize:o,ip:C,enable:p}=t,E={ip:C,pageSize:o,currentPage:a,doSearchTotal:!0,type:x.value};p!==void 0&&(E.enable=p);const u=await z(E);return{success:u.success,data:((l=u.data)==null?void 0:l.records)??[],total:((d=u.data)==null?void 0:d.total)??0}}function w(){r.value.reload()}const[W,k]=$.useToggle(!1);function h(t,a){L.Modal.confirm({title:"删除",content:`确定要删除该条${t}数据吗?`,async onOk(){k(!0),F({id:a==null?void 0:a.id}).then(o=>{o.success&&(L.message.success("删除成功"),w())}).finally(()=>k(!1))}})}function n(t){k(!0),A({id:t==null?void 0:t.id,enable:!(t!=null&&t.enable)}).then(a=>{if(a.success){let o="";t!=null&&t.enable?o="停用成功!":o="启用成功!",L.message.success(o),w()}}).finally(()=>k(!1))}function c(t,a){if(W.value)return;let o="";switch(_.value?o="黑名单":o="白名单",t){case i.ADD:b.value.open(t+o,!1);break;case i.EDIT:b.value.open(t+o,!0,a);break;case i.REMOVE:h(o,a);break;case i.ENABLE:case i.DISABLE:n(a);break}}return(t,a)=>{const o=O.PlusCircleOutlined,C=f.Button,p=q.PubinfoIcon,E=f.Space,u=e.resolveDirective("auth");return e.openBlock(),e.createElementBlock("div",K,[e.createVNode(e.unref(M.ProTable),{ref_key:"tableRef",ref:r,"row-key":"id",request:S,columns:R,"auto-height":"",scroll:{x:1e3}},{toolbar:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock(C,{type:"primary",onClick:a[0]||(a[0]=l=>c(e.unref(i).ADD))},{default:e.withCtx(()=>[e.createVNode(o),e.createTextVNode(" "+e.toDisplayString(e.unref(i).ADD),1)]),_:1})),[[u,e.unref(V)]])]),bodyCell:e.withCtx(({column:l,record:d})=>[l.dataIndex==="enable"?(e.openBlock(),e.createElementBlock("div",H,[e.createElementVNode("i",{class:e.normalizeClass(["status-mark",[{active:d.enable}]])},null,2),e.createElementVNode("span",J,e.toDisplayString(d.enable?"启用":"停用"),1)])):e.createCommentVNode("v-if",!0),l.dataIndex==="action"?(e.openBlock(),e.createBlock(E,{key:1},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",{class:"flex items-center hover:opacity-80",onClick:T=>c(e.unref(i).EDIT,d)},[e.createVNode(p,{name:"edit",class:"text-base"}),e.createElementVNode("span",X,e.toDisplayString(e.unref(i).EDIT),1)],8,Q)),[[u,e.unref(g)]]),e.withDirectives((e.openBlock(),e.createElementBlock("a",{flex:"","items-center":"","text-red-500":"","hover:cursor-pointer":"","hover:text-red-500":"","hover:opacity-80":"",onClick:T=>c(e.unref(i).REMOVE,d)},[e.createVNode(p,{name:"remove",class:"text-base"}),e.createElementVNode("span",Z,e.toDisplayString(e.unref(i).REMOVE),1)],8,Y)),[[u,e.unref(y)]]),d.enable?e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:0,flex:"","items-center":"",class:"text-#1D2129","hover:cursor-pointer":"","hover:opacity-80":"",onClick:T=>c(e.unref(i).DISABLE,d)},[e.createVNode(p,{name:"blacklist-disable",class:"text-20px"}),e.createElementVNode("span",te,e.toDisplayString(e.unref(i).DISABLE),1)],8,ee)),[[u,e.unref(D)]]):e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:1,class:"flex items-center",onClick:T=>c(e.unref(i).ENABLE,d)},[e.createVNode(p,{name:"blacklist-enable",class:"text-20px"}),e.createElementVNode("span",ae,e.toDisplayString(e.unref(i).ENABLE),1)],8,ne)),[[u,e.unref(B)]])]),_:2},1024)):e.createCommentVNode("v-if",!0)]),_:1},512),e.createVNode(G,{ref_key:"drawerRef",ref:b,type:e.unref(x),onSubmit:a[1]||(a[1]=l=>w())},null,8,["type"])])}}});exports.default=se;
|