@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 @@
|
|
|
1
|
+
"use strict";const n=require("vue");function a(e){return typeof e=="function"?e():n.unref(e)}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function i(e){return n.getCurrentInstance()}function g(e,u=!0,o){i()?n.onMounted(e,o):u?e():n.nextTick(e)}function v(e=!1,u={}){const{truthyValue:o=!0,falsyValue:r=!1}=u,c=n.isRef(e),t=n.ref(e);function l(f){if(arguments.length)return t.value=f,t.value;{const s=a(o);return t.value=t.value===s?a(r):s,t.value}}return c?l:[t,l]}exports.tryOnMounted=g;exports.useToggle=v;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("ant-design-vue/es"),q=require("pubinfo"),G=require("@ant-design/icons-vue"),e=require("vue");require("./request-DML6P6cf.cjs");const N=require("./jiaosejiekou-BNn96VFQ.cjs"),O=require("@pubinfo/pro-components"),I=require("ant-design-vue"),J=require("./useAppAndResource-ChvKK2DZ.cjs"),K=require("./index-D7Awj4JU.cjs"),D=require("./index-BOdrElTX.cjs"),Q=require("./zuzhijiaosebiaokongzhiqi-DYI3Zu-M.cjs"),X=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");var l=(x=>(x.ADD="新增",x.EDIT="修改",x.REMOVE="删除",x.RESOURCE_RELATION="分配查看",x))(l||{});const $=[{label:"仅自己",value:"1"},{label:"全部可见",value:"2"}],Y={class:"pt-10px"},Z={class:"inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]"},ee={key:1,class:"inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]"},te=e.defineComponent({name:"DrawerRole",__name:"drawerRole",emits:["submit"],setup(x,{expose:C,emit:b}){const p=b,{resourceModelRef:h,selectedResources:E,updateTreeDataAndResourceMap:k,setSelectedResources:w,updateSelectedResources:v,clearSelectedResources:i,openResourceModel:r}=J.useAppAndResource(),f={name:[{required:!0,message:"请输入名称",trigger:"change"},{min:2,max:32,message:"角色名称长度不能少于2位,不能超过32位",trigger:"change"}],code:[{required:!0,message:"请输入编号",trigger:"change"},{min:2,max:32,message:"角色编码长度不能少于2位,不能超过32位",trigger:"change"}],viewScope:[{required:!0,message:"请选择可见范围",trigger:"change"}],resourceIds:[{required:!0,validator:u,trigger:["blur","change"]}]};function u(g,n){return n&&n.length>0?Promise.resolve():Promise.reject(new Error("请选择所属资源"))}const o=e.reactive({title:"",type:""}),[d,s]=D.useToggle(!1),_=e.ref(),t=e.ref({enable:!0});async function m(g,n){if(o.title=g,g===l.EDIT){const V=await N.getRbacRoleInfo({id:n==null?void 0:n.id});V.success&&(t.value=V.data??{},await k(""),t.value.resourceIds&&v(t.value.resourceIds))}else t.value={enable:!0},i(),await k("");s(!0)}const[y,B]=D.useToggle(!1);function A(){var n;const g=o.title===l.EDIT?N.postRbacRoleRoleUpdate:N.postRbacRoleAddRole;(n=_.value)==null||n.validate().then(()=>{B(!0);const V={...t.value};g(V).then(R=>{R.success&&(I.message.success(`${o.title}成功!`),s(!1),p("submit"))}).finally(()=>B(!1))})}function T(){t.value={enable:!0},s(!1)}function P(){t.value.resourceIds?r(t.value.resourceIds):r([])}function U(g){t.value.resourceIds=g.map(n=>n.id),w(g)}return C({open:m}),(g,n)=>{const V=c.Input,R=c.FormItem,F=c.Select,M=c.Switch,L=c.Textarea,S=c.Button,W=c.Tooltip,j=c.Form,z=c.Space,H=c.Drawer;return e.openBlock(),e.createBlock(H,{open:e.unref(d),"onUpdate:open":n[6]||(n[6]=a=>e.isRef(d)?d.value=a:null),title:`${e.unref(o).title}角色`,placement:"right",width:600,"destroy-on-close":"","footer-style":{textAlign:"right"},onClose:T},{footer:e.withCtx(()=>[e.createVNode(z,null,{default:e.withCtx(()=>[e.createVNode(S,{onClick:T},{default:e.withCtx(()=>n[8]||(n[8]=[e.createTextVNode(" 取消 ")])),_:1}),e.createVNode(S,{type:"primary",loading:e.unref(y),onClick:n[5]||(n[5]=a=>A())},{default:e.withCtx(()=>n[9]||(n[9]=[e.createTextVNode(" 提交 ")])),_:1},8,["loading"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(j,{ref_key:"formRef",ref:_,model:e.unref(t),rules:f,"label-col":{span:4}},{default:e.withCtx(()=>[e.createVNode(R,{label:"角色名称",name:"name"},{default:e.withCtx(()=>[e.createVNode(V,{value:e.unref(t).name,"onUpdate:value":n[0]||(n[0]=a=>e.unref(t).name=a),maxlength:32},null,8,["value"])]),_:1}),e.createVNode(R,{label:"角色编号",name:"code"},{default:e.withCtx(()=>[e.createVNode(V,{value:e.unref(t).code,"onUpdate:value":n[1]||(n[1]=a=>e.unref(t).code=a),disabled:e.unref(o).title===e.unref(l).EDIT,maxlength:32},null,8,["value","disabled"])]),_:1}),e.createVNode(R,{label:"可见范围",name:"viewScope"},{default:e.withCtx(()=>[e.createVNode(F,{value:e.unref(t).viewScope,"onUpdate:value":n[2]||(n[2]=a=>e.unref(t).viewScope=a),options:e.unref($)},null,8,["value","options"])]),_:1}),e.createVNode(R,{label:"是否启用"},{default:e.withCtx(()=>[e.createVNode(M,{checked:e.unref(t).enable,"onUpdate:checked":n[3]||(n[3]=a=>e.unref(t).enable=a)},null,8,["checked"])]),_:1}),e.createVNode(R,{label:"角色描述"},{default:e.withCtx(()=>[e.createVNode(L,{value:e.unref(t).description,"onUpdate:value":n[4]||(n[4]=a=>e.unref(t).description=a),maxlength:250,"show-count":""},null,8,["value"])]),_:1}),e.createVNode(R,{label:"所属资源",name:"resourceIds"},{default:e.withCtx(()=>[e.createVNode(S,{type:"primary",onClick:P},{default:e.withCtx(()=>n[7]||(n[7]=[e.createTextVNode(" 编辑资源 ")])),_:1}),e.createElementVNode("div",Y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(E),a=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:a},[a.name.length>20?(e.openBlock(),e.createBlock(W,{key:0,title:a.name},{default:e.withCtx(()=>[e.createElementVNode("span",Z,e.toDisplayString(`${a.name.slice(0,20)}...`),1)]),_:2},1032,["title"])):(e.openBlock(),e.createElementBlock("span",ee,e.toDisplayString(a.name),1))],64))),128))])]),_:1})]),_:1},8,["model"]),e.createVNode(K.__unplugin_components_5,{ref_key:"resourceModelRef",ref:h,onSelect:U},null,512)]),_:1},8,["open","title"])}}}),ne={class:"mb-20px p-x-15px"},oe={key:0,class:"flex items-center"},re={class:"mr-4px"},ae=e.defineComponent({name:"ResourceRelation",__name:"ResourceRelation",setup(x,{expose:C}){const b=e.ref(["用户自选角色","组织基础角色"]),p=e.ref(b.value[0]),[h,E]=D.useToggle(!1),k=e.ref(""),w=e.ref();function v(){w.value.fetch()}async function i(u){var m,y;u.pageSize=15,u.roleId=k.value;const{current:o,pageSize:d,...s}=u,t=await(p.value==="用户自选角色"?N.postRbacRoleRoleUserPage:Q.postRbacOrgRoleRoleOrgPage)({currentPage:o,pageSize:d,...s});return{success:t.success,data:((m=t.data)==null?void 0:m.records)??[],total:((y=t.data)==null?void 0:y.total)??0}}const r=e.computed(()=>p.value==="用户自选角色"?[{title:"用户名称",dataIndex:"realName",ellipsis:!0},{title:"组织名称",dataIndex:"orgName",ellipsis:!0}]:[{title:"组织名称",dataIndex:"name",ellipsis:!0}]);function f(u){k.value=u.id||"",E(!0)}return C({open:f}),(u,o)=>{const d=c.Segmented,s=c.Tag,_=c.Drawer;return e.openBlock(),e.createBlock(_,{open:e.unref(h),"onUpdate:open":o[1]||(o[1]=t=>e.isRef(h)?h.value=t:null),title:"分配查看",placement:"right",width:720,"destroy-on-close":"","footer-style":{textAlign:"right"},"body-style":{paddingLeft:0,paddingRight:0}},{default:e.withCtx(()=>[e.createElementVNode("div",ne,[e.createVNode(d,{value:e.unref(p),"onUpdate:value":o[0]||(o[0]=t=>e.isRef(p)?p.value=t:null),block:"",options:e.unref(b),onChange:v},null,8,["value","options"])]),e.createVNode(e.unref(O.ProTable),{ref_key:"protable",ref:w,"row-key":"id",request:i,columns:e.unref(r),search:!1,toolbar:!1,"auto-height":{offset:50}},{bodyCell:e.withCtx(({column:t,record:m})=>[t.dataIndex==="name"?(e.openBlock(),e.createElementBlock("div",oe,[e.createElementVNode("span",re,e.toDisplayString(m.name),1),m.isInherit==="1"?(e.openBlock(),e.createBlock(s,{key:0,color:"processing"},{default:e.withCtx(()=>o[2]||(o[2]=[e.createTextVNode(" 及子组织 ")])),_:1})):e.createCommentVNode("v-if",!0)])):e.createCommentVNode("v-if",!0)]),_:1},8,["columns"])]),_:1},8,["open"])}}}),le=X._export_sfc(ae,[["__scopeId","data-v-11cf8e60"]]),se={"py-10px":"","px-10px":"","w-full":"","h-full":""},ce=["onClick"],ie=["onClick"],ue={class:"ml-4px"},de=["onClick"],pe={class:"ml-4px"},fe=e.defineComponent({name:"Role",__name:"index",setup(x){const{auth:C}=q.useAuth(),b=e.ref(),p=e.ref();function h(){b.value.reload()}async function E(i){var d,s;const{current:r,pageSize:f,...u}=i,o=await N.postRbacRoleRolePage({currentPage:r,pageSize:f,...u});return{success:o.success,data:((d=o.data)==null?void 0:d.records)??[],total:((s=o.data)==null?void 0:s.total)??0}}const k=[{valueType:"a-input",bind:"value",minWidth:200,title:"角色名称",dataIndex:"name",ellipsis:!0,fieldProps:{placeholder:"请输入角色名称",allowClear:!0}},{hideInSearch:!0,minWidth:80,title:"可见范围",dataIndex:"viewScope",customRender:({text:i})=>{var r;return(r=$.find(f=>f.value===i))==null?void 0:r.label}},{hideInSearch:!0,minWidth:80,title:"创建人",dataIndex:"createUserName"},{hideInSearch:!0,minWidth:100,title:"创建部门",dataIndex:"createOrgName"},{hideInSearch:!0,minWidth:100,title:"创建时间",dataIndex:"createTime"},{hideInSearch:!0,minWidth:100,title:"修改时间",dataIndex:"updateTime"},{hideInSearch:!0,minWidth:80,title:"角色状态",dataIndex:"enable",customRender:({text:i})=>i?e.createVNode(I.Badge,{status:"success",text:"正常"},null):e.createVNode(I.Badge,{status:"error",text:"关闭"},null)},{hideInSearch:!0,width:240,title:"操作",dataIndex:"action",fixed:"right",hideInTable(){return!C(["role_resource_relation","role_edit","role_remove"])}}],w=e.ref();function v(i,r){switch(i){case l.RESOURCE_RELATION:w.value.open(r);break;case l.EDIT:p.value.open(i,r);break;case l.ADD:p.value.open(i);break;case l.REMOVE:I.Modal.confirm({title:"删除",content:"确定要删除该角色吗?",onOk(){N.getRbacRoleRoleDelete({id:r==null?void 0:r.id}).then(f=>{f.success&&(I.message.success("删除成功"),h())})}});break}}return(i,r)=>{const f=G.PlusCircleOutlined,u=c.Button,o=q.PubinfoIcon,d=c.Space,s=e.resolveDirective("auth");return e.openBlock(),e.createElementBlock("div",se,[e.createVNode(e.unref(O.ProTable),{ref_key:"tableRef",ref:b,"row-key":"id",request:E,columns:k,"auto-height":"",scroll:{x:1100}},{toolbar:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock(u,{type:"primary",onClick:r[0]||(r[0]=_=>v(e.unref(l).ADD))},{default:e.withCtx(()=>[e.createVNode(f),e.createTextVNode(" "+e.toDisplayString(e.unref(l).ADD),1)]),_:1})),[[s,"role_add"]])]),bodyCell:e.withCtx(({column:_,record:t})=>[_.dataIndex==="action"?(e.openBlock(),e.createBlock(d,{key:0},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",{class:"flex items-center",onClick:m=>v(e.unref(l).RESOURCE_RELATION,t)},[e.createVNode(o,{name:"view",class:"mr-1 text-base"}),e.createElementVNode("span",null,e.toDisplayString(e.unref(l).RESOURCE_RELATION),1)],8,ce)),[[s,"resource_role_relation"]]),e.withDirectives((e.openBlock(),e.createElementBlock("a",{class:"flex items-center",onClick:m=>v(e.unref(l).EDIT,t)},[e.createVNode(o,{name:"edit",class:"text-base"}),e.createElementVNode("span",ue,e.toDisplayString(e.unref(l).EDIT),1)],8,ie)),[[s,"role_edit"]]),e.withDirectives((e.openBlock(),e.createElementBlock("span",{class:"flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",onClick:m=>v(e.unref(l).REMOVE,t)},[e.createVNode(o,{name:"remove",class:"text-base"}),e.createElementVNode("span",pe,e.toDisplayString(e.unref(l).REMOVE),1)],8,de)),[[s,"role_remove"]])]),_:2},1024)):e.createCommentVNode("v-if",!0)]),_:1},512),e.createVNode(te,{ref_key:"drawerRoleRef",ref:p,onSubmit:r[1]||(r[1]=_=>h())},null,512),e.createVNode(le,{ref_key:"relationRef",ref:w},null,512)])}}});exports.default=fe;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("ant-design-vue/es"),N=require("pubinfo"),T=require("@ant-design/icons-vue"),e=require("vue"),k=require("./gangweijiekou-DYYmkjys.cjs");require("./request-DML6P6cf.cjs");const O=require("@pubinfo/pro-components"),w=require("ant-design-vue"),$=require("./zidianfuwu-VChcnkm9.cjs"),I=require("./index-BOdrElTX.cjs");var s=(g=>(g.ADD="新增",g.EDIT="编辑",g.REMOVE="删除",g))(s||{});const M=e.defineComponent({name:"DrawerPosition",__name:"drawerPosition",emits:["submit"],setup(g,{expose:C,emit:V}){const h=V,y={name:[{required:!0,message:"请输入岗位名称",trigger:"blur"},{max:64,message:"长度不能超过64位",trigger:"change"}],code:[{required:!0,message:"请输入岗位编码",trigger:"blur"},{max:32,message:"长度不能超过32位",trigger:"change"}],type:[{required:!0,message:"请选择岗位类别",trigger:["blur","change"]}]},x=e.reactive({title:"",type:""}),[v,m]=I.useToggle(!1),o=e.ref([]);$.getDictItemList({dictCode:"positionType"}).then(i=>{var t;o.value=(t=i.data)==null?void 0:t.map(c=>({label:c.dictLabel,value:c.dictValue}))});const a=e.ref(),n=e.ref({enable:!0});async function d(i,t){if(m(!0),x.title=i,i===s.EDIT){const c=await k.getRbacPostDetailById({id:t==null?void 0:t.id});c.success&&(n.value=c.data??{})}else n.value={enable:!0}}const[l,f]=I.useToggle(!1);function p(){var i;(i=a.value)==null||i.validate().then(()=>{f(!0);const t={...n.value};k.postRbacPostSave(t).then(c=>{c.success&&(w.message.success(`${x.title}成功!`),m(!1),h("submit"))}).finally(()=>f(!1))})}function _(){m(!1),n.value={enable:!0}}return C({open:d}),(i,t)=>{const c=u.Input,b=u.FormItem,E=u.Select,B=u.Textarea,P=u.Switch,S=u.Form,D=u.Button,R=u.Space,q=u.Drawer;return e.openBlock(),e.createBlock(q,{open:e.unref(v),"onUpdate:open":t[6]||(t[6]=r=>e.isRef(v)?v.value=r:null),title:`${e.unref(x).title}岗位`,placement:"right",width:600,"destroy-on-close":"","footer-style":{textAlign:"right"},onClose:_},{footer:e.withCtx(()=>[e.createVNode(R,null,{default:e.withCtx(()=>[e.createVNode(D,{onClick:_},{default:e.withCtx(()=>t[7]||(t[7]=[e.createTextVNode(" 取消 ")])),_:1}),e.createVNode(D,{type:"primary",loading:e.unref(l),onClick:t[5]||(t[5]=r=>p())},{default:e.withCtx(()=>t[8]||(t[8]=[e.createTextVNode(" 提交 ")])),_:1},8,["loading"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(S,{ref_key:"formRef",ref:a,model:e.unref(n),rules:y,"label-col":{span:4},"label-wrap":!0},{default:e.withCtx(()=>[e.createVNode(b,{label:"岗位名称",name:"name"},{default:e.withCtx(()=>[e.createVNode(c,{value:e.unref(n).name,"onUpdate:value":t[0]||(t[0]=r=>e.unref(n).name=r),maxlength:64},null,8,["value"])]),_:1}),e.createVNode(b,{label:"岗位编码",name:"code"},{default:e.withCtx(()=>[e.createVNode(c,{value:e.unref(n).code,"onUpdate:value":t[1]||(t[1]=r=>e.unref(n).code=r),disabled:e.unref(x).title===e.unref(s).EDIT,maxlength:32},null,8,["value","disabled"])]),_:1}),e.createVNode(b,{label:"岗位类别",name:"type"},{default:e.withCtx(()=>[e.createVNode(E,{value:e.unref(n).type,"onUpdate:value":t[2]||(t[2]=r=>e.unref(n).type=r),options:e.unref(o)},null,8,["value","options"])]),_:1}),e.createVNode(b,{label:"描述",name:"description"},{default:e.withCtx(()=>[e.createVNode(B,{value:e.unref(n).description,"onUpdate:value":t[3]||(t[3]=r=>e.unref(n).description=r),rows:3,"show-count":"",maxlength:120},null,8,["value"])]),_:1}),e.createVNode(b,{label:"是否启动",name:"enable"},{default:e.withCtx(()=>[e.createVNode(P,{checked:e.unref(n).enable,"onUpdate:checked":t[4]||(t[4]=r=>e.unref(n).enable=r)},null,8,["checked"])]),_:1})]),_:1},8,["model"])]),_:1},8,["open","title"])}}}),U={"py-10px":"","px-10px":"","w-full":"","h-full":""},A={key:0,class:"flex items-center"},W={class:"ml-4px"},F=["onClick"],L={class:"ml-4px"},j=["onClick"],z={class:"ml-4px"},G=e.defineComponent({name:"PositionManage",__name:"index",setup(g){const{auth:C}=N.useAuth(),V=e.ref(),h=e.ref();function y(){var o;(o=V.value)==null||o.reload()}async function x(o){var f,p;const{current:a,pageSize:n,...d}=o,l=await k.postRbacPostFindPage({currentPage:a,pageSize:n,...d});return{success:l.success,data:((f=l.data)==null?void 0:f.records)??[],total:((p=l.data)==null?void 0:p.total)??0}}const v=[{valueType:"a-input",bind:"value",minWidth:200,title:"岗位名称",dataIndex:"name",ellipsis:!0,fieldProps:{placeholder:"请输入岗位名称",allowClear:!0}},{hideInSearch:!0,minWidth:100,title:"岗位编码",dataIndex:"code",ellipsis:!0},{hideInSearch:!0,minWidth:100,title:"岗位类别",dataIndex:"type",ellipsis:!0},{hideInSearch:!0,minWidth:100,title:"是否启用",dataIndex:"enable",customRender:({text:o})=>o?e.createVNode(w.Badge,{status:"success",text:"启用"},null):e.createVNode(w.Badge,{status:"error",text:"禁用"},null)},{hideInSearch:!0,minWidth:100,title:"描述",dataIndex:"description",ellipsis:!0},{hideInSearch:!0,width:160,title:"操作",dataIndex:"action",fixed:"right",hideInTable(){return!C(["region_add_child","region_edit","region_remove"])}}];function m(o,a){var n,d;switch(o){case s.EDIT:(n=h.value)==null||n.open(o,a);break;case s.ADD:(d=h.value)==null||d.open(o);break;case s.REMOVE:w.Modal.confirm({title:"删除",content:"确定要删除该岗位吗?",onOk(){k.deleteRbacPostDeleteById({id:a==null?void 0:a.id}).then(l=>{l.success&&(w.message.success("删除成功"),y())})}});break}}return(o,a)=>{const n=T.PlusCircleOutlined,d=u.Button,l=N.PubinfoIcon,f=u.Space,p=e.resolveDirective("auth");return e.openBlock(),e.createElementBlock("div",U,[e.createVNode(e.unref(O.ProTable),{ref_key:"tableRef",ref:V,"row-key":"id",request:x,columns:v,"auto-height":"",scroll:{x:1100}},{toolbar:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock(d,{type:"primary",onClick:a[0]||(a[0]=_=>m(e.unref(s).ADD))},{default:e.withCtx(()=>[e.createVNode(n),e.createTextVNode(" "+e.toDisplayString(e.unref(s).ADD),1)]),_:1})),[[p,"position_add"]])]),bodyCell:e.withCtx(({column:_,record:i})=>[_.dataIndex==="type"?(e.openBlock(),e.createElementBlock("div",A,[e.createVNode(l,{name:"icon_position_type",class:"text-20px"}),e.createElementVNode("span",W,e.toDisplayString(i.type),1)])):e.createCommentVNode("v-if",!0),_.dataIndex==="action"?(e.openBlock(),e.createBlock(f,{key:1},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",{class:"flex items-center",onClick:t=>m(e.unref(s).EDIT,i)},[e.createVNode(l,{name:"edit",class:"text-base"}),e.createElementVNode("span",L,e.toDisplayString(e.unref(s).EDIT),1)],8,F)),[[p,"position_edit"]]),e.withDirectives((e.openBlock(),e.createElementBlock("span",{class:"flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",onClick:t=>m(e.unref(s).REMOVE,i)},[e.createVNode(l,{name:"remove",class:"text-base"}),e.createElementVNode("span",z,e.toDisplayString(e.unref(s).REMOVE),1)],8,j)),[[p,"position_remove"]])]),_:2},1024)):e.createCommentVNode("v-if",!0)]),_:1},512),e.createVNode(M,{ref_key:"drawerPositionRef",ref:h,onSubmit:a[1]||(a[1]=_=>y())},null,512)])}}});exports.default=G;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("pubinfo"),e=require("vue");require("./request-DML6P6cf.cjs");const d=require("./xitongpeizhifuwu-r-I2Ogxj.cjs"),p=require("ant-design-vue"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),u={"w-full":"","h-full":"","p-10px":""},f={class:"w-full h-full bg-white overflow-y-auto p-10px flex flex-col box-border dark:bg-[#141414]"},m={class:"bg-[#F0F4FF] h-[38px] pl-[16px] flex flex-row items-center dark:bg-[#32353B]"},g={class:"mt-[15px] flex-1 flex flex-row"},v={class:"flex-auto grid grid-cols-3 gap-[20px] px-30px w-full h-0 max-w-1500px",aspect:"[3/2]"},_=["onClick"],b={class:"text-[#4E5969] text-[14px] dark:text-[#C9CDD4]"},w=e.defineComponent({name:"PageWSetting",__name:"index",setup(k){const i=l.useSettingsStore(),c=e.ref(i.globalSettings.layout.widthMode),a=e.reactive([{describe:"自适应",active:"adaption",class:"mode-adaption"},{describe:"自适应 (有最小宽度)",active:"adaption-min-width",class:"mode-adaption-min-width"},{describe:"定宽居中",active:"center",class:"mode-center"},{describe:"定宽居中 (有最大宽度)",active:"center-max-width",class:"mode-center-max-width"}]);function r(o){if(o){c.value=o,i.globalSettings.layout.widthMode=o;const t=JSON.stringify({layout:{widthMode:o}});d.postSysconfigAddOrEidtSysThemeStyleConfig({content:t}).then(s=>{s.success&&p.message.success("设置成功")})}}return(o,t)=>{const s=l.PubinfoIcon;return e.openBlock(),e.createElementBlock("div",u,[e.createElementVNode("div",f,[e.createElementVNode("div",m,[e.createVNode(s,{name:"icon_page_size",class:"text-base mr-[6px]",size:22}),t[0]||(t[0]=e.createElementVNode("span",{class:"text-[16px] text-[#1d2129] dark:text-[#C9CDD4]"},"页宽模式",-1))]),e.createElementVNode("div",g,[t[3]||(t[3]=e.createElementVNode("div",{class:"flex-none w-[110px] text-right font-400 text-[#4e5969] text-[14px] pt-10px dark:text-[#C9CDD4]"}," 模式选择 ",-1)),e.createElementVNode("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),n=>(e.openBlock(),e.createElementBlock("div",{key:n.active,class:e.normalizeClass(["item dark:bg-[#3A3E43]",[e.unref(c)===n.active?"active":"",`item-${n.active}`]]),aspect:"[9/6]",onClick:y=>r(n.active)},[e.createElementVNode("div",b,e.toDisplayString(n.describe),1),t[1]||(t[1]=e.createElementVNode("div",{class:"my-12px w-48px h-32px mode"},null,-1)),t[2]||(t[2]=e.createElementVNode("div",{class:"flex-1 w-[75%] rounded-[8px] jb py-[10px] flex justify-center"},[e.createElementVNode("div",{class:"layout-demo"})],-1))],10,_))),128))])])])])}}}),h=x._export_sfc(w,[["__scopeId","data-v-d213ef77"]]);exports.default=h;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("ant-design-vue/es"),e=require("vue");require("./request-DML6P6cf.cjs");const w=require("./xitongpeizhifuwu-r-I2Ogxj.cjs"),_=require("ant-design-vue"),S=require("pubinfo"),M=require("./index-BOdrElTX.cjs"),D={"w-full":"","h-full":"","pt-10px":"","px-10px":"","overflow-auto":""},q={"h-full":"","min-w-1130px":""},j={class:"pt-20px flex flex-col box-border bg-white dark:bg-[#141414] text-[#4e5969] dark:text-[#C9CDD4]"},F={class:"p-16px text-right b-t-1 b-t-style-solid b-t-color-[#e5e6eb] dark:b-t-color-[#424242]"},U={class:"mt-10px bg-white dark:bg-[#141414] text-[#4e5969] dark:text-[#C9CDD4]"},I=e.defineComponent({__name:"index",setup(L){const b={blackWhiteListMode:[{required:!0,message:"请选择黑白名单模式",trigger:"change"}],lockEnable:[{required:!0,message:"请选择密码错误后是否锁定账号",trigger:"change"}],lockMinutes:[{required:!0,validator:N,trigger:"change"}],allowFailCounts:[{required:!0,validator:C,trigger:"change"}],defaultPassword:[{required:!0,validator:h,trigger:"change"}],expireDays:[{required:!0,validator:V,trigger:"change"}],forceChangeInitPwd:[{required:!0,message:"请选择是否开启强制修改初始化密码",trigger:"change"}]},g=e.ref(),v={style:{width:"240px"}},k={span:9},x=[{label:"无模式",value:"0"},{label:"黑名单模式",value:"1"},{label:"白名单模式",value:"2"}],o=e.reactive({blackWhiteListMode:"0",lockEnable:!0,allowFailCounts:5,lockMinutes:10,defaultPassword:"",expireDays:30,forceChangeInitPwd:!0}),c=e.ref(!1);e.onMounted(y);async function N(a,t){return o.lockEnable&&!t?Promise.reject(new Error("请输入锁定分钟数")):Number.isNaN(+t)||+t<1||+t>360?Promise.reject(new Error("锁定分钟数应为[1~360]之间的正整数")):Promise.resolve()}async function C(a,t){return o.lockEnable&&!t?Promise.reject(new Error("请输入允许密码连续错误次数")):Number.isNaN(+t)||+t<1||+t>20?Promise.reject(new Error("允许密码连续错误次数应为[1~20]之间的正整数")):Promise.resolve()}async function V(a,t){return o.lockEnable&&!t?Promise.reject(new Error("请输入密码过期天数")):Number.isNaN(+t)||+t<30||+t>360?Promise.reject(new Error("密码过期天数应为[30~360]之间的正整数")):Promise.resolve()}async function h(a,t){return t?c.value?Promise.resolve():Promise.reject(new Error("密码规则校验不通过")):Promise.reject(new Error("请输入默认密码"))}function y(){w.getSysconfigGetSysSecurityConfig().then(a=>{a&&a.data&&a.data.content&&a.success&&Object.assign(o,JSON.parse(a.data.content))})}const[E,f]=M.useToggle(!1);async function P(){var a;if(!E.value){f(!0);try{await((a=g.value)==null?void 0:a.validate());const{blackWhiteListMode:t,lockEnable:s,allowFailCounts:l,lockMinutes:d,defaultPassword:n,expireDays:m,forceChangeInitPwd:p}=o,u={blackWhiteListMode:t,lockEnable:s,defaultPassword:n,expireDays:m,forceChangeInitPwd:p};s&&Object.assign(u,{allowFailCounts:l,lockMinutes:d}),await w.postSysconfigEditSysSecurityConfig({content:JSON.stringify(u)}),f(!1),_.message.success("配置更改成功")}catch{f(!1)}}}return(a,t)=>{const s=i.Select,l=i.FormItem,d=i.Switch,n=i.Input,m=i.Button,p=i.Form,u=e.resolveDirective("auth");return e.openBlock(),e.createElementBlock("div",D,[e.createElementVNode("div",q,[e.createElementVNode("div",j,[e.createVNode(p,{ref_key:"formRef",ref:g,model:o,rules:b,"label-col":v,"wrapper-col":k,class:"safe-rule-form"},{default:e.withCtx(()=>[e.createVNode(l,{label:"黑白名单模式",name:"blackWhiteListMode"},{default:e.withCtx(()=>[e.createVNode(s,{value:o.blackWhiteListMode,"onUpdate:value":t[0]||(t[0]=r=>o.blackWhiteListMode=r),placeholder:"请选择",options:x},null,8,["value"])]),_:1}),e.createVNode(l,{label:"是否开启密码错误后锁定账号",name:"lockEnable"},{default:e.withCtx(()=>[e.createVNode(d,{checked:o.lockEnable,"onUpdate:checked":t[1]||(t[1]=r=>o.lockEnable=r)},null,8,["checked"])]),_:1}),e.createCommentVNode(" 应该用formState.lockEnable 但会导致formRef.value.validate不存在 "),o.lockEnable?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createCommentVNode(' v-if="formState.lockEnable" key="allowFailCounts" 或 v-show '),e.createVNode(l,{label:"允许密码连续错误次数",name:"allowFailCounts"},{default:e.withCtx(()=>[e.createVNode(n,{value:o.allowFailCounts,"onUpdate:value":t[2]||(t[2]=r=>o.allowFailCounts=r),"mr-12px":""},null,8,["value"]),t[9]||(t[9]=e.createTextVNode("次 "))]),_:1}),e.createCommentVNode(' v-if="formState.lockEnable" key="lockMinutes" 或 v-show '),e.createVNode(l,{label:"锁定多少分钟",name:"lockMinutes"},{default:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(n,{value:o.lockMinutes,"onUpdate:value":t[3]||(t[3]=r=>o.lockMinutes=r),"mr-12px":""},null,8,["value"]),t[10]||(t[10]=e.createTextVNode("分钟"))])]),_:1})],64)):e.createCommentVNode("v-if",!0),e.createVNode(l,{label:"默认密码设置",name:"defaultPassword"},{default:e.withCtx(()=>[e.createVNode(n,{value:o.defaultPassword,"onUpdate:value":t[4]||(t[4]=r=>o.defaultPassword=r)},null,8,["value"])]),_:1}),e.createVNode(l,{label:"密码过期天数",name:"expireDays"},{default:e.withCtx(()=>[e.createVNode(n,{value:o.expireDays,"onUpdate:value":t[5]||(t[5]=r=>o.expireDays=r),"mr-12px":""},null,8,["value"]),t[11]||(t[11]=e.createTextVNode("天 "))]),_:1}),e.createVNode(l,{label:"是否开启强制修改初始化密码",name:"forceChangeInitPwd"},{default:e.withCtx(()=>[e.createVNode(d,{checked:o.forceChangeInitPwd,"onUpdate:checked":t[6]||(t[6]=r=>o.forceChangeInitPwd=r)},null,8,["checked"])]),_:1}),e.withDirectives((e.openBlock(),e.createElementBlock("div",F,[e.createVNode(m,{type:"primary",onClick:P},{default:e.withCtx(()=>t[12]||(t[12]=[e.createTextVNode(" 更改配置 ")])),_:1})])),[[u,"change_safe_setting"]])]),_:1},8,["model"])]),e.createElementVNode("div",U,[e.createVNode(e.unref(S.PassStrengthValidator),{modelValue:o.defaultPassword,"onUpdate:modelValue":t[7]||(t[7]=r=>o.defaultPassword=r),validate:c.value,"onUpdate:validate":t[8]||(t[8]=r=>c.value=r),vertical:""},null,8,["modelValue","validate"])])])])}}});exports.default=I;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("ant-design-vue/es"),d=require("pubinfo"),e=require("vue");require("./request-DML6P6cf.cjs");const _=require("./xitongpeizhifuwu-r-I2Ogxj.cjs"),E=require("ant-design-vue"),m=require("pubinfo/client"),V=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),N={"w-full":"","h-full":"","p-10px":"","pb-0":""},S={class:"w-full h-full bg-white overflow-y-auto p-10px pb-0 flex flex-col box-border dark:bg-[#141414]"},y={class:"bg-[#F0F4FF] h-[38px] pl-[16px] flex flex-row items-center b-rd-4px dark:bg-[#32353B]"},C={class:"mt-20px flex flex-row items-center"},w={class:"mt-20px pb-24px flex flex-row"},B={class:"flex-none w-[136px] text-right font-400 text-[#4e5969] text-[14px] dark:text-[#C9CDD4]"},T={class:"grid grid-cols-3 gap-x-[32px] gap-y-[16px] ml-16px mr-27px w-full max-w-1400px"},D=["onClick"],q={class:"item-title"},z={class:"text-[#4e5969] text-[14px] dark:text-[#C9CDD4]"},F={class:"item-content"},L={flex:"","items-center":"","justify-center":"",class:"spots-wrap"},j={class:"skeleton"},O={class:"skeleton-body"},I={class:"aside"},P={class:"main"},M={class:"left"},$={class:"right"},A=e.defineComponent({name:"SettingGlobalThemes",__name:"index",setup(H){const{isDark:u}=d.useTheme(),n=d.useSettingsStore(),g=e.computed(()=>n.globalSettings.app.colorScheme==="light"?"亮色模式颜色":"暗色模式颜色"),a=e.computed(()=>n.globalSettings.app.colorScheme==="light"),x=["--ui-primary","--ui-text","--g-bg","--g-header-bg","--g-main-sidebar-bg","--g-sub-sidebar-bg"],h=e.computed(()=>Object.keys(m.themes).map(t=>{const l=m.themes[t],i=x.map(c=>l[c].startsWith("#")?l[c]:`rgb(${l[c]})`),o=m.themes[t].label;return{label:t,value:l,colors:i,name:o}}).filter(t=>t.value["color-scheme"]===n.globalSettings.app.colorScheme));function f(r){const t=r.label,l={};a.value?(n.globalSettings.app.lightTheme=t,l.lightTheme=t):(n.globalSettings.app.darkTheme=t,l.darkTheme=t),p({app:l})}async function b(r){const t=r?"light":"dark";n.globalSettings.app.colorScheme=t,await p({app:{colorScheme:t}})}async function p(r){const t=JSON.stringify(r);await _.postSysconfigAddOrEidtSysThemeStyleConfig({content:t}).then(l=>{l.success&&E.message.success("设置成功")})}return(r,t)=>{const l=d.PubinfoIcon,i=v.Switch;return e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("div",S,[e.createElementVNode("div",y,[e.createVNode(l,{name:"theme-title",class:"text-base mr-[6px]",size:22}),t[0]||(t[0]=e.createElementVNode("span",{class:"text-[16px] text-[#1d2129] dark:text-[#C9CDD4]"},"颜色主题风格",-1))]),e.createElementVNode("div",C,[t[1]||(t[1]=e.createElementVNode("div",{class:"flex-none w-[136px] text-right font-400 text-[#4e5969] text-[14px] dark:text-[#C9CDD4]"}," 亮色/暗色切换 ",-1)),e.createVNode(i,{checked:e.unref(a),class:"ml-16px!","checked-children":"亮","un-checked-children":"暗",onChange:b},null,8,["checked"])]),e.createElementVNode("div",w,[e.createElementVNode("div",B,e.toDisplayString(e.unref(g)),1),e.createElementVNode("div",T,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(h),(o,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:e.normalizeClass(["theme-item",{active:e.unref(a)?e.unref(n).globalSettings.app.lightTheme===o.label:e.unref(n).globalSettings.app.darkTheme===o.label,dark:e.unref(u)}]),aspect:"[4/3]",onClick:s=>f(o)},[e.createElementVNode("p",q,[e.createElementVNode("span",z,e.toDisplayString(o.name),1),(e.unref(a)?e.unref(n).globalSettings.app.lightTheme===o.label:e.unref(n).globalSettings.app.darkTheme===o.label)?(e.openBlock(),e.createBlock(l,{key:0,name:"theme-check-mark",class:"text-base ml-[6px] text-#fff position-relative top--1px",size:20})):e.createCommentVNode("v-if",!0)]),e.createElementVNode("div",F,[e.createElementVNode("div",L,[e.createCommentVNode(" colors 颜色会有重复使用的地方,key多段拼接 "),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.colors,(s,k)=>(e.openBlock(),e.createElementBlock("div",{key:o.name+s+k,class:"color-spot",style:e.normalizeStyle({backgroundColor:s})},null,4))),128))]),e.createElementVNode("div",j,[e.createElementVNode("header",{style:e.normalizeStyle({backgroundColor:o.colors[0]})},t[2]||(t[2]=[e.createElementVNode("div",{class:"dot"},null,-1),e.createElementVNode("div",{class:"bar"},null,-1)]),4),e.createElementVNode("main",O,[e.createElementVNode("div",I,[e.createElementVNode("div",{class:"side-line",style:e.normalizeStyle({backgroundColor:o.colors[0]})},null,4),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,s=>e.createElementVNode("div",{key:s,class:"side-line"})),64))]),e.createElementVNode("div",P,[e.createElementVNode("div",M,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,s=>e.createElementVNode("div",{key:s,class:"left-item"},t[3]||(t[3]=[e.createElementVNode("div",{class:"dot"},null,-1),e.createElementVNode("div",{class:"lines-wrap"},[e.createElementVNode("div",{class:"line1"}),e.createElementVNode("div",{class:"line2"})],-1)]))),64))]),e.createElementVNode("div",$,[t[4]||(t[4]=e.createElementVNode("div",{class:"right-item"},null,-1)),t[5]||(t[5]=e.createElementVNode("div",{class:"right-item"},null,-1)),e.createElementVNode("div",{class:"right-item",style:e.normalizeStyle({backgroundColor:o.colors[0],opacity:.3})},null,4),t[6]||(t[6]=e.createElementVNode("div",{class:"right-item"},null,-1))])])])])])],10,D))),128))])])])])}}}),G=V._export_sfc(A,[["__scopeId","data-v-40917278"]]);exports.default=G;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("pubinfo"),e=require("vue");require("./request-DML6P6cf.cjs");const d=require("./xitongpeizhifuwu-r-I2Ogxj.cjs"),u=require("ant-design-vue"),p=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),x={"w-full":"","h-full":"","p-10px":""},m={class:"w-full h-full bg-white overflow-y-auto p-10px flex flex-col box-border dark:bg-[#141414]"},f={class:"bg-[#F0F4FF] h-[38px] pl-[16px] flex flex-row items-center dark:bg-[#32353B]"},v={class:"mt-[15px] flex-1 flex flex-row"},g={class:"flex-auto grid grid-cols-3 gap-[20px] px-30px w-full h-0 max-w-1500px",aspect:"[3/2]"},b=["onClick"],_={class:"text-[#4E5969] text-[14px] dark:text-[#C9CDD4]"},y=e.defineComponent({name:"LayoutSetting",__name:"index",setup(k){const l=c.useSettingsStore(),i=e.ref(l.globalSettings.menu.menuMode),r=e.reactive([{describe:"顶部模式",placement:"bottom",active:"head"},{describe:"侧边栏模式 (含主导航)",placement:"bottom",active:"side"},{describe:"侧边栏模式 (不含主导航)",placement:"bottom",active:"single"},{describe:"侧边栏精简模式",placement:"bottom",active:"only-side"},{describe:"顶部精简模式",placement:"bottom",active:"only-head"}]);function a(o){if(o){i.value=o,l.globalSettings.menu.menuMode=o;const t=JSON.stringify({menu:{menuMode:o}});d.postSysconfigAddOrEidtSysThemeStyleConfig({content:t}).then(s=>{s.success&&u.message.success("设置成功")})}}return(o,t)=>{const s=c.PubinfoIcon;return e.openBlock(),e.createElementBlock("div",x,[e.createElementVNode("div",m,[e.createElementVNode("div",f,[e.createVNode(s,{name:"icon_layout",class:"text-base mr-[6px]",size:22}),t[0]||(t[0]=e.createElementVNode("span",{class:"text-[16px] text-[#1d2129] dark:text-[#C9CDD4]"},"布局模式",-1))]),e.createElementVNode("div",v,[t[3]||(t[3]=e.createElementVNode("div",{class:"flex-none w-[110px] text-right font-400 text-[#4e5969] text-[14px] pt-10px dark:text-[#C9CDD4]"}," 模式选择 ",-1)),e.createElementVNode("div",g,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),n=>(e.openBlock(),e.createElementBlock("div",{key:n.active,class:e.normalizeClass(["item",[e.unref(i)===n.active?"active":"",`item-${n.active}`]]),aspect:"[9/6]",onClick:S=>a(n.active)},[e.createElementVNode("div",_,e.toDisplayString(n.describe),1),e.createElementVNode("div",{class:e.normalizeClass(["my-[6px] mode",`mode-${n.active}`])},t[1]||(t[1]=[e.createElementVNode("div",{class:"mode-container"},null,-1)]),2),t[2]||(t[2]=e.createElementVNode("div",{class:"flex-1 w-[75%] rounded-[8px] jb py-[10px] flex justify-center"},[e.createElementVNode("div",{class:"layout-demo"})],-1))],10,b))),128))])])])])}}}),E=p._export_sfc(y,[["__scopeId","data-v-5853187d"]]);exports.default=E;
|