@pubinfo-nightly/module-rbac 2025.12.8 → 2025.12.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ComponentSelect-D0OCk6H1.js +3572 -0
- package/dist/ComponentSelect-WO-3S5rH.js +2 -0
- package/dist/DynamicRoutesForm-DP_sq_Uu.js +168 -0
- package/dist/DynamicRoutesForm-DjZ3eVLW.js +4 -0
- package/dist/HCheckList-B5Qk_HBI.js +2 -0
- package/dist/HCheckList-DLBewmPw.js +36 -0
- package/dist/HoverCard-69ZIOivd.js +2 -0
- package/dist/HoverCard-BDFcxxvk.js +43 -0
- package/dist/IconSelect-1pVgA_5l.js +705 -0
- package/dist/IconSelect-C5KTdyzv.js +3 -0
- package/dist/IconSelect.css +1 -1
- package/dist/ImportExport-CL5uPlby.js +342 -0
- package/dist/ImportExport-CPy2rvv7.js +4 -0
- package/dist/LayoutForm-Cp4bBrYl.js +124 -0
- package/dist/LayoutForm-QFjwakyQ.js +4 -0
- package/dist/MetaForm-Bb-um1Zo.js +4 -0
- package/dist/MetaForm-CVSgktB_.js +38917 -0
- package/dist/OrgAndPosition-ClASobEv.js +183 -0
- package/dist/OrgAndPosition-DoiGY5xb.js +2 -0
- package/dist/ResourceEdit-BX6xdiXV.js +10 -0
- package/dist/ResourceEdit-Dwr5KLyS.js +380 -0
- package/dist/ResourceRelation-BIOzTOKA.js +2 -0
- package/dist/ResourceRelation-ChEwIbWM.js +76 -0
- package/dist/ResourceRelation-D_j898zp.js +90 -0
- package/dist/ResourceRelation.css +1 -1
- package/dist/ResourceRelation2.css +1 -1
- package/dist/RoleRelation-CyTcqRfZ.js +2 -0
- package/dist/RoleRelation-DzyVn5dk.js +78 -0
- package/dist/RoleSelector-Cd6_RUsc.js +275 -0
- package/dist/TenantEdit-BOvXk7BZ.js +245 -0
- package/dist/TenantEdit-BlMmL6q5.js +2 -0
- package/dist/UserAuthorization-DLeivbs7.js +232 -0
- package/dist/UserAuthorization-qGr1Sdat.js +3 -0
- package/dist/UserEdit-CwfyqNWf.js +3 -0
- package/dist/UserEdit-YKS1FVW_.js +319 -0
- package/dist/add-child-CFHHkjfg.js +2 -0
- package/dist/animation_item-BU-LInxP.js +4485 -0
- package/dist/animation_item-GzGItm3s.js +2 -0
- package/dist/api/modules/assist/gonggaofuwu.d.ts +7 -7
- package/dist/api/modules/assist/qunzujiekou.d.ts +7 -7
- package/dist/api/modules/assist/quyujiekou.d.ts +6 -6
- package/dist/api/modules/configData/heibaimingdanfuwu.d.ts +6 -6
- package/dist/api/modules/configData/xitongpeizhifuwu.d.ts +15 -15
- package/dist/api/modules/configData/zidifuwu.d.ts +11 -11
- package/dist/api/modules/log/caozuorizhifuwu.d.ts +3 -3
- package/dist/api/modules/log/denglurizhifuwu.d.ts +3 -3
- package/dist/api/modules/rbac/gangweijiekou.d.ts +7 -7
- package/dist/api/modules/rbac/jiaosejiekou.d.ts +8 -8
- package/dist/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +8 -8
- package/dist/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +10 -10
- package/dist/api/modules/rbac/yonghujiekou.d.ts +16 -16
- package/dist/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +6 -6
- package/dist/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +5 -5
- package/dist/api/modules/rbac/ziyuandaorudaochuxiangguanjiekou.d.ts +7 -7
- package/dist/api/modules/rbac/ziyuanjiekou.d.ts +14 -14
- package/dist/api/modules/rbac/zuhuguanlijiekou.d.ts +6 -6
- package/dist/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +5 -5
- package/dist/api/modules/rbac/zuzhijiekou.d.ts +10 -10
- package/dist/api/request.d.ts +1 -1
- package/dist/authority-L7SfiMdP.js +2 -0
- package/dist/authorize-qMpV_BXT.js +2 -0
- package/dist/blackWhiteList-FZezar30.js +210 -0
- package/dist/blackWhiteList.css +1 -0
- package/dist/blacklist-disable-BT6Xx-JG.js +2 -0
- package/dist/blacklist-enable-CJ6DK_V2.js +2 -0
- package/dist/breadcrumb_setting-Ds-XJRR1.js +108 -0
- package/dist/browser-chrome-DuAegVCe.js +2 -0
- package/dist/browser-edge-DzkWdXRd.js +2 -0
- package/dist/browser-ie-DZ9g_MXr.js +2 -0
- package/dist/browser-other-BmkifoYq.js +2 -0
- package/dist/browser-safari-CXrCuF2a.js +2 -0
- package/dist/browserType-BXTT4j6i.js +2 -0
- package/dist/browserType-Dn_hQtAN.js +25 -0
- package/dist/chunk-Cpsc_9al.js +18 -0
- package/dist/cloneDeep-DDAtsK42.js +7 -0
- package/dist/components/DirectoryIcones/ComponentsIcones.vue.d.ts +3 -2
- package/dist/components/DirectoryIcones/FolderIcones.vue.d.ts +3 -2
- package/dist/components/DirectoryIcones/ModuleIcones.vue.d.ts +3 -2
- package/dist/components/DirectoryIcones/PackagesIcones.vue.d.ts +3 -2
- package/dist/components/DirectoryIcones/SrcIcones.vue.d.ts +3 -2
- package/dist/components/DirectoryIcones/ViewIcones.vue.d.ts +3 -2
- package/dist/components/DirectoryIcones/VueIcones.vue.d.ts +2 -1
- package/dist/components/GroupSelector/index.vue.d.ts +5 -10
- package/dist/components/JsonEditorModal/index.vue.d.ts +20 -0
- package/dist/components/OrgTree/index.vue.d.ts +6 -0
- package/dist/components/OrgUserSelector/OrgSelector.vue.d.ts +15 -18
- package/dist/components/OrgUserSelector/UserSelector.vue.d.ts +15 -18
- package/dist/components/OrgUserSelector/index.d.ts +4 -2
- package/dist/components/OrgUserSelector/provider.d.ts +1 -1
- package/dist/components/ResourceIcones/BoxColorPicker.vue.d.ts +4 -6
- package/dist/components/ResourceIcones/Select.vue.d.ts +14 -23
- package/dist/components/ResourceSelector/hooks/useAppAndResource.d.ts +16 -7
- package/dist/components/ResourceSelector/index.vue.d.ts +10 -14
- package/dist/components/RoleSelector/RoleSearch.vue.d.ts +6 -12
- package/dist/components/RoleSelector/RoleSelector.vue.d.ts +8 -12
- package/dist/components/RoleSelector/TooltipLabel.vue.d.ts +3 -2
- package/dist/components/RoleSelector/useRole.d.ts +68 -4
- package/dist/composables/useLottie.d.ts +1 -1
- package/dist/context.d.ts +2 -2
- package/dist/createAndEditDataPermission-CChlLDUm.js +5 -0
- package/dist/createAndEditDataPermission-CaOBJgoV.js +430 -0
- package/dist/createAndEditDataPermission.css +1 -1
- package/dist/data-permission-ZRQ-Aoib.js +152 -0
- package/dist/dayjs.min-sGDSMYRj.js +297 -0
- package/dist/dictionary-CtGgtPfc.js +179 -0
- package/dist/drawerBlackWhiteList-BqIDyn2Q.js +2 -0
- package/dist/drawerBlackWhiteList-CkbZ_9PZ.js +119 -0
- package/dist/drawerDictionary-D911w7pC.js +2 -0
- package/dist/drawerDictionary-dMHs-6Cw.js +125 -0
- package/dist/drawerDictionaryItem-CbTa_qL-.js +137 -0
- package/dist/drawerDictionaryItem-DLUI5Yuc.js +2 -0
- package/dist/drawerGroup-CEEDMBg9.js +3 -0
- package/dist/drawerGroup-DEuiiDPP.js +184 -0
- package/dist/drawerOrganization-CqEMD3gE.js +246 -0
- package/dist/drawerOrganization-mks5NMd9.js +2 -0
- package/dist/drawerPosition-Bd0s7qze.js +165 -0
- package/dist/drawerPosition-DwlTrlGA.js +2 -0
- package/dist/drawerRegion-DUbQAZuV.js +182 -0
- package/dist/drawerRegion-DwVzsZfT.js +2 -0
- package/dist/drawerRole-BNrbcSmr.js +3 -0
- package/dist/drawerRole-BxUIekjh.js +3 -0
- package/dist/drawerRole-CyA2oFht.js +4 -0
- package/dist/drawerRole-D5X7oHB_.js +153 -0
- package/dist/drawerRole-DNDyOvXw.js +166 -0
- package/dist/drawerRole-Dv61PBZR.js +208 -0
- package/dist/edit-fZ7h_z_Z.js +2 -0
- package/dist/enum-3E_sUqRF.js +50 -0
- package/dist/enum-3mYayxff.js +61 -0
- package/dist/enum-Cr7uWnB2.js +23 -0
- package/dist/enum-D2UEJsrC.js +4 -0
- package/dist/group-BbkZjv5e.js +172 -0
- package/dist/group.css +1 -0
- package/dist/icard-H-d9Pip-.js +2 -0
- package/dist/icon_animation-BCdRKkE5.js +2 -0
- package/dist/icon_breadcrumb-BR6LK8hP.js +2 -0
- package/dist/icon_copyright-BfWn1s6t.js +2 -0
- package/dist/icon_jt-DOMTq9De.js +2 -0
- package/dist/icon_layout-DKqAThpM.js +2 -0
- package/dist/icon_mainpage-CXB9JMGv.js +2 -0
- package/dist/icon_menu-BYQtWV-Q.js +2 -0
- package/dist/icon_page_size-r-z4oHWp.js +2 -0
- package/dist/icon_position_type-JDFdklRh.js +2 -0
- package/dist/icon_safe_manage-BDTIOduB.js +2 -0
- package/dist/icon_screen_scale-vEaAdr9S.js +2 -0
- package/dist/icon_system_manage-CkhQtieE.js +2 -0
- package/dist/icon_tabbar-DZNj-h-p.js +2 -0
- package/dist/icon_toolbar-BBYhGmEf.js +2 -0
- package/dist/icon_topbar-Bc379eaS.js +2 -0
- package/dist/icon_watermark-CTP8r-e2.js +2 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7503 -7465
- package/dist/interface.d.ts +2 -2
- package/dist/isEmpty-BvRqbmpu.js +13 -0
- package/dist/itemlist-By-FV6pN.js +156 -0
- package/dist/layout_setting-BUAgQ1Bk.js +68 -0
- package/dist/layout_setting.css +1 -0
- package/dist/log-center-CGT-BGAN.js +2 -0
- package/dist/log-vjU7aBPR.js +14 -0
- package/dist/loginHistoryDetail-C7GT2yME.js +77 -0
- package/dist/loginHistoryDetail-CkH5UUGU.js +3 -0
- package/dist/login_history-D08W00Qu.js +195 -0
- package/dist/login_history.css +1 -1
- package/dist/menu_setting-5Jet091Q.js +155 -0
- package/dist/not-data-Cx--tk_h.js +2 -0
- package/dist/not-data-tyTawN37.js +2 -0
- package/dist/operateHistoryDetail-BaNJRfwy.js +89 -0
- package/dist/operateHistoryDetail-CeVPJzD6.js +3 -0
- package/dist/operate_history-kJwIuPg2.js +190 -0
- package/dist/operate_history.css +1 -1
- package/dist/org-main-DnftBa38.js +2 -0
- package/dist/org-unmain-ByMarqFw.js +2 -0
- package/dist/organization-Cmj3DUXl.js +15322 -0
- package/dist/organization.css +1 -0
- package/dist/other_setting-DQ70WnZK.js +213 -0
- package/dist/other_setting.css +1 -0
- package/dist/page_animation_setting-Lp6cMuFM.js +108 -0
- package/dist/page_animation_setting.css +1 -0
- package/dist/page_w_setting-CD_HtSUv.js +63 -0
- package/dist/page_w_setting.css +1 -0
- package/dist/position-CLpbgKGj.js +166 -0
- package/dist/region-Dd9pt_Si.js +179 -0
- package/dist/remove-DfZZBE2T.js +2 -0
- package/dist/resource-B-gkg5Ti.js +271 -0
- package/dist/resource-app-QSLZ7Hts.js +2 -0
- package/dist/resource-btn-BcB4xMgR.js +2 -0
- package/dist/resource-dynamic-D69oEbaO.js +2 -0
- package/dist/resource-index-BIHr3PZY.js +2 -0
- package/dist/resource-menu-0JSNn7S7.js +2 -0
- package/dist/resource-micro-CcX_pmaJ.js +2 -0
- package/dist/resource-nonmenu-DFItasMT.js +2 -0
- package/dist/role-JGtvRObt.js +192 -0
- package/dist/role_group-CKOb_m63.js +171 -0
- package/dist/routeSystem-DXMoWhFo.js +2 -0
- package/dist/routes/index.d.ts +2 -2
- package/dist/routes/modules/authority.manage.menu.d.ts +1 -1
- package/dist/routes/modules/log.manage.menu.d.ts +1 -1
- package/dist/routes/modules/safe.manage.menu.d.ts +1 -1
- package/dist/routes/modules/stylesetting.manage.menu.d.ts +1 -1
- package/dist/routes/modules/system.manage.menu.d.ts +1 -1
- package/dist/safe_setting-G_ZP-jWQ.js +221 -0
- package/dist/setItem-Qa7UapHO.js +4 -0
- package/dist/setItem-yKhjmUh0.js +76 -0
- package/dist/setItem.css +1 -1
- package/dist/setting-manage-C9whamLP.js +2 -0
- package/dist/stores/view.d.ts +127 -22
- package/dist/stores-DPQF8JRt.js +2 -0
- package/dist/tabbar_setting-B3kMhRNm.js +139 -0
- package/dist/tenant-BBiCJkU_.js +177 -0
- package/dist/theme-check-mark-DG4oWCQN.js +2 -0
- package/dist/theme-title-BCYnl2jK.js +2 -0
- package/dist/theme_setting-vhNDLlkc.js +111 -0
- package/dist/theme_setting.css +1 -0
- package/dist/{index-C2G4xRrJ.js → toolbar_setting-DNBdxeGP.js} +140 -144
- package/dist/useAppAndResource-CPL2VpOJ.js +52 -0
- package/dist/user-DvCyUhZW.js +339 -0
- package/dist/utils/routeSystem.d.ts +133 -28
- package/dist/vanilla-picker-DcG96G63.js +724 -0
- package/dist/view-Bnu34EJT.js +2 -0
- package/dist/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +3 -8
- package/dist/views/blackWhiteList/index.vue.d.ts +2 -1534
- package/dist/views/breadcrumb_setting/animationData.d.ts +6 -6
- package/dist/views/breadcrumb_setting/index.vue.d.ts +2 -1
- package/dist/views/components/HCheckList.vue.d.ts +4 -3
- package/dist/views/components/animation_item.vue.d.ts +4 -5
- package/dist/views/components/setItem.vue.d.ts +3 -35
- package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +3 -169
- package/dist/views/data-permission/index.vue.d.ts +2 -1690
- package/dist/views/dictionary/components/drawerDictionary.vue.d.ts +3 -8
- package/dist/views/dictionary/components/drawerDictionaryItem.vue.d.ts +3 -8
- package/dist/views/dictionary/index.vue.d.ts +2 -1531
- package/dist/views/dictionary/itemlist.vue.d.ts +2 -1531
- package/dist/views/group/components/drawerGroup.vue.d.ts +3 -8
- package/dist/views/group/index.vue.d.ts +2 -1531
- package/dist/views/layout_setting/index.vue.d.ts +2 -1
- package/dist/views/log_center/components/browserType.vue.d.ts +4 -3
- package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +4 -10
- package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +4 -10
- package/dist/views/log_center/login_history.vue.d.ts +2 -1510
- package/dist/views/log_center/operate_history.vue.d.ts +2 -1510
- package/dist/views/menu_setting/animationData.d.ts +12 -12
- package/dist/views/menu_setting/index.vue.d.ts +2 -1
- package/dist/views/organization/components/drawerOrganization.vue.d.ts +3 -8
- package/dist/views/organization/components/drawerRole.vue.d.ts +3 -41
- package/dist/views/organization/index.vue.d.ts +2 -80
- package/dist/views/other_setting/animationData.d.ts +6 -6
- package/dist/views/other_setting/index.vue.d.ts +2 -1
- package/dist/views/other_setting/interface.d.ts +1 -1
- package/dist/views/page_animation_setting/animationData.d.ts +10 -10
- package/dist/views/page_animation_setting/index.vue.d.ts +2 -1
- package/dist/views/page_w_setting/index.vue.d.ts +2 -1
- package/dist/views/position/components/drawerPosition.vue.d.ts +3 -8
- package/dist/views/position/index.vue.d.ts +2 -1531
- package/dist/views/region/components/drawerRegion.vue.d.ts +3 -8
- package/dist/views/region/index.vue.d.ts +2 -1532
- package/dist/views/resource/components/ComponentSelect.vue.d.ts +5 -6
- package/dist/views/resource/components/DynamicRoutesForm.vue.d.ts +8 -6
- package/dist/views/resource/components/HoverCard.vue.d.ts +9 -12
- package/dist/views/resource/components/IconSelect.vue.d.ts +6 -5
- package/dist/views/resource/components/ImportExport.vue.d.ts +4 -7
- package/dist/views/resource/components/LayoutForm.vue.d.ts +6 -5
- package/dist/views/resource/components/MetaForm.vue.d.ts +6 -5
- package/dist/views/resource/components/ResourceEdit.vue.d.ts +4 -9
- package/dist/views/resource/components/RoleRelation.vue.d.ts +4 -3
- package/dist/views/resource/hooks/useLayoutForm.d.ts +5 -4
- package/dist/views/resource/hooks/useMetaForm.d.ts +12 -3
- package/dist/views/resource/index.vue.d.ts +2 -1570
- package/dist/views/resource/interface.d.ts +1 -1
- package/dist/views/role/components/ResourceRelation.vue.d.ts +4 -1512
- package/dist/views/role/components/drawerRole.vue.d.ts +3 -45
- package/dist/views/role/index.vue.d.ts +2 -3089
- package/dist/views/role_group/components/drawerRole.vue.d.ts +3 -41
- package/dist/views/role_group/index.vue.d.ts +2 -1564
- package/dist/views/safe_setting/index.vue.d.ts +2 -3
- package/dist/views/tabbar_setting/animationData.d.ts +10 -10
- package/dist/views/tabbar_setting/index.vue.d.ts +2 -1
- package/dist/views/tenant/components/TenantEdit.vue.d.ts +4 -10
- package/dist/views/tenant/index.vue.d.ts +2 -1533
- package/dist/views/theme_setting/index.vue.d.ts +2 -1
- package/dist/views/toolbar_setting/animationData.d.ts +14 -14
- package/dist/views/toolbar_setting/index.vue.d.ts +2 -1
- package/dist/views/user/components/OrgAndPosition.vue.d.ts +8 -7
- package/dist/views/user/components/UserAuthorization.vue.d.ts +3 -41
- package/dist/views/user/components/UserEdit.vue.d.ts +4 -9
- package/dist/views/user/index.vue.d.ts +2 -1593
- package/dist/views/watermark_setting/animationData.d.ts +2 -2
- package/dist/views/watermark_setting/index.vue.d.ts +2 -30
- package/dist/watermark_setting-CXp4Og0Y.js +191 -0
- package/dist/watermark_setting.css +1 -0
- package/dist/zddata-Ceyga3_2.js +2 -0
- package/dist/zy_checked-DvD7k9F8.js +2 -0
- package/dist/zy_default-DJ2tB3Fo.js +2 -0
- package/package.json +7 -5
- package/dist/ComponentSelect-ZLey_5w7.js +0 -4
- package/dist/ComponentSelect.vue_vue_type_style_index_0_lang-CMEO08Uz.js +0 -3981
- package/dist/DynamicRoutesForm-BU4EAISs.js +0 -4
- package/dist/DynamicRoutesForm.vue_vue_type_script_setup_true_lang-bEqJ03T_.js +0 -179
- package/dist/HCheckList-Dkxhu1br.js +0 -4
- package/dist/HCheckList.vue_vue_type_script_setup_true_lang-n_QczT28.js +0 -41
- package/dist/HoverCard-7agF2aDO.js +0 -4
- package/dist/HoverCard.vue_vue_type_script_setup_true_lang-DEScDCo1.js +0 -62
- package/dist/IconSelect-DtNpk3Rj.js +0 -4
- package/dist/IconSelect.vue_vue_type_script_setup_true_lang-D450SiKg.js +0 -757
- package/dist/ImportExport-DAe_Sl13.js +0 -4
- package/dist/ImportExport.vue_vue_type_script_setup_true_lang-CV0DrMvw.js +0 -456
- package/dist/LayoutForm-Pv6UyKl3.js +0 -173
- package/dist/MetaForm-BMPtZc0g.js +0 -42413
- package/dist/OrgAndPosition-R-YixdXG.js +0 -4
- package/dist/OrgAndPosition.vue_vue_type_script_setup_true_lang-jEjTok4n.js +0 -195
- package/dist/ResourceEdit-D59JUDvG.js +0 -4
- package/dist/ResourceEdit.vue_vue_type_script_setup_true_lang-IWn27Vz1.js +0 -429
- package/dist/ResourceRelation-CeM9Eq39.js +0 -90
- package/dist/ResourceRelation-qhIdXLAy.js +0 -111
- package/dist/RoleRelation-BuqK0cnl.js +0 -4
- package/dist/RoleRelation.vue_vue_type_script_setup_true_lang-BjEOlM2g.js +0 -93
- package/dist/RoleSelector.vue_vue_type_script_setup_true_lang-ZwsINUBu.js +0 -352
- package/dist/TenantEdit-C61O1pSu.js +0 -4
- package/dist/TenantEdit.vue_vue_type_script_setup_true_lang-BwsA9hth.js +0 -306
- package/dist/UserAuthorization-Ch_iKzms.js +0 -273
- package/dist/UserEdit-B1fnFcSC.js +0 -4
- package/dist/UserEdit.vue_vue_type_script_setup_true_lang-SIR1ZO_N.js +0 -315
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/add-child-B9gDBQjZ.js +0 -4
- package/dist/animation_item-BZ1HNA6o.js +0 -4
- package/dist/animation_item.vue_vue_type_script_setup_true_lang-CmwThjHB.js +0 -4858
- package/dist/authority-B-0S66Fv.js +0 -4
- package/dist/authorize-DnyYvAo3.js +0 -4
- package/dist/blacklist-disable-DzVU8JLV.js +0 -4
- package/dist/blacklist-enable-BmWQR1i4.js +0 -4
- package/dist/browser-chrome-O9MASusF.js +0 -4
- package/dist/browser-edge-Dk6N_uRy.js +0 -4
- package/dist/browser-ie-Dtz7hQTC.js +0 -4
- package/dist/browser-other-Crzi8vov.js +0 -4
- package/dist/browser-safari-DF0pVlrn.js +0 -4
- package/dist/browserType-DQySszjD.js +0 -4
- package/dist/browserType.vue_vue_type_script_setup_true_lang-od1-AmrS.js +0 -32
- package/dist/cloneDeep-BOLZdR62.js +0 -8
- package/dist/createAndEditDataPermission-DPeFulie.js +0 -4
- package/dist/createAndEditDataPermission.vue_vue_type_script_setup_true_lang-DlUIYtif.js +0 -528
- package/dist/dayjs.min-B2Yn1Frg.js +0 -284
- package/dist/drawerBlackWhiteList-eWyKScZN.js +0 -4
- package/dist/drawerBlackWhiteList.vue_vue_type_script_setup_true_lang-CNBKo3Jg.js +0 -173
- package/dist/drawerDictionary-BRGmcIFT.js +0 -4
- package/dist/drawerDictionary.vue_vue_type_script_setup_true_lang-0zsptmrP.js +0 -146
- package/dist/drawerDictionaryItem-CFBfyhEw.js +0 -4
- package/dist/drawerDictionaryItem.vue_vue_type_script_setup_true_lang-DeJblyyZ.js +0 -158
- package/dist/drawerGroup-Bs1Z8XPo.js +0 -4
- package/dist/drawerGroup.vue_vue_type_script_setup_true_lang-ClG-M0Ru.js +0 -202
- package/dist/drawerOrganization-Bs0YtPuo.js +0 -4
- package/dist/drawerOrganization.vue_vue_type_script_setup_true_lang-5YJaULAh.js +0 -250
- package/dist/drawerPosition-BA_gLotd.js +0 -4
- package/dist/drawerPosition.vue_vue_type_script_setup_true_lang-ZqfbI05C.js +0 -181
- package/dist/drawerRegion-CauOP4lh.js +0 -4
- package/dist/drawerRegion.vue_vue_type_script_setup_true_lang-DeL9jV-P.js +0 -235
- package/dist/drawerRole-CXGVqxPX.js +0 -4
- package/dist/drawerRole-CfJjf3v_.js +0 -4
- package/dist/drawerRole-nmMTIQYS.js +0 -4
- package/dist/drawerRole.vue_vue_type_script_setup_true_lang-B-VZS3gq.js +0 -243
- package/dist/drawerRole.vue_vue_type_script_setup_true_lang-B1eT0e_Q.js +0 -197
- package/dist/drawerRole.vue_vue_type_script_setup_true_lang-Surpf3ov.js +0 -191
- package/dist/edit-B69fMWPH.js +0 -4
- package/dist/enum-C9ihxJe7.js +0 -4
- package/dist/enum-D5iPiZiT.js +0 -17
- package/dist/enum-DDKThkSw.js +0 -24
- package/dist/enum-DkSNwGbC.js +0 -74
- package/dist/gangweijiekou-CUGlx4Ni.js +0 -48
- package/dist/icard-C4FaIC0V.js +0 -4
- package/dist/icon_animation-CfRxn8ne.js +0 -4
- package/dist/icon_breadcrumb-CAPCH16K.js +0 -4
- package/dist/icon_copyright-T9HuRtib.js +0 -4
- package/dist/icon_jt-BZgxEG_D.js +0 -4
- package/dist/icon_layout-BynQzkfn.js +0 -4
- package/dist/icon_mainpage-Bu_lyj_6.js +0 -4
- package/dist/icon_menu-D41hl_4p.js +0 -4
- package/dist/icon_page_size-Bioi61il.js +0 -4
- package/dist/icon_position_type-QpezzPDJ.js +0 -4
- package/dist/icon_safe_manage-ByWMOnwf.js +0 -4
- package/dist/icon_screen_scale-CuPyb7Ni.js +0 -4
- package/dist/icon_system_manage-BxRLv7Nw.js +0 -4
- package/dist/icon_tabbar-CetwmJHN.js +0 -4
- package/dist/icon_toolbar-DXt_LXp8.js +0 -4
- package/dist/icon_topbar-C186yIiC.js +0 -4
- package/dist/icon_watermark-DhaloO3m.js +0 -4
- package/dist/index-B0zXLUdu.js +0 -350
- package/dist/index-B5aP0re3.js +0 -170
- package/dist/index-BEB4liGe.js +0 -151
- package/dist/index-BNwGLzXe.js +0 -168
- package/dist/index-BXvJhqJD.js +0 -97
- package/dist/index-BhZNbJp6.js +0 -189
- package/dist/index-Bm3WQuJD.js +0 -226
- package/dist/index-C5WD-YUu.js +0 -246
- package/dist/index-CJQB8KAz.js +0 -186
- package/dist/index-CLnFLvHy.js +0 -193
- package/dist/index-CbVJdR5M.js +0 -194
- package/dist/index-ChWnVs6j.js +0 -196
- package/dist/index-CoZM8pyH.js +0 -197
- package/dist/index-Copy5kiW.js +0 -17701
- package/dist/index-D3Xw_aOi.js +0 -144
- package/dist/index-DHVEXch0.js +0 -253
- package/dist/index-DQhQqT_Z.js +0 -269
- package/dist/index-Dl0hWfIE.js +0 -118
- package/dist/index-En8oOf9e.js +0 -168
- package/dist/index-VZuizuKs.js +0 -257
- package/dist/index-XhYtVVT9.js +0 -88
- package/dist/index-iBmBJd50.js +0 -181
- package/dist/index10.css +0 -1
- package/dist/index13.css +0 -1
- package/dist/index16.css +0 -1
- package/dist/index17.css +0 -1
- package/dist/index4.css +0 -1
- package/dist/index5.css +0 -1
- package/dist/index7.css +0 -1
- package/dist/index8.css +0 -1
- package/dist/index9.css +0 -1
- package/dist/isEmpty-BgDIb4aS.js +0 -20
- package/dist/itemlist-zTYJtoSs.js +0 -172
- package/dist/jiaosejiekou-p42Hm9h3.js +0 -58
- package/dist/log-center-Bw9UlmOq.js +0 -4
- package/dist/loginHistoryDetail-BZVwG8m2.js +0 -105
- package/dist/login_history-CMZGS2PN.js +0 -221
- package/dist/not-data-BDuvYboz.js +0 -4
- package/dist/operateHistoryDetail-Badx3zl-.js +0 -123
- package/dist/operate_history-B42WNY1u.js +0 -217
- package/dist/org-main-DfWpX8Wv.js +0 -4
- package/dist/org-unmain-DrX63NH5.js +0 -4
- package/dist/remove-D2ES5tEr.js +0 -4
- package/dist/resource-app-1lqF6C6F.js +0 -4
- package/dist/resource-btn-Cfo6ddAY.js +0 -4
- package/dist/resource-dynamic-BAwkCWS4.js +0 -4
- package/dist/resource-index-BS4V5uy8.js +0 -4
- package/dist/resource-menu-CEWU8Iis.js +0 -4
- package/dist/resource-micro-9S0h5AlK.js +0 -4
- package/dist/resource-nonmenu-BZ9e4ynT.js +0 -4
- package/dist/setItem-Blb3dox4.js +0 -87
- package/dist/setting-manage-Xj_s0OoK.js +0 -4
- package/dist/shujuquanxianzhubiaokongzhiqi-SpN37fyO.js +0 -65
- package/dist/theme-check-mark-D58efagJ.js +0 -4
- package/dist/theme-title-CYUX2SBW.js +0 -4
- package/dist/useAppAndResource-DDywX2iz.js +0 -54
- package/dist/vanilla-picker-BAEwS4Fy.js +0 -536
- package/dist/view-BCWU0JWM.js +0 -4
- package/dist/xitongpeizhifuwu-BoCbGEk7.js +0 -23
- package/dist/zddata-DQP5Kx3c.js +0 -4
- package/dist/ziyuanjiekou-BC65-bFK.js +0 -69
- package/dist/zuzhijiaosebiaokongzhiqi-Cj4ZjkfZ.js +0 -28
- package/dist/zy_checked-Bb6zRsYe.js +0 -4
- package/dist/zy_default-BGjhoury.js +0 -4
- /package/dist/{index2.css → breadcrumb_setting.css} +0 -0
- /package/dist/{index3.css → data-permission.css} +0 -0
- /package/dist/{index6.css → menu_setting.css} +0 -0
- /package/dist/{index11.css → safe_setting.css} +0 -0
- /package/dist/{index12.css → tabbar_setting.css} +0 -0
- /package/dist/{index14.css → toolbar_setting.css} +0 -0
- /package/dist/{index15.css → user.css} +0 -0
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { OrgSelector as OrgSelector_default, St as getRbacPostList } from "./index.js";
|
|
2
|
+
import { PubinfoIcon } from "pubinfo-nightly";
|
|
3
|
+
import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeStyle, openBlock, renderList, resolveComponent, toDisplayString, unref, useModel, watch, withCtx } from "vue";
|
|
4
|
+
import { Form, Modal, theme } from "ant-design-vue";
|
|
5
|
+
import { Button, Card as Card$1, FormItem, Select, Switch, Tooltip as Tooltip$1 } from "ant-design-vue/es";
|
|
6
|
+
import { useRequest } from "alova/client";
|
|
7
|
+
var _hoisted_1 = { class: "space-y-2" }, _hoisted_2 = { class: "flex items-center space-x-1" }, _hoisted_3 = { class: "flex items-center overflow-hidden" }, _hoisted_4 = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "mr-2 truncate"
|
|
10
|
+
}, OrgAndPosition_default = /* @__PURE__ */ defineComponent({
|
|
11
|
+
name: "OrgAndPosition",
|
|
12
|
+
__name: "OrgAndPosition",
|
|
13
|
+
props: {
|
|
14
|
+
modelValue: { default: [] },
|
|
15
|
+
modelModifiers: {}
|
|
16
|
+
},
|
|
17
|
+
emits: ["update:modelValue"],
|
|
18
|
+
setup(E) {
|
|
19
|
+
let D = useModel(E, "modelValue"), { token: P } = theme.useToken(), { onFieldChange: F } = Form.useInjectFormItemContext();
|
|
20
|
+
watch(() => D.value, () => {
|
|
21
|
+
F();
|
|
22
|
+
}, { deep: !0 });
|
|
23
|
+
let { data: I } = useRequest((r) => getRbacPostList(r, { transform(r) {
|
|
24
|
+
return r.data ?? [];
|
|
25
|
+
} }), { initialData: [] });
|
|
26
|
+
function L(r, w) {
|
|
27
|
+
return (D.value?.filter((r) => r.orgId === w)?.length ?? 0) > 1 ? Promise.reject(/* @__PURE__ */ Error("请勿重复选择组织")) : Promise.resolve();
|
|
28
|
+
}
|
|
29
|
+
function R(r) {
|
|
30
|
+
D.value = D.value?.map((w, T) => ({
|
|
31
|
+
...w,
|
|
32
|
+
main: r === T
|
|
33
|
+
}));
|
|
34
|
+
}
|
|
35
|
+
function z() {
|
|
36
|
+
D.value?.push({
|
|
37
|
+
orgId: null,
|
|
38
|
+
positionList: [],
|
|
39
|
+
main: !1
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function B(r) {
|
|
43
|
+
Modal.confirm({
|
|
44
|
+
title: "删除",
|
|
45
|
+
content: "确定要删除吗?",
|
|
46
|
+
zIndex: 4e3,
|
|
47
|
+
onOk() {
|
|
48
|
+
D.value?.splice(r, 1);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
return (w, E) => {
|
|
53
|
+
let O = PubinfoIcon, k = Button, A = Tooltip$1, j = OrgSelector_default, M = FormItem, N = Select, F = Switch, V = Card$1;
|
|
54
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(D.value, (r, w) => (openBlock(), createBlock(V, {
|
|
55
|
+
key: w,
|
|
56
|
+
size: "small",
|
|
57
|
+
"body-style": { padding: "16px" }
|
|
58
|
+
}, {
|
|
59
|
+
title: withCtx(() => [createElementVNode("div", _hoisted_2, [r.main ? (openBlock(), createBlock(O, {
|
|
60
|
+
key: 0,
|
|
61
|
+
name: "org-main",
|
|
62
|
+
class: "text-2xl"
|
|
63
|
+
})) : (openBlock(), createBlock(O, {
|
|
64
|
+
key: 1,
|
|
65
|
+
name: "org-unmain",
|
|
66
|
+
class: "text-2xl"
|
|
67
|
+
})), createElementVNode("div", {
|
|
68
|
+
style: normalizeStyle(r.main ? { color: unref(P).colorPrimary } : null),
|
|
69
|
+
class: "font-normal"
|
|
70
|
+
}, toDisplayString(`组织${w + 1}`), 5)])]),
|
|
71
|
+
extra: withCtx(() => [!r.main && D.value && D.value?.length > 1 ? (openBlock(), createBlock(k, {
|
|
72
|
+
key: 0,
|
|
73
|
+
type: "link",
|
|
74
|
+
danger: "",
|
|
75
|
+
onClick: (r) => B(w)
|
|
76
|
+
}, {
|
|
77
|
+
default: withCtx(() => [...E[0] ||= [createTextVNode(" 删除 ", -1)]]),
|
|
78
|
+
_: 1
|
|
79
|
+
}, 8, ["onClick"])) : createCommentVNode("", !0)]),
|
|
80
|
+
default: withCtx(() => [
|
|
81
|
+
createVNode(M, {
|
|
82
|
+
label: "所属组织",
|
|
83
|
+
name: [
|
|
84
|
+
"userOrgList",
|
|
85
|
+
w,
|
|
86
|
+
"orgId"
|
|
87
|
+
],
|
|
88
|
+
"label-col": { span: 6 },
|
|
89
|
+
rules: [{
|
|
90
|
+
required: !0,
|
|
91
|
+
message: "所属组织不能为空"
|
|
92
|
+
}, {
|
|
93
|
+
validator: L,
|
|
94
|
+
trigger: "change"
|
|
95
|
+
}]
|
|
96
|
+
}, {
|
|
97
|
+
default: withCtx(() => [createVNode(j, {
|
|
98
|
+
"model-value": r.orgId ? [{
|
|
99
|
+
orgId: r.orgId,
|
|
100
|
+
orgName: r.orgName
|
|
101
|
+
}] : [],
|
|
102
|
+
onSubmit: (w) => {
|
|
103
|
+
let T = w?.[0];
|
|
104
|
+
r.orgId = T?.orgId, r.orgName = T?.orgName;
|
|
105
|
+
}
|
|
106
|
+
}, {
|
|
107
|
+
trigger: withCtx(() => [createElementVNode("div", _hoisted_3, [createVNode(A, { title: r.orgName }, {
|
|
108
|
+
default: withCtx(() => [r.orgName ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(r.orgName), 1)) : createCommentVNode("", !0)]),
|
|
109
|
+
_: 2
|
|
110
|
+
}, 1032, ["title"]), createVNode(k, {
|
|
111
|
+
type: "primary",
|
|
112
|
+
size: "small"
|
|
113
|
+
}, {
|
|
114
|
+
default: withCtx(() => [...E[1] ||= [createTextVNode(" 选择组织 ", -1)]]),
|
|
115
|
+
_: 1
|
|
116
|
+
})])]),
|
|
117
|
+
_: 2
|
|
118
|
+
}, 1032, ["model-value", "onSubmit"])]),
|
|
119
|
+
_: 2
|
|
120
|
+
}, 1032, ["name", "rules"]),
|
|
121
|
+
createVNode(M, {
|
|
122
|
+
label: "所属岗位",
|
|
123
|
+
name: [
|
|
124
|
+
"userOrgList",
|
|
125
|
+
w,
|
|
126
|
+
"positionList"
|
|
127
|
+
],
|
|
128
|
+
"label-col": { span: 6 }
|
|
129
|
+
}, {
|
|
130
|
+
default: withCtx(() => [createVNode(N, {
|
|
131
|
+
value: r.positionList,
|
|
132
|
+
"onUpdate:value": (w) => r.positionList = w,
|
|
133
|
+
"label-in-value": "",
|
|
134
|
+
"field-names": {
|
|
135
|
+
label: "name",
|
|
136
|
+
value: "id"
|
|
137
|
+
},
|
|
138
|
+
options: unref(I),
|
|
139
|
+
"allow-clear": "",
|
|
140
|
+
mode: "multiple",
|
|
141
|
+
placeholder: "请选择所属岗位"
|
|
142
|
+
}, null, 8, [
|
|
143
|
+
"value",
|
|
144
|
+
"onUpdate:value",
|
|
145
|
+
"options"
|
|
146
|
+
])]),
|
|
147
|
+
_: 2
|
|
148
|
+
}, 1032, ["name"]),
|
|
149
|
+
createVNode(M, {
|
|
150
|
+
label: "主要组织",
|
|
151
|
+
name: [
|
|
152
|
+
"userOrgList",
|
|
153
|
+
w,
|
|
154
|
+
"main"
|
|
155
|
+
],
|
|
156
|
+
"label-col": { span: 6 }
|
|
157
|
+
}, {
|
|
158
|
+
default: withCtx(() => [createVNode(F, {
|
|
159
|
+
checked: r.main,
|
|
160
|
+
"onUpdate:checked": (w) => r.main = w,
|
|
161
|
+
disabled: r.main,
|
|
162
|
+
onChange: (r) => R(w)
|
|
163
|
+
}, null, 8, [
|
|
164
|
+
"checked",
|
|
165
|
+
"onUpdate:checked",
|
|
166
|
+
"disabled",
|
|
167
|
+
"onChange"
|
|
168
|
+
])]),
|
|
169
|
+
_: 2
|
|
170
|
+
}, 1032, ["name"])
|
|
171
|
+
]),
|
|
172
|
+
_: 2
|
|
173
|
+
}, 1024))), 128)), createVNode(k, {
|
|
174
|
+
type: "primary",
|
|
175
|
+
onClick: z
|
|
176
|
+
}, {
|
|
177
|
+
default: withCtx(() => [...E[2] ||= [createTextVNode(" 添加组织 ", -1)]]),
|
|
178
|
+
_: 1
|
|
179
|
+
})]);
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
export { OrgAndPosition_default as t };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "./MetaForm-CVSgktB_.js";
|
|
2
|
+
import "./ComponentSelect-D0OCk6H1.js";
|
|
3
|
+
import "./enum-3mYayxff.js";
|
|
4
|
+
import "./enum-3E_sUqRF.js";
|
|
5
|
+
import "./DynamicRoutesForm-DP_sq_Uu.js";
|
|
6
|
+
import "./HoverCard-BDFcxxvk.js";
|
|
7
|
+
import "./IconSelect-1pVgA_5l.js";
|
|
8
|
+
import "./LayoutForm-Cp4bBrYl.js";
|
|
9
|
+
import { t as ResourceEdit_default } from "./ResourceEdit-Dwr5KLyS.js";
|
|
10
|
+
export { ResourceEdit_default as default };
|
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
import { n as useMetaForm, r as defaultMeta, t as MetaForm_default } from "./MetaForm-CVSgktB_.js";
|
|
2
|
+
import { t as cloneDeep_default } from "./cloneDeep-DDAtsK42.js";
|
|
3
|
+
import { B as postRbacResourceResourceUpdate, F as getRbacResourceInfo, Lt as useToggle, z as postRbacResourceAddResource } from "./index.js";
|
|
4
|
+
import { n as DATA_PERMISSION_TYPE, r as dataPermissionOptions } from "./enum-3mYayxff.js";
|
|
5
|
+
import { i as resourceOptions, n as RESOURCE_COLOR, r as RESOURCE_TYPE, t as ACTION } from "./enum-3E_sUqRF.js";
|
|
6
|
+
import { t as DynamicRoutesForm_default } from "./DynamicRoutesForm-DP_sq_Uu.js";
|
|
7
|
+
import { t as IconSelect_default } from "./IconSelect-1pVgA_5l.js";
|
|
8
|
+
import { t as LayoutForm_default } from "./LayoutForm-Cp4bBrYl.js";
|
|
9
|
+
import { PartyLoginModal } from "pubinfo-nightly";
|
|
10
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createTextVNode, createVNode, defineComponent, isRef, openBlock, reactive, ref, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
11
|
+
import { DatabaseOutlined } from "@ant-design/icons-vue";
|
|
12
|
+
import { message } from "ant-design-vue";
|
|
13
|
+
import { Button, Col, Drawer, Form as Form$1, FormItem, Input as Input$1, InputNumber, RadioGroup, Row, Select, Space as Space$1, Spin as Spin$1, Switch, Tag as Tag$1, Textarea } from "ant-design-vue/es";
|
|
14
|
+
var _hoisted_1 = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "flex items-center space-x-1"
|
|
17
|
+
}, ResourceEdit_default = /* @__PURE__ */ defineComponent({
|
|
18
|
+
name: "ResourceEdit",
|
|
19
|
+
__name: "ResourceEdit",
|
|
20
|
+
props: { dataSource: {} },
|
|
21
|
+
emits: ["submit"],
|
|
22
|
+
setup(O, { expose: j, emit: N }) {
|
|
23
|
+
let P = O, F = N, [I, L] = useToggle(!1), R = ref(), z = ref({}), B = reactive({
|
|
24
|
+
title: "",
|
|
25
|
+
record: {},
|
|
26
|
+
initData: {
|
|
27
|
+
type: RESOURCE_TYPE.DYNAMIC_APP,
|
|
28
|
+
sort: 0,
|
|
29
|
+
enable: !0,
|
|
30
|
+
enableDataPermission: !1,
|
|
31
|
+
dataPermissionType: DATA_PERMISSION_TYPE.ALL,
|
|
32
|
+
meta: {
|
|
33
|
+
url: "",
|
|
34
|
+
component: ""
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}), V = {
|
|
38
|
+
name: [{
|
|
39
|
+
required: !0,
|
|
40
|
+
message: "请输入资源名称",
|
|
41
|
+
trigger: "blur"
|
|
42
|
+
}],
|
|
43
|
+
type: [{
|
|
44
|
+
required: !0,
|
|
45
|
+
message: "请选择资源类型",
|
|
46
|
+
trigger: "change"
|
|
47
|
+
}],
|
|
48
|
+
code: [{
|
|
49
|
+
required: !0,
|
|
50
|
+
message: "请输入资源编码",
|
|
51
|
+
trigger: "blur"
|
|
52
|
+
}],
|
|
53
|
+
sort: [{
|
|
54
|
+
type: "number",
|
|
55
|
+
required: !0,
|
|
56
|
+
message: "请输入排序",
|
|
57
|
+
trigger: "blur"
|
|
58
|
+
}],
|
|
59
|
+
enable: [{
|
|
60
|
+
type: "boolean",
|
|
61
|
+
required: !0,
|
|
62
|
+
message: "请选择是否启用",
|
|
63
|
+
trigger: "change"
|
|
64
|
+
}]
|
|
65
|
+
}, H = computed(() => U(P.dataSource, (e) => e.id === z.value.parentId) ?? {});
|
|
66
|
+
function U(e, _) {
|
|
67
|
+
let v = [...e];
|
|
68
|
+
for (let e of v) {
|
|
69
|
+
if (_(e)) return e;
|
|
70
|
+
e.children && v.push(...e.children);
|
|
71
|
+
}
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
let W = computed(() => {
|
|
75
|
+
switch (H.value?.type) {
|
|
76
|
+
case RESOURCE_TYPE.APP:
|
|
77
|
+
case RESOURCE_TYPE.DYNAMIC_APP: return resourceOptions.filter((e) => [
|
|
78
|
+
RESOURCE_TYPE.INDEX,
|
|
79
|
+
RESOURCE_TYPE.MENU,
|
|
80
|
+
RESOURCE_TYPE.IFRAME,
|
|
81
|
+
RESOURCE_TYPE.LINK
|
|
82
|
+
].includes(e.value));
|
|
83
|
+
case RESOURCE_TYPE.INDEX: return resourceOptions.filter((e) => [
|
|
84
|
+
RESOURCE_TYPE.INDEX,
|
|
85
|
+
RESOURCE_TYPE.MENU,
|
|
86
|
+
RESOURCE_TYPE.IFRAME,
|
|
87
|
+
RESOURCE_TYPE.LINK,
|
|
88
|
+
RESOURCE_TYPE.NON_MENU
|
|
89
|
+
].includes(e.value));
|
|
90
|
+
case RESOURCE_TYPE.MENU:
|
|
91
|
+
case RESOURCE_TYPE.NON_MENU: return resourceOptions.filter((e) => [RESOURCE_TYPE.BUTTON, RESOURCE_TYPE.NON_MENU].includes(e.value));
|
|
92
|
+
case RESOURCE_TYPE.BUTTON:
|
|
93
|
+
case RESOURCE_TYPE.IFRAME:
|
|
94
|
+
case RESOURCE_TYPE.LINK: return [];
|
|
95
|
+
default: return resourceOptions.filter((e) => [RESOURCE_TYPE.APP, RESOURCE_TYPE.DYNAMIC_APP].includes(e.value));
|
|
96
|
+
}
|
|
97
|
+
}), { show: G, resetIncompatibleOptions: K } = useMetaForm(z), q = computed(() => z.value.meta?.iframe || z.value.meta?.link || ""), [J, Y] = useToggle(!1);
|
|
98
|
+
async function X(e, v) {
|
|
99
|
+
B.title = e, z.value = cloneDeep_default(B.initData), L(!0);
|
|
100
|
+
try {
|
|
101
|
+
if (Y(!0), e === ACTION.ADD_CHILD && (z.value.parentId = v?.id, z.value.type = W.value[0].value, K()), e === ACTION.EDIT) {
|
|
102
|
+
let e = await getRbacResourceInfo({ id: v?.id });
|
|
103
|
+
e.success && (z.value = e.data ?? {}, z.value.meta = {
|
|
104
|
+
...defaultMeta,
|
|
105
|
+
...e.data?.meta
|
|
106
|
+
}, K());
|
|
107
|
+
}
|
|
108
|
+
} finally {
|
|
109
|
+
Y(!1);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
let [Z, Q] = useToggle(!1);
|
|
113
|
+
function $() {
|
|
114
|
+
R.value?.validate().then(() => {
|
|
115
|
+
let e = cloneDeep_default({
|
|
116
|
+
...z.value,
|
|
117
|
+
icon: z.value.icon || void 0
|
|
118
|
+
});
|
|
119
|
+
G.value.dataPermission || (e.enableDataPermission = !1), G.value.devMode && z.value.meta?.isDev && console.warn("开发模式应用的子路由将不会在生产环境中注册到vue-router,请确保这是预期行为。"), e.meta?.cache && e.meta.cacheName && (e.meta.cache = e.meta.cacheName.split(",")), e.meta?.noCache && (e.meta.noCache = e.meta.noCache.split(",")), e.meta?.cache || delete e?.meta?.noCache, delete e?.meta?.cacheName;
|
|
120
|
+
let _ = B.title === ACTION.EDIT ? postRbacResourceResourceUpdate(e) : postRbacResourceAddResource({
|
|
121
|
+
parentId: "",
|
|
122
|
+
...e
|
|
123
|
+
});
|
|
124
|
+
Q(!0), _.then((e) => {
|
|
125
|
+
e?.success && (message.success(`${B.title}成功!`), L(!1), F("submit"));
|
|
126
|
+
}).finally(() => Q(!1));
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
return j({ open: X }), (e, _) => {
|
|
130
|
+
let y = DatabaseOutlined, b = FormItem, x = Col, S = Tag$1, C = RadioGroup, w = Row, T = Input$1, E = InputNumber, D = Textarea, O = Switch, k = Select, A = Form$1, j = Spin$1, M = Button, N = Space$1, P = Drawer;
|
|
131
|
+
return openBlock(), createBlock(P, {
|
|
132
|
+
open: unref(I),
|
|
133
|
+
"onUpdate:open": _[15] ||= (e) => isRef(I) ? I.value = e : null,
|
|
134
|
+
title: unref(B).title,
|
|
135
|
+
placement: "right",
|
|
136
|
+
width: 800,
|
|
137
|
+
"destroy-on-close": "",
|
|
138
|
+
"footer-style": { textAlign: "right" }
|
|
139
|
+
}, {
|
|
140
|
+
footer: withCtx(() => [createVNode(N, null, {
|
|
141
|
+
default: withCtx(() => [createVNode(M, { onClick: _[13] ||= (e) => unref(L)(!1) }, {
|
|
142
|
+
default: withCtx(() => [..._[17] ||= [createTextVNode(" 取消 ", -1)]]),
|
|
143
|
+
_: 1
|
|
144
|
+
}), createVNode(M, {
|
|
145
|
+
type: "primary",
|
|
146
|
+
loading: unref(Z),
|
|
147
|
+
onClick: _[14] ||= (e) => $()
|
|
148
|
+
}, {
|
|
149
|
+
default: withCtx(() => [..._[18] ||= [createTextVNode(" 提交 ", -1)]]),
|
|
150
|
+
_: 1
|
|
151
|
+
}, 8, ["loading"])]),
|
|
152
|
+
_: 1
|
|
153
|
+
})]),
|
|
154
|
+
default: withCtx(() => [createVNode(j, { spinning: unref(J) }, {
|
|
155
|
+
default: withCtx(() => [createVNode(A, {
|
|
156
|
+
ref_key: "formRef",
|
|
157
|
+
ref: R,
|
|
158
|
+
model: unref(z),
|
|
159
|
+
rules: V,
|
|
160
|
+
"label-col": { style: { width: "100px" } }
|
|
161
|
+
}, {
|
|
162
|
+
default: withCtx(() => [
|
|
163
|
+
createVNode(w, { gutter: 8 }, {
|
|
164
|
+
default: withCtx(() => [
|
|
165
|
+
unref(H)?.name ? (openBlock(), createBlock(x, {
|
|
166
|
+
key: 0,
|
|
167
|
+
span: 24
|
|
168
|
+
}, {
|
|
169
|
+
default: withCtx(() => [createVNode(b, { name: "parentId" }, {
|
|
170
|
+
label: withCtx(() => [createVNode(y, { class: "mr-1" }), _[16] ||= createTextVNode(" 父资源 ", -1)]),
|
|
171
|
+
default: withCtx(() => [createTextVNode(" " + toDisplayString(unref(H)?.name), 1)]),
|
|
172
|
+
_: 1
|
|
173
|
+
})]),
|
|
174
|
+
_: 1
|
|
175
|
+
})) : createCommentVNode("", !0),
|
|
176
|
+
createVNode(x, { span: 24 }, {
|
|
177
|
+
default: withCtx(() => [createVNode(b, {
|
|
178
|
+
label: "资源类型",
|
|
179
|
+
name: "type",
|
|
180
|
+
tooltip: unref(H)?.type ? "" : "动态应用为后端路由,应用为前端路由"
|
|
181
|
+
}, {
|
|
182
|
+
default: withCtx(() => [unref(B).title === unref(ACTION).EDIT ? (openBlock(), createElementBlock("div", _hoisted_1, [unref(z).type ? (openBlock(), createBlock(S, {
|
|
183
|
+
key: 0,
|
|
184
|
+
color: unref(RESOURCE_COLOR)[Number(unref(z).type)],
|
|
185
|
+
bordered: !1
|
|
186
|
+
}, {
|
|
187
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(W).find((e) => e.value === unref(z).type)?.label), 1)]),
|
|
188
|
+
_: 1
|
|
189
|
+
}, 8, ["color"])) : createCommentVNode("", !0)])) : (openBlock(), createBlock(C, {
|
|
190
|
+
key: 1,
|
|
191
|
+
value: unref(z).type,
|
|
192
|
+
"onUpdate:value": _[0] ||= (e) => unref(z).type = e,
|
|
193
|
+
options: unref(W),
|
|
194
|
+
"option-type": "button",
|
|
195
|
+
"button-style": "solid"
|
|
196
|
+
}, null, 8, ["value", "options"]))]),
|
|
197
|
+
_: 1
|
|
198
|
+
}, 8, ["tooltip"])]),
|
|
199
|
+
_: 1
|
|
200
|
+
}),
|
|
201
|
+
createVNode(x, { span: 24 }, {
|
|
202
|
+
default: withCtx(() => [createVNode(IconSelect_default, {
|
|
203
|
+
modelValue: unref(z),
|
|
204
|
+
"onUpdate:modelValue": _[1] ||= (e) => isRef(z) ? z.value = e : null
|
|
205
|
+
}, null, 8, ["modelValue"])]),
|
|
206
|
+
_: 1
|
|
207
|
+
})
|
|
208
|
+
]),
|
|
209
|
+
_: 1
|
|
210
|
+
}),
|
|
211
|
+
createVNode(w, { gutter: 8 }, {
|
|
212
|
+
default: withCtx(() => [
|
|
213
|
+
createVNode(x, { span: 12 }, {
|
|
214
|
+
default: withCtx(() => [createVNode(b, {
|
|
215
|
+
label: "资源名称",
|
|
216
|
+
name: "name"
|
|
217
|
+
}, {
|
|
218
|
+
default: withCtx(() => [createVNode(T, {
|
|
219
|
+
value: unref(z).name,
|
|
220
|
+
"onUpdate:value": _[2] ||= (e) => unref(z).name = e,
|
|
221
|
+
placeholder: "请输入资源名称",
|
|
222
|
+
maxlength: 128
|
|
223
|
+
}, null, 8, ["value"])]),
|
|
224
|
+
_: 1
|
|
225
|
+
})]),
|
|
226
|
+
_: 1
|
|
227
|
+
}),
|
|
228
|
+
createVNode(DynamicRoutesForm_default, {
|
|
229
|
+
modelValue: unref(z),
|
|
230
|
+
"onUpdate:modelValue": _[3] ||= (e) => isRef(z) ? z.value = e : null,
|
|
231
|
+
parent: unref(H)
|
|
232
|
+
}, null, 8, ["modelValue", "parent"]),
|
|
233
|
+
createVNode(x, { span: 12 }, {
|
|
234
|
+
default: withCtx(() => [createVNode(b, {
|
|
235
|
+
label: "资源编码",
|
|
236
|
+
name: "code"
|
|
237
|
+
}, {
|
|
238
|
+
default: withCtx(() => [createVNode(T, {
|
|
239
|
+
value: unref(z).code,
|
|
240
|
+
"onUpdate:value": _[4] ||= (e) => unref(z).code = e,
|
|
241
|
+
placeholder: "请输入资源编码(权限码)",
|
|
242
|
+
maxlength: 50
|
|
243
|
+
}, null, 8, ["value"])]),
|
|
244
|
+
_: 1
|
|
245
|
+
})]),
|
|
246
|
+
_: 1
|
|
247
|
+
}),
|
|
248
|
+
createVNode(x, { span: 12 }, {
|
|
249
|
+
default: withCtx(() => [createVNode(b, {
|
|
250
|
+
label: "接口权限",
|
|
251
|
+
name: "permissionCode"
|
|
252
|
+
}, {
|
|
253
|
+
default: withCtx(() => [createVNode(T, {
|
|
254
|
+
value: unref(z).permissionCode,
|
|
255
|
+
"onUpdate:value": _[5] ||= (e) => unref(z).permissionCode = e,
|
|
256
|
+
placeholder: "请输入接口权限(接口地址,多个使用逗号分隔)",
|
|
257
|
+
maxlength: 256
|
|
258
|
+
}, null, 8, ["value"])]),
|
|
259
|
+
_: 1
|
|
260
|
+
})]),
|
|
261
|
+
_: 1
|
|
262
|
+
}),
|
|
263
|
+
createVNode(x, { span: 12 }, {
|
|
264
|
+
default: withCtx(() => [createVNode(b, {
|
|
265
|
+
label: "显示顺序",
|
|
266
|
+
name: "sort"
|
|
267
|
+
}, {
|
|
268
|
+
default: withCtx(() => [createVNode(E, {
|
|
269
|
+
value: unref(z).sort,
|
|
270
|
+
"onUpdate:value": _[6] ||= (e) => unref(z).sort = e,
|
|
271
|
+
max: 999
|
|
272
|
+
}, null, 8, ["value"])]),
|
|
273
|
+
_: 1
|
|
274
|
+
})]),
|
|
275
|
+
_: 1
|
|
276
|
+
})
|
|
277
|
+
]),
|
|
278
|
+
_: 1
|
|
279
|
+
}),
|
|
280
|
+
unref(G).dynamic ? (openBlock(), createBlock(w, {
|
|
281
|
+
key: 0,
|
|
282
|
+
gutter: 8
|
|
283
|
+
}, {
|
|
284
|
+
default: withCtx(() => [createVNode(x, { span: 24 }, {
|
|
285
|
+
default: withCtx(() => [createVNode(b, {
|
|
286
|
+
label: "对接第三方",
|
|
287
|
+
name: "description",
|
|
288
|
+
"label-col": { span: 3 }
|
|
289
|
+
}, {
|
|
290
|
+
default: withCtx(() => [createVNode(unref(PartyLoginModal), {
|
|
291
|
+
modelValue: unref(z).meta.partyLogin,
|
|
292
|
+
"onUpdate:modelValue": _[7] ||= (e) => unref(z).meta.partyLogin = e,
|
|
293
|
+
"target-url": unref(q)
|
|
294
|
+
}, {
|
|
295
|
+
trigger: withCtx(() => [createVNode(T, {
|
|
296
|
+
value: unref(z).meta.partyLogin && unref(z).meta.partyLogin.length > 0 ? "已配置第三方登录流程" : "",
|
|
297
|
+
placeholder: "配置第三方登录流程",
|
|
298
|
+
readonly: ""
|
|
299
|
+
}, null, 8, ["value"])]),
|
|
300
|
+
_: 1
|
|
301
|
+
}, 8, ["modelValue", "target-url"])]),
|
|
302
|
+
_: 1
|
|
303
|
+
})]),
|
|
304
|
+
_: 1
|
|
305
|
+
})]),
|
|
306
|
+
_: 1
|
|
307
|
+
})) : createCommentVNode("", !0),
|
|
308
|
+
createVNode(w, { gutter: 8 }, {
|
|
309
|
+
default: withCtx(() => [createVNode(x, { span: 24 }, {
|
|
310
|
+
default: withCtx(() => [createVNode(b, {
|
|
311
|
+
label: "描述",
|
|
312
|
+
name: "description",
|
|
313
|
+
"label-col": { span: 3 }
|
|
314
|
+
}, {
|
|
315
|
+
default: withCtx(() => [createVNode(D, {
|
|
316
|
+
value: unref(z).description,
|
|
317
|
+
"onUpdate:value": _[8] ||= (e) => unref(z).description = e,
|
|
318
|
+
placeholder: "请输入描述",
|
|
319
|
+
maxlength: 255,
|
|
320
|
+
"auto-size": { minRows: 2 },
|
|
321
|
+
"show-count": ""
|
|
322
|
+
}, null, 8, ["value"])]),
|
|
323
|
+
_: 1
|
|
324
|
+
})]),
|
|
325
|
+
_: 1
|
|
326
|
+
})]),
|
|
327
|
+
_: 1
|
|
328
|
+
}),
|
|
329
|
+
unref(G).dataPermission ? (openBlock(), createBlock(w, {
|
|
330
|
+
key: 1,
|
|
331
|
+
gutter: 8
|
|
332
|
+
}, {
|
|
333
|
+
default: withCtx(() => [createVNode(x, { span: 8 }, {
|
|
334
|
+
default: withCtx(() => [createVNode(b, {
|
|
335
|
+
label: "启用数据权限",
|
|
336
|
+
name: "enableDataPermission"
|
|
337
|
+
}, {
|
|
338
|
+
default: withCtx(() => [createVNode(O, {
|
|
339
|
+
checked: unref(z).enableDataPermission,
|
|
340
|
+
"onUpdate:checked": _[9] ||= (e) => unref(z).enableDataPermission = e
|
|
341
|
+
}, null, 8, ["checked"])]),
|
|
342
|
+
_: 1
|
|
343
|
+
})]),
|
|
344
|
+
_: 1
|
|
345
|
+
}), createVNode(x, { span: 16 }, {
|
|
346
|
+
default: withCtx(() => [unref(z).enableDataPermission ? (openBlock(), createBlock(b, {
|
|
347
|
+
key: 0,
|
|
348
|
+
label: "数据权限规则",
|
|
349
|
+
name: "dataPermissionType"
|
|
350
|
+
}, {
|
|
351
|
+
default: withCtx(() => [createVNode(k, {
|
|
352
|
+
value: unref(z).dataPermissionType,
|
|
353
|
+
"onUpdate:value": _[10] ||= (e) => unref(z).dataPermissionType = e,
|
|
354
|
+
options: unref(dataPermissionOptions)
|
|
355
|
+
}, null, 8, ["value", "options"])]),
|
|
356
|
+
_: 1
|
|
357
|
+
})) : createCommentVNode("", !0)]),
|
|
358
|
+
_: 1
|
|
359
|
+
})]),
|
|
360
|
+
_: 1
|
|
361
|
+
})) : createCommentVNode("", !0),
|
|
362
|
+
createVNode(MetaForm_default, {
|
|
363
|
+
modelValue: unref(z),
|
|
364
|
+
"onUpdate:modelValue": _[11] ||= (e) => isRef(z) ? z.value = e : null
|
|
365
|
+
}, null, 8, ["modelValue"]),
|
|
366
|
+
createVNode(LayoutForm_default, {
|
|
367
|
+
modelValue: unref(z),
|
|
368
|
+
"onUpdate:modelValue": _[12] ||= (e) => isRef(z) ? z.value = e : null
|
|
369
|
+
}, null, 8, ["modelValue"])
|
|
370
|
+
]),
|
|
371
|
+
_: 1
|
|
372
|
+
}, 8, ["model"])]),
|
|
373
|
+
_: 1
|
|
374
|
+
}, 8, ["spinning"])]),
|
|
375
|
+
_: 1
|
|
376
|
+
}, 8, ["open", "title"]);
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
});
|
|
380
|
+
export { ResourceEdit_default as t };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Lt as useToggle, h as _plugin_vue_export_helper_default, yt as postRbacRoleRoleUserPage } from "./index.js";
|
|
2
|
+
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, isRef, normalizeStyle, openBlock, ref, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
3
|
+
import { theme } from "ant-design-vue";
|
|
4
|
+
import { Avatar, Drawer } from "ant-design-vue/es";
|
|
5
|
+
import { ProTable } from "@pubinfo/pro-components";
|
|
6
|
+
import './ResourceRelation.css';var _hoisted_1 = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "w-full truncate space-x-2"
|
|
9
|
+
}, ResourceRelation_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
10
|
+
name: "ResourceRelation",
|
|
11
|
+
__name: "ResourceRelation",
|
|
12
|
+
setup(g, { expose: x }) {
|
|
13
|
+
let { token: S } = theme.useToken(), [C, w] = useToggle(!1), T = ref("");
|
|
14
|
+
async function E(e) {
|
|
15
|
+
e.pageSize = 15, e.roleId = T.value;
|
|
16
|
+
let { current: g, pageSize: v, ...y } = e, b = await postRbacRoleRoleUserPage({
|
|
17
|
+
currentPage: g,
|
|
18
|
+
pageSize: v,
|
|
19
|
+
...y
|
|
20
|
+
});
|
|
21
|
+
return {
|
|
22
|
+
success: b.success,
|
|
23
|
+
data: b.data?.records ?? [],
|
|
24
|
+
total: b.data?.total ?? 0
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
let D = [{
|
|
28
|
+
title: "用户名称",
|
|
29
|
+
dataIndex: "realName",
|
|
30
|
+
ellipsis: !0
|
|
31
|
+
}, {
|
|
32
|
+
title: "组织名称",
|
|
33
|
+
dataIndex: "orgName",
|
|
34
|
+
ellipsis: !0
|
|
35
|
+
}];
|
|
36
|
+
function O(e) {
|
|
37
|
+
T.value = e.id || "", w(!0);
|
|
38
|
+
}
|
|
39
|
+
return x({ open: O }), (e, g) => {
|
|
40
|
+
let _ = Avatar, x = Drawer;
|
|
41
|
+
return openBlock(), createBlock(x, {
|
|
42
|
+
open: unref(C),
|
|
43
|
+
"onUpdate:open": g[0] ||= (e) => isRef(C) ? C.value = e : null,
|
|
44
|
+
title: "分配查看",
|
|
45
|
+
placement: "right",
|
|
46
|
+
width: 720,
|
|
47
|
+
"destroy-on-close": "",
|
|
48
|
+
"footer-style": { textAlign: "right" },
|
|
49
|
+
"body-style": {
|
|
50
|
+
paddingLeft: 0,
|
|
51
|
+
paddingRight: 0
|
|
52
|
+
}
|
|
53
|
+
}, {
|
|
54
|
+
default: withCtx(() => [createVNode(unref(ProTable), {
|
|
55
|
+
"row-key": "id",
|
|
56
|
+
request: E,
|
|
57
|
+
columns: D,
|
|
58
|
+
search: !1,
|
|
59
|
+
toolbar: !1,
|
|
60
|
+
"auto-height": ""
|
|
61
|
+
}, {
|
|
62
|
+
bodyCell: withCtx(({ column: e, text: g }) => [e.dataIndex === "realName" ? (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_, {
|
|
63
|
+
size: "small",
|
|
64
|
+
style: normalizeStyle({ backgroundColor: unref(S).colorPrimary })
|
|
65
|
+
}, {
|
|
66
|
+
default: withCtx(() => [createTextVNode(toDisplayString(g[0]), 1)]),
|
|
67
|
+
_: 2
|
|
68
|
+
}, 1032, ["style"]), createElementVNode("span", null, toDisplayString(g), 1)])) : createCommentVNode("", !0)]),
|
|
69
|
+
_: 1
|
|
70
|
+
})]),
|
|
71
|
+
_: 1
|
|
72
|
+
}, 8, ["open"]);
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
}), [["__scopeId", "data-v-f5867bc7"]]);
|
|
76
|
+
export { ResourceRelation_default as default };
|