25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.5424731b.js 1.7KB

1 개월 전
1
  1. import{u as x}from"./orderManage.fe83d1aa.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.551f5afa.js";import{_ as V}from"./index.42d3781f.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};