Forráskód Böngészése

fix: 询盘地区区分站点

周玉环 2 napja
szülő
commit
85b129e82b

+ 4 - 4
xinkeaboard-admin/src/pages/statistics/bigscreen/components/BarChart.js

@@ -50,8 +50,8 @@ class BarChart extends React.Component {
         data: this.props.xAxisdata,
         axisLabel: {
           show: true,
-          fontWeight: 400,
-          fontSize: "16px",
+          fontWeight: 'bold',
+          fontSize: 20,
           color: "#FFFFFF",
         },
       },
@@ -59,8 +59,8 @@ class BarChart extends React.Component {
         type: "value",
         axisLabel: {
           show: true,
-          fontWeight: 400,
-          fontSize: "16px",
+          fontWeight: 'bold',
+          fontSize: 20,
           color: "#FFFFFF",
         },
         splitLine: {

+ 6 - 3
xinkeaboard-admin/src/pages/statistics/bigscreen/components/OverseasEnquireLocation.js

@@ -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);

+ 2 - 2
xinkeaboard-admin/src/pages/statistics/bigscreen/components/TrafficLineChart.js

@@ -62,7 +62,7 @@ class LineChart extends React.Component {
         type: "category",
         boundaryGap: true,
         axisLine: { lineStyle: { color: "#666" } },
-        axisLabel: { color: "#fff", fontSize: "16px" },
+        axisLabel: { color: "#fff", fontSize: 20, fontWeight: 'bold' },
         splitLine: {
           // x 轴竖直方向虚线
           show: true,
@@ -76,7 +76,7 @@ class LineChart extends React.Component {
       yAxis: {
         type: "value",
         axisLine: { show: false },
-        axisLabel: { color: "#fff", fontSize: "16px" },
+        axisLabel: { color: "#fff", fontSize: 20, fontWeight: 'bold' },
         splitLine: {
           // y 轴竖直方向虚线
           show: true,