Browse Source

Merge branch 'master' of http://git.ycjcjy.com/zhiyuxing/estateagents-admin-manager

魏熙美 5 years ago
parent
commit
89db5dbc71

+ 4
- 1
src/global.less View File

@@ -98,6 +98,9 @@ ol {
98 98
   background: #FF7E48;
99 99
   border-color: #FF7E48;
100 100
 }
101
+.ant-radio-button-wrapper:not(:first-child)::before{
102
+  background: #FF7E48;
103
+}
101 104
 .ant-row.ant-form-item .ant-form-item-label.ant-col-sm-3{
102 105
   min-width: 100px;
103 106
 }
@@ -105,7 +108,7 @@ ol {
105 108
   padding: 0;
106 109
 }
107 110
 .antd-pro-pages-index-echarts-styles-pie,.antd-pro-pages-index-echarts-styles-bar{
108
-  padding: 0.1rem;
111
+  padding: 26px;
109 112
   margin-bottom: 25px;
110 113
 }
111 114
 .ant-breadcrumb{

+ 51
- 61
src/pages/Welcome.jsx View File

@@ -1,76 +1,66 @@
1
-import React, { useEffect, useState } from 'react';
1
+import React, { Component, useState, useEffect } from 'react';
2 2
 import { Card, Typography, Alert, Row, Col } from 'antd';
3 3
 import { FormattedMessage } from 'umi-plugin-react/locale';
4 4
 import EchartsTest from '../components/EchartsTest';
5 5
 import IndexEcharts from './indexEcharts/index';
6 6
 import router from 'umi/router';
7
+import request from '../utils/request';
7 8
 import apis from '../services/apis';
8
-import request from '../utils/request'
9
-const Welcome = (props) => {
10 9
 
11
-  const option = {
12
-    xAxis: {
13
-      type: 'category',
14
-      data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
15
-    },
16
-    yAxis: {
17
-      type: 'value'
18
-    },
19
-    series: [{
20
-      data: [820, 932, 901, 934, 1290, 1330, 1320],
21
-      type: 'line'
22
-    }]
23
-  };
24
-  useEffect(() => {
25
-    echratsInfo();
26
-  }, [])
27
-  const [data, setData] = useState({ records: [] })
28
-  function echratsInfo(params) {
29
-    request({
30
-      ...apis.indexEcharts.list,
31
-      params,
32
-    }).then((data) => {
33
-      setData(data)
34
-      console.log(data, "666666666666666666666666666666")
10
+const header = props => {
35 11
 
36
-    })
37
-  }
12
+ const [data, setData] = useState([])
13
+
14
+useEffect(() => {
15
+  getIndexEcharts()
16
+}, [])
17
+
18
+function getIndexEcharts (params) {
19
+  request({
20
+    ...apis.indexEcharts.list,
21
+    params
22
+  }).then((data) => {
23
+   setData(data)
24
+    console.log(data, '11111')
25
+  })
26
+}
27
+  
38 28
 
39 29
   return (
40 30
     <>
41
-      <div style={{ display: 'flex', marginBottom: '28px' }}>
42
-        <div style={{
43
-          textAlign: 'center', display: 'flex', justifyContent: 'center', lineHeight: '100px', background: 'linear-gradient(144deg,rgba(241,43,62,1) 0%,rgba(254,144,155,1) 100%)', height: '100px',
44
-          boxShadow: '0px  0.11rem 14px -15px rgba(241,43,62,1)',
45
-          borderRadius: '12px', width: '32%', marginRight: '2%'
46
-        }}>
47
-          <span style={{ fontSize: '24px', color: '#fff' }}>总用户 </span>
48
-          <span style={{ fontSize: '52px', color: '#fff', marginLeft: '26px', fontFamily: 'fantasy' }}>{data.selectUserCount || '0'}</span>
49
-        </div>
50
-        <div style={{
51
-          textAlign: 'center', display: 'flex', justifyContent: 'center', lineHeight: '100px', background: 'linear-gradient(144deg,rgba(255,126,74,1) 0%,rgba(255,196,168,1) 100%)', height: '100px',
52
-          boxShadow: '0px  0.11rem 14px -15px rgba(255,126,74,1)',
53
-          borderRadius: '12px', width: '32%', marginRight: '2%'
54
-        }}>
55
-          <span style={{ fontSize: '24px', color: '#fff' }}>总注册用户 </span>
56
-          <span style={{ fontSize: '52px', color: '#fff', marginLeft: '26px', fontFamily: 'fantasy' }}>{data.selectRegisteredCount || '0'}</span>
57
-        </div>
58
-        <div onClick={() => router.push('/indexEcharts/newUsers')} style={{
59
-          textAlign: 'center', display: 'flex', justifyContent: 'center', background: 'linear-gradient(137deg,rgba(107,130,230,1) 0%,rgba(152,175,251,1) 100%)', height: '100px',
60
-          boxShadow: '0px  0.11rem 14px -15px rgba(107,130,230,1)',
61
-          borderRadius: '12px', width: '32%',
62
-        }}>
63
-          <span style={{ fontSize: '24px', color: '#fff', borderBottom: '1px solid #fff', margin: '30px 0' }}>最近7天新增 </span>
64
-          <span style={{ fontSize: '52px', color: '#fff', marginLeft: '26px', fontFamily: 'fantasy', lineHeight: '100px' }}>{data.selectRecentlyCount || '0'}</span>
31
+       <div style={{ display: 'flex',marginBottom:'28px' }}>
32
+           <div style={{
33
+            textAlign: 'center', display: 'flex', justifyContent: 'center', lineHeight: '100px', background: 'linear-gradient(144deg,rgba(241,43,62,1) 0%,rgba(254,144,155,1) 100%)', height: '100px',
34
+            boxShadow: '0px  0.11rem 14px -15px rgba(241,43,62,1)',
35
+            borderRadius: '12px', width: '32%', marginRight: '2%'
36
+          }}>
37
+            <span style={{ fontSize: '24px', color: '#fff' }}>总用户 </span>
38
+            <span style={{ fontSize: '52px', color: '#fff', marginLeft: '26px', fontFamily: 'fantasy' }}>{data.selectUserCount}</span>
39
+          </div>
40
+          <div style={{
41
+            textAlign: 'center', display: 'flex', justifyContent: 'center', lineHeight: '100px', background: 'linear-gradient(144deg,rgba(255,126,74,1) 0%,rgba(255,196,168,1) 100%)', height: '100px',
42
+            boxShadow: '0px  0.11rem 14px -15px rgba(255,126,74,1)',
43
+            borderRadius: '12px', width: '32%', marginRight: '2%'
44
+          }}>
45
+            <span style={{ fontSize: '24px', color: '#fff' }}>总注册用户 </span>
46
+            <span style={{ fontSize: '52px', color: '#fff', marginLeft: '26px', fontFamily: 'fantasy' }}>{data.selectRegisteredCount}</span>
47
+          </div>
48
+          <div onClick={()=>router.push('/indexEcharts/newUsers')} style={{
49
+            textAlign: 'center', display: 'flex', justifyContent: 'center', background: 'linear-gradient(137deg,rgba(107,130,230,1) 0%,rgba(152,175,251,1) 100%)', height: '100px',
50
+            boxShadow: '0px  0.11rem 14px -15px rgba(107,130,230,1)',
51
+            borderRadius: '12px', width: '32%',
52
+          }}>
53
+            <span style={{ fontSize: '24px', color: '#fff',borderBottom:'1px solid #fff',margin:'30px 0' }}>最近7天新增 </span>
54
+            <span style={{ fontSize: '52px', color: '#fff', marginLeft: '26px', fontFamily: 'fantasy', lineHeight: '100px' }}>{data.selectRecentlyCount}</span>
55
+          </div>
65 56
         </div>
66
-      </div>
67
-      <IndexEcharts style={{ width: '100%' }}></IndexEcharts>
68
-
69
-      {/* <EchartsTest style={{ width: 500, height: 500 }}></EchartsTest> */}
70
-
71
-    </>
57
+        <IndexEcharts style={{ width: '100%'}} onReData={(e) => redata(e)} ></IndexEcharts>
58
+    
59
+        {/* <EchartsTest style={{ width: 500, height: 500 }}></EchartsTest> */}
60
+    
61
+      </>
72 62
   )
73
-}
74
-export default Welcome;
75 63
 
64
+}
76 65
 
66
+export default  header

+ 1
- 1
src/pages/charts/CityNums.jsx View File

@@ -128,7 +128,7 @@ const CityNums = (props) => {
128 128
   }
129 129
 
130 130
   return (
131
-    <div style={{ margin: ' 0 0 20px  0', width: '100%', borderRadius: '8px', boxShadow: '0px 0px 9px 1px rgba(0,0,0,0.12)', overflow: 'hidden' }}>
131
+    <div style={{ margin: ' 0 0 20px  0', width: '100%', borderRadius: '12px', boxShadow: '0px 0px 9px 1px rgba(0,0,0,0.12)', overflow: 'hidden' }}>
132 132
       <Echart options={options} style={{ width: '100%', height: '600px' }} ></Echart>
133 133
     </div>
134 134
   )

+ 56
- 56
src/pages/customer/independentList/index.jsx View File

@@ -18,8 +18,8 @@ class ModalTable extends React.Component {
18 18
   constructor(props) {
19 19
     super(props);
20 20
     this.state = {
21
-       dataSource: { records: [] },
22
-       visibleData: { visible: false, customerId: '', realtyConsultant: '' },
21
+      dataSource: { records: [] },
22
+      visibleData: { visible: false, customerId: '', realtyConsultant: '' },
23 23
     }
24 24
   }
25 25
 
@@ -69,7 +69,7 @@ class ModalTable extends React.Component {
69 69
     })
70 70
   }
