查询考试提示问题

This commit is contained in:
daihh
2022-12-29 12:35:39 +08:00
parent d54da7dcb9
commit 7901cbc595
3 changed files with 15 additions and 5 deletions

View File

@@ -14,7 +14,7 @@
</div>
<div>
<div style="text-align: center;padding-top: 10px; overflow-y: auto;">
<el-table style="100%" height="480" :data="usePaper.list" border stripe>
<el-table :empty-text="emptyText" style="100%" height="480" :data="usePaper.list" border stripe>
<el-table-column prop="testName" label="试卷"></el-table-column>
<el-table-column prop="sysCreateTime" label="创建时间"></el-table-column>
<el-table-column prop="sysCreateBy" label="创建人" width="80px" ></el-table-column>
@@ -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){