Commit a3f04251 authored by chenfenglei's avatar chenfenglei

云集添加备注,扫码备注

parent d2998d1b
...@@ -579,25 +579,22 @@ ...@@ -579,25 +579,22 @@
this.changeClassObj.periods_list = res.list this.changeClassObj.periods_list = res.list
}); });
this.changeClassObj.show = true; this.changeClassObj.show = true;
this.defaultClass();
} }
}, },
defaultClass(){ defaultClass(){
// console.log(this.userObj.periods_id,this.userObj.classId) this.changeClassObj.selectedGoods = [parseInt(this.userObj.periods_id),parseInt(this.userObj.classId)];
// // this.goods_id =this.userObj.periods_id; console.log( this.changeClassObj.selectedGoods[0])
// this.changeClassObj.selectedGoods = [parseInt(this.userObj.periods_id),parseInt(this.userObj.classId)]; getClassListApi(this.changeClassObj.selectedGoods[0]).then(res=>{
// console.log(this.changeClassObj.selectedGoods[0]) res.list.forEach(i=>{i.name = i.title});
// getClassListApi({goods_id:this.changeClassObj.selectedGoods[0]}).then(res=>{ res.list.forEach(i=>{
// res.list.forEach(i=>{i.name = i.title}); i.title = i.class_name
// 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]});
// console.log(res.list) this.periods = nowGoods.children.find(i=>{return i.id === this.changeClassObj.selectedGoods[1]});
// // console.log( this.changeClassObj.periods_list) this.changeClassObj.new_class_id=this.userObj.classId;
// // this.changeClassObj.periods_list.find(i=>{return i.id === this.changeClassObj.selectedGoods[0]}).children = res.list this.changeClassObj.new_periods_id=this.userObj.periods_id;
// // 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]});
// })
}, },
handleSelectionChange123(a){ handleSelectionChange123(a){
...@@ -942,6 +939,11 @@ ...@@ -942,6 +939,11 @@
watch:{ watch:{
'userObj'(){ 'userObj'(){
this.initPage() 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