fix:面授课路径图学员状态查询及状态显示

This commit is contained in:
wyx
2023-01-13 14:53:09 +08:00
parent 96f3be1812
commit 8ca735a03d
2 changed files with 4 additions and 2 deletions

View File

@@ -632,7 +632,7 @@ export default {
customRender: (text) => { customRender: (text) => {
return ( return (
<div class="racona"> <div class="racona">
<span>{text.record.signStatus ? "正常" : "异常"}</span> <span>{text.record.signStatus ? "正常" : text.record.signStatus == null ? "-" : "异常"}</span>
</div> </div>
); );
}, },

View File

@@ -575,7 +575,7 @@ export default {
customRender: (text) => { customRender: (text) => {
return ( return (
<div class="racona"> <div class="racona">
<span>{text.record.signStatus ? "正常" : "异常"}</span> <span>{text.record.signStatus ? "正常" : text.record.signStatus == null ? "-" : "异常"}</span>
</div> </div>
); );
}, },
@@ -756,6 +756,7 @@ export default {
pid: props.datasource.routerId, pid: props.datasource.routerId,
// status: Number(state.name), // status: Number(state.name),
studentName: state.name, studentName: state.name,
signStatus: state.projectName2,
taskId: props.datasource.routerTaskId, taskId: props.datasource.routerTaskId,
taskType: props.datasource.type, taskType: props.datasource.type,
}); });
@@ -767,6 +768,7 @@ export default {
type: 2, type: 2,
pid: props.datasource.routerId, pid: props.datasource.routerId,
// status: Number(state.name), // status: Number(state.name),
signStatus: state.projectName2,
studentName: state.name, studentName: state.name,
taskId: props.datasource.routerTaskId, taskId: props.datasource.routerTaskId,
taskType: props.datasource.type, taskType: props.datasource.type,