import{u as p}from"./useDeviceRanking.cyoktHQp.js";import{a as m,r as _,f as b,q as v,aj as l,c as f,o as D,b as o,S as e,K as w,R as h}from"./vue.D1BjjNmv.js";import"./index.Df8UJ10K.js";const C=m({__name:"DeviceBorrowDurationChart",setup(g){const r=_(""),{borrowDurationData:s,fetchRanking:c}=p(),u=async()=>{await c(r.value)},i=b(()=>[...s.value].sort((n,a)=>Number(a.total_duration)-Number(n.total_duration)));return v(u),(n,a)=>{const t=l("el-table-column"),d=l("el-table");return D(),f(h,null,[a[0]||(a[0]=o("div",null,[o("h2",null,"Top20单台设备累计借用时长排名")],-1)),o("div",null,[e(d,{data:i.value,style:{width:"100%"}},{default:w(()=>[e(t,{label:"排名",type:"index",width:"60"}),e(t,{prop:"device_name",label:"设备名称"}),e(t,{prop:"device_code",label:"设备编号"}),e(t,{prop:"total_duration",label:"借用时长（小时）"})]),_:1},8,["data"])])],64)}}});export{C as default};
