@pubinfo-pr/module-rbac 0.224.1 → 0.224.2
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-A7uGTuHW.js → ComponentSelect-CYmAgdm3.js} +998 -963
- package/dist/DynamicRoutesForm-CMF3oh8h.js +171 -0
- package/dist/HCheckList-CAhQwX7m.js +39 -0
- package/dist/HoverCard-B-uU48hF.js +46 -0
- package/dist/IconSelect-CvxGRN_O.js +719 -0
- package/dist/ImportExport-CzZssb7_.js +345 -0
- package/dist/ImportExport-b1SnWRLj.js +6 -0
- package/dist/LayoutForm-Bpdyi_2o.js +129 -0
- package/dist/MetaForm-ZLzLz68d.js +39037 -0
- package/dist/OrgAndPosition-B0RE1Vc_.js +187 -0
- package/dist/OrgSelector-C2rPIonI.js +4877 -0
- package/dist/OrgSelector.css +1 -0
- package/dist/ResourceEdit-9fvxbd0K.js +383 -0
- package/dist/ResourceEdit-BMqfJ3aQ.js +13 -0
- package/dist/ResourceRelation-BrluMHdX.js +81 -0
- package/dist/ResourceRelation-IJvXnlpo.js +95 -0
- package/dist/RoleRelation-DuRuQG08.js +82 -0
- package/dist/RoleSelector-BTNYbcC6.js +282 -0
- package/dist/TenantEdit-Df3gZKLA.js +249 -0
- package/dist/UserAuthorization-DX7jNDDe.js +237 -0
- package/dist/UserEdit-BLb0n7WM.js +322 -0
- package/dist/_baseClone-C7vkGgsW.js +138 -0
- package/dist/_initCloneObject-r-eWKqzl.js +531 -0
- package/dist/add-child-DPb_m2by.js +4 -0
- package/dist/{animation_item-DBOz2rcX.js → animation_item-Coe-B0jQ.js} +24 -19
- package/dist/assist-BRMYD-oT.js +89 -0
- package/dist/authority-B9wtmsQd.js +4 -0
- package/dist/authorize-DxrutyIG.js +4 -0
- package/dist/blackWhiteList-d6TVsK48.js +214 -0
- package/dist/blacklist-disable-BKSw91qq.js +4 -0
- package/dist/blacklist-enable-CIB1fOHT.js +4 -0
- package/dist/breadcrumb_setting-DMbvWP5t.js +111 -0
- package/dist/browser-chrome-CM60RcrG.js +4 -0
- package/dist/browser-edge-4LBRzooM.js +4 -0
- package/dist/browser-ie-BF-wqbf6.js +4 -0
- package/dist/browser-other-iXJH-9iL.js +4 -0
- package/dist/browser-safari-CIpt0yPc.js +4 -0
- package/dist/browserType-Bik20-72.js +28 -0
- package/dist/chunk-WQLz0Won.js +20 -0
- package/dist/cloneDeep-REaxTPsZ.js +8 -0
- package/dist/createAndEditDataPermission-OunqmBu_.js +438 -0
- package/dist/data-permission-2pzeFLxP.js +159 -0
- package/dist/{dayjs.min-Cb7gQFd4.js → dayjs.min-CJunOGCc.js} +5 -3
- package/dist/dictionary-DGqlAhRk.js +182 -0
- package/dist/dist-DxAYQq3U.js +21 -0
- package/dist/drawerBlackWhiteList-VxyjaBkA.js +123 -0
- package/dist/drawerDictionary-DhAB-LV9.js +129 -0
- package/dist/drawerDictionaryItem-DYsJzZ2f.js +141 -0
- package/dist/drawerGroup-CTO8Lmbb.js +189 -0
- package/dist/drawerOrganization-CeCOW2N1.js +288 -0
- package/dist/drawerPosition-BmM9mLlP.js +169 -0
- package/dist/drawerRegion-BD-xc1x2.js +189 -0
- package/dist/drawerRole-B348x40k.js +214 -0
- package/dist/drawerRole-CgAPM-0g.js +172 -0
- package/dist/drawerRole-Cjp9iDsa.js +157 -0
- package/dist/edit-Drp8yjRe.js +4 -0
- package/dist/enum-CG0P82pn.js +6 -0
- package/dist/{enum-3E_sUqRF.js → enum-CR5ztb5v2.js} +15 -14
- package/dist/enum-CYCebJeC.js +62 -0
- package/dist/enum-DS4SGhiF.js +6 -0
- package/dist/enum-zdKA3Jy-.js +23 -0
- package/dist/group-C6Rj3K5I.js +178 -0
- package/dist/icard-BULUUV5m.js +4 -0
- package/dist/icon_animation-DuEY1FMm.js +4 -0
- package/dist/icon_breadcrumb-Y788iP_T.js +4 -0
- package/dist/icon_copyright-C1BER6kq.js +4 -0
- package/dist/icon_jt-ICOdrIF6.js +4 -0
- package/dist/icon_layout-D_wV9rX3.js +4 -0
- package/dist/icon_mainpage-Cz6_cxpJ.js +4 -0
- package/dist/icon_menu-y7SblUoR.js +4 -0
- package/dist/icon_page_size-BjwT656E.js +4 -0
- package/dist/icon_position_type-CPxcDgmM.js +4 -0
- package/dist/icon_safe_manage-CoqVRBLl.js +4 -0
- package/dist/icon_screen_scale-DURlkq3C.js +4 -0
- package/dist/icon_system_manage-BLXs2CQg.js +4 -0
- package/dist/icon_tabbar-_0QWhSBV.js +4 -0
- package/dist/icon_toolbar-BXpfu0iq.js +4 -0
- package/dist/icon_topbar-DrwvB8Jw.js +4 -0
- package/dist/icon_watermark-DwNqjAiA.js +4 -0
- package/dist/index.css +1 -1
- package/dist/index.js +588 -6776
- package/dist/isEmpty-2rx9iUQv.js +14 -0
- package/dist/isEqual-CNeQLaCM.js +474 -0
- package/dist/itemlist-BGe-z1IR.js +159 -0
- package/dist/json-asset-03f0a035.json +1 -0
- package/dist/json-asset-0ee63e7f.json +1 -0
- package/dist/json-asset-10eef4fe.json +1 -0
- package/dist/json-asset-13f452f1.json +1 -0
- package/dist/json-asset-14b7b290.json +1 -0
- package/dist/json-asset-15b8cef1.json +1 -0
- package/dist/json-asset-15f77960.json +1 -0
- package/dist/json-asset-1ae9b726.json +1 -0
- package/dist/json-asset-1b02359f.json +1 -0
- package/dist/json-asset-1ef286cd.json +1 -0
- package/dist/json-asset-23cfd18c.json +1 -0
- package/dist/json-asset-265a0a5d.json +1 -0
- package/dist/json-asset-28d57c49.json +1 -0
- package/dist/json-asset-2b54ed10.json +1 -0
- package/dist/json-asset-2bb6f642.json +1 -0
- package/dist/json-asset-2cdc07bd.json +1 -0
- package/dist/json-asset-31c58607.json +1 -0
- package/dist/json-asset-32884f23.json +1 -0
- package/dist/json-asset-32fca43a.json +1 -0
- package/dist/json-asset-3a75445b.json +1 -0
- package/dist/json-asset-3f27d67c.json +1 -0
- package/dist/json-asset-4189453f.json +1 -0
- package/dist/json-asset-4702b37c.json +1 -0
- package/dist/json-asset-520a5c68.json +1 -0
- package/dist/json-asset-56bea508.json +1 -0
- package/dist/json-asset-57c732a3.json +1 -0
- package/dist/json-asset-5be4a28f.json +1 -0
- package/dist/json-asset-5e6d7cfa.json +1 -0
- package/dist/json-asset-64e176c9.json +1 -0
- package/dist/json-asset-6583dca6.json +1 -0
- package/dist/json-asset-66c640c6.json +1 -0
- package/dist/json-asset-68393156.json +1 -0
- package/dist/json-asset-688465aa.json +1 -0
- package/dist/json-asset-6bf334f4.json +1 -0
- package/dist/json-asset-7b4f72ce.json +1 -0
- package/dist/json-asset-837ec087.json +1 -0
- package/dist/json-asset-838ac1ba.json +1 -0
- package/dist/json-asset-8465c2cf.json +1 -0
- package/dist/json-asset-9e9f04a4.json +1 -0
- package/dist/json-asset-a13964cb.json +1 -0
- package/dist/json-asset-ab93a057.json +1 -0
- package/dist/json-asset-abe308fc.json +1 -0
- package/dist/json-asset-b24f2cd3.json +1 -0
- package/dist/json-asset-bf00eaed.json +1 -0
- package/dist/json-asset-cb22efd7.json +1 -0
- package/dist/json-asset-cb953f20.json +1 -0
- package/dist/json-asset-cc209e34.json +1 -0
- package/dist/json-asset-cfdffceb.json +1 -0
- package/dist/json-asset-d33c0299.json +1 -0
- package/dist/json-asset-d430c8ca.json +1 -0
- package/dist/json-asset-d8cfa560.json +1 -0
- package/dist/json-asset-da91beb6.json +1 -0
- package/dist/json-asset-e2bdf85c.json +1 -0
- package/dist/json-asset-e34ad826.json +1 -0
- package/dist/json-asset-e80720aa.json +1 -0
- package/dist/json-asset-e894bc92.json +1 -0
- package/dist/json-asset-f28020f2.json +1 -0
- package/dist/json-asset-f71ebbf4.json +1 -0
- package/dist/json-asset-fb1f4917.json +1 -0
- package/dist/json-asset-ff2e97c4.json +1 -0
- package/dist/layout_setting-Cds3TCHc.js +71 -0
- package/dist/log-DOMU9MyH.js +18 -0
- package/dist/log-center-BrGlNhMd.js +4 -0
- package/dist/loginHistoryDetail-Coba_ajy.js +80 -0
- package/dist/{login_history-BiwaLpxA.js → login_history-CrXkEsHb.js} +38 -35
- package/dist/menu_setting-Br5dOEUk.js +158 -0
- package/dist/not-data-C-MacYF3.js +5 -0
- package/dist/operateHistoryDetail-DfDQL5BF.js +92 -0
- package/dist/{operate_history-sPd9IHMV.js → operate_history-BtHgPhmF.js} +38 -35
- package/dist/org-main-BRMBumDm.js +4 -0
- package/dist/org-unmain-0BHnrNdD.js +4 -0
- package/dist/organization-HuRdzTFX.js +15413 -0
- package/dist/other_setting-D92SlFvl.js +216 -0
- package/dist/page_animation_setting-Cy2R0vZy.js +111 -0
- package/dist/page_w_setting-DryWrqcx.js +66 -0
- package/dist/position-B1bqGly6.js +169 -0
- package/dist/rbac-B59CVHDt.js +460 -0
- package/dist/region-B_n1KXMG.js +182 -0
- package/dist/remove-BTME2Fhs.js +4 -0
- package/dist/request-7X2hpUru.js +5 -0
- package/dist/resource-CPNNd1l0.js +275 -0
- package/dist/resource-app-D8to3Lkn.js +4 -0
- package/dist/resource-btn-Cz-A_EQF.js +4 -0
- package/dist/resource-dynamic-BUqWxUiU.js +4 -0
- package/dist/resource-index-D2roT002.js +4 -0
- package/dist/resource-menu-BRER68rK.js +4 -0
- package/dist/resource-micro-Hyucl9de.js +4 -0
- package/dist/resource-nonmenu-7FcPEpHv.js +4 -0
- package/dist/role-CMd7WDRC.js +195 -0
- package/dist/role_group-DHh2s911.js +174 -0
- package/dist/safe_setting-CuTBmUve.js +225 -0
- package/dist/setItem-BwXZ5Uqx.js +4 -0
- package/dist/setItem-DlhIkIgh.js +78 -0
- package/dist/setting-manage-UHelpLrr.js +4 -0
- package/dist/stores-C-zbXsms.js +2 -0
- package/dist/tabbar_setting-CjW9LGPp.js +142 -0
- package/dist/tenant-B_vgufMG.js +180 -0
- package/dist/theme-check-mark-DRzx4sTs.js +4 -0
- package/dist/theme-title-BRvQ_qPg.js +4 -0
- package/dist/theme_setting-DMP0_nZ1.js +114 -0
- package/dist/toolbar_setting-ClxxvA7R.js +143 -0
- package/dist/useAppAndResource-D6WnpUPR.js +55 -0
- package/dist/user-BhytPqnx.js +348 -0
- package/dist/{vanilla-picker-Byb6q187.js → vanilla-picker-2HFham9c.js} +61 -59
- package/dist/view-Cridj7u2.js +4 -0
- package/dist/view-lBxqXfPW.js +114 -0
- package/dist/watermark_setting-b3vBYWwY.js +194 -0
- package/dist/zddata-CnvPWtIW.js +4 -0
- package/dist/zy_checked-C25HQlnr.js +4 -0
- package/dist/zy_default-B7RKtyqy.js +4 -0
- package/package.json +3 -3
- package/dist/DynamicRoutesForm-DSzy_bh5.js +0 -169
- package/dist/HCheckList-ODQHidN8.js +0 -37
- package/dist/HoverCard-CmJCoa2b.js +0 -44
- package/dist/IconSelect-DouEg3xY.js +0 -717
- package/dist/ImportExport-DisdLoY8.js +0 -342
- package/dist/LayoutForm-Bdfs5WeK.js +0 -125
- package/dist/MetaForm-CcDwS8vh.js +0 -38902
- package/dist/OrgAndPosition-jDX7m0HD.js +0 -184
- package/dist/ResourceEdit-0BYZRye_.js +0 -381
- package/dist/ResourceRelation-CU-QpUhP.js +0 -76
- package/dist/ResourceRelation-roz0a8Td.js +0 -91
- package/dist/RoleRelation-BQQFaum0.js +0 -79
- package/dist/RoleSelector-gkar_UGG.js +0 -275
- package/dist/TenantEdit-BsahDUlf.js +0 -246
- package/dist/UserAuthorization-2Fl4IGw7.js +0 -233
- package/dist/UserEdit-CX3Qau8T.js +0 -320
- package/dist/add-child-CFHHkjfg.js +0 -2
- package/dist/authority-L7SfiMdP.js +0 -2
- package/dist/authorize-qMpV_BXT.js +0 -2
- package/dist/blackWhiteList-DbG7JH8n.js +0 -211
- package/dist/blacklist-disable-BT6Xx-JG.js +0 -2
- package/dist/blacklist-enable-CJ6DK_V2.js +0 -2
- package/dist/breadcrumb_setting-Dx2Li6xt.js +0 -108
- package/dist/browser-chrome-DuAegVCe.js +0 -2
- package/dist/browser-edge-DzkWdXRd.js +0 -2
- package/dist/browser-ie-DZ9g_MXr.js +0 -2
- package/dist/browser-other-BmkifoYq.js +0 -2
- package/dist/browser-safari-CXrCuF2a.js +0 -2
- package/dist/browserType-B8A1Osvk.js +0 -26
- package/dist/chunk-DiMWNkAf.js +0 -18
- package/dist/cloneDeep-CSOSavu3.js +0 -6
- package/dist/createAndEditDataPermission-8_KNLzJT.js +0 -431
- package/dist/data-permission-LpuDLDm0.js +0 -152
- package/dist/dictionary-CEaxjqZe.js +0 -179
- package/dist/drawerBlackWhiteList-DXLdWurZ.js +0 -120
- package/dist/drawerDictionary-DYJTAZr6.js +0 -126
- package/dist/drawerDictionaryItem-BChXD2-q.js +0 -138
- package/dist/drawerGroup-CdnZkZxi.js +0 -185
- package/dist/drawerOrganization-CPsQlz-f.js +0 -282
- package/dist/drawerPosition-CfyfeQCN.js +0 -166
- package/dist/drawerRegion-DAwY_29K.js +0 -183
- package/dist/drawerRole-B7uCfHk-.js +0 -154
- package/dist/drawerRole-DK6DrinO.js +0 -209
- package/dist/drawerRole-DrzMHL0O.js +0 -167
- package/dist/edit-fZ7h_z_Z.js +0 -2
- package/dist/enum-3mYayxff.js +0 -61
- package/dist/enum-Cr7uWnB2.js +0 -23
- package/dist/enum-D2UEJsrC.js +0 -4
- package/dist/group-CaOhkh72.js +0 -172
- package/dist/icard-H-d9Pip-.js +0 -2
- package/dist/icon_animation-BCdRKkE5.js +0 -2
- package/dist/icon_breadcrumb-BR6LK8hP.js +0 -2
- package/dist/icon_copyright-BfWn1s6t.js +0 -2
- package/dist/icon_jt-DOMTq9De.js +0 -2
- package/dist/icon_layout-DKqAThpM.js +0 -2
- package/dist/icon_mainpage-CXB9JMGv.js +0 -2
- package/dist/icon_menu-BYQtWV-Q.js +0 -2
- package/dist/icon_page_size-r-z4oHWp.js +0 -2
- package/dist/icon_position_type-JDFdklRh.js +0 -2
- package/dist/icon_safe_manage-BDTIOduB.js +0 -2
- package/dist/icon_screen_scale-vEaAdr9S.js +0 -2
- package/dist/icon_system_manage-CkhQtieE.js +0 -2
- package/dist/icon_tabbar-DZNj-h-p.js +0 -2
- package/dist/icon_toolbar-BBYhGmEf.js +0 -2
- package/dist/icon_topbar-Bc379eaS.js +0 -2
- package/dist/icon_watermark-CTP8r-e2.js +0 -2
- package/dist/isEmpty-BjEzPyCa.js +0 -12
- package/dist/itemlist-CFwRUV2Y.js +0 -156
- package/dist/layout_setting-79srmFgJ.js +0 -68
- package/dist/log-BYris9iT.js +0 -14
- package/dist/log-center-CGT-BGAN.js +0 -2
- package/dist/loginHistoryDetail-CZnfmbbM.js +0 -78
- package/dist/menu_setting-ChueWHs4.js +0 -155
- package/dist/not-data-Bml86wdH.js +0 -3
- package/dist/operateHistoryDetail-HId-EZzy.js +0 -90
- package/dist/org-main-DnftBa38.js +0 -2
- package/dist/org-unmain-ByMarqFw.js +0 -2
- package/dist/organization-BXGT-lb7.js +0 -15316
- package/dist/other_setting-BEV_UK0g.js +0 -213
- package/dist/page_animation_setting-Cp5OnFpd.js +0 -108
- package/dist/page_w_setting-Q--ct16C.js +0 -63
- package/dist/position-CCZ2MSMP.js +0 -166
- package/dist/region-D3mjqB8H.js +0 -179
- package/dist/remove-DfZZBE2T.js +0 -2
- package/dist/resource-DaQ7CvM_.js +0 -271
- package/dist/resource-app-QSLZ7Hts.js +0 -2
- package/dist/resource-btn-BcB4xMgR.js +0 -2
- package/dist/resource-dynamic-D69oEbaO.js +0 -2
- package/dist/resource-index-BIHr3PZY.js +0 -2
- package/dist/resource-menu-0JSNn7S7.js +0 -2
- package/dist/resource-micro-CcX_pmaJ.js +0 -2
- package/dist/resource-nonmenu-DFItasMT.js +0 -2
- package/dist/role-4UgEw3nH.js +0 -192
- package/dist/role_group-hkRlCnyl.js +0 -171
- package/dist/safe_setting-4fv3qNRZ.js +0 -221
- package/dist/setItem-Vkcwkj-O.js +0 -77
- package/dist/setting-manage-C9whamLP.js +0 -2
- package/dist/stores-DPQF8JRt.js +0 -2
- package/dist/tabbar_setting-kbuTvrLB.js +0 -139
- package/dist/tenant-lWfGw2u1.js +0 -177
- package/dist/theme-check-mark-DG4oWCQN.js +0 -2
- package/dist/theme-title-BCYnl2jK.js +0 -2
- package/dist/theme_setting-CEb7UYQO.js +0 -111
- package/dist/toolbar_setting-BG-k2UFc.js +0 -140
- package/dist/useAppAndResource-B7FmNfKG.js +0 -52
- package/dist/user-BkUpcQC8.js +0 -339
- package/dist/view-Bnu34EJT.js +0 -2
- package/dist/watermark_setting-Cl2EtPAa.js +0 -191
- package/dist/zddata-Ceyga3_2.js +0 -2
- package/dist/zy_checked-DvD7k9F8.js +0 -2
- package/dist/zy_default-DJ2tB3Fo.js +0 -2
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { h as _plugin_vue_export_helper_default, l as postSysconfigAddOrEidtSysThemeStyleConfig } from "./index.js";
|
|
2
|
-
import { t as useSettingsStore } from "./stores-DPQF8JRt.js";
|
|
3
|
-
import { PubinfoIcon } from "pubinfo-pr";
|
|
4
|
-
import { Fragment, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, reactive, ref, renderList, resolveComponent, toDisplayString, unref } from "vue";
|
|
5
|
-
import { message } from "ant-design-vue";
|
|
6
|
-
import './page_w_setting.css';var _hoisted_1 = {
|
|
7
|
-
"w-full": "",
|
|
8
|
-
"h-full": "",
|
|
9
|
-
"p-10px": ""
|
|
10
|
-
}, _hoisted_2 = { class: "w-full h-full bg-white overflow-y-auto p-10px flex flex-col box-border dark:bg-[#141414]" }, _hoisted_3 = { class: "bg-[#F0F4FF] h-[38px] pl-[16px] flex flex-row items-center dark:bg-[#32353B]" }, _hoisted_4 = { class: "mt-[15px] flex-1 flex flex-row" }, _hoisted_5 = {
|
|
11
|
-
class: "flex-auto grid grid-cols-3 gap-[20px] px-30px w-full h-0 max-w-1500px",
|
|
12
|
-
aspect: "[3/2]"
|
|
13
|
-
}, _hoisted_6 = ["onClick"], _hoisted_7 = { class: "text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, page_w_setting_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
14
|
-
name: "PageWSetting",
|
|
15
|
-
__name: "index",
|
|
16
|
-
setup(e) {
|
|
17
|
-
let r = useSettingsStore(), i = ref(r.globalSettings.layout.widthMode), a = reactive([
|
|
18
|
-
{
|
|
19
|
-
describe: "自适应",
|
|
20
|
-
active: "adaption",
|
|
21
|
-
class: "mode-adaption"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
describe: "自适应 (有最小宽度)",
|
|
25
|
-
active: "adaption-min-width",
|
|
26
|
-
class: "mode-adaption-min-width"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
describe: "定宽居中",
|
|
30
|
-
active: "center",
|
|
31
|
-
class: "mode-center"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
describe: "定宽居中 (有最大宽度)",
|
|
35
|
-
active: "center-max-width",
|
|
36
|
-
class: "mode-center-max-width"
|
|
37
|
-
}
|
|
38
|
-
]);
|
|
39
|
-
function o(e) {
|
|
40
|
-
e && (i.value = e, r.globalSettings.layout.widthMode = e, postSysconfigAddOrEidtSysThemeStyleConfig({ content: JSON.stringify({ layout: { widthMode: e } }) }).then((e) => {
|
|
41
|
-
e.success && message.success("设置成功");
|
|
42
|
-
}));
|
|
43
|
-
}
|
|
44
|
-
return (e, t) => {
|
|
45
|
-
let n = PubinfoIcon;
|
|
46
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [createVNode(n, {
|
|
47
|
-
name: "icon_page_size",
|
|
48
|
-
class: "text-base mr-[6px]",
|
|
49
|
-
size: 22
|
|
50
|
-
}), t[0] ||= createElementVNode("span", { class: "text-[16px] text-[#1d2129] dark:text-[#C9CDD4]" }, "页宽模式", -1)]), createElementVNode("div", _hoisted_4, [t[3] ||= createElementVNode("div", { class: "flex-none w-[110px] text-right font-400 text-[#4e5969] text-[14px] pt-10px dark:text-[#C9CDD4]" }, " 模式选择 ", -1), createElementVNode("div", _hoisted_5, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(a), (e) => (openBlock(), createElementBlock("div", {
|
|
51
|
-
key: e.active,
|
|
52
|
-
class: normalizeClass(["item dark:bg-[#3A3E43]", [unref(i) === e.active ? "active" : "", `item-${e.active}`]]),
|
|
53
|
-
aspect: "[9/6]",
|
|
54
|
-
onClick: (t) => o(e.active)
|
|
55
|
-
}, [
|
|
56
|
-
createElementVNode("div", _hoisted_7, toDisplayString(e.describe), 1),
|
|
57
|
-
t[1] ||= createElementVNode("div", { class: "my-12px w-48px h-32px mode" }, null, -1),
|
|
58
|
-
t[2] ||= createElementVNode("div", { class: "flex-1 w-[75%] rounded-[8px] jb py-[10px] flex justify-center" }, [createElementVNode("div", { class: "layout-demo" })], -1)
|
|
59
|
-
], 10, _hoisted_6))), 128))])])])]);
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
}), [["__scopeId", "data-v-5d275d6b"]]);
|
|
63
|
-
export { page_w_setting_default as default };
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { Ct as postRbacPostFindPage, bt as deleteRbacPostDeleteById } from "./index.js";
|
|
2
|
-
import { r as ACTION, t as drawerPosition_default } from "./drawerPosition-CfyfeQCN.js";
|
|
3
|
-
import { PubinfoIcon, useAuth } from "pubinfo-pr";
|
|
4
|
-
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, resolveDirective, toDisplayString, unref, withCtx, withDirectives } from "vue";
|
|
5
|
-
import { PlusCircleOutlined } from "@ant-design/icons-vue";
|
|
6
|
-
import { Badge, Modal, message } from "ant-design-vue";
|
|
7
|
-
import { Button, Space as Space$1 } from "ant-design-vue/es";
|
|
8
|
-
import { ProTable } from "@pubinfo/pro-components";
|
|
9
|
-
var _hoisted_1 = {
|
|
10
|
-
"py-10px": "",
|
|
11
|
-
"px-10px": "",
|
|
12
|
-
"w-full": "",
|
|
13
|
-
"h-full": ""
|
|
14
|
-
}, _hoisted_2 = {
|
|
15
|
-
key: 0,
|
|
16
|
-
class: "flex items-center"
|
|
17
|
-
}, _hoisted_3 = { class: "ml-4px" }, _hoisted_4 = ["onClick"], _hoisted_5 = { class: "ml-4px" }, _hoisted_6 = ["onClick"], _hoisted_7 = { class: "ml-4px" }, position_default = /* @__PURE__ */ defineComponent({
|
|
18
|
-
name: "PositionManage",
|
|
19
|
-
__name: "index",
|
|
20
|
-
setup(o) {
|
|
21
|
-
let { auth: u } = useAuth(), d = ref(), f = ref();
|
|
22
|
-
function p() {
|
|
23
|
-
d.value?.reload();
|
|
24
|
-
}
|
|
25
|
-
async function m(t) {
|
|
26
|
-
let { current: n, pageSize: r, ...i } = t, a = await postRbacPostFindPage({
|
|
27
|
-
currentPage: n,
|
|
28
|
-
pageSize: r,
|
|
29
|
-
...i
|
|
30
|
-
});
|
|
31
|
-
return {
|
|
32
|
-
success: a.success,
|
|
33
|
-
data: a.data?.records ?? [],
|
|
34
|
-
total: a.data?.total ?? 0
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
let h = [
|
|
38
|
-
{
|
|
39
|
-
valueType: "a-input",
|
|
40
|
-
bind: "value",
|
|
41
|
-
minWidth: 200,
|
|
42
|
-
title: "岗位名称",
|
|
43
|
-
dataIndex: "name",
|
|
44
|
-
ellipsis: !0,
|
|
45
|
-
fieldProps: {
|
|
46
|
-
placeholder: "请输入岗位名称",
|
|
47
|
-
allowClear: !0
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
hideInSearch: !0,
|
|
52
|
-
minWidth: 100,
|
|
53
|
-
title: "岗位编码",
|
|
54
|
-
dataIndex: "code",
|
|
55
|
-
ellipsis: !0
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
hideInSearch: !0,
|
|
59
|
-
minWidth: 100,
|
|
60
|
-
title: "岗位类别",
|
|
61
|
-
dataIndex: "type",
|
|
62
|
-
ellipsis: !0
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
hideInSearch: !0,
|
|
66
|
-
minWidth: 100,
|
|
67
|
-
title: "是否启用",
|
|
68
|
-
dataIndex: "enable",
|
|
69
|
-
customRender: ({ text: e }) => e ? createVNode(Badge, {
|
|
70
|
-
status: "success",
|
|
71
|
-
text: "启用"
|
|
72
|
-
}, null) : createVNode(Badge, {
|
|
73
|
-
status: "error",
|
|
74
|
-
text: "禁用"
|
|
75
|
-
}, null)
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
hideInSearch: !0,
|
|
79
|
-
minWidth: 100,
|
|
80
|
-
title: "描述",
|
|
81
|
-
dataIndex: "description",
|
|
82
|
-
ellipsis: !0
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
hideInSearch: !0,
|
|
86
|
-
width: 160,
|
|
87
|
-
title: "操作",
|
|
88
|
-
dataIndex: "action",
|
|
89
|
-
fixed: "right",
|
|
90
|
-
hideInTable() {
|
|
91
|
-
return !u([
|
|
92
|
-
"region_add_child",
|
|
93
|
-
"region_edit",
|
|
94
|
-
"region_remove"
|
|
95
|
-
]);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
];
|
|
99
|
-
function g(e, r) {
|
|
100
|
-
switch (e) {
|
|
101
|
-
case ACTION.EDIT:
|
|
102
|
-
f.value?.open(e, r);
|
|
103
|
-
break;
|
|
104
|
-
case ACTION.ADD:
|
|
105
|
-
f.value?.open(e);
|
|
106
|
-
break;
|
|
107
|
-
case ACTION.REMOVE:
|
|
108
|
-
Modal.confirm({
|
|
109
|
-
title: "删除",
|
|
110
|
-
content: "确定要删除该岗位吗?",
|
|
111
|
-
onOk() {
|
|
112
|
-
deleteRbacPostDeleteById({ id: r?.id }).then((e) => {
|
|
113
|
-
e.success && (message.success("删除成功"), p());
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
break;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
return (e, t) => {
|
|
121
|
-
let a = PlusCircleOutlined, o = Button, s = PubinfoIcon, c = Space$1, l = resolveDirective("auth");
|
|
122
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(unref(ProTable), {
|
|
123
|
-
ref_key: "tableRef",
|
|
124
|
-
ref: d,
|
|
125
|
-
"row-key": "id",
|
|
126
|
-
request: m,
|
|
127
|
-
columns: h,
|
|
128
|
-
"auto-height": "",
|
|
129
|
-
scroll: { x: 1100 }
|
|
130
|
-
}, {
|
|
131
|
-
toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(o, {
|
|
132
|
-
type: "primary",
|
|
133
|
-
onClick: t[0] ||= (e) => g(unref(ACTION).ADD)
|
|
134
|
-
}, {
|
|
135
|
-
default: withCtx(() => [createVNode(a), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
|
|
136
|
-
_: 1
|
|
137
|
-
})), [[l, "position_add"]])]),
|
|
138
|
-
bodyCell: withCtx(({ column: e, record: t }) => [e.dataIndex === "type" ? (openBlock(), createElementBlock("div", _hoisted_2, [createVNode(s, {
|
|
139
|
-
name: "icon_position_type",
|
|
140
|
-
class: "text-20px"
|
|
141
|
-
}), createElementVNode("span", _hoisted_3, toDisplayString(t.type), 1)])) : createCommentVNode("", !0), e.dataIndex === "action" ? (openBlock(), createBlock(c, { key: 1 }, {
|
|
142
|
-
default: withCtx(() => [withDirectives((openBlock(), createElementBlock("a", {
|
|
143
|
-
class: "flex items-center",
|
|
144
|
-
onClick: (e) => g(unref(ACTION).EDIT, t)
|
|
145
|
-
}, [createVNode(s, {
|
|
146
|
-
name: "edit",
|
|
147
|
-
class: "text-base"
|
|
148
|
-
}), createElementVNode("span", _hoisted_5, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_4)), [[l, "position_edit"]]), withDirectives((openBlock(), createElementBlock("span", {
|
|
149
|
-
class: "flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",
|
|
150
|
-
onClick: (e) => g(unref(ACTION).REMOVE, t)
|
|
151
|
-
}, [createVNode(s, {
|
|
152
|
-
name: "remove",
|
|
153
|
-
class: "text-base"
|
|
154
|
-
}), createElementVNode("span", _hoisted_7, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_6)), [[l, "position_remove"]])]),
|
|
155
|
-
_: 2
|
|
156
|
-
}, 1024)) : createCommentVNode("", !0)]),
|
|
157
|
-
_: 1
|
|
158
|
-
}, 512), createVNode(drawerPosition_default, {
|
|
159
|
-
ref_key: "drawerPositionRef",
|
|
160
|
-
ref: f,
|
|
161
|
-
onSubmit: t[1] ||= (e) => p()
|
|
162
|
-
}, null, 512)]);
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
export { position_default as default };
|
package/dist/region-D3mjqB8H.js
DELETED
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import { t as cloneDeep } from "./cloneDeep-CSOSavu3.js";
|
|
2
|
-
import { Et as getRegionGetListByParentId, Tt as getRegionDeleteRegionByCode } from "./index.js";
|
|
3
|
-
import { r as ACTION, t as drawerRegion_default } from "./drawerRegion-DAwY_29K.js";
|
|
4
|
-
import { PubinfoIcon, useAuth } from "pubinfo-pr";
|
|
5
|
-
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, resolveDirective, toDisplayString, unref, withCtx, withDirectives } from "vue";
|
|
6
|
-
import { PlusCircleOutlined } from "@ant-design/icons-vue";
|
|
7
|
-
import { Modal, message } from "ant-design-vue";
|
|
8
|
-
import { Button, Space as Space$1 } from "ant-design-vue/es";
|
|
9
|
-
import { ProTable } from "@pubinfo/pro-components";
|
|
10
|
-
var _hoisted_1 = {
|
|
11
|
-
"w-full": "",
|
|
12
|
-
"h-full": "",
|
|
13
|
-
"py-10px": "",
|
|
14
|
-
"px-10px": ""
|
|
15
|
-
}, _hoisted_2 = ["onClick"], _hoisted_3 = { class: "ml-4px" }, _hoisted_4 = ["onClick"], _hoisted_5 = { class: "ml-4px" }, _hoisted_6 = ["onClick"], _hoisted_7 = { class: "ml-4px" }, region_default = /* @__PURE__ */ defineComponent({
|
|
16
|
-
name: "RegionManage",
|
|
17
|
-
__name: "index",
|
|
18
|
-
setup(a) {
|
|
19
|
-
let { auth: c } = useAuth(), l = ref({ parentId: "" }), u = ref([]), d = ref({}), f = ref(), p = ref(), m = ref([]);
|
|
20
|
-
function h(e) {
|
|
21
|
-
m.value = e;
|
|
22
|
-
}
|
|
23
|
-
let g = [
|
|
24
|
-
{
|
|
25
|
-
minWidth: 240,
|
|
26
|
-
title: "区域名称",
|
|
27
|
-
dataIndex: "name",
|
|
28
|
-
ellipsis: !0
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
minWidth: 100,
|
|
32
|
-
title: "区域范围",
|
|
33
|
-
dataIndex: "type"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
minWidth: 140,
|
|
37
|
-
title: "行政区划编码",
|
|
38
|
-
dataIndex: "code",
|
|
39
|
-
ellipsis: !0
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
minWidth: 100,
|
|
43
|
-
title: "区域编码",
|
|
44
|
-
dataIndex: "regionCode"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
minWidth: 100,
|
|
48
|
-
title: "显示顺序",
|
|
49
|
-
dataIndex: "sort"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
hideInSearch: !0,
|
|
53
|
-
title: "操作",
|
|
54
|
-
dataIndex: "action",
|
|
55
|
-
width: 240,
|
|
56
|
-
fixed: "right",
|
|
57
|
-
hideInTable() {
|
|
58
|
-
return !c([
|
|
59
|
-
"region_add_child",
|
|
60
|
-
"region_edit",
|
|
61
|
-
"region_remove"
|
|
62
|
-
]);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
];
|
|
66
|
-
function _(e, t) {
|
|
67
|
-
switch (e) {
|
|
68
|
-
case ACTION.ADDNEXT:
|
|
69
|
-
l.value.parentId = t.id, d.value = t, p.value?.open(e, t);
|
|
70
|
-
break;
|
|
71
|
-
case ACTION.ADD:
|
|
72
|
-
l.value.parentId = "", d.value = {}, p.value?.open(e);
|
|
73
|
-
break;
|
|
74
|
-
case ACTION.EDIT:
|
|
75
|
-
l.value.parentId = t.parentId, d.value = x(u.value, l.value.parentId), p.value?.open(e, t);
|
|
76
|
-
break;
|
|
77
|
-
case ACTION.REMOVE:
|
|
78
|
-
l.value.parentId = t.parentId, d.value = x(u.value, l.value.parentId), Modal.confirm({
|
|
79
|
-
title: "删除",
|
|
80
|
-
content: "确定要删除该区域吗?",
|
|
81
|
-
onOk() {
|
|
82
|
-
getRegionDeleteRegionByCode({ code: t.code }).then((e) => {
|
|
83
|
-
e.success && (message.success("删除成功"), b());
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
break;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
async function v() {
|
|
91
|
-
let e = await getRegionGetListByParentId({ ...l.value });
|
|
92
|
-
return d.value && Object.keys(d.value).length > 0 ? e.data.length > 0 ? d.value.children = e.data?.map((e) => ({
|
|
93
|
-
...e,
|
|
94
|
-
children: e.isLeaf ? void 0 : []
|
|
95
|
-
})) : d.value.children = void 0 : (m.value = [], u.value = e.data?.map((e) => ({
|
|
96
|
-
...e,
|
|
97
|
-
children: e.isLeaf ? void 0 : []
|
|
98
|
-
}))), {
|
|
99
|
-
success: !0,
|
|
100
|
-
data: u.value
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
function y(t, n) {
|
|
104
|
-
let r = cloneDeep(n);
|
|
105
|
-
t && r.children?.length === 0 && (l.value.parentId = n.id, d.value = n, f.value?.fetch());
|
|
106
|
-
}
|
|
107
|
-
function b() {
|
|
108
|
-
f.value?.reload();
|
|
109
|
-
}
|
|
110
|
-
function x(e, t) {
|
|
111
|
-
for (let n of e) {
|
|
112
|
-
if (n.id === t) return n;
|
|
113
|
-
if (n.children) {
|
|
114
|
-
let e = x(n.children, t);
|
|
115
|
-
if (e) return e;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
return (e, t) => {
|
|
120
|
-
let n = PlusCircleOutlined, i = Button, a = PubinfoIcon, o = Space$1, s = resolveDirective("auth");
|
|
121
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(unref(ProTable), {
|
|
122
|
-
ref_key: "tableRef",
|
|
123
|
-
ref: f,
|
|
124
|
-
"row-key": "id",
|
|
125
|
-
search: !1,
|
|
126
|
-
request: v,
|
|
127
|
-
columns: g,
|
|
128
|
-
"data-source": unref(u),
|
|
129
|
-
pagination: !1,
|
|
130
|
-
"auto-height": "",
|
|
131
|
-
"expanded-row-keys": unref(m),
|
|
132
|
-
scroll: { x: 1100 },
|
|
133
|
-
onExpandedRowsChange: h,
|
|
134
|
-
onExpand: y
|
|
135
|
-
}, {
|
|
136
|
-
toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(i, {
|
|
137
|
-
type: "primary",
|
|
138
|
-
onClick: t[0] ||= (e) => _(unref(ACTION).ADD)
|
|
139
|
-
}, {
|
|
140
|
-
default: withCtx(() => [createVNode(n), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
|
|
141
|
-
_: 1
|
|
142
|
-
})), [[s, "region_add"]])]),
|
|
143
|
-
bodyCell: withCtx(({ column: e, record: t }) => [e.dataIndex === "action" ? (openBlock(), createBlock(o, { key: 0 }, {
|
|
144
|
-
default: withCtx(() => [
|
|
145
|
-
withDirectives((openBlock(), createElementBlock("a", {
|
|
146
|
-
class: "flex items-center",
|
|
147
|
-
onClick: (e) => _(unref(ACTION).ADDNEXT, t)
|
|
148
|
-
}, [createVNode(a, {
|
|
149
|
-
name: "add-child",
|
|
150
|
-
class: "text-base"
|
|
151
|
-
}), createElementVNode("span", _hoisted_3, toDisplayString(unref(ACTION).ADDNEXT), 1)], 8, _hoisted_2)), [[s, "region_add_child"]]),
|
|
152
|
-
withDirectives((openBlock(), createElementBlock("a", {
|
|
153
|
-
class: "flex items-center",
|
|
154
|
-
onClick: (e) => _(unref(ACTION).EDIT, t)
|
|
155
|
-
}, [createVNode(a, {
|
|
156
|
-
name: "edit",
|
|
157
|
-
class: "text-base"
|
|
158
|
-
}), createElementVNode("span", _hoisted_5, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_4)), [[s, "region_edit"]]),
|
|
159
|
-
withDirectives((openBlock(), createElementBlock("span", {
|
|
160
|
-
class: "flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",
|
|
161
|
-
onClick: (e) => _(unref(ACTION).REMOVE, t)
|
|
162
|
-
}, [createVNode(a, {
|
|
163
|
-
name: "remove",
|
|
164
|
-
class: "text-base"
|
|
165
|
-
}), createElementVNode("span", _hoisted_7, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_6)), [[s, "region_remove"]])
|
|
166
|
-
]),
|
|
167
|
-
_: 2
|
|
168
|
-
}, 1024)) : createCommentVNode("", !0)]),
|
|
169
|
-
_: 1
|
|
170
|
-
}, 8, ["data-source", "expanded-row-keys"]), createVNode(drawerRegion_default, {
|
|
171
|
-
ref_key: "drawerRegionRef",
|
|
172
|
-
ref: p,
|
|
173
|
-
"tree-data": unref(u),
|
|
174
|
-
onSubmit: t[1] ||= (e) => b()
|
|
175
|
-
}, null, 8, ["tree-data"])]);
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
export { region_default as default };
|
package/dist/remove-DfZZBE2T.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var remove_default = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20class='design-iconfont'%20viewBox='0%200%2016%2017'%20width='24'%20height='24'%20preserveAspectRatio='xMidYMid%20meet'%3e%3crect%20width='7'%20height='1'%20x='4.5'%20y='1.175'%20fill='%23F53F3F'%20rx='.5'/%3e%3crect%20width='4.608'%20height='1'%20x='6.185'%20y='11.27'%20fill='%23F53F3F'%20rx='.5'%20transform='rotate(-90%206.185%2011.27)'/%3e%3crect%20width='4.608'%20height='1'%20x='8.815'%20y='11.27'%20fill='%23F53F3F'%20rx='.5'%20transform='rotate(-90%208.815%2011.27)'/%3e%3cpath%20stroke='%23F53F3F'%20d='M3.074%205.654A1.5%201.5%200%200%201%204.57%204.026h6.862a1.5%201.5%200%200%201%201.495%201.628l-.657%207.65a1.5%201.5%200%200%201-1.494%201.371h-5.55a1.5%201.5%200%200%201-1.494-1.372z'/%3e%3c/svg%3e";
|
|
2
|
-
export { remove_default as default };
|
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
import "./MetaForm-CcDwS8vh.js";
|
|
2
|
-
import { t as cloneDeep } from "./cloneDeep-CSOSavu3.js";
|
|
3
|
-
import "./ComponentSelect-A7uGTuHW.js";
|
|
4
|
-
import { I as getRbacResourceResourceDelete, L as getRbacResourceResourceTree } from "./index.js";
|
|
5
|
-
import "./enum-3mYayxff.js";
|
|
6
|
-
import { i as resourceOptions, n as RESOURCE_COLOR, r as RESOURCE_TYPE, t as ACTION } from "./enum-3E_sUqRF.js";
|
|
7
|
-
import "./DynamicRoutesForm-DSzy_bh5.js";
|
|
8
|
-
import "./HoverCard-CmJCoa2b.js";
|
|
9
|
-
import "./IconSelect-DouEg3xY.js";
|
|
10
|
-
import "./dayjs.min-Cb7gQFd4.js";
|
|
11
|
-
import { t as ImportExport_default } from "./ImportExport-DisdLoY8.js";
|
|
12
|
-
import "./LayoutForm-Bdfs5WeK.js";
|
|
13
|
-
import { t as ResourceEdit_default } from "./ResourceEdit-0BYZRye_.js";
|
|
14
|
-
import { t as RoleRelation_default } from "./RoleRelation-BQQFaum0.js";
|
|
15
|
-
import { PubinfoIcon, useAuth } from "pubinfo-pr";
|
|
16
|
-
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, resolveDirective, toDisplayString, unref, withCtx, withDirectives } from "vue";
|
|
17
|
-
import { PlusCircleOutlined, SwapOutlined } from "@ant-design/icons-vue";
|
|
18
|
-
import { Badge, Modal, Tag, message } from "ant-design-vue";
|
|
19
|
-
import { Button, Space as Space$1 } from "ant-design-vue/es";
|
|
20
|
-
import { ProTable } from "@pubinfo/pro-components";
|
|
21
|
-
var _hoisted_1 = {
|
|
22
|
-
"w-full": "",
|
|
23
|
-
"h-full": "",
|
|
24
|
-
"py-10px": "",
|
|
25
|
-
"px-10px": ""
|
|
26
|
-
}, _hoisted_2 = ["onClick"], _hoisted_3 = ["onClick"], _hoisted_4 = ["onClick"], _hoisted_5 = ["onClick"], resource_default = /* @__PURE__ */ defineComponent({
|
|
27
|
-
name: "Resource",
|
|
28
|
-
__name: "index",
|
|
29
|
-
setup(s) {
|
|
30
|
-
let { auth: c } = useAuth(), l = [
|
|
31
|
-
{
|
|
32
|
-
valueType: "a-input",
|
|
33
|
-
width: 200,
|
|
34
|
-
title: "资源名称",
|
|
35
|
-
dataIndex: "name",
|
|
36
|
-
ellipsis: !0,
|
|
37
|
-
fieldProps: {
|
|
38
|
-
placeholder: "请输入资源名称",
|
|
39
|
-
allowClear: !0
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
valueType: "a-select",
|
|
44
|
-
title: "资源类型",
|
|
45
|
-
dataIndex: "type",
|
|
46
|
-
fieldProps: {
|
|
47
|
-
placeholder: "请选择资源类型",
|
|
48
|
-
allowClear: !0,
|
|
49
|
-
options: resourceOptions
|
|
50
|
-
},
|
|
51
|
-
customRender({ text: e }) {
|
|
52
|
-
return createVNode("div", { class: "flex items-center space-x-1" }, [createVNode(Tag, {
|
|
53
|
-
color: RESOURCE_COLOR[e],
|
|
54
|
-
bordered: !1
|
|
55
|
-
}, { default: () => [resourceOptions.find((t) => t.value === e)?.label] })]);
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
valueType: "a-input",
|
|
60
|
-
title: "资源编码",
|
|
61
|
-
dataIndex: "code",
|
|
62
|
-
ellipsis: !0,
|
|
63
|
-
fieldProps: {
|
|
64
|
-
placeholder: "请输入资源编码",
|
|
65
|
-
allowClear: !0
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
title: "资源路径",
|
|
70
|
-
dataIndex: "meta",
|
|
71
|
-
ellipsis: !0,
|
|
72
|
-
hideInSearch: !0,
|
|
73
|
-
customRender({ text: e }) {
|
|
74
|
-
return e?.url || "-";
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
title: "接口权限",
|
|
79
|
-
dataIndex: "permissionCode",
|
|
80
|
-
ellipsis: !0,
|
|
81
|
-
hideInSearch: !0
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
valueType: "a-select",
|
|
85
|
-
title: "是否启用",
|
|
86
|
-
dataIndex: "enable",
|
|
87
|
-
width: 80,
|
|
88
|
-
align: "center",
|
|
89
|
-
fieldProps: {
|
|
90
|
-
placeholder: "请选择是否启用",
|
|
91
|
-
allowClear: !0,
|
|
92
|
-
options: [{
|
|
93
|
-
value: 1,
|
|
94
|
-
label: "是"
|
|
95
|
-
}, {
|
|
96
|
-
value: 0,
|
|
97
|
-
label: "否"
|
|
98
|
-
}]
|
|
99
|
-
},
|
|
100
|
-
customRender({ text: e }) {
|
|
101
|
-
return e ? createVNode(Badge, {
|
|
102
|
-
status: "success",
|
|
103
|
-
text: "是"
|
|
104
|
-
}, null) : createVNode(Badge, {
|
|
105
|
-
status: "error",
|
|
106
|
-
text: "否"
|
|
107
|
-
}, null);
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
title: "排序",
|
|
112
|
-
dataIndex: "sort",
|
|
113
|
-
width: 60,
|
|
114
|
-
align: "center",
|
|
115
|
-
hideInSearch: !0
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
title: "操作",
|
|
119
|
-
dataIndex: "action",
|
|
120
|
-
fixed: "right",
|
|
121
|
-
width: 300,
|
|
122
|
-
hideInSearch: !0,
|
|
123
|
-
hideInTable() {
|
|
124
|
-
return !c([
|
|
125
|
-
"resource_role_relation",
|
|
126
|
-
"resource_add_child",
|
|
127
|
-
"resource_edit",
|
|
128
|
-
"resource_remove"
|
|
129
|
-
]);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
];
|
|
133
|
-
function u(e, t) {
|
|
134
|
-
return e?.map((e) => (e.children = e.children && u(e.children, t), t(e))) ?? [];
|
|
135
|
-
}
|
|
136
|
-
let d = ref(), f = computed(() => d.value?.dataSource ?? []);
|
|
137
|
-
function p() {
|
|
138
|
-
d.value.reload();
|
|
139
|
-
}
|
|
140
|
-
async function m(t) {
|
|
141
|
-
let { pageSize: r, current: i, ...a } = cloneDeep(t);
|
|
142
|
-
return {
|
|
143
|
-
success: !0,
|
|
144
|
-
data: await getRbacResourceResourceTree({ ...a }, { transform(e) {
|
|
145
|
-
return u(e?.data ?? [], (e) => e.leaf ? {
|
|
146
|
-
...e,
|
|
147
|
-
children: void 0
|
|
148
|
-
} : e);
|
|
149
|
-
} })
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
let h = ref(), g = ref(), _ = ref();
|
|
153
|
-
function v(e, n) {
|
|
154
|
-
switch (e) {
|
|
155
|
-
case ACTION.ROLE_RELATION:
|
|
156
|
-
g.value.open(n);
|
|
157
|
-
break;
|
|
158
|
-
case ACTION.ADD:
|
|
159
|
-
h.value.open(e);
|
|
160
|
-
break;
|
|
161
|
-
case ACTION.ADD_CHILD:
|
|
162
|
-
h.value.open(e, n);
|
|
163
|
-
break;
|
|
164
|
-
case ACTION.EDIT:
|
|
165
|
-
h.value.open(e, n);
|
|
166
|
-
break;
|
|
167
|
-
case ACTION.IMPORT_EXPORT:
|
|
168
|
-
_.value.open();
|
|
169
|
-
break;
|
|
170
|
-
case ACTION.REMOVE:
|
|
171
|
-
if (!n?.leaf) {
|
|
172
|
-
message.info("非叶子节点不能删除");
|
|
173
|
-
return;
|
|
174
|
-
}
|
|
175
|
-
Modal.confirm({
|
|
176
|
-
title: "删除",
|
|
177
|
-
content: "确定要删除该资源吗?",
|
|
178
|
-
async onOk() {
|
|
179
|
-
(await getRbacResourceResourceDelete({ id: n?.id })).success && (message.success("删除成功"), p());
|
|
180
|
-
}
|
|
181
|
-
});
|
|
182
|
-
break;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
return (e, t) => {
|
|
186
|
-
let n = PlusCircleOutlined, r = Button, i = Space$1, o = resolveDirective("auth");
|
|
187
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
188
|
-
createVNode(unref(ProTable), {
|
|
189
|
-
ref_key: "tableRef",
|
|
190
|
-
ref: d,
|
|
191
|
-
"row-key": "id",
|
|
192
|
-
columns: l,
|
|
193
|
-
request: m,
|
|
194
|
-
pagination: !1,
|
|
195
|
-
scroll: { x: 1280 },
|
|
196
|
-
"auto-height": ""
|
|
197
|
-
}, {
|
|
198
|
-
toolbar: withCtx(() => [createVNode(i, null, {
|
|
199
|
-
default: withCtx(() => [withDirectives((openBlock(), createBlock(r, {
|
|
200
|
-
type: "primary",
|
|
201
|
-
onClick: t[0] ||= (e) => v(unref(ACTION).ADD)
|
|
202
|
-
}, {
|
|
203
|
-
default: withCtx(() => [createVNode(n), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
|
|
204
|
-
_: 1
|
|
205
|
-
})), [[o, "resource_app_add"]]), createVNode(r, { onClick: t[1] ||= (e) => v(unref(ACTION).IMPORT_EXPORT) }, {
|
|
206
|
-
default: withCtx(() => [createVNode(unref(SwapOutlined)), createTextVNode(" " + toDisplayString(unref(ACTION).IMPORT_EXPORT), 1)]),
|
|
207
|
-
_: 1
|
|
208
|
-
})]),
|
|
209
|
-
_: 1
|
|
210
|
-
})]),
|
|
211
|
-
bodyCell: withCtx(({ column: e, record: t }) => [e.dataIndex === "action" ? (openBlock(), createBlock(i, { key: 0 }, {
|
|
212
|
-
default: withCtx(() => [
|
|
213
|
-
withDirectives((openBlock(), createElementBlock("a", {
|
|
214
|
-
class: "flex items-center",
|
|
215
|
-
onClick: (e) => v(unref(ACTION).ROLE_RELATION, t)
|
|
216
|
-
}, [createVNode(unref(PubinfoIcon), {
|
|
217
|
-
name: "view",
|
|
218
|
-
class: "mr-1 text-base"
|
|
219
|
-
}), createElementVNode("span", null, toDisplayString(unref(ACTION).ROLE_RELATION), 1)], 8, _hoisted_2)), [[o, "resource_role_relation"]]),
|
|
220
|
-
[
|
|
221
|
-
unref(RESOURCE_TYPE).BUTTON,
|
|
222
|
-
unref(RESOURCE_TYPE).IFRAME,
|
|
223
|
-
unref(RESOURCE_TYPE).LINK
|
|
224
|
-
].includes(t.type) ? createCommentVNode("", !0) : withDirectives((openBlock(), createElementBlock("a", {
|
|
225
|
-
key: 0,
|
|
226
|
-
class: "flex items-center",
|
|
227
|
-
onClick: (e) => v(unref(ACTION).ADD_CHILD, t)
|
|
228
|
-
}, [createVNode(unref(PubinfoIcon), {
|
|
229
|
-
name: "add-child",
|
|
230
|
-
class: "mr-1 text-base"
|
|
231
|
-
}), createElementVNode("span", null, toDisplayString(unref(ACTION).ADD_CHILD), 1)], 8, _hoisted_3)), [[o, "resource_add_child"]]),
|
|
232
|
-
withDirectives((openBlock(), createElementBlock("a", {
|
|
233
|
-
class: "flex items-center",
|
|
234
|
-
onClick: (e) => v(unref(ACTION).EDIT, t)
|
|
235
|
-
}, [createVNode(unref(PubinfoIcon), {
|
|
236
|
-
name: "edit",
|
|
237
|
-
class: "mr-1 text-base"
|
|
238
|
-
}), createElementVNode("span", null, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_4)), [[o, "resource_edit"]]),
|
|
239
|
-
withDirectives((openBlock(), createElementBlock("span", {
|
|
240
|
-
class: "flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",
|
|
241
|
-
onClick: (e) => v(unref(ACTION).REMOVE, t)
|
|
242
|
-
}, [createVNode(unref(PubinfoIcon), {
|
|
243
|
-
name: "remove",
|
|
244
|
-
class: "mr-1 text-base"
|
|
245
|
-
}), createElementVNode("span", null, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_5)), [[o, "resource_remove"]])
|
|
246
|
-
]),
|
|
247
|
-
_: 2
|
|
248
|
-
}, 1024)) : createCommentVNode("", !0)]),
|
|
249
|
-
_: 1
|
|
250
|
-
}, 512),
|
|
251
|
-
createVNode(ResourceEdit_default, {
|
|
252
|
-
ref_key: "editRef",
|
|
253
|
-
ref: h,
|
|
254
|
-
"data-source": unref(f),
|
|
255
|
-
onSubmit: p
|
|
256
|
-
}, null, 8, ["data-source"]),
|
|
257
|
-
createVNode(RoleRelation_default, {
|
|
258
|
-
ref_key: "relationRef",
|
|
259
|
-
ref: g
|
|
260
|
-
}, null, 512),
|
|
261
|
-
createVNode(ImportExport_default, {
|
|
262
|
-
ref_key: "importExportRef",
|
|
263
|
-
ref: _,
|
|
264
|
-
"data-source": unref(f),
|
|
265
|
-
onSubmit: p
|
|
266
|
-
}, null, 8, ["data-source"])
|
|
267
|
-
]);
|
|
268
|
-
};
|
|
269
|
-
}
|
|
270
|
-
});
|
|
271
|
-
export { resource_default as default };
|