import React from "react"; import { connect } from "dva"; import PanelNav from "./PanelNav"; import BarChart from "./BarChart"; import styles from "../styles/common.less"; const AddProductTrend = ({ data, loading, dispatch }) => { const parseData = (barData) => { const xAxisdata = []; const seriesData = []; barData.forEach((item) => { xAxisdata.push(item.month); seriesData.push(item.newGoodsNum); }); return { xAxisdata, seriesData, }; }; return (