mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 12:56:43 +08:00
查询考试提示问题
This commit is contained in:
@@ -122,7 +122,7 @@
|
|||||||
this.comTypes.some(ct=>{
|
this.comTypes.some(ct=>{
|
||||||
if(ct.resType==$this.resType){
|
if(ct.resType==$this.resType){
|
||||||
$this.curComType=ct;
|
$this.curComType=ct;
|
||||||
//this.findCourseFile();
|
//this.findCourseFile();//
|
||||||
return true;
|
return true;
|
||||||
}else{
|
}else{
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div style="text-align: center;padding-top: 10px; overflow-y: auto;">
|
<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="testName" label="试卷"></el-table-column>
|
||||||
<el-table-column prop="sysCreateTime" label="创建时间"></el-table-column>
|
<el-table-column prop="sysCreateTime" label="创建时间"></el-table-column>
|
||||||
<el-table-column prop="sysCreateBy" label="创建人" width="80px" ></el-table-column>
|
<el-table-column prop="sysCreateBy" label="创建人" width="80px" ></el-table-column>
|
||||||
@@ -161,6 +161,7 @@
|
|||||||
data(){
|
data(){
|
||||||
return {
|
return {
|
||||||
loading:false,
|
loading:false,
|
||||||
|
emptyText:'加载中...',
|
||||||
examChange:{}, //用于保存,检查是否改变
|
examChange:{}, //用于保存,检查是否改变
|
||||||
showTab:0, //显示哪个
|
showTab:0, //显示哪个
|
||||||
onlyQuestion:false, //只显示问题
|
onlyQuestion:false, //只显示问题
|
||||||
@@ -217,7 +218,8 @@
|
|||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
reloadExam(){
|
reloadExam(){
|
||||||
console.log('contentId='+this.contentId);
|
//console.log('contentId='+this.contentId);
|
||||||
|
this.emptyText='加载中...';
|
||||||
this.examPaper={items:[]};
|
this.examPaper={items:[]};
|
||||||
this.examInfo.id='';
|
this.examInfo.id='';
|
||||||
this.examInfo.paperType=1;
|
this.examInfo.paperType=1;
|
||||||
@@ -312,9 +314,12 @@
|
|||||||
this.showTab=2;
|
this.showTab=2;
|
||||||
this.examInfo.paperType=2; //选择试卷
|
this.examInfo.paperType=2; //选择试卷
|
||||||
this.examInfo.paperId='';
|
this.examInfo.paperId='';
|
||||||
|
|
||||||
|
this.findExamPapers();
|
||||||
},
|
},
|
||||||
findExamPapers(){ //查询已有的考试试卷
|
findExamPapers(){ //查询已有的考试试卷
|
||||||
this.usePaper.pageIndex=1;
|
this.usePaper.pageIndex=1;
|
||||||
|
this.emptyText='加载中...';
|
||||||
this.loadExamPapers();
|
this.loadExamPapers();
|
||||||
},
|
},
|
||||||
loadExamPapers(){
|
loadExamPapers(){
|
||||||
@@ -331,6 +336,7 @@
|
|||||||
}else{
|
}else{
|
||||||
this.$message.error('查询可用试卷失败');
|
this.$message.error('查询可用试卷失败');
|
||||||
}
|
}
|
||||||
|
this.emptyText='暂无搜索内容';
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
changePaperPage(pindex){
|
changePaperPage(pindex){
|
||||||
|
|||||||
@@ -295,7 +295,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div style="text-align: center;padding-top: 10px; overflow-y: auto;">
|
<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="testName" label="考试名称"></el-table-column>
|
||||||
<el-table-column prop="sysCreateTime" label="创建时间"></el-table-column>
|
<el-table-column prop="sysCreateTime" label="创建时间"></el-table-column>
|
||||||
<el-table-column prop="sysCreateBy" label="创建人" width="80px" ></el-table-column>
|
<el-table-column prop="sysCreateBy" label="创建人" width="80px" ></el-table-column>
|
||||||
@@ -705,6 +705,7 @@
|
|||||||
paperName:'',//选择的试卷的名称
|
paperName:'',//选择的试卷的名称
|
||||||
paperJson:{items:[]},
|
paperJson:{items:[]},
|
||||||
},
|
},
|
||||||
|
emptyText:'加载中...',
|
||||||
exam:{
|
exam:{
|
||||||
show:1,
|
show:1,
|
||||||
content:{id:'',contentType:61,sortIndex:3},
|
content:{id:'',contentType:61,sortIndex:3},
|
||||||
@@ -1300,8 +1301,10 @@
|
|||||||
this.exam.show=2;
|
this.exam.show=2;
|
||||||
this.exam.info.paperType=2; //选择试卷
|
this.exam.info.paperType=2; //选择试卷
|
||||||
this.exam.info.paperId='';
|
this.exam.info.paperId='';
|
||||||
|
this.findExamPapers();
|
||||||
},
|
},
|
||||||
findExamPapers(){ //查询已有的考试试卷
|
findExamPapers(){ //查询已有的考试试卷
|
||||||
|
this.emptyText='加载中...';
|
||||||
this.usePaper.pageIndex=1;
|
this.usePaper.pageIndex=1;
|
||||||
this.loadExamPapers();
|
this.loadExamPapers();
|
||||||
},
|
},
|
||||||
@@ -1318,6 +1321,7 @@
|
|||||||
}else{
|
}else{
|
||||||
this.$message.error('查询可用试卷失败');
|
this.$message.error('查询可用试卷失败');
|
||||||
}
|
}
|
||||||
|
this.emptyText='暂无搜索内容';
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
changePaperPage(pindex){
|
changePaperPage(pindex){
|
||||||
|
|||||||
Reference in New Issue
Block a user