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

Loading…
Cancel
Save