|
@@ -324,7 +324,8 @@ export default {
|
|
},
|
|
},
|
|
getExceTime() {
|
|
getExceTime() {
|
|
let param = {
|
|
let param = {
|
|
- sid: this.userInfo.scope === 'tmduser' ? this.userInfo.sub : `${this.userInfo.azp}-${this.userInfo.sub}`,
|
|
|
|
|
|
+ //sid: this.userInfo.scope === 'tmduser' ? this.userInfo.sub : `${this.userInfo.azp}-${this.userInfo.sub}`,
|
|
|
|
+ sid: this.courseNow.scope == 'school' ? `${this.courseNow.school}-${this.userInfo.sub}` : `${this.userInfo.sub}`,
|
|
unit_id: this.courseNow.subject.id ? this.courseNow.subject.id : this.courseNow.id, //单元id
|
|
unit_id: this.courseNow.subject.id ? this.courseNow.subject.id : this.courseNow.id, //单元id
|
|
mode: '2', //1:需要复习 2:题目练习时间 3:首页的最近练习时间
|
|
mode: '2', //1:需要复习 2:题目练习时间 3:首页的最近练习时间
|
|
// t: Date.now()
|
|
// t: Date.now()
|
|
@@ -354,7 +355,8 @@ export default {
|
|
// token: '',
|
|
// token: '',
|
|
}
|
|
}
|
|
if(this.userInfo.scope === 'student') {
|
|
if(this.userInfo.scope === 'student') {
|
|
- queryData.code = this.courseNow.school
|
|
|
|
|
|
+ //queryData.code = this.courseNow.school
|
|
|
|
+ queryData.code = (this.courseNow.scope == 'school') ? this.courseNow.school : null
|
|
}
|
|
}
|
|
if(this.continuationToken) {
|
|
if(this.continuationToken) {
|
|
queryData.token = this.continuationToken
|
|
queryData.token = this.continuationToken
|
|
@@ -497,7 +499,8 @@ export default {
|
|
stuId: this.userInfo.sub,
|
|
stuId: this.userInfo.sub,
|
|
subjectId: this.courseNow.subject.id ? this.courseNow.subject.id : this.courseNow.id,
|
|
subjectId: this.courseNow.subject.id ? this.courseNow.subject.id : this.courseNow.id,
|
|
}
|
|
}
|
|
- if(this.userInfo.scope != 'tmduser') param.code = this.userInfo.azp
|
|
|
|
|
|
+ //if(this.userInfo.scope != 'tmduser') param.code = this.userInfo.azp
|
|
|
|
+ if (this.courseNow.scope == 'school') param.code = this.courseNow.school
|
|
this.$api.studentWeb.getErrorItemCnt(param).then(res => {
|
|
this.$api.studentWeb.getErrorItemCnt(param).then(res => {
|
|
if(res.avaliable) {
|
|
if(res.avaliable) {
|
|
this.dayAdd = res.avaliable - res.record
|
|
this.dayAdd = res.avaliable - res.record
|
|
@@ -507,7 +510,8 @@ export default {
|
|
startReview(type) {
|
|
startReview(type) {
|
|
this.isLoading = true
|
|
this.isLoading = true
|
|
let param = {
|
|
let param = {
|
|
- sid: this.userInfo.scope === 'tmduser' ? this.userInfo.sub : `${this.userInfo.azp}-${this.userInfo.sub}`,
|
|
|
|
|
|
+ //sid: this.userInfo.scope === 'tmduser' ? this.userInfo.sub : `${this.userInfo.azp}-${this.userInfo.sub}`,
|
|
|
|
+ sid: this.courseNow.scope == 'school' ? `${this.courseNow.school}-${this.userInfo.sub}` : `${this.userInfo.sub}`,
|
|
unit_id: this.courseNow.subject.id ? this.courseNow.subject.id : this.courseNow.id, //单元id
|
|
unit_id: this.courseNow.subject.id ? this.courseNow.subject.id : this.courseNow.id, //单元id
|
|
mode: type ? '3' : '1',
|
|
mode: type ? '3' : '1',
|
|
// number: this.filtType.num,
|
|
// number: this.filtType.num,
|