肖凡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: { 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 = "修改车辆管理";
}); });