|
@@ -36,11 +36,7 @@ export default class Analysis extends Component {
|
|
|
componentDidMount() {
|
|
componentDidMount() {
|
|
|
this.props.dispatch({
|
|
this.props.dispatch({
|
|
|
type: 'chart/fetch',
|
|
type: 'chart/fetch',
|
|
|
- }).then(() => {
|
|
|
|
|
- this.setState({
|
|
|
|
|
- loading: false,
|
|
|
|
|
- });
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ }).then(() => this.setState({ loading: false }));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
componentWillUnmount() {
|
|
componentWillUnmount() {
|
|
@@ -226,7 +222,6 @@ export default class Analysis extends Component {
|
|
|
<Row gutter={24}>
|
|
<Row gutter={24}>
|
|
|
<Col {...topColResponsiveProps}>
|
|
<Col {...topColResponsiveProps}>
|
|
|
<ChartCard
|
|
<ChartCard
|
|
|
- loading={loading}
|
|
|
|
|
bordered={false}
|
|
bordered={false}
|
|
|
title="总销售额"
|
|
title="总销售额"
|
|
|
action={<Tooltip title="指标说明"><Icon type="info-circle-o" /></Tooltip>}
|
|
action={<Tooltip title="指标说明"><Icon type="info-circle-o" /></Tooltip>}
|
|
@@ -244,7 +239,6 @@ export default class Analysis extends Component {
|
|
|
</Col>
|
|
</Col>
|
|
|
<Col {...topColResponsiveProps}>
|
|
<Col {...topColResponsiveProps}>
|
|
|
<ChartCard
|
|
<ChartCard
|
|
|
- loading={loading}
|
|
|
|
|
bordered={false}
|
|
bordered={false}
|
|
|
title="访问量"
|
|
title="访问量"
|
|
|
action={<Tooltip title="指标说明"><Icon type="info-circle-o" /></Tooltip>}
|
|
action={<Tooltip title="指标说明"><Icon type="info-circle-o" /></Tooltip>}
|
|
@@ -261,7 +255,6 @@ export default class Analysis extends Component {
|
|
|
</Col>
|
|
</Col>
|
|
|
<Col {...topColResponsiveProps}>
|
|
<Col {...topColResponsiveProps}>
|
|
|
<ChartCard
|
|
<ChartCard
|
|
|
- loading={loading}
|
|
|
|
|
bordered={false}
|
|
bordered={false}
|
|
|
title="支付笔数"
|
|
title="支付笔数"
|
|
|
action={<Tooltip title="指标说明"><Icon type="info-circle-o" /></Tooltip>}
|
|
action={<Tooltip title="指标说明"><Icon type="info-circle-o" /></Tooltip>}
|
|
@@ -277,7 +270,6 @@ export default class Analysis extends Component {
|
|
|
</Col>
|
|
</Col>
|
|
|
<Col {...topColResponsiveProps}>
|
|
<Col {...topColResponsiveProps}>
|
|
|
<ChartCard
|
|
<ChartCard
|
|
|
- loading={loading}
|
|
|
|
|
bordered={false}
|
|
bordered={false}
|
|
|
title="运营活动效果"
|
|
title="运营活动效果"
|
|
|
action={<Tooltip title="指标说明"><Icon type="info-circle-o" /></Tooltip>}
|
|
action={<Tooltip title="指标说明"><Icon type="info-circle-o" /></Tooltip>}
|