mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-14 13:26:44 +08:00
提交
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
<!-- <el-input style="width: 200px;margin-right: 10px" placeholder="请选择来源"></el-input> -->
|
<!-- <el-input style="width: 200px;margin-right: 10px" placeholder="请选择来源"></el-input> -->
|
||||||
<!-- 问题: -->
|
<!-- 问题: -->
|
||||||
<el-input style="width: 200px;margin-right: 10px" v-model="dataList.uname" clearable placeholder="搜索人员姓名标题"></el-input>
|
<el-input style="width: 200px;margin-right: 10px" v-model="dataList.send" clearable placeholder="搜索人员姓名标题"></el-input>
|
||||||
<!-- 提问人:
|
<!-- 提问人:
|
||||||
<el-input style="width: 200px;margin-right: 10px"></el-input> -->
|
<el-input style="width: 200px;margin-right: 10px"></el-input> -->
|
||||||
<el-button type="primary" @click="getList" icon="el-icon-search">搜索</el-button>
|
<el-button type="primary" @click="getList" icon="el-icon-search">搜索</el-button>
|
||||||
@@ -123,7 +123,7 @@ export default {
|
|||||||
pageSize:10,
|
pageSize:10,
|
||||||
count:0,
|
count:0,
|
||||||
list:[],
|
list:[],
|
||||||
uname:'',
|
send:'',
|
||||||
},
|
},
|
||||||
replyName:'',
|
replyName:'',
|
||||||
shareShow: false,
|
shareShow: false,
|
||||||
@@ -190,6 +190,7 @@ export default {
|
|||||||
reset(){
|
reset(){
|
||||||
this.dataList.pageIndex = 1;
|
this.dataList.pageIndex = 1;
|
||||||
this.dataList.send = '',
|
this.dataList.send = '',
|
||||||
|
this.dataList.type = '',
|
||||||
this.type = 0;
|
this.type = 0;
|
||||||
this.getData();
|
this.getData();
|
||||||
this.isSearh = false;
|
this.isSearh = false;
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
<div v-if="examStatus==2" style="text-align: center;color:#6d6d6d; ">考试已结束</div>
|
<div v-if="examStatus==2" style="text-align: center;color:#6d6d6d; ">考试已结束</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="no-text">
|
<div v-else class="no-text">
|
||||||
<span>您没有需要的考试</span>
|
<span v-if="noExam">您没有需要的考试</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="re-list" v-if="canExam">
|
<div class="re-list" v-if="canExam">
|
||||||
<p>历史记录</p>
|
<p>历史记录</p>
|
||||||
@@ -240,6 +240,7 @@ export default {
|
|||||||
taskId:'',//考试任务的id
|
taskId:'',//考试任务的id
|
||||||
lastId:'',//最后一次提交的答卷
|
lastId:'',//最后一次提交的答卷
|
||||||
canExam:false,//能否参加考试
|
canExam:false,//能否参加考试
|
||||||
|
noExam:false,//不能参加考试
|
||||||
tipText:'',//提示信息
|
tipText:'',//提示信息
|
||||||
examStatus:0,//0表无,1表考试中,2表已结束
|
examStatus:0,//0表无,1表考试中,2表已结束
|
||||||
btnText:'开始考试',
|
btnText:'开始考试',
|
||||||
@@ -301,6 +302,9 @@ export default {
|
|||||||
apiTestPaper.getTestInfo(this.examId).then(res=>{
|
apiTestPaper.getTestInfo(this.examId).then(res=>{
|
||||||
if(res.status==200){
|
if(res.status==200){
|
||||||
this.canExam = res.result.hasTask;
|
this.canExam = res.result.hasTask;
|
||||||
|
if(!this.canExam) {
|
||||||
|
this.noExam = true;
|
||||||
|
}
|
||||||
this.examStatus=res.result.examStatus;
|
this.examStatus=res.result.examStatus;
|
||||||
this.testPaper = res.result.exam;
|
this.testPaper = res.result.exam;
|
||||||
this.taskId=res.result.taskId;
|
this.taskId=res.result.taskId;
|
||||||
|
|||||||
Reference in New Issue
Block a user