|
@@ -12,7 +12,7 @@ import futuresInterface from '@/api/modules/futuresBaseApi';
|
|
|
import { fittingEquationInterface,statisticFeatureInterface,crossVarietyInterface } from '@/api/modules/chartRelevanceApi';
|
|
|
import chartRelevanceApi from '@/api/modules/chartRelevanceApi.js';
|
|
|
import { defaultOpts } from '@/utils/defaultOptions';
|
|
|
-import {formatPPTDate,checkPPTpageElemant,getStrSize,isShowPPTTitle,toTextProps,toJson,rgbaToHex} from '../newVersion/utils/untils.js';
|
|
|
+import {formatPPTDate,checkPPTpageElemant,getStrSize,isShowPPTTitle,toTextProps,toJson,rgbaToHex,getChartInfo} from '../newVersion/utils/untils.js';
|
|
|
import FormatOne from '../newVersion/components/formatPage/FormatOne.vue';
|
|
|
import FormatTwo from '../newVersion/components/formatPage/FormatTwo.vue';
|
|
|
import FormatThree from '../newVersion/components/formatPage/FormatThree.vue';
|
|
@@ -470,12 +470,17 @@ export default {
|
|
|
await this.listHandle(chartElements);
|
|
|
this.initCharts(chartElements, page);
|
|
|
},
|
|
|
- async listHandle(chartElements) {
|
|
|
- for(let i=0;i<chartElements.length;i++) {
|
|
|
- if(!this.optionMap[chartElements[i].chartId])
|
|
|
- await this.getchartData(chartElements[i].chartId);
|
|
|
- }
|
|
|
- },
|
|
|
+ async listHandle(chartElements,fromType='') {
|
|
|
+ for(let i=0;i<chartElements.length;i++) {
|
|
|
+ if(!this.optionMap[chartElements[i].chartId])
|
|
|
+ await this.getchartData(chartElements[i].chartId);
|
|
|
+ //由于演示页的图表没有await加载,在这里更新每一张图表的信息
|
|
|
+ if(fromType==='present'){
|
|
|
+ let temp = getChartInfo(this.optionMap[chartElements[i].chartId])
|
|
|
+ this.$store.commit('SET_CHART_INFO',{chartId:chartElements[i].chartId,chartInfo:temp})
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
async sheetListHandle(sheetElements){
|
|
|
for(let i=0;i<sheetElements.length;i++){
|
|
|
if(!this.sheetDataMap[sheetElements[i].sheetId])
|