|
|
@ -1,5 +1,5 @@ |
|
|
import { Column } from '@ant-design/plots'; |
|
|
import { Column } from '@ant-design/plots'; |
|
|
import { Card, Col, DatePicker, Row, Tabs } from 'antd'; |
|
|
import { Button, Card, Col, DatePicker, Row, Tabs } from 'antd'; |
|
|
import type { RangePickerProps } from 'antd/es/date-picker'; |
|
|
import type { RangePickerProps } from 'antd/es/date-picker'; |
|
|
import numeral from 'numeral'; |
|
|
import numeral from 'numeral'; |
|
|
import type { DataItem } from '../data.d'; |
|
|
import type { DataItem } from '../data.d'; |
|
|
@ -51,30 +51,34 @@ const SalesCard = ({ |
|
|
tabBarExtraContent={ |
|
|
tabBarExtraContent={ |
|
|
<div className={styles.salesExtraWrap}> |
|
|
<div className={styles.salesExtraWrap}> |
|
|
<div className={styles.salesExtra}> |
|
|
<div className={styles.salesExtra}> |
|
|
<a |
|
|
<Button |
|
|
|
|
|
type="text" |
|
|
className={isActive('today')} |
|
|
className={isActive('today')} |
|
|
onClick={() => selectDate('today')} |
|
|
onClick={() => selectDate('today')} |
|
|
> |
|
|
> |
|
|
今日 |
|
|
今日 |
|
|
</a> |
|
|
</Button> |
|
|
<a |
|
|
<Button |
|
|
|
|
|
type="text" |
|
|
className={isActive('week')} |
|
|
className={isActive('week')} |
|
|
onClick={() => selectDate('week')} |
|
|
onClick={() => selectDate('week')} |
|
|
> |
|
|
> |
|
|
本周 |
|
|
本周 |
|
|
</a> |
|
|
</Button> |
|
|
<a |
|
|
<Button |
|
|
|
|
|
type="text" |
|
|
className={isActive('month')} |
|
|
className={isActive('month')} |
|
|
onClick={() => selectDate('month')} |
|
|
onClick={() => selectDate('month')} |
|
|
> |
|
|
> |
|
|
本月 |
|
|
本月 |
|
|
</a> |
|
|
</Button> |
|
|
<a |
|
|
<Button |
|
|
|
|
|
type="text" |
|
|
className={isActive('year')} |
|
|
className={isActive('year')} |
|
|
onClick={() => selectDate('year')} |
|
|
onClick={() => selectDate('year')} |
|
|
> |
|
|
> |
|
|
本年 |
|
|
本年 |
|
|
</a> |
|
|
</Button> |
|
|
</div> |
|
|
</div> |
|
|
<RangePicker |
|
|
<RangePicker |
|
|
value={rangePickerValue} |
|
|
value={rangePickerValue} |
|
|
|