去掉ccks作品驳回按钮

This commit is contained in:
何童崇 2022-07-01 16:23:12 +08:00
parent c6e1f7126d
commit 18dc164cc2
1 changed files with 12 additions and 12 deletions

View File

@ -168,18 +168,18 @@ function Introduce({ history: { location: { pathname } }, qzDetail, match }) {
return <Tooltip title={text[0] && text[0].title} placement="topLeft"><a href={current_main_site_url + (text[0] && text[0].url)} className="attachments_a">{text[0] && text[0].title}</a></Tooltip>;
}
},
{
title: '操作',
dataIndex: "status",
align: "center",
render: (text, record) => {
return text === 1 ? <Button size="small" disabled>已驳回</Button> : <Popconfirm
title="您确定驳回此用户的作品信息?"
icon={<i className="iconfont icon-shanchu_tc_icon mr3 font-15" style={{ float: 'left', color: "red" }}></i>}
onConfirm={() => { reject(record.user_id, 2) }}
><Button size="small">驳回</Button></Popconfirm>
}
}
// {
// title: '',
// dataIndex: "status",
// align: "center",
// render: (text, record) => {
// return text === 1 ? <Button size="small" disabled></Button> : <Popconfirm
// title=""
// icon={<i className="iconfont icon-shanchu_tc_icon mr3 font-15" style={{ float: 'left', color: "red" }}></i>}
// onConfirm={() => { reject(record.user_id, 2) }}
// ><Button size="small"></Button></Popconfirm>
// }
// }
];
}, [qzDetail]);