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