71 71
 
72
-   // 分页
72
+  // 分页
73 73
   onChange(pageNum) {
74 74
     this.getList({ pageNumber: pageNum, pageSize: 5 })
75 75
   }
@@ -79,7 +79,7 @@ class ModalTable extends React.Component {
79 79
       {
80 80
         title: '头像',
81 81
         // eslint-disable-next-line jsx-a11y/alt-text
82
-        render: (text, records) => <img src={records.picture } width={50} height={50} />,
82
+        render: (text, records) => <img src={records.picture} width={50} height={50} />,
83 83
       },
84 84
       {
85 85
         title: '用户名',
@@ -95,7 +95,7 @@ class ModalTable extends React.Component {
95 95
         title: '性别',
96 96
         dataIndex: 'sex',
97 97
         key: 'sex',
98
-        render: (text, records) => <span>{ records.sex === 1 ? '男' : '女' }</span>,
98
+        render: (text, records) => <span>{records.sex === 1 ? '男' : '女'}</span>,
99 99
       },
100 100
       {
101 101
         title: '意向项目',
@@ -111,29 +111,29 @@ class ModalTable extends React.Component {
111 111
         title: '状态',
112 112
         // eslint-disable-next-line consistent-return
113 113
         render: (text, records) => {
114
-                                    if (records.status === 1) { return '报备' }
115
-                                    if (records.status === 2) { return '到访' }
116
-                                    if (records.status === 3) { return '认购' }
117
-                                    if (records.status === 4) { return '签约' }
118
-                                    if (records.verifyStatus === 1) { return '待审核' }
119
-                                    if (records.verifyStatus === 2) { return '审核同意' }
120
-                                    if (records.verifyStatus === 3) { return '签约' }
121
-                                  },
114
+          if (records.status === 1) { return '报备' }
115
+          if (records.status === 2) { return '到访' }
116
+          if (records.status === 3) { return '认购' }
117
+          if (records.status === 4) { return '签约' }
118
+          if (records.verifyStatus === 1) { return '待审核' }
119
+          if (records.verifyStatus === 2) { return '审核同意' }
120
+          if (records.verifyStatus === 3) { return '签约' }
121
+        },
122 122
       },
123 123
     ]
124 124
     return (
125 125
       <>
126 126
         <Modal
127
-            title="推荐客户"
128
-            destroyOnClose="true"
129
-            width={900}
130
-            footer={null}
131
-            visible={this.state.visibleData.visible}
132
-            // onOk={() => this.handleOk()}
133
-            onCancel={(e) => this.handleCancel(e)}
134
-          >
135
-            <Table rowKey="independentList" dataSource={this.state.dataSource.records} columns={columns} pagination={{ total: this.state.dataSource.total, onChange: e => this.onChange(e) }} />
136
-          </Modal>
127
+          title="推荐客户"
128
+          destroyOnClose="true"
129
+          width={900}
130
+          footer={null}
131
+          visible={this.state.visibleData.visible}
132
+          // onOk={() => this.handleOk()}
133
+          onCancel={(e) => this.handleCancel(e)}
134
+        >
135
+          <Table rowKey="independentList" dataSource={this.state.dataSource.records} columns={columns} pagination={{ total: this.state.dataSource.total, onChange: e => this.onChange(e) }} />
136
+        </Modal>
137 137
       </>
138 138
     );
139 139
   }
