Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

2 місяці тому
1
  1. import{u as x}from"./orderManage.59f47c81.js";import{d as N,k as Y,r as d,o as b,V as C,f as _,g as m,c as D,e as t,w as n,p as T,b as s,t as o,x as p,N as f,q as M,h as r}from"./index.6d448f34.js";import{_ as V}from"./index.48f63049.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=N({name:"trackPlayback"}),z=Object.assign(j,{setup(q){const v=Y(),e=d({});b(()=>{k()});const a=d(null);function k(){const c=C.service({fullscreen:!1,text:"\u52A0\u8F7D\u4E2D..."});x(v.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(),D("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(),T(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(f)(e.value.beginTime).format("YYYY-MM-DD HH:mm")),1),s("div",null," \u7ED3\u675F\u65F6\u95F4\uFF1A"+o(p(f)(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})):M("",!0)])}}});export{z as default};