diff --git a/admin/src/pages/history/analysis/components/IntroduceRow.tsx b/admin/src/pages/history/analysis/components/IntroduceRow.tsx
index 150901a..04eead9 100644
--- a/admin/src/pages/history/analysis/components/IntroduceRow.tsx
+++ b/admin/src/pages/history/analysis/components/IntroduceRow.tsx
@@ -211,6 +211,7 @@ const IntroduceRow = ({ loading, visitData }: { loading: boolean; visitData: Dat
onChange={(id) => {
area_id=id;
handleSearch('');
+ run()
}}
>
diff --git a/admin/src/pages/history/analysis/index.tsx b/admin/src/pages/history/analysis/index.tsx
index 7c8ab00..2f73357 100644
--- a/admin/src/pages/history/analysis/index.tsx
+++ b/admin/src/pages/history/analysis/index.tsx
@@ -42,7 +42,7 @@ const Analysis: FC = () => {
getTimeDistance('year'),
);
- const { loading, data } = useRequest(fakeChartData);
+ // const { loading, data } = useRequest(fakeChartData);
const selectDate = (type: TimeType) => {
setRangePickerValue(getTimeDistance(type));
@@ -73,46 +73,55 @@ const Analysis: FC = () => {
};
let salesPieData;
- if (salesType === 'all') {
- salesPieData = data?.salesTypeData;
- } else {
- salesPieData = salesType === 'online' ? data?.salesTypeDataOnline : data?.salesTypeDataOffline;
- }
-
- const handleChangeSalesType = (e: RadioChangeEvent) => {
- setSalesType(e.target.value);
- };
-
- const handleTabChange = (key: string) => {
- setCurrentTabKey(key);
- };
-
- const activeKey = currentTabKey || (data?.offlineData[0] && data?.offlineData[0].name) || '';
+ // if (salesType === 'all') {
+ // salesPieData = data?.salesTypeData;
+ // } else {
+ // salesPieData = salesType === 'online' ? data?.salesTypeDataOnline : data?.salesTypeDataOffline;
+ // }
+ //
+ // const handleChangeSalesType = (e: RadioChangeEvent) => {
+ // setSalesType(e.target.value);
+ // };
+ //
+ // const handleTabChange = (key: string) => {
+ // setCurrentTabKey(key);
+ // };
+ //
+ // const activeKey = currentTabKey || (data?.offlineData[0] && data?.offlineData[0].name) || '';
return (
<>
}>
-
+
-
+
-
+
>