Преглед на файлове

切换图表种类时也初始化上下限

cxmo преди 9 месеца
родител
ревизия
65f0e7d462

+ 3 - 0
src/views/dataEntry_manage/editChart.vue

@@ -1010,6 +1010,9 @@ export default {
 						}
 					});
 					if(![7,10,11].includes(this.chartInfo.ChartType)){
+						const {
+							min,max,rightMin,rightMax,rightTwoMin,rightTwoMax
+						} = this.chartLimit
 						params = {
 							...params,
 							LeftMin:min+'',

+ 2 - 0
src/views/dataEntry_manage/mixins/addOreditMixin.js

@@ -154,6 +154,8 @@ export default {
 
 				//共用结构的类型切换可以直接画图
 				if(![7,10,11].includes(newval)) {
+					//初始化上下限
+					this.setLimitData(this.tableData)
 					//单指标允许切换到季节图需药重新请求数据
 					this.tableData.length===1 && this.selectTarget(this.tableData[0],'switch');
 					this.tableData.length > 1 && this.setChartOptionHandle(this.tableData);

+ 0 - 2
src/views/dataEntry_manage/mixins/chartPublic.js

@@ -625,7 +625,6 @@ export const chartSetMixin = {
                 minLimit = this.chartLimit[`${limitMap[item.IsAxis][0]}`]||0
                 maxLimit = this.chartLimit[`${limitMap[item.IsAxis][1]}`]||0
             }
-            console.log('test',minLimit,maxLimit)
         }
         
         
@@ -826,7 +825,6 @@ export const chartSetMixin = {
                 minLimit = this.chartLimit[`${limitMap[item.IsAxis][0]}`]||0
                 maxLimit = this.chartLimit[`${limitMap[item.IsAxis][1]}`]||0
             }
-            console.log('test堆积',minLimit,maxLimit)
         }
         
         //y轴