Commit a3f04251 authored by chenfenglei's avatar chenfenglei

云集添加备注,扫码备注

parent d2998d1b
......@@ -579,25 +579,22 @@
this.changeClassObj.periods_list = res.list
});
this.changeClassObj.show = true;
this.defaultClass();
}
},
defaultClass(){
// console.log(this.userObj.periods_id,this.userObj.classId)
// // this.goods_id =this.userObj.periods_id;
// this.changeClassObj.selectedGoods = [parseInt(this.userObj.periods_id),parseInt(this.userObj.classId)];
// console.log(this.changeClassObj.selectedGoods[0])
// getClassListApi({goods_id:this.changeClassObj.selectedGoods[0]}).then(res=>{
// res.list.forEach(i=>{i.name = i.title});
// res.list.forEach(i=>{
// i.title = i.class_name
// });
// console.log(res.list)
// // console.log( this.changeClassObj.periods_list)
// // this.changeClassObj.periods_list.find(i=>{return i.id === this.changeClassObj.selectedGoods[0]}).children = res.list
// // let nowGoods = this.changeClassObj.periods_list.find(i=>{return i.id === this.changeClassObj.selectedGoods[0]});
// // this.periods = nowGoods.children.find(i=>{return i.id === this.changeClassObj.selectedGoods[1]});
// })
this.changeClassObj.selectedGoods = [parseInt(this.userObj.periods_id),parseInt(this.userObj.classId)];
console.log( this.changeClassObj.selectedGoods[0])
getClassListApi(this.changeClassObj.selectedGoods[0]).then(res=>{
res.list.forEach(i=>{i.name = i.title});
res.list.forEach(i=>{
i.title = i.class_name
});
this.changeClassObj.periods_list.find(i=>{return i.id === this.changeClassObj.selectedGoods[0]}).children = res.list
let nowGoods = this.changeClassObj.periods_list.find(i=>{return i.id === this.changeClassObj.selectedGoods[0]});
this.periods = nowGoods.children.find(i=>{return i.id === this.changeClassObj.selectedGoods[1]});
this.changeClassObj.new_class_id=this.userObj.classId;
this.changeClassObj.new_periods_id=this.userObj.periods_id;
})
},
handleSelectionChange123(a){
......@@ -942,6 +939,11 @@
watch:{
'userObj'(){
this.initPage()
},
"changeClassObj.show"(val){
if(val){
this.defaultClass()
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment