소스 검색

切换图给chartLimit默认值

cxmo 9 달 전
부모
커밋
1aaeb234fa
2개의 변경된 파일16개의 추가작업 그리고 2개의 파일을 삭제
  1. 8 1
      src/views/dataEntry_manage/mixins/addOreditMixin.js
  2. 8 1
      src/views/dataEntry_manage/mixins/chartPublic.js

+ 8 - 1
src/views/dataEntry_manage/mixins/addOreditMixin.js

@@ -563,7 +563,14 @@ export default {
 			this.dateForm = {};
 			this.dateTip = '请选择时间段';
 			this.barDateList = [];
-      this.chartLimit = {};
+			this.chartLimit = {
+				min:'', //左轴上下限
+				max:'',
+				rightMin:'',//右轴上下限
+				rightMax:'',
+				rightTwoMin:'',//右二轴上下限
+				rightTwoMax:'',
+			};
       this.sectionScatterData = {};
 
 			this.$nextTick(()=>{

+ 8 - 1
src/views/dataEntry_manage/mixins/chartPublic.js

@@ -575,7 +575,14 @@ export const chartSetMixin = {
         this.leftIndex = -1;
         this.rightIndex = -1;
         this.rightTwoIndex = -1;
-        this.chartLimit = {};
+        this.chartLimit = {
+            min:'', //左轴上下限
+            max:'',
+            rightMin:'',//右轴上下限
+            rightMax:'',
+            rightTwoMin:'',//右二轴上下限
+            rightTwoMax:'',
+        };
       }else {
         this.leftIndex = newval.findIndex((item) => item.IsAxis===1);
         this.rightIndex = newval.findIndex((item) => !item.IsAxis);