Browse Source

fix 季节性图不添加同期线报错

cxmo 8 months ago
parent
commit
4a363228b7

+ 4 - 4
src/views/dataEntry_manage/addChart.vue

@@ -902,12 +902,12 @@ export default {
 						//const {MaxMinLimits={},SamePeriodAverage={},SamePeriodStandardDeviation={}} = this.chartInfo.SeasonAverageConfig||{}
 						const {SeasonRightConfig={}} = this.chartInfo
 						const tempData = _.cloneDeep(this.chartInfo.SeasonAverageConfig||{})
-						delete tempData.MaxMinLimits.List
-						delete tempData.SamePeriodAverage.List
-						delete tempData.SamePeriodStandardDeviation.List
+						const {MaxMinLimits={},SamePeriodAverage={},SamePeriodStandardDeviation={}} = tempData||{}
+						delete MaxMinLimits.List
+						delete SamePeriodAverage.List
+						delete SamePeriodStandardDeviation.List
 						const tempConfig = _.cloneDeep(SeasonRightConfig)
 						delete tempConfig.EdbInfoList
-						const {MaxMinLimits={},SamePeriodAverage={},SamePeriodStandardDeviation={}} = tempData||{}
 						params.SeasonExtraConfig = {
 							...this.SeasonExtraConfig,
 							MaxMinLimits:MaxMinLimits.IsAdd?MaxMinLimits:{},

+ 4 - 4
src/views/dataEntry_manage/editChart.vue

@@ -1040,12 +1040,12 @@ export default {
 						//const {MaxMinLimits={},SamePeriodAverage={},SamePeriodStandardDeviation={}} = this.chartInfo.SeasonAverageConfig||{}
 						const {SeasonRightConfig={}} = this.chartInfo
 						const tempData = _.cloneDeep(this.chartInfo.SeasonAverageConfig||{})
-						delete tempData.MaxMinLimits.List
-						delete tempData.SamePeriodAverage.List
-						delete tempData.SamePeriodStandardDeviation.List
+						const {MaxMinLimits={},SamePeriodAverage={},SamePeriodStandardDeviation={}} = tempData||{}
+						delete MaxMinLimits.List
+						delete SamePeriodAverage.List
+						delete SamePeriodStandardDeviation.List
 						const tempConfig = _.cloneDeep(SeasonRightConfig)
 						delete tempConfig.EdbInfoList
-						const {MaxMinLimits={},SamePeriodAverage={},SamePeriodStandardDeviation={}} = tempData||{}
 						params.SeasonExtraConfig = {
 							...this.SeasonExtraConfig,
 							MaxMinLimits:MaxMinLimits.IsAdd?MaxMinLimits:{},