--fix bug

This commit is contained in:
yuping
2023-02-04 01:49:52 +08:00
parent 3647b3c653
commit 5eae2714a8
8 changed files with 259 additions and 336 deletions

View File

@@ -416,7 +416,7 @@ export default {
);
},
},
{/**
{
title: "操作",
dataIndex: "operation",
key: "operation",
@@ -424,16 +424,15 @@ export default {
align: "center",
ellipsis: true,
className: "h",
customRender: (text) => {
return text.record.finishStatus == 1 ? (
<div
style={{
customRender: ({record:{examStatus,workStatus}}) => {
return (examStatus || workStatus) && (<div
style={{
display: "flex",
alignItems: "center",
justifyContent: "center",
}}
>
<a-button
{workStatus===1 && <a-button
type="link"
class="operation"
style="cursor:pointer;margin-right:10px;"
@@ -442,8 +441,8 @@ export default {
}}
>
查看作业
</a-button>
<a-button
</a-button>}
{examStatus===1 && <a-button
type="link"
class="operation"
style="cursor:pointer;margin-right:10px;"
@@ -452,37 +451,10 @@ export default {
}}
>
查看答卷
</a-button>
</div>
) : (
<div
style={{
display: "flex",
alignItems: "center",
justifyContent: "center",
}}
>
<a-button
type="link"
class="operation"
style="cursor:pointer;margin-right:10px;"
disabled
>
查看作业
</a-button>
<a-button
type="link"
class="operation"
style="cursor:pointer;margin-right:10px;"
disabled
>
查看答卷
</a-button>
</div>
);
},
*/ },
</a-button>}
</div>)
}
}
],
exportHomeWorkV: false,
downloadUrl: null,