|
@@ -15,9 +15,9 @@
|
|
<view class="main_time">
|
|
<view class="main_time">
|
|
<view class="mesTime">
|
|
<view class="mesTime">
|
|
<image src="../../static/jnImage/indexPage/time.png"></image>
|
|
<image src="../../static/jnImage/indexPage/time.png"></image>
|
|
- <text>2023年11月20日</text>
|
|
+ <text>{{timeData.year}}年{{timeData.month}}月{{timeData.day}}日</text>
|
|
- <text>星期一</text>
|
|
+ <text>{{timeData.week}}</text>
|
|
- <text>09:19</text>
|
|
+ <text>{{timeData.hour}}{{timeData.minute}}</text>
|
|
</view>
|
|
</view>
|
|
<view class="mesAll">
|
|
<view class="mesAll">
|
|
<uni-row class="mesEx">
|
|
<uni-row class="mesEx">
|
|
@@ -51,7 +51,7 @@
|
|
</uni-col>
|
|
</uni-col>
|
|
</uni-row>
|
|
</uni-row>
|
|
<view class="windMsg">
|
|
<view class="windMsg">
|
|
- <view class="flex justify-center" style="margin-bottom: 6px;">
|
|
+ <view class="flex justify-center" style="margin-bottom: 6px;" @click="watchWindStatus('wind')">
|
|
<view class="windMsg_title">
|
|
<view class="windMsg_title">
|
|
<image src="../../static/jnImage/indexPage/wancheng.png" mode=""></image>
|
|
<image src="../../static/jnImage/indexPage/wancheng.png" mode=""></image>
|
|
<text>风机状态</text>
|
|
<text>风机状态</text>
|
|
@@ -61,23 +61,21 @@
|
|
<view class="windMsg_main_msg flex justify-between">
|
|
<view class="windMsg_main_msg flex justify-between">
|
|
<view class="windMsgSty flex">
|
|
<view class="windMsgSty flex">
|
|
<view class="windMsgSty_left">
|
|
<view class="windMsgSty_left">
|
|
- <image src="../../static/jnImage/indexPage/yunxingNew.png" mode=""></image>
|
|
+ <image src="../../static/jnImage/indexPage/jn_jieru.png" mode=""></image>
|
|
- <!-- <view class="windMsgCom" style="background-color: #c2c2c2">
|
|
|
|
- </view> -->
|
|
|
|
<text>接入</text>
|
|
<text>接入</text>
|
|
</view>
|
|
</view>
|
|
<view class="windMsgSty_right flex justify-between">
|
|
<view class="windMsgSty_right flex justify-between">
|
|
- <text>600</text>
|
|
+ <text>{{Math.ceil(powerstatusData.jr_fj_ts)}}</text>
|
|
<text>台</text>
|
|
<text>台</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="windMsgSty flex">
|
|
<view class="windMsgSty flex">
|
|
<view class="windMsgSty_left">
|
|
<view class="windMsgSty_left">
|
|
- <image src="../../static/jnImage/indexPage/daijiNew.png" mode=""></image>
|
|
+ <image src="../../static/jnImage/indexPage/jn_daiji.png" mode=""></image>
|
|
<text>待机</text>
|
|
<text>待机</text>
|
|
</view>
|
|
</view>
|
|
<view class="windMsgSty_right flex justify-between">
|
|
<view class="windMsgSty_right flex justify-between">
|
|
- <text>600</text>
|
|
+ <text>{{Math.ceil(windstatusData.fd_djnum)}}</text>
|
|
<text>台</text>
|
|
<text>台</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -85,21 +83,43 @@
|
|
<view class="windMsg_main_msg flex justify-between">
|
|
<view class="windMsg_main_msg flex justify-between">
|
|
<view class="windMsgSty flex">
|
|
<view class="windMsgSty flex">
|
|
<view class="windMsgSty_left">
|
|
<view class="windMsgSty_left">
|
|
- <image src="../../static/jnImage/indexPage/qidongNew.png" mode=""></image>
|
|
+ <image src="../../static/jnImage/indexPage/jn_bingwang.png" mode=""></image>
|
|
- <text>启动</text>
|
|
+ <text>并网</text>
|
|
</view>
|
|
</view>
|
|
<view class="windMsgSty_right flex justify-between">
|
|
<view class="windMsgSty_right flex justify-between">
|
|
- <text>600</text>
|
|
+ <text>{{Math.ceil(windstatusData.fd_yxnum)}}</text>
|
|
<text>台</text>
|
|
<text>台</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="windMsgSty flex">
|
|
<view class="windMsgSty flex">
|
|
<view class="windMsgSty_left">
|
|
<view class="windMsgSty_left">
|
|
- <image src="../../static/jnImage/indexPage/gzdjNew.png" mode=""></image>
|
|
+ <image src="../../static/jnImage/indexPage/jn_guzhang.png" mode=""></image>
|
|
- <text class="fourFont">故障\n待机</text>
|
|
+ <text>故障</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="windMsgSty_right flex justify-between">
|
|
|
|
+ <text>{{Math.ceil(windstatusData.fd_gznum)}}</text>
|
|
|
|
+ <text>台</text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="windMsg_main_msg flex justify-between">
|
|
|
|
+ <view class="windMsgSty flex">
|
|
|
|
+ <view class="windMsgSty_left">
|
|
|
|
+ <image src="../../static/jnImage/indexPage/jn_jianxiu.png" mode=""></image>
|
|
|
|
+ <text>检修</text>
|
|
</view>
|
|
</view>
|
|
<view class="windMsgSty_right flex justify-between">
|
|
<view class="windMsgSty_right flex justify-between">
|
|
- <text>600</text>
|
|
+ <text>{{Math.ceil(windstatusData.fd_jxnum)}}</text>
|
|
|
|
+ <text>台</text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="windMsgSty flex">
|
|
|
|
+ <view class="windMsgSty_left">
|
|
|
|
+ <image src="../../static/jnImage/indexPage/jn_xiandian.png" mode=""></image>
|
|
|
|
+ <text>限电</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="windMsgSty_right flex justify-between">
|
|
|
|
+ <text>{{Math.ceil(windstatusData.fd_xdnum)}}</text>
|
|
<text>台</text>
|
|
<text>台</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -107,21 +127,21 @@
|
|
<view class="windMsg_main_msg flex justify-between">
|
|
<view class="windMsg_main_msg flex justify-between">
|
|
<view class="windMsgSty flex">
|
|
<view class="windMsgSty flex">
|
|
<view class="windMsgSty_left">
|
|
<view class="windMsgSty_left">
|
|
- <image src="../../static/jnImage/indexPage/tingjiNew.png" mode=""></image>
|
|
+ <image src="../../static/jnImage/indexPage/jn_shoulei.png" mode=""></image>
|
|
- <text>停机</text>
|
|
+ <text>受累</text>
|
|
</view>
|
|
</view>
|
|
<view class="windMsgSty_right flex justify-between">
|
|
<view class="windMsgSty_right flex justify-between">
|
|
- <text>600</text>
|
|
+ <text>{{Math.ceil(windstatusData.fd_slnum)}}</text>
|
|
<text>台</text>
|
|
<text>台</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="windMsgSty flex">
|
|
<view class="windMsgSty flex">
|
|
<view class="windMsgSty_left">
|
|
<view class="windMsgSty_left">
|
|
- <image src="../../static/jnImage/indexPage/lixianNew.png" mode=""></image>
|
|
+ <image src="../../static/jnImage/indexPage/jn_lixian.png" mode=""></image>
|
|
<text>离线</text>
|
|
<text>离线</text>
|
|
</view>
|
|
</view>
|
|
<view class="windMsgSty_right flex justify-between">
|
|
<view class="windMsgSty_right flex justify-between">
|
|
- <text>600</text>
|
|
+ <text>{{Math.ceil(windstatusData.fd_lxnum)}}</text>
|
|
<text>台</text>
|
|
<text>台</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -129,7 +149,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="powerMsg">
|
|
<view class="powerMsg">
|
|
- <view class="flex justify-center" style="margin-bottom: 6px;">
|
|
+ <view class="flex justify-center" style="margin-bottom: 6px;" @click="watchWindStatus('power')">
|
|
<view class="windMsg_title">
|
|
<view class="windMsg_title">
|
|
<image src="../../static/jnImage/indexPage/wancheng.png" mode=""></image>
|
|
<image src="../../static/jnImage/indexPage/wancheng.png" mode=""></image>
|
|
<text>光伏状态</text>
|
|
<text>光伏状态</text>
|
|
@@ -139,21 +159,21 @@
|
|
<view class="windMsg_main_msg flex justify-between">
|
|
<view class="windMsg_main_msg flex justify-between">
|
|
<view class="windMsgSty flex">
|
|
<view class="windMsgSty flex">
|
|
<view class="windMsgSty_left">
|
|
<view class="windMsgSty_left">
|
|
- <image src="../../static/jnImage/indexPage/yunxingGFNew.png" mode=""></image>
|
|
+ <image src="../../static/jnImage/indexPage/jn_jieru.png" mode=""></image>
|
|
<text>接入</text>
|
|
<text>接入</text>
|
|
</view>
|
|
</view>
|
|
<view class="windMsgSty_right flex justify-between">
|
|
<view class="windMsgSty_right flex justify-between">
|
|
- <text>600</text>
|
|
+ <text>{{Math.ceil(powerstatusData.jr_gf_jzts+powerstatusData.jr_gf_zcts)}}</text>
|
|
<text>台</text>
|
|
<text>台</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="windMsgSty flex">
|
|
<view class="windMsgSty flex">
|
|
<view class="windMsgSty_left">
|
|
<view class="windMsgSty_left">
|
|
- <image src="../../static/jnImage/indexPage/daijiP.png" mode=""></image>
|
|
+ <image src="../../static/jnImage/indexPage/jn_daiji.png" mode=""></image>
|
|
<text>待机</text>
|
|
<text>待机</text>
|
|
</view>
|
|
</view>
|
|
<view class="windMsgSty_right flex justify-between">
|
|
<view class="windMsgSty_right flex justify-between">
|
|
- <text>600</text>
|
|
+ <text>{{Math.ceil(windstatusData.gf_djnum)}}</text>
|
|
<text>台</text>
|
|
<text>台</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -161,21 +181,21 @@
|
|
<view class="windMsg_main_msg flex justify-between">
|
|
<view class="windMsg_main_msg flex justify-between">
|
|
<view class="windMsgSty flex">
|
|
<view class="windMsgSty flex">
|
|
<view class="windMsgSty_left">
|
|
<view class="windMsgSty_left">
|
|
- <image src="../../static/jnImage/indexPage/yunxingP.png" mode=""></image>
|
|
+ <image src="../../static/jnImage/indexPage/jn_bingwang.png" mode=""></image>
|
|
- <text>运行</text>
|
|
+ <text>并网</text>
|
|
</view>
|
|
</view>
|
|
<view class="windMsgSty_right flex justify-between">
|
|
<view class="windMsgSty_right flex justify-between">
|
|
- <text>600</text>
|
|
+ <text>{{Math.ceil(windstatusData.gf_yxnum)}}</text>
|
|
<text>台</text>
|
|
<text>台</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="windMsgSty flex">
|
|
<view class="windMsgSty flex">
|
|
<view class="windMsgSty_left">
|
|
<view class="windMsgSty_left">
|
|
- <image src="../../static/jnImage/indexPage/guzhangNew.png" mode=""></image>
|
|
+ <image src="../../static/jnImage/indexPage/jn_guzhang.png" mode=""></image>
|
|
<text>故障</text>
|
|
<text>故障</text>
|
|
</view>
|
|
</view>
|
|
<view class="windMsgSty_right flex justify-between">
|
|
<view class="windMsgSty_right flex justify-between">
|
|
- <text>600</text>
|
|
+ <text>{{Math.ceil(windstatusData.gf_gznum)}}</text>
|
|
<text>台</text>
|
|
<text>台</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -183,21 +203,43 @@
|
|
<view class="windMsg_main_msg flex justify-between">
|
|
<view class="windMsg_main_msg flex justify-between">
|
|
<view class="windMsgSty flex">
|
|
<view class="windMsgSty flex">
|
|
<view class="windMsgSty_left">
|
|
<view class="windMsgSty_left">
|
|
- <image src="../../static/jnImage/indexPage/gzwhNew.png" mode=""></image>
|
|
+ <image src="../../static/jnImage/indexPage/jn_jianxiu.png" mode=""></image>
|
|
- <text>维护</text>
|
|
+ <text>检修</text>
|
|
</view>
|
|
</view>
|
|
<view class="windMsgSty_right flex justify-between">
|
|
<view class="windMsgSty_right flex justify-between">
|
|
- <text>600</text>
|
|
+ <text>{{Math.ceil(windstatusData.gf_jxnum)}}</text>
|
|
<text>台</text>
|
|
<text>台</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="windMsgSty flex">
|
|
<view class="windMsgSty flex">
|
|
<view class="windMsgSty_left">
|
|
<view class="windMsgSty_left">
|
|
- <image src="../../static/jnImage/indexPage/lixianNew.png" mode=""></image>
|
|
+ <image src="../../static/jnImage/indexPage/jn_xiandian.png" mode=""></image>
|
|
|
|
+ <text>限电</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="windMsgSty_right flex justify-between">
|
|
|
|
+ <text>{{Math.ceil(windstatusData.gf_xdnum)}}</text>
|
|
|
|
+ <text>台</text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="windMsg_main_msg flex justify-between">
|
|
|
|
+ <view class="windMsgSty flex">
|
|
|
|
+ <view class="windMsgSty_left">
|
|
|
|
+ <image src="../../static/jnImage/indexPage/jn_shoulei.png" mode=""></image>
|
|
|
|
+ <text>受累</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="windMsgSty_right flex justify-between">
|
|
|
|
+ <text>{{Math.ceil(windstatusData.gf_slnum)}}</text>
|
|
|
|
+ <text>台</text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="windMsgSty flex">
|
|
|
|
+ <view class="windMsgSty_left">
|
|
|
|
+ <image src="../../static/jnImage/indexPage/jn_lixian.png" mode=""></image>
|
|
<text>离线</text>
|
|
<text>离线</text>
|
|
</view>
|
|
</view>
|
|
<view class="windMsgSty_right flex justify-between">
|
|
<view class="windMsgSty_right flex justify-between">
|
|
- <text>600</text>
|
|
+ <text>{{Math.ceil(windstatusData.gf_lxnum)}}</text>
|
|
<text>台</text>
|
|
<text>台</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -210,10 +252,10 @@
|
|
<text>实时监控</text>
|
|
<text>实时监控</text>
|
|
</view>
|
|
</view>
|
|
<view class="ssjk_main">
|
|
<view class="ssjk_main">
|
|
- <view class="ssjk_main_msg">
|
|
+ <view class="ssjk_main_msg" v-for="(item, index) in windData" :key="index">
|
|
<view class="ssjk_main_msg_tit flex">
|
|
<view class="ssjk_main_msg_tit flex">
|
|
<image src="../../static/jnImage/indexPage/windIcon.png" mode=""></image>
|
|
<image src="../../static/jnImage/indexPage/windIcon.png" mode=""></image>
|
|
- <text>宝龙山</text>
|
|
+ <text>{{item.name}}</text>
|
|
</view>
|
|
</view>
|
|
<view class="ssjk_main_msg_data flex">
|
|
<view class="ssjk_main_msg_data flex">
|
|
<view class="msg_data_sty flex">
|
|
<view class="msg_data_sty flex">
|
|
@@ -221,16 +263,16 @@
|
|
<text>风速</text>
|
|
<text>风速</text>
|
|
</view>
|
|
</view>
|
|
<view class="dataSty flex">
|
|
<view class="dataSty flex">
|
|
- <text>0.00</text>
|
|
+ <text>{{item.fs}}</text>
|
|
<text>m/s</text>
|
|
<text>m/s</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="msg_data_sty flex">
|
|
<view class="msg_data_sty flex">
|
|
<view class="msg_data_name">
|
|
<view class="msg_data_name">
|
|
- <text>有功功率</text>
|
|
+ <text>实际功率</text>
|
|
</view>
|
|
</view>
|
|
<view class="dataSty flex">
|
|
<view class="dataSty flex">
|
|
- <text>0.00</text>
|
|
+ <text>{{item.sjgl}}</text>
|
|
<text>MW</text>
|
|
<text>MW</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -239,7 +281,44 @@
|
|
<text>出现功率</text>
|
|
<text>出现功率</text>
|
|
</view>
|
|
</view>
|
|
<view class="dataSty flex">
|
|
<view class="dataSty flex">
|
|
- <text>0.00</text>
|
|
+ <text>{{item.cxgl}}</text>
|
|
|
|
+ <text>MW</text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="ssjk_main">
|
|
|
|
+ <view class="ssjk_main_msg" v-for="(item, index) in powerData" :key="index">
|
|
|
|
+ <view class="ssjk_main_msg_tit flex">
|
|
|
|
+ <image src="../../static/jnImage/indexPage/powerIcon.png" mode=""></image>
|
|
|
|
+ <text>{{item.name}}</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="ssjk_main_msg_data flex">
|
|
|
|
+ <view class="msg_data_sty flex">
|
|
|
|
+ <view class="msg_data_name">
|
|
|
|
+ <text>光照强度</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="dataSty flex">
|
|
|
|
+ <text>{{item.gzqd}}</text>
|
|
|
|
+ <text>m/s</text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="msg_data_sty flex">
|
|
|
|
+ <view class="msg_data_name">
|
|
|
|
+ <text>实际功率</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="dataSty flex">
|
|
|
|
+ <text>{{item.sjgl}}</text>
|
|
|
|
+ <text>MW</text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="msg_data_sty flex">
|
|
|
|
+ <view class="msg_data_name">
|
|
|
|
+ <text>出现功率</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="dataSty flex">
|
|
|
|
+ <text>{{item.cxgl}}</text>
|
|
<text>MW</text>
|
|
<text>MW</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -254,82 +333,161 @@
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
|
|
+ import {
|
|
|
|
+ cockpitMonitor
|
|
|
|
+ } from '../../api/home.js'
|
|
|
|
+ import {
|
|
|
|
+ windPowerDataApi
|
|
|
|
+ } from '../../api/common.js'
|
|
export default {
|
|
export default {
|
|
onLoad: function() {},
|
|
onLoad: function() {},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
mesExData: [],
|
|
mesExData: [],
|
|
- windPowerData: []
|
|
+ windPowerData: [],
|
|
|
|
+ timeData: {},
|
|
|
|
+ windstatusData: {},
|
|
|
|
+ powerstatusData: {},
|
|
|
|
+ windData: [],
|
|
|
|
+ powerData: []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- this.windPowerData = [{
|
|
+ this.getTimeDaya()
|
|
- name: '风速',
|
|
+ this.getHomeData()
|
|
- value: 7,
|
|
+ this.getwindPowerData("0", "-1");
|
|
- code: '(m/s)',
|
|
+ this.getwindPowerData("0", "-2");
|
|
- min: 6,
|
|
|
|
- max: 8
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: '日照强度',
|
|
|
|
- value: 10,
|
|
|
|
- code: '(m/s)',
|
|
|
|
- min: 6,
|
|
|
|
- max: 20
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: '功率',
|
|
|
|
- value: 191,
|
|
|
|
- code: '(万kW)',
|
|
|
|
- min: 0,
|
|
|
|
- max: 200
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: '理论功率',
|
|
|
|
- value: 459,
|
|
|
|
- code: '(万kW)',
|
|
|
|
- min: 0,
|
|
|
|
- max: 500
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
- this.mesExData = [{
|
|
|
|
- leftName: '容量',
|
|
|
|
- leftValue: 282.3,
|
|
|
|
- leftCode: '(WM)',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- leftName: '安全天数',
|
|
|
|
- leftValue: 20,
|
|
|
|
- leftCode: '(天)',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- leftName: '日发电量',
|
|
|
|
- leftValue: 282.3,
|
|
|
|
- leftCode: '(万kWh)'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- leftName: '预测电量',
|
|
|
|
- leftValue: 282.3,
|
|
|
|
- leftCode: '(万kWh)'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- leftName: '月发电量',
|
|
|
|
- leftValue: 282.3,
|
|
|
|
- leftCode: '(万kWh)'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- leftName: '年发电量',
|
|
|
|
- leftValue: 282.3,
|
|
|
|
- leftCode: '(万kWh)'
|
|
|
|
- },
|
|
|
|
- ]
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ //获取时间
|
|
|
|
+ getTimeDaya() {
|
|
|
|
+ let currentDate = new Date()
|
|
|
|
+ this.timeData.year = currentDate.getFullYear()
|
|
|
|
+ this.timeData.month = currentDate.getMonth() + 1
|
|
|
|
+ this.timeData.day = currentDate.getDate()
|
|
|
|
+ this.timeData.hour = currentDate.getHours() + ':'
|
|
|
|
+ this.timeData.minute = currentDate.getMinutes() < 10 ? '0' + currentDate.getMinutes() : currentDate
|
|
|
|
+ .getMinutes()
|
|
|
|
+ this.timeData.week = new Array('星期天', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六')[currentDate.getDay()]
|
|
|
|
+ },
|
|
|
|
+ //获取首页整体数据
|
|
|
|
+ getHomeData() {
|
|
|
|
+ let that = this
|
|
|
|
+ cockpitMonitor({
|
|
|
|
+ wpId: 'KGDL_FGS0'
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if (res.data) {
|
|
|
|
+ if (res.data.qt) {
|
|
|
|
+ let datas = res.data.qt
|
|
|
|
+ that.mesExData = [{
|
|
|
|
+ leftName: '容量',
|
|
|
|
+ leftValue: datas.zzjrl,
|
|
|
|
+ leftCode: '(WM)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ leftName: '安全天数',
|
|
|
|
+ leftValue: datas.aqts,
|
|
|
|
+ leftCode: '(天)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ leftName: '日发电量',
|
|
|
|
+ leftValue: datas.rfdl,
|
|
|
|
+ leftCode: '(万kWh)'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ leftName: '利用小时',
|
|
|
|
+ leftValue: datas.fdylyxs + datas.fdnlyxs,
|
|
|
|
+ leftCode: '(万kWh)'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ leftName: '月发电量',
|
|
|
|
+ leftValue: datas.yfdl,
|
|
|
|
+ leftCode: '(万kWh)'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ leftName: '年发电量',
|
|
|
|
+ leftValue: datas.nfdl,
|
|
|
|
+ leftCode: '(万kWh)'
|
|
|
|
+ },
|
|
|
|
+ ]
|
|
|
|
+ that.windPowerData = [{
|
|
|
|
+ name: '风速',
|
|
|
|
+ value: datas.ssfs,
|
|
|
|
+ code: '(m/s)',
|
|
|
|
+ min: 6,
|
|
|
|
+ max: 8
|
|
|
|
+ }, {
|
|
|
|
+ name: '日照强度',
|
|
|
|
+ value: datas.gzzs,
|
|
|
|
+ code: '(m/s)',
|
|
|
|
+ min: 6,
|
|
|
|
+ max: 20
|
|
|
|
+ }, {
|
|
|
|
+ name: '功率',
|
|
|
|
+ value: datas.sjgl,
|
|
|
|
+ code: '(万kW)',
|
|
|
|
+ min: 0,
|
|
|
|
+ max: 200
|
|
|
|
+ }, {
|
|
|
|
+ name: '理论功率',
|
|
|
|
+ value: datas.llgl,
|
|
|
|
+ code: '(万kW)',
|
|
|
|
+ min: 0,
|
|
|
|
+ max: 500
|
|
|
|
+ }]
|
|
|
|
+ }
|
|
|
|
+ if (res.data.cblpoint) {
|
|
|
|
+ that.powerstatusData = res.data.cblpoint
|
|
|
|
+ }
|
|
|
|
+ if (res.data.mxztmap) {
|
|
|
|
+ that.windstatusData = res.data.mxztmap
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ getwindPowerData(type1, type2) {
|
|
|
|
+ windPowerDataApi({
|
|
|
|
+ company: type1,
|
|
|
|
+ type: type2
|
|
|
|
+ })
|
|
|
|
+ .then((res) => {
|
|
|
|
+ if (Object.values(res.data.data).length) {
|
|
|
|
+ if (res.data.data.powerVos.length > 0) {
|
|
|
|
+ res.data.data.powerVos.forEach(item => {
|
|
|
|
+ if (type2 === "-1") {
|
|
|
|
+ let obj = {
|
|
|
|
+ name: item.wpname,
|
|
|
|
+ fs: Math.ceil(item.spped),
|
|
|
|
+ sjgl: Math.ceil(item.sjgl),
|
|
|
|
+ cxgl: Math.ceil(item.cxgl)
|
|
|
|
+ }
|
|
|
|
+ this.windData.push(obj)
|
|
|
|
+ } else {
|
|
|
|
+ let obj = {
|
|
|
|
+ name: item.wpname,
|
|
|
|
+ gzqd: Math.ceil(item.spped),
|
|
|
|
+ sjgl: Math.ceil(item.sjgl),
|
|
|
|
+ cxgl: Math.ceil(item.cxgl)
|
|
|
|
+ }
|
|
|
|
+ this.powerData.push(obj)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ this.windData = [];
|
|
|
|
+ this.powerData = [];
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
changeMsg() {
|
|
changeMsg() {
|
|
this.$tab.navigateTo('/pages/common/messagePage')
|
|
this.$tab.navigateTo('/pages/common/messagePage')
|
|
},
|
|
},
|
|
changeStation() {
|
|
changeStation() {
|
|
this.$tab.navigateTo('/pages/common/stationListPage')
|
|
this.$tab.navigateTo('/pages/common/stationListPage')
|
|
|
|
+ },
|
|
|
|
+ watchWindStatus(type) {
|
|
|
|
+ this.$tab.navigateTo(`/pages/common/windStatusPage?status=${type}`)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|