|
@@ -14,7 +14,7 @@ const RotationChartList = (props) => {
|
14
|
14
|
|
15
|
15
|
const updata = (row) => {
|
16
|
16
|
if (row.id) {
|
17
|
|
- updataBanner(row.id, { state: row.state === '1' ? '2' : '1' }).then((res) => {
|
|
17
|
+ updataBanner(row.id, { status: row.status === '1' ? '2' : '1' }).then((res) => {
|
18
|
18
|
// message.success('修改成功');
|
19
|
19
|
actionRef.current.reload();
|
20
|
20
|
});
|
|
@@ -57,7 +57,7 @@ const RotationChartList = (props) => {
|
57
|
57
|
},
|
58
|
58
|
{
|
59
|
59
|
title: '状态',
|
60
|
|
- dataIndex: 'state',
|
|
60
|
+ dataIndex: 'status',
|
61
|
61
|
valueEnum: {
|
62
|
62
|
1: {
|
63
|
63
|
text: '上架',
|
|
@@ -90,7 +90,7 @@ const RotationChartList = (props) => {
|
90
|
90
|
updata(record);
|
91
|
91
|
}}
|
92
|
92
|
>
|
93
|
|
- {record.state === '1' ? '下架' : '上架'}
|
|
93
|
+ {record.status === 1 ? '下架' : '上架'}
|
94
|
94
|
</Button>,
|
95
|
95
|
<Button
|
96
|
96
|
key={4}
|