瀏覽代碼

兼容修改

shanbinzhang 4 月之前
父節點
當前提交
fdfbd8d051
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. 1 1
      src/views/hzyb/chart/Detail.vue
  2. 3 1
      src/views/hzyb/hooks/chartRender.js

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

@@ -412,7 +412,7 @@ watch(
         console.log('极值改变');
 
         //奇怪柱状图 商品价格图
-        if([7,10].includes(resData.value.ChartInfo.ChartType) || resData.value.ChartInfo.Source === 2) {
+        if([7,10,11].includes(resData.value.ChartInfo.ChartType) || resData.value.ChartInfo.Source === 2) {
             chartData.value.yAxis[0].max = nval.leftMax;
             chartData.value.yAxis[0].min = nval.leftMin;
             

+ 3 - 1
src/views/hzyb/hooks/chartRender.js

@@ -947,6 +947,7 @@ function setScatterOptions(e) {
               ...chartTheme&&chartTheme.yAxisOptions.style
           },
       },
+      IsAxis:1,
       opposite: false,
       reversed: IsOrder,
       min: Number(minLimit),
@@ -1372,7 +1373,7 @@ const setRadarChart = (data) => {
         }
       },
       min: Number(leftMin),
-      max: Number(leftMax),
+      max: Number(leftMax)
     }]
 
     //系列
@@ -1504,6 +1505,7 @@ function initSectionalCombinationChart(e){
             ...chartTheme&&chartTheme.yAxisOptions.style,
           }
         },
+        IsAxis:item.IsAxis,
         opposite: [0,2].includes(item.IsAxis),
         min: Number(minLimit),
         max: Number(maxLimit),