2 lines
3.3 KiB
JavaScript
2 lines
3.3 KiB
JavaScript
import{_ as A,k as r,w as e,r as d,u as N,o as i,a as t,b as f,c as p,e as n,m as T,h as a,p as V,n as E,s as I,q as L,f as $,t as j,v as q,x as z,y as M,z as R,A as S,B as D,j as F,C as G}from"./index-DdxTGUP0.js";const H={class:"logo-area"},J={key:0},K={key:1},O={class:"header-right"},P={class:"admin-info"},Q={__name:"AdminLayout",setup(U){const c=N(),u=F(!1);function x(_){_==="logout"&&G.confirm("确定退出登录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{localStorage.removeItem("admin_token"),c.push("/login")})}return(_,l)=>{const o=d("el-icon"),s=d("el-menu-item"),v=d("el-menu"),w=d("el-aside"),g=d("el-dropdown-item"),y=d("el-dropdown-menu"),k=d("el-dropdown"),B=d("el-header"),b=d("router-view"),C=d("el-main"),m=d("el-container");return i(),r(m,{class:"layout-container"},{default:e(()=>[t(w,{width:u.value?"64px":"220px",class:"layout-aside"},{default:e(()=>[f("div",H,[u.value?(i(),p("span",K,"跑腿")):(i(),p("span",J,"校园跑腿管理后台"))]),t(v,{"default-active":_.$route.path,collapse:u.value,router:"","background-color":"#304156","text-color":"#bfcbd9","active-text-color":"#409eff"},{default:e(()=>[t(s,{index:"/dashboard"},{title:e(()=>[...l[1]||(l[1]=[a("首页概览",-1)])]),default:e(()=>[t(o,null,{default:e(()=>[t(n(T))]),_:1})]),_:1}),t(s,{index:"/banners"},{title:e(()=>[...l[2]||(l[2]=[a("Banner 管理",-1)])]),default:e(()=>[t(o,null,{default:e(()=>[t(n(V))]),_:1})]),_:1}),t(s,{index:"/service-entries"},{title:e(()=>[...l[3]||(l[3]=[a("服务入口管理",-1)])]),default:e(()=>[t(o,null,{default:e(()=>[t(n(E))]),_:1})]),_:1}),t(s,{index:"/shops"},{title:e(()=>[...l[4]||(l[4]=[a("门店管理",-1)])]),default:e(()=>[t(o,null,{default:e(()=>[t(n(I))]),_:1})]),_:1}),t(s,{index:"/certifications"},{title:e(()=>[...l[5]||(l[5]=[a("跑腿认证审核",-1)])]),default:e(()=>[t(o,null,{default:e(()=>[t(n(L))]),_:1})]),_:1}),t(s,{index:"/runners"},{title:e(()=>[...l[6]||(l[6]=[a("跑腿管理",-1)])]),default:e(()=>[t(o,null,{default:e(()=>[t(n($))]),_:1})]),_:1}),t(s,{index:"/reviews"},{title:e(()=>[...l[7]||(l[7]=[a("评价管理",-1)])]),default:e(()=>[t(o,null,{default:e(()=>[t(n(j))]),_:1})]),_:1}),t(s,{index:"/notifications"},{title:e(()=>[...l[8]||(l[8]=[a("系统通知",-1)])]),default:e(()=>[t(o,null,{default:e(()=>[t(n(q))]),_:1})]),_:1}),t(s,{index:"/orders"},{title:e(()=>[...l[9]||(l[9]=[a("订单管理",-1)])]),default:e(()=>[t(o,null,{default:e(()=>[t(n(z))]),_:1})]),_:1}),t(s,{index:"/config"},{title:e(()=>[...l[10]||(l[10]=[a("配置管理",-1)])]),default:e(()=>[t(o,null,{default:e(()=>[t(n(M))]),_:1})]),_:1})]),_:1},8,["default-active","collapse"])]),_:1},8,["width"]),t(m,null,{default:e(()=>[t(B,{class:"layout-header"},{default:e(()=>[t(o,{class:"collapse-btn",onClick:l[0]||(l[0]=W=>u.value=!u.value)},{default:e(()=>[u.value?(i(),r(n(S),{key:1})):(i(),r(n(R),{key:0}))]),_:1}),f("div",O,[t(k,{onCommand:x},{dropdown:e(()=>[t(y,null,{default:e(()=>[t(g,{command:"logout"},{default:e(()=>[...l[12]||(l[12]=[a("退出登录",-1)])]),_:1})]),_:1})]),default:e(()=>[f("span",P,[l[11]||(l[11]=a(" 管理员 ",-1)),t(o,null,{default:e(()=>[t(n(D))]),_:1})])]),_:1})])]),_:1}),t(C,{class:"layout-main"},{default:e(()=>[t(b)]),_:1})]),_:1})]),_:1})}}},Y=A(Q,[["__scopeId","data-v-70df5590"]]);export{Y as default};
|