Browse Source

提交习题查询统计

master
陈志鹏 2 years ago
parent
commit
07176be6f8
  1. 27
      src/page/exercises/exercises.vue

27
src/page/exercises/exercises.vue

@ -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('');

Loading…
Cancel
Save