浏览代码

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

zhoulisen 5 年前
父节点
当前提交
2fa5f56055

+ 27
- 0
src/pages/statistical/activity/compenents/Content.jsx 查看文件

302
   //重置搜索
302
   //重置搜索
303
   handleReset = e => {
303
   handleReset = e => {
304
     this.props.form.resetFields()
304
     this.props.form.resetFields()
305
+    const defaultDays = 6
306
+    dateType = defaultDays
307
+    console.log(dateType)
308
+    this.setState({
309
+      radioVal: defaultDays,
310
+      formData: {
311
+
312
+        startDate: moment().subtract(6, 'day').toDate(),
313
+        endDate: new Date,
314
+        buildingId: '',
315
+        targetType: '',
316
+        pageNum: '',
317
+        pageSize: '',
318
+        activityName: '',
319
+        sort: null,
320
+        colKey: null
321
+      },
322
+      personData: [],
323
+      dataSoures: [],
324
+      tableData: [],
325
+      barData: {},
326
+      userType: 'all',
327
+      endDate: '',
328
+      startDate: '',
329
+      buildingId: [],
330
+      targetType: []
331
+    },this.getTableList)
305
   }
332
   }
306
 
333
 
307
   exportActivityStats = () => {
334
   exportActivityStats = () => {

+ 6
- 6
src/pages/statistical/consultant/homePagePersons.jsx 查看文件

90
         },
90
         },
91
         {
91
         {
92
             title: '性别',
92
             title: '性别',
93
-            dataIndex: 'sex',
94
-            key: 'sex',
93
+            dataIndex: 'gender',
94
+            key: 'gender',
95
             align: 'center',
95
             align: 'center',
96
-            render: (_, record) => <span>{record.sex === 1 ? '男' : record.sex === 2 ? '女' : '未知'}</span>,
96
+            render: (_, record) => <span>{record.gender == 1 ? '男' : record.gender == 2 ? '女' : '未知'}</span>,
97
         },
97
         },
98
         {
98
         {
99
             title: '访问次数',
99
             title: '访问次数',
128
                 <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={changePageNum} current={data.current} />
128
                 <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={changePageNum} current={data.current} />
129
             </div>
129
             </div>
130
             <Prompt message={location =>
130
             <Prompt message={location =>
131
-        location.pathname.startsWith("/statistical/consultant")
132
-          ? true
133
-          : localStorage.removeItem("consultantPageParams")} />
131
+                location.pathname.startsWith("/statistical/consultant")
132
+                    ? true
133
+                    : localStorage.removeItem("consultantPageParams")} />
134
         </>
134
         </>
135
     )
135
     )
136
 }
136
 }

+ 3
- 3
src/pages/statistical/consultant/table.jsx 查看文件

106
         },
106
         },
107
         {
107
         {
108
             title: '性别',
108
             title: '性别',
109
-            dataIndex: 'sex',
110
-            key: 'sex',
109
+            dataIndex: 'gender',
110
+            key: 'gender',
111
             align: 'center',
111
             align: 'center',
112
-            render: (_, record) => <span>{record.sex === 1 ? '男' : record.sex === 2 ? '女' : '未知'}</span>,
112
+            render: (_, record) => <span>{record.gender == 1 ? '男' : record.gender == 2 ? '女' : '未知'}</span>,
113
         },
113
         },
114
     ]
114
     ]
115
 
115
 

+ 3
- 3
src/pages/statistical/consultant/visitNum.jsx 查看文件

136
         },
136
         },
137
         {
137
         {
138
             title: '性别',
138
             title: '性别',
139
-            dataIndex: 'sex',
140
-            key: 'sex',
139
+            dataIndex: 'gender',
140
+            key: 'gender',
141
             align: 'center',
141
             align: 'center',
142
-            render: (_, record) => <span>{record.sex === 1 ? '男' : record.sex === 2 ? '女' : '未知'}</span>,
142
+            render: (_, record) => <span>{record.gender == 1 ? '男' : record.gender == 2 ? '女' : '未知'}</span>,
143
         },
143
         },
144
         {
144
         {
145
             title: '访问时间',
145
             title: '访问时间',

+ 3
- 3
src/pages/statistical/consultant/visitPersons.jsx 查看文件

82
         },
82
         },
83
         {
83
         {
84
             title: '性别',
84
             title: '性别',
85
-            dataIndex: 'sex',
86
-            key: 'sex',
85
+            dataIndex: 'gender',
86
+            key: 'gender',
87
             align: 'center',
87
             align: 'center',
88
-            render: (_, record) => <span>{record.sex === 1 ? '男' : record.sex === 2 ? '女' : '未知'}</span>,
88
+            render: (_, record) => <span>{record.gender == 1 ? '男' : record.gender == 2 ? '女' : '未知'}</span>,
89
         },
89
         },
90
         {
90
         {
91
             title: '访问次数',
91
             title: '访问次数',