肖凡4.11
parent
71c133cb54
commit
81fd5a05a9
|
@ -117,7 +117,7 @@
|
||||||
<el-table-column label="id" align="center" prop="carId" />
|
<el-table-column label="id" align="center" prop="carId" />
|
||||||
<el-table-column label="车辆vin" align="center" prop="carVin" />
|
<el-table-column label="车辆vin" align="center" prop="carVin" />
|
||||||
<el-table-column label="车辆类型" align="center" prop="carType" />
|
<el-table-column label="车辆类型" align="center" prop="carType" />
|
||||||
<!-- <el-table-column label="电子围栏" align="center" prop="carFenceId" />-->
|
<!-- <el-table-column label="电子围栏" align="center" prop="carFenceId" />-->
|
||||||
<el-table-column label="车辆标识" align="center" prop="carMarking" />
|
<el-table-column label="车辆标识" align="center" prop="carMarking" />
|
||||||
<el-table-column label="车辆状态" align="center" prop="state">
|
<el-table-column label="车辆状态" align="center" prop="state">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
@ -190,7 +190,7 @@
|
||||||
<el-input v-model="form.carType" placeholder="请输入车辆类型" />
|
<el-input v-model="form.carType" placeholder="请输入车辆类型" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<!-- <el-form-item label="电子围栏" prop="carFenceId">-->
|
<!-- <el-form-item label="电子围栏" prop="carFenceId">-->
|
||||||
<el-form-item label="车辆标识" prop="carMarking">
|
<el-form-item label="车辆标识" prop="carMarking">
|
||||||
<el-checkbox-group v-model="selectedMarkingIds">
|
<el-checkbox-group v-model="selectedMarkingIds">
|
||||||
<el-checkbox
|
<el-checkbox
|
||||||
|
@ -275,6 +275,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {
|
form: {
|
||||||
|
carMarking:[]
|
||||||
},
|
},
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
|
@ -314,6 +315,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 表单重置
|
// 表单重置
|
||||||
reset() {
|
reset() {
|
||||||
|
this.selectedMarkingIds=[]
|
||||||
this.form = {
|
this.form = {
|
||||||
carId: null,
|
carId: null,
|
||||||
carVin: null,
|
carVin: null,
|
||||||
|
@ -351,10 +353,11 @@ export default {
|
||||||
},
|
},
|
||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
|
this.selectedMarkingIds=[]
|
||||||
this.reset();
|
this.reset();
|
||||||
this.open = true;
|
this.open = true;
|
||||||
// this.selectFenceList()
|
// this.selectFenceList()
|
||||||
this.selectMarkingList()
|
// this.selectMarkingList()
|
||||||
this.title = "添加车辆管理";
|
this.title = "添加车辆管理";
|
||||||
},
|
},
|
||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
|
@ -364,7 +367,9 @@ export default {
|
||||||
findById(carId).then(response => {
|
findById(carId).then(response => {
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
// this.selectedFenceIds = this.form.carFenceId.split(",");
|
// this.selectedFenceIds = this.form.carFenceId.split(",");
|
||||||
this.selectedMarkingIds=this.form.carMarking.split(",")
|
// this.selectMarking=response.data.carMarking.split(",")
|
||||||
|
// this.selectedMarkingIds=this.form.carMarking.split(",")
|
||||||
|
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "修改车辆管理";
|
this.title = "修改车辆管理";
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue