Commit 2223d144 by zhaochengxiang

增加分页器

parent 2bbd143e
...@@ -178,10 +178,12 @@ class mDashboard extends Component { ...@@ -178,10 +178,12 @@ class mDashboard extends Component {
new Swiper('.swiper-container', { new Swiper('.swiper-container', {
direction: 'horizontal', direction: 'horizontal',
observer: true, observer: true,
observeParents: true observeParents: true,
pagination: {
el: '.swiper-pagination',
},
}) })
const _decryptId = this.props.match.params.id; const _decryptId = this.props.match.params.id;
var key = CryptoJS.enc.Utf8.parse("A930F2C3ACEA7B5B"); var key = CryptoJS.enc.Utf8.parse("A930F2C3ACEA7B5B");
...@@ -318,9 +320,9 @@ class mDashboard extends Component { ...@@ -318,9 +320,9 @@ class mDashboard extends Component {
const { data, curDegree ,curDimension, loading, columns, loadingOrder, orderData, curTrendData, curTrendKey, loadingTrend, trendData } = this.state; const { data, curDegree ,curDimension, loading, columns, loadingOrder, orderData, curTrendData, curTrendKey, loadingTrend, trendData } = this.state;
return ( return (
<React.Fragment> <React.Fragment>
<div className='swiper-container'> <div className='swiper-container' style={{height: '100%'}}>
<div className='swiper-wrapper'> <div className='swiper-wrapper'>
<div className="swiper-slide"> <div className="swiper-slide" style={{overflow:'auto'}}>
<div style={{ margin: 10 }}> <div style={{ margin: 10 }}>
<Card bordered={false}> <Card bordered={false}>
<h3 className="ant-typography text-primary">基本信息</h3> <h3 className="ant-typography text-primary">基本信息</h3>
...@@ -410,7 +412,7 @@ class mDashboard extends Component { ...@@ -410,7 +412,7 @@ class mDashboard extends Component {
</Card> </Card>
</div> </div>
</div> </div>
<div className="swiper-slide"> <div className="swiper-slide" style={{overflow:'auto'}}>
<div style={{margin: '10px'}}> <div style={{margin: '10px'}}>
<Card bordered={false}> <Card bordered={false}>
<h3 className="ant-typography text-primary">客户评级</h3> <h3 className="ant-typography text-primary">客户评级</h3>
...@@ -448,7 +450,7 @@ class mDashboard extends Component { ...@@ -448,7 +450,7 @@ class mDashboard extends Component {
</Card> </Card>
</div> </div>
</div> </div>
<div className="swiper-slide"> <div className="swiper-slide" style={{overflow:'auto'}}>
<div style={{margin: '10px'}}> <div style={{margin: '10px'}}>
<Card bordered={false}> <Card bordered={false}>
<h3 className="ant-typography text-primary">上月订购品规TOP10</h3> <h3 className="ant-typography text-primary">上月订购品规TOP10</h3>
...@@ -481,6 +483,7 @@ class mDashboard extends Component { ...@@ -481,6 +483,7 @@ class mDashboard extends Component {
</div> </div>
</div> </div>
</div> </div>
<div className="swiper-pagination"></div>
</div> </div>
</React.Fragment> </React.Fragment>
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment