2 lines
13 KiB
JavaScript
2 lines
13 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/layout-D158Zwfz.js","assets/index-3YculFMX.js","assets/preload-helper-DSXbuxSR.js","assets/runtime-core.esm-bundler-DbRZbT7v.js","assets/index-BTxz3KtI.css","assets/iconify-f5JHLb1p.js","assets/user-BFl2lhly.js","assets/request-DD5g7hLU.js","assets/axios-M7beJlyD.js","assets/layout-Bba1oLTr.css","assets/exceptions-BOFWWrYu.js","assets/care-BUQYu5B3.js","assets/crm-CvCW8IfR.js","assets/health-metrics-BLPCzyXH.js","assets/plans-Bp6SNQZ6.js","assets/system-DEm1DLCy.js","assets/profiles-D7wJB7Sp.js","assets/records-FqbYbICo.js","assets/channels-Dxf-llaq.js","assets/complaints-q2aLoF_Z.js","assets/contracts-B3l9BC6j.js","assets/customers-D32xsfG9.js","assets/leads-2CG5WK5_.js","assets/questionnaires-DMGUlNJO.js","assets/dashboard-CEXQa1pu.js","assets/404-F8BsopE3.js","assets/404-lb1dpT3n.css","assets/accounts-VTQUqWsm.js","assets/finance-xn2Nlkdw.js","assets/categories-CUHGnGIZ.js","assets/invoices-BQmi2e7M.js","assets/payments-BrnHQrWo.js","assets/prepaid-cards-CWlUGAlv.js","assets/records-N35kQ2BC.js","assets/transactions-Df8SEsO7.js","assets/attendances-B_DnAiN3.js","assets/hr-BpuQE_Km.js","assets/leaves-CApz-qRd.js","assets/profiles-Dvw91znB.js","assets/salaries-Bc2_dQt2.js","assets/schedules-Yw8rDBJ4.js","assets/checks-Cnmj1PAb.js","assets/inventory-BVEZNzEQ.js","assets/materials-LA3XVRGm.js","assets/purchase-orders-DJH82wSd.js","assets/stock-QFAdGVVG.js","assets/stock-BKGyHpKj.css","assets/stock-movements-G7cq09hc.js","assets/suppliers-B-ax3fUn.js","assets/transfers-DfYYFifi.js","assets/warehouses-B9RawaVf.js","assets/articles-DWzdB9N4.js","assets/kb-CR5OwwPK.js","assets/categories-BohrmcA0.js","assets/login-ChQUh91H.js","assets/daily-plans-pQM2n0a6.js","assets/meal-CgJENF-S.js","assets/dishes-6mBLTW6z.js","assets/reviews-D50R_81A.js","assets/templates-CWLqo64z.js","assets/nannies-DV_-H8Hj.js","assets/nanny-Bdev7M11.js","assets/orders-BVojzZVm.js","assets/schedules-CCj2xXC0.js","assets/announcements-CEw2Czo5.js","assets/office-CIThbrL3.js","assets/approval-templates-CUIt8K9p.js","assets/approvals-BAF9KaoV.js","assets/handovers-s3E48LIK.js","assets/notifications-I8CiKdc8.js","assets/notifications-g_qm3ySB.css","assets/register-CDFAtgib.js","assets/exports-DUkrHlPt.js","assets/report-wIlYRH-f.js","assets/exports-B_uIFYth.css","assets/overview-D-oyNP28.js","assets/overview-BxW0qUIU.css","assets/board-sk3RGSX4.js","assets/room-ByMILmib.js","assets/call-records-Clz1SbNm.js","assets/outings-CCtOaR3A.js","assets/reservations-BDcEwJH9.js","assets/room-types-Di2pN98t.js","assets/rooms-Ch7GX3Px.js","assets/executions-CxoDnYt2.js","assets/service-nZ3xVURY.js","assets/executions-BEcAvGO_.css","assets/items-DALYJmTT.js","assets/orders-2ivO139e.js","assets/packages-BwskPf-Y.js","assets/departments-CnYyi91t.js","assets/dictionaries-CV3_WCLC.js","assets/dictionaries-BxACn_24.css","assets/logs-BZrUVvB5.js","assets/logs-BEnn1I4-.css","assets/menus-DasFO-X7.js","assets/positions-DeqC6kdd.js","assets/registration-packages-D1EkvZPn.js","assets/roles-Dwv5QOVU.js","assets/roles-DRo0ztff.css","assets/stores-D6abJMXk.js","assets/users-DjBGJbBb.js"])))=>i.map(i=>d[i]);
|
|
import{lt as e}from"./runtime-core.esm-bundler-DbRZbT7v.js";import{t}from"./preload-helper-DSXbuxSR.js";import{a as n,n as r}from"./index-3YculFMX.js";var i=()=>t(()=>import(`./layout-D158Zwfz.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])),a=Object.assign({"/src/views/care/exceptions/index.vue":()=>t(()=>import(`./exceptions-BOFWWrYu.js`),__vite__mapDeps([10,1,2,3,4,5,11,7,8,12])),"/src/views/care/health-metrics/index.vue":()=>t(()=>import(`./health-metrics-BLPCzyXH.js`),__vite__mapDeps([13,1,2,3,4,5,11,7,8,12])),"/src/views/care/plans/index.vue":()=>t(()=>import(`./plans-Bp6SNQZ6.js`),__vite__mapDeps([14,1,2,3,4,11,7,8,15])),"/src/views/care/profiles/index.vue":()=>t(()=>import(`./profiles-D7wJB7Sp.js`),__vite__mapDeps([16,1,2,3,4,11,7,8,12])),"/src/views/care/records/index.vue":()=>t(()=>import(`./records-FqbYbICo.js`),__vite__mapDeps([17,1,2,3,4,11,7,8])),"/src/views/crm/channels/index.vue":()=>t(()=>import(`./channels-Dxf-llaq.js`),__vite__mapDeps([18,1,2,3,4,12,7,8])),"/src/views/crm/complaints/index.vue":()=>t(()=>import(`./complaints-q2aLoF_Z.js`),__vite__mapDeps([19,1,2,3,4,12,7,8])),"/src/views/crm/contracts/index.vue":()=>t(()=>import(`./contracts-B3l9BC6j.js`),__vite__mapDeps([20,1,2,3,4,12,7,8])),"/src/views/crm/customers/index.vue":()=>t(()=>import(`./customers-D32xsfG9.js`),__vite__mapDeps([21,1,2,3,4,12,7,8])),"/src/views/crm/leads/index.vue":()=>t(()=>import(`./leads-2CG5WK5_.js`),__vite__mapDeps([22,1,2,3,4,12,7,8,15])),"/src/views/crm/questionnaires/index.vue":()=>t(()=>import(`./questionnaires-DMGUlNJO.js`),__vite__mapDeps([23,1,2,3,4,12,7,8])),"/src/views/dashboard/index.vue":()=>t(()=>import(`./dashboard-CEXQa1pu.js`),__vite__mapDeps([24,1,2,3,4,5,6,7,8])),"/src/views/error/404.vue":()=>t(()=>import(`./404-F8BsopE3.js`),__vite__mapDeps([25,1,2,3,4,26])),"/src/views/finance/accounts/index.vue":()=>t(()=>import(`./accounts-VTQUqWsm.js`),__vite__mapDeps([27,1,2,3,4,28,7,8])),"/src/views/finance/categories/index.vue":()=>t(()=>import(`./categories-CUHGnGIZ.js`),__vite__mapDeps([29,1,2,3,4,28,7,8])),"/src/views/finance/invoices/index.vue":()=>t(()=>import(`./invoices-BQmi2e7M.js`),__vite__mapDeps([30,1,2,3,4,28,7,8])),"/src/views/finance/payments/index.vue":()=>t(()=>import(`./payments-BrnHQrWo.js`),__vite__mapDeps([31,1,2,3,4,28,7,8])),"/src/views/finance/prepaid-cards/index.vue":()=>t(()=>import(`./prepaid-cards-CWlUGAlv.js`),__vite__mapDeps([32,1,2,3,4,28,7,8])),"/src/views/finance/records/index.vue":()=>t(()=>import(`./records-N35kQ2BC.js`),__vite__mapDeps([33,1,2,3,4,28,7,8])),"/src/views/finance/transactions/index.vue":()=>t(()=>import(`./transactions-Df8SEsO7.js`),__vite__mapDeps([34,1,2,3,4,28,7,8])),"/src/views/hr/attendances/index.vue":()=>t(()=>import(`./attendances-B_DnAiN3.js`),__vite__mapDeps([35,1,2,3,4,36,7,8])),"/src/views/hr/leaves/index.vue":()=>t(()=>import(`./leaves-CApz-qRd.js`),__vite__mapDeps([37,1,2,3,4,36,7,8])),"/src/views/hr/profiles/index.vue":()=>t(()=>import(`./profiles-Dvw91znB.js`),__vite__mapDeps([38,1,2,3,4,36,7,8])),"/src/views/hr/salaries/index.vue":()=>t(()=>import(`./salaries-Bc2_dQt2.js`),__vite__mapDeps([39,1,2,3,4,36,7,8])),"/src/views/hr/schedules/index.vue":()=>t(()=>import(`./schedules-Yw8rDBJ4.js`),__vite__mapDeps([40,1,2,3,4,36,7,8])),"/src/views/inventory/checks/index.vue":()=>t(()=>import(`./checks-Cnmj1PAb.js`),__vite__mapDeps([41,1,2,3,4,42,7,8])),"/src/views/inventory/materials/index.vue":()=>t(()=>import(`./materials-LA3XVRGm.js`),__vite__mapDeps([43,1,2,3,4,42,7,8])),"/src/views/inventory/purchase-orders/index.vue":()=>t(()=>import(`./purchase-orders-DJH82wSd.js`),__vite__mapDeps([44,1,2,3,4,42,7,8])),"/src/views/inventory/stock/index.vue":()=>t(()=>import(`./stock-QFAdGVVG.js`),__vite__mapDeps([45,1,2,3,4,42,7,8,46])),"/src/views/inventory/stock-movements/index.vue":()=>t(()=>import(`./stock-movements-G7cq09hc.js`),__vite__mapDeps([47,1,2,3,4,42,7,8])),"/src/views/inventory/suppliers/index.vue":()=>t(()=>import(`./suppliers-B-ax3fUn.js`),__vite__mapDeps([48,1,2,3,4,42,7,8])),"/src/views/inventory/transfers/index.vue":()=>t(()=>import(`./transfers-DfYYFifi.js`),__vite__mapDeps([49,1,2,3,4,42,7,8])),"/src/views/inventory/warehouses/index.vue":()=>t(()=>import(`./warehouses-B9RawaVf.js`),__vite__mapDeps([50,1,2,3,4,42,7,8])),"/src/views/kb/articles/index.vue":()=>t(()=>import(`./articles-DWzdB9N4.js`),__vite__mapDeps([51,1,2,3,4,52,7,8])),"/src/views/kb/categories/index.vue":()=>t(()=>import(`./categories-BohrmcA0.js`),__vite__mapDeps([53,1,2,3,4,52,7,8])),"/src/views/login/index.vue":()=>t(()=>import(`./login-ChQUh91H.js`),__vite__mapDeps([54,1,2,3,4,5,6,7,8])),"/src/views/meal/daily-plans/index.vue":()=>t(()=>import(`./daily-plans-pQM2n0a6.js`),__vite__mapDeps([55,1,2,3,4,12,7,8,56])),"/src/views/meal/dishes/index.vue":()=>t(()=>import(`./dishes-6mBLTW6z.js`),__vite__mapDeps([57,1,2,3,4,56,7,8])),"/src/views/meal/reviews/index.vue":()=>t(()=>import(`./reviews-D50R_81A.js`),__vite__mapDeps([58,1,2,3,4,5,12,7,8,56])),"/src/views/meal/templates/index.vue":()=>t(()=>import(`./templates-CWLqo64z.js`),__vite__mapDeps([59,1,2,3,4,5,56,7,8])),"/src/views/nanny/nannies/index.vue":()=>t(()=>import(`./nannies-DV_-H8Hj.js`),__vite__mapDeps([60,1,2,3,4,61,7,8])),"/src/views/nanny/orders/index.vue":()=>t(()=>import(`./orders-BVojzZVm.js`),__vite__mapDeps([62,1,2,3,4,61,7,8])),"/src/views/nanny/schedules/index.vue":()=>t(()=>import(`./schedules-CCj2xXC0.js`),__vite__mapDeps([63,1,2,3,4,61,7,8])),"/src/views/office/announcements/index.vue":()=>t(()=>import(`./announcements-CEw2Czo5.js`),__vite__mapDeps([64,1,2,3,4,65,7,8])),"/src/views/office/approval-templates/index.vue":()=>t(()=>import(`./approval-templates-CUIt8K9p.js`),__vite__mapDeps([66,1,2,3,4,65,7,8])),"/src/views/office/approvals/index.vue":()=>t(()=>import(`./approvals-BAF9KaoV.js`),__vite__mapDeps([67,1,2,3,4,65,7,8])),"/src/views/office/handovers/index.vue":()=>t(()=>import(`./handovers-s3E48LIK.js`),__vite__mapDeps([68,1,2,3,4,65,7,8])),"/src/views/office/notifications/index.vue":()=>t(()=>import(`./notifications-I8CiKdc8.js`),__vite__mapDeps([69,1,2,3,4,65,7,8,70])),"/src/views/register/index.vue":()=>t(()=>import(`./register-CDFAtgib.js`),__vite__mapDeps([71,1,2,3,4,8])),"/src/views/report/exports/index.vue":()=>t(()=>import(`./exports-DUkrHlPt.js`),__vite__mapDeps([72,1,2,3,4,73,7,8,74])),"/src/views/report/overview/index.vue":()=>t(()=>import(`./overview-D-oyNP28.js`),__vite__mapDeps([75,1,2,3,4,73,7,8,76])),"/src/views/room/board/index.vue":()=>t(()=>import(`./board-sk3RGSX4.js`),__vite__mapDeps([77,1,2,3,4,78,7,8])),"/src/views/room/call-records/index.vue":()=>t(()=>import(`./call-records-Clz1SbNm.js`),__vite__mapDeps([79,1,2,3,4,12,7,8,78])),"/src/views/room/outings/index.vue":()=>t(()=>import(`./outings-CCtOaR3A.js`),__vite__mapDeps([80,1,2,3,4,12,7,8,78])),"/src/views/room/reservations/index.vue":()=>t(()=>import(`./reservations-BDcEwJH9.js`),__vite__mapDeps([81,1,2,3,4,12,7,8,78])),"/src/views/room/room-types/index.vue":()=>t(()=>import(`./room-types-Di2pN98t.js`),__vite__mapDeps([82,1,2,3,4,78,7,8])),"/src/views/room/rooms/index.vue":()=>t(()=>import(`./rooms-Ch7GX3Px.js`),__vite__mapDeps([83,1,2,3,4,78,7,8])),"/src/views/service/executions/index.vue":()=>t(()=>import(`./executions-CxoDnYt2.js`),__vite__mapDeps([84,1,2,3,4,5,85,7,8,86])),"/src/views/service/items/index.vue":()=>t(()=>import(`./items-DALYJmTT.js`),__vite__mapDeps([87,1,2,3,4,85,7,8])),"/src/views/service/orders/index.vue":()=>t(()=>import(`./orders-2ivO139e.js`),__vite__mapDeps([88,1,2,3,4,85,7,8])),"/src/views/service/packages/index.vue":()=>t(()=>import(`./packages-BwskPf-Y.js`),__vite__mapDeps([89,1,2,3,4,85,7,8])),"/src/views/system/departments/index.vue":()=>t(()=>import(`./departments-CnYyi91t.js`),__vite__mapDeps([90,1,2,3,4,15,7,8])),"/src/views/system/dictionaries/index.vue":()=>t(()=>import(`./dictionaries-CV3_WCLC.js`),__vite__mapDeps([91,1,2,3,4,15,7,8,92])),"/src/views/system/logs/index.vue":()=>t(()=>import(`./logs-BZrUVvB5.js`),__vite__mapDeps([93,1,2,3,4,15,7,8,94])),"/src/views/system/menus/index.vue":()=>t(()=>import(`./menus-DasFO-X7.js`),__vite__mapDeps([95,1,2,3,4,15,7,8])),"/src/views/system/positions/index.vue":()=>t(()=>import(`./positions-DeqC6kdd.js`),__vite__mapDeps([96,1,2,3,4,15,7,8])),"/src/views/system/registration-packages/index.vue":()=>t(()=>import(`./registration-packages-D1EkvZPn.js`),__vite__mapDeps([97,1,2,3,4,15,7,8])),"/src/views/system/roles/index.vue":()=>t(()=>import(`./roles-Dwv5QOVU.js`),__vite__mapDeps([98,1,2,3,4,15,7,8,99])),"/src/views/system/stores/index.vue":()=>t(()=>import(`./stores-D6abJMXk.js`),__vite__mapDeps([100,1,2,3,4,15,7,8])),"/src/views/system/users/index.vue":()=>t(()=>import(`./users-DjBGJbBb.js`),__vite__mapDeps([101,1,2,3,4,15,7,8]))});function o(e){let t=[`/src/views/${e}.vue`,`@/views/${e}.vue`,`../views/${e}.vue`];for(let e of t)if(a[e])return a[e];let n=`/views/${e}.vue`;for(let[e,t]of Object.entries(a))if(e.endsWith(n))return t;console.warn(`[permission] View not found: ${e}`)}function s(e){let t={path:e.path,name:e.name||e.path,meta:{title:e.name,icon:e.icon||``,id:e.id,hidden:e.visible===0}};if(e.component===`Layout`)t.component=i;else if(e.component){let n=o(e.component);n&&(t.component=n)}return e.children&&e.children.length>0&&(t.children=e.children.map(s),!t.redirect&&t.children.length>0&&(t.redirect=t.children[0].path)),t}var c=n(`permission`,()=>{let t=e([]),n=e([]);function a(e){let a=[],c={path:`/`,name:`Root`,component:i,redirect:`/dashboard`,children:[]};for(let t of e)if(t.children&&t.children.length>0&&(!t.component||t.component===`Layout`))for(let e of t.children)c.children.push(s(e));else t.component&&c.children.push(s(t));return c.children.some(e=>e.path===`/dashboard`||e.path===`dashboard`)||c.children.unshift({path:`dashboard`,name:`Dashboard`,component:o(`dashboard/index`),meta:{title:`工作台`,icon:`Odometer`}}),a.push(c),a.push({path:`/:pathMatch(.*)*`,redirect:`/404`,meta:{hidden:!0}}),n.value=a,t.value=[...r,...a],a}function c(){t.value=[],n.value=[]}return{routes:t,dynamicRoutes:n,generateRoutes:a,resetRoutes:c}});export{c as usePermissionStore}; |