Merge branch 'master-500-dev-lushangqing' into 'master-500-dev'
趋势预测图增加刷新数据hackReset,增加oracle图片 See merge request !83
Showing
2 changed files
with
7 additions
and
2 deletions
1 | <template> | 1 | <template> |
2 | <div :style="styleObj"> | 2 | <div :style="styleObj"> |
3 | - <v-chart :options="options" autoresize/> | 3 | + <v-chart v-if="hackReset" :options="options" autoresize/> |
4 | </div> | 4 | </div> |
5 | </template> | 5 | </template> |
6 | 6 | ||
@@ -16,6 +16,7 @@ export default { | @@ -16,6 +16,7 @@ export default { | ||
16 | }, | 16 | }, |
17 | data() { | 17 | data() { |
18 | return { | 18 | return { |
19 | + hackReset:true, | ||
19 | options: { | 20 | options: { |
20 | grid: {}, | 21 | grid: {}, |
21 | /*legend: { | 22 | /*legend: { |
@@ -95,7 +96,8 @@ export default { | @@ -95,7 +96,8 @@ export default { | ||
95 | handler(val){ | 96 | handler(val){ |
96 | if(this.optionsSetup.isVuex){ | 97 | if(this.optionsSetup.isVuex){ |
97 | let optionsData=this.optionsData; | 98 | let optionsData=this.optionsData; |
98 | - /* if(this.optionsData.dataType=="dynamicData"){ | 99 | + /* this.hackReset=false; |
100 | + if(this.optionsData.dataType=="dynamicData"){ | ||
99 | //改变参数值-月季度年,重新加载动态数据--待测 | 101 | //改变参数值-月季度年,重新加载动态数据--待测 |
100 | this.optionsData.dynamicData.contextData.dataScope=val; | 102 | this.optionsData.dynamicData.contextData.dataScope=val; |
101 | // this.editorOptions(); | 103 | // this.editorOptions(); |
@@ -362,6 +364,7 @@ export default { | @@ -362,6 +364,7 @@ export default { | ||
362 | }, | 364 | }, |
363 | //静态数据 | 365 | //静态数据 |
364 | staticDataFn(val) { | 366 | staticDataFn(val) { |
367 | + this.hackReset=true; | ||
365 | this.setSeriesData(val) | 368 | this.setSeriesData(val) |
366 | 369 | ||
367 | }, | 370 | }, |
@@ -492,11 +495,13 @@ export default { | @@ -492,11 +495,13 @@ export default { | ||
492 | }, | 495 | }, |
493 | getEchartData(val, optionsSetup) { | 496 | getEchartData(val, optionsSetup) { |
494 | const data = this.queryEchartsData(val); | 497 | const data = this.queryEchartsData(val); |
498 | + this.hackReset=false; | ||
495 | data.then(res => { | 499 | data.then(res => { |
496 | this.renderingFn(optionsSetup, res); | 500 | this.renderingFn(optionsSetup, res); |
497 | }); | 501 | }); |
498 | }, | 502 | }, |
499 | renderingFn(optionsSetup, val) { | 503 | renderingFn(optionsSetup, val) { |
504 | + this.hackReset=true; | ||
500 | this.setSeriesData(val.series) | 505 | this.setSeriesData(val.series) |
501 | } | 506 | } |
502 | } | 507 | } |

2.61 KB
-
Please register or login to post a comment