瀏覽代碼

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

魏超 5 年之前
父節點
當前提交
9df7206a3b

+ 8
- 8
src/pages/statistical/building/detail.jsx 查看文件

33
   }
33
   }
34
 
34
 
35
   componentDidMount() {
35
   componentDidMount() {
36
-    this.getTimeBarDate(moment().subtract(7, 'day').toDate(),new Date())
37
-    this.getTimeTableData(moment().subtract(7, 'day').toDate(),new Date())
36
+    this.getTimeBarDate(moment().subtract(6, 'day').toDate(),new Date())
37
+    this.getTimeTableData(moment().subtract(6, 'day').toDate(),new Date())
38
     this.setState({...this.state, endDate: new Date(), startDate: moment().subtract(7, 'day').toDate() })
38
     this.setState({...this.state, endDate: new Date(), startDate: moment().subtract(7, 'day').toDate() })
39
     
39
     
40
   }
40
   }
74
 
74
 
75
   //点击查询
75
   //点击查询
76
   datalist = () => {
76
   datalist = () => {
77
-    this.getTimeBarDate(daterange[0] === undefined ? moment().subtract(7, 'day').toDate() : daterange[0],daterange[1] === undefined ? new Date() : daterange[1])
78
-    this.getTimeTableData(daterange[0] === undefined ? moment().subtract(7, 'day').toDate() : daterange[0],daterange[1] === undefined ? new Date() : daterange[1])
77
+    this.getTimeBarDate(daterange[0] === undefined ? moment().subtract(6, 'day').toDate() : daterange[0],daterange[1] === undefined ? new Date() : daterange[1])
78
+    this.getTimeTableData(daterange[0] === undefined ? moment().subtract(6, 'day').toDate() : daterange[0],daterange[1] === undefined ? new Date() : daterange[1])
79
     this.setState({ 
79
     this.setState({ 
80
       ...this.state,
80
       ...this.state,
81
       endDate: daterange[1] === undefined ? new Date() : daterange[1],
81
       endDate: daterange[1] === undefined ? new Date() : daterange[1],
82
-      startDate: daterange[0] === undefined ? moment().subtract(7, 'day').toDate() : daterange[0],
82
+      startDate: daterange[0] === undefined ? moment().subtract(6, 'day').toDate() : daterange[0],
83
     })
83
     })
84
     
84
     
85
   }
85
   }
154
       <Form layout="inline">
154
       <Form layout="inline">
155
       <Radio.Group buttonStyle="solid" defaultValue="a">
155
       <Radio.Group buttonStyle="solid" defaultValue="a">
156
           <Radio.Button value="c" onClick={() => this.getDataOf(0)}>今日</Radio.Button>
156
           <Radio.Button value="c" onClick={() => this.getDataOf(0)}>今日</Radio.Button>
157
-          <Radio.Button value="a" onClick={() => this.getDataOf(7)}>最近7天</Radio.Button>
157
+          <Radio.Button value="a" onClick={() => this.getDataOf(6)}>最近7天</Radio.Button>
158
           <Radio.Button value="b" onClick={() => this.getDataOf(30)}>最近1月</Radio.Button>
158
           <Radio.Button value="b" onClick={() => this.getDataOf(30)}>最近1月</Radio.Button>
159
         </Radio.Group>
159
         </Radio.Group>
160
         <Form.Item>
160
         <Form.Item>
173
         )}
173
         )}
174
         </Form.Item>
174
         </Form.Item>
175
         <Button type="primary" htmlType="submit" style={{ marginLeft: '30px' }} onClick={() => this.datalist()}>
175
         <Button type="primary" htmlType="submit" style={{ marginLeft: '30px' }} onClick={() => this.datalist()}>
176
-          查询
176
+          搜索
177
         </Button>
177
         </Button>
178
-        <Button type="danger" onClick={this.handleReset} style={{ marginBottom: '18px', marginLeft: '30px' }}>重置</Button>
178
+        <Button onClick={this.handleReset} style={{ marginBottom: '18px', marginLeft: '30px' }}>重置</Button>
179
         </Form>
179
         </Form>
180
         <StatsChartLine title={this.state.buildingName} data={this.state.barData} />
180
         <StatsChartLine title={this.state.buildingName} data={this.state.barData} />
