@pubinfo/module-rbac 2.0.0-beta.6 → 2.0.0-beta.7
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/_baseClone-GtUoMmZh.js → dist/_baseClone-BrGaYw3J.js} +1 -1
- package/{es/cloneDeep-DWP4OxCI.js → dist/cloneDeep-BNi8GGrL.js} +1 -1
- package/{es → dist}/components/GroupSelector/index.vue.d.ts +1 -6
- package/dist/components/GroupSelector/interface.d.ts +6 -0
- package/{es → dist}/components/ResourceSelector/index.vue.d.ts +1 -3
- package/{es/index-DcvR6q4y.js → dist/index-BqK3ECXI.js} +8 -8
- package/{es/index-C2dINi50.js → dist/index-BtRbu73h.js} +1 -1
- package/{es/index-Gw-_3-qN.js → dist/index-CM6TpnnE.js} +2 -2
- package/{es/index-gCLgMcJu.js → dist/index-CeKf-EeN.js} +1 -1
- package/{es/index-CDHVSKIo.js → dist/index-DFcCT28_.js} +2 -2
- package/{es/index-U-g1yyH-.js → dist/index-DLLsmZHE.js} +1 -1
- package/{es/index-D5T_4btx.js → dist/index-DOavAF_-.js} +2 -2
- package/{es/index-JFZ3GtN-.js → dist/index-Dm20ktmp.js} +3 -3
- package/{es/index-CYt7363u.js → dist/index-Kk8xDHkj.js} +216 -218
- package/{es/index-Bz9QeL8M.js → dist/index-TDxibTWO.js} +13 -13
- package/{es → dist}/index.js +1 -1
- package/{es → dist}/style.css +1 -1
- package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +172 -0
- package/{lib/views/user → dist/views/data-permission}/index.vue.d.ts +143 -38
- package/{lib/views/role_group → dist/views/role}/components/drawerRole.vue.d.ts +17 -5
- package/dist/views/role/index.vue.d.ts +3090 -0
- package/{lib/views/organization/components/drawerRole.vue.d.ts → dist/views/tenant/components/TenantEdit.vue.d.ts} +20 -6
- package/{lib/views/dictionary → dist/views/tenant}/enum.d.ts +0 -1
- package/{lib/views/role_group → dist/views/tenant}/index.vue.d.ts +21 -8
- package/dist/views/user/components/OrgAndPosition.vue.d.ts +14 -0
- package/{es → dist}/views/user/interface.d.ts +1 -2
- package/package.json +10 -12
- package/src/components/GroupSelector/index.vue +1 -7
- package/src/components/GroupSelector/interface.ts +6 -0
- package/src/components/ResourceSelector/index.vue +1 -2
- package/src/index.ts +1 -1
- package/src/views/tenant/components/TenantEdit.vue +1 -8
- package/src/views/tenant/enum.ts +7 -0
- package/src/views/tenant/index.vue +1 -8
- package/src/views/user/interface.ts +1 -1
- package/lib/OrgSelector.vue_vue_type_script_setup_true_lang-BI6dIQO9.cjs +0 -1
- package/lib/_baseClone-bvg2h-nB.cjs +0 -1
- package/lib/_commonjsHelpers-DwGv2jUC.cjs +0 -1
- package/lib/_plugin-vue_export-helper-BHFhmbuH.cjs +0 -1
- package/lib/animation_item.vue_vue_type_script_setup_true_lang-DJntALjR.cjs +0 -9
- package/lib/api/modules/assist/gonggaofuwu.d.ts +0 -43
- package/lib/api/modules/assist/index.d.ts +0 -3
- package/lib/api/modules/assist/qunzujiekou.d.ts +0 -36
- package/lib/api/modules/assist/quyujiekou.d.ts +0 -36
- package/lib/api/modules/configData/heibaimingdanfuwu.d.ts +0 -36
- package/lib/api/modules/configData/index.d.ts +0 -3
- package/lib/api/modules/configData/xitongpeizhifuwu.d.ts +0 -99
- package/lib/api/modules/configData/zidianfuwu.d.ts +0 -57
- package/lib/api/modules/log/caozuorizhifuwu.d.ts +0 -15
- package/lib/api/modules/log/denglurizhifuwu.d.ts +0 -15
- package/lib/api/modules/log/index.d.ts +0 -2
- package/lib/api/modules/rbac/gangweijiekou.d.ts +0 -36
- package/lib/api/modules/rbac/index.d.ts +0 -11
- package/lib/api/modules/rbac/jiaosejiekou.d.ts +0 -50
- package/lib/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +0 -43
- package/lib/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +0 -64
- package/lib/api/modules/rbac/yonghujiekou.d.ts +0 -85
- package/lib/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +0 -36
- package/lib/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +0 -29
- package/lib/api/modules/rbac/ziyuanjiekou.d.ts +0 -85
- package/lib/api/modules/rbac/zuhuguanlijiekou.d.ts +0 -36
- package/lib/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +0 -29
- package/lib/api/modules/rbac/zuzhijiekou.d.ts +0 -64
- package/lib/api/request.d.ts +0 -1
- package/lib/browserType.vue_vue_type_script_setup_true_lang-BuTZw501.cjs +0 -1
- package/lib/cloneDeep-DKvAzXJU.cjs +0 -1
- package/lib/components/GroupSelector/index.vue.d.ts +0 -20
- package/lib/components/OrgTree/index.vue.d.ts +0 -5
- package/lib/components/OrgUserSelector/OrgSelector.vue.d.ts +0 -68
- package/lib/components/OrgUserSelector/UserSelector.vue.d.ts +0 -72
- package/lib/components/OrgUserSelector/index.d.ts +0 -8
- package/lib/components/OrgUserSelector/provider.d.ts +0 -24
- package/lib/components/ResourceSelector/enum.d.ts +0 -5
- package/lib/components/ResourceSelector/hooks/useAppAndResource.d.ts +0 -29
- package/lib/components/ResourceSelector/index.vue.d.ts +0 -26
- package/lib/composables/useLottie.d.ts +0 -11
- package/lib/enum-B-paw5p0.cjs +0 -1
- package/lib/enum-BFYGJ2YJ.cjs +0 -1
- package/lib/enum-BHDP2ejy.cjs +0 -1
- package/lib/enum-OwSMnw51.cjs +0 -1
- package/lib/gangweijiekou-DYYmkjys.cjs +0 -1
- package/lib/index-Apq1nfrg.cjs +0 -1
- package/lib/index-BOdrElTX.cjs +0 -1
- package/lib/index-BdQKw1uE.cjs +0 -1
- package/lib/index-BwkSE-Zz.cjs +0 -1
- package/lib/index-Bx53OKE6.cjs +0 -1
- package/lib/index-C151ukdL.cjs +0 -1
- package/lib/index-C3m3S7_Q.cjs +0 -1
- package/lib/index-CMf8N2mC.cjs +0 -1
- package/lib/index-CNtyqLTX.cjs +0 -1
- package/lib/index-Cm5xLy57.cjs +0 -9
- package/lib/index-D1vGtVqY.cjs +0 -1
- package/lib/index-D2gE9FFs.cjs +0 -1
- package/lib/index-D34uPnyD.cjs +0 -1
- package/lib/index-D7Awj4JU.cjs +0 -1
- package/lib/index-D9QyS2NB.cjs +0 -1
- package/lib/index-D9dMBtdM.cjs +0 -1
- package/lib/index-DBzHTy7k.cjs +0 -1
- package/lib/index-DG9uEqRG.cjs +0 -1
- package/lib/index-DQ8p9Bwg.cjs +0 -1
- package/lib/index-DUagbQoK.cjs +0 -1
- package/lib/index-D_APeiaQ.cjs +0 -1
- package/lib/index-DoCoA6Nr.cjs +0 -1
- package/lib/index-Dv-KtCh8.cjs +0 -1
- package/lib/index-F735VVe_.cjs +0 -1
- package/lib/index-Jc3VoxhA.cjs +0 -1
- package/lib/index-n5tzubbZ.cjs +0 -1
- package/lib/index.cjs +0 -1
- package/lib/index.d.ts +0 -7
- package/lib/interface.d.ts +0 -47
- package/lib/itemlist-BEyAbkw5.cjs +0 -1
- package/lib/jiaosejiekou-BNn96VFQ.cjs +0 -1
- package/lib/login_history-C25qj8eL.cjs +0 -1
- package/lib/operate_history-Bmg66_WI.cjs +0 -1
- package/lib/pubJiaosezukongzhiqi-fVUoXj6y.cjs +0 -1
- package/lib/request-DML6P6cf.cjs +0 -1
- package/lib/routes/index.d.ts +0 -14
- package/lib/routes/modules/authority.manage.menu.d.ts +0 -3
- package/lib/routes/modules/log.manage.menu.d.ts +0 -3
- package/lib/routes/modules/safe.manage.menu.d.ts +0 -3
- package/lib/routes/modules/stylesetting.manage.menu.d.ts +0 -3
- package/lib/routes/modules/system.manage.menu.d.ts +0 -3
- package/lib/setItem-DIzkZHtI.cjs +0 -1
- package/lib/shujuquanxianzhubiaokongzhiqi-C6sd8pC3.cjs +0 -1
- package/lib/stores/index.d.ts +0 -1
- package/lib/style.css +0 -1
- package/lib/useAppAndResource-ChvKK2DZ.cjs +0 -1
- package/lib/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +0 -14
- package/lib/views/blackWhiteList/enum.d.ts +0 -7
- package/lib/views/blackWhiteList/index.vue.d.ts +0 -1535
- package/lib/views/blackWhiteList/types.d.ts +0 -4
- package/lib/views/breadcrumb_setting/animationData.d.ts +0 -7
- package/lib/views/breadcrumb_setting/index.vue.d.ts +0 -2
- package/lib/views/components/HCheckList.vue.d.ts +0 -20
- package/lib/views/components/animation_item.vue.d.ts +0 -14
- package/lib/views/components/setItem.vue.d.ts +0 -61
- package/lib/views/data-permission/enum.d.ts +0 -34
- package/lib/views/dictionary/components/drawerDictionary.vue.d.ts +0 -12
- package/lib/views/dictionary/components/drawerDictionaryItem.vue.d.ts +0 -12
- package/lib/views/dictionary/index.vue.d.ts +0 -1532
- package/lib/views/dictionary/itemlist.vue.d.ts +0 -1532
- package/lib/views/group/components/drawerGroup.vue.d.ts +0 -12
- package/lib/views/group/enum.d.ts +0 -21
- package/lib/views/group/index.vue.d.ts +0 -1532
- package/lib/views/layout_setting/index.vue.d.ts +0 -2
- package/lib/views/log_center/components/browserType.vue.d.ts +0 -12
- package/lib/views/log_center/components/loginHistoryDetail.vue.d.ts +0 -14
- package/lib/views/log_center/components/operateHistoryDetail.vue.d.ts +0 -14
- package/lib/views/log_center/login_history.vue.d.ts +0 -1511
- package/lib/views/log_center/operate_history.vue.d.ts +0 -1511
- package/lib/views/menu_setting/animationData.d.ts +0 -13
- package/lib/views/menu_setting/index.vue.d.ts +0 -2
- package/lib/views/organization/components/drawerOrganization.vue.d.ts +0 -12
- package/lib/views/organization/components/roleSelect.vue.d.ts +0 -14
- package/lib/views/organization/enum.d.ts +0 -25
- package/lib/views/organization/index.vue.d.ts +0 -73
- package/lib/views/other_setting/animationData.d.ts +0 -7
- package/lib/views/other_setting/index.vue.d.ts +0 -2
- package/lib/views/other_setting/interface.d.ts +0 -23
- package/lib/views/page_animation_setting/animationData.d.ts +0 -11
- package/lib/views/page_animation_setting/index.vue.d.ts +0 -2
- package/lib/views/page_w_setting/index.vue.d.ts +0 -2
- package/lib/views/position/components/drawerPosition.vue.d.ts +0 -12
- package/lib/views/position/enum.d.ts +0 -8
- package/lib/views/position/index.vue.d.ts +0 -1532
- package/lib/views/region/components/drawerRegion.vue.d.ts +0 -12
- package/lib/views/region/enum.d.ts +0 -22
- package/lib/views/region/index.vue.d.ts +0 -1533
- package/lib/views/resource/components/ResourceEdit.vue.d.ts +0 -16
- package/lib/views/resource/components/RoleRelation.vue.d.ts +0 -6
- package/lib/views/resource/enum.d.ts +0 -30
- package/lib/views/resource/index.vue.d.ts +0 -1549
- package/lib/views/resource/interface.d.ts +0 -6
- package/lib/views/role/components/ResourceRelation.vue.d.ts +0 -1515
- package/lib/views/role/enum.d.ts +0 -25
- package/lib/views/role/interface.d.ts +0 -6
- package/lib/views/role_group/components/roleSelect.vue.d.ts +0 -14
- package/lib/views/role_group/enum.d.ts +0 -21
- package/lib/views/role_group/interface.d.ts +0 -6
- package/lib/views/safe_setting/index.vue.d.ts +0 -4
- package/lib/views/tabbar_setting/animationData.d.ts +0 -11
- package/lib/views/tabbar_setting/index.vue.d.ts +0 -2
- package/lib/views/tenant/interface.d.ts +0 -6
- package/lib/views/theme_setting/index.vue.d.ts +0 -2
- package/lib/views/toolbar_setting/animationData.d.ts +0 -17
- package/lib/views/toolbar_setting/index.vue.d.ts +0 -2
- package/lib/views/user/components/UserAuthorization.vue.d.ts +0 -39
- package/lib/views/user/components/UserEdit.vue.d.ts +0 -16
- package/lib/views/user/components/roleSelect.vue.d.ts +0 -14
- package/lib/views/user/enum.d.ts +0 -13
- package/lib/views/user/interface.d.ts +0 -40
- package/lib/views/watermark_setting/animationData.d.ts +0 -3
- package/lib/views/watermark_setting/index.vue.d.ts +0 -31
- package/lib/xitongpeizhifuwu-r-I2Ogxj.cjs +0 -1
- package/lib/zidianfuwu-VChcnkm9.cjs +0 -1
- package/lib/ziyuanjiekou-CvKeunY5.cjs +0 -1
- package/lib/zuzhijiaosebiaokongzhiqi-DYI3Zu-M.cjs +0 -1
- package/lib/zuzhijiekou-CFQtYuGW.cjs +0 -1
- /package/{es → dist}/OrgSelector.vue_vue_type_script_setup_true_lang-DV8KkpJD.js +0 -0
- /package/{es → dist}/_commonjsHelpers-C6fGbg64.js +0 -0
- /package/{es → dist}/_plugin-vue_export-helper-CHgC5LLL.js +0 -0
- /package/{es → dist}/animation_item.vue_vue_type_script_setup_true_lang-CNTrygHf.js +0 -0
- /package/{es → dist}/api/modules/assist/gonggaofuwu.d.ts +0 -0
- /package/{es → dist}/api/modules/assist/index.d.ts +0 -0
- /package/{es → dist}/api/modules/assist/qunzujiekou.d.ts +0 -0
- /package/{es → dist}/api/modules/assist/quyujiekou.d.ts +0 -0
- /package/{es → dist}/api/modules/configData/heibaimingdanfuwu.d.ts +0 -0
- /package/{es → dist}/api/modules/configData/index.d.ts +0 -0
- /package/{es → dist}/api/modules/configData/xitongpeizhifuwu.d.ts +0 -0
- /package/{es → dist}/api/modules/configData/zidianfuwu.d.ts +0 -0
- /package/{es → dist}/api/modules/log/caozuorizhifuwu.d.ts +0 -0
- /package/{es → dist}/api/modules/log/denglurizhifuwu.d.ts +0 -0
- /package/{es → dist}/api/modules/log/index.d.ts +0 -0
- /package/{es → dist}/api/modules/rbac/gangweijiekou.d.ts +0 -0
- /package/{es → dist}/api/modules/rbac/index.d.ts +0 -0
- /package/{es → dist}/api/modules/rbac/jiaosejiekou.d.ts +0 -0
- /package/{es → dist}/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +0 -0
- /package/{es → dist}/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +0 -0
- /package/{es → dist}/api/modules/rbac/yonghujiekou.d.ts +0 -0
- /package/{es → dist}/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +0 -0
- /package/{es → dist}/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +0 -0
- /package/{es → dist}/api/modules/rbac/ziyuanjiekou.d.ts +0 -0
- /package/{es → dist}/api/modules/rbac/zuhuguanlijiekou.d.ts +0 -0
- /package/{es → dist}/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +0 -0
- /package/{es → dist}/api/modules/rbac/zuzhijiekou.d.ts +0 -0
- /package/{es → dist}/api/request.d.ts +0 -0
- /package/{es → dist}/browserType.vue_vue_type_script_setup_true_lang-Cv8wph6G.js +0 -0
- /package/{es → dist}/components/OrgTree/index.vue.d.ts +0 -0
- /package/{es → dist}/components/OrgUserSelector/OrgSelector.vue.d.ts +0 -0
- /package/{es → dist}/components/OrgUserSelector/UserSelector.vue.d.ts +0 -0
- /package/{es → dist}/components/OrgUserSelector/index.d.ts +0 -0
- /package/{es → dist}/components/OrgUserSelector/provider.d.ts +0 -0
- /package/{es → dist}/components/ResourceSelector/enum.d.ts +0 -0
- /package/{es → dist}/components/ResourceSelector/hooks/useAppAndResource.d.ts +0 -0
- /package/{es → dist}/composables/useLottie.d.ts +0 -0
- /package/{es → dist}/enum-BEHz_Q18.js +0 -0
- /package/{es → dist}/enum-C9ihxJe7.js +0 -0
- /package/{es → dist}/enum-CTUzwCYG.js +0 -0
- /package/{es → dist}/enum-DDKThkSw.js +0 -0
- /package/{es → dist}/gangweijiekou-BxJq_m0o.js +0 -0
- /package/{es → dist}/index-BDrI8Oyk.js +0 -0
- /package/{es → dist}/index-BIfx_Xrr.js +0 -0
- /package/{es → dist}/index-Bl4v-7On.js +0 -0
- /package/{es → dist}/index-BsoyF96V.js +0 -0
- /package/{es → dist}/index-C7QJHUwa.js +0 -0
- /package/{es → dist}/index-CBMCWEIQ.js +0 -0
- /package/{es → dist}/index-CFPhIFyG.js +0 -0
- /package/{es → dist}/index-CgiGLpzT.js +0 -0
- /package/{es → dist}/index-CsHj-xDw.js +0 -0
- /package/{es → dist}/index-DY1mOFzi.js +0 -0
- /package/{es → dist}/index-DuVeXn9R.js +0 -0
- /package/{es → dist}/index-Dvq9O5uC.js +0 -0
- /package/{es → dist}/index-F-kmM1iD.js +0 -0
- /package/{es → dist}/index-gHIfcbvd.js +0 -0
- /package/{es → dist}/index-kFyBHYs8.js +0 -0
- /package/{es → dist}/index-uSBZoA3n.js +0 -0
- /package/{es → dist}/index.d.ts +0 -0
- /package/{es → dist}/interface.d.ts +0 -0
- /package/{es → dist}/itemlist-BRhA5jzY.js +0 -0
- /package/{es → dist}/jiaosejiekou-BfY4h7uI.js +0 -0
- /package/{es → dist}/login_history-CuQv9Iw3.js +0 -0
- /package/{es → dist}/operate_history-CGP-1Xy2.js +0 -0
- /package/{es → dist}/pubJiaosezukongzhiqi-CvYfc8Uz.js +0 -0
- /package/{es → dist}/request-DQLgc7lT.js +0 -0
- /package/{es → dist}/routes/index.d.ts +0 -0
- /package/{es → dist}/routes/modules/authority.manage.menu.d.ts +0 -0
- /package/{es → dist}/routes/modules/log.manage.menu.d.ts +0 -0
- /package/{es → dist}/routes/modules/safe.manage.menu.d.ts +0 -0
- /package/{es → dist}/routes/modules/stylesetting.manage.menu.d.ts +0 -0
- /package/{es → dist}/routes/modules/system.manage.menu.d.ts +0 -0
- /package/{es → dist}/setItem-C1_olVDY.js +0 -0
- /package/{es → dist}/shujuquanxianzhubiaokongzhiqi-DyNgf1y6.js +0 -0
- /package/{es → dist}/stores/index.d.ts +0 -0
- /package/{es → dist}/useAppAndResource-D_b19V4t.js +0 -0
- /package/{es → dist}/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +0 -0
- /package/{es → dist}/views/blackWhiteList/enum.d.ts +0 -0
- /package/{es → dist}/views/blackWhiteList/index.vue.d.ts +0 -0
- /package/{es → dist}/views/blackWhiteList/types.d.ts +0 -0
- /package/{es → dist}/views/breadcrumb_setting/animationData.d.ts +0 -0
- /package/{es → dist}/views/breadcrumb_setting/index.vue.d.ts +0 -0
- /package/{es → dist}/views/components/HCheckList.vue.d.ts +0 -0
- /package/{es → dist}/views/components/animation_item.vue.d.ts +0 -0
- /package/{es → dist}/views/components/setItem.vue.d.ts +0 -0
- /package/{es → dist}/views/data-permission/enum.d.ts +0 -0
- /package/{es → dist}/views/dictionary/components/drawerDictionary.vue.d.ts +0 -0
- /package/{es → dist}/views/dictionary/components/drawerDictionaryItem.vue.d.ts +0 -0
- /package/{es → dist}/views/dictionary/enum.d.ts +0 -0
- /package/{es → dist}/views/dictionary/index.vue.d.ts +0 -0
- /package/{es → dist}/views/dictionary/itemlist.vue.d.ts +0 -0
- /package/{es → dist}/views/group/components/drawerGroup.vue.d.ts +0 -0
- /package/{es → dist}/views/group/enum.d.ts +0 -0
- /package/{es → dist}/views/group/index.vue.d.ts +0 -0
- /package/{es → dist}/views/layout_setting/index.vue.d.ts +0 -0
- /package/{es → dist}/views/log_center/components/browserType.vue.d.ts +0 -0
- /package/{es → dist}/views/log_center/components/loginHistoryDetail.vue.d.ts +0 -0
- /package/{es → dist}/views/log_center/components/operateHistoryDetail.vue.d.ts +0 -0
- /package/{es → dist}/views/log_center/login_history.vue.d.ts +0 -0
- /package/{es → dist}/views/log_center/operate_history.vue.d.ts +0 -0
- /package/{es → dist}/views/menu_setting/animationData.d.ts +0 -0
- /package/{es → dist}/views/menu_setting/index.vue.d.ts +0 -0
- /package/{es → dist}/views/organization/components/drawerOrganization.vue.d.ts +0 -0
- /package/{es → dist}/views/organization/components/drawerRole.vue.d.ts +0 -0
- /package/{es → dist}/views/organization/components/roleSelect.vue.d.ts +0 -0
- /package/{es → dist}/views/organization/enum.d.ts +0 -0
- /package/{es → dist}/views/organization/index.vue.d.ts +0 -0
- /package/{es → dist}/views/other_setting/animationData.d.ts +0 -0
- /package/{es → dist}/views/other_setting/index.vue.d.ts +0 -0
- /package/{es → dist}/views/other_setting/interface.d.ts +0 -0
- /package/{es → dist}/views/page_animation_setting/animationData.d.ts +0 -0
- /package/{es → dist}/views/page_animation_setting/index.vue.d.ts +0 -0
- /package/{es → dist}/views/page_w_setting/index.vue.d.ts +0 -0
- /package/{es → dist}/views/position/components/drawerPosition.vue.d.ts +0 -0
- /package/{es → dist}/views/position/enum.d.ts +0 -0
- /package/{es → dist}/views/position/index.vue.d.ts +0 -0
- /package/{es → dist}/views/region/components/drawerRegion.vue.d.ts +0 -0
- /package/{es → dist}/views/region/enum.d.ts +0 -0
- /package/{es → dist}/views/region/index.vue.d.ts +0 -0
- /package/{es → dist}/views/resource/components/ResourceEdit.vue.d.ts +0 -0
- /package/{es → dist}/views/resource/components/RoleRelation.vue.d.ts +0 -0
- /package/{es → dist}/views/resource/enum.d.ts +0 -0
- /package/{es → dist}/views/resource/index.vue.d.ts +0 -0
- /package/{es → dist}/views/resource/interface.d.ts +0 -0
- /package/{es → dist}/views/role/components/ResourceRelation.vue.d.ts +0 -0
- /package/{es → dist}/views/role/enum.d.ts +0 -0
- /package/{es → dist}/views/role/interface.d.ts +0 -0
- /package/{es → dist}/views/role_group/components/drawerRole.vue.d.ts +0 -0
- /package/{es → dist}/views/role_group/components/roleSelect.vue.d.ts +0 -0
- /package/{es → dist}/views/role_group/enum.d.ts +0 -0
- /package/{es → dist}/views/role_group/index.vue.d.ts +0 -0
- /package/{es → dist}/views/role_group/interface.d.ts +0 -0
- /package/{es → dist}/views/safe_setting/index.vue.d.ts +0 -0
- /package/{es → dist}/views/tabbar_setting/animationData.d.ts +0 -0
- /package/{es → dist}/views/tabbar_setting/index.vue.d.ts +0 -0
- /package/{es → dist}/views/tenant/interface.d.ts +0 -0
- /package/{es → dist}/views/theme_setting/index.vue.d.ts +0 -0
- /package/{es → dist}/views/toolbar_setting/animationData.d.ts +0 -0
- /package/{es → dist}/views/toolbar_setting/index.vue.d.ts +0 -0
- /package/{es → dist}/views/user/components/UserAuthorization.vue.d.ts +0 -0
- /package/{es → dist}/views/user/components/UserEdit.vue.d.ts +0 -0
- /package/{es → dist}/views/user/components/roleSelect.vue.d.ts +0 -0
- /package/{es → dist}/views/user/enum.d.ts +0 -0
- /package/{es → dist}/views/user/index.vue.d.ts +0 -0
- /package/{es → dist}/views/watermark_setting/animationData.d.ts +0 -0
- /package/{es → dist}/views/watermark_setting/index.vue.d.ts +0 -0
- /package/{es → dist}/xitongpeizhifuwu-C1Vm-W1B.js +0 -0
- /package/{es → dist}/zidianfuwu-yCWHhOfO.js +0 -0
- /package/{es → dist}/ziyuanjiekou-DhrAbneq.js +0 -0
- /package/{es → dist}/zuzhijiaosebiaokongzhiqi-B1g74RqL.js +0 -0
- /package/{es → dist}/zuzhijiekou-PeZuFtCO.js +0 -0
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { RecordData } from '../interface';
|
|
2
|
+
import { ACTION } from '../enum';
|
|
3
|
+
declare function onOpen(key: ACTION, record?: RecordData): Promise<void>;
|
|
2
4
|
declare const _default: import('../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').DefineComponent<{}, {
|
|
3
5
|
open: typeof onOpen;
|
|
4
6
|
}, {}, {}, {}, 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, {
|
|
@@ -7,17 +9,23 @@ declare const _default: import('../../../../../../node_modules/.pnpm/vue@3.5.13_
|
|
|
7
9
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
8
10
|
}>, {}, {}, {}, {}, string, import('../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').ComponentProvideOptions, true, {
|
|
9
11
|
formRef: unknown;
|
|
10
|
-
|
|
12
|
+
resourceRef: import('../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
11
13
|
open?: boolean;
|
|
14
|
+
} & {
|
|
15
|
+
title?: string;
|
|
16
|
+
mode?: import('../../../components/ResourceSelector/enum').ResourceMode;
|
|
12
17
|
}> & Readonly<{
|
|
13
18
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
14
19
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
15
20
|
}>, {
|
|
16
|
-
open: (ids:
|
|
21
|
+
open: (ids: import('ant-design-vue/es/vc-tree/interface').Key[], tree: any[], resMap: import('../../../components/ResourceSelector/hooks/useAppAndResource').StringMap<string>) => void;
|
|
17
22
|
}, {}, {}, {}, 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, {
|
|
18
23
|
select: (...args: any[]) => void;
|
|
19
24
|
"update:open": (value: boolean) => void;
|
|
20
|
-
}, import('../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').PublicProps, {
|
|
25
|
+
}, import('../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').PublicProps, {
|
|
26
|
+
title: string;
|
|
27
|
+
mode: import('../../../components/ResourceSelector/enum').ResourceMode;
|
|
28
|
+
}, false, {}, {}, import('../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').GlobalComponents, import('../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').GlobalDirectives, string, {}, any, import('../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').ComponentProvideOptions, {
|
|
21
29
|
P: {};
|
|
22
30
|
B: {};
|
|
23
31
|
D: {};
|
|
@@ -26,11 +34,17 @@ declare const _default: import('../../../../../../node_modules/.pnpm/vue@3.5.13_
|
|
|
26
34
|
Defaults: {};
|
|
27
35
|
}, Readonly<{
|
|
28
36
|
open?: boolean;
|
|
37
|
+
} & {
|
|
38
|
+
title?: string;
|
|
39
|
+
mode?: import('../../../components/ResourceSelector/enum').ResourceMode;
|
|
29
40
|
}> & Readonly<{
|
|
30
41
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
31
42
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
32
43
|
}>, {
|
|
33
|
-
open: (ids:
|
|
34
|
-
}, {}, {}, {}, {
|
|
44
|
+
open: (ids: import('ant-design-vue/es/vc-tree/interface').Key[], tree: any[], resMap: import('../../../components/ResourceSelector/hooks/useAppAndResource').StringMap<string>) => void;
|
|
45
|
+
}, {}, {}, {}, {
|
|
46
|
+
title: string;
|
|
47
|
+
mode: import('../../../components/ResourceSelector/enum').ResourceMode;
|
|
48
|
+
}> | null;
|
|
35
49
|
}, any>;
|
|
36
50
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RecordData } from './interface';
|
|
1
2
|
import { ACTION } from './enum';
|
|
2
3
|
declare const _default: import('../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').DefineComponent<{}, {}, {}, {}, {}, 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, {}, string, import('../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').ComponentProvideOptions, true, {
|
|
3
4
|
tableRef: import('../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').ExtractPropTypes<{
|
|
@@ -1508,25 +1509,31 @@ declare const _default: import('../../../../../node_modules/.pnpm/vue@3.5.13_typ
|
|
|
1508
1509
|
onResizeColumn: (w: number, col: import('ant-design-vue').TableColumnType) => void;
|
|
1509
1510
|
rowSelection: import('ant-design-vue/es/table/interface').TableRowSelection<any>;
|
|
1510
1511
|
}> | null;
|
|
1511
|
-
|
|
1512
|
+
drawerRef: import('../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
1512
1513
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
1513
1514
|
}>, {
|
|
1514
|
-
open: (key: ACTION, record?:
|
|
1515
|
+
open: (key: ACTION, record?: RecordData) => Promise<void>;
|
|
1515
1516
|
}, {}, {}, {}, 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, {
|
|
1516
1517
|
submit: (...args: any[]) => void;
|
|
1517
1518
|
}, import('../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').PublicProps, {}, true, {}, {}, import('../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').GlobalComponents, import('../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').GlobalDirectives, string, {
|
|
1518
1519
|
formRef: unknown;
|
|
1519
|
-
|
|
1520
|
+
resourceRef: import('../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1520
1521
|
open?: boolean;
|
|
1522
|
+
} & {
|
|
1523
|
+
title?: string;
|
|
1524
|
+
mode?: import('../../components/ResourceSelector/enum').ResourceMode;
|
|
1521
1525
|
}> & Readonly<{
|
|
1522
1526
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
1523
1527
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
1524
1528
|
}>, {
|
|
1525
|
-
open: (ids:
|
|
1529
|
+
open: (ids: import('ant-design-vue/es/vc-tree/interface').Key[], tree: any[], resMap: import('../../components/ResourceSelector/hooks/useAppAndResource').StringMap<string>) => void;
|
|
1526
1530
|
}, {}, {}, {}, 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, {
|
|
1527
1531
|
select: (...args: any[]) => void;
|
|
1528
1532
|
"update:open": (value: boolean) => void;
|
|
1529
|
-
}, import('../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').PublicProps, {
|
|
1533
|
+
}, import('../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').PublicProps, {
|
|
1534
|
+
title: string;
|
|
1535
|
+
mode: import('../../components/ResourceSelector/enum').ResourceMode;
|
|
1536
|
+
}, false, {}, {}, import('../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').GlobalComponents, import('../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').GlobalDirectives, string, {}, any, import('../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').ComponentProvideOptions, {
|
|
1530
1537
|
P: {};
|
|
1531
1538
|
B: {};
|
|
1532
1539
|
D: {};
|
|
@@ -1535,12 +1542,18 @@ declare const _default: import('../../../../../node_modules/.pnpm/vue@3.5.13_typ
|
|
|
1535
1542
|
Defaults: {};
|
|
1536
1543
|
}, Readonly<{
|
|
1537
1544
|
open?: boolean;
|
|
1545
|
+
} & {
|
|
1546
|
+
title?: string;
|
|
1547
|
+
mode?: import('../../components/ResourceSelector/enum').ResourceMode;
|
|
1538
1548
|
}> & Readonly<{
|
|
1539
1549
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
1540
1550
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
1541
1551
|
}>, {
|
|
1542
|
-
open: (ids:
|
|
1543
|
-
}, {}, {}, {}, {
|
|
1552
|
+
open: (ids: import('ant-design-vue/es/vc-tree/interface').Key[], tree: any[], resMap: import('../../components/ResourceSelector/hooks/useAppAndResource').StringMap<string>) => void;
|
|
1553
|
+
}, {}, {}, {}, {
|
|
1554
|
+
title: string;
|
|
1555
|
+
mode: import('../../components/ResourceSelector/enum').ResourceMode;
|
|
1556
|
+
}> | null;
|
|
1544
1557
|
}, any, import('../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').ComponentProvideOptions, {
|
|
1545
1558
|
P: {};
|
|
1546
1559
|
B: {};
|
|
@@ -1551,7 +1564,7 @@ declare const _default: import('../../../../../node_modules/.pnpm/vue@3.5.13_typ
|
|
|
1551
1564
|
}, Readonly<{}> & Readonly<{
|
|
1552
1565
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
1553
1566
|
}>, {
|
|
1554
|
-
open: (key: ACTION, record?:
|
|
1567
|
+
open: (key: ACTION, record?: RecordData) => Promise<void>;
|
|
1555
1568
|
}, {}, {}, {}, {}> | null;
|
|
1556
1569
|
}, HTMLDivElement>;
|
|
1557
1570
|
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Form } from '../interface';
|
|
2
|
+
type __VLS_PublicProps = {
|
|
3
|
+
modelValue?: Form['userOrgList'];
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, 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, {
|
|
6
|
+
"update:modelValue": (value: (Omit<API.PubUserOrgBo, "roles" | "posts"> & {
|
|
7
|
+
positionList: import('../interface').BaseSelect[];
|
|
8
|
+
})[]) => any;
|
|
9
|
+
}, string, import('../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: (Omit<API.PubUserOrgBo, "roles" | "posts"> & {
|
|
11
|
+
positionList: import('../interface').BaseSelect[];
|
|
12
|
+
})[]) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.8.2/node_modules/vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
|
+
export default _default;
|
|
@@ -2,7 +2,7 @@ export type Query = API.PubUserQueryDto;
|
|
|
2
2
|
export type Data = API.PubUserBo;
|
|
3
3
|
export type AddForm = API.PubUserAddDto & Record<string, unknown>;
|
|
4
4
|
export type EditForm = API.PubUserUpdateDto & Record<string, unknown>;
|
|
5
|
-
interface BaseSelect {
|
|
5
|
+
export interface BaseSelect {
|
|
6
6
|
value: string;
|
|
7
7
|
label: string;
|
|
8
8
|
}
|
|
@@ -37,4 +37,3 @@ export interface ResultAuthItem {
|
|
|
37
37
|
orgName: string;
|
|
38
38
|
main: boolean;
|
|
39
39
|
}
|
|
40
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pubinfo/module-rbac",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.7",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
|
-
"types": "./
|
|
8
|
-
"
|
|
9
|
-
"require": "./lib/index.cjs"
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"default": "./dist/index.js"
|
|
10
9
|
},
|
|
11
|
-
"./style.css":
|
|
12
|
-
"import": "./es/style.css",
|
|
13
|
-
"require": "./lib/style.css"
|
|
14
|
-
}
|
|
10
|
+
"./style.css": "./dist/style.css"
|
|
15
11
|
},
|
|
12
|
+
"main": "./dist/index.js",
|
|
13
|
+
"module": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
16
15
|
"files": [
|
|
17
|
-
"
|
|
18
|
-
"lib",
|
|
16
|
+
"dist",
|
|
19
17
|
"src"
|
|
20
18
|
],
|
|
21
19
|
"peerDependencies": {
|
|
@@ -24,7 +22,7 @@
|
|
|
24
22
|
"@pubinfo/pro-components": "^1.6.1",
|
|
25
23
|
"alova": "^3.2.9",
|
|
26
24
|
"ant-design-vue": "^4.2.6",
|
|
27
|
-
"pubinfo": "2.0.0-beta.
|
|
25
|
+
"pubinfo": "2.0.0-beta.7"
|
|
28
26
|
},
|
|
29
27
|
"dependencies": {
|
|
30
28
|
"@vueuse/core": "^11.3.0",
|
|
@@ -44,7 +42,7 @@
|
|
|
44
42
|
"ant-design-vue": "^4.2.6",
|
|
45
43
|
"type-fest": "^4.36.0",
|
|
46
44
|
"vite-plugin-dts": "^4.5.3",
|
|
47
|
-
"pubinfo": "2.0.0-beta.
|
|
45
|
+
"pubinfo": "2.0.0-beta.7"
|
|
48
46
|
},
|
|
49
47
|
"scripts": {
|
|
50
48
|
"dev": "pubinfo build -w",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import type { IOption } from './interface';
|
|
2
3
|
import { postGroupList } from '@/api/modules/assist';
|
|
3
4
|
import { GROUP_TYPE } from '@/views/group/enum';
|
|
4
5
|
import { useToggle } from '@vueuse/core';
|
|
@@ -9,13 +10,6 @@ defineOptions({
|
|
|
9
10
|
|
|
10
11
|
const emit = defineEmits(['select']);
|
|
11
12
|
|
|
12
|
-
interface IOption {
|
|
13
|
-
label: string
|
|
14
|
-
value: string
|
|
15
|
-
name: string
|
|
16
|
-
id: string
|
|
17
|
-
};
|
|
18
|
-
|
|
19
13
|
const currentTab = ref('OrgGroup');
|
|
20
14
|
const isOrgMode = computed(() => currentTab.value === 'OrgGroup');
|
|
21
15
|
const orgGroupList = ref<IOption[]>([]);
|
|
@@ -3,6 +3,7 @@ import type { EventDataNode, TreeProps } from 'ant-design-vue/es/tree';
|
|
|
3
3
|
import type { Key } from 'ant-design-vue/es/vc-tree/interface.d';
|
|
4
4
|
import type { CheckInfo } from 'ant-design-vue/es/vc-tree/props';
|
|
5
5
|
import type { ResourceMode } from './enum';
|
|
6
|
+
import type { StringMap } from './hooks/useAppAndResource';
|
|
6
7
|
import { useToggle } from '@vueuse/core';
|
|
7
8
|
import { Form } from 'ant-design-vue';
|
|
8
9
|
import { RESOURCE_MODE } from './enum';
|
|
@@ -23,8 +24,6 @@ const emit = defineEmits(['select']);
|
|
|
23
24
|
|
|
24
25
|
const isDataPermissionMode = computed(() => props.mode === RESOURCE_MODE.DATA_PERMISSION);
|
|
25
26
|
|
|
26
|
-
interface StringMap<T> { [key: string]: T };
|
|
27
|
-
|
|
28
27
|
type TreeNode = API.PubResource & {
|
|
29
28
|
children?: TreeNode[]
|
|
30
29
|
};
|
package/src/index.ts
CHANGED
|
@@ -17,7 +17,7 @@ export function rbac(options: RbacOptions = {}): ModuleOptions {
|
|
|
17
17
|
name: 'rbac',
|
|
18
18
|
async setup({ app }) {
|
|
19
19
|
app.provide(pubinfoInjectionKey, {
|
|
20
|
-
loadIcon(name
|
|
20
|
+
loadIcon(name?: string) {
|
|
21
21
|
const modules = (import.meta as any).glob('./assets/icons/*', { eager: true });
|
|
22
22
|
const path = `./assets/icons/${name}.svg`;
|
|
23
23
|
return modules[path]?.default;
|
|
@@ -6,6 +6,7 @@ import { getRbacResourceTenantAddResourceTree, getRbacTenantPubTenantInfo, postR
|
|
|
6
6
|
import { useToggle } from '@vueuse/core';
|
|
7
7
|
import { message } from 'ant-design-vue';
|
|
8
8
|
import { cloneDeep } from 'lodash-es';
|
|
9
|
+
import { ACTION } from '../enum';
|
|
9
10
|
|
|
10
11
|
defineOptions({
|
|
11
12
|
name: 'TenantEdit',
|
|
@@ -13,14 +14,6 @@ defineOptions({
|
|
|
13
14
|
|
|
14
15
|
const emit = defineEmits(['submit']);
|
|
15
16
|
|
|
16
|
-
enum ACTION {
|
|
17
|
-
ADD = '新增',
|
|
18
|
-
/** 编辑 */
|
|
19
|
-
EDIT = '修改',
|
|
20
|
-
/** 删除 */
|
|
21
|
-
REMOVE = '删除',
|
|
22
|
-
}
|
|
23
|
-
|
|
24
17
|
const rules: Record<string, Rule[]> = {
|
|
25
18
|
name: [
|
|
26
19
|
{ required: true, message: '请输入名称', trigger: 'blur' },
|
|
@@ -6,19 +6,12 @@ import { ProTable } from '@pubinfo/pro-components';
|
|
|
6
6
|
import { Badge, message, Modal } from 'ant-design-vue';
|
|
7
7
|
import dayjs from 'dayjs';
|
|
8
8
|
import TenantEdit from './components/TenantEdit.vue';
|
|
9
|
+
import { ACTION } from './enum';
|
|
9
10
|
|
|
10
11
|
defineOptions({
|
|
11
12
|
name: 'Tenant',
|
|
12
13
|
});
|
|
13
14
|
|
|
14
|
-
enum ACTION {
|
|
15
|
-
ADD = '新增',
|
|
16
|
-
/** 编辑 */
|
|
17
|
-
EDIT = '修改',
|
|
18
|
-
/** 删除 */
|
|
19
|
-
REMOVE = '删除',
|
|
20
|
-
}
|
|
21
|
-
|
|
22
15
|
const { auth } = useAuth();
|
|
23
16
|
const tableRef = ref();
|
|
24
17
|
const drawerRef = ref();
|
|
@@ -3,7 +3,7 @@ export type Data = API.PubUserBo;
|
|
|
3
3
|
export type AddForm = API.PubUserAddDto & Record<string, unknown>;
|
|
4
4
|
export type EditForm = API.PubUserUpdateDto & Record<string, unknown>;
|
|
5
5
|
|
|
6
|
-
interface BaseSelect {
|
|
6
|
+
export interface BaseSelect {
|
|
7
7
|
value: string
|
|
8
8
|
label: string
|
|
9
9
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const c=require("vue"),w=require("@pubinfo/headlessui"),U=require("ant-design-vue"),m=require("./request-DML6P6cf.cjs"),P=require("./zuzhijiekou-CFQtYuGW.cjs");require("@pubinfo/headlessui/style.css");const F=require("./index-BOdrElTX.cjs");function B(e,n){return m.basic.Post("/rbac/user/grantUserRoleAndDatPermission",e,{headers:{"Content-Type":"application/json"}})}function V(e,n){return m.basic.Get("/rbac/user/info",{params:{...e}})}function q(e,n){return m.basic.Post("/rbac/user/pubUserAdd",e,{headers:{"Content-Type":"application/json"}})}function L(e,n){return m.basic.Put("/rbac/user/resetPassword",{},{params:{...e}})}function k(e,n){return m.basic.Post("/rbac/user/userAndOrgList",e,{headers:{"Content-Type":"application/json"},...n||{}})}function M(e,n){return m.basic.Get("/rbac/user/userDelete",{params:{...e}})}function A(e,n){return m.basic.Post("/rbac/user/userForMultiOrgPage",e,{headers:{"Content-Type":"application/json"},...n||{}})}function $(e,n){return m.basic.Post("/rbac/user/userPage",e,{headers:{"Content-Type":"application/json"}})}function z(e,n){return m.basic.Post("/rbac/user/userUpdate-v2",e,{headers:{"Content-Type":"application/json"}})}function O(e,n){return m.basic.Post("/rbac/collect/add",e,{headers:{"Content-Type":"application/json"},...n||{}})}function D(e,n){return m.basic.Post("/rbac/collect/findPage",e,{headers:{"Content-Type":"application/json"},...n||{}})}function T(e,n){return m.basic.Post("/rbac/collect/removeCollect",e,{headers:{"Content-Type":"application/json"},...n||{}})}function h(e,n){return m.basic.Post("/rbac/used/addBatch",e,{headers:{"Content-Type":"application/json"},...n||{}})}function G(e,n){return m.basic.Post("/rbac/used/findPage",e,{headers:{"Content-Type":"application/json"},...n||{}})}function x(e,n){const{id:a,...s}=e;return m.basic.Delete(`/group/delete/${a}`,{},{params:{...s}})}function R(e,n){const{id:a,...s}=e;return m.basic.Get(`/group/detail/${a}`,{params:{...s},...n||{}})}function C(e,n){return m.basic.Post("/group/findPage",e,{headers:{"Content-Type":"application/json"},...n||{}})}function E(e,n){return m.basic.Post("/group/list",e,{headers:{"Content-Type":"application/json"}})}function W(e,n){return m.basic.Post("/group/saveOrUpdate",e,{headers:{"Content-Type":"application/json"}})}const u={value:"orgId",label:"orgName",favorite:"collect",info:"fullName"},d={value:"orgUserId",label:"userName",favorite:"collect",info:"fullName"};function I(e="",n=""){return`${e}_${n}`}function N(e){const[n,a]=e==null?void 0:e.split("_");return{orgId:n,userId:a}}function f(e){return e?{headers:{"X-ResourceMark":e}}:{}}function S({auth:e,filter:n}){return{async getSelectedData(a){var r;const s=await P.postRbacOrgSearchOrgByIds(a.map(t=>t[u.value]),f(e));return((r=s==null?void 0:s.data)==null?void 0:r.map(t=>({...t,[u.value]:t.id,[u.label]:t.name,[u.info]:t.fullName})))??[]},async addRecentlyUsed(a){await h(a.map(s=>({type:"1",orgId:s[u.value],orgName:s[u.label]})),f(e))},async recentlyUsed({search:a,current:s}){var t,o;return{total:20,data:((o=(t=(await G({type:"1",orgName:a,currentPage:s,pageSize:20,showIsCollect:!0},f(e))).data)==null?void 0:t.records)==null?void 0:o.map(l=>({...l,[u.value]:l.orgId,[u.label]:l.orgName,[u.info]:l.fullOrgName})))??[]}},async favorites({search:a,current:s,pageSize:r}){var o,l,p;const t=await D({type:"1",orgName:a,currentPage:s,pageSize:r},f(e));return{total:((o=t.data)==null?void 0:o.total)??0,data:((p=(l=t.data)==null?void 0:l.records)==null?void 0:p.map(i=>({...i,[u.value]:i.orgId,[u.label]:i.orgName,[u.info]:i.fullOrgName})))??[]}},async favoriteToggle({favorite:a,record:s}){(await(a?O:T)({type:"1",orgId:s==null?void 0:s[u.value]},f(e))).success&&U.message.success(a?"收藏成功":"取消收藏成功")},async groups({search:a,current:s,pageSize:r}){var o,l,p;const t=await C({type:"1",name:a,currentPage:s,pageSize:r});return{total:((o=t.data)==null?void 0:o.total)??0,data:((p=(l=t.data)==null?void 0:l.records)==null?void 0:p.map(i=>({...i,[u.value]:i.id,[u.label]:i.name})))??[]}},async groupData({node:a}){var r,t;return((t=(r=(await R({id:a==null?void 0:a.id,showIsCollect:!0},f(e))).data)==null?void 0:r.pubGroupMemberList)==null?void 0:t.map(o=>({...o,[u.value]:o.orgId,[u.label]:o.orgName,[u.info]:o.fullOrgName,isLeaf:!0})).filter(n))??[]},async orgTree({node:a}){var r;return((r=(await P.getRbacOrgOrgListByParentId({parentId:a==null?void 0:a.orgId,enable:!0,showFullName:!0,showIsCollect:!0},f(e))).data)==null?void 0:r.map(t=>({...t,[u.value]:t.id,[u.label]:t.name,[u.info]:t.fullName,isLeaf:t.leaf})).filter(n))??[]},async orgChildren({node:a}){var r;return((r=(await P.getRbacOrgSearchSubOrgById({parentId:a==null?void 0:a.orgId},f(e))).data)==null?void 0:r.map(t=>({...t,[u.value]:t.id,[u.label]:t.name,[u.info]:t.fullName,isLeaf:t.leaf})).filter(n))??[]},async orgList({search:a,current:s,pageSize:r}){var o,l,p;const t=await P.postRbacOrgSearch({keyWord:a,currentPage:s,pageSize:r,showIsCollect:!0},f(e));return{total:((o=t.data)==null?void 0:o.total)??0,data:((p=(l=t.data)==null?void 0:l.records)==null?void 0:p.map(i=>({...i,[u.value]:i.id,[u.label]:i.simpleName,[u.info]:i.fullName})).filter(n))??[]}}}}function X({auth:e,filter:n}){return{async getSelectedData(a){var r;const s=await k(a.map(t=>({orgId:t.orgId,userId:t.userId})),f(e));return((r=s==null?void 0:s.data)==null?void 0:r.map(t=>({...t,[d.value]:I(t==null?void 0:t.orgId,t.id),[d.label]:t.realName,[d.info]:t.fullOrgName})))??[]},async addRecentlyUsed(a){await h(a.map(s=>{const r=N(s[d.value]);return{type:"2",orgId:r.orgId,userId:r.userId,userName:s[d.label]}}),f(e))},async recentlyUsed({search:a,current:s}){var t,o;return{total:20,data:((o=(t=(await G({type:"2",userName:a,currentPage:s,pageSize:20,showIsCollect:!0},f(e))).data)==null?void 0:t.records)==null?void 0:o.map(l=>({...l,[d.value]:I(l.orgId,l.userId),[d.label]:l.userName,[d.info]:l.fullOrgName})))??[]}},async favorites({search:a,current:s,pageSize:r}){var o,l,p;const t=await D({type:"2",userName:a,currentPage:s,pageSize:r},f(e));return{total:((o=t.data)==null?void 0:o.total)??0,data:((p=(l=t.data)==null?void 0:l.records)==null?void 0:p.map(i=>({...i,[d.value]:I(i.orgId,i.userId),[d.label]:i.userName,[d.info]:i.fullOrgName})))??[]}},async favoriteToggle({favorite:a,record:s}){const r=a?O:T,t=N(s==null?void 0:s[d.value]);(await r({type:"2",orgId:t.orgId,userId:t.userId},f(e))).success&&U.message.success(a?"收藏成功":"取消收藏成功")},async groups({search:a,current:s,pageSize:r}){var o,l,p;const t=await C({type:"2",name:a,currentPage:s,pageSize:r},f(e));return{total:((o=t.data)==null?void 0:o.total)??0,data:((p=(l=t.data)==null?void 0:l.records)==null?void 0:p.map(i=>({...i,[d.value]:i.id,[d.label]:i.name})))??[]}},async groupData({node:a}){var r,t;return((t=(r=(await R({id:a==null?void 0:a.id,showIsCollect:!0},f(e))).data)==null?void 0:r.pubGroupMemberList)==null?void 0:t.map(o=>({...o,[d.value]:I(o.orgId,o.userId),[d.label]:o.userName,[d.info]:o.fullOrgName,isLeaf:!0})).filter(n))??[]},async userList({orgId:a,search:s,current:r,pageSize:t}){var l,p,i;const o=await A({orgId:a,realName:s,currentPage:r,pageSize:t,enable:!0,showIsCollect:!0},f(e));return{total:((l=o.data)==null?void 0:l.total)??0,data:((i=(p=o.data)==null?void 0:p.records)==null?void 0:i.map(y=>({...y,[d.value]:I(y.orgId,y.userId),[d.label]:y.userName,[d.info]:y.fullOrgName})).filter(n))??[]}}}}const H=c.defineComponent({name:"OrgSelector",__name:"OrgSelector",props:c.mergeModels({title:{default:"选择组织"},multiple:{type:Boolean,default:!1},auth:{},apis:{default:()=>({})},tabs:{default:()=>[{value:"RecentlyUsed",label:"最近常用"},{value:"Favorites",label:"收藏"},{value:"OrgTree",label:"全部"},{value:"Groups",label:"群组"}]},disabledData:{type:Function,default:()=>!1},filter:{type:Function,default:()=>!0},onSubmit:{}},{open:{type:Boolean},openModifiers:{},modelValue:{default:[]},modelModifiers:{}}),emits:["update:open","update:modelValue"],setup(e,{expose:n}){const a=e,s=c.useAttrs(),r={...S({auth:a.auth,filter:a.filter}),...a.apis},t=c.useModel(e,"open"),o=c.useModel(e,"modelValue"),l=c.ref([]),p=F.useToggle(t),{onFieldChange:i}=U.Form.useInjectFormItemContext();function y(){p(!0)}c.watch(t,async b=>{var g;if(b){if(!o.value.length){l.value=[];return}try{l.value=await((g=r==null?void 0:r.getSelectedData)==null?void 0:g.call(r,o.value))??o.value}catch{l.value=o.value}}},{immediate:!0});function j(){var b,g;o.value=l.value,(b=a.onSubmit)==null||b.call(a,l.value),i(),p(!1),(g=r==null?void 0:r.addRecentlyUsed)==null||g.call(r,l.value)}return n({open:y}),(b,g)=>(c.openBlock(),c.createElementBlock("div",null,[b.$slots.trigger?(c.openBlock(),c.createElementBlock("span",{key:0,onClick:g[0]||(g[0]=v=>y())},[c.renderSlot(b.$slots,"trigger")])):c.createCommentVNode("v-if",!0),c.createVNode(c.unref(U.Modal),c.mergeProps(c.unref(s),{open:t.value,"onUpdate:open":g[2]||(g[2]=v=>t.value=v),title:b.title,width:760,"z-index":1001,"ok-text":"确认","cancel-text":"取消",onOk:g[3]||(g[3]=v=>j())}),{default:c.withCtx(()=>[c.createVNode(c.unref(w.OrgProvider),{apis:r,"field-names":c.unref(u)},{default:c.withCtx(()=>[c.createVNode(c.unref(w.ContentSelector),{modelValue:c.unref(l),"onUpdate:modelValue":g[1]||(g[1]=v=>c.isRef(l)?l.value=v:null),"default-tab":"OrgTree",tabs:b.tabs,multiple:b.multiple,"disabled-data":b.disabledData},null,8,["modelValue","tabs","multiple","disabled-data"])]),_:1},8,["field-names"])]),_:1},16,["open","title"])]))}});exports._sfc_main=H;exports.deleteGroupDeleteById=x;exports.getGroupDetailById=R;exports.getRbacUserInfo=V;exports.getRbacUserUserDelete=M;exports.orgFieldNames=u;exports.postGroupFindPage=C;exports.postGroupList=E;exports.postGroupSaveOrUpdate=W;exports.postRbacUserGrantUserRoleAndDatPermission=B;exports.postRbacUserPubUserAdd=q;exports.postRbacUserUserPage=$;exports.postRbacUserUserUpdateV2=z;exports.putRbacUserResetPassword=L;exports.resolveId=N;exports.useOrgAPIs=S;exports.useUserAPIs=X;exports.userFieldNames=d;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("./index-D2gE9FFs.cjs");var T=t.getNative(t.root,"WeakMap");function q(e,r){for(var n=-1,o=e==null?0:e.length;++n<o&&r(e[n],n,e)!==!1;);return e}var Y=t.overArg(Object.keys,Object),H=Object.prototype,J=H.hasOwnProperty;function L(e){if(!t.isPrototype(e))return Y(e);var r=[];for(var n in Object(e))J.call(e,n)&&n!="constructor"&&r.push(n);return r}function S(e){return t.isArrayLike(e)?t.arrayLikeKeys(e):L(e)}function d(e,r){for(var n=-1,o=r.length,s=e.length;++n<o;)e[s+n]=r[n];return e}function Q(e,r){return e&&t.copyObject(r,S(r),e)}function X(e,r){return e&&t.copyObject(r,t.keysIn(r),e)}function Z(e,r){for(var n=-1,o=e==null?0:e.length,s=0,c=[];++n<o;){var i=e[n];r(i,n,e)&&(c[s++]=i)}return c}function D(){return[]}var z=Object.prototype,ee=z.propertyIsEnumerable,h=Object.getOwnPropertySymbols,w=h?function(e){return e==null?[]:(e=Object(e),Z(h(e),function(r){return ee.call(e,r)}))}:D;function te(e,r){return t.copyObject(e,w(e),r)}var re=Object.getOwnPropertySymbols,G=re?function(e){for(var r=[];e;)d(r,w(e)),e=t.getPrototype(e);return r}:D;function ne(e,r){return t.copyObject(e,G(e),r)}function N(e,r,n){var o=r(e);return t.isArray(e)?o:d(o,n(e))}function ae(e){return N(e,S,w)}function K(e){return N(e,t.keysIn,G)}var p=t.getNative(t.root,"DataView"),j=t.getNative(t.root,"Promise"),A=t.getNative(t.root,"Set"),I="[object Map]",oe="[object Object]",C="[object Promise]",M="[object Set]",P="[object WeakMap]",E="[object DataView]",ie=t.toSource(p),ce=t.toSource(t.Map),se=t.toSource(j),ge=t.toSource(A),ue=t.toSource(T);exports.getTag=t.baseGetTag;(p&&exports.getTag(new p(new ArrayBuffer(1)))!=E||t.Map&&exports.getTag(new t.Map)!=I||j&&exports.getTag(j.resolve())!=C||A&&exports.getTag(new A)!=M||T&&exports.getTag(new T)!=P)&&(exports.getTag=function(e){var r=t.baseGetTag(e),n=r==oe?e.constructor:void 0,o=n?t.toSource(n):"";if(o)switch(o){case ie:return E;case ce:return I;case se:return C;case ge:return M;case ue:return P}return r});var fe=Object.prototype,be=fe.hasOwnProperty;function ye(e){var r=e.length,n=new e.constructor(r);return r&&typeof e[0]=="string"&&be.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function le(e,r){var n=r?t.cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Te=/\w*$/;function pe(e){var r=new e.constructor(e.source,Te.exec(e));return r.lastIndex=e.lastIndex,r}var F=t.Symbol?t.Symbol.prototype:void 0,U=F?F.valueOf:void 0;function je(e){return U?Object(U.call(e)):{}}var Ae="[object Boolean]",Se="[object Date]",de="[object Map]",we="[object Number]",Oe="[object RegExp]",$e="[object Set]",me="[object String]",ve="[object Symbol]",he="[object ArrayBuffer]",Ie="[object DataView]",Ce="[object Float32Array]",Me="[object Float64Array]",Pe="[object Int8Array]",Ee="[object Int16Array]",Fe="[object Int32Array]",Ue="[object Uint8Array]",xe="[object Uint8ClampedArray]",Be="[object Uint16Array]",Le="[object Uint32Array]";function De(e,r,n){var o=e.constructor;switch(r){case he:return t.cloneArrayBuffer(e);case Ae:case Se:return new o(+e);case Ie:return le(e,n);case Ce:case Me:case Pe:case Ee:case Fe:case Ue:case xe:case Be:case Le:return t.cloneTypedArray(e,n);case de:return new o;case we:case me:return new o(e);case Oe:return pe(e);case $e:return new o;case ve:return je(e)}}var Ge="[object Map]";function Ne(e){return t.isObjectLike(e)&&exports.getTag(e)==Ge}var x=t.nodeUtil&&t.nodeUtil.isMap,Ke=x?t.baseUnary(x):Ne,_e="[object Set]";function Ve(e){return t.isObjectLike(e)&&exports.getTag(e)==_e}var B=t.nodeUtil&&t.nodeUtil.isSet,We=B?t.baseUnary(B):Ve,Re=1,ke=2,qe=4,_="[object Arguments]",Ye="[object Array]",He="[object Boolean]",Je="[object Date]",Qe="[object Error]",V="[object Function]",Xe="[object GeneratorFunction]",Ze="[object Map]",ze="[object Number]",W="[object Object]",et="[object RegExp]",tt="[object Set]",rt="[object String]",nt="[object Symbol]",at="[object WeakMap]",ot="[object ArrayBuffer]",it="[object DataView]",ct="[object Float32Array]",st="[object Float64Array]",gt="[object Int8Array]",ut="[object Int16Array]",ft="[object Int32Array]",bt="[object Uint8Array]",yt="[object Uint8ClampedArray]",lt="[object Uint16Array]",Tt="[object Uint32Array]",a={};a[_]=a[Ye]=a[ot]=a[it]=a[He]=a[Je]=a[ct]=a[st]=a[gt]=a[ut]=a[ft]=a[Ze]=a[ze]=a[W]=a[et]=a[tt]=a[rt]=a[nt]=a[bt]=a[yt]=a[lt]=a[Tt]=!0;a[Qe]=a[V]=a[at]=!1;function l(e,r,n,o,s,c){var i,b=r&Re,y=r&ke,R=r&qe;if(n&&(i=s?n(e,o,s,c):n(e)),i!==void 0)return i;if(!t.isObject(e))return e;var O=t.isArray(e);if(O){if(i=ye(e),!b)return t.copyArray(e,i)}else{var f=exports.getTag(e),$=f==V||f==Xe;if(t.isBuffer(e))return t.cloneBuffer(e,b);if(f==W||f==_||$&&!s){if(i=y||$?{}:t.initCloneObject(e),!b)return y?ne(e,X(i,e)):te(e,Q(i,e))}else{if(!a[f])return s?e:{};i=De(e,f,b)}}c||(c=new t.Stack);var m=c.get(e);if(m)return m;c.set(e,i),We(e)?e.forEach(function(g){i.add(l(g,r,n,g,e,c))}):Ke(e)&&e.forEach(function(g,u){i.set(u,l(g,r,n,u,e,c))});var k=R?y?K:ae:y?t.keysIn:S,v=O?void 0:k(e);return q(v||e,function(g,u){v&&(u=g,g=e[u]),t.assignValue(i,u,l(g,r,n,u,e,c))}),i}exports.arrayPush=d;exports.baseClone=l;exports.baseKeys=L;exports.getAllKeysIn=K;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}exports.getDefaultExportFromCjs=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=(t,o)=>{const c=t.__vccOpts||t;for(const[r,s]of o)c[r]=s;return c};exports._export_sfc=e;
|