@pubinfo/module-rbac 2.0.0-rc.2 → 2.0.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ComponentSelect-Dyqb3Uh3.js → ComponentSelect-B1ZyenXP.js} +897 -945
- package/dist/ComponentSelect-DlVJI5an.js +2 -0
- package/dist/DynamicRoutesForm-Cu3WhRpA.js +4 -0
- package/dist/{DynamicRoutesForm-D3nGj7oA.js → DynamicRoutesForm-qjbrykW4.js} +95 -95
- package/dist/HCheckList-Cze_TkQp.js +2 -0
- package/dist/HoverCard-B79q5sly.js +43 -0
- package/dist/HoverCard-U5WTpvFy.js +2 -0
- package/dist/{ImportExport-Yt6dABIv.js → ImportExport-Clbc8xaw.js} +65 -65
- package/dist/ImportExport-CtEZTU87.js +4 -0
- package/dist/MetaForm-BWy4Lpr8.js +5 -0
- package/dist/MetaForm-DpH9an5A.js +300 -0
- package/dist/MetaForm.css +1 -0
- package/dist/OrgAndPosition-3lCm4Fyb.js +2 -0
- package/dist/ResourceEdit-0_cYB0iu.js +338 -0
- package/dist/ResourceEdit-CYPzEbqn.js +10 -0
- package/dist/{ResourceRelation-BihfkBCe.js → ResourceRelation-CZ8hGgOm.js} +6 -6
- package/dist/ResourceRelation-DMWa09ae.js +3 -0
- package/dist/{ResourceRelation-CBPrqf2V.js → ResourceRelation-DkKdZ3TD.js} +2 -2
- package/dist/ResourceRelation.css +1 -1
- package/dist/ResourceRelation2.css +1 -1
- package/dist/{ResourceSelector-CxZ1ae30.js → ResourceSelector-ConJ30Jd.js} +48 -48
- package/dist/ResourceSelector.css +1 -1
- package/dist/{RoleRelation-BlWDNAM1.js → RoleRelation-B1D1NM_L.js} +1 -1
- package/dist/RoleRelation-DySyilcs.js +2 -0
- package/dist/RoleSelector-DOt30OLy.js +279 -0
- package/dist/TenantEdit-D8-Pt7sf.js +6 -0
- package/dist/{TenantEdit-Bt31IV9W.js → TenantEdit-DNJzo8SS.js} +19 -19
- package/dist/{UserAuthorization-Dhp0ZamX.js → UserAuthorization-DPHUk69M.js} +6 -6
- package/dist/UserAuthorization-DuioGghR.js +4 -0
- package/dist/UserAuthorization.css +1 -1
- package/dist/UserEdit-6HYbgtOh.js +4 -0
- package/dist/{UserEdit-CqH6hxTZ.js → UserEdit-C6eNXSCu.js} +24 -24
- package/dist/animation_item-C3pkH-cB.js +2 -0
- package/dist/api/modules/assist/gonggaofuwu.d.ts +6 -6
- package/dist/api/modules/assist/qunzujiekou.d.ts +6 -6
- package/dist/api/modules/assist/quyujiekou.d.ts +5 -5
- package/dist/api/modules/configData/heibaimingdanfuwu.d.ts +5 -5
- package/dist/api/modules/configData/xitongpeizhifuwu.d.ts +14 -14
- package/dist/api/modules/configData/zidifuwu.d.ts +10 -10
- package/dist/api/modules/log/caozuorizhifuwu.d.ts +2 -2
- package/dist/api/modules/log/denglurizhifuwu.d.ts +2 -2
- package/dist/api/modules/rbac/gangweijiekou.d.ts +6 -6
- package/dist/api/modules/rbac/jiaosejiekou.d.ts +7 -7
- package/dist/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +7 -7
- package/dist/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +9 -9
- package/dist/api/modules/rbac/yonghujiekou.d.ts +15 -15
- package/dist/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +5 -5
- package/dist/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +4 -4
- package/dist/api/modules/rbac/ziyuandaorudaochuxiangguanjiekou.d.ts +6 -6
- package/dist/api/modules/rbac/ziyuanjiekou.d.ts +13 -13
- package/dist/api/modules/rbac/zuhuguanlijiekou.d.ts +5 -5
- package/dist/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +4 -4
- package/dist/api/modules/rbac/zuzhijiekou.d.ts +9 -9
- package/dist/{blackWhiteList-B7tUj2Rx.js → blackWhiteList-DQALdBZf.js} +10 -10
- package/dist/blackWhiteList.css +1 -1
- package/dist/{breadcrumb_setting-CIm-6QHw.js → breadcrumb_setting-D3UjJYhA.js} +32 -32
- package/dist/breadcrumb_setting.css +1 -1
- package/dist/browserType-BGl2j5RW.js +2 -0
- package/dist/components/OrgUserSelector/OrgSelector.vue.d.ts +1 -1
- package/dist/components/OrgUserSelector/UserSelector.vue.d.ts +1 -1
- package/dist/components/ResourceSelector/index.vue.d.ts +1 -1
- package/dist/composables/useWebSocketManager.d.ts +8 -0
- package/dist/createAndEditDataPermission-CAaxueTy.js +8 -0
- package/dist/{createAndEditDataPermission-Bd3tlIEE.js → createAndEditDataPermission-DnAcKvaE.js} +55 -55
- package/dist/createAndEditDataPermission.css +1 -1
- package/dist/{data-permission-Db1Lu9KO.js → data-permission-CLnnLoPt.js} +8 -8
- package/dist/data-permission.css +1 -1
- package/dist/{dictionary-XMJprxvM.js → dictionary-BFM0Mx0P.js} +3 -3
- package/dist/{drawerBlackWhiteList-D-Sq4mul.js → drawerBlackWhiteList-BYACpO3D.js} +9 -9
- package/dist/drawerBlackWhiteList-C3xS7Kxx.js +3 -0
- package/dist/{drawerDictionary-Bw3w5PTm.js → drawerDictionary-BUBLrbTi.js} +13 -13
- package/dist/drawerDictionary-Bk0BgL7i.js +4 -0
- package/dist/{drawerDictionaryItem-4WIgL3No.js → drawerDictionaryItem-CfOPleN6.js} +14 -14
- package/dist/drawerDictionaryItem-Dy2T56AH.js +4 -0
- package/dist/{drawerGroup-932n7Ywc.js → drawerGroup-Bly3CWfM.js} +10 -10
- package/dist/drawerGroup-ZyzAWXOl.js +3 -0
- package/dist/{drawerOrganization-IwZZkHWM.js → drawerOrganization-BhO5-PP5.js} +27 -27
- package/dist/drawerOrganization-HSVB8JzO.js +3 -0
- package/dist/{drawerPosition-BiO92_At.js → drawerPosition-CM0NBfoR.js} +15 -15
- package/dist/drawerPosition-vsuG4JYe.js +3 -0
- package/dist/drawerRegion-BXZ751ge.js +3 -0
- package/dist/{drawerRegion-CNOK55im.js → drawerRegion-CGySAL6D.js} +17 -17
- package/dist/{drawerRole-IIsKhycU.js → drawerRole-BE0utb7R.js} +9 -9
- package/dist/drawerRole-BVeaz3Yb.js +5 -0
- package/dist/drawerRole-BdoMYLYW.js +215 -0
- package/dist/drawerRole-BeUNs7cF.js +6 -0
- package/dist/drawerRole-DNsK5a6O.js +3 -0
- package/dist/{drawerRole-PnDochPg.js → drawerRole-DS7fbx1h.js} +10 -10
- package/dist/{group-BzuuCGyR.js → group-B1gGoTD5.js} +10 -10
- package/dist/group.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2065 -1875
- package/dist/{itemlist-KOYuEUk4.js → itemlist-uCHnA_We.js} +3 -3
- package/dist/{layout_setting-DQgWzV7M.js → layout_setting-DMvxwL31.js} +20 -20
- package/dist/layout_setting.css +1 -1
- package/dist/{loginHistoryDetail-DgHx6n66.js → loginHistoryDetail-BAYuSqvw.js} +2 -2
- package/dist/loginHistoryDetail-DiuNa6Sv.js +4 -0
- package/dist/{login_history-Co6JLGsd.js → login_history-BexfCN-1.js} +7 -7
- package/dist/login_history.css +1 -1
- package/dist/{menu_setting-B0QIQ1um.js → menu_setting-BXR3EAXD.js} +43 -43
- package/dist/menu_setting.css +1 -1
- package/dist/not-data-OpiacaSk.js +2 -0
- package/dist/{operateHistoryDetail-BrdNmYD0.js → operateHistoryDetail-DiuqMTkN.js} +2 -2
- package/dist/operateHistoryDetail-r30ZBNqw.js +4 -0
- package/dist/{operate_history-CVeIorOr.js → operate_history-hXxS3atI.js} +7 -7
- package/dist/operate_history.css +1 -1
- package/dist/{organization-CXMk4mRo.js → organization-cvYm9P9w.js} +2647 -2647
- package/dist/organization.css +1 -1
- package/dist/{other_setting-DK9MHysY.js → other_setting-DjVQevBW.js} +69 -69
- package/dist/other_setting.css +1 -1
- package/dist/{page_animation_setting-tSYfjx-m.js → page_animation_setting-DgHHmFEc.js} +52 -52
- package/dist/page_animation_setting.css +1 -1
- package/dist/{page_w_setting-BDI5KsA-.js → page_w_setting-B_im6vBo.js} +20 -20
- package/dist/page_w_setting.css +1 -1
- package/dist/{position-BjUZQQUz.js → position-BkpbHXYP.js} +2 -2
- package/dist/{region-BsX0gK_y.js → region-DVkbjI9t.js} +6 -6
- package/dist/{resource-DKhlH74I.js → resource-CrhX7VRK.js} +13 -11
- package/dist/{role-ffXddsAo.js → role-PjmrOdFd.js} +6 -6
- package/dist/{role_group-BBH28A40.js → role_group-Dlx-6BZF.js} +2 -2
- package/dist/routeSystem-Dg0b6mAl.js +2 -0
- package/dist/{safe_setting-Dis73Gsw.js → safe_setting-DpWUCv2p.js} +1 -1
- package/dist/setItem-9ZBl0BlF.js +5 -0
- package/dist/setItem-BenNySNl.js +77 -0
- package/dist/setItem.css +1 -1
- package/dist/stores/view.d.ts +56 -0
- package/dist/{tabbar_setting-DGwk_Oec.js → tabbar_setting-9UKDc1Ev.js} +38 -38
- package/dist/tabbar_setting.css +1 -1
- package/dist/{tenant-BhA6R8aJ.js → tenant-BGtOP_wo.js} +5 -5
- package/dist/{theme_setting-Ca1YGTdZ.js → theme_setting-BBLaZ4NS.js} +8 -8
- package/dist/theme_setting.css +1 -1
- package/dist/{toolbar_setting-Cmrpyxgs.js → toolbar_setting-OemNp6pO.js} +37 -37
- package/dist/toolbar_setting.css +1 -1
- package/dist/{useAppAndResource-BgnrL15l.js → useAppAndResource-CeMCjg2v.js} +1 -1
- package/dist/{user-Bnb1cvVD.js → user-JCiGXodF.js} +11 -11
- package/dist/user.css +1 -1
- package/dist/utils/routeSystem.d.ts +55 -0
- package/dist/views/blackWhiteList/index.vue.d.ts +2 -2
- package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +5 -5
- package/dist/views/data-permission/index.vue.d.ts +7 -7
- package/dist/views/dictionary/index.vue.d.ts +2 -2
- package/dist/views/dictionary/itemlist.vue.d.ts +2 -2
- package/dist/views/group/index.vue.d.ts +2 -2
- package/dist/views/log_center/login_history.vue.d.ts +2 -2
- package/dist/views/log_center/operate_history.vue.d.ts +2 -2
- package/dist/views/position/index.vue.d.ts +2 -2
- package/dist/views/region/index.vue.d.ts +2 -2
- package/dist/views/resource/components/HoverCard.vue.d.ts +21 -0
- package/dist/views/resource/index.vue.d.ts +2 -2
- package/dist/views/resource/model.d.ts +3 -1
- package/dist/views/role/components/ResourceRelation.vue.d.ts +2 -2
- package/dist/views/role/components/drawerRole.vue.d.ts +2 -2
- package/dist/views/role/index.vue.d.ts +6 -6
- package/dist/views/role_group/index.vue.d.ts +2 -2
- package/dist/views/tenant/components/TenantEdit.vue.d.ts +2 -2
- package/dist/views/tenant/index.vue.d.ts +4 -4
- package/dist/views/user/index.vue.d.ts +2 -2
- package/dist/{watermark_setting-BnBt5gdM.js → watermark_setting-C1VFRfbW.js} +111 -111
- package/dist/watermark_setting.css +1 -1
- package/package.json +7 -7
- package/src/composables/useWebSocketManager.ts +104 -0
- package/src/index.ts +22 -0
- package/src/stores/view.ts +292 -0
- package/src/utils/routeSystem.ts +53 -0
- package/src/views/region/index.vue +1 -1
- package/src/views/resource/components/ComponentSelect.vue +12 -119
- package/src/views/resource/components/HoverCard.vue +62 -0
- package/src/views/resource/components/MetaForm.vue +129 -67
- package/src/views/resource/components/ResourceEdit.vue +33 -4
- package/src/views/resource/hooks/useMetaForm.ts +23 -0
- package/src/views/resource/model.ts +5 -1
- package/src/views/watermark_setting/index.vue +2 -2
- package/dist/ComponentSelect-Din5Vses.js +0 -2
- package/dist/DynamicRoutesForm-CkmCaHum.js +0 -4
- package/dist/HCheckList-Dd2Tx0jW.js +0 -2
- package/dist/ImportExport-BbZkZEW_.js +0 -4
- package/dist/MetaForm-CI-T2qEE.js +0 -284
- package/dist/MetaForm-CrsQmdOg.js +0 -4
- package/dist/OrgAndPosition-CDCim7yM.js +0 -2
- package/dist/ResourceEdit-BFXA953U.js +0 -309
- package/dist/ResourceEdit-V6gt22gW.js +0 -8
- package/dist/ResourceRelation-BnLQZey7.js +0 -3
- package/dist/RoleRelation-CAMzPMFz.js +0 -2
- package/dist/RoleSelector-DTnDRRTQ.js +0 -279
- package/dist/TenantEdit-DYHJehf0.js +0 -6
- package/dist/UserAuthorization-BdHxAQlK.js +0 -4
- package/dist/UserEdit-CqrRx717.js +0 -4
- package/dist/animation_item-COb6VI4T.js +0 -2
- package/dist/browserType-D2cPQa0k.js +0 -2
- package/dist/createAndEditDataPermission-6pvYsJo9.js +0 -8
- package/dist/drawerBlackWhiteList-DK4g_CpC.js +0 -3
- package/dist/drawerDictionary-DHIcxPrY.js +0 -4
- package/dist/drawerDictionaryItem-dg1sIDYE.js +0 -4
- package/dist/drawerGroup-CrF2c8UJ.js +0 -3
- package/dist/drawerOrganization-b39q3V33.js +0 -3
- package/dist/drawerPosition-BjoDy0cQ.js +0 -3
- package/dist/drawerRegion-omVT_dpq.js +0 -3
- package/dist/drawerRole-BaQBb2-J.js +0 -215
- package/dist/drawerRole-BqMh5l11.js +0 -5
- package/dist/drawerRole-D7VJRLmp.js +0 -6
- package/dist/drawerRole-dJ3m0_K2.js +0 -3
- package/dist/loginHistoryDetail-BNGtarOv.js +0 -4
- package/dist/not-data-uXybSS43.js +0 -2
- package/dist/operateHistoryDetail-DsM4L8Nz.js +0 -4
- package/dist/setItem-CjNn98dC.js +0 -77
- package/dist/setItem-H6NRNSt7.js +0 -5
- /package/dist/{HCheckList-3zLNVNr0.js → HCheckList-CmS0Zgjk.js} +0 -0
- /package/dist/{OrgAndPosition-BK5MTlOO.js → OrgAndPosition-DYxNkasL.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-Bvl99pNT.js → _plugin-vue_export-helper-DziIhCOI.js} +0 -0
- /package/dist/{add-child-sIXCU5sL.js → add-child-BqjLtFNF.js} +0 -0
- /package/dist/{animation_item-D78koyTo.js → animation_item-Cg-CB3zX.js} +0 -0
- /package/dist/{authority-DQ4-SayE.js → authority-BCFCPQkb.js} +0 -0
- /package/dist/{authorize-CR54jxEa.js → authorize-BykMzt1r.js} +0 -0
- /package/dist/{blacklist-disable-ypFSVSX1.js → blacklist-disable-COoLZMSA.js} +0 -0
- /package/dist/{blacklist-enable-DlkD_15-.js → blacklist-enable-LZep1trj.js} +0 -0
- /package/dist/{browser-chrome-DNH4U6iO.js → browser-chrome-D0rex7Ir.js} +0 -0
- /package/dist/{browser-edge-4sSjlzO1.js → browser-edge-KCb_AIL5.js} +0 -0
- /package/dist/{browser-ie-yTwVV0GC.js → browser-ie-C1znjJM-.js} +0 -0
- /package/dist/{browser-other-Jax-vzDs.js → browser-other-C4er8PkV.js} +0 -0
- /package/dist/{browser-safari-B7PIezpj.js → browser-safari-BPRC1TV-.js} +0 -0
- /package/dist/{browserType-DZrDbVVY.js → browserType-E4RCiZfN.js} +0 -0
- /package/dist/{configData-CONUFxaH.js → configData-DQOHeFW2.js} +0 -0
- /package/dist/{dayjs.min-KffHrkDe.js → dayjs.min-DcxwBe2I.js} +0 -0
- /package/dist/{edit-CCL7qbDV.js → edit-C9HH0bNg.js} +0 -0
- /package/dist/{enum-DUjQrWbG.js → enum-B1DCzyaW.js} +0 -0
- /package/dist/{enum-CUMv4gQ2.js → enum-BWzxzuim.js} +0 -0
- /package/dist/{enum-B-lkiBy0.js → enum-CYW8g64p.js} +0 -0
- /package/dist/{enum-BMY6bmPA.js → enum-D0U38jb6.js} +0 -0
- /package/dist/{enum-Bg70i-vM.js → enum-VH4_jOj5.js} +0 -0
- /package/dist/{icard-BUuV9yW4.js → icard-FW0Ro50-.js} +0 -0
- /package/dist/{icon_animation-rPC0qi0K.js → icon_animation-DuNUKCIP.js} +0 -0
- /package/dist/{icon_breadcrumb-BOiEdwRY.js → icon_breadcrumb-DrPNYW5B.js} +0 -0
- /package/dist/{icon_copyright-zk1pF8Jj.js → icon_copyright-Di3Yr0PZ.js} +0 -0
- /package/dist/{icon_jt-BMoQoZvf.js → icon_jt-C4rQLl9Y.js} +0 -0
- /package/dist/{icon_layout-KBHA8xU_.js → icon_layout-5L9E7uN2.js} +0 -0
- /package/dist/{icon_mainpage-BTdCCyi2.js → icon_mainpage-DMKqRgmE.js} +0 -0
- /package/dist/{icon_menu-5k8XiWt5.js → icon_menu-Cp7-Zght.js} +0 -0
- /package/dist/{icon_page_size-DUMZ6xhJ.js → icon_page_size-Dc0zqT2W.js} +0 -0
- /package/dist/{icon_position_type-Cnkn2IzO.js → icon_position_type-DH2qxQQE.js} +0 -0
- /package/dist/{icon_safe_manage-B0PtL90p.js → icon_safe_manage-DXYWl1y-.js} +0 -0
- /package/dist/{icon_screen_scale-CwVhfflc.js → icon_screen_scale-DwC6qqx2.js} +0 -0
- /package/dist/{icon_system_manage-vM71UmjM.js → icon_system_manage-BYTldLly.js} +0 -0
- /package/dist/{icon_tabbar-CuMnIey0.js → icon_tabbar-CxffARwI.js} +0 -0
- /package/dist/{icon_toolbar-BoCbAU3P.js → icon_toolbar-CsxnTrNJ.js} +0 -0
- /package/dist/{icon_topbar-DGIDBcE6.js → icon_topbar-DS-oEZFA.js} +0 -0
- /package/dist/{icon_watermark-BBU-lOdN.js → icon_watermark-DDXsHlfQ.js} +0 -0
- /package/dist/{log-center-Z3WDfhg1.js → log-center-BFjZ4IE1.js} +0 -0
- /package/dist/{log-BgIwPjNu.js → log-hgUXTuhy.js} +0 -0
- /package/dist/{not-data-DejN9beo.js → not-data-Bw8FlpyB.js} +0 -0
- /package/dist/{org-main-C2g7AMMY.js → org-main-D5Isevbc.js} +0 -0
- /package/dist/{org-unmain-CjGtvuIa.js → org-unmain-BHBqSuCz.js} +0 -0
- /package/dist/{remove-BroXCqy9.js → remove-DKMMsJNq.js} +0 -0
- /package/dist/{resource-app-DV2RZiRk.js → resource-app-DZwdNG6F.js} +0 -0
- /package/dist/{resource-btn-Dw9-L0P5.js → resource-btn-DPX0oM2L.js} +0 -0
- /package/dist/{resource-dynamic-Cmk2ihZb.js → resource-dynamic-Cb_vjMjt.js} +0 -0
- /package/dist/{resource-index-D9J-wVCc.js → resource-index-ah4NpEob.js} +0 -0
- /package/dist/{resource-menu-XnlgciPe.js → resource-menu-CzWI03EU.js} +0 -0
- /package/dist/{resource-micro-DzYCcl5c.js → resource-micro-Ca0NS7j_.js} +0 -0
- /package/dist/{resource-nonmenu-8bXZBBWf.js → resource-nonmenu-Deitjo_5.js} +0 -0
- /package/dist/{setting-manage-BPwzU94V.js → setting-manage-B3vaM0w1.js} +0 -0
- /package/dist/{stores-Di6SQ3pp.js → stores-D6JJmBEU.js} +0 -0
- /package/dist/{theme-check-mark-Dz4lGIXE.js → theme-check-mark-BK7E8lqd.js} +0 -0
- /package/dist/{theme-title-CPXdAbpI.js → theme-title-aqbHq846.js} +0 -0
- /package/dist/{view-D4SR4EYn.js → view-C6Eo1zRL.js} +0 -0
- /package/dist/{zddata-Cdy8vScr.js → zddata-fjEtQ3lZ.js} +0 -0
- /package/dist/{zy_checked-xjGWlIXf.js → zy_checked-DTsDCC94.js} +0 -0
- /package/dist/{zy_default-kwFuicHB.js → zy_default-BaIuMKw-.js} +0 -0
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
import { b as e } from "./cloneDeep-BnvyNhik.js";
|
|
2
|
+
import { am as t, t as n, x as r, y as i } from "./index.js";
|
|
3
|
+
import { c as a, d as ee } from "./enum-CYW8g64p.js";
|
|
4
|
+
import { b as te } from "./DynamicRoutesForm-qjbrykW4.js";
|
|
5
|
+
import { b as o, c as s, d as c, e as l } from "./enum-D0U38jb6.js";
|
|
6
|
+
import { b as u, c as d, d as f } from "./MetaForm-DpH9an5A.js";
|
|
7
|
+
import { computed as p, createBlock as m, createCommentVNode as h, createElementBlock as ne, createTextVNode as g, createVNode as _, defineComponent as v, isRef as y, openBlock as b, reactive as x, ref as S, resolveComponent as C, toDisplayString as w, unref as T, withCtx as E } from "vue";
|
|
8
|
+
import { DatabaseOutlined as D } from "@ant-design/icons-vue";
|
|
9
|
+
import { message as O } from "ant-design-vue";
|
|
10
|
+
import { Button as k, Col as A, Drawer as j, Form as re, FormItem as ie, Input as ae, InputNumber as oe, RadioGroup as se, Row as M, Select as N, Space as P, Spin as F, Switch as I, Tag as L, Textarea as R } from "ant-design-vue/es";
|
|
11
|
+
const z = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "flex items-center space-x-1"
|
|
14
|
+
};
|
|
15
|
+
var B = /* @__PURE__ */ v({
|
|
16
|
+
name: "ResourceEdit",
|
|
17
|
+
__name: "ResourceEdit",
|
|
18
|
+
props: { dataSource: {} },
|
|
19
|
+
emits: ["submit"],
|
|
20
|
+
setup(v, { expose: C, emit: B }) {
|
|
21
|
+
let V = v, H = B, [U, W] = t(!1), G = S(), K = S({}), q = x({
|
|
22
|
+
title: "",
|
|
23
|
+
record: {},
|
|
24
|
+
initData: {
|
|
25
|
+
type: c.DYNAMIC_APP,
|
|
26
|
+
sort: 0,
|
|
27
|
+
enable: !0,
|
|
28
|
+
enableDataPermission: !1,
|
|
29
|
+
dataPermissionType: a.ALL,
|
|
30
|
+
meta: {
|
|
31
|
+
url: "",
|
|
32
|
+
component: ""
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}), ce = {
|
|
36
|
+
name: [{
|
|
37
|
+
required: !0,
|
|
38
|
+
message: "请输入资源名称",
|
|
39
|
+
trigger: "blur"
|
|
40
|
+
}],
|
|
41
|
+
type: [{
|
|
42
|
+
required: !0,
|
|
43
|
+
message: "请选择资源类型",
|
|
44
|
+
trigger: "change"
|
|
45
|
+
}],
|
|
46
|
+
code: [{
|
|
47
|
+
required: !0,
|
|
48
|
+
message: "请输入资源编码",
|
|
49
|
+
trigger: "blur"
|
|
50
|
+
}],
|
|
51
|
+
sort: [{
|
|
52
|
+
type: "number",
|
|
53
|
+
required: !0,
|
|
54
|
+
message: "请输入排序",
|
|
55
|
+
trigger: "blur"
|
|
56
|
+
}],
|
|
57
|
+
enable: [{
|
|
58
|
+
type: "boolean",
|
|
59
|
+
required: !0,
|
|
60
|
+
message: "请选择是否启用",
|
|
61
|
+
trigger: "change"
|
|
62
|
+
}]
|
|
63
|
+
}, J = p(() => le(V.dataSource, (e) => e.id === K.value.parentId) ?? {});
|
|
64
|
+
function le(e, t) {
|
|
65
|
+
let n = [...e];
|
|
66
|
+
for (let e of n) {
|
|
67
|
+
if (t(e)) return e;
|
|
68
|
+
e.children && n.push(...e.children);
|
|
69
|
+
}
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
let Y = p(() => {
|
|
73
|
+
switch (J.value?.type) {
|
|
74
|
+
case c.APP:
|
|
75
|
+
case c.MICRO_APP:
|
|
76
|
+
case c.DYNAMIC_APP: return l.filter((e) => [
|
|
77
|
+
c.INDEX,
|
|
78
|
+
c.MENU,
|
|
79
|
+
c.IFRAME,
|
|
80
|
+
c.LINK
|
|
81
|
+
].includes(e.value));
|
|
82
|
+
case c.INDEX: return l.filter((e) => [
|
|
83
|
+
c.INDEX,
|
|
84
|
+
c.MENU,
|
|
85
|
+
c.IFRAME,
|
|
86
|
+
c.LINK,
|
|
87
|
+
c.NON_MENU
|
|
88
|
+
].includes(e.value));
|
|
89
|
+
case c.MENU:
|
|
90
|
+
case c.NON_MENU: return l.filter((e) => [c.BUTTON, c.NON_MENU].includes(e.value));
|
|
91
|
+
case c.BUTTON:
|
|
92
|
+
case c.IFRAME:
|
|
93
|
+
case c.LINK: return [];
|
|
94
|
+
default: return l.filter((e) => [c.APP, c.DYNAMIC_APP].includes(e.value));
|
|
95
|
+
}
|
|
96
|
+
}), { show: X, resetIncompatibleOptions: Z } = d(K), [ue, Q] = t(!1);
|
|
97
|
+
async function de(t, r) {
|
|
98
|
+
q.title = t, K.value = e(q.initData), W(!0);
|
|
99
|
+
try {
|
|
100
|
+
if (Q(!0), t === o.ADD_CHILD && (K.value.parentId = r?.id, K.value.type = Y.value[0].value, Z()), t === o.EDIT) {
|
|
101
|
+
let e = await n({ id: r?.id });
|
|
102
|
+
e.success && (K.value = e.data ?? {}, K.value.meta = {
|
|
103
|
+
...f,
|
|
104
|
+
...e.data?.meta
|
|
105
|
+
}, Z());
|
|
106
|
+
}
|
|
107
|
+
} finally {
|
|
108
|
+
Q(!1);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
let [fe, $] = t(!1);
|
|
112
|
+
function pe() {
|
|
113
|
+
G.value?.validate().then(() => {
|
|
114
|
+
let t = e({
|
|
115
|
+
...K.value,
|
|
116
|
+
icon: K.value.icon || void 0
|
|
117
|
+
});
|
|
118
|
+
X.value.dataPermission || (t.enableDataPermission = !1), X.value.devMode && K.value.meta?.isDev && console.warn("开发模式应用的子路由将不会在生产环境中注册到vue-router,请确保这是预期行为。"), t.meta?.cache && t.meta.cacheName && (t.meta.cache = t.meta.cacheName.split(",")), t.meta?.noCache && (t.meta.noCache = t.meta.noCache.split(",")), t.meta?.cache || delete t?.meta?.noCache, delete t?.meta?.cacheName;
|
|
119
|
+
let n = q.title === o.EDIT ? i(t) : r({
|
|
120
|
+
parentId: "",
|
|
121
|
+
...t
|
|
122
|
+
});
|
|
123
|
+
$(!0), n.then((e) => {
|
|
124
|
+
e?.success && (O.success(`${q.title}成功!`), W(!1), H("submit"));
|
|
125
|
+
}).finally(() => $(!1));
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
return C({ open: de }), (e, t) => {
|
|
129
|
+
let n = D, r = ie, i = A, a = L, c = se, l = M, d = ae, f = oe, p = R, v = I, x = N, S = re, C = F, O = k, B = P, V = j;
|
|
130
|
+
return b(), m(V, {
|
|
131
|
+
open: T(U),
|
|
132
|
+
"onUpdate:open": t[12] ||= (e) => y(U) ? U.value = e : null,
|
|
133
|
+
title: q.title,
|
|
134
|
+
placement: "right",
|
|
135
|
+
width: 800,
|
|
136
|
+
"destroy-on-close": "",
|
|
137
|
+
"footer-style": { textAlign: "right" }
|
|
138
|
+
}, {
|
|
139
|
+
footer: E(() => [_(B, null, {
|
|
140
|
+
default: E(() => [_(O, { onClick: t[10] ||= (e) => T(W)(!1) }, {
|
|
141
|
+
default: E(() => t[14] ||= [g(" 取消 ")]),
|
|
142
|
+
_: 1,
|
|
143
|
+
__: [14]
|
|
144
|
+
}), _(O, {
|
|
145
|
+
type: "primary",
|
|
146
|
+
loading: T(fe),
|
|
147
|
+
onClick: t[11] ||= (e) => pe()
|
|
148
|
+
}, {
|
|
149
|
+
default: E(() => t[15] ||= [g(" 提交 ")]),
|
|
150
|
+
_: 1,
|
|
151
|
+
__: [15]
|
|
152
|
+
}, 8, ["loading"])]),
|
|
153
|
+
_: 1
|
|
154
|
+
})]),
|
|
155
|
+
default: E(() => [_(C, { spinning: T(ue) }, {
|
|
156
|
+
default: E(() => [_(S, {
|
|
157
|
+
ref_key: "formRef",
|
|
158
|
+
ref: G,
|
|
159
|
+
model: K.value,
|
|
160
|
+
rules: ce,
|
|
161
|
+
"label-col": { style: { width: "100px" } }
|
|
162
|
+
}, {
|
|
163
|
+
default: E(() => [
|
|
164
|
+
_(l, { gutter: 8 }, {
|
|
165
|
+
default: E(() => [J.value?.name ? (b(), m(i, {
|
|
166
|
+
key: 0,
|
|
167
|
+
span: 24
|
|
168
|
+
}, {
|
|
169
|
+
default: E(() => [_(r, { name: "parentId" }, {
|
|
170
|
+
label: E(() => [_(n, { class: "mr-1" }), t[13] ||= g(" 父资源 ")]),
|
|
171
|
+
default: E(() => [g(" " + w(J.value?.name), 1)]),
|
|
172
|
+
_: 1
|
|
173
|
+
})]),
|
|
174
|
+
_: 1
|
|
175
|
+
})) : h("v-if", !0), _(i, { span: 24 }, {
|
|
176
|
+
default: E(() => [_(r, {
|
|
177
|
+
label: "资源类型",
|
|
178
|
+
name: "type"
|
|
179
|
+
}, {
|
|
180
|
+
default: E(() => [q.title === T(o).EDIT ? (b(), ne("div", z, [h(" <PubinfoIcon v-if=\"form.type\" :name=\"`resource-${RESOURCE_ICON[Number(form.type)]}`\" class=\"text-xl\" />\n <span>\n {{ resourceComputedOptions.find(e => e.value === form.type)?.label }}\n </span> "), K.value.type ? (b(), m(a, {
|
|
181
|
+
key: 0,
|
|
182
|
+
color: T(s)[Number(K.value.type)],
|
|
183
|
+
bordered: !1
|
|
184
|
+
}, {
|
|
185
|
+
default: E(() => [g(w(Y.value.find((e) => e.value === K.value.type)?.label), 1)]),
|
|
186
|
+
_: 1
|
|
187
|
+
}, 8, ["color"])) : h("v-if", !0)])) : (b(), m(c, {
|
|
188
|
+
key: 1,
|
|
189
|
+
value: K.value.type,
|
|
190
|
+
"onUpdate:value": t[0] ||= (e) => K.value.type = e,
|
|
191
|
+
options: Y.value,
|
|
192
|
+
"option-type": "button",
|
|
193
|
+
"button-style": "solid"
|
|
194
|
+
}, null, 8, ["value", "options"]))]),
|
|
195
|
+
_: 1
|
|
196
|
+
})]),
|
|
197
|
+
_: 1
|
|
198
|
+
})]),
|
|
199
|
+
_: 1
|
|
200
|
+
}),
|
|
201
|
+
_(l, { gutter: 8 }, {
|
|
202
|
+
default: E(() => [
|
|
203
|
+
_(i, { span: 12 }, {
|
|
204
|
+
default: E(() => [_(r, {
|
|
205
|
+
label: "资源名称",
|
|
206
|
+
name: "name"
|
|
207
|
+
}, {
|
|
208
|
+
default: E(() => [_(d, {
|
|
209
|
+
value: K.value.name,
|
|
210
|
+
"onUpdate:value": t[1] ||= (e) => K.value.name = e,
|
|
211
|
+
placeholder: "请输入资源名称",
|
|
212
|
+
maxlength: 128
|
|
213
|
+
}, null, 8, ["value"])]),
|
|
214
|
+
_: 1
|
|
215
|
+
})]),
|
|
216
|
+
_: 1
|
|
217
|
+
}),
|
|
218
|
+
_(te, {
|
|
219
|
+
modelValue: K.value,
|
|
220
|
+
"onUpdate:modelValue": t[2] ||= (e) => K.value = e,
|
|
221
|
+
parent: J.value
|
|
222
|
+
}, null, 8, ["modelValue", "parent"]),
|
|
223
|
+
_(i, { span: 12 }, {
|
|
224
|
+
default: E(() => [_(r, {
|
|
225
|
+
label: "资源编码",
|
|
226
|
+
name: "code"
|
|
227
|
+
}, {
|
|
228
|
+
default: E(() => [_(d, {
|
|
229
|
+
value: K.value.code,
|
|
230
|
+
"onUpdate:value": t[3] ||= (e) => K.value.code = e,
|
|
231
|
+
placeholder: "请输入资源编码(权限码)",
|
|
232
|
+
maxlength: 50
|
|
233
|
+
}, null, 8, ["value"])]),
|
|
234
|
+
_: 1
|
|
235
|
+
})]),
|
|
236
|
+
_: 1
|
|
237
|
+
}),
|
|
238
|
+
_(i, { span: 12 }, {
|
|
239
|
+
default: E(() => [_(r, {
|
|
240
|
+
label: "接口权限",
|
|
241
|
+
name: "permissionCode"
|
|
242
|
+
}, {
|
|
243
|
+
default: E(() => [_(d, {
|
|
244
|
+
value: K.value.permissionCode,
|
|
245
|
+
"onUpdate:value": t[4] ||= (e) => K.value.permissionCode = e,
|
|
246
|
+
placeholder: "请输入接口权限(接口地址,多个使用逗号分隔)",
|
|
247
|
+
maxlength: 256
|
|
248
|
+
}, null, 8, ["value"])]),
|
|
249
|
+
_: 1
|
|
250
|
+
})]),
|
|
251
|
+
_: 1
|
|
252
|
+
}),
|
|
253
|
+
_(i, { span: 12 }, {
|
|
254
|
+
default: E(() => [_(r, {
|
|
255
|
+
label: "显示顺序",
|
|
256
|
+
name: "sort"
|
|
257
|
+
}, {
|
|
258
|
+
default: E(() => [_(f, {
|
|
259
|
+
value: K.value.sort,
|
|
260
|
+
"onUpdate:value": t[5] ||= (e) => K.value.sort = e,
|
|
261
|
+
max: 999
|
|
262
|
+
}, null, 8, ["value"])]),
|
|
263
|
+
_: 1
|
|
264
|
+
})]),
|
|
265
|
+
_: 1
|
|
266
|
+
})
|
|
267
|
+
]),
|
|
268
|
+
_: 1
|
|
269
|
+
}),
|
|
270
|
+
_(l, { gutter: 8 }, {
|
|
271
|
+
default: E(() => [_(i, { span: 24 }, {
|
|
272
|
+
default: E(() => [_(r, {
|
|
273
|
+
label: "描述",
|
|
274
|
+
name: "description",
|
|
275
|
+
"label-col": { span: 3 }
|
|
276
|
+
}, {
|
|
277
|
+
default: E(() => [_(p, {
|
|
278
|
+
value: K.value.description,
|
|
279
|
+
"onUpdate:value": t[6] ||= (e) => K.value.description = e,
|
|
280
|
+
placeholder: "请输入描述",
|
|
281
|
+
maxlength: 255,
|
|
282
|
+
"auto-size": { minRows: 2 },
|
|
283
|
+
"show-count": ""
|
|
284
|
+
}, null, 8, ["value"])]),
|
|
285
|
+
_: 1
|
|
286
|
+
})]),
|
|
287
|
+
_: 1
|
|
288
|
+
})]),
|
|
289
|
+
_: 1
|
|
290
|
+
}),
|
|
291
|
+
T(X).dataPermission ? (b(), m(l, {
|
|
292
|
+
key: 0,
|
|
293
|
+
gutter: 8
|
|
294
|
+
}, {
|
|
295
|
+
default: E(() => [_(i, { span: 8 }, {
|
|
296
|
+
default: E(() => [_(r, {
|
|
297
|
+
label: "启用数据权限",
|
|
298
|
+
name: "enableDataPermission"
|
|
299
|
+
}, {
|
|
300
|
+
default: E(() => [_(v, {
|
|
301
|
+
checked: K.value.enableDataPermission,
|
|
302
|
+
"onUpdate:checked": t[7] ||= (e) => K.value.enableDataPermission = e
|
|
303
|
+
}, null, 8, ["checked"])]),
|
|
304
|
+
_: 1
|
|
305
|
+
})]),
|
|
306
|
+
_: 1
|
|
307
|
+
}), _(i, { span: 16 }, {
|
|
308
|
+
default: E(() => [K.value.enableDataPermission ? (b(), m(r, {
|
|
309
|
+
key: 0,
|
|
310
|
+
label: "数据权限规则",
|
|
311
|
+
name: "dataPermissionType"
|
|
312
|
+
}, {
|
|
313
|
+
default: E(() => [_(x, {
|
|
314
|
+
value: K.value.dataPermissionType,
|
|
315
|
+
"onUpdate:value": t[8] ||= (e) => K.value.dataPermissionType = e,
|
|
316
|
+
options: T(ee)
|
|
317
|
+
}, null, 8, ["value", "options"])]),
|
|
318
|
+
_: 1
|
|
319
|
+
})) : h("v-if", !0)]),
|
|
320
|
+
_: 1
|
|
321
|
+
})]),
|
|
322
|
+
_: 1
|
|
323
|
+
})) : h("v-if", !0),
|
|
324
|
+
_(u, {
|
|
325
|
+
modelValue: K.value,
|
|
326
|
+
"onUpdate:modelValue": t[9] ||= (e) => K.value = e
|
|
327
|
+
}, null, 8, ["modelValue"])
|
|
328
|
+
]),
|
|
329
|
+
_: 1
|
|
330
|
+
}, 8, ["model"])]),
|
|
331
|
+
_: 1
|
|
332
|
+
}, 8, ["spinning"])]),
|
|
333
|
+
_: 1
|
|
334
|
+
}, 8, ["open", "title"]);
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
}), V = B;
|
|
338
|
+
export { V as b };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "./cloneDeep-BnvyNhik.js";
|
|
2
|
+
import "./ComponentSelect-B1ZyenXP.js";
|
|
3
|
+
import "./_plugin-vue_export-helper-DziIhCOI.js";
|
|
4
|
+
import "./enum-CYW8g64p.js";
|
|
5
|
+
import "./DynamicRoutesForm-qjbrykW4.js";
|
|
6
|
+
import "./enum-D0U38jb6.js";
|
|
7
|
+
import "./HoverCard-B79q5sly.js";
|
|
8
|
+
import "./MetaForm-DpH9an5A.js";
|
|
9
|
+
import { b as e } from "./ResourceEdit-0_cYB0iu.js";
|
|
10
|
+
export { e as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a4 as e, am as t, j as n } from "./index.js";
|
|
2
|
-
import { b as r } from "./_plugin-vue_export-helper-
|
|
2
|
+
import { b as r } from "./_plugin-vue_export-helper-DziIhCOI.js";
|
|
3
3
|
import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, isRef as f, openBlock as p, ref as m, resolveComponent as h, toDisplayString as g, unref as _, withCtx as v } from "vue";
|
|
4
4
|
import { Drawer as y, Segmented as b, Tag as x } from "ant-design-vue/es";
|
|
5
5
|
import { ProTable as S } from "@pubinfo/pro-components";
|
|
@@ -60,17 +60,17 @@ var E = /* @__PURE__ */ d({
|
|
|
60
60
|
}
|
|
61
61
|
}, {
|
|
62
62
|
default: v(() => [c("div", C, [u(n, {
|
|
63
|
-
value:
|
|
64
|
-
"onUpdate:value": t[0] ||= (e) =>
|
|
63
|
+
value: E.value,
|
|
64
|
+
"onUpdate:value": t[0] ||= (e) => E.value = e,
|
|
65
65
|
block: "",
|
|
66
|
-
options:
|
|
66
|
+
options: h.value,
|
|
67
67
|
onChange: j
|
|
68
68
|
}, null, 8, ["value", "options"])]), u(_(S), {
|
|
69
69
|
ref_key: "protable",
|
|
70
70
|
ref: A,
|
|
71
71
|
"row-key": "id",
|
|
72
72
|
request: M,
|
|
73
|
-
columns:
|
|
73
|
+
columns: N.value,
|
|
74
74
|
search: !1,
|
|
75
75
|
toolbar: !1,
|
|
76
76
|
"auto-height": { offset: 50 }
|
|
@@ -89,5 +89,5 @@ var E = /* @__PURE__ */ d({
|
|
|
89
89
|
}, 8, ["open"]);
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
|
-
}), D = /* @__PURE__ */ r(E, [["__scopeId", "data-v-
|
|
92
|
+
}), D = /* @__PURE__ */ r(E, [["__scopeId", "data-v-f00796a5"]]);
|
|
93
93
|
export { D as b };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a4 as e, am as t } from "./index.js";
|
|
2
|
-
import { b as n } from "./_plugin-vue_export-helper-
|
|
2
|
+
import { b as n } from "./_plugin-vue_export-helper-DziIhCOI.js";
|
|
3
3
|
import { createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, isRef as u, normalizeStyle as d, openBlock as f, ref as p, resolveComponent as m, toDisplayString as h, unref as g, withCtx as _ } from "vue";
|
|
4
4
|
import { theme as v } from "ant-design-vue";
|
|
5
5
|
import { Avatar as y, Drawer as b } from "ant-design-vue/es";
|
|
@@ -74,5 +74,5 @@ var C = /* @__PURE__ */ l({
|
|
|
74
74
|
}, 8, ["open"]);
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
-
}), w = /* @__PURE__ */ n(C, [["__scopeId", "data-v-
|
|
77
|
+
}), w = /* @__PURE__ */ n(C, [["__scopeId", "data-v-f9143961"]]);
|
|
78
78
|
export { w as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-
|
|
1
|
+
[data-v-f9143961] .ant-drawer-body{padding-left:0;padding-right:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-
|
|
1
|
+
[data-v-f00796a5] .ant-drawer-body{padding-left:0;padding-right:0}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { am as e } from "./index.js";
|
|
2
|
-
import { b as t } from "./_plugin-vue_export-helper-
|
|
3
|
-
import { b as n } from "./enum-
|
|
2
|
+
import { b as t } from "./_plugin-vue_export-helper-DziIhCOI.js";
|
|
3
|
+
import { b as n } from "./enum-B1DCzyaW.js";
|
|
4
4
|
import { PubinfoIcon as r } from "pubinfo";
|
|
5
|
-
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f,
|
|
6
|
-
import { DownOutlined as
|
|
7
|
-
import { Form as
|
|
8
|
-
import { Button as
|
|
9
|
-
import './ResourceSelector.css';const
|
|
5
|
+
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, mergeModels as p, openBlock as m, ref as h, renderList as g, resolveComponent as _, toDisplayString as v, unref as y, useModel as b, watch as x, withCtx as S, withModifiers as C } from "vue";
|
|
6
|
+
import { DownOutlined as w } from "@ant-design/icons-vue";
|
|
7
|
+
import { Form as T } from "ant-design-vue";
|
|
8
|
+
import { Button as E, Dropdown as D, Menu as ee, MenuItem as O, Modal as te, Tag as ne, Tooltip as re, Tree as ie } from "ant-design-vue/es";
|
|
9
|
+
import './ResourceSelector.css';const ae = { class: "h-340px border-1px border-solid flex flex-row border_color" }, oe = { class: "w-360px flex flex-col" }, se = { class: "w-full h-34px bg-[#F2F3F5] flex px-15px items-center justify-between text-[#1D2129] dark:bg-[#1D2129] dark:text-[#F2F3F5]" }, k = { class: "flex-1 overflow-auto py-10px pr-10px" }, A = { class: "flex items-center" }, j = { class: "mx-4px" }, M = ["onClick"], N = ["onClick"], P = ["onClick"], F = ["onClick"], I = { class: "flex-1 flex flex-col border-solid border-0px border-l-1px border_color" }, L = { class: "flex-1 p-10px overflow-auto" };
|
|
10
10
|
var R = /* @__PURE__ */ f({
|
|
11
11
|
name: "ResourceSelector",
|
|
12
12
|
__name: "index",
|
|
13
|
-
props: /* @__PURE__ */
|
|
13
|
+
props: /* @__PURE__ */ p({
|
|
14
14
|
title: { default: "资源选择" },
|
|
15
15
|
mode: { default: n.ROLE }
|
|
16
16
|
}, {
|
|
17
17
|
open: { type: Boolean },
|
|
18
18
|
openModifiers: {}
|
|
19
19
|
}),
|
|
20
|
-
emits: /* @__PURE__ */
|
|
21
|
-
setup(t, { expose: f, emit:
|
|
22
|
-
let _ = t, R =
|
|
20
|
+
emits: /* @__PURE__ */ p(["select"], ["update:open"]),
|
|
21
|
+
setup(t, { expose: f, emit: p }) {
|
|
22
|
+
let _ = t, R = p, z = a(() => _.mode === n.DATA_PERMISSION), B = h({
|
|
23
23
|
checked: [],
|
|
24
24
|
halfChecked: []
|
|
25
|
-
}), V =
|
|
25
|
+
}), V = h([]), H = h([]), U = h({}), W = h(0), G = h([]), K = b(t, "open"), q = e(K);
|
|
26
26
|
x(() => B.value.checked, (e) => {
|
|
27
27
|
H.value = e.reduce((e, t) => {
|
|
28
28
|
let n = {
|
|
@@ -32,10 +32,10 @@ var R = /* @__PURE__ */ f({
|
|
|
32
32
|
return e.push(n), e;
|
|
33
33
|
}, []);
|
|
34
34
|
}, { deep: !0 });
|
|
35
|
-
function
|
|
35
|
+
function ce(e, t, n) {
|
|
36
36
|
B.value.checked = [...e], G.value = t, U.value = n, W.value = Object.keys(U.value).length, t[0]?.id && (V.value = [t[0]?.id]), q(!0);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function le(e, t) {
|
|
39
39
|
if (!z.value) {
|
|
40
40
|
if (t.checked) {
|
|
41
41
|
function e(t) {
|
|
@@ -52,7 +52,7 @@ var R = /* @__PURE__ */ f({
|
|
|
52
52
|
B.value.checked = Array.from(new Set(B.value.checked));
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function ue() {
|
|
56
56
|
B.value.checked = [];
|
|
57
57
|
}
|
|
58
58
|
function J(e) {
|
|
@@ -81,7 +81,7 @@ var R = /* @__PURE__ */ f({
|
|
|
81
81
|
}
|
|
82
82
|
return n;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function de(e) {
|
|
85
85
|
let t = $(e.id);
|
|
86
86
|
t.length > 0 && (t.push(e.id), t.forEach((e) => {
|
|
87
87
|
let t = B.value.checked.findIndex((t) => t === e);
|
|
@@ -95,14 +95,14 @@ var R = /* @__PURE__ */ f({
|
|
|
95
95
|
t >= 0 && B.value.checked.splice(t, 1);
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function fe(e) {
|
|
99
99
|
let t = Q(e.id);
|
|
100
100
|
t.length > 0 && (t.push(e.id), t.forEach((e) => {
|
|
101
101
|
let t = B.value.checked.findIndex((t) => t === e);
|
|
102
102
|
t < 0 && B.value.checked.push(e);
|
|
103
103
|
}));
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function pe(e) {
|
|
106
106
|
let t = Q(e.id);
|
|
107
107
|
t.forEach((e) => {
|
|
108
108
|
let t = B.value.checked.findIndex((t) => t === e);
|
|
@@ -117,13 +117,13 @@ var R = /* @__PURE__ */ f({
|
|
|
117
117
|
let t = X(G.value, e), n = t.indexOf(e);
|
|
118
118
|
return t.splice(n, 1), t?.map((e) => Y(G.value, e))?.filter((e) => z.value ? !e.disabled : !0)?.map((e) => e.id);
|
|
119
119
|
}
|
|
120
|
-
let { onFieldChange:
|
|
121
|
-
function
|
|
122
|
-
R("select", H.value),
|
|
120
|
+
let { onFieldChange: me } = T.useInjectFormItemContext();
|
|
121
|
+
function he() {
|
|
122
|
+
R("select", H.value), me(), q(!1);
|
|
123
123
|
}
|
|
124
|
-
return f({ open:
|
|
125
|
-
let n = r, a =
|
|
126
|
-
return
|
|
124
|
+
return f({ open: ce }), (e, t) => {
|
|
125
|
+
let n = r, a = w, f = O, p = ee, h = D, _ = ie, b = ne, x = re, T = E, R = te;
|
|
126
|
+
return m(), o(R, {
|
|
127
127
|
open: K.value,
|
|
128
128
|
"onUpdate:open": t[4] ||= (e) => K.value = e,
|
|
129
129
|
class: "custom_modal",
|
|
@@ -131,23 +131,23 @@ var R = /* @__PURE__ */ f({
|
|
|
131
131
|
"mask-closable": !1,
|
|
132
132
|
width: 750
|
|
133
133
|
}, {
|
|
134
|
-
footer: S(() => [d(
|
|
134
|
+
footer: S(() => [d(T, { onClick: t[3] ||= (e) => y(q)(!1) }, {
|
|
135
135
|
default: S(() => t[8] ||= [u(" 取消 ")]),
|
|
136
136
|
_: 1,
|
|
137
137
|
__: [8]
|
|
138
|
-
}), d(
|
|
138
|
+
}), d(T, {
|
|
139
139
|
type: "primary",
|
|
140
|
-
onClick:
|
|
140
|
+
onClick: he
|
|
141
141
|
}, {
|
|
142
142
|
default: S(() => t[9] ||= [u(" 确定 ")]),
|
|
143
143
|
_: 1,
|
|
144
144
|
__: [9]
|
|
145
145
|
})]),
|
|
146
|
-
default: S(() => [l("div",
|
|
147
|
-
"checked-keys":
|
|
148
|
-
"onUpdate:checkedKeys": t[1] ||= (e) =>
|
|
149
|
-
"expanded-keys":
|
|
150
|
-
"onUpdate:expandedKeys": t[2] ||= (e) =>
|
|
146
|
+
default: S(() => [l("div", ae, [l("div", oe, [l("div", se, [t[5] ||= l("div", { class: "" }, " 全部资源 ", -1), l("div", null, v(B.value.checked.length) + "/" + v(W.value), 1)]), l("div", k, [d(_, {
|
|
147
|
+
"checked-keys": B.value,
|
|
148
|
+
"onUpdate:checkedKeys": t[1] ||= (e) => B.value = e,
|
|
149
|
+
"expanded-keys": V.value,
|
|
150
|
+
"onUpdate:expandedKeys": t[2] ||= (e) => V.value = e,
|
|
151
151
|
class: "h-full custom_tree",
|
|
152
152
|
"block-node": "",
|
|
153
153
|
checkable: "",
|
|
@@ -157,30 +157,30 @@ var R = /* @__PURE__ */ f({
|
|
|
157
157
|
title: "name",
|
|
158
158
|
key: "id"
|
|
159
159
|
},
|
|
160
|
-
"tree-data":
|
|
161
|
-
onCheck:
|
|
160
|
+
"tree-data": G.value,
|
|
161
|
+
onCheck: le
|
|
162
162
|
}, {
|
|
163
|
-
title: S((e) => [l("div",
|
|
164
|
-
e.checked ? (
|
|
163
|
+
title: S((e) => [l("div", A, [
|
|
164
|
+
e.checked ? (m(), o(n, {
|
|
165
165
|
key: 0,
|
|
166
166
|
name: "zy_checked",
|
|
167
167
|
size: "24px"
|
|
168
|
-
})) : (
|
|
168
|
+
})) : (m(), o(n, {
|
|
169
169
|
key: 1,
|
|
170
170
|
name: "zy_default",
|
|
171
171
|
size: "24px"
|
|
172
172
|
})),
|
|
173
173
|
l("span", j, v(e.name), 1),
|
|
174
174
|
s(" \"操作\"功能显示逻辑:角色模式下非叶子节点时显示; 数据权限模式下非叶子节点 且 数据disabled字段不为true时显示 "),
|
|
175
|
-
!e.leaf && (!
|
|
175
|
+
!e.leaf && (!z.value || !e.disabled) ? (m(), o(h, {
|
|
176
176
|
key: 2,
|
|
177
177
|
class: "bg-[#e8f3ff] dark:bg-[#141414]",
|
|
178
178
|
trigger: ["click"]
|
|
179
179
|
}, {
|
|
180
|
-
overlay: S(() => [d(
|
|
180
|
+
overlay: S(() => [d(p, null, {
|
|
181
181
|
default: S(() => [
|
|
182
182
|
d(f, { key: "0" }, {
|
|
183
|
-
default: S(() => [l("a", { onClick: (t) =>
|
|
183
|
+
default: S(() => [l("a", { onClick: (t) => de(e) }, "选中所有下级", 8, M)]),
|
|
184
184
|
_: 2
|
|
185
185
|
}, 1024),
|
|
186
186
|
d(f, { key: "1" }, {
|
|
@@ -188,11 +188,11 @@ var R = /* @__PURE__ */ f({
|
|
|
188
188
|
_: 2
|
|
189
189
|
}, 1024),
|
|
190
190
|
d(f, { key: "3" }, {
|
|
191
|
-
default: S(() => [l("a", { onClick: (t) =>
|
|
191
|
+
default: S(() => [l("a", { onClick: (t) => fe(e) }, "选中下一级", 8, P)]),
|
|
192
192
|
_: 2
|
|
193
193
|
}, 1024),
|
|
194
194
|
d(f, { key: "4" }, {
|
|
195
|
-
default: S(() => [l("a", { onClick: (t) =>
|
|
195
|
+
default: S(() => [l("a", { onClick: (t) => pe(e) }, "取消下一级", 8, F)]),
|
|
196
196
|
_: 2
|
|
197
197
|
}, 1024)
|
|
198
198
|
]),
|
|
@@ -201,7 +201,7 @@ var R = /* @__PURE__ */ f({
|
|
|
201
201
|
default: S(() => [l("a", {
|
|
202
202
|
class: "ant-dropdown-link whitespace-nowrap",
|
|
203
203
|
style: { padding: "2px 4px" },
|
|
204
|
-
onClick: t[0] ||=
|
|
204
|
+
onClick: t[0] ||= C(() => {}, ["prevent"])
|
|
205
205
|
}, [t[6] ||= l("span", { class: "text-base" }, "操作", -1), d(a, { style: { fontSize: "10px" } })])]),
|
|
206
206
|
_: 2
|
|
207
207
|
}, 1024)) : s("v-if", !0)
|
|
@@ -213,11 +213,11 @@ var R = /* @__PURE__ */ f({
|
|
|
213
213
|
"tree-data"
|
|
214
214
|
])])]), l("div", I, [l("div", { class: "w-full h-34px bg-[#F2F3F5] flex px-15px items-center justify-between text-[#1D2129] dark:bg-[#1D2129] dark:text-[#F2F3F5]" }, [t[7] ||= l("div", { class: "" }, " 已选资源 ", -1), l("div", {
|
|
215
215
|
class: "cursor-pointer text-[#165DFF]",
|
|
216
|
-
onClick:
|
|
217
|
-
}, " 清空 ")]), l("div", L, [(
|
|
216
|
+
onClick: ue
|
|
217
|
+
}, " 清空 ")]), l("div", L, [(m(!0), c(i, null, g(H.value, (e) => (m(), c("div", {
|
|
218
218
|
key: e.id,
|
|
219
219
|
class: "inline-block mb-6px max-w-300px"
|
|
220
|
-
}, [e.name?.length > 20 ? (
|
|
220
|
+
}, [e.name?.length > 20 ? (m(), o(x, {
|
|
221
221
|
key: 0,
|
|
222
222
|
title: e.name
|
|
223
223
|
}, {
|
|
@@ -230,7 +230,7 @@ var R = /* @__PURE__ */ f({
|
|
|
230
230
|
_: 2
|
|
231
231
|
}, 1032, ["onClose"])]),
|
|
232
232
|
_: 2
|
|
233
|
-
}, 1032, ["title"])) : (
|
|
233
|
+
}, 1032, ["title"])) : (m(), o(b, {
|
|
234
234
|
key: 1,
|
|
235
235
|
class: "custom_tag bg-[#e8f3ff] dark:bg-[#141414]",
|
|
236
236
|
closable: "",
|
|
@@ -243,5 +243,5 @@ var R = /* @__PURE__ */ f({
|
|
|
243
243
|
}, 8, ["open", "title"]);
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
|
-
}), z = /* @__PURE__ */ t(R, [["__scopeId", "data-v-
|
|
246
|
+
}), z = /* @__PURE__ */ t(R, [["__scopeId", "data-v-4d563935"]]);
|
|
247
247
|
export { z as b };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.border_color[data-v-
|
|
1
|
+
.border_color[data-v-4d563935]{--un-border-opacity:1;border-color:rgb(229 230 235/var(--un-border-opacity))}[data-theme=dark] .border_color[data-v-4d563935]{--un-border-opacity:.12;border-color:rgb(253 253 253/var(--un-border-opacity))}.border_c[data-v-4d563935]{--un-border-opacity:1;border-width:1px;border-color:rgb(204 204 204/var(--un-border-opacity));border-style:dashed;border-radius:10px}[data-v-4d563935] .ant-dropdown-link{--un-scale-x:.7;--un-scale-y:.7;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z));border-radius:.125rem;padding:.25rem .375rem;font-size:.75rem;line-height:1rem}.custom_modal[data-v-4d563935] .ant-modal-content{border-radius:0;padding:0}.custom_modal[data-v-4d563935] .ant-modal-header{--un-border-opacity:1;--un-border-bottom-opacity:var(--un-border-opacity);border-bottom-width:1px;border-bottom-color:rgb(229 230 235/var(--un-border-bottom-opacity));border-style:solid;margin-bottom:0;padding:.75rem 1rem}.custom_modal[data-v-4d563935] .ant-modal-title{--un-text-opacity:1;color:rgb(29 33 41/var(--un-text-opacity));font-size:1rem;font-weight:500;line-height:1.5rem}.custom_modal[data-v-4d563935] .ant-modal-body{padding:1rem}.custom_modal[data-v-4d563935] .ant-modal-footer{--un-border-opacity:1;--un-border-top-opacity:var(--un-border-opacity);border-top-width:1px;border-top-color:rgb(229 230 235/var(--un-border-top-opacity));border-style:solid;padding:1rem}.custom_modal[data-v-4d563935] .ant-modal-footer .ant-btn{border-radius:.125rem}[data-v-4d563935] .ant-tree-checkbox{margin-top:0;margin-right:2px}[data-v-4d563935] .ant-tree-checkbox+span .ant-tree-iconEle{margin-right:.25rem}.custom_tag[data-v-4d563935]{border-width:0;border-radius:.125rem;padding:3px .5rem}.custom_tag[data-v-4d563935] .ant-tag-close-icon{--un-text-opacity:.6;color:rgb(22 93 255/var(--un-text-opacity))}.custom_tag[data-v-4d563935] .ant-tag-close-icon:hover{--un-text-opacity:1;color:rgb(22 93 255/var(--un-text-opacity))}
|