@@ -147,8 +147,8 @@ class InviteTable extends React.Component {
147 147
   constructor(props) {
148 148
     super(props);
149 149
     this.state = {
150
-       dataSource: { records: [] },
151
-       visibleData: { visible: false, customerId: '', realtyConsultant: '' },
150
+      dataSource: { records: [] },
151
+      visibleData: { visible: false, customerId: '', realtyConsultant: '' },
152 152
     }
153 153
   }
154 154
 
@@ -178,7 +178,7 @@ class InviteTable extends React.Component {
178 178
   }
179 179
 
180 180
   getList(params) {
181
-     const { customerId } = this.props.visibleData
181
+    const { customerId } = this.props.visibleData
182 182
     if (customerId === '' || customerId === undefined) {
183 183
       return
184 184
     }
@@ -197,7 +197,7 @@ class InviteTable extends React.Component {
197 197
     })
198 198
   }
199 199
 
200
-   // 分页
200
+  // 分页
201 201
   onChange(pageNum) {
202 202
     this.getList({ pageNumber: pageNum, pageSize: 5 })
203 203
   }
@@ -209,7 +209,7 @@ class InviteTable extends React.Component {
209 209
         dataIndex: 'img',
210 210
         key: 'img',
211 211
         align: 'center',
212
-        render: (text, record) => <img src={record.avatarurl}  width = {50} height = {50}/>,
212
+        render: (text, record) => <img src={record.avatarurl} width={50} height={50} />,
213 213
       },
