|
@@ -6,7 +6,7 @@ import EnquirePieChart from "./EnquirePieChart";
|
|
|
// import Pie3DChart from './Pie3DChart';
|
|
|
import styles from "../styles/common.less";
|
|
|
|
|
|
-const OverSeasEnquire = ({ data, loading, dispatch }) => {
|
|
|
+const OverSeasEnquire = ({ data, loading, currentSite }) => {
|
|
|
const parsedata = (pieData) => {
|
|
|
return pieData.map((item) => ({
|
|
|
value: item.enquiryNum,
|
|
@@ -14,11 +14,13 @@ const OverSeasEnquire = ({ data, loading, dispatch }) => {
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
+ const title = currentSite === "1" ? "海外" : "分销商";
|
|
|
+
|
|
|
return (
|
|
|
<Spin spinning={loading}>
|
|
|
<div className={styles.common}>
|
|
|
<div className={styles.common_header}>
|
|
|
- <PanelNav title="海外询盘地区分布" />
|
|
|
+ <PanelNav title={title + "询盘地区分布"} />
|
|
|
</div>
|
|
|
<div className={styles.common_content}>
|
|
|
<EnquirePieChart data={parsedata(data)} />
|
|
@@ -28,7 +30,8 @@ const OverSeasEnquire = ({ data, loading, dispatch }) => {
|
|
|
);
|
|
|
};
|
|
|
|
|
|
-export default connect(({ bigscreen }) => ({
|
|
|
+export default connect(({ bigscreen, global }) => ({
|
|
|
data: bigscreen.overseasEnquireLocationData.data,
|
|
|
loading: bigscreen.overseasEnquireLocationData.loading,
|
|
|
+ currentSite: global.currentSite
|
|
|
}))(OverSeasEnquire);
|