Quellcode durchsuchen

奇怪柱形图单位

Karsa vor 2 Jahren
Ursprung
Commit
323ee5270b
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      src/views/hzyb/chart/Detail.vue

+ 2 - 1
src/views/hzyb/chart/Detail.vue

@@ -547,6 +547,7 @@ const initBarData = (data) => {
 const setBarChart = () => {
 const setBarChart = () => {
     let seriesData = [];
     let seriesData = [];
     const data = _.cloneDeep(barDateList.value);
     const data = _.cloneDeep(barDateList.value);
+    const { ChartInfo } = resData.value;
 
 
     //x轴
     //x轴
     let xAxis = {
     let xAxis = {
@@ -568,7 +569,7 @@ const setBarChart = () => {
     let yAxis = {
     let yAxis = {
         ...basicYAxis,
         ...basicYAxis,
         title: {
         title: {
-            text:  ``,
+            text: ChartInfo.Unit,
             align: 'high',
             align: 'high',
             rotation: 0,
             rotation: 0,
             y: -15,
             y: -15,