Merge pull request '去掉ccks作品驳回按钮' (#413) from tongChong/forgeplus-react:dev_military_admin into pre_dev_military

This commit is contained in:
tongChong 2022-07-01 16:24:57 +08:00
commit 386a0efe85
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]);