试卷未结束不能查看

This commit is contained in:
lpq
2023-02-23 00:24:50 +08:00
parent 0e157c8ea5
commit b8bf1cd2dd

View File

@@ -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>
);
}
},
},
],