Karsa 9 ماه پیش
والد
کامیت
b748788e6c

+ 4 - 1
src/views/chartRelevance_manage/crossVarietyAnalysis/components/chartFormSection.vue

@@ -221,7 +221,10 @@ export default {
         CalculateUnit,
         TagX,
         TagY,
-        DateConfigList,
+        DateConfigList: DateConfigList.map(_ =>({
+          ..._,
+          ShowTips: _.ShowTips || 0
+        })),
         PercentType: PercentType||0
       }
     },

+ 15 - 1
src/views/mychart_manage/components/chartDetailDia.vue

@@ -577,7 +577,7 @@
 import { dataBaseInterface,mychartInterface } from '@/api/api.js';
 import futuresInterface from '@/api/modules/futuresBaseApi';
 import chartRelevanceApi from '@/api/modules/chartRelevanceApi';
-import { fittingEquationInterface,statisticFeatureInterface } from '@/api/modules/chartRelevanceApi';
+import { fittingEquationInterface,statisticFeatureInterface,crossVarietyInterface } from '@/api/modules/chartRelevanceApi';
 import {
   seasonOptions,
   copyOtherOptions
@@ -1129,7 +1129,21 @@ export default {
 		},300),
 
     saveCrossVarietyChart: _.debounce(async function() {
+      let { min,max,x_min,x_max } = this.chartLimit;
+      let params = {
+        ChartInfoId: this.chartInfo.ChartInfoId,
+        XMin: String(x_min),
+				XMax: String(x_max),
+				LeftMin: String(min),
+				LeftMax: String(max),
+      }
+			let res = await crossVarietyInterface.saveChart(params);
 
+			if(res.Ret !== 200) return
+
+			this.$message.success('保存成功')
+			//关联图表和图片
+			this.setChartImage();
     },300),
 
     /* 保存当前图表配置 */