|
@@ -71,9 +71,6 @@ export default {
|
|
//截面散点设置英文props
|
|
//截面散点设置英文props
|
|
enChartInfo: {},
|
|
enChartInfo: {},
|
|
enEdblist:[],
|
|
enEdblist:[],
|
|
-
|
|
|
|
-
|
|
|
|
- chartSVGDataMap:{}
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -595,8 +592,7 @@ export default {
|
|
this.initChart(
|
|
this.initChart(
|
|
`chart_${index}_${item.position}`,
|
|
`chart_${index}_${item.position}`,
|
|
this.optionMap[item.chartId],
|
|
this.optionMap[item.chartId],
|
|
- page,
|
|
|
|
- item.chartId
|
|
|
|
|
|
+ page
|
|
)
|
|
)
|
|
}else{
|
|
}else{
|
|
//显示图表已被删除
|
|
//显示图表已被删除
|
|
@@ -608,7 +604,7 @@ export default {
|
|
|
|
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- initChart(refName, options, page,chartId="") {
|
|
|
|
|
|
+ initChart(refName, options, page) {
|
|
console.log("refName", refName);
|
|
console.log("refName", refName);
|
|
const index = this.pageList.findIndex((i) => i.id === page.id)
|
|
const index = this.pageList.findIndex((i) => i.id === page.id)
|
|
if(index===-1) return
|
|
if(index===-1) return
|
|
@@ -747,23 +743,6 @@ export default {
|
|
...secialBarOpt
|
|
...secialBarOpt
|
|
});
|
|
});
|
|
|
|
|
|
-
|
|
|
|
- if(isPublish&&chartId){
|
|
|
|
- const {clientWidth,clientHeight} = $(`#${refName}`)[0]
|
|
|
|
- this.chartSVGDataMap[chartId] = chart.getSVG({
|
|
|
|
- chart:{
|
|
|
|
- width:clientWidth,
|
|
|
|
- height:clientHeight,
|
|
|
|
- backgroundColor: "rgba(255,255,255,0)",
|
|
|
|
- plotBorderColor:null,
|
|
|
|
- plotBackgroundColor:null,
|
|
|
|
- plotBackgroundImage:null,
|
|
|
|
- plotBorderWidth:null,
|
|
|
|
- plotShadow:false,
|
|
|
|
- animation: false,
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
});
|
|
});
|
|
},
|
|
},
|
|
initImages(elements,page){
|
|
initImages(elements,page){
|