Commit 1eee476c authored by lvtz's avatar lvtz

fix 班级发布作业 班级id 提交不对

parent 0854638c
......@@ -1277,7 +1277,7 @@ Page({
this.setData({
classList: data.list,
selectClass: this.data.id!=0 ? data.list.find(ele => ele.id == this.data.id) : data.list[0],
id: data.list[0].id
id: this.data.id!=0? this.data.id: data.list[0].id
})
if (data.total > this.data.classList.length) {
this.data.circlePage = this.data.circlePage + 1;
......
......@@ -875,7 +875,7 @@ Page({
this.setData({
classList: data.list,
selectClass: this.data.id!=0 ? data.list.find(ele => ele.id == this.data.id) : data.list[0],
id: data.list[0].id
id: this.data.id!=0? this.data.id: data.list[0].id
})
if (data.total > this.data.classList.length) {
this.data.circlePage = this.data.circlePage + 1;
......
......@@ -379,8 +379,8 @@ Page({
this.setData({
classList: data.list,
selectClass: this.data.id!=0 ? data.list.find(ele => ele.id == this.data.id) : data.list[0],
'params.class_id': data.list[0].id,
id: data.list[0].id
'params.class_id': this.data.id!=0? this.data.id: data.list[0].id,
id: this.data.id!=0? this.data.id: data.list[0].id
})
if (data.total > this.data.classList.length) {
this.data.circlePage = this.data.circlePage + 1;
......
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