|
|
@ -62,13 +62,28 @@ export default { |
|
|
|
getTypeList: function () { |
|
|
|
getTypeList: function () { |
|
|
|
var _this = this; |
|
|
|
var _this = this; |
|
|
|
this.loading = true; |
|
|
|
this.loading = true; |
|
|
|
postRequest('/edu/v1/pc/courseTj').then(resp=> { |
|
|
|
postRequest('/edu/v1/mp/questionTj').then(resp=> { |
|
|
|
_this.loading = false; |
|
|
|
|
|
|
|
if (resp.status === 200) { |
|
|
|
if (resp.status === 200) { |
|
|
|
this.classNum = resp.data.data.classNum |
|
|
|
if(resp.data.data.questionNum!==null) { |
|
|
|
this.courseNum = resp.data.data.courseNum |
|
|
|
this.classNum = resp.data.data.questionNum |
|
|
|
this.xtNum = resp.data.data.xtNum |
|
|
|
}else{ |
|
|
|
this.ksNum = resp.data.data.ksNum |
|
|
|
this.classNum = 0 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(resp.data.data.stNum!==null) { |
|
|
|
|
|
|
|
this.courseNum = resp.data.data.stNum |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
this.courseNum = 0 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(resp.data.data.ztNum!==null) { |
|
|
|
|
|
|
|
this.xtNum = resp.data.data.ztNum |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
this.xtNum = 0 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(resp.data.data.zzNum!==null) { |
|
|
|
|
|
|
|
this.ksNum = resp.data.data.zzNum |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
this.ksNum = 0 |
|
|
|
|
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
//失败 |
|
|
|
//失败 |
|
|
|
_this.$alert(''); |
|
|
|
_this.$alert(''); |
|
|
|