dingxin 5 years ago
parent
commit
9bdebf32f0
2 changed files with 15 additions and 2 deletions
  1. 11
    0
      src/pages/channel/recommendClients.jsx
  2. 4
    2
      src/pages/news/list/NewsList.jsx

+ 11
- 0
src/pages/channel/recommendClients.jsx View File

3
 import { FormattedMessage } from 'umi-plugin-react/locale';
3
 import { FormattedMessage } from 'umi-plugin-react/locale';
4
 import channels from './channelList.less';
4
 import channels from './channelList.less';
5
 import router from 'umi/router';
5
 import router from 'umi/router';
6
+import moment from 'moment';
6
 import apis from '../../services/apis';
7
 import apis from '../../services/apis';
7
 import request from '../../utils/request'
8
 import request from '../../utils/request'
8
 
9
 
91
     dataIndex: 'status',
92
     dataIndex: 'status',
92
     key: 'status',
93
     key: 'status',
93
     align: 'center',
94
     align: 'center',
95
+    // eslint-disable-next-line consistent-return
96
+    render: (text, records) => {
97
+      if (records.status === 1) { return '报备' }
98
+      if (records.status === 2) { return 'admin.taNews.weight' }
99
+      if (records.status === 3) { return '认购' }
100
+      if (records.status === 4) { return '签约' }
101
+      if (records.verifyStatus === 1) { return '待审核' }
102
+      if (records.verifyStatus === 2) { return '审核同意' }
103
+      if (records.verifyStatus === 3) { return '签约' }
104
+    },
94
   },
105
   },
95
 ];
106
 ];
96
 
107
 

+ 4
- 2
src/pages/news/list/NewsList.jsx View File

180
         cover={<img alt="example" src={data.newsImg} style={{ borderRadius: '12px 0 0 12px', width: '230px', height: '228px' }}></img>}
180
         cover={<img alt="example" src={data.newsImg} style={{ borderRadius: '12px 0 0 12px', width: '230px', height: '228px' }}></img>}
181
         bodyStyle={{ padding: '10px 20px' }}
181
         bodyStyle={{ padding: '10px 20px' }}
182
       >
182
       >
183
-        <AuthButton name="admin.taNews.id.put" noRight={null}>
184
-          <span style={{ position: 'absolute', right: '100px', top: '19px', fontSize: ' 0.106rem',zIndex:1, color: '#FF7E48', cursor: 'pointer' }} onClick={topNews(data.weight, data.newsId)}>{ data.weight === 1 ? '取消置顶' : '置顶' }</span>
183
+        <AuthButton name="admin.taNews.weight.put" noRight={null}>
184
+        <span style={{ position: 'absolute', right: '100px', top: '19px', fontSize: ' 0.106rem',zIndex:1, color: '#FF7E48', cursor: 'pointer' }} onClick={topNews(data.weight, data.newsId)}>{ data.weight === 1 ? '取消置顶' : '置顶' }</span>
185
+        </AuthButton>
185
 
186
 
187
+        <AuthButton name="admin.taNews.id.put" noRight={null}>
186
           <span style={{ position: 'absolute', right: '20px', top: '20px', fontSize: ' 0.106rem',zIndex:1, color: '#FF7E48', cursor: 'pointer' }} onClick={toEditList(data.newsId)}>
188
           <span style={{ position: 'absolute', right: '20px', top: '20px', fontSize: ' 0.106rem',zIndex:1, color: '#FF7E48', cursor: 'pointer' }} onClick={toEditList(data.newsId)}>
187
             编辑
189
             编辑
188
                   <Icon type="form" style={{ color: '#C0C4CC', marginLeft: '10px' }} />
190
                   <Icon type="form" style={{ color: '#C0C4CC', marginLeft: '10px' }} />