|
|
|
@ -152,20 +152,20 @@ export default {
|
|
|
|
|
this.setScStatus(false)
|
|
|
|
|
}
|
|
|
|
|
this.$emit("del", n);
|
|
|
|
|
this.$emit("change", filterArr);
|
|
|
|
|
// this.$emit("change", filterArr);
|
|
|
|
|
},
|
|
|
|
|
// 获取切换车型的数据
|
|
|
|
|
handlerBrand(arr) {
|
|
|
|
|
let n = this.list.findIndex((ele) => ele.model === arr[1].name);
|
|
|
|
|
if (n != -1) return;
|
|
|
|
|
let row = this.list[this.chooseIndex];
|
|
|
|
|
row.brand = arr[1].brandname;
|
|
|
|
|
row.model = arr[1].name;
|
|
|
|
|
row.isDel = true;
|
|
|
|
|
let filterArr = this.list.filter((ele) => {
|
|
|
|
|
return ele.brand && ele.model;
|
|
|
|
|
});
|
|
|
|
|
this.$emit("change", filterArr);
|
|
|
|
|
// let n = this.list.findIndex((ele) => ele.model === arr[1].name);
|
|
|
|
|
// if (n != -1) return;
|
|
|
|
|
// let row = this.list[this.chooseIndex];
|
|
|
|
|
// row.brand = arr[1].brandname;
|
|
|
|
|
// row.model = arr[1].name;
|
|
|
|
|
// row.isDel = true;
|
|
|
|
|
// let filterArr = this.list.filter((ele) => {
|
|
|
|
|
// return ele.brand && ele.model;
|
|
|
|
|
// });
|
|
|
|
|
this.$emit("change", arr);
|
|
|
|
|
},
|
|
|
|
|
// 重选对比
|
|
|
|
|
reCompare() {
|
|
|
|
|