181
         <Row>
181
         <Row>

+ 8
- 8
src/pages/statistical/building/index.jsx 查看文件

32
   }
32
   }
33
 
33
 
34
   componentDidMount() {
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)
35
+    this.getBarData(moment().subtract(6, 'day').toDate(), new Date())
36
+    this.getTableData(moment().subtract(6, 'day').toDate(), new Date(), this.state.buildingId)
37
     this.setState({ ...this.state, endDate: new Date(), startDate: moment().subtract(7, 'day').toDate() })
37
     this.setState({ ...this.state, endDate: new Date(), startDate: moment().subtract(7, 'day').toDate() })
38
 
38
 
39
   }
39
   }
73
 
73
 
74
   //点击查询
74
   //点击查询
75
   datalist = () => {
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)
76
+    this.getBarData(daterange[0] === undefined ? moment().subtract(6, 'day').toDate() : daterange[0], daterange[1] === undefined ? new Date() : daterange[1])
77
+    this.getTableData(daterange[0] === undefined ? moment().subtract(6, 'day').toDate() : daterange[0], daterange[1] === undefined ? new Date() : daterange[1], this.state.buildingId)
78
     this.setState({
78
     this.setState({
79
       ...this.state,
79
       ...this.state,
80
       endDate: daterange[1] === undefined ? new Date() : daterange[1],
80
       endDate: daterange[1] === undefined ? new Date() : daterange[1],
81
-      startDate: daterange[0] === undefined ? moment().subtract(7, 'day').toDate() : daterange[0],
81
+      startDate: daterange[0] === undefined ? moment().subtract(6, 'day').toDate() : daterange[0],
82
     })
82
     })
83
 
83
 
84
   }
84
   }
183
       <Form layout="inline">
183
       <Form layout="inline">
184
       <Radio.Group buttonStyle="solid" defaultValue="a">
184
       <Radio.Group buttonStyle="solid" defaultValue="a">
185
           <Radio.Button value="c" onClick={() => this.getDataOf(0)}>今日</Radio.Button>
185
           <Radio.Button value="c" onClick={() => this.getDataOf(0)}>今日</Radio.Button>
186
-          <Radio.Button value="a" onClick={() => this.getDataOf(7)}>最近7天</Radio.Button>
186
+          <Radio.Button value="a" onClick={() => this.getDataOf(6)}>最近7天</Radio.Button>
187
           <Radio.Button value="b" onClick={() => this.getDataOf(30)}>最近1月</Radio.Button>
187
           <Radio.Button value="b" onClick={() => this.getDataOf(30)}>最近1月</Radio.Button>
188
         </Radio.Group>
188
         </Radio.Group>
189
         <Form.Item>
189
         <Form.Item>
202
         )}
202
         )}
203
         </Form.Item>
203
         </Form.Item>
204
         <Button type="primary" htmlType="submit" style={{ marginLeft: '30px' }} onClick={() => this.datalist()}>
204
         <Button type="primary" htmlType="submit" style={{ marginLeft: '30px' }} onClick={() => this.datalist()}>
205
-          查询
205
+          搜索
206
         </Button>
206
         </Button>
207
-        <Button type="danger" onClick={this.handleReset} style={{ marginBottom: '18px', marginLeft: '30px' }}>重置</Button>
207
+        <Button onClick={this.handleReset} style={{ marginBottom: '18px', marginLeft: '30px' }}>重置</Button>
208
         </Form>
208
         </Form>
209
         <div style={{fontSize:'0.09rem',color:'#999',marginBottom:'0.16rem'}}>最多显示6个项目,其他项目请在下方详细数据中搜索</div>
209
         <div style={{fontSize:'0.09rem',color:'#999',marginBottom:'0.16rem'}}>最多显示6个项目,其他项目请在下方详细数据中搜索</div>
210
         <Row>
210
         <Row>

+ 4
- 0
src/pages/statistical/consultant/sharetable.jsx 查看文件

64
         label: '在线选房',
64
         label: '在线选房',
65
         value: 'houseApp',
65
         value: 'houseApp',
66
     },
66
     },
67
+    {
68
+        label: '个人主页',
69
+        value: 'consultant',
70
+    },
67
 ]
71
 ]
68
 
72
 
69
 /**
73
 /**