Commit 8b498080 by jack

修复bug

1 parent f098d2d2
......@@ -106,7 +106,7 @@ export default {
selectChange(val,item) {
//console.log(item)
if(item.selectChange){
item.selectChange(val);
item.selectChange(val,item);
}
this.$emit("selectChange", val);
},
......
......@@ -746,26 +746,23 @@ export default {
},
// 监听切换车系
changeCarModel(e) {
changeCarModel(e,row) {
console.log(row)
let list = this.vehicleDefalutData;
let m = this.vehicleList;
let _form = this.vehicleForm;
let m = row.options;
let o = {};
m.find((k) => {
let s = k.childs || [];
s.find((j) => {
let n = j.childs || [];
let nn = n.find((h) => {
return h.id == e;
});
o = nn;
});
return o;
});
// 找第三级
let nn = m.find(k => {
let _n = k.childs.find(j => j.id == e);
if(_n){
o = _n;
}
return _n;
})
let idx = this.vehicleDefalutData.findIndex((k) => k.prop == "seriesId");
let i = list.findIndex((k) => k.prop == "typeId");
let n = {
label: "",
prop: "typeId",
......@@ -851,6 +848,7 @@ export default {
return _list;
},
},
};
</script>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!