214 214
       {
215 215
         title: '用户姓名',
@@ -229,22 +229,22 @@ class InviteTable extends React.Component {
229 229
         dataIndex: 'sex',
230 230
         key: 'sex',
231 231
         align: 'center',
232
-        render: (text, list) => <span>{ list.sex === 1 ? '男' : '女' }</span>,
232
+        render: (text, list) => <span>{list.sex === 1 ? '男' : '女'}</span>,
233 233
       },
234 234
     ]
235 235
     return (
236 236
       <>
237 237
         <Modal
238
-            title="推荐客户"
239
-            destroyOnClose="true"
240
-            width={900}
241
-            footer={null}
242
-            visible={this.state.visibleData.visible}
243
-            // onOk={() => this.handleOk()}
244
-            onCancel={(e) => this.handleCancel(e)}
245
-          >
246
-            <Table rowKey="independent" dataSource={this.state.dataSource.records} columns={columns} pagination={{ total: this.state.dataSource.total, onChange: e => this.onChange(e) }} />
247
-          </Modal>
238
+          title="推荐客户"
239
+          destroyOnClose="true"
240
+          width={900}
241
+          footer={null}
242
+          visible={this.state.visibleData.visible}
243
+          // onOk={() => this.handleOk()}
244
+          onCancel={(e) => this.handleCancel(e)}
245
+        >
246
+          <Table rowKey="independent" dataSource={this.state.dataSource.records} columns={columns} pagination={{ total: this.state.dataSource.total, onChange: e => this.onChange(e) }} />
247
+        </Modal>
248 248
       </>
249 249
     );
250 250
   }
