|
@@ -92,13 +92,13 @@ function body(props) {
|
92
|
92
|
}
|
93
|
93
|
|
94
|
94
|
//删除资讯
|
95
|
|
- const changeNewsListStatus = (newsId) => () => {
|
|
95
|
+ const changeNewsListStatus = (row, newsId) => () => {
|
96
|
96
|
Modal.confirm({
|
97
|
97
|
title: '确认删除该资讯?',
|
98
|
98
|
okText: '确认',
|
99
|
99
|
cancelText: '取消',
|
100
|
100
|
onOk() {
|
101
|
|
- request({ ...apis.news.delete, urlData: { id: newsId }, }).then((data) => {
|
|
101
|
+ request({ ...apis.news.put, urlData: { id: newsId }, data: { ...row, status: -1 } }).then((data) => {
|
102
|
102
|
message.info('操作成功!')
|
103
|
103
|
getList({ pageNum: 1, pageSize: 10 });
|
104
|
104
|
}).catch((err) => {
|
|
@@ -201,7 +201,7 @@ function body(props) {
|
201
|
201
|
}
|
202
|
202
|
</AuthButton>
|
203
|
203
|
<AuthButton name="admin.taNews.id.delete" noRight={null}>
|
204
|
|
- <span style={{ position: 'absolute', right: '20px', bottom: ' 10px', fontSize: ' 0.106rem', color: '#FF7E48', cursor: 'pointer' }} onClick={changeNewsListStatus(data.newsId)}>
|
|
204
|
+ <span style={{ position: 'absolute', right: '20px', bottom: ' 10px', fontSize: ' 0.106rem', color: '#FF7E48', cursor: 'pointer', zIndex: 1 }} onClick={changeNewsListStatus(data, data.newsId)}>
|
205
|
205
|
删除
|
206
|
206
|
<Icon type="rest" style={{ color: '#C0C4CC', marginLeft: '8px' }} />
|
207
|
207
|
</span>
|