@@ -5,6 +5,7 @@ import styles from './index.less'; | |||||
const { RangePicker } = DatePicker; | const { RangePicker } = DatePicker; | ||||
import costSalesAPI from "./service"; | import costSalesAPI from "./service"; | ||||
import moment from 'moment'; | import moment from 'moment'; | ||||
import { DownloadOutlined } from '@ant-design/icons'; | |||||
const LoadingCard = () => { | const LoadingCard = () => { | ||||
return ( | return ( | ||||
@@ -277,6 +278,11 @@ export default function Index() { | |||||
</div> | </div> | ||||
</Card> | </Card> | ||||
<Card className={styles['table-card']}> | <Card className={styles['table-card']}> | ||||
<div className={styles['download-btn']}> | |||||
<Button type="primary" icon={<DownloadOutlined />} size="middle"> | |||||
下载 | |||||
</Button> | |||||
</div> | |||||
<Table dataSource={costSalesData} columns={columns} pagination={false} /> | <Table dataSource={costSalesData} columns={columns} pagination={false} /> | ||||
<div className={styles['table-page']}> | <div className={styles['table-page']}> | ||||
<Pagination current={current} pageSize={pageSize} total={total} onChange={onPageChange} /> | <Pagination current={current} pageSize={pageSize} total={total} onChange={onPageChange} /> | ||||
@@ -59,4 +59,10 @@ | |||||
.data-search-btns { | .data-search-btns { | ||||
display: flex; | display: flex; | ||||
justify-content: flex-end; | justify-content: flex-end; | ||||
} | |||||
.download-btn { | |||||
display: flex; | |||||
justify-content: flex-end; | |||||
margin-bottom: 10px; | |||||
} | } |
@@ -5,7 +5,7 @@ import styles from './index.less'; | |||||
const { RangePicker } = DatePicker; | const { RangePicker } = DatePicker; | ||||
import costSalesAPI from "./service"; | import costSalesAPI from "./service"; | ||||
import moment from 'moment'; | import moment from 'moment'; | ||||
import { DownloadOutlined } from '@ant-design/icons'; | |||||
const LoadingCard = () => { | const LoadingCard = () => { | ||||
@@ -165,6 +165,11 @@ export default function Index() { | |||||
</Row> | </Row> | ||||
</Card> | </Card> | ||||
<Card className={styles['table-card']}> | <Card className={styles['table-card']}> | ||||
<div className={styles['download-btn']}> | |||||
<Button type="primary" icon={<DownloadOutlined />} size="middle"> | |||||
下载 | |||||
</Button> | |||||
</div> | |||||
<Table dataSource={costSalesData} columns={columns} pagination={false} /> | <Table dataSource={costSalesData} columns={columns} pagination={false} /> | ||||
<div className={styles['table-page']}> | <div className={styles['table-page']}> | ||||
<Pagination current={current} pageSize={pageSize} total={total} onChange={onPageChange} /> | <Pagination current={current} pageSize={pageSize} total={total} onChange={onPageChange} /> | ||||
@@ -60,4 +60,10 @@ | |||||
margin-left: auto; | margin-left: auto; | ||||
display: flex; | display: flex; | ||||
justify-content: flex-end; | justify-content: flex-end; | ||||
} | |||||
.download-btn { | |||||
display: flex; | |||||
justify-content: flex-end; | |||||
margin-bottom: 10px; | |||||
} | } |
@@ -5,6 +5,7 @@ import styles from './index.less'; | |||||
const { RangePicker } = DatePicker; | const { RangePicker } = DatePicker; | ||||
import costSalesAPI from "./service"; | import costSalesAPI from "./service"; | ||||
import moment from 'moment'; | import moment from 'moment'; | ||||
import { DownloadOutlined } from '@ant-design/icons'; | |||||
const LoadingCard = () => { | const LoadingCard = () => { | ||||
return ( | return ( | ||||
@@ -66,7 +67,7 @@ export default function Index() { | |||||
} else { | } else { | ||||
return <span>暂无商品名称</span> | return <span>暂无商品名称</span> | ||||
} | } | ||||
}, | }, | ||||
}, | }, | ||||
{ | { | ||||
@@ -175,7 +176,7 @@ export default function Index() { | |||||
<PageContainer> | <PageContainer> | ||||
{showLoading ? <LoadingCard></LoadingCard> : null} | {showLoading ? <LoadingCard></LoadingCard> : null} | ||||
<Card className={styles['data-search-card']}> | <Card className={styles['data-search-card']}> | ||||
<Row gutter={20} justify="space-between"> | |||||
<Row gutter={20} justify="space-between"> | |||||
<Col xs={24} sm={24} md={12} lg={12} xl={6} className={styles['data-search-item']}> | <Col xs={24} sm={24} md={12} lg={12} xl={6} className={styles['data-search-item']}> | ||||
<div className={styles['data-search-prefix']}> | <div className={styles['data-search-prefix']}> | ||||
门店 | 门店 | ||||
@@ -260,6 +261,11 @@ export default function Index() { | |||||
</div> | </div> | ||||
</Card> | </Card> | ||||
<Card className={styles['table-card']}> | <Card className={styles['table-card']}> | ||||
<div className={styles['download-btn']}> | |||||
<Button type="primary" icon={<DownloadOutlined />} size="middle"> | |||||
下载 | |||||
</Button> | |||||
</div> | |||||
<Table dataSource={costSalesData} columns={columns} pagination={false} /> | <Table dataSource={costSalesData} columns={columns} pagination={false} /> | ||||
<div className={styles['table-page']}> | <div className={styles['table-page']}> | ||||
<Pagination current={current} pageSize={pageSize} total={total} onChange={onPageChange} /> | <Pagination current={current} pageSize={pageSize} total={total} onChange={onPageChange} /> | ||||
@@ -59,4 +59,10 @@ | |||||
.data-search-btns { | .data-search-btns { | ||||
display: flex; | display: flex; | ||||
justify-content: flex-end; | justify-content: flex-end; | ||||
} | |||||
.download-btn { | |||||
display: flex; | |||||
justify-content: flex-end; | |||||
margin-bottom: 10px; | |||||
} | } |