zzy před 2 roky
rodič
revize
19aa028975

+ 2 - 2
src/echarts/option.js

@@ -2005,7 +2005,7 @@ export function setDepartmentAreaEcharts(ele,unit,chartData) {
     setOptions(ele, option)
 }
 
-export function setDepartmentCommentEcharts(ele,chartData) {
+export function setDepartmentCommentEcharts(ele,chartData,maxY) {
     // BAYONET: "chsx"
     // BOATNUM: 10
     // TIME: "2021-11-25 00"
@@ -2088,7 +2088,7 @@ export function setDepartmentCommentEcharts(ele,chartData) {
         ],
         yAxis: [
             {
-
+                max:maxY,
                 type: 'value',
                 splitLine: {
                     show: true,

+ 8 - 3
src/views/evaluate/c-cpns/BadEvaluateSituation.vue

@@ -91,6 +91,8 @@ export default {
       MONTH_ON_MONTH:'',
       YEAR_ON_YEAR:'',
       CPS_ALL:'',
+      MAX_CPL:'',
+      MAX_CPS:'',
       chartData:[],
       CPS_chartData:[],
       CPL_chartData:[],
@@ -202,7 +204,8 @@ export default {
           this.CPL_YEAR_ON_YEAR= dataArr["CPL_YEAR_ON_YEAR"];
           this.MONTH_ON_MONTH= dataArr["MONTH_ON_MONTH"];
           this.YEAR_ON_YEAR= dataArr["YEAR_ON_YEAR"];
-
+          this.MAX_CPL = dataArr["MAX_CPL"];
+          this.MAX_CPS = dataArr["MAX_DATA_COUNT"];
           this.CPS_ALL=dataArr["PL_CP_NUM"];
         }else{
           this.CPS_chartData = [];
@@ -213,6 +216,8 @@ export default {
           this.TB='';
           this.HB='';
           this.CPS_ALL='';
+          this.MAX_CPL = 1;
+          this.MAX_CPS = 1;
         }
         this.$nextTick(() => {
           this.loading=false;
@@ -227,14 +232,14 @@ export default {
         this.chartData = this.CPL_chartData;
         this.$refs[item].style.color = '#fdbf00';
         this.$refs['number'].style.color = '#fff'
-        setDepartmentCommentEcharts(this.$refs.echarts,this.chartData)
+        setDepartmentCommentEcharts(this.$refs.echarts,this.chartData,this.MAX_CPL)
       }else{
         this.TB= this.MONTH_ON_MONTH;
         this.HB= this.YEAR_ON_YEAR;
         this.chartData = this.CPS_chartData;
         this.$refs[item].style.color = '#fdbf00';
         this.$refs['interest'].style.color = '#fff';
-        setDepartmentCommentEcharts(this.$refs.echarts,this.chartData)
+        setDepartmentCommentEcharts(this.$refs.echarts,this.chartData,this.MAX_CPS)
       }
     }
   },