Your Name 2 vuotta sitten
vanhempi
commit
eb32a50417
2 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 1
    1
      src/pages/dish/list/index.jsx
  2. 3
    3
      src/pages/rotationChart/list/index.jsx

+ 1
- 1
src/pages/dish/list/index.jsx Näytä tiedosto

@@ -15,7 +15,7 @@ const DishList = (props) => {
15 15
 
16 16
   const updata = (row) => {
17 17
     if (row.id) {
18
-      updataDish(row.id, { state: row.state === '1' ? '2' : '1' }).then((res) => {
18
+      updataDish(row.id, { status: row.status === '1' ? '2' : '1' }).then((res) => {
19 19
         // message.success('修改成功');
20 20
         actionRef.current.reload();
21 21
       });

+ 3
- 3
src/pages/rotationChart/list/index.jsx Näytä tiedosto

@@ -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}