|
@@ -13,6 +13,7 @@ import Prompt from 'umi/prompt';
|
13
|
13
|
|
14
|
14
|
import AuthButton from '@/components/AuthButton';
|
15
|
15
|
import EditIcon from '@/components/EditIcon';
|
|
16
|
+import Navigate from '@/components/Navigate';
|
16
|
17
|
|
17
|
18
|
|
18
|
19
|
const { Option } = Select;
|
|
@@ -188,7 +189,7 @@ function body(props) {
|
188
|
189
|
|
189
|
190
|
return (
|
190
|
191
|
<Card
|
191
|
|
- hoverable
|
|
192
|
+ // hoverable
|
192
|
193
|
style={{ height: '230px', minWidth: '570px', borderRadius: '12px', margin: '10px', boxShadow: '0px 0px 16px 2px rgba(0,0,0,0.12)', position: 'relative' }}
|
193
|
194
|
cover={<img alt="example" src={data.newsImg} style={{ borderRadius: '12px 0 0 12px', width: '230px', height: '228px' }}></img>}
|
194
|
195
|
bodyStyle={{ padding: '10px 20px' }}
|
|
@@ -223,7 +224,7 @@ function body(props) {
|
223
|
224
|
textOverflow: 'ellipsis',
|
224
|
225
|
whiteSpace: 'nowrap',
|
225
|
226
|
width: '75%',
|
226
|
|
- }}>{data.newsName}</p>
|
|
227
|
+ }}><Navigate to={`/news/list/editNewsList?newsId=${data.newsId}`}>{data.newsName}</Navigate></p>
|
227
|
228
|
<p style={{ fontSize: ' 0.106rem', color: '#555', marginBottom: '8px', display: 'flex' }}>
|
228
|
229
|
<span style={{ display: 'inline-block', width: '50%', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>资讯类型:{data.newsType.newsTypeName}</span>
|
229
|
230
|
<span>状态:{data.newsStatus == 0 ? "已发布" : "未发布"}</span>
|