From 51ae4c9cea9052483f818f220fb5d13aee9497b5 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Tue, 7 Nov 2023 14:09:50 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=AE=A2=E5=8D=95>=E4=BB=AA=E8=A1=A8?= =?UTF-8?q?=E7=9B=98-=E7=A7=BB=E5=8A=A8=E8=AE=A2=E5=8D=95:=20=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/charts/MobileDeal.jsx | 72 +++++++++++++----------- src/components/search/DataTypeSelect.jsx | 2 +- src/components/search/SearchForm.jsx | 10 ++-- src/stores/DashboardStore.js | 11 ++++ 4 files changed, 55 insertions(+), 40 deletions(-) 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' */} - +