mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-07 09:56:44 +08:00
试卷未结束不能查看
This commit is contained in:
@@ -61,7 +61,7 @@
|
||||
<div class="wz">催促考试</div>
|
||||
</div>-->
|
||||
<div class="btn btn2" @click="exportData">
|
||||
<div class="img2"></div>
|
||||
<div class="img2"></div>
|
||||
<div class="wz">导出数据</div>
|
||||
</div>
|
||||
<!-- <div class="btn btn2" @click="showEScoreModal">
|
||||
@@ -333,18 +333,39 @@ export default {
|
||||
ellipsis: true,
|
||||
className: "h",
|
||||
customRender: (text) => {
|
||||
return (
|
||||
<div class="racona">
|
||||
<a
|
||||
onClick={()=>{
|
||||
state.studentKid = text.record.studentKid;
|
||||
state.datasource = text.record;
|
||||
state.CAvisible = true;
|
||||
}}>
|
||||
查看答卷
|
||||
</a>
|
||||
debugger
|
||||
console.log("text"+text.record)
|
||||
if (text.record.finishStatus===1 || text.record.finishStatus===2) {
|
||||
return (
|
||||
<div class="racona">
|
||||
<a-button
|
||||
type="link"
|
||||
onClick={()=>{
|
||||
state.studentKid = text.record.studentKid;
|
||||
state.datasource = text.record;
|
||||
state.CAvisible = true;
|
||||
}}>
|
||||
查看答卷
|
||||
</a-button>
|
||||
</div>
|
||||
);
|
||||
}else {
|
||||
return (
|
||||
<div class="racona">
|
||||
<a-button
|
||||
type="link"
|
||||
disabled
|
||||
onClick={()=>{
|
||||
state.studentKid = text.record.studentKid;
|
||||
state.datasource = text.record;
|
||||
state.CAvisible = true;
|
||||
}}>
|
||||
查看答卷
|
||||
</a-button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
},
|
||||
},
|
||||
],
|
||||
@@ -409,7 +430,7 @@ export default {
|
||||
state.loadingData = false;
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 搜索
|
||||
function searchTableData() {
|
||||
state.currentPage = 1;
|
||||
@@ -419,7 +440,7 @@ export default {
|
||||
// 重置
|
||||
function reseatTableData() {
|
||||
state.loadingData = true;
|
||||
state.currentPage = 1;
|
||||
state.currentPage = 1;
|
||||
state.name = '';
|
||||
state.projectName = undefined;
|
||||
getData();
|
||||
|
||||
Reference in New Issue
Block a user