diff --git a/src/charts/MobileDeal.jsx b/src/charts/MobileDeal.jsx index c3c3c18..329adbe 100644 --- a/src/charts/MobileDeal.jsx +++ b/src/charts/MobileDeal.jsx @@ -1,41 +1,45 @@ -import React, {Component} from 'react'; -import {Table, Button, Space, Radio} from 'antd'; -import {SearchOutlined} from '@ant-design/icons'; -import GroupSelect from '../components/search/GroupSelect'; -import DatePickerCharts from "../components/search/DatePickerCharts"; -import {stores_Context} from "../config"; -import {observer} from "mobx-react"; +import React, { Component } from 'react'; +import { Table, } from 'antd'; +import SearchForm from './../components/search/SearchForm'; +import { stores_Context } from '../config'; +import { observer } from 'mobx-react'; class MobileDeal extends Component { - static contextType = stores_Context; + static contextType = stores_Context; - constructor(props) { - super(props); - } + constructor(props) { + super(props); + } - render() { - const {dashboard_store} = this.context; - const mobile_data = dashboard_store.mobile_data; - return ( -
-

移动成交

- - - - - - 预定日期 - 出发日期 - - - - - - - ); - } + render() { + const { dashboard_store, date_picker_store } = this.context; + const mobile_data = dashboard_store.mobile_data; + return ( +
+

移动成交

+ { + dashboard_store.setMobileSearchValues(obj, form); + mobile_data.asyncFetch(); + }} + /> +
+ + ); + } } export default observer(MobileDeal); diff --git a/src/components/search/DataTypeSelect.jsx b/src/components/search/DataTypeSelect.jsx index 9d199ba..9d30117 100644 --- a/src/components/search/DataTypeSelect.jsx +++ b/src/components/search/DataTypeSelect.jsx @@ -35,7 +35,7 @@ class DataTypeSelect extends Component { {...extProps} > {dateTypes.map((ele) => ( - + {ele.label} ))} diff --git a/src/components/search/SearchForm.jsx b/src/components/search/SearchForm.jsx index 464ea44..e03074c 100644 --- a/src/components/search/SearchForm.jsx +++ b/src/components/search/SearchForm.jsx @@ -221,7 +221,7 @@ export default observer((props) => { {getFields({ sort, initialValue, hides, shows, fieldProps, form })} {/* 'textAlign': 'right' */} - +