--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

@@ -429,16 +429,15 @@ export default {
const ListOpera = () => {
let arr = state.tabledata;
arr.map((value) => {
if (value.finishStatus == 1) {
value.operation = (
<div
(value.examStatus || value.workStatus) && (<div
style={{
display: "flex",
alignItems: "center",
justifyContent: "center",
}}
>
<a-button
{value.workStatus===1 && <a-button
type="link"
class="operation"
style="cursor:pointer;margin-right:10px;color: rgba(56, 125, 247, 1)"
@@ -447,8 +446,8 @@ export default {
}}
>
查看作业
</a-button>
<a-button
</a-button>}
{value.workStatus===1 && <a-button
type="link"
class="operation"
style="cursor:pointer;margin-right:10px;color: rgba(56, 125, 247, 1)"
@@ -457,38 +456,10 @@ export default {
}}
>
查看答卷
</a-button>
</div>
</a-button>}
</div>)
);
} else {
value.operation = (
<div
style={{
display: "flex",
alignItems: "center",
justifyContent: "center",
}}
>
<a-button
type="link"
class="operation"
style="margin-right:10px;color:rgba(56, 125, 247, 0.5)"
disabled
>
查看作业
</a-button>
<a-button
type="link"
class="operation"
style="margin-right:10px;color:rgba(56, 125, 247, 0.5)"
disabled
>
查看答卷
</a-button>
</div>
);
}
});
});
};
const closeDrawer = () => {
ctx.emit("update:FaceTeachModelVisible", false);