import{u as g}from"./orderManage.6bbad373.js";import{d as h,k as Y,r as u,o as b,f as _,g as D,c as M,e,w as n,b as o,t as s,v as d,M as m,h as i}from"./index.ef739cdb.js";import{_ as T}from"./index.968ec2aa.js";import"./locationTransform.e2d22cb6.js";const x={class:"track-playback"},C=i(" \u64AD\u653E\u8F68\u8FF9 "),N=i("\u6682\u505C\u52A8\u753B"),H=i("\u7EE7\u7EED\u52A8\u753B"),V=h({name:"trackPlayback"}),q=Object.assign(V,{setup(A){const p=Y(),a=u({});b(()=>{f()});const t=u(null);function f(){g(p.query.orderId).then(l=>{a.value=l,t.value.initTrack(l.data.locusLocationList)})}const v=()=>{t.value.start()},k=()=>{t.value.pause()},y=()=>{t.value.start()};return(l,B)=>{const c=_("el-button"),r=_("el-card");return D(),M("div",x,[e(T,{ref_key:"tiandiTrack",ref:t,class:"map"},null,512),e(r,{class:"input-card"},{default:n(()=>[e(c,{type:"primary",icon:"VideoPlay",onClick:v},{default:n(()=>[C]),_:1}),e(c,{type:"primary",onClick:k},{default:n(()=>[N]),_:1}),e(c,{type:"primary",onClick:y},{default:n(()=>[H]),_:1})]),_:1}),e(r,{class:"title-card"},{default:n(()=>[o("div",null,"\u8F66\u724C\u53F7\uFF1A"+s(a.value.carNo),1),o("div",null," \u7528\u8F66\u65F6\u95F4\uFF1A"+s(d(m)(a.value.beginTime).format("YYYY-MM-DD HH:mm")),1),o("div",null," \u7ED3\u675F\u65F6\u95F4\uFF1A"+s(d(m)(a.value.endTime).format("YYYY-MM-DD HH:mm")),1),o("div",null,"\u53F8\u673A\u59D3\u540D\uFF1A"+s(a.value.driverName),1),o("div",null,"\u8F66\u673A\u8F68\u8FF9\u91CC\u7A0B(km)\uFF1A"+s(a.value.gpsMileage),1)]),_:1})])}}});export{q as default};