|
@@ -113,7 +113,7 @@
|
|
|
class="span-item"
|
|
|
style="margin-left: 7px"
|
|
|
@click="saveChartMapHandle"
|
|
|
- v-if="![3,6,7,8,9].includes(chartInfo.Source)"
|
|
|
+ v-if="![3,4,6,7,8,9].includes(chartInfo.Source)"
|
|
|
>
|
|
|
<span> <i class="el-icon-collection" /> 保存 </span>
|
|
|
</span>
|
|
@@ -678,16 +678,16 @@ export default {
|
|
|
} : res.Data.ChartInfo;
|
|
|
//商品价格图
|
|
|
this.initCommodityData(res.Data);
|
|
|
- }else if([3,4].includes(this.chartInfo.Source)){//相关性 滚动相关性
|
|
|
+ }else if([3].includes(this.chartInfo.Source)){//相关性 滚动相关性
|
|
|
|
|
|
this.relevanceChartData={
|
|
|
ChartInfo:res.Data.ChartInfo,
|
|
|
EdbInfoList:res.Data.EdbInfoList,
|
|
|
- XEdbIdValue:this.chartInfo.Source === 3 ? res.Data.XEdbIdValue : res.Data.DataResp.XDateTimeValue,
|
|
|
+ XEdbIdValue:res.Data.XEdbIdValue,
|
|
|
CorrelationChartInfo:res.Data.CorrelationChartInfo,
|
|
|
YDataList:[
|
|
|
{
|
|
|
- Value: this.chartInfo.Source === 3 ? res.Data.YDataList[0].Value : res.Data.DataResp.YDataList[0].Value,
|
|
|
+ Value: res.Data.YDataList[0].Value,
|
|
|
Color:'#00f',
|
|
|
Name:res.Data.ChartInfo.ChartName,
|
|
|
NameEn:res.Data.ChartInfo.ChartNameEn
|
|
@@ -697,6 +697,13 @@ export default {
|
|
|
|
|
|
this.initRelevanceChartData()
|
|
|
this.tableData = res.Data.EdbInfoList
|
|
|
+ }else if(this.chartInfo.Source===4) {//滚动相关性换成曲线图绘图
|
|
|
+ this.tableData = res.Data.EdbInfoList
|
|
|
+ this.relevanceChartData = {
|
|
|
+ CorrelationChartInfo: res.Data.CorrelationChartInfo
|
|
|
+ }
|
|
|
+ this.setDefaultChart([res.Data.DataResp]);
|
|
|
+
|
|
|
}else if([6,7,8].includes(this.chartInfo.Source)){//拟合方程 标准差 百分比
|
|
|
this.tableData = res.Data.EdbInfoList;
|
|
|
|
|
@@ -1021,15 +1028,6 @@ export default {
|
|
|
...dynamic_copyOptions[chartType]
|
|
|
},
|
|
|
}
|
|
|
- if(this.options.isRelevanceChart){
|
|
|
- svgObj={
|
|
|
- ...svgObj,
|
|
|
- xAxis:[{
|
|
|
- ...this.options.xAxis,
|
|
|
- offset:-(heightNum-136)/2
|
|
|
- }],
|
|
|
- }
|
|
|
- }
|
|
|
let svg = this.$refs.chartRef.chart.getSVG(svgObj);
|
|
|
this.copyBlobItem(widthNum,heightNum,svg,type);
|
|
|
},500),
|