feat:增加已审核课程日志显示部分数据接入

This commit is contained in:
wyx
2023-02-17 10:54:26 +08:00
parent 1e6002d7d4
commit 50d91e5510

View File

@@ -145,10 +145,13 @@ export default {
ellipsis: true,
customRender: (text) => (
<div>
{text.record.createName}
<br/>
{/* <a-tag color="green">通过</a-tag> */}
{{ 2: "审核通过", "-2": "审核拒绝" }[text.record.status + ""]}
{text.record.createName} {' '}审核{' '}
{
text.record.status == 2?
<a-tag color="green">通过</a-tag>
:
<a-tag color="red">拒绝</a-tag>
}
<br/>
{text.record.createTime}
</div>
@@ -164,20 +167,53 @@ export default {
},
{
title: "审核状态",
title: "审",
dataIndex: "status",
key: "status",
align: "center",
// width: "20%",
customRender: ({ record: { status } }) => (
<div>{{ 2: "审核通过", "-2": "审核拒绝" }[status + ""]}</div>
customRender: (text) => (
text.record.inviteCreateName?
<div>
{text.record.inviteCreateName} {' '}审核{' '}
{
text.record.inviteStatus == 2?
<a-tag color="green">通过</a-tag>
:
text.record.inviteStatus == -2?
<a-tag color="red">拒绝</a-tag>
:
<a-tag color="green">待审核</a-tag>
}
<br/>
{text.record.inviteCreateTime}
</div>
:''
),
},
{
title: "审核时间",
dataIndex: "createTime",
key: "createTime",
title: "转审备注",
dataIndex: "inviteDescription",
key: "inviteDescription",
align: "center",
// width: "20%",
ellipsis: true,
},
{
title: "公开课审核",
dataIndex: "gkka",
key: "inviteDescription",
align: "center",
// width: "20%",
ellipsis: true,
},
{
title: "公开课备注",
dataIndex: "gkkb",
key: "inviteDescription",
align: "center",
// width: "20%",
ellipsis: true,
@@ -262,7 +298,7 @@ export default {
style="color:#387DF7;cursor:pointer;"
onClick={() => {
console.log(value);
showProjAuditModal(value.record.auditLogDtoList.length !== 0 ? value.record.auditLogDtoList : []);
showProjAuditModal(value.record.auditLogDtoList?value.record.auditLogDtoList.length !== 0 ? value.record.auditLogDtoList : []:[]);
}}
>
审核日志