正在显示
1 个修改的文件
包含
14 行增加
和
0 行删除
| @@ -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 | //获取备案列表 |
-
请 注册 或 登录 后发表评论