@pubinfo/module-rbac 2.0.8 → 2.0.10
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-ZLey_5w7.js +4 -0
- package/dist/ComponentSelect.vue_vue_type_style_index_0_lang-CMEO08Uz.js +3981 -0
- package/dist/DynamicRoutesForm-DzOGoyf3.js +4 -0
- package/dist/DynamicRoutesForm.vue_vue_type_script_setup_true_lang-lpCaLpPL.js +179 -0
- package/dist/HCheckList-Dkxhu1br.js +4 -0
- package/dist/HCheckList.vue_vue_type_script_setup_true_lang-n_QczT28.js +41 -0
- package/dist/HoverCard-DASfDgI1.js +4 -0
- package/dist/HoverCard.vue_vue_type_script_setup_true_lang-BqEarhzP.js +62 -0
- package/dist/IconSelect-CkqLR5Dg.js +4 -0
- package/dist/IconSelect.css +1 -1
- package/dist/IconSelect.vue_vue_type_script_setup_true_lang-BoGxAoNd.js +703 -0
- package/dist/ImportExport-BD8o7IvB.js +4 -0
- package/dist/ImportExport.vue_vue_type_script_setup_true_lang-BzdP0ADd.js +456 -0
- package/dist/MetaForm-DtlyvzoM.js +364 -0
- package/dist/OrgAndPosition-DjF_gcp6.js +4 -0
- package/dist/OrgAndPosition.vue_vue_type_script_setup_true_lang-CFSDHn40.js +195 -0
- package/dist/ResourceEdit-WpEdbzaw.js +4 -0
- package/dist/ResourceEdit.vue_vue_type_script_setup_true_lang-id6jZAko.js +392 -0
- package/dist/ResourceRelation-26FnHEfU.js +112 -0
- package/dist/ResourceRelation-DGiGYy6V.js +91 -0
- package/dist/ResourceRelation.css +1 -1
- package/dist/ResourceRelation2.css +1 -1
- package/dist/RoleRelation-BuqK0cnl.js +4 -0
- package/dist/RoleRelation.vue_vue_type_script_setup_true_lang-BjEOlM2g.js +93 -0
- package/dist/RoleSelector.vue_vue_type_script_setup_true_lang-ZwsINUBu.js +352 -0
- package/dist/TenantEdit-B24X5nND.js +4 -0
- package/dist/TenantEdit.vue_vue_type_script_setup_true_lang-Bu5HcJJv.js +307 -0
- package/dist/UserAuthorization-Co6JV0py.js +274 -0
- package/dist/UserEdit-DkNVPVA4.js +4 -0
- package/dist/UserEdit.vue_vue_type_script_setup_true_lang-CFs0SxVJ.js +330 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/add-child-B9gDBQjZ.js +4 -0
- package/dist/animation_item-BZ1HNA6o.js +4 -0
- package/dist/animation_item.vue_vue_type_script_setup_true_lang-CmwThjHB.js +4858 -0
- package/dist/authority-B-0S66Fv.js +4 -0
- package/dist/authorize-DnyYvAo3.js +4 -0
- package/dist/blacklist-disable-DzVU8JLV.js +4 -0
- package/dist/blacklist-enable-BmWQR1i4.js +4 -0
- package/dist/browser-chrome-O9MASusF.js +4 -0
- package/dist/browser-edge-Dk6N_uRy.js +4 -0
- package/dist/browser-ie-Dtz7hQTC.js +4 -0
- package/dist/browser-other-Crzi8vov.js +4 -0
- package/dist/browser-safari-DF0pVlrn.js +4 -0
- package/dist/browserType-DQySszjD.js +4 -0
- package/dist/browserType.vue_vue_type_script_setup_true_lang-od1-AmrS.js +32 -0
- package/dist/cloneDeep-BOLZdR62.js +8 -0
- package/dist/createAndEditDataPermission-BhOLGGna.js +4 -0
- package/dist/createAndEditDataPermission.css +1 -1
- package/dist/createAndEditDataPermission.vue_vue_type_script_setup_true_lang-D5wInKwO.js +531 -0
- package/dist/dayjs.min-B2Yn1Frg.js +284 -0
- package/dist/drawerBlackWhiteList-Cr16yNs8.js +4 -0
- package/dist/drawerBlackWhiteList.vue_vue_type_script_setup_true_lang-BR6Yeiie.js +172 -0
- package/dist/drawerDictionary-BRGmcIFT.js +4 -0
- package/dist/drawerDictionary.vue_vue_type_script_setup_true_lang-0zsptmrP.js +146 -0
- package/dist/drawerDictionaryItem-CFBfyhEw.js +4 -0
- package/dist/drawerDictionaryItem.vue_vue_type_script_setup_true_lang-DeJblyyZ.js +158 -0
- package/dist/drawerGroup-Bs1Z8XPo.js +4 -0
- package/dist/drawerGroup.vue_vue_type_script_setup_true_lang-ClG-M0Ru.js +202 -0
- package/dist/drawerOrganization-Bs0YtPuo.js +4 -0
- package/dist/drawerOrganization.vue_vue_type_script_setup_true_lang-5YJaULAh.js +250 -0
- package/dist/drawerPosition-BYypSGoF.js +4 -0
- package/dist/drawerPosition.vue_vue_type_script_setup_true_lang-DcZ48XJV.js +181 -0
- package/dist/drawerRegion-BiIlYQ0Z.js +4 -0
- package/dist/drawerRegion.vue_vue_type_script_setup_true_lang-BwAj_RKw.js +233 -0
- package/dist/drawerRole-DHLv47_z.js +4 -0
- package/dist/drawerRole-DUWRM43j.js +4 -0
- package/dist/drawerRole-nmMTIQYS.js +4 -0
- package/dist/drawerRole.vue_vue_type_script_setup_true_lang-BET5ukoo.js +244 -0
- package/dist/drawerRole.vue_vue_type_script_setup_true_lang-BK3zjhop.js +197 -0
- package/dist/drawerRole.vue_vue_type_script_setup_true_lang-Surpf3ov.js +191 -0
- package/dist/edit-B69fMWPH.js +4 -0
- package/dist/enum-C9ihxJe7.js +4 -0
- package/dist/enum-CTUzwCYG.js +4 -0
- package/dist/enum-CjyX3J0o.js +18 -0
- package/dist/enum-DDKThkSw.js +24 -0
- package/dist/enum-DkSNwGbC.js +74 -0
- package/dist/gangweijiekou-Cs016LjQ.js +46 -0
- package/dist/icard-C4FaIC0V.js +4 -0
- package/dist/icon_animation-CfRxn8ne.js +4 -0
- package/dist/icon_breadcrumb-CAPCH16K.js +4 -0
- package/dist/icon_copyright-T9HuRtib.js +4 -0
- package/dist/icon_jt-BZgxEG_D.js +4 -0
- package/dist/icon_layout-BynQzkfn.js +4 -0
- package/dist/icon_mainpage-Bu_lyj_6.js +4 -0
- package/dist/icon_menu-D41hl_4p.js +4 -0
- package/dist/icon_page_size-Bioi61il.js +4 -0
- package/dist/icon_position_type-QpezzPDJ.js +4 -0
- package/dist/icon_safe_manage-ByWMOnwf.js +4 -0
- package/dist/icon_screen_scale-CuPyb7Ni.js +4 -0
- package/dist/icon_system_manage-BxRLv7Nw.js +4 -0
- package/dist/icon_tabbar-CetwmJHN.js +4 -0
- package/dist/icon_toolbar-DXt_LXp8.js +4 -0
- package/dist/icon_topbar-C186yIiC.js +4 -0
- package/dist/icon_watermark-DhaloO3m.js +4 -0
- package/dist/index-53oBz1jp.js +299 -0
- package/dist/index-B2tTTlBE.js +17698 -0
- package/dist/{toolbar_setting-rv8EGChc.js → index-BFx8F5lO.js} +144 -144
- package/dist/index-BIpmC999.js +169 -0
- package/dist/index-BUmMaC21.js +227 -0
- package/dist/index-BwWrE3dY.js +89 -0
- package/dist/index-C9hHp4Iw.js +197 -0
- package/dist/{watermark_setting-B_jC4rjv.js → index-CCw3ZJgQ.js} +254 -199
- package/dist/index-CJQB8KAz.js +186 -0
- package/dist/index-CLnFLvHy.js +193 -0
- package/dist/index-COWUocfL.js +119 -0
- package/dist/index-Cqkr8Rvk.js +189 -0
- package/dist/index-Csfu3kAr.js +171 -0
- package/dist/index-DECno0gv.js +196 -0
- package/dist/index-DVt5k9xh.js +145 -0
- package/dist/index-DdoOaWs-.js +269 -0
- package/dist/index-DfuGXjYh.js +169 -0
- package/dist/index-DoFuRlsc.js +181 -0
- package/dist/index-DwpOyfRe.js +152 -0
- package/dist/index-ZQuRR9fG.js +257 -0
- package/dist/index-ioZh8Qom.js +98 -0
- package/dist/index-rNYtJ7Om.js +195 -0
- package/dist/index-x9Iim2eD.js +247 -0
- package/dist/index-y9CQTo95.js +351 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7154 -7048
- package/dist/index10.css +1 -0
- package/dist/index11.css +1 -0
- package/dist/index14.css +1 -0
- package/dist/index17.css +1 -0
- package/dist/index18.css +1 -0
- package/dist/index4.css +1 -0
- package/dist/index5.css +1 -0
- package/dist/index6.css +1 -0
- package/dist/index8.css +1 -0
- package/dist/index9.css +1 -0
- package/dist/itemlist-zTYJtoSs.js +172 -0
- package/dist/jiaosejiekou-p42Hm9h3.js +58 -0
- package/dist/log-center-Bw9UlmOq.js +4 -0
- package/dist/loginHistoryDetail-B6eI-TmJ.js +105 -0
- package/dist/login_history-B4Q1NCJn.js +222 -0
- package/dist/login_history.css +1 -1
- package/dist/not-data-BDuvYboz.js +4 -0
- package/dist/operateHistoryDetail-CLZ9lyua.js +123 -0
- package/dist/operate_history-KASZ7_JO.js +218 -0
- package/dist/operate_history.css +1 -1
- package/dist/org-main-DfWpX8Wv.js +4 -0
- package/dist/org-unmain-DrX63NH5.js +4 -0
- package/dist/remove-D2ES5tEr.js +4 -0
- package/dist/resource-app-1lqF6C6F.js +4 -0
- package/dist/resource-btn-Cfo6ddAY.js +4 -0
- package/dist/resource-dynamic-BAwkCWS4.js +4 -0
- package/dist/resource-index-BS4V5uy8.js +4 -0
- package/dist/resource-menu-CEWU8Iis.js +4 -0
- package/dist/resource-micro-9S0h5AlK.js +4 -0
- package/dist/resource-nonmenu-BZ9e4ynT.js +4 -0
- package/dist/setItem-BwMHXOUm.js +87 -0
- package/dist/setItem.css +1 -1
- package/dist/setting-manage-Xj_s0OoK.js +4 -0
- package/dist/shujuquanxianzhubiaokongzhiqi-SpN37fyO.js +65 -0
- package/dist/theme-check-mark-D58efagJ.js +4 -0
- package/dist/theme-title-CYUX2SBW.js +4 -0
- package/dist/useAppAndResource-38HCqYKa.js +55 -0
- package/dist/utils/dict.d.ts +6 -0
- package/dist/view-BCWU0JWM.js +4 -0
- package/dist/views/tenant/components/TenantEdit.vue.d.ts +1 -37
- package/dist/views/tenant/index.vue.d.ts +1 -37
- package/dist/xitongpeizhifuwu-BoCbGEk7.js +23 -0
- package/dist/zddata-DQP5Kx3c.js +4 -0
- package/dist/ziyuanjiekou-BC65-bFK.js +69 -0
- package/dist/zuzhijiaosebiaokongzhiqi-Cj4ZjkfZ.js +28 -0
- package/dist/zy_checked-Bb6zRsYe.js +4 -0
- package/dist/zy_default-BGjhoury.js +4 -0
- package/package.json +4 -4
- package/src/index.ts +1 -0
- package/src/utils/dict.ts +21 -0
- package/dist/ComponentSelect-HWE3OTC2.js +0 -2
- package/dist/ComponentSelect-lvLZA7v3.js +0 -3686
- package/dist/DynamicRoutesForm--yCRC-TS.js +0 -4
- package/dist/DynamicRoutesForm-CjrPnJvX.js +0 -169
- package/dist/HCheckList-CmS0Zgjk.js +0 -37
- package/dist/HCheckList-Cze_TkQp.js +0 -2
- package/dist/HoverCard-B79q5sly.js +0 -43
- package/dist/HoverCard-U5WTpvFy.js +0 -2
- package/dist/IconSelect-B0CeuV_a.js +0 -4
- package/dist/IconSelect-BRVj6gBy.js +0 -681
- package/dist/ImportExport-BNLVq0fU.js +0 -4
- package/dist/ImportExport-HsLm0AJH.js +0 -354
- package/dist/MetaForm-BSGuZXgj.js +0 -5
- package/dist/MetaForm-DErrpELP.js +0 -300
- package/dist/OrgAndPosition-CF7ZJtNB.js +0 -2
- package/dist/OrgAndPosition-vnBrq-fn.js +0 -188
- package/dist/ResourceEdit-DGiYedP0.js +0 -349
- package/dist/ResourceEdit-DZP72kyb.js +0 -11
- package/dist/ResourceRelation-BxGFnyVc.js +0 -78
- package/dist/ResourceRelation-DCjMjLpg.js +0 -3
- package/dist/ResourceRelation-DhML3AFe.js +0 -93
- package/dist/ResourceSelector-BAZ-oIRV.js +0 -247
- package/dist/ResourceSelector.css +0 -1
- package/dist/RoleRelation-Bxyd5aMn.js +0 -2
- package/dist/RoleRelation-CcgE6TEG.js +0 -79
- package/dist/RoleSelector-QpcO4KoV.js +0 -279
- package/dist/TenantEdit-CRhsWhhw.js +0 -253
- package/dist/TenantEdit-egH6GbbS.js +0 -6
- package/dist/UserAuthorization-B0lHeayD.js +0 -4
- package/dist/UserAuthorization-D-LcHhsj.js +0 -238
- package/dist/UserEdit-6MPOr7VK.js +0 -336
- package/dist/UserEdit-DGefh7mk.js +0 -4
- package/dist/_plugin-vue_export-helper-DziIhCOI.js +0 -6
- package/dist/add-child-BqjLtFNF.js +0 -2
- package/dist/animation_item-C3pkH-cB.js +0 -2
- package/dist/animation_item-Cg-CB3zX.js +0 -4536
- package/dist/authority-BCFCPQkb.js +0 -2
- package/dist/authorize-BykMzt1r.js +0 -2
- package/dist/blackWhiteList-CFnWvnIK.js +0 -213
- package/dist/blackWhiteList.css +0 -1
- package/dist/blacklist-disable-COoLZMSA.js +0 -2
- package/dist/blacklist-enable-LZep1trj.js +0 -2
- package/dist/breadcrumb_setting-BbdvbC4M.js +0 -111
- package/dist/browser-chrome-D0rex7Ir.js +0 -2
- package/dist/browser-edge-KCb_AIL5.js +0 -2
- package/dist/browser-ie-C1znjJM-.js +0 -2
- package/dist/browser-other-C4er8PkV.js +0 -2
- package/dist/browser-safari-BPRC1TV-.js +0 -2
- package/dist/browserType-BGl2j5RW.js +0 -2
- package/dist/browserType-E4RCiZfN.js +0 -26
- package/dist/chunk-B3eAFu3c.js +0 -11
- package/dist/cloneDeep-BnvyNhik.js +0 -7
- package/dist/components/OrgTree/index.vue.d.ts +0 -5
- package/dist/configData-DQOHeFW2.js +0 -86
- package/dist/createAndEditDataPermission-39GKHtzB.js +0 -443
- package/dist/createAndEditDataPermission-BBSBwjG4.js +0 -8
- package/dist/data-permission-35wTSMh2.js +0 -156
- package/dist/dayjs.min-CdDcH50N.js +0 -297
- package/dist/dictionary-BOuYUlfU.js +0 -180
- package/dist/drawerBlackWhiteList-BZccd_CZ.js +0 -125
- package/dist/drawerBlackWhiteList-Bz2trn-w.js +0 -3
- package/dist/drawerDictionary-C2tWu1lt.js +0 -130
- package/dist/drawerDictionary-Cx-QoHn4.js +0 -4
- package/dist/drawerDictionaryItem-C4mPbQEA.js +0 -142
- package/dist/drawerDictionaryItem-DhwinX1a.js +0 -4
- package/dist/drawerGroup-BUx0cx6i.js +0 -3
- package/dist/drawerGroup-DFeiJOBA.js +0 -188
- package/dist/drawerOrganization-BEdhq7Z2.js +0 -251
- package/dist/drawerOrganization-ijhmuc8a.js +0 -3
- package/dist/drawerPosition-shL7hfwJ.js +0 -3
- package/dist/drawerPosition-xI2PyE2x.js +0 -170
- package/dist/drawerRegion-BwWGUHaY.js +0 -187
- package/dist/drawerRegion-Dl1qXPXz.js +0 -3
- package/dist/drawerRole-C1I6-hhT.js +0 -159
- package/dist/drawerRole-CZpTYFS3.js +0 -172
- package/dist/drawerRole-CgTIHRCA.js +0 -3
- package/dist/drawerRole-Cmrob1UJ.js +0 -5
- package/dist/drawerRole-D2UxgYXQ.js +0 -215
- package/dist/drawerRole-DynkfVMp.js +0 -6
- package/dist/edit-C9HH0bNg.js +0 -2
- package/dist/enum-B1DCzyaW.js +0 -4
- package/dist/enum-BMY6bmPA.js +0 -54
- package/dist/enum-BWzxzuim.js +0 -23
- package/dist/enum-CYW8g64p.js +0 -61
- package/dist/enum-VH4_jOj5.js +0 -4
- package/dist/group-DOmpCW1J.js +0 -174
- package/dist/group.css +0 -1
- package/dist/icard-FW0Ro50-.js +0 -2
- package/dist/icon_animation-DuNUKCIP.js +0 -2
- package/dist/icon_breadcrumb-DrPNYW5B.js +0 -2
- package/dist/icon_copyright-Di3Yr0PZ.js +0 -2
- package/dist/icon_jt-C4rQLl9Y.js +0 -2
- package/dist/icon_layout-5L9E7uN2.js +0 -2
- package/dist/icon_mainpage-DMKqRgmE.js +0 -2
- package/dist/icon_menu-Cp7-Zght.js +0 -2
- package/dist/icon_page_size-Dc0zqT2W.js +0 -2
- package/dist/icon_position_type-DH2qxQQE.js +0 -2
- package/dist/icon_safe_manage-DXYWl1y-.js +0 -2
- package/dist/icon_screen_scale-DwC6qqx2.js +0 -2
- package/dist/icon_system_manage-BYTldLly.js +0 -2
- package/dist/icon_tabbar-CxffARwI.js +0 -2
- package/dist/icon_toolbar-CsxnTrNJ.js +0 -2
- package/dist/icon_topbar-DS-oEZFA.js +0 -2
- package/dist/icon_watermark-DDXsHlfQ.js +0 -2
- package/dist/itemlist-QBWRLjTd.js +0 -157
- package/dist/layout_setting-BZt_X9vU.js +0 -74
- package/dist/layout_setting.css +0 -1
- package/dist/log-center-BFjZ4IE1.js +0 -2
- package/dist/log-hgUXTuhy.js +0 -14
- package/dist/loginHistoryDetail-BAYuSqvw.js +0 -78
- package/dist/loginHistoryDetail-DiuNa6Sv.js +0 -4
- package/dist/login_history-NTSjr6e5.js +0 -196
- package/dist/menu_setting-CkoDAYJD.js +0 -158
- package/dist/not-data-Bw8FlpyB.js +0 -2
- package/dist/not-data-OpiacaSk.js +0 -2
- package/dist/operateHistoryDetail-DiuqMTkN.js +0 -90
- package/dist/operateHistoryDetail-r30ZBNqw.js +0 -4
- package/dist/operate_history-CXoZlYaT.js +0 -191
- package/dist/org-main-D5Isevbc.js +0 -2
- package/dist/org-unmain-BHBqSuCz.js +0 -2
- package/dist/organization-DmGbwqHI.js +0 -15605
- package/dist/organization.css +0 -1
- package/dist/other_setting-BqWwlJ2u.js +0 -220
- package/dist/other_setting.css +0 -1
- package/dist/page_animation_setting-g3bkn7vf.js +0 -117
- package/dist/page_animation_setting.css +0 -1
- package/dist/page_w_setting-Db9pP86g.js +0 -69
- package/dist/page_w_setting.css +0 -1
- package/dist/position-Bq4B3_PK.js +0 -168
- package/dist/region-DfxAE8eK.js +0 -185
- package/dist/remove-DKMMsJNq.js +0 -2
- package/dist/resource-app-DZwdNG6F.js +0 -2
- package/dist/resource-btn-DPX0oM2L.js +0 -2
- package/dist/resource-dynamic-Cb_vjMjt.js +0 -2
- package/dist/resource-index-ah4NpEob.js +0 -2
- package/dist/resource-menu-CzWI03EU.js +0 -2
- package/dist/resource-micro-Ca0NS7j_.js +0 -2
- package/dist/resource-nonmenu-Deitjo_5.js +0 -2
- package/dist/resource-rP8m6eP_.js +0 -273
- package/dist/role-DfWw95NS.js +0 -196
- package/dist/role_group-B4J4RWQt.js +0 -172
- package/dist/routeSystem-Dg0b6mAl.js +0 -2
- package/dist/safe_setting-uj9p_wW0.js +0 -232
- package/dist/setItem-C_jx_5fd.js +0 -5
- package/dist/setItem-DnJuD3C0.js +0 -77
- package/dist/setting-manage-B3vaM0w1.js +0 -2
- package/dist/stores-D6JJmBEU.js +0 -2
- package/dist/tabbar_setting-DBPggZ6Q.js +0 -142
- package/dist/tenant-Dbydqvrz.js +0 -183
- package/dist/theme-check-mark-BK7E8lqd.js +0 -2
- package/dist/theme-title-aqbHq846.js +0 -2
- package/dist/theme_setting-3l5L7tXt.js +0 -117
- package/dist/theme_setting.css +0 -1
- package/dist/useAppAndResource-CeMCjg2v.js +0 -57
- package/dist/user-DQE6N5EP.js +0 -345
- package/dist/view-C6Eo1zRL.js +0 -2
- package/dist/watermark_setting.css +0 -1
- package/dist/zddata-fjEtQ3lZ.js +0 -2
- package/dist/zy_checked-DTsDCC94.js +0 -2
- package/dist/zy_default-BaIuMKw-.js +0 -2
- /package/dist/{safe_setting.css → index12.css} +0 -0
- /package/dist/{tabbar_setting.css → index13.css} +0 -0
- /package/dist/{toolbar_setting.css → index15.css} +0 -0
- /package/dist/{user.css → index16.css} +0 -0
- /package/dist/{breadcrumb_setting.css → index2.css} +0 -0
- /package/dist/{data-permission.css → index3.css} +0 -0
- /package/dist/{menu_setting.css → index7.css} +0 -0
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
import { Drawer as oe, Spin as ne, Form as le, Row as se, Col as re, FormItem as ue, Tag as ie, RadioGroup as me, Input as de, InputNumber as pe, Textarea as ce, Switch as fe, Select as _e, Space as ve, Button as ge } from "ant-design-vue/es";
|
|
2
|
+
import { DatabaseOutlined as be } from "@ant-design/icons-vue";
|
|
3
|
+
import { defineComponent as Ne, ref as x, reactive as ye, computed as w, createBlock as c, openBlock as d, unref as a, isRef as g, withCtx as n, createVNode as o, createCommentVNode as b, createTextVNode as f, toDisplayString as k, createElementBlock as Ie } from "vue";
|
|
4
|
+
import { message as De } from "ant-design-vue";
|
|
5
|
+
import { u as C } from "./index.js";
|
|
6
|
+
import { d as Pe, p as Re, e as Ee } from "./ziyuanjiekou-BC65-bFK.js";
|
|
7
|
+
import { D as Ce, b as Ue } from "./enum-DkSNwGbC.js";
|
|
8
|
+
import { r as N, A as y, R as Ae } from "./enum-CjyX3J0o.js";
|
|
9
|
+
import { u as Oe, M as Te, d as Me } from "./MetaForm-DtlyvzoM.js";
|
|
10
|
+
import { _ as xe } from "./DynamicRoutesForm.vue_vue_type_script_setup_true_lang-lpCaLpPL.js";
|
|
11
|
+
import { _ as we } from "./IconSelect.vue_vue_type_script_setup_true_lang-BoGxAoNd.js";
|
|
12
|
+
import { c as S } from "./cloneDeep-BOLZdR62.js";
|
|
13
|
+
import { RESOURCE_TYPE as r } from "pubinfo";
|
|
14
|
+
const ke = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "flex items-center space-x-1"
|
|
17
|
+
}, He = /* @__PURE__ */ Ne({
|
|
18
|
+
name: "ResourceEdit",
|
|
19
|
+
__name: "ResourceEdit",
|
|
20
|
+
props: {
|
|
21
|
+
dataSource: {}
|
|
22
|
+
},
|
|
23
|
+
emits: ["submit"],
|
|
24
|
+
setup(V, { expose: L, emit: F }) {
|
|
25
|
+
const h = V, B = F, [I, D] = C(!1), U = x(), t = x({}), p = ye({
|
|
26
|
+
title: "",
|
|
27
|
+
record: {},
|
|
28
|
+
initData: {
|
|
29
|
+
type: r.DYNAMIC_APP,
|
|
30
|
+
sort: 0,
|
|
31
|
+
enable: !0,
|
|
32
|
+
enableDataPermission: !1,
|
|
33
|
+
dataPermissionType: Ce.ALL,
|
|
34
|
+
meta: {
|
|
35
|
+
url: "",
|
|
36
|
+
component: ""
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}), q = {
|
|
40
|
+
name: [{ required: !0, message: "请输入资源名称", trigger: "blur" }],
|
|
41
|
+
type: [{ required: !0, message: "请选择资源类型", trigger: "change" }],
|
|
42
|
+
code: [{ required: !0, message: "请输入资源编码", trigger: "blur" }],
|
|
43
|
+
sort: [{ type: "number", required: !0, message: "请输入排序", trigger: "blur" }],
|
|
44
|
+
enable: [{ type: "boolean", required: !0, message: "请选择是否启用", trigger: "change" }]
|
|
45
|
+
}, _ = w(() => Y(h.dataSource, (l) => l.id === t.value.parentId) ?? {});
|
|
46
|
+
function Y(l, e) {
|
|
47
|
+
const i = [...l];
|
|
48
|
+
for (const u of i) {
|
|
49
|
+
if (e(u))
|
|
50
|
+
return u;
|
|
51
|
+
u.children && i.push(...u.children);
|
|
52
|
+
}
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
const P = w(() => {
|
|
56
|
+
switch (_.value?.type) {
|
|
57
|
+
case r.APP:
|
|
58
|
+
case r.MICRO_APP:
|
|
59
|
+
case r.DYNAMIC_APP:
|
|
60
|
+
return N.filter((l) => [r.INDEX, r.MENU, r.IFRAME, r.LINK].includes(l.value));
|
|
61
|
+
case r.INDEX:
|
|
62
|
+
return N.filter((l) => [r.INDEX, r.MENU, r.IFRAME, r.LINK, r.NON_MENU].includes(l.value));
|
|
63
|
+
case r.MENU:
|
|
64
|
+
case r.NON_MENU:
|
|
65
|
+
return N.filter((l) => [r.BUTTON, r.NON_MENU].includes(l.value));
|
|
66
|
+
case r.BUTTON:
|
|
67
|
+
case r.IFRAME:
|
|
68
|
+
case r.LINK:
|
|
69
|
+
return [];
|
|
70
|
+
default:
|
|
71
|
+
return N.filter((l) => [
|
|
72
|
+
r.APP,
|
|
73
|
+
/* RESOURCE_TYPE.MICRO_APP, */
|
|
74
|
+
r.DYNAMIC_APP
|
|
75
|
+
].includes(l.value));
|
|
76
|
+
}
|
|
77
|
+
}), { show: R, resetIncompatibleOptions: A } = Oe(t), [$, O] = C(!1);
|
|
78
|
+
async function K(l, e) {
|
|
79
|
+
p.title = l, t.value = S(p.initData), D(!0);
|
|
80
|
+
try {
|
|
81
|
+
if (O(!0), l === y.ADD_CHILD && (t.value.parentId = e?.id, t.value.type = P.value[0].value, A()), l === y.EDIT) {
|
|
82
|
+
const i = await Pe({ id: e?.id });
|
|
83
|
+
i.success && (t.value = i.data ?? {}, t.value.meta = { ...Me, ...i.data?.meta }, A());
|
|
84
|
+
}
|
|
85
|
+
} finally {
|
|
86
|
+
O(!1);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
const [X, T] = C(!1);
|
|
90
|
+
function z() {
|
|
91
|
+
U.value?.validate().then(() => {
|
|
92
|
+
const l = S({
|
|
93
|
+
...t.value,
|
|
94
|
+
icon: t.value.icon || void 0
|
|
95
|
+
});
|
|
96
|
+
R.value.dataPermission || (l.enableDataPermission = !1), R.value.devMode && t.value.meta?.isDev && console.warn("开发模式应用的子路由将不会在生产环境中注册到vue-router,请确保这是预期行为。"), l.meta?.cache && l.meta.cacheName && (l.meta.cache = l.meta.cacheName.split(",")), l.meta?.noCache && (l.meta.noCache = l.meta.noCache.split(",")), l.meta?.cache || delete l?.meta?.noCache, delete l?.meta?.cacheName;
|
|
97
|
+
const e = p.title === y.EDIT ? Re(l) : Ee({ parentId: "", ...l });
|
|
98
|
+
T(!0), e.then((i) => {
|
|
99
|
+
i?.success && (De.success(`${p.title}成功!`), D(!1), B("submit"));
|
|
100
|
+
}).finally(() => T(!1));
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
return L({
|
|
104
|
+
open: K
|
|
105
|
+
}), (l, e) => {
|
|
106
|
+
const i = be, u = ue, m = re, G = ie, H = me, v = se, E = de, j = pe, J = ce, Q = fe, W = _e, Z = le, ee = ne, M = ge, te = ve, ae = oe;
|
|
107
|
+
return d(), c(ae, {
|
|
108
|
+
open: a(I),
|
|
109
|
+
"onUpdate:open": e[13] || (e[13] = (s) => g(I) ? I.value = s : null),
|
|
110
|
+
title: a(p).title,
|
|
111
|
+
placement: "right",
|
|
112
|
+
width: 800,
|
|
113
|
+
"destroy-on-close": "",
|
|
114
|
+
"footer-style": { textAlign: "right" }
|
|
115
|
+
}, {
|
|
116
|
+
footer: n(() => [
|
|
117
|
+
o(te, null, {
|
|
118
|
+
default: n(() => [
|
|
119
|
+
o(M, {
|
|
120
|
+
onClick: e[11] || (e[11] = (s) => a(D)(!1))
|
|
121
|
+
}, {
|
|
122
|
+
default: n(() => e[15] || (e[15] = [
|
|
123
|
+
f(" 取消 ")
|
|
124
|
+
])),
|
|
125
|
+
_: 1,
|
|
126
|
+
__: [15]
|
|
127
|
+
}),
|
|
128
|
+
o(M, {
|
|
129
|
+
type: "primary",
|
|
130
|
+
loading: a(X),
|
|
131
|
+
onClick: e[12] || (e[12] = (s) => z())
|
|
132
|
+
}, {
|
|
133
|
+
default: n(() => e[16] || (e[16] = [
|
|
134
|
+
f(" 提交 ")
|
|
135
|
+
])),
|
|
136
|
+
_: 1,
|
|
137
|
+
__: [16]
|
|
138
|
+
}, 8, ["loading"])
|
|
139
|
+
]),
|
|
140
|
+
_: 1
|
|
141
|
+
})
|
|
142
|
+
]),
|
|
143
|
+
default: n(() => [
|
|
144
|
+
o(ee, { spinning: a($) }, {
|
|
145
|
+
default: n(() => [
|
|
146
|
+
o(Z, {
|
|
147
|
+
ref_key: "formRef",
|
|
148
|
+
ref: U,
|
|
149
|
+
model: a(t),
|
|
150
|
+
rules: q,
|
|
151
|
+
"label-col": { style: { width: "100px" } }
|
|
152
|
+
}, {
|
|
153
|
+
default: n(() => [
|
|
154
|
+
o(v, { gutter: 8 }, {
|
|
155
|
+
default: n(() => [
|
|
156
|
+
a(_)?.name ? (d(), c(m, {
|
|
157
|
+
key: 0,
|
|
158
|
+
span: 24
|
|
159
|
+
}, {
|
|
160
|
+
default: n(() => [
|
|
161
|
+
o(u, { name: "parentId" }, {
|
|
162
|
+
label: n(() => [
|
|
163
|
+
o(i, { class: "mr-1" }),
|
|
164
|
+
e[14] || (e[14] = f(" 父资源 "))
|
|
165
|
+
]),
|
|
166
|
+
default: n(() => [
|
|
167
|
+
f(" " + k(a(_)?.name), 1)
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
})
|
|
171
|
+
]),
|
|
172
|
+
_: 1
|
|
173
|
+
})) : b("", !0),
|
|
174
|
+
o(m, { span: 24 }, {
|
|
175
|
+
default: n(() => [
|
|
176
|
+
o(u, {
|
|
177
|
+
label: "资源类型",
|
|
178
|
+
name: "type"
|
|
179
|
+
}, {
|
|
180
|
+
default: n(() => [
|
|
181
|
+
a(p).title === a(y).EDIT ? (d(), Ie("div", ke, [
|
|
182
|
+
a(t).type ? (d(), c(G, {
|
|
183
|
+
key: 0,
|
|
184
|
+
color: a(Ae)[Number(a(t).type)],
|
|
185
|
+
bordered: !1
|
|
186
|
+
}, {
|
|
187
|
+
default: n(() => [
|
|
188
|
+
f(k(a(P).find((s) => s.value === a(t).type)?.label), 1)
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
}, 8, ["color"])) : b("", !0)
|
|
192
|
+
])) : (d(), c(H, {
|
|
193
|
+
key: 1,
|
|
194
|
+
value: a(t).type,
|
|
195
|
+
"onUpdate:value": e[0] || (e[0] = (s) => a(t).type = s),
|
|
196
|
+
options: a(P),
|
|
197
|
+
"option-type": "button",
|
|
198
|
+
"button-style": "solid"
|
|
199
|
+
}, null, 8, ["value", "options"]))
|
|
200
|
+
]),
|
|
201
|
+
_: 1
|
|
202
|
+
})
|
|
203
|
+
]),
|
|
204
|
+
_: 1
|
|
205
|
+
}),
|
|
206
|
+
o(m, { span: 24 }, {
|
|
207
|
+
default: n(() => [
|
|
208
|
+
o(we, {
|
|
209
|
+
modelValue: a(t),
|
|
210
|
+
"onUpdate:modelValue": e[1] || (e[1] = (s) => g(t) ? t.value = s : null)
|
|
211
|
+
}, null, 8, ["modelValue"])
|
|
212
|
+
]),
|
|
213
|
+
_: 1
|
|
214
|
+
})
|
|
215
|
+
]),
|
|
216
|
+
_: 1
|
|
217
|
+
}),
|
|
218
|
+
o(v, { gutter: 8 }, {
|
|
219
|
+
default: n(() => [
|
|
220
|
+
o(m, { span: 12 }, {
|
|
221
|
+
default: n(() => [
|
|
222
|
+
o(u, {
|
|
223
|
+
label: "资源名称",
|
|
224
|
+
name: "name"
|
|
225
|
+
}, {
|
|
226
|
+
default: n(() => [
|
|
227
|
+
o(E, {
|
|
228
|
+
value: a(t).name,
|
|
229
|
+
"onUpdate:value": e[2] || (e[2] = (s) => a(t).name = s),
|
|
230
|
+
placeholder: "请输入资源名称",
|
|
231
|
+
maxlength: 128
|
|
232
|
+
}, null, 8, ["value"])
|
|
233
|
+
]),
|
|
234
|
+
_: 1
|
|
235
|
+
})
|
|
236
|
+
]),
|
|
237
|
+
_: 1
|
|
238
|
+
}),
|
|
239
|
+
o(xe, {
|
|
240
|
+
modelValue: a(t),
|
|
241
|
+
"onUpdate:modelValue": e[3] || (e[3] = (s) => g(t) ? t.value = s : null),
|
|
242
|
+
parent: a(_)
|
|
243
|
+
}, null, 8, ["modelValue", "parent"]),
|
|
244
|
+
o(m, { span: 12 }, {
|
|
245
|
+
default: n(() => [
|
|
246
|
+
o(u, {
|
|
247
|
+
label: "资源编码",
|
|
248
|
+
name: "code"
|
|
249
|
+
}, {
|
|
250
|
+
default: n(() => [
|
|
251
|
+
o(E, {
|
|
252
|
+
value: a(t).code,
|
|
253
|
+
"onUpdate:value": e[4] || (e[4] = (s) => a(t).code = s),
|
|
254
|
+
placeholder: "请输入资源编码(权限码)",
|
|
255
|
+
maxlength: 50
|
|
256
|
+
}, null, 8, ["value"])
|
|
257
|
+
]),
|
|
258
|
+
_: 1
|
|
259
|
+
})
|
|
260
|
+
]),
|
|
261
|
+
_: 1
|
|
262
|
+
}),
|
|
263
|
+
o(m, { span: 12 }, {
|
|
264
|
+
default: n(() => [
|
|
265
|
+
o(u, {
|
|
266
|
+
label: "接口权限",
|
|
267
|
+
name: "permissionCode"
|
|
268
|
+
}, {
|
|
269
|
+
default: n(() => [
|
|
270
|
+
o(E, {
|
|
271
|
+
value: a(t).permissionCode,
|
|
272
|
+
"onUpdate:value": e[5] || (e[5] = (s) => a(t).permissionCode = s),
|
|
273
|
+
placeholder: "请输入接口权限(接口地址,多个使用逗号分隔)",
|
|
274
|
+
maxlength: 256
|
|
275
|
+
}, null, 8, ["value"])
|
|
276
|
+
]),
|
|
277
|
+
_: 1
|
|
278
|
+
})
|
|
279
|
+
]),
|
|
280
|
+
_: 1
|
|
281
|
+
}),
|
|
282
|
+
o(m, { span: 12 }, {
|
|
283
|
+
default: n(() => [
|
|
284
|
+
o(u, {
|
|
285
|
+
label: "显示顺序",
|
|
286
|
+
name: "sort"
|
|
287
|
+
}, {
|
|
288
|
+
default: n(() => [
|
|
289
|
+
o(j, {
|
|
290
|
+
value: a(t).sort,
|
|
291
|
+
"onUpdate:value": e[6] || (e[6] = (s) => a(t).sort = s),
|
|
292
|
+
max: 999
|
|
293
|
+
}, null, 8, ["value"])
|
|
294
|
+
]),
|
|
295
|
+
_: 1
|
|
296
|
+
})
|
|
297
|
+
]),
|
|
298
|
+
_: 1
|
|
299
|
+
})
|
|
300
|
+
]),
|
|
301
|
+
_: 1
|
|
302
|
+
}),
|
|
303
|
+
o(v, { gutter: 8 }, {
|
|
304
|
+
default: n(() => [
|
|
305
|
+
o(m, { span: 24 }, {
|
|
306
|
+
default: n(() => [
|
|
307
|
+
o(u, {
|
|
308
|
+
label: "描述",
|
|
309
|
+
name: "description",
|
|
310
|
+
"label-col": { span: 3 }
|
|
311
|
+
}, {
|
|
312
|
+
default: n(() => [
|
|
313
|
+
o(J, {
|
|
314
|
+
value: a(t).description,
|
|
315
|
+
"onUpdate:value": e[7] || (e[7] = (s) => a(t).description = s),
|
|
316
|
+
placeholder: "请输入描述",
|
|
317
|
+
maxlength: 255,
|
|
318
|
+
"auto-size": { minRows: 2 },
|
|
319
|
+
"show-count": ""
|
|
320
|
+
}, null, 8, ["value"])
|
|
321
|
+
]),
|
|
322
|
+
_: 1
|
|
323
|
+
})
|
|
324
|
+
]),
|
|
325
|
+
_: 1
|
|
326
|
+
})
|
|
327
|
+
]),
|
|
328
|
+
_: 1
|
|
329
|
+
}),
|
|
330
|
+
a(R).dataPermission ? (d(), c(v, {
|
|
331
|
+
key: 0,
|
|
332
|
+
gutter: 8
|
|
333
|
+
}, {
|
|
334
|
+
default: n(() => [
|
|
335
|
+
o(m, { span: 8 }, {
|
|
336
|
+
default: n(() => [
|
|
337
|
+
o(u, {
|
|
338
|
+
label: "启用数据权限",
|
|
339
|
+
name: "enableDataPermission"
|
|
340
|
+
}, {
|
|
341
|
+
default: n(() => [
|
|
342
|
+
o(Q, {
|
|
343
|
+
checked: a(t).enableDataPermission,
|
|
344
|
+
"onUpdate:checked": e[8] || (e[8] = (s) => a(t).enableDataPermission = s)
|
|
345
|
+
}, null, 8, ["checked"])
|
|
346
|
+
]),
|
|
347
|
+
_: 1
|
|
348
|
+
})
|
|
349
|
+
]),
|
|
350
|
+
_: 1
|
|
351
|
+
}),
|
|
352
|
+
o(m, { span: 16 }, {
|
|
353
|
+
default: n(() => [
|
|
354
|
+
a(t).enableDataPermission ? (d(), c(u, {
|
|
355
|
+
key: 0,
|
|
356
|
+
label: "数据权限规则",
|
|
357
|
+
name: "dataPermissionType"
|
|
358
|
+
}, {
|
|
359
|
+
default: n(() => [
|
|
360
|
+
o(W, {
|
|
361
|
+
value: a(t).dataPermissionType,
|
|
362
|
+
"onUpdate:value": e[9] || (e[9] = (s) => a(t).dataPermissionType = s),
|
|
363
|
+
options: a(Ue)
|
|
364
|
+
}, null, 8, ["value", "options"])
|
|
365
|
+
]),
|
|
366
|
+
_: 1
|
|
367
|
+
})) : b("", !0)
|
|
368
|
+
]),
|
|
369
|
+
_: 1
|
|
370
|
+
})
|
|
371
|
+
]),
|
|
372
|
+
_: 1
|
|
373
|
+
})) : b("", !0),
|
|
374
|
+
o(Te, {
|
|
375
|
+
modelValue: a(t),
|
|
376
|
+
"onUpdate:modelValue": e[10] || (e[10] = (s) => g(t) ? t.value = s : null)
|
|
377
|
+
}, null, 8, ["modelValue"])
|
|
378
|
+
]),
|
|
379
|
+
_: 1
|
|
380
|
+
}, 8, ["model"])
|
|
381
|
+
]),
|
|
382
|
+
_: 1
|
|
383
|
+
}, 8, ["spinning"])
|
|
384
|
+
]),
|
|
385
|
+
_: 1
|
|
386
|
+
}, 8, ["open", "title"]);
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
});
|
|
390
|
+
export {
|
|
391
|
+
He as _
|
|
392
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { Drawer as N, Segmented as O, Tag as P } from "ant-design-vue/es";
|
|
2
|
+
import { defineComponent as S, ref as s, computed as T, createBlock as g, openBlock as c, unref as a, isRef as x, withCtx as p, createElementVNode as v, createVNode as R, createElementBlock as V, createCommentVNode as y, toDisplayString as q, createTextVNode as B } from "vue";
|
|
3
|
+
import { ProTable as U } from "@pubinfo/pro-components";
|
|
4
|
+
import { u as z } from "./index.js";
|
|
5
|
+
import { e as D } from "./jiaosejiekou-p42Hm9h3.js";
|
|
6
|
+
import { a as E } from "./zuzhijiaosebiaokongzhiqi-Cj4ZjkfZ.js";
|
|
7
|
+
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
import './ResourceRelation.css';const L = { class: "mb-20px p-x-15px" }, j = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "flex items-center"
|
|
11
|
+
}, F = { class: "mr-4px" }, G = /* @__PURE__ */ S({
|
|
12
|
+
name: "ResourceRelation",
|
|
13
|
+
__name: "ResourceRelation",
|
|
14
|
+
setup(H, { expose: b }) {
|
|
15
|
+
const u = s(["用户自选角色", "组织基础角色"]), n = s(u.value[0]), [r, h] = z(!1), d = s(""), m = s();
|
|
16
|
+
function k() {
|
|
17
|
+
m.value.fetch();
|
|
18
|
+
}
|
|
19
|
+
async function I(o) {
|
|
20
|
+
o.pageSize = 15, o.roleId = d.value;
|
|
21
|
+
const { current: t, pageSize: l, ...i } = o, e = await (n.value === "用户自选角色" ? D : E)({
|
|
22
|
+
currentPage: t,
|
|
23
|
+
pageSize: l,
|
|
24
|
+
...i
|
|
25
|
+
});
|
|
26
|
+
return {
|
|
27
|
+
success: e.success,
|
|
28
|
+
data: e.data?.records ?? [],
|
|
29
|
+
total: e.data?.total ?? 0
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
const w = T(() => n.value === "用户自选角色" ? [
|
|
33
|
+
{
|
|
34
|
+
title: "用户名称",
|
|
35
|
+
dataIndex: "realName",
|
|
36
|
+
ellipsis: !0
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
title: "组织名称",
|
|
40
|
+
dataIndex: "orgName",
|
|
41
|
+
ellipsis: !0
|
|
42
|
+
}
|
|
43
|
+
] : [
|
|
44
|
+
{
|
|
45
|
+
title: "组织名称",
|
|
46
|
+
dataIndex: "name",
|
|
47
|
+
ellipsis: !0
|
|
48
|
+
}
|
|
49
|
+
]);
|
|
50
|
+
function C(o) {
|
|
51
|
+
d.value = o.id || "", h(!0);
|
|
52
|
+
}
|
|
53
|
+
return b({
|
|
54
|
+
open: C
|
|
55
|
+
}), (o, t) => {
|
|
56
|
+
const l = O, i = P, f = N;
|
|
57
|
+
return c(), g(f, {
|
|
58
|
+
open: a(r),
|
|
59
|
+
"onUpdate:open": t[1] || (t[1] = (e) => x(r) ? r.value = e : null),
|
|
60
|
+
title: "分配查看",
|
|
61
|
+
placement: "right",
|
|
62
|
+
width: 720,
|
|
63
|
+
"destroy-on-close": "",
|
|
64
|
+
"footer-style": { textAlign: "right" },
|
|
65
|
+
"body-style": { paddingLeft: 0, paddingRight: 0 }
|
|
66
|
+
}, {
|
|
67
|
+
default: p(() => [
|
|
68
|
+
v("div", L, [
|
|
69
|
+
R(l, {
|
|
70
|
+
value: a(n),
|
|
71
|
+
"onUpdate:value": t[0] || (t[0] = (e) => x(n) ? n.value = e : null),
|
|
72
|
+
block: "",
|
|
73
|
+
options: a(u),
|
|
74
|
+
onChange: k
|
|
75
|
+
}, null, 8, ["value", "options"])
|
|
76
|
+
]),
|
|
77
|
+
R(a(U), {
|
|
78
|
+
ref_key: "protable",
|
|
79
|
+
ref: m,
|
|
80
|
+
"row-key": "id",
|
|
81
|
+
request: I,
|
|
82
|
+
columns: a(w),
|
|
83
|
+
search: !1,
|
|
84
|
+
toolbar: !1,
|
|
85
|
+
"auto-height": { offset: 50 }
|
|
86
|
+
}, {
|
|
87
|
+
bodyCell: p(({ column: e, record: _ }) => [
|
|
88
|
+
e.dataIndex === "name" ? (c(), V("div", j, [
|
|
89
|
+
v("span", F, q(_.name), 1),
|
|
90
|
+
_.isInherit === "1" ? (c(), g(i, {
|
|
91
|
+
key: 0,
|
|
92
|
+
color: "processing"
|
|
93
|
+
}, {
|
|
94
|
+
default: p(() => t[2] || (t[2] = [
|
|
95
|
+
B(" 及子组织 ")
|
|
96
|
+
])),
|
|
97
|
+
_: 1,
|
|
98
|
+
__: [2]
|
|
99
|
+
})) : y("", !0)
|
|
100
|
+
])) : y("", !0)
|
|
101
|
+
]),
|
|
102
|
+
_: 1
|
|
103
|
+
}, 8, ["columns"])
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
}, 8, ["open"]);
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
}), Z = /* @__PURE__ */ A(G, [["__scopeId", "data-v-1167727f"]]);
|
|
110
|
+
export {
|
|
111
|
+
Z as default
|
|
112
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { Drawer as x, Avatar as h } from "ant-design-vue/es";
|
|
2
|
+
import { defineComponent as k, ref as b, createBlock as v, openBlock as d, unref as s, isRef as w, withCtx as l, createVNode as p, createElementBlock as N, createCommentVNode as I, createElementVNode as C, normalizeStyle as z, createTextVNode as P, toDisplayString as u } from "vue";
|
|
3
|
+
import { ProTable as S } from "@pubinfo/pro-components";
|
|
4
|
+
import { theme as T } from "ant-design-vue";
|
|
5
|
+
import { u as V } from "./index.js";
|
|
6
|
+
import { e as B } from "./jiaosejiekou-p42Hm9h3.js";
|
|
7
|
+
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
import './ResourceRelation2.css';const D = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "w-full truncate space-x-2"
|
|
11
|
+
}, E = /* @__PURE__ */ k({
|
|
12
|
+
name: "ResourceRelation",
|
|
13
|
+
__name: "ResourceRelation",
|
|
14
|
+
setup(O, { expose: m }) {
|
|
15
|
+
const { token: f } = T.useToken(), [a, _] = V(!1), c = b("");
|
|
16
|
+
async function g(t) {
|
|
17
|
+
t.pageSize = 15, t.roleId = c.value;
|
|
18
|
+
const { current: o, pageSize: r, ...n } = t, e = await B({
|
|
19
|
+
currentPage: o,
|
|
20
|
+
pageSize: r,
|
|
21
|
+
...n
|
|
22
|
+
});
|
|
23
|
+
return {
|
|
24
|
+
success: e.success,
|
|
25
|
+
data: e.data?.records ?? [],
|
|
26
|
+
total: e.data?.total ?? 0
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
const y = [
|
|
30
|
+
{
|
|
31
|
+
title: "用户名称",
|
|
32
|
+
dataIndex: "realName",
|
|
33
|
+
ellipsis: !0
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
title: "组织名称",
|
|
37
|
+
dataIndex: "orgName",
|
|
38
|
+
ellipsis: !0
|
|
39
|
+
}
|
|
40
|
+
];
|
|
41
|
+
function R(t) {
|
|
42
|
+
c.value = t.id || "", _(!0);
|
|
43
|
+
}
|
|
44
|
+
return m({
|
|
45
|
+
open: R
|
|
46
|
+
}), (t, o) => {
|
|
47
|
+
const r = h, n = x;
|
|
48
|
+
return d(), v(n, {
|
|
49
|
+
open: s(a),
|
|
50
|
+
"onUpdate:open": o[0] || (o[0] = (e) => w(a) ? a.value = e : null),
|
|
51
|
+
title: "分配查看",
|
|
52
|
+
placement: "right",
|
|
53
|
+
width: 720,
|
|
54
|
+
"destroy-on-close": "",
|
|
55
|
+
"footer-style": { textAlign: "right" },
|
|
56
|
+
"body-style": { paddingLeft: 0, paddingRight: 0 }
|
|
57
|
+
}, {
|
|
58
|
+
default: l(() => [
|
|
59
|
+
p(s(S), {
|
|
60
|
+
"row-key": "id",
|
|
61
|
+
request: g,
|
|
62
|
+
columns: y,
|
|
63
|
+
search: !1,
|
|
64
|
+
toolbar: !1,
|
|
65
|
+
"auto-height": ""
|
|
66
|
+
}, {
|
|
67
|
+
bodyCell: l(({ column: e, text: i }) => [
|
|
68
|
+
e.dataIndex === "realName" ? (d(), N("div", D, [
|
|
69
|
+
p(r, {
|
|
70
|
+
size: "small",
|
|
71
|
+
style: z({ backgroundColor: s(f).colorPrimary })
|
|
72
|
+
}, {
|
|
73
|
+
default: l(() => [
|
|
74
|
+
P(u(i[0]), 1)
|
|
75
|
+
]),
|
|
76
|
+
_: 2
|
|
77
|
+
}, 1032, ["style"]),
|
|
78
|
+
C("span", null, u(i), 1)
|
|
79
|
+
])) : I("", !0)
|
|
80
|
+
]),
|
|
81
|
+
_: 1
|
|
82
|
+
})
|
|
83
|
+
]),
|
|
84
|
+
_: 1
|
|
85
|
+
}, 8, ["open"]);
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
}), J = /* @__PURE__ */ A(E, [["__scopeId", "data-v-f5867bc7"]]);
|
|
89
|
+
export {
|
|
90
|
+
J as default
|
|
91
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-
|
|
1
|
+
[data-v-1167727f] .ant-drawer-body{padding-left:0;padding-right:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-
|
|
1
|
+
[data-v-f5867bc7] .ant-drawer-body{padding-left:0;padding-right:0}
|