车辆管理完善
parent
be530fe9fa
commit
28ceee9423
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
|
|
||||||
<!-- 列表-->
|
<!-- 列表-->
|
||||||
<el-table :data="vehicleList" style="width: 100%" border>
|
<el-table :data="vehicleList" style="width: 100%" border v-loading="loading">
|
||||||
<el-table-column label="车辆id" width="90" align="center">
|
<el-table-column label="车辆id" width="90" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span style="margin-left: 10px">{{ scope.row.vehicleId }}</span>
|
<span style="margin-left: 10px">{{ scope.row.vehicleId }}</span>
|
||||||
|
@ -55,11 +55,11 @@
|
||||||
<span style="margin-left: 10px">{{ scope.row.batteryNumber }}</span>
|
<span style="margin-left: 10px">{{ scope.row.batteryNumber }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column label="vin码" width="180" align="center">-->
|
<el-table-column label="vin码" width="180" align="center">
|
||||||
<!-- <template slot-scope="scope">-->
|
<template slot-scope="scope">
|
||||||
<!-- <span style="margin-left: 10px">{{ scope.row.vin }}</span>-->0
|
<span style="margin-left: 10px">{{ scope.row.vin }}</span>
|
||||||
<!-- </template>-->
|
</template>
|
||||||
<!-- </el-table-column>-->
|
</el-table-column>
|
||||||
<el-table-column label="车辆状态" width="120" align="center">
|
<el-table-column label="车辆状态" width="120" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span style="margin-left: 10px" v-if="1==scope.row.vehicleState">
|
<span style="margin-left: 10px" v-if="1==scope.row.vehicleState">
|
||||||
|
@ -176,6 +176,8 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
//这里存放数据"
|
//这里存放数据"
|
||||||
return {
|
return {
|
||||||
|
//加载
|
||||||
|
loading: true,
|
||||||
//车辆列表
|
//车辆列表
|
||||||
vehicleList: [],
|
vehicleList: [],
|
||||||
|
|
||||||
|
@ -243,8 +245,14 @@ export default {
|
||||||
getVehicleList() {
|
getVehicleList() {
|
||||||
list(this.vehicleListParams).then(
|
list(this.vehicleListParams).then(
|
||||||
res => {
|
res => {
|
||||||
this.vehicleList = res.data.list;
|
if (res.code == 200) {
|
||||||
this.total = res.data.total;
|
this.vehicleList = res.data.list;
|
||||||
|
this.total = res.data.total;
|
||||||
|
this.loading = false;
|
||||||
|
} else {
|
||||||
|
this.$message.error("列表查询异常");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue