Browse Source

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

zhoulisen 5 years ago
parent
commit
046d849614

+ 13
- 3
src/pages/statistical/activity/sharePersonNum.jsx View File

@@ -24,6 +24,8 @@ let staticStartDate = ''
24 24
 let staticEndDate = ''
25 25
 let queryDate = ''
26 26
 let activityName = ''
27
+let activityId = ''
28
+let activityType = ''
27 29
 
28 30
 const toShareNum = rowData => () => {
29 31
   if(rowData) {
@@ -34,7 +36,9 @@ const toShareNum = rowData => () => {
34 36
       personId: rowData.personId,
35 37
       startDate: staticStartDate,
36 38
       endDate: staticEndDate,
37
-      activityName: activityName
39
+      activityName: activityName,
40
+      activityId: activityId,
41
+      activityType: activityType
38 42
     },
39 43
   });
40 44
     return
@@ -50,7 +54,9 @@ const toVisitPersonNum = rowData => () => {
50 54
       personId: rowData.personId,
51 55
       startDate: staticStartDate,
52 56
       endDate: staticEndDate,
53
-      activityName: activityName
57
+      activityName: activityName,
58
+      activityId: activityId,
59
+      activityType: activityType
54 60
     },
55 61
   });
56 62
     return
@@ -66,7 +72,9 @@ const toVisitNum = rowData => () => {
66 72
       personId: rowData.personId,
67 73
       startDate: staticStartDate,
68 74
       endDate: staticEndDate,
69
-      activityName: activityName
75
+      activityName: activityName,
76
+      activityId: activityId,
77
+      activityType: activityType
70 78
     },
71 79
   });
72 80
     return
@@ -133,6 +141,8 @@ class SharePersonNum extends React.Component {
133 141
     activityName = props.location.query.activityName
134 142
     staticStartDate = props.location.query.startDate;
135 143
     staticEndDate = props.location.query.endDate;
144
+    activityId = props.location.query.activityId;
145
+    activityType = props.location.query.activityType;
136 146
     
137 147
     if (props.location.query.queryDate){
138 148
       startDate = moment(props.location.query.queryDate).hours(0).minutes(0).seconds(0).milliseconds(0).toDate();

+ 31
- 31
src/pages/statistical/building/component/StatsChart.jsx View File

@@ -13,50 +13,50 @@ class StatsChart extends React.Component {
13 13
   }
14 14
 
15 15
   render() {
16
-    const { data = {}} = this.props
16
+    const { data = {} } = this.props
17 17
     const options = {
18 18
       title: {
19 19
         text: this.props.title,
20 20
         subtext: this.props.subtext,
21
-    },
22
-    xAxis: {
21
+      },
22
+      xAxis: {
23 23
         type: 'category',
24
-        axisLabel: {rotate: 45},
24
+        axisLabel: { rotate: 45 },
25 25
         data: data.buildingNameList || []
26
-    },
27
-    grid: {
28
-      bottom:'30%'
29
-    },  
30
-    tooltip: {},
31
-    yAxis: {
26
+      },
27
+      grid: {
28
+        bottom: '30%'
29
+      },
30
+      tooltip: {},
31
+      yAxis: {
32 32
         type: 'value'
33
-    },
34
-    series: {
35
-      type: 'bar',
36
-      name: this.props.title,
37
-      barWidth: 50,
38
-      data: data.numList || [],
39
-      itemStyle: {
40
-        normal: {
41
-          barBorderRadius: [50, 50, 0, 0],
42
-          color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
43
-            offset: 0,
44
-            color: '#FD8A95'
45
-          }, {
46
-            offset: 1,
47
-            color: '#F13043'
48
-          }]),
49
-          shadowColor: 'rgba(0, 0, 0, 0.4)',
33
+      },
34
+      series: {
35
+        type: 'bar',
36
+        name: this.props.title,
37
+        barWidth: 50,
38
+        data: data.numList || [],
39
+        itemStyle: {
40
+          normal: {
41
+            barBorderRadius: [50, 50, 0, 0],
42
+            color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
43
+              offset: 0,
44
+              color: '#FD8A95'
45
+            }, {
46
+              offset: 1,
47
+              color: '#F13043'
48
+            }]),
49
+            shadowColor: 'rgba(0, 0, 0, 0.4)',
50 50
 
51
+          }
51 52
         }
52 53
       }
53 54
     }
54
-}
55 55
 
56 56
     return (
57
-    <>
58
-      <EChart options={options} style={{ width: '100%', height: '400px', }} />
59
-    </>
57
+      <>
58
+        <EChart options={options} style={{ width: '100%', height: '400px', padding: '0.09rem 0 0 0.09rem', boxShadow: '0px 0px 16px 2px rgba(0, 0, 0, 0.12)', marginBottom: '0.16rem', borderRadius: '12px' }} />
59
+      </>
60 60
     )
61 61
   }
62 62
 }

+ 27
- 11
src/pages/statistical/building/detail.jsx View File

@@ -109,6 +109,12 @@ class buildingDetailStats extends React.Component {
109 109
       })
110 110
   }
111 111
 
112
+   //重置搜索
113
+  handleReset = () => {
114
+    daterange = []
115
+    this.props.form.resetFields();
116
+  }
117
+
112 118
   render() {
113 119
     const columns = [
114 120
         {
@@ -142,26 +148,35 @@ class buildingDetailStats extends React.Component {
142 148
         },
143 149
       ];
144 150
 
151
+    const { getFieldDecorator } = this.props.form;
145 152
     return (
146 153
     <div>
154
+      <Form layout="inline">
147 155
       <Radio.Group buttonStyle="solid" defaultValue="a">
148 156
           <Radio.Button value="c" onClick={() => this.getDataOf(0)}>今日</Radio.Button>
149 157
           <Radio.Button value="a" onClick={() => this.getDataOf(7)}>最近7天</Radio.Button>
150 158
           <Radio.Button value="b" onClick={() => this.getDataOf(30)}>最近1月</Radio.Button>
151 159
         </Radio.Group>
152
-        <RangePicker
153
-          style={{ paddingLeft: '30px' }}
154
-          ranges={{
155
-            Today: [moment(), moment()],
156
-            'This Month': [moment().startOf('month'), moment().endOf('month')],
157
-          }}
158
-          onChange={(_dates, dateStrings) => this.onChangetime(_dates, dateStrings)}
159
-        />
160
+        <Form.Item>
161
+        {getFieldDecorator('time', {
162
+            initialValue: [],
163
+            rules: [{ required: true, message: '请上传封面图1' }],
164
+        })(
165
+          <RangePicker
166
+            style={{ paddingLeft: '30px' }}
167
+            ranges={{
168
+              Today: [moment(), moment()],
169
+              'This Month': [moment().startOf('month'), moment().endOf('month')],
170
+            }}
171
+            onChange={(_dates, dateStrings) => this.onChangetime(_dates, dateStrings)}
172
+          />
173
+        )}
174
+        </Form.Item>
160 175
         <Button type="primary" htmlType="submit" style={{ marginLeft: '30px' }} onClick={() => this.datalist()}>
161 176
           查询
162 177
         </Button>
163
-        <Button type="danger" onClick={() => router.go(-1)} style={{ marginBottom: '18px', marginLeft: '30px' }}>重置</Button>
164
-
178
+        <Button type="danger" onClick={this.handleReset} style={{ marginBottom: '18px', marginLeft: '30px' }}>重置</Button>
179
+        </Form>
165 180
         <StatsChartLine title={this.state.buildingName} data={this.state.barData} />
166 181
         <Row>
167 182
             <Col span={22}>
@@ -179,5 +194,6 @@ class buildingDetailStats extends React.Component {
179 194
     )
180 195
   }
181 196
 }
197
+const WrappedHeader = Form.create({ name: 'record' })(buildingDetailStats);
182 198
 
183
-export default buildingDetailStats
199
+export default WrappedHeader

+ 114
- 95
src/pages/statistical/building/index.jsx View File

@@ -32,24 +32,24 @@ class buildingStats extends React.Component {
32 32
   }
33 33
 
34 34
   componentDidMount() {
35
-    this.getBarData(moment().subtract(7, 'day').toDate(),new Date())
36
-    this.getTableData(moment().subtract(7, 'day').toDate(),new Date(),this.state.buildingId)
37
-    this.setState({...this.state, endDate: new Date(), startDate: moment().subtract(7, 'day').toDate() })
38
-    
35
+    this.getBarData(moment().subtract(7, 'day').toDate(), new Date())
36
+    this.getTableData(moment().subtract(7, 'day').toDate(), new Date(), this.state.buildingId)
37
+    this.setState({ ...this.state, endDate: new Date(), startDate: moment().subtract(7, 'day').toDate() })
38
+
39 39
   }
40 40
 
41 41
   // 获取图表数据
42 42
   getBarData = (startDate, endDate) => {
43 43
     request({ ...apis.stats.barList, params: { startDate, endDate } }).then((data) => {
44
-        this.setState({...this.state, barData: data})
45
-      })
44
+      this.setState({ ...this.state, barData: data })
45
+    })
46 46
   }
47 47
 
48 48
   //获取表格数据
49
-  getTableData = (startDate, endDate, buildingId,pageNum,pageSize,sortField,sortOrder) => {
50
-    request({ ...apis.stats.tableList, params: { startDate, endDate, buildingId,pageNum,pageSize,sortField,sortOrder } }).then((data) => {
51
-        this.setState({...this.state, tableData: data.records, total: data.total})
52
-      })
49
+  getTableData = (startDate, endDate, buildingId, pageNum, pageSize, sortField, sortOrder) => {
50
+    request({ ...apis.stats.tableList, params: { startDate, endDate, buildingId, pageNum, pageSize, sortField, sortOrder } }).then((data) => {
51
+      this.setState({ ...this.state, tableData: data.records, total: data.total })
52
+    })
53 53
   }
54 54
 
55 55
   formatDate = (start, end) => {
@@ -66,33 +66,33 @@ class buildingStats extends React.Component {
66 66
 
67 67
   //切换三个标签页
68 68
   getDataOf = (days) => {
69
-    this.getBarData(moment().subtract(days, 'day').toDate(),new Date())
70
-    this.getTableData(moment().subtract(days, 'day').toDate(),new Date(),this.state.buildingId)
69
+    this.getBarData(moment().subtract(days, 'day').toDate(), new Date())
70
+    this.getTableData(moment().subtract(days, 'day').toDate(), new Date(), this.state.buildingId)
71 71
     this.setState({ ...this.state, endDate: new Date(), startDate: moment().subtract(days, 'day').toDate() })
72 72
   }
73 73
 
74 74
   //点击查询
75 75
   datalist = () => {
76
-    this.getBarData(daterange[0] === undefined ? moment().subtract(7, 'day').toDate() : daterange[0],daterange[1] === undefined ? new Date() : daterange[1])
77
-    this.getTableData(daterange[0] === undefined ? moment().subtract(7, 'day').toDate() : daterange[0],daterange[1] === undefined ? new Date() : daterange[1],this.state.buildingId)
78
-    this.setState({ 
76
+    this.getBarData(daterange[0] === undefined ? moment().subtract(7, 'day').toDate() : daterange[0], daterange[1] === undefined ? new Date() : daterange[1])
77
+    this.getTableData(daterange[0] === undefined ? moment().subtract(7, 'day').toDate() : daterange[0], daterange[1] === undefined ? new Date() : daterange[1], this.state.buildingId)
78
+    this.setState({
79 79
       ...this.state,
80 80
       endDate: daterange[1] === undefined ? new Date() : daterange[1],
81 81
       startDate: daterange[0] === undefined ? moment().subtract(7, 'day').toDate() : daterange[0],
82 82
     })
83
-    
83
+
84 84
   }
85
-  
85
+
86 86
   //切换楼盘信息
87 87
   handleBuildingChange = (e) => {
88
-    this.getTableData(this.state.startDate,this.state.endDate,e)
89
-    this.setState({...this.state, buildingId: e})
88
+    this.getTableData(this.state.startDate, this.state.endDate, e)
89
+    this.setState({ ...this.state, buildingId: e })
90 90
   }
91 91
 
92 92
   //排序
93 93
   handleTableChange = (pagination, filters, sorter) => {
94 94
     console.log(pagination, filters, sorter)
95
-    this.getTableData(this.state.startDate,this.state.endDate,this.state.buildingId,pagination.current,10,sorter.columnKey,sorter.order)
95
+    this.getTableData(this.state.startDate, this.state.endDate, this.state.buildingId, pagination.current, 10, sorter.columnKey, sorter.order)
96 96
   };
97 97
 
98 98
   //导出
@@ -125,104 +125,123 @@ class buildingStats extends React.Component {
125 125
     });
126 126
   }
127 127
 
128
+  //重置搜索
129
+  handleReset = () => {
130
+    daterange = []
131
+    this.props.form.resetFields();
132
+  }
133
+
128 134
   render() {
129 135
     const columns = [
130
-        {
131
-          title: '项目名称',
132
-          dataIndex: 'buildingName',
133
-          key: 'buildingName',
134
-        },
135
-        {
136
-          title: '新增客户',
137
-          dataIndex: 'khNum',
138
-          key: 'kh_num',
139
-          sorter: true,
140
-        },
141
-        {
142
-          title: '公客',
143
-          dataIndex: 'gkNum',
144
-          key: 'gk_num',
145
-          sorter: true,
146
-        },
147
-        {
148
-          title: '私客',
149
-          dataIndex: 'skNum',
150
-          key: 'sk_num',
151
-          sorter: true,
152
-        },
153
-        {
154
-            title: '访问人数',
155
-            dataIndex: 'uvNum',
156
-            key: 'uv_num',
157
-            sorter: true,
158
-        },
159
-        {
160
-            title: '访问次数',
161
-            dataIndex: 'pvNum',
162
-            key: 'pv_num',
163
-            sorter: true,
164
-        },
165
-        {
166
-            title: '详情',
167
-            render: (_, record) => (
168
-                    <Button type="link" style={{ color: 'red' }} onClick={() => this.toDetailPage(record)}>查看详情</Button>
169
-                ),
170
-        },
171
-      ];
136
+      {
137
+        title: '项目名称',
138
+        dataIndex: 'buildingName',
139
+        key: 'buildingName',
140
+      },
141
+      {
142
+        title: '新增客户',
143
+        dataIndex: 'khNum',
144
+        key: 'kh_num',
145
+        sorter: true,
146
+      },
147
+      {
148
+        title: '公客',
149
+        dataIndex: 'gkNum',
150
+        key: 'gk_num',
151
+        sorter: true,
152
+      },
153
+      {
154
+        title: '私客',
155
+        dataIndex: 'skNum',
156
+        key: 'sk_num',
157
+        sorter: true,
158
+      },
159
+      {
160
+        title: '访问人数',
161
+        dataIndex: 'uvNum',
162
+        key: 'uv_num',
163
+        sorter: true,
164
+      },
165
+      {
166
+        title: '访问次数',
167
+        dataIndex: 'pvNum',
168
+        key: 'pv_num',
169
+        sorter: true,
170
+      },
171
+      {
172
+        title: '详情',
173
+        render: (_, record) => (
174
+          <Button type="link" style={{ color: 'red' }} onClick={() => this.toDetailPage(record)}>查看详情</Button>
175
+        ),
176
+      },
177
+    ];
172 178
 
179
+    const { getFieldDecorator } = this.props.form;
173 180
     return (
181
+
174 182
     <div>
183
+      <Form layout="inline">
175 184
       <Radio.Group buttonStyle="solid" defaultValue="a">
176 185
           <Radio.Button value="c" onClick={() => this.getDataOf(0)}>今日</Radio.Button>
177 186
           <Radio.Button value="a" onClick={() => this.getDataOf(7)}>最近7天</Radio.Button>
178 187
           <Radio.Button value="b" onClick={() => this.getDataOf(30)}>最近1月</Radio.Button>
179 188
         </Radio.Group>
180
-        <RangePicker
181
-          style={{ paddingLeft: '30px' }}
182
-          ranges={{
183
-            Today: [moment(), moment()],
184
-            'This Month': [moment().startOf('month'), moment().endOf('month')],
185
-          }}
186
-          onChange={(_dates, dateStrings) => this.onChangetime(_dates, dateStrings)}
187
-        />
189
+        <Form.Item>
190
+        {getFieldDecorator('time', {
191
+            initialValue: [],
192
+            rules: [{ required: true, message: '请上传封面图1' }],
193
+        })(
194
+          <RangePicker
195
+              style={{ paddingLeft: '30px' }}
196
+              ranges={{
197
+                Today: [moment(), moment()],
198
+                'This Month': [moment().startOf('month'), moment().endOf('month')],
199
+              }}
200
+              onChange={(_dates, dateStrings) => this.onChangetime(_dates, dateStrings)}
201
+            />
202
+        )}
203
+        </Form.Item>
188 204
         <Button type="primary" htmlType="submit" style={{ marginLeft: '30px' }} onClick={() => this.datalist()}>
189 205
           查询
190 206
         </Button>
191
-        <Button type="danger" onClick={() => router.go(-1)} style={{ marginBottom: '18px', marginLeft: '30px' }}>重置</Button>
192
-
207
+        <Button type="danger" onClick={this.handleReset} style={{ marginBottom: '18px', marginLeft: '30px' }}>重置</Button>
208
+        </Form>
209
+        <div style={{fontSize:'0.09rem',color:'#999',marginBottom:'0.16rem'}}>最多显示6个项目,其他项目请在下方详细数据中搜索</div>
193 210
         <Row>
194
-            <Col span={12}>
195
-                <StatsChart title="项目公客排行" data={this.state.barData.gkBarMap} />
196
-            </Col>
197
-            <Col span={12}>
198
-                <StatsChart title="项目私客排行" data={this.state.barData.skBarMap} />
199
-            </Col>
211
+          <Col span={12} style={{paddingRight:'0.08rem'}}>
212
+            <StatsChart title="项目公客排行" data={this.state.barData.gkBarMap} />
213
+          </Col>
214
+          <Col span={12}style={{paddingLeft:'0.08rem'}}>
215
+            <StatsChart title="项目私客排行" data={this.state.barData.skBarMap} />
216
+          </Col>
200 217
         </Row>
201 218
         <Row>
202
-            <Col span={12}>
203
-                <StatsChart title="项目访问人数排行" subtext="项目详情访问情况" data={this.state.barData.wgBarMap} />
204
-            </Col>
205
-            <Col span={12}>
206
-                <StatsChart title="项目访问次数排行" subtext="项目详情访问情况,与上方时间筛选无关" data={this.state.barData.fwBarMap} />
207
-            </Col>
219
+          <Col span={12} style={{paddingRight:'0.08rem'}}>
220
+            <StatsChart title="项目访问人数排行" subtext="项目详情访问情况" data={this.state.barData.wgBarMap} />
221
+          </Col>
222
+          <Col span={12} style={{paddingLeft:'0.08rem'}}>
223
+            <StatsChart title="项目访问次数排行" subtext="项目详情访问情况,与上方时间筛选无关" data={this.state.barData.fwBarMap} />
224
+          </Col>
208 225
         </Row>
209 226
         <Row>
210
-            <Col span={22}>
211
-              <span style={{marginRight: '10px'}} >详细数据</span>
212
-              <BuildSelect slot='action' onChange={(e => this.handleBuildingChange(e))} value={this.state.buildingId}></BuildSelect>
213
-            </Col>
214
-            <Col span={2}>
227
+          <Col span={22}>
228
+            <span style={{ marginRight: '10px' }} >详细数据</span>
229
+            <BuildSelect slot='action' onChange={(e => this.handleBuildingChange(e))} value={this.state.buildingId}></BuildSelect>
230
+          </Col>
231
+          <Col span={2}>
215 232
             <AuthButton name="admin.statistical.building.export" noRight={null}>
216 233
               <Button type="primary" onClick={this.exportBuildingStats}>导出</Button>
217 234
             </AuthButton>
218
-            </Col>
235
+          </Col>
219 236
         </Row>
220
-        
221
-        
222
-        <Table style={{marginTop:'20px'}} dataSource={this.state.tableData} columns={columns} pagination={{ total: this.state.total}} onChange={this.handleTableChange} scroll={{ y: 500 }}></Table>
223
-    </div>
237
+
238
+
239
+        <Table style={{ marginTop: '20px' }} dataSource={this.state.tableData} columns={columns} pagination={{ total: this.state.total }} onChange={this.handleTableChange} scroll={{ y: 500 }}></Table>
240
+      </div>
224 241
     )
225 242
   }
226 243
 }
227 244
 
228
-export default buildingStats
245
+const WrappedHeader = Form.create({ name: 'record' })(buildingStats);
246
+
247
+export default WrappedHeader

+ 3
- 3
src/pages/statistical/consultant/index.jsx View File

@@ -1,5 +1,5 @@
1 1
 import React, { useState, useEffect } from 'react';
2
-import { Form, Button, DatePicker, Modal, Table, Pagination, Radio, Typography } from 'antd';
2
+import { Form, Button, DatePicker, Modal, Table, Pagination, Radio, Icon, Typography } from 'antd';
3 3
 import router from 'umi/router';
4 4
 import moment from 'moment';
5 5
 import BuildSelect from '../../../components/SelectButton/BuildSelect'
@@ -385,7 +385,7 @@ function record(props) {
385 385
     return (
386 386
 
387 387
         <>
388
-            <p style={{ fontSize: '0.09rem', color: '#999' }} onClick={() => setVisible(true)}>指标说明</p>
388
+            <Icon type="question-circle" theme="filled" style={{ fontSize: '25px', color: '#F00',marginBottom:'10px' }} onClick={() => setVisible(true)} />
389 389
             <Modal
390 390
                 title="指标说明(数据会存在一定时间延迟)"
391 391
                 centered
@@ -398,7 +398,7 @@ function record(props) {
398 398
                 <p style={{ fontSize: '0.106rem', color: '#333', marginBottom: '8px' }}>主页访问次数:</p>
399 399
                 <p style={{ fontSize: '0.106rem', color: '#999', marginBottom: '8px' }}>访问置业顾问名片的用户数</p>
400 400
                 <p style={{ fontSize: '0.106rem', color: '#333', marginBottom: '8px' }}>客户总计:</p>
401
-                <p style={{ fontSize: '0.106rem', color: '#999', marginBottom: '8px' }}>当前置业顾问的所有客户数(与列表时间筛选无关)</p>
401
+                <p style={{ fontSize: '0.106rem', color: '#999', marginBottom: '8px' }}>当前置业顾问的所有客户数(与列表时间筛选无关;重复客户不记录在内,因此与下方列表置业顾问客户数总和有出入)</p>
402 402
                 <p style={{ fontSize: '0.106rem', color: '#333', marginBottom: '8px' }}>新增客户:</p>
403 403
                 <p style={{ fontSize: '0.106rem', color: '#999', marginBottom: '8px' }}>当前时间段内置业顾问新增的客户数</p>
404 404
                 <p style={{ fontSize: '0.106rem', color: '#333', marginBottom: '8px' }}>分享次数:</p>

+ 8
- 3
src/pages/statistical/consultant/sharetable.jsx View File

@@ -27,7 +27,7 @@ const typeList = [
27 27
         value: 'live'
28 28
     },
29 29
     {
30
-        label: '房源列表',
30
+        label: '在线选房',
31 31
         value: 'house'
32 32
     },
33 33
     {
@@ -42,6 +42,10 @@ const typeList = [
42 42
         label: '首页',
43 43
         value: 'main'
44 44
     },
45
+    {
46
+        label: '个人主页',
47
+        value: 'card_share'
48
+    },
45 49
 ]
46 50
 const showTypeList = [
47 51
     {
@@ -53,11 +57,11 @@ const showTypeList = [
53 57
         value: 'liveApp',
54 58
     },
55 59
     {
56
-        label: '房源列表',
60
+        label: '在线选房',
57 61
         value: 'housePost',
58 62
     },
59 63
     {
60
-        label: '房源列表',
64
+        label: '在线选房',
61 65
         value: 'houseApp',
62 66
     },
63 67
 ]
@@ -95,6 +99,7 @@ function record(props) {
95 99
     //重置搜索
96 100
     function handleReset() {
97 101
         props.form.resetFields();
102
+        getList(formData);
98 103
     }
99 104
 
100 105
     // 提交事件

+ 9
- 4
src/pages/statistical/consultant/visitNum.jsx View File

@@ -27,7 +27,7 @@ const typeList = [
27 27
         value: 'live_share'
28 28
     },
29 29
     {
30
-        label: '房源列表',
30
+        label: '在线选房',
31 31
         value: 'house_share'
32 32
     },
33 33
     {
@@ -42,6 +42,10 @@ const typeList = [
42 42
         label: '首页',
43 43
         value: 'share'
44 44
     },
45
+    {
46
+        label: '个人主页',
47
+        value: 'card_share'
48
+    },
45 49
 ]
46 50
 
47 51
 
@@ -79,6 +83,7 @@ function record(props) {
79 83
     //重置搜索
80 84
     function handleReset() {
81 85
         props.form.resetFields();
86
+        getList(formData);
82 87
     }
83 88
 
84 89
     // 提交事件
@@ -137,10 +142,10 @@ function record(props) {
137 142
         },
138 143
         {
139 144
             title: '访问时间',
140
-            dataIndex: 'createDate',
141
-            key: 'createDate',
145
+            dataIndex: 'visitTime',
146
+            key: 'visitTime',
142 147
             align: 'center',
143
-            render: (_, record) => <><span>{record.createDate && moment(record.createDate).format('YYYY-MM-DD HH:mm:ss')}</span></>,
148
+            render: (_, record) => <><span>{record.visitTime && moment(record.visitTime).format('YYYY-MM-DD HH:mm:ss')}</span></>,
144 149
         },
145 150
 
146 151
     ];