@pubinfo-pr/module-rbac 0.203.3 → 0.203.5
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-DWhTc1fB.js +253 -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-BbFERZ1l.js +15411 -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-CwtSFUj0.js +0 -247
- 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-Dv3FbKke.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
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import "./request-7X2hpUru.js";
|
|
2
|
+
import { h as e, l as t } from "./index.js";
|
|
3
|
+
import { t as n } from "./stores-C-zbXsms.js";
|
|
4
|
+
import "./animation_item-Coe-B0jQ.js";
|
|
5
|
+
import "./HCheckList-CAhQwX7m.js";
|
|
6
|
+
import { t as r } from "./setItem-DlhIkIgh.js";
|
|
7
|
+
import { PubinfoIcon as i } from "pubinfo-pr";
|
|
8
|
+
import { Fragment as a, createBlock as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, isRef as f, openBlock as p, reactive as m, ref as h, renderList as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
|
|
9
|
+
import { message as b } from "ant-design-vue";
|
|
10
|
+
import { Button as x, Collapse as S, CollapsePanel as C, Input as w } from "ant-design-vue/es";
|
|
11
|
+
import './other_setting.css';//#region src/assets/lottie/other/dark/enableCopyright.json?url
|
|
12
|
+
var T = new URL("json-asset-66c640c6.json", import.meta.url).href, E = new URL("json-asset-f71ebbf4.json", import.meta.url).href, D = new URL("json-asset-838ac1ba.json", import.meta.url).href, O = new URL("json-asset-ab93a057.json", import.meta.url).href, k = new URL("json-asset-da91beb6.json", import.meta.url).href, A = new URL("json-asset-e894bc92.json", import.meta.url).href, j = {
|
|
13
|
+
"w-full": "",
|
|
14
|
+
"h-full": "",
|
|
15
|
+
"p-10px": ""
|
|
16
|
+
}, M = { class: "w-full h-full bg-white overflow-y-auto p-10px flex flex-col box-border dark:bg-[#141414]" }, N = { class: "w-16px h-16px bg-[#fff] rounded-16px flex items-center justify-center" }, P = { class: "flex flex-row items-center" }, F = { class: "text-[16px] text-[#1d2129] dark:text-[#C9CDD4]" }, I = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "grid grid-cols-3 gap-[20px] px-30px w-full max-w-1300px"
|
|
19
|
+
}, L = { key: 1 }, R = { class: "grid-col-span-2 pt-40px" }, z = { class: "flex items-center mb-20px w-560px" }, B = { class: "flex items-center mb-20px w-560px" }, V = { class: "flex items-center mb-20px w-560px" }, H = { class: "flex items-center mb-20px w-560px" }, U = { class: "flex items-center flex-row-reverse w-560px" }, W = /* @__PURE__ */ e(/* @__PURE__ */ d({
|
|
20
|
+
name: "OtherSetting",
|
|
21
|
+
__name: "index",
|
|
22
|
+
setup(e) {
|
|
23
|
+
let d = n(), W = h([
|
|
24
|
+
"0",
|
|
25
|
+
"1",
|
|
26
|
+
"2"
|
|
27
|
+
]), G = m([
|
|
28
|
+
{
|
|
29
|
+
tabName: "底部版权",
|
|
30
|
+
tabIcon: "icon_copyright",
|
|
31
|
+
list: [{
|
|
32
|
+
name: "是否启用",
|
|
33
|
+
type: "switch",
|
|
34
|
+
descripe: "",
|
|
35
|
+
parentName: "copyright",
|
|
36
|
+
childName: "enable",
|
|
37
|
+
open: d.globalSettings.copyright.enable,
|
|
38
|
+
activeStyle: "",
|
|
39
|
+
lightData: O,
|
|
40
|
+
darkData: T
|
|
41
|
+
}]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
tabName: "页面",
|
|
45
|
+
tabIcon: "icon_mainpage",
|
|
46
|
+
list: [{
|
|
47
|
+
name: "是否启用快捷键",
|
|
48
|
+
type: "switch",
|
|
49
|
+
descripe: "",
|
|
50
|
+
parentName: "mainPage",
|
|
51
|
+
childName: "enableHotkeys",
|
|
52
|
+
open: d.globalSettings.mainPage.enableHotkeys,
|
|
53
|
+
activeStyle: "",
|
|
54
|
+
lightData: k,
|
|
55
|
+
darkData: E
|
|
56
|
+
}]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
tabName: "顶栏",
|
|
60
|
+
tabIcon: "icon_topbar",
|
|
61
|
+
list: [{
|
|
62
|
+
name: "展示切换",
|
|
63
|
+
type: "switch",
|
|
64
|
+
descripe: "切换标签栏和工具栏的展示顺序",
|
|
65
|
+
parentName: "topbar",
|
|
66
|
+
childName: "switchTabbarAndToolbar",
|
|
67
|
+
open: d.globalSettings.topbar.switchTabbarAndToolbar,
|
|
68
|
+
activeStyle: "",
|
|
69
|
+
lightData: A,
|
|
70
|
+
darkData: D
|
|
71
|
+
}]
|
|
72
|
+
}
|
|
73
|
+
]);
|
|
74
|
+
function K(e, t, n) {
|
|
75
|
+
if (d.globalSettings[e] && d.globalSettings[e][t] !== void 0) {
|
|
76
|
+
d.globalSettings[e][t] = n;
|
|
77
|
+
let r = {};
|
|
78
|
+
r[e] = {}, r[e][t] = n, q(JSON.stringify(r));
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
function q(e) {
|
|
82
|
+
t({ content: e }).then((e) => {
|
|
83
|
+
e.success && b.success("设置成功");
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
let J = h({
|
|
87
|
+
dates: d.globalSettings.copyright.dates,
|
|
88
|
+
company: d.globalSettings.copyright.company,
|
|
89
|
+
website: d.globalSettings.copyright.website,
|
|
90
|
+
beian: d.globalSettings.copyright.beian
|
|
91
|
+
});
|
|
92
|
+
function Y() {
|
|
93
|
+
let e = JSON.stringify({ copyright: {
|
|
94
|
+
dates: J.value.dates,
|
|
95
|
+
company: J.value.company,
|
|
96
|
+
website: J.value.website,
|
|
97
|
+
beian: J.value.beian
|
|
98
|
+
} });
|
|
99
|
+
d.globalSettings.copyright.dates = J.value.dates, d.globalSettings.copyright.company = J.value.company, d.globalSettings.copyright.website = J.value.website, d.globalSettings.copyright.beian = J.value.beian, q(e);
|
|
100
|
+
}
|
|
101
|
+
function X() {
|
|
102
|
+
J.value = {
|
|
103
|
+
dates: d.globalSettings.copyright.dates,
|
|
104
|
+
company: d.globalSettings.copyright.company,
|
|
105
|
+
website: d.globalSettings.copyright.website,
|
|
106
|
+
beian: d.globalSettings.copyright.beian
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
return (e, t) => {
|
|
110
|
+
let n = i, d = w, m = x, h = C, b = S;
|
|
111
|
+
return p(), s("div", j, [c("div", M, [u(b, {
|
|
112
|
+
"active-key": v(W),
|
|
113
|
+
"onUpdate:activeKey": t[4] ||= (e) => f(W) ? W.value = e : null,
|
|
114
|
+
bordered: !1,
|
|
115
|
+
ghost: !0,
|
|
116
|
+
"expand-icon-position": "end"
|
|
117
|
+
}, {
|
|
118
|
+
expandIcon: y((e) => [c("div", N, [u(n, {
|
|
119
|
+
name: "icon_jt",
|
|
120
|
+
class: "text-base",
|
|
121
|
+
rotate: e?.isActive ? 0 : 180,
|
|
122
|
+
size: 16,
|
|
123
|
+
onClick: (t) => console.log("pros", e)
|
|
124
|
+
}, null, 8, ["rotate", "onClick"])])]),
|
|
125
|
+
default: y(() => [(p(!0), s(a, null, g(v(G), (e, i) => (p(), o(h, {
|
|
126
|
+
key: i,
|
|
127
|
+
style: { "margin-bottom": "10px" }
|
|
128
|
+
}, {
|
|
129
|
+
header: y(() => [c("div", P, [u(n, {
|
|
130
|
+
name: e.tabIcon,
|
|
131
|
+
class: "text-base mr-[6px]",
|
|
132
|
+
size: 22
|
|
133
|
+
}, null, 8, ["name"]), c("span", F, _(e.tabName), 1)])]),
|
|
134
|
+
default: y(() => [e.tabName === "底部版权" ? (p(), s("div", L, [(p(!0), s(a, null, g(e.list, (e) => (p(), s("div", {
|
|
135
|
+
key: e.name,
|
|
136
|
+
class: "grid grid-cols-3 gap-[20px] px-30px w-full max-w-1300px"
|
|
137
|
+
}, [(p(), o(r, {
|
|
138
|
+
key: e.name,
|
|
139
|
+
aspect: "[9/6]",
|
|
140
|
+
name: e.name,
|
|
141
|
+
descripe: e.descripe,
|
|
142
|
+
open: e.open,
|
|
143
|
+
type: e.type,
|
|
144
|
+
"light-animation-data": e.lightData,
|
|
145
|
+
"dark-animation-data": e.darkData,
|
|
146
|
+
onChange: (t) => K(e.parentName, e.childName, t)
|
|
147
|
+
}, null, 8, [
|
|
148
|
+
"name",
|
|
149
|
+
"descripe",
|
|
150
|
+
"open",
|
|
151
|
+
"type",
|
|
152
|
+
"light-animation-data",
|
|
153
|
+
"dark-animation-data",
|
|
154
|
+
"onChange"
|
|
155
|
+
])), c("div", R, [
|
|
156
|
+
c("div", z, [t[5] ||= c("label", { class: "w-130px text-right mr-10px text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, "日期", -1), u(d, {
|
|
157
|
+
value: v(J).dates,
|
|
158
|
+
"onUpdate:value": t[0] ||= (e) => v(J).dates = e,
|
|
159
|
+
class: "flex-1"
|
|
160
|
+
}, null, 8, ["value"])]),
|
|
161
|
+
c("div", B, [t[6] ||= c("label", { class: "w-130px text-right mr-10px text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, "公司", -1), u(d, {
|
|
162
|
+
value: v(J).company,
|
|
163
|
+
"onUpdate:value": t[1] ||= (e) => v(J).company = e,
|
|
164
|
+
class: "flex-1"
|
|
165
|
+
}, null, 8, ["value"])]),
|
|
166
|
+
c("div", V, [t[7] ||= c("label", { class: "w-130px text-right mr-10px text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, "网址", -1), u(d, {
|
|
167
|
+
value: v(J).website,
|
|
168
|
+
"onUpdate:value": t[2] ||= (e) => v(J).website = e,
|
|
169
|
+
class: "flex-1"
|
|
170
|
+
}, null, 8, ["value"])]),
|
|
171
|
+
c("div", H, [t[8] ||= c("label", { class: "w-130px text-right mr-10px text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, "备案", -1), u(d, {
|
|
172
|
+
value: v(J).beian,
|
|
173
|
+
"onUpdate:value": t[3] ||= (e) => v(J).beian = e,
|
|
174
|
+
class: "flex-1"
|
|
175
|
+
}, null, 8, ["value"])]),
|
|
176
|
+
c("div", U, [u(m, {
|
|
177
|
+
style: { "margin-left": "10px" },
|
|
178
|
+
onClick: X
|
|
179
|
+
}, {
|
|
180
|
+
default: y(() => [...t[9] ||= [l(" 重置 ", -1)]]),
|
|
181
|
+
_: 1
|
|
182
|
+
}), u(m, {
|
|
183
|
+
type: "primary",
|
|
184
|
+
onClick: Y
|
|
185
|
+
}, {
|
|
186
|
+
default: y(() => [...t[10] ||= [l(" 确定 ", -1)]]),
|
|
187
|
+
_: 1
|
|
188
|
+
})])
|
|
189
|
+
])]))), 128))])) : (p(), s("div", I, [(p(!0), s(a, null, g(e.list, (e) => (p(), o(r, {
|
|
190
|
+
key: e.name,
|
|
191
|
+
aspect: "[9/6]",
|
|
192
|
+
name: e.name,
|
|
193
|
+
descripe: e.descripe,
|
|
194
|
+
open: e.open,
|
|
195
|
+
type: e.type,
|
|
196
|
+
"light-animation-data": e.lightData,
|
|
197
|
+
"dark-animation-data": e.darkData,
|
|
198
|
+
onChange: (t) => K(e.parentName, e.childName, t)
|
|
199
|
+
}, null, 8, [
|
|
200
|
+
"name",
|
|
201
|
+
"descripe",
|
|
202
|
+
"open",
|
|
203
|
+
"type",
|
|
204
|
+
"light-animation-data",
|
|
205
|
+
"dark-animation-data",
|
|
206
|
+
"onChange"
|
|
207
|
+
]))), 128))]))]),
|
|
208
|
+
_: 2
|
|
209
|
+
}, 1024))), 128))]),
|
|
210
|
+
_: 1
|
|
211
|
+
}, 8, ["active-key"])])]);
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
}), [["__scopeId", "data-v-1286401b"]]);
|
|
215
|
+
//#endregion
|
|
216
|
+
export { W as default };
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import "./request-7X2hpUru.js";
|
|
2
|
+
import { h as e, l as t } from "./index.js";
|
|
3
|
+
import { t as n } from "./stores-C-zbXsms.js";
|
|
4
|
+
import { t as r } from "./animation_item-Coe-B0jQ.js";
|
|
5
|
+
import { PubinfoIcon as i } from "pubinfo-pr";
|
|
6
|
+
import { Fragment as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, isRef as d, normalizeClass as f, openBlock as p, reactive as m, ref as h, renderList as g, toDisplayString as _, toRefs as v, unref as y } from "vue";
|
|
7
|
+
import { message as b } from "ant-design-vue";
|
|
8
|
+
import { Switch as x } from "ant-design-vue/es";
|
|
9
|
+
import './page_animation_setting.css';//#region src/assets/lottie/page_animation/dark/fadeinout.json?url
|
|
10
|
+
var S = new URL("json-asset-cfdffceb.json", import.meta.url).href, C = new URL("json-asset-5e6d7cfa.json", import.meta.url).href, w = new URL("json-asset-4189453f.json", import.meta.url).href, T = new URL("json-asset-ff2e97c4.json", import.meta.url).href, E = new URL("json-asset-68393156.json", import.meta.url).href, D = new URL("json-asset-265a0a5d.json", import.meta.url).href, O = new URL("json-asset-837ec087.json", import.meta.url).href, k = new URL("json-asset-1b02359f.json", import.meta.url).href, A = new URL("json-asset-3a75445b.json", import.meta.url).href, j = new URL("json-asset-e80720aa.json", import.meta.url).href, M = {
|
|
11
|
+
"w-full": "",
|
|
12
|
+
"h-full": "",
|
|
13
|
+
"p-10px": ""
|
|
14
|
+
}, N = { class: "w-full h-full bg-white overflow-y-auto p-10px flex flex-col box-border dark:bg-[#141414]" }, P = { class: "bg-[#F0F4FF] h-[38px] pl-[16px] flex flex-row items-center dark:bg-[#32353B]" }, F = { class: "mt-[15px] flex-1 flex flex-col" }, I = { class: "flex flex-row items-center" }, L = { class: "mt-[15px] flex-1 flex flex-row" }, R = {
|
|
15
|
+
class: "flex-auto grid grid-cols-3 gap-[20px] px-30px w-full h-0 max-w-1500px",
|
|
16
|
+
aspect: "[3/2]"
|
|
17
|
+
}, z = [
|
|
18
|
+
"onClick",
|
|
19
|
+
"onMouseenter",
|
|
20
|
+
"onMouseleave"
|
|
21
|
+
], B = { class: "text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, V = { class: "flex-1 mt-[20px] w-[75%] rounded-[8px] jb py-[10px] flex justify-center" }, H = /* @__PURE__ */ e(/* @__PURE__ */ u({
|
|
22
|
+
name: "PageAnimationSetting",
|
|
23
|
+
__name: "index",
|
|
24
|
+
setup(e) {
|
|
25
|
+
let u = n(), { enableTransition: H, transitionMode: U } = v(u.globalSettings.mainPage), W = h([]), G = m([
|
|
26
|
+
{
|
|
27
|
+
descripe: "淡入淡出",
|
|
28
|
+
active: "fade",
|
|
29
|
+
class: "mode-fade",
|
|
30
|
+
lightData: D,
|
|
31
|
+
darkData: S
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
descripe: "向左滑动",
|
|
35
|
+
active: "slide-left",
|
|
36
|
+
class: "mode-slide-left",
|
|
37
|
+
lightData: k,
|
|
38
|
+
darkData: w
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
descripe: "向右滑动",
|
|
42
|
+
active: "slide-right",
|
|
43
|
+
class: "mode-slide-right",
|
|
44
|
+
lightData: A,
|
|
45
|
+
darkData: T
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
descripe: "向上滑动",
|
|
49
|
+
active: "slide-top",
|
|
50
|
+
class: "mode-slide-top",
|
|
51
|
+
lightData: j,
|
|
52
|
+
darkData: E
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
descripe: "向下滑动",
|
|
56
|
+
active: "slide-bottom",
|
|
57
|
+
class: "mode-slide-bottom",
|
|
58
|
+
lightData: O,
|
|
59
|
+
darkData: C
|
|
60
|
+
}
|
|
61
|
+
]);
|
|
62
|
+
function K(e) {
|
|
63
|
+
W.value[e] && W.value[e]?.play();
|
|
64
|
+
}
|
|
65
|
+
function q(e) {
|
|
66
|
+
W.value[e] && W.value[e]?.stop();
|
|
67
|
+
}
|
|
68
|
+
let J = h(H.value);
|
|
69
|
+
function Y(e) {
|
|
70
|
+
u.globalSettings.mainPage.enableTransition = e, Z(JSON.stringify({ mainPage: { enableTransition: e } }));
|
|
71
|
+
}
|
|
72
|
+
function X(e) {
|
|
73
|
+
e && (U.value = e, u.globalSettings.mainPage.transitionMode = e, Z(JSON.stringify({ mainPage: { transitionMode: e } })));
|
|
74
|
+
}
|
|
75
|
+
function Z(e) {
|
|
76
|
+
t({ content: e }).then((e) => {
|
|
77
|
+
e.success && b.success("设置成功");
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
return (e, t) => {
|
|
81
|
+
let n = i, u = x;
|
|
82
|
+
return p(), s("div", M, [c("div", N, [c("div", P, [l(n, {
|
|
83
|
+
name: "icon_menu",
|
|
84
|
+
class: "text-base mr-[6px]",
|
|
85
|
+
size: 22
|
|
86
|
+
}), t[1] ||= c("span", { class: "text-[16px] text-[#1d2129] dark:text-[#C9CDD4]" }, "页面切换动画", -1)]), c("div", F, [c("div", I, [t[2] ||= c("div", { class: "w-[110px] text-right font-400 text-[#4e5969] text-[14px] dark:text-[#C9CDD4]" }, " 开启动画效果 ", -1), l(u, {
|
|
87
|
+
checked: y(J),
|
|
88
|
+
"onUpdate:checked": t[0] ||= (e) => d(J) ? J.value = e : null,
|
|
89
|
+
class: "ml-30px!",
|
|
90
|
+
"checked-children": "开启",
|
|
91
|
+
"un-checked-children": "关闭",
|
|
92
|
+
onChange: Y
|
|
93
|
+
}, null, 8, ["checked"])]), c("div", L, [t[3] ||= c("div", { class: "flex-none w-[110px] text-right font-400 text-[#4e5969] text-[14px] pt-10px dark:text-[#C9CDD4]" }, " 动画模式 ", -1), c("div", R, [(p(!0), s(a, null, g(y(G), (e, t) => (p(), s("div", {
|
|
94
|
+
key: e.active,
|
|
95
|
+
class: f(["item dark:bg-[#3a3e43]!", [y(U) === e.active ? "active" : "", `item-${e.active}`]]),
|
|
96
|
+
aspect: "[9/6]",
|
|
97
|
+
onClick: (t) => X(e.active),
|
|
98
|
+
onMouseenter: (e) => K(t),
|
|
99
|
+
onMouseleave: (e) => q(t)
|
|
100
|
+
}, [c("div", B, _(e.descripe), 1), c("div", V, [(p(), o(r, {
|
|
101
|
+
key: t,
|
|
102
|
+
ref_for: !0,
|
|
103
|
+
ref: (e) => y(W)[t] = e,
|
|
104
|
+
"light-animation-data": e.lightData,
|
|
105
|
+
"dark-animation-data": e.darkData
|
|
106
|
+
}, null, 8, ["light-animation-data", "dark-animation-data"]))])], 42, z))), 128))])])])])]);
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
}), [["__scopeId", "data-v-fa18e8e3"]]);
|
|
110
|
+
//#endregion
|
|
111
|
+
export { H as default };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import "./request-7X2hpUru.js";
|
|
2
|
+
import { h as e, l as t } from "./index.js";
|
|
3
|
+
import { t as n } from "./stores-C-zbXsms.js";
|
|
4
|
+
import { PubinfoIcon as r } from "pubinfo-pr";
|
|
5
|
+
import { Fragment as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, reactive as d, ref as f, renderList as p, toDisplayString as m, unref as h } from "vue";
|
|
6
|
+
import { message as g } from "ant-design-vue";
|
|
7
|
+
import './page_w_setting.css';//#region src/views/page_w_setting/index.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var _ = {
|
|
9
|
+
"w-full": "",
|
|
10
|
+
"h-full": "",
|
|
11
|
+
"p-10px": ""
|
|
12
|
+
}, v = { class: "w-full h-full bg-white overflow-y-auto p-10px flex flex-col box-border dark:bg-[#141414]" }, y = { class: "bg-[#F0F4FF] h-[38px] pl-[16px] flex flex-row items-center dark:bg-[#32353B]" }, b = { class: "mt-[15px] flex-1 flex flex-row" }, x = {
|
|
13
|
+
class: "flex-auto grid grid-cols-3 gap-[20px] px-30px w-full h-0 max-w-1500px",
|
|
14
|
+
aspect: "[3/2]"
|
|
15
|
+
}, S = ["onClick"], C = { class: "text-[#4E5969] text-[14px] dark:text-[#C9CDD4]" }, w = /* @__PURE__ */ e(/* @__PURE__ */ c({
|
|
16
|
+
name: "PageWSetting",
|
|
17
|
+
__name: "index",
|
|
18
|
+
setup(e) {
|
|
19
|
+
let c = n(), w = f(c.globalSettings.layout.widthMode), T = d([
|
|
20
|
+
{
|
|
21
|
+
describe: "自适应",
|
|
22
|
+
active: "adaption",
|
|
23
|
+
class: "mode-adaption"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
describe: "自适应 (有最小宽度)",
|
|
27
|
+
active: "adaption-min-width",
|
|
28
|
+
class: "mode-adaption-min-width"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
describe: "定宽居中",
|
|
32
|
+
active: "center",
|
|
33
|
+
class: "mode-center"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
describe: "定宽居中 (有最大宽度)",
|
|
37
|
+
active: "center-max-width",
|
|
38
|
+
class: "mode-center-max-width"
|
|
39
|
+
}
|
|
40
|
+
]);
|
|
41
|
+
function E(e) {
|
|
42
|
+
e && (w.value = e, c.globalSettings.layout.widthMode = e, t({ content: JSON.stringify({ layout: { widthMode: e } }) }).then((e) => {
|
|
43
|
+
e.success && g.success("设置成功");
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
return (e, t) => {
|
|
47
|
+
let n = r;
|
|
48
|
+
return u(), a("div", _, [o("div", v, [o("div", y, [s(n, {
|
|
49
|
+
name: "icon_page_size",
|
|
50
|
+
class: "text-base mr-[6px]",
|
|
51
|
+
size: 22
|
|
52
|
+
}), t[0] ||= o("span", { class: "text-[16px] text-[#1d2129] dark:text-[#C9CDD4]" }, "页宽模式", -1)]), o("div", b, [t[3] ||= o("div", { class: "flex-none w-[110px] text-right font-400 text-[#4e5969] text-[14px] pt-10px dark:text-[#C9CDD4]" }, " 模式选择 ", -1), o("div", x, [(u(!0), a(i, null, p(h(T), (e) => (u(), a("div", {
|
|
53
|
+
key: e.active,
|
|
54
|
+
class: l(["item dark:bg-[#3A3E43]", [h(w) === e.active ? "active" : "", `item-${e.active}`]]),
|
|
55
|
+
aspect: "[9/6]",
|
|
56
|
+
onClick: (t) => E(e.active)
|
|
57
|
+
}, [
|
|
58
|
+
o("div", C, m(e.describe), 1),
|
|
59
|
+
t[1] ||= o("div", { class: "my-12px w-48px h-32px mode" }, null, -1),
|
|
60
|
+
t[2] ||= o("div", { class: "flex-1 w-[75%] rounded-[8px] jb py-[10px] flex justify-center" }, [o("div", { class: "layout-demo" })], -1)
|
|
61
|
+
], 10, S))), 128))])])])]);
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}), [["__scopeId", "data-v-5d275d6b"]]);
|
|
65
|
+
//#endregion
|
|
66
|
+
export { w as default };
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import "./request-7X2hpUru.js";
|
|
2
|
+
import { gt as e, pt as t } from "./rbac-B59CVHDt.js";
|
|
3
|
+
import { r as n, t as r } from "./drawerPosition-BmM9mLlP.js";
|
|
4
|
+
import { PubinfoIcon as i, useAuth as a } from "pubinfo-pr";
|
|
5
|
+
import { createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, openBlock as p, ref as m, resolveDirective as h, toDisplayString as g, unref as _, withCtx as v, withDirectives as y } from "vue";
|
|
6
|
+
import { PlusCircleOutlined as b } from "@ant-design/icons-vue";
|
|
7
|
+
import { Badge as x, Modal as S, message as C } from "ant-design-vue";
|
|
8
|
+
import { Button as w, Space as T } from "ant-design-vue/es";
|
|
9
|
+
import { ProTable as E } from "@pubinfo/pro-components";
|
|
10
|
+
//#region src/views/position/index.vue?vue&type=script&setup=true&lang.tsx
|
|
11
|
+
var D = {
|
|
12
|
+
"py-10px": "",
|
|
13
|
+
"px-10px": "",
|
|
14
|
+
"w-full": "",
|
|
15
|
+
"h-full": ""
|
|
16
|
+
}, O = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "flex items-center"
|
|
19
|
+
}, k = { class: "ml-4px" }, A = ["onClick"], j = { class: "ml-4px" }, M = ["onClick"], N = { class: "ml-4px" }, P = /* @__PURE__ */ f({
|
|
20
|
+
name: "PositionManage",
|
|
21
|
+
__name: "index",
|
|
22
|
+
setup(f) {
|
|
23
|
+
let { auth: P } = a(), F = m(), I = m();
|
|
24
|
+
function L() {
|
|
25
|
+
F.value?.reload();
|
|
26
|
+
}
|
|
27
|
+
async function R(t) {
|
|
28
|
+
let { current: n, pageSize: r, ...i } = t, a = await e({
|
|
29
|
+
currentPage: n,
|
|
30
|
+
pageSize: r,
|
|
31
|
+
...i
|
|
32
|
+
});
|
|
33
|
+
return {
|
|
34
|
+
success: a.success,
|
|
35
|
+
data: a.data?.records ?? [],
|
|
36
|
+
total: a.data?.total ?? 0
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
let z = [
|
|
40
|
+
{
|
|
41
|
+
valueType: "a-input",
|
|
42
|
+
bind: "value",
|
|
43
|
+
minWidth: 200,
|
|
44
|
+
title: "岗位名称",
|
|
45
|
+
dataIndex: "name",
|
|
46
|
+
ellipsis: !0,
|
|
47
|
+
fieldProps: {
|
|
48
|
+
placeholder: "请输入岗位名称",
|
|
49
|
+
allowClear: !0
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
hideInSearch: !0,
|
|
54
|
+
minWidth: 100,
|
|
55
|
+
title: "岗位编码",
|
|
56
|
+
dataIndex: "code",
|
|
57
|
+
ellipsis: !0
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
hideInSearch: !0,
|
|
61
|
+
minWidth: 100,
|
|
62
|
+
title: "岗位类别",
|
|
63
|
+
dataIndex: "type",
|
|
64
|
+
ellipsis: !0
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
hideInSearch: !0,
|
|
68
|
+
minWidth: 100,
|
|
69
|
+
title: "是否启用",
|
|
70
|
+
dataIndex: "enable",
|
|
71
|
+
customRender: ({ text: e }) => e ? d(x, {
|
|
72
|
+
status: "success",
|
|
73
|
+
text: "启用"
|
|
74
|
+
}, null) : d(x, {
|
|
75
|
+
status: "error",
|
|
76
|
+
text: "禁用"
|
|
77
|
+
}, null)
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
hideInSearch: !0,
|
|
81
|
+
minWidth: 100,
|
|
82
|
+
title: "描述",
|
|
83
|
+
dataIndex: "description",
|
|
84
|
+
ellipsis: !0
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
hideInSearch: !0,
|
|
88
|
+
width: 160,
|
|
89
|
+
title: "操作",
|
|
90
|
+
dataIndex: "action",
|
|
91
|
+
fixed: "right",
|
|
92
|
+
hideInTable() {
|
|
93
|
+
return !P([
|
|
94
|
+
"region_add_child",
|
|
95
|
+
"region_edit",
|
|
96
|
+
"region_remove"
|
|
97
|
+
]);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
];
|
|
101
|
+
function B(e, r) {
|
|
102
|
+
switch (e) {
|
|
103
|
+
case n.EDIT:
|
|
104
|
+
I.value?.open(e, r);
|
|
105
|
+
break;
|
|
106
|
+
case n.ADD:
|
|
107
|
+
I.value?.open(e);
|
|
108
|
+
break;
|
|
109
|
+
case n.REMOVE:
|
|
110
|
+
S.confirm({
|
|
111
|
+
title: "删除",
|
|
112
|
+
content: "确定要删除该岗位吗?",
|
|
113
|
+
onOk() {
|
|
114
|
+
t({ id: r?.id }).then((e) => {
|
|
115
|
+
e.success && (C.success("删除成功"), L());
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
return (e, t) => {
|
|
123
|
+
let a = b, f = w, m = i, x = T, S = h("auth");
|
|
124
|
+
return p(), c("div", D, [d(_(E), {
|
|
125
|
+
ref_key: "tableRef",
|
|
126
|
+
ref: F,
|
|
127
|
+
"row-key": "id",
|
|
128
|
+
request: R,
|
|
129
|
+
columns: z,
|
|
130
|
+
"auto-height": "",
|
|
131
|
+
scroll: { x: 1100 }
|
|
132
|
+
}, {
|
|
133
|
+
toolbar: v(() => [y((p(), o(f, {
|
|
134
|
+
type: "primary",
|
|
135
|
+
onClick: t[0] ||= (e) => B(_(n).ADD)
|
|
136
|
+
}, {
|
|
137
|
+
default: v(() => [d(a), u(" " + g(_(n).ADD), 1)]),
|
|
138
|
+
_: 1
|
|
139
|
+
})), [[S, "position_add"]])]),
|
|
140
|
+
bodyCell: v(({ column: e, record: t }) => [e.dataIndex === "type" ? (p(), c("div", O, [d(m, {
|
|
141
|
+
name: "icon_position_type",
|
|
142
|
+
class: "text-20px"
|
|
143
|
+
}), l("span", k, g(t.type), 1)])) : s("", !0), e.dataIndex === "action" ? (p(), o(x, { key: 1 }, {
|
|
144
|
+
default: v(() => [y((p(), c("a", {
|
|
145
|
+
class: "flex items-center",
|
|
146
|
+
onClick: (e) => B(_(n).EDIT, t)
|
|
147
|
+
}, [d(m, {
|
|
148
|
+
name: "edit",
|
|
149
|
+
class: "text-base"
|
|
150
|
+
}), l("span", j, g(_(n).EDIT), 1)], 8, A)), [[S, "position_edit"]]), y((p(), c("span", {
|
|
151
|
+
class: "flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",
|
|
152
|
+
onClick: (e) => B(_(n).REMOVE, t)
|
|
153
|
+
}, [d(m, {
|
|
154
|
+
name: "remove",
|
|
155
|
+
class: "text-base"
|
|
156
|
+
}), l("span", N, g(_(n).REMOVE), 1)], 8, M)), [[S, "position_remove"]])]),
|
|
157
|
+
_: 2
|
|
158
|
+
}, 1024)) : s("", !0)]),
|
|
159
|
+
_: 1
|
|
160
|
+
}, 512), d(r, {
|
|
161
|
+
ref_key: "drawerPositionRef",
|
|
162
|
+
ref: I,
|
|
163
|
+
onSubmit: t[1] ||= (e) => L()
|
|
164
|
+
}, null, 512)]);
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
//#endregion
|
|
169
|
+
export { P as default };
|