瀏覽代碼

修改实时路径

liyg 2 年之前
父節點
當前提交
a369a74081
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/views/sale/components/offSiteTransportation/currentLocation.vue

+ 3 - 3
src/views/sale/components/offSiteTransportation/currentLocation.vue

@@ -103,7 +103,7 @@ export default {
           console.log(res.data.data);
           if (res.data.data == "-1") {
             this.$message.error("运输订单未关闭,自提车辆无权查看!");
-          } else if (res.data.data.status != "1006") {
+          } else if (res.data.data.status == "1001") {
             that.map.setCenter([
               res.data.data.result.lon,
               res.data.data.result.lat
@@ -136,8 +136,8 @@ export default {
             }
             this.lon = res.data.data.result.lon;
             this.lat = res.data.data.result.lat;
-          } else {
-            this.$message.error("车辆暂时无GPS");
+          } else{
+             this.$message.error(res.data.data.statusStr);
             //清除定时器
             clearTimeout(this.timer);
           }