车辆管理完善

server_five_ui
liuyunhu 2024-04-09 16:06:33 +08:00
parent be530fe9fa
commit 28ceee9423
1 changed files with 16 additions and 8 deletions

View File

@ -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("列表查询异常");
}
} }
) )
}, },