肖凡4.11

vehicle-xiaofan
肖凡 2024-04-11 11:57:59 +08:00
parent 71c133cb54
commit 81fd5a05a9
1 changed files with 9 additions and 4 deletions

View File

@ -275,6 +275,7 @@ export default {
},
//
form: {
carMarking:[]
},
//
rules: {
@ -314,6 +315,7 @@ export default {
},
//
reset() {
this.selectedMarkingIds=[]
this.form = {
carId: null,
carVin: null,
@ -351,10 +353,11 @@ export default {
},
/** 新增按钮操作 */
handleAdd() {
this.selectedMarkingIds=[]
this.reset();
this.open = true;
// this.selectFenceList()
this.selectMarkingList()
// this.selectMarkingList()
this.title = "添加车辆管理";
},
/** 修改按钮操作 */
@ -364,7 +367,9 @@ export default {
findById(carId).then(response => {
this.form = response.data;
// 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.title = "修改车辆管理";
});