|
|
@ -51,7 +51,7 @@ function AdvisorNotice(props) { |
|
|
|
const tableDatas = useMemo(() => { |
|
|
|
const { title } = tableParams |
|
|
|
let rslt = dataSource |
|
|
|
rslt = rslt.filter(s => (title ? (s.title ? s.title === title : false) : true)) |
|
|
|
rslt = rslt.filter(s => (title ? (s.title ? s.title.includes(title) : false) : true)) |
|
|
|
return rslt |
|
|
|
}) |
|
|
|
//上架下架处理
|
|
|
@ -117,7 +117,15 @@ function AdvisorNotice(props) { |
|
|
|
/> |
|
|
|
) |
|
|
|
options.push( |
|
|
|
<a onClick={()=>{publishHandler(record)}}>{record?.state===2?'下架':'发布'}</a> |
|
|
|
<Popconfirm |
|
|
|
key='del' |
|
|
|
placement='top' |
|
|
|
title={record?.state===2?'确定下架吗?':'确定发布吗?'} |
|
|
|
onConfirm={() => publishHandler(record)} |
|
|
|
okText='是' |
|
|
|
cancelText='否'> |
|
|
|
<a>{record?.state===2?'下架':'发布'}</a> |
|
|
|
</Popconfirm> |
|
|
|
) |
|
|
|
record.state ===1||record.state ===3? options.push( |
|
|
|
<AddAdvisoryNoticeModal |
|
|
|