|
@@ -90,10 +90,19 @@ const header = props => {
|
90
|
90
|
.catch(err => {
|
91
|
91
|
// message.info(err.msg)
|
92
|
92
|
});
|
93
|
|
- };onDelete
|
94
|
|
-
|
95
|
|
- const onDelete = rowData => {
|
|
93
|
+ };
|
|
94
|
+ const onLiveHome = row => {
|
|
95
|
+ request({ ...apis.taliveActivity.livehome, urlData: { id: row.liveActivityId } })
|
|
96
|
+ .then(data => {
|
|
97
|
+ message.info('操作成功');
|
|
98
|
+ getList({ pageNum: data.current, pageSize: 10 });
|
|
99
|
+ })
|
|
100
|
+ .catch(err => {
|
|
101
|
+ // message.info(err.msg)
|
|
102
|
+ });
|
|
103
|
+ };
|
96
|
104
|
|
|
105
|
+ const onDelete = rowData => {
|
97
|
106
|
Modal.confirm({
|
98
|
107
|
title: '确认删除?',
|
99
|
108
|
okText: '确定',
|
|
@@ -252,12 +261,20 @@ const header = props => {
|
252
|
261
|
/>
|
253
|
262
|
</AuthButton>,
|
254
|
263
|
|
|
264
|
+ <AuthButton name="live.home" noRight={null}>
|
|
265
|
+ <EditIcon
|
|
266
|
+ type={record.isHome === 1 ? 'cancel' : 'top'}
|
|
267
|
+ text={record.isHome === 1 ? '取消推首页' : '推荐首页'}
|
|
268
|
+ onClick={()=>onLiveHome(record)}
|
|
269
|
+ />
|
|
270
|
+ </AuthButton>,
|
|
271
|
+
|
255
|
272
|
<AuthButton name="live.edit" noRight={null}>
|
256
|
273
|
<EditIcon type="look" text="查看详情" onClick={toAddLive(record)} />
|
257
|
274
|
</AuthButton>,
|
258
|
275
|
|
259
|
276
|
<AuthButton name="live.delete" noRight={null}>
|
260
|
|
- <EditIcon type="delete" text="删除" onClick={()=>onDelete(record)} />
|
|
277
|
+ <EditIcon type="delete" text="删除" onClick={() => onDelete(record)} />
|
261
|
278
|
</AuthButton>,
|
262
|
279
|
]),
|
263
|
280
|
},
|