|
@@ -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),
|
|
|
|
|
|
/* 保存当前图表配置 */
|