Each of these now has an add button at the top of its own list page, so the nav entry duplicated it: - 'اضافه کردن شخص' (/customer/add) - 'افزودن شعب' (/branch/add) - 'افزودن کارگاه' (/workshop/add) - 'افزودن مدیر' (/user/create) Only the adminMenu tree is touched; branchMenu keeps its own /customer/add entry, since the branch build has no converted add-modal. All four routes still exist and still work as a direct-link fallback, and the parent submenus keep their remaining children (including 'دسترسی ها' under مدیران). Verified in a real browser: menu items 30 -> 26, none of the four labels render, all four parent submenus still present with their list children, icons unchanged at 16, no console errors. Committed dist/ artifact rebuilt to match (force-added, as it is gitignored but deliberately tracked for Dokploy). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2 lines
1.3 KiB
JavaScript
2 lines
1.3 KiB
JavaScript
import{j as y}from"./filters-C20Sv6qX.js";import{d as j,v as k,x as C,f as l,g as t,r as I,y as b,e,o,c as d,l as i,t as _,i as v,n as w,F as h,j as B}from"./index-Cv1Zmfn4.js";import"./index-BqcdSAlR.js";const F=j({__name:"DashboardAnalytics",setup(N){const n=I(!1),r=b({lastOrder:[]}),m=[{title:"شماره سفارش",dataIndex:"name"},{title:"مشتری",dataIndex:"customer"},{title:"وزن",dataIndex:"w"},{title:"وضعیت",dataIndex:"sts_str"},{title:"تاریخ",dataIndex:"caj"}];function p(a){return{success:"green",warning:"orange",danger:"red",primary:"blue"}[a]??""}return k(async()=>{try{n.value=!0;const{data:a}=await C.get("get-analytics-tak");Object.assign(r,a)}catch(a){console.error(a)}finally{n.value=!1}}),(a,O)=>{const u=e("a-tag"),g=e("a-table"),f=e("a-card"),x=e("a-spin");return o(),l(x,{spinning:n.value},{default:t(()=>[d(f,{title:"سفارشات هفته جاری"},{default:t(()=>[d(g,{size:"small","data-source":r.lastOrder,columns:m,pagination:{pageSize:15},"row-key":"id"},{bodyCell:t(({column:c,record:s})=>[c.dataIndex==="sts_str"?(o(),l(u,{key:0,color:p(s.statusColor)},{default:t(()=>[i(_(s.sts_str),1)]),_:2},1032,["color"])):c.dataIndex==="caj"?(o(),v(h,{key:1},[i(_(w(y)(s.caj)),1)],64)):B("",!0)]),_:1},8,["data-source"])]),_:1})]),_:1},8,["spinning"])}}});export{F as default};
|