fix:系统考试任务状态判断

This commit is contained in:
wyx
2023-02-27 17:11:36 +08:00
parent 404201c517
commit 670536de32
2 changed files with 6 additions and 6 deletions

View File

@@ -169,13 +169,13 @@ export default {
},
{
id: 2,
value: "10",
label: "未通过",
value: "9",
label: "已完成",
},
{
id: 3,
value: "1",
label: "已通过",
label: "进行中",
},
],
selectedRowKeys: [],
@@ -305,7 +305,7 @@ export default {
align: "center",
ellipsis: true,
className: "h",
customRender: ({record:{finishStatus}}) => ({1:'通过',2:'未通过'}[finishStatus] || '未开始'),
customRender: ({record:{finishStatus}}) => ({1:'进行中',0:'未开始',9:'已完成'}[finishStatus] || '未开始'),
},
{
title: "操作",

View File

@@ -286,7 +286,7 @@ export default {
align: "center",
ellipsis: true,
className: "h",
customRender: ({ record: { finishStatus } }) => ({ 1: '通过', 2: '未通过' }[finishStatus] || '未开始'),
customRender: ({record:{finishStatus}}) => ({1:'进行中',0:'未开始',9:'已完成'}[finishStatus] || '未开始'),
},
{
title: "操作",
@@ -299,7 +299,7 @@ export default {
customRender: (text) => {
{/* debugger */ }
console.log("text" + text.record)
if (text.record.finishStatus === 1 || text.record.finishStatus === 2) {
if (text.record.finishStatus === 1 || text.record.finishStatus === 9) {
return (
<div class="racona">
<a-button