diff --git a/src/components/Course/chooseCourseFile.vue b/src/components/Course/chooseCourseFile.vue index d5252794..43ee698b 100644 --- a/src/components/Course/chooseCourseFile.vue +++ b/src/components/Course/chooseCourseFile.vue @@ -122,7 +122,7 @@ this.comTypes.some(ct=>{ if(ct.resType==$this.resType){ $this.curComType=ct; - //this.findCourseFile(); + //this.findCourseFile();// return true; }else{ return false; diff --git a/src/components/Course/courseExam.vue b/src/components/Course/courseExam.vue index 2bcb4e5a..83a55f6f 100644 --- a/src/components/Course/courseExam.vue +++ b/src/components/Course/courseExam.vue @@ -14,7 +14,7 @@
- + @@ -161,6 +161,7 @@ data(){ return { loading:false, + emptyText:'加载中...', examChange:{}, //用于保存,检查是否改变 showTab:0, //显示哪个 onlyQuestion:false, //只显示问题 @@ -217,7 +218,8 @@ }, methods:{ reloadExam(){ - console.log('contentId='+this.contentId); + //console.log('contentId='+this.contentId); + this.emptyText='加载中...'; this.examPaper={items:[]}; this.examInfo.id=''; this.examInfo.paperType=1; @@ -312,9 +314,12 @@ this.showTab=2; this.examInfo.paperType=2; //选择试卷 this.examInfo.paperId=''; + + this.findExamPapers(); }, findExamPapers(){ //查询已有的考试试卷 this.usePaper.pageIndex=1; + this.emptyText='加载中...'; this.loadExamPapers(); }, loadExamPapers(){ @@ -323,7 +328,7 @@ pageSize:this.usePaper.pageSize, keyWord:this.usePaper.keyword } - + apiExamPaper.querylist(pars).then(rs=>{ if(rs.status==200){ this.usePaper.list=rs.result.list; @@ -331,6 +336,7 @@ }else{ this.$message.error('查询可用试卷失败'); } + this.emptyText='暂无搜索内容'; }) }, changePaperPage(pindex){ diff --git a/src/components/Course/weikeContent.vue b/src/components/Course/weikeContent.vue index c32cbd2c..91bc66f4 100644 --- a/src/components/Course/weikeContent.vue +++ b/src/components/Course/weikeContent.vue @@ -295,7 +295,7 @@
- + @@ -705,6 +705,7 @@ paperName:'',//选择的试卷的名称 paperJson:{items:[]}, }, + emptyText:'加载中...', exam:{ show:1, content:{id:'',contentType:61,sortIndex:3}, @@ -1300,8 +1301,10 @@ this.exam.show=2; this.exam.info.paperType=2; //选择试卷 this.exam.info.paperId=''; + this.findExamPapers(); }, findExamPapers(){ //查询已有的考试试卷 + this.emptyText='加载中...'; this.usePaper.pageIndex=1; this.loadExamPapers(); }, @@ -1318,6 +1321,7 @@ }else{ this.$message.error('查询可用试卷失败'); } + this.emptyText='暂无搜索内容'; }) }, changePaperPage(pindex){