作者 小范

Merge remote-tracking branch 'origin/master_dev' into master_dev

@@ -520,6 +520,8 @@ @@ -520,6 +520,8 @@
520 this.usernames = res.data.data.list; 520 this.usernames = res.data.data.list;
521 }).catch((error) => { 521 }).catch((error) => {
522 this.$message.error(error.toString()); 522 this.$message.error(error.toString());
  523 + }).finally(()=>{
  524 + this.listLoading = false;
523 }); 525 });
524 526
525 }, 527 },
@@ -528,9 +530,21 @@ @@ -528,9 +530,21 @@
528 this.queryInfo.vno=lisenceNo; 530 this.queryInfo.vno=lisenceNo;
529 selectVehicle(this.queryInfo).then((response) => { 531 selectVehicle(this.queryInfo).then((response) => {
530 const res = response.data; 532 const res = response.data;
  533 + if (res.code ==='200'){
  534 + this.$message.success('获取到车辆状态信息:' + res.data.msg);
  535 + if (res.data
  536 + && res.data.data
  537 + && res.data.data.firstVcl
  538 + && res.data.data.firstVcl.offlineState){
531 this.lisenceNoSatus=res.data.data.firstVcl.offlineState; 539 this.lisenceNoSatus=res.data.data.firstVcl.offlineState;
  540 + }else {
  541 + this.$message.error('获取车辆状态失败:' + res.data.msg);
  542 + }
  543 + }
532 }).catch(error => { 544 }).catch(error => {
533 this.$message.error('获取车辆状态失败:' + error.toString()); 545 this.$message.error('获取车辆状态失败:' + error.toString());
  546 + }).finally(()=>{
  547 +
534 }); 548 });
535 }, 549 },
536 //获取备案列表 550 //获取备案列表