@@ -318,7 +318,7 @@ function body(props) {
318 318
   // 分页
319 319
   function onChange(pageNum) {
320 320
     // eslint-disable-next-line react-hooks/rules-of-hooks
321
-      getList({ pageNumber: pageNum, pageSize: 10 })
321
+    getList({ pageNumber: pageNum, pageSize: 10 })
322 322
   }
323 323
 
324 324
   function toAudit(cuurentId) {
@@ -332,11 +332,11 @@ function body(props) {
332 332
 
333 333
   function exportIndependen() {
334 334
     request({ ...apis.customer.customerRecommendAgentsExport, responseType: 'blob' })
335
-    .then(response => {
336
-      download(response)
337
-    }).catch(error => {
335
+      .then(response => {
336
+        download(response)
337
+      }).catch(error => {
338 338
 
339
-    })
339
+      })
340 340
   }
341 341
 
342 342
   function download(data) {
@@ -374,13 +374,13 @@ function body(props) {
374 374
       dataIndex: 'gender',
375 375
       key: 'gender',
376 376
       // eslint-disable-next-line no-nested-ternary
377
-      render: (_, record) => <><span>{ record.gender === '1' ? '男' : record.gender === '2' ? '女' : '未知' }</span></>,
377
+      render: (_, record) => <><span>{record.gender === '1' ? '男' : record.gender === '2' ? '女' : '未知'}</span></>,
378 378
     },
379 379
     {
380 380
       title: '类型',
381 381
       dataIndex: 'personType',
382 382
       key: 'personType',
383
-      render: (_, record) => <><span>{ record.channelName !== null ? '渠道经纪人' : '独立经纪人' }</span></>,
383
+      render: (_, record) => <><span>{record.channelName !== null ? '渠道经纪人' : '独立经纪人'}</span></>,
384 384
     },
385 385
     {
386 386
       title: '所属渠道',
@@ -412,7 +412,7 @@ function body(props) {
412 412
 
413 413
   return (
414 414
     <>
415
-      <Form layout="inline" onSubmit={e => handleSubmit(e, props)}>
415
+      <Form layout="inline" onSubmit={e => handleSubmit(e, props)} style={{ display: 'flex', alignItems: 'center' }}>
416 416
         <Form.Item>
417 417
           {getFieldDecorator('name')(
418 418
             <Input
@@ -429,19 +429,19 @@ function body(props) {
429 429
             />,
430 430
           )}
431 431
         </Form.Item>
432
-        <Form.Item>
433
-            <Button type="primary" htmlType="submit" className={Styles.SubmitButton}>
434
-              搜索
435
-            </Button>
432
+        <Form.Item style={{ position:'absolute',right:'38px' }} >
433
+          <Button type="primary" htmlType="submit" >
434
+            搜索
435
+          </Button>
436 436
         </Form.Item>
437 437
       </Form>
438
-      <Button type="primary" onClick={() => exportIndependen()} className={Styles.SubmitButton} style={{ marginTop: '5px', marginBottom: '5px' }}>
439
-        导出数据
438
+      <Button type="primary" onClick={() => exportIndependen()}  style={{ float: 'right', margin: '20px 0' }}>
439
+        导出
440 440
       </Button>
441 441
       <Table rowKey="independentIndex" dataSource={dataSource.records} columns={columns} pagination={{ total: dataSource.total, onChange }} />
442
-            {/* 调整归属 */}
443
-        <ModalTable visibleData={gVisibleData} />
444
-        <InviteTable visibleData={gInviteData} />
442
+      {/* 调整归属 */}
443
+      <ModalTable visibleData={gVisibleData} />
444
+      <InviteTable visibleData={gInviteData} />
445 445
     </>
446 446
   );
447 447
 }

+ 2
- 2
src/pages/customer/independentList/style.less View File

@@ -1,12 +1,12 @@
1 1
 .SubmitButton {
2 2
   background: rgba(239,39,58,1);
3
-  border-radius: 7px;
3
+  border-radius: 6px;
4 4
   border: 0px;
5 5
 }
6 6
 .SelectFrom {
7 7
   width: 180px;
8 8
   background: #ffffff;
9
-  border-radius: 7px;
9
+  border-radius: 6px;
10 10
   border: 1px solid #dbdbdb;
11 11
 }
12 12
 .addButton {

+ 5
- 5
src/pages/customer/recommendCustomer/index.jsx View File

@@ -171,7 +171,7 @@ function body(props) {
171 171
 
172 172
   return (
173 173
     <>
174
-      <Form layout="inline" onSubmit={e => handleSubmit(e, props)}>
174
+      <Form layout="inline" onSubmit={e => handleSubmit(e, props)} style={{display:'flex'}}>
175 175
         <Form.Item>
176 176
           {getFieldDecorator('name')(
177 177
             <Input
@@ -207,14 +207,14 @@ function body(props) {
207 207
             </Select>,
208 208
           )}
209 209
         </Form.Item>
210
-        <Form.Item>
211
-            <Button type="primary" htmlType="submit" className={Styles.SubmitButton}>
210
+        <Form.Item style={{ position:'absolute',right:'38px' }}>
211
+            <Button type="primary" htmlType="submit" >
212 212
               搜索
213 213
             </Button>
214 214
         </Form.Item>
215 215
       </Form>
216
-      <Button type="primary" onClick={() => exportRecommendCustomer()} className={Styles.SubmitButton} style={{ marginTop: '5px', marginBottom: '5px' }}>
217
-        导出数据
216
+      <Button type="primary" onClick={() => exportRecommendCustomer()} style={{float:'right',margin:'20px 0'}}>
217
+        导出
218 218
       </Button>
219 219
       <Table rowKey="recommendCustomer" dataSource={dataSource.records} columns={columns} pagination={{ total: dataSource.total, onChange }} />
220 220
     </>

+ 4
- 4
src/pages/customer/report/index.jsx View File

@@ -133,7 +133,7 @@ function body(props) {
133 133
 
134 134
   return (
135 135
     <>
136
-      <Form layout="inline" onSubmit={e => handleSubmit(e, props)}>
136
+      <Form layout="inline" onSubmit={e => handleSubmit(e, props)} style={{display:'flex'}}>
137 137
         <Form.Item>
138 138
           {getFieldDecorator('name')(
139 139
             <Input
@@ -173,14 +173,14 @@ function body(props) {
173 173
             <BuildSelect />,
174 174
           )}
175 175
         </Form.Item>
176
-        <Form.Item>
176
+        <Form.Item style={{ position:'absolute',right:'38px' }}>
177 177
             <Button type="primary" htmlType="submit">
178 178
               搜索
179 179
             </Button>
180 180
         </Form.Item>
181 181
       </Form>
182
-      <Button type="primary" onClick={() => exportReport()} className={Styles.SubmitButton} style={{ marginTop: '5px' }}>
183
-        导出数据
182
+      <Button type="primary" onClick={() => exportReport()} style={{ float:'right',margin:'20px 0' }}>
183
+        导出
184 184
       </Button>
185 185
       <Table rowKey="report" style={{marginTop:'40px'}} dataSource={dataSource.records} columns={columns} pagination={{ total: dataSource.total, onChange }} />
186 186
     </>

+ 2
- 3
src/pages/indexEcharts/styles.less View File

@@ -11,7 +11,6 @@
11 11
 .pie {
12 12
   width: 30%;
13 13
   min-width: 370px;
14
-  height: 560px;
15 14
   background: rgba(255, 255, 255, 1);
16 15
   box-shadow: 0px 0px 16px 2px rgba(0, 0, 0, 0.12);
17 16
   border-radius: 12px;
@@ -25,7 +24,7 @@
25 24
   box-shadow: 0px 0px 16px 2px rgba(0, 0, 0, 0.12);
26 25
   border-radius: 12px;
27 26
   margin-bottom: 25px;
28
-  padding: 40px;
27
+  padding: 26px;
29 28
 }
30 29
 
31 30
 .customers {
@@ -34,5 +33,5 @@
34 33
   background: rgba(255, 255, 255, 1);
35 34
   box-shadow: 0px 0px 16px 2px rgba(0, 0, 0, 0.12);
36 35
   border-radius: 12px 12px 0px 0px;
37
-  padding: 40px;
36
+  padding: 26px;
38 37
 }

+ 15
- 10
src/pages/integralMall/exchangeRecords.jsx View File

@@ -155,7 +155,7 @@ function record(props) {
155 155
           </Form.Item>
156 156
           <Form.Item>
157 157
             {getFieldDecorator('personType')(
158
-              <Select style={{ width: '220px' }} placeholder="用户类型">
158
+              <Select style={{ minWidth: '1.1rem' }} placeholder="用户类型">
159 159
                 <Option value="Realty Consultant">置业顾问</Option>
160 160
                 <Option value="Sales Executive">销售主管</Option>
161 161
                 <Option value="estate agent">经纪人</Option>
@@ -164,27 +164,32 @@ function record(props) {
164 164
           </Form.Item>
165 165
           <Form.Item>
166 166
             {getFieldDecorator('status')(
167
-              <Select style={{ width: '220px' }} placeholder="状态">
167
+              <Select style={{ minWidth: '1.1rem' }} placeholder="状态">
168 168
                 <Option value="1">已领取</Option>
169 169
                 <Option value="0">未领取</Option>
170 170
               </Select>,
171 171
             )}
172 172
           </Form.Item>
173
-          <Form.Item>
173
+          
174
+          <Form.Item style={{position:'absolute',right:'38px'}}>
175
+            <Button type="primary" htmlType="submit">
176
+              搜索
177
+            </Button>
178
+          </Form.Item>
179
+        </div>
180
+        <div style={{margin:'10px 0'}}>
181
+        <Form.Item>
182
+          <span style={{marginRight:'10px'}}>兑换时间:</span>
174 183
             {getFieldDecorator('exchangeTime')(
175
-              <RangePicker placeholder={['兑换开始时间','兑换结束时间']}/>
184
+              <RangePicker placeholder={['开始时间','结束时间']}/>
176 185
             )}
177 186
           </Form.Item>
178 187
           <Form.Item>
188
+          <span style={{marginRight:'10px'}}>领取时间:</span>
179 189
             {getFieldDecorator('receiveTime')(
180
-              <RangePicker placeholder={['领取开始时间','领取结束时间']}/>
190
+              <RangePicker placeholder={['开始时间','结束时间']}/>
181 191
             )}
182 192
           </Form.Item>
183
-          <Form.Item>
184
-            <Button type="primary" htmlType="submit" className={styles.searchBtn}>
185
-              搜索
186
-            </Button>
187
-          </Form.Item>
188 193
         </div>
189 194
       </Form>
190 195
       <Table rowKey="exchangeRecords" style={{marginTop:'40px'}} dataSource={data.records} columns={columns} pagination={false} />

+ 1
- 1
src/pages/news/type/NewsType.jsx View File

@@ -129,7 +129,7 @@ function header(props) {
129 129
         </Form.Item>
130 130
       </Form>
131 131
       <AuthButton name="admin.taNewsType.post" noRight={null}>
132
-        <Button type="primary" className={styles.addBtn} onClick={toEditNews()}>新增</Button>
132
+        <Button type="danger" className={styles.addBtn} onClick={toEditNews()}>新增</Button>
133 133
       </AuthButton>
134 134
       <Table rowKey="newsType" dataSource={data.records} columns={columns} pagination={false} />
135 135
       <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>

+ 1
- 1
src/pages/system/housingPolicy.jsx View File

@@ -182,7 +182,7 @@ const handleSubmit = (e, props) => {
182 182
         </Form.Item>
183 183
       </Form>
184 184
       <AuthButton name="admin.taPolicy.post" noRight={null}>
185
-        <Button type="primary" className={styles.addBtn} onClick={toEditPolicy()}>新增</Button>
185
+        <Button type="danger" className={styles.addBtn} onClick={toEditPolicy()}>新增</Button>
186 186
       </AuthButton>
187 187
       <Table rowKey="housingPolicy" dataSource={data.records} columns={columns} pagination={false}/>
188 188
       <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>

+ 5
- 0
src/services/apis.js View File

@@ -263,6 +263,11 @@ export default {
263 263
     },
264 264
   },
265 265
   indexEcharts: {
266
+    list:{
267
+      method:'GET',
268
+      url: `${prefix}/indexStatistical`,
269
+      action: 'userStatistics',
270
+    },
266 271
     userResource: {
267 272
       method: 'GET',
268 273
       url: `${prefix}/selectUserResource`,