|
@@ -45,7 +45,7 @@
|
|
|
<div class="itemNum">{{ items.njhdl }}</div>
|
|
|
<div class="itemUnit">万kWh</div>
|
|
|
<div class="itemName size5">年完成率</div>
|
|
|
- <div class="itemNum">{{ items.nwcl }}</div>
|
|
|
+ <div class="itemNum">{{ nwc }}</div>
|
|
|
<div class="itemUnit">%</div>
|
|
|
</div>
|
|
|
<div class="contentItem">
|
|
@@ -56,7 +56,7 @@
|
|
|
<div class="itemNum">{{ items.yjhdl }}</div>
|
|
|
<div class="itemUnit">万kWh</div>
|
|
|
<div class="itemName size5">月完成率</div>
|
|
|
- <div class="itemNum">{{ items.ywcl }}</div>
|
|
|
+ <div class="itemNum">{{ ywc}}</div>
|
|
|
<div class="itemUnit">%</div>
|
|
|
</div>
|
|
|
<div class="contentItem">
|
|
@@ -318,6 +318,8 @@ export default {
|
|
|
items: {},
|
|
|
little:{},
|
|
|
mine:{},
|
|
|
+ nwc:"",
|
|
|
+ ywc:"",
|
|
|
timmer: null,
|
|
|
};
|
|
|
},
|
|
@@ -332,6 +334,7 @@ export default {
|
|
|
.css("height", viewTitle.eq(i).parent(".viewItem").css("height"));
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
|
|
|
viewAjax() {
|
|
|
let that = this;
|
|
@@ -357,7 +360,7 @@ export default {
|
|
|
let that = this;
|
|
|
that.API.requestData({
|
|
|
method: "GET",
|
|
|
- subUrl: "http://192.168.1.67:8021/meterinfoAll/sisView",
|
|
|
+ subUrl: "http://192.168.1.68:8021/meterinfoAll/sisView",
|
|
|
success(res) {
|
|
|
let keys=Object.keys(res.data)
|
|
|
let items=res.data
|
|
@@ -377,7 +380,7 @@ export default {
|
|
|
let that = this;
|
|
|
that.API.requestData({
|
|
|
method: "GET",
|
|
|
- subUrl: "http://192.168.1.67:8133/powergen/lost",
|
|
|
+ subUrl: "http://192.168.1.68:8133/powergen/lost",
|
|
|
success(res) {
|
|
|
let keys = Object.keys(res.data);
|
|
|
let items = res.data;
|
|
@@ -392,17 +395,26 @@ export default {
|
|
|
},
|
|
|
});
|
|
|
},
|
|
|
+ nn(){
|
|
|
+ this.nwc=((this.little.nfdl/this.items.njhdl)*100).toFixed(2)
|
|
|
+ this.ywc=((this.little.yfdl/this.items.yjhdl)*100).toFixed(2)
|
|
|
+ console.log(this.nwc);
|
|
|
+ console.log(this.ywc);
|
|
|
+ },
|
|
|
},
|
|
|
|
|
|
created() {
|
|
|
this.viewAjax();
|
|
|
this.viewAjax1()
|
|
|
this.viewAjax2()
|
|
|
+
|
|
|
this.timmer = setInterval(() => {
|
|
|
this.viewAjax();
|
|
|
this.viewAjax1()
|
|
|
this.viewAjax2()
|
|
|
+ this.nn()
|
|
|
}, 6000);
|
|
|
+ this.nn()
|
|
|
},
|
|
|
|
|
|
mounted() {
|