浏览代码

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

cxmo 8 月之前
父节点
当前提交
4a363228b7
共有 2 个文件被更改,包括 8 次插入8 次删除
  1. 4 4
      src/views/dataEntry_manage/addChart.vue
  2. 4 4
      src/views/dataEntry_manage/editChart.vue

+ 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:{},