@@ -62,7 +62,7 @@
</div>
<div class='view-dialog'>
<el-dialog title='策略推出时状况' :visible.sync='viewSnapshots' :close-on-click-modal='false' width='1260px'>
- <ev-snapshots-dialog :appealsDate='date' :time='time'></ev-snapshots-dialog>
+ <ev-snapshots-dialog v-if="date && time" :appealsDate='date' :time='time'></ev-snapshots-dialog>
</el-dialog>
@@ -85,7 +85,7 @@ export default {
drawIt() {
let myCharts = echarts.init(document.getElementById("pCharts2"));
var colors = ["#34C724", "#8D9399", "#F54E45", "#00D6B9", "#0091FF"];
- var option = {
+ var option = {
color: colors,
tooltip: {
trigger: "axis",
@@ -93,7 +93,7 @@ export default {
type: "shadow"
},
formatter:function(params){
- return params[0].name +'<br/> Legend'+params[0].seriesName+'<br/>'+'<i class="icon1"></i> 室内温度:'+params[1].value +'% <br/>'+'<i class="icon2"></i>节能率:'+params[2].value+'%'
+ return params[0].name +'<br/>'+params[0].seriesName+'<br/>'+'<i class="icon1"></i> 室内温度:'+ (params[1].value || 0) +'% <br/>'+'<i class="icon2"></i>节能率:' + (params[2].value || 0) + '%'
}
@@ -167,11 +167,14 @@ export default {
};
mounted() {
-
this.getQuickData();
+ watch:{
+ time(newV,old){
+ this.getQuickData();
+ }
+ },
methods: {
getQuickData() {
let params = {
getParams: {
@@ -181,7 +184,7 @@ export default {
queryQuickData(params).then(res => {
this.chillerOrg = res.chillerOrg || {};
- this.chillerCommand = res.chillerCommand || {};
+ this.chillerCommand = res.chillerOrg || {};
this.chillerHourList = res.chillerHourList || [];
this.drawData();
});