Commit 52363726 authored by caicaicai's avatar caicaicai

修改

parent d9ff3a33
...@@ -180,9 +180,16 @@ export default { ...@@ -180,9 +180,16 @@ export default {
//获取历史轨迹 //获取历史轨迹
if(number == ''){ if(number == ''){
}else{
if(that.deviceId == '' || that.deviceId == undefined){
this.$notify({
title: '此车暂无轨迹!',
type: 'warning',
duration: 2500
});
}else{ }else{
HttpReq.truckDispatching.getAllHistroyCarTrajectoryQuery({name:that.deviceId}).then((res) => { HttpReq.truckDispatching.getAllHistroyCarTrajectoryQuery({name:that.deviceId}).then((res) => {
console.log('获取历史轨迹',res); //console.log('获取历史轨迹',res);
if(res.code == 200){ if(res.code == 200){
let obj1 = {}; let obj1 = {};
let array1 = []; let array1 = [];
...@@ -216,6 +223,8 @@ export default { ...@@ -216,6 +223,8 @@ export default {
}) })
} }
}
}, },
//上传围栏数据 //上传围栏数据
uploaded(){ uploaded(){
...@@ -292,7 +301,7 @@ export default { ...@@ -292,7 +301,7 @@ export default {
that.addGraphic_01(graphicLayer,item,that.weilanName[index]); that.addGraphic_01(graphicLayer,item,that.weilanName[index]);
}) })
if(that.carNumber == ''){ if(that.carNumber == '' || that.deviceId == '' || that.deviceId == undefined){
}else{ }else{
//创建矢量数据图层2 //创建矢量数据图层2
......
...@@ -100,7 +100,7 @@ export default { ...@@ -100,7 +100,7 @@ export default {
// 点击搜索 // 点击搜索
toSearch() { toSearch() {
let that = this; let that = this;
console.log(this.query.number); //console.log(this.query.number);
HttpReq.truckDispatching.carInformationQuery({number:this.query.number}).then((res) => { HttpReq.truckDispatching.carInformationQuery({number:this.query.number}).then((res) => {
if(res.code == 200){ if(res.code == 200){
this.shuaxinTimer = new Date().getTime(); this.shuaxinTimer = new Date().getTime();
......
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
<el-form-item label="选择车辆" prop="cars" v-show="form.item.areaclass == '电子围栏'"> <el-form-item label="选择车辆" prop="cars" v-show="form.item.areaclass == '电子围栏'">
<div class="checkboxViews"> <div class="checkboxViews">
<el-checkbox-group v-model="checkDataList" style="width:480px;"> <el-checkbox-group v-model="checkDataList" style="width:480px;">
<el-checkbox v-for="(obj,index) in carInformationData" :label="obj.name + '/' + obj.number" :key="index">{{obj.name + '/' + obj.number}}</el-checkbox> <el-checkbox v-for="(obj,index) in carInformationData" :label="obj.number" :key="index">{{obj.number}}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</div> </div>
</el-form-item> </el-form-item>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment