|
@@ -3,19 +3,19 @@
|
|
|
<!-- 导航栏 -->
|
|
|
<view class="navbar">
|
|
|
<view class="title">
|
|
|
- 能源中心 (电力110)
|
|
|
+ 能源中心
|
|
|
</view>
|
|
|
<view class="icon" @click="toDataMonitoringList">
|
|
|
<image class="img" src="@/assets/img/riLine-equalizer-line.svg" mode=""></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 标签 -->
|
|
|
- <view class="tabs-box">
|
|
|
- <view class="tabs" v-if="companyList.length != 0">
|
|
|
+ <view class="tabs-box" >
|
|
|
+ <view class="tabs" v-if="companyList.length >2">
|
|
|
<u-tabs :list="merchantList1" :is-scroll="false" active-color="#fff" inactive-color="#CCE2FF" bg-color="#1677FF"
|
|
|
:current="current" @change="change"></u-tabs>
|
|
|
</view>
|
|
|
- <view class="more" @click="popShow=true" v-if="companyList.length != 0">
|
|
|
+ <view class="more" @click="popShow=true" v-if="companyList.length >2">
|
|
|
<u-icon name="arrow-down" color="#fff" size="40"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -44,42 +44,42 @@
|
|
|
<view class="item" @click="toDataMonitoringList">
|
|
|
<view class="item-top">
|
|
|
<view class="img-box">
|
|
|
- <u-circle-progress active-color="#2979ff" :percent="8/15*100" width="88">
|
|
|
+ <u-circle-progress active-color="#2979ff" :percent="0" width="88">
|
|
|
</u-circle-progress>
|
|
|
</view>
|
|
|
<view class="number">
|
|
|
<view class="normal">
|
|
|
- 正常:8台
|
|
|
+ 正常:0台
|
|
|
</view>
|
|
|
<view class="abnormal">
|
|
|
- 异常:7台
|
|
|
+ 异常:0台
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 累计 -->
|
|
|
<view class="total">
|
|
|
- 本月累计报警 <text class="total-number">12</text> 次
|
|
|
+ 本月累计报警 <text class="total-number">0</text> 次
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<view class="item" @click="toWorkOrderManagement()">
|
|
|
<view class="item-top">
|
|
|
<view class="img-box">
|
|
|
- <u-circle-progress active-color="#2979ff" :percent="12/20*100" width="88">
|
|
|
+ <u-circle-progress active-color="#2979ff" :percent="0" width="88">
|
|
|
</u-circle-progress>
|
|
|
</view>
|
|
|
<view class="number">
|
|
|
<view class="normal">
|
|
|
- 未处理:8
|
|
|
+ 未处理:0
|
|
|
</view>
|
|
|
<view class="abnormal">
|
|
|
- 已处理:12
|
|
|
+ 已处理:0
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 累计 -->
|
|
|
<view class="total">
|
|
|
- 本月累计工单 <text class="total-number">20</text> 条
|
|
|
+ 本月累计工单 <text class="total-number">0</text> 条
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -144,7 +144,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 统计2 异常告警记录 -->
|
|
|
- <view class="statistics-2 statistics">
|
|
|
+ <view class="statistics-2 statistics" v-if="false">
|
|
|
<view class="title">
|
|
|
<view class="icon">
|
|
|
<image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
|
|
@@ -269,7 +269,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <energyCenterTabbar :current="0"></energyCenterTabbar>
|
|
|
+ <energyCenterTabbar :current="0" v-if="0"></energyCenterTabbar>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -313,6 +313,11 @@
|
|
|
var n = this.merchantList1[this.current];
|
|
|
this.merchantList1[this.current] = m;
|
|
|
this.merchantList2[index] = n;
|
|
|
+
|
|
|
+ this.companyId = item.id;
|
|
|
+ this.getPowerConsumption(0);
|
|
|
+ this.getEquipmentDataMonitoring(0);
|
|
|
+ this.popShow = false;
|
|
|
},
|
|
|
// 单位
|
|
|
getCompanyInfoList() {
|
|
@@ -425,21 +430,25 @@
|
|
|
this.getEquipmentDataMonitoring(0);
|
|
|
},
|
|
|
toDataMonitoringList() {
|
|
|
+ return
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/equipmentDataMonitoring/dataMonitoring-list'
|
|
|
})
|
|
|
},
|
|
|
toWorkOrderManagement() {
|
|
|
+ return
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/workOrderManagement/workOrderManagement'
|
|
|
})
|
|
|
},
|
|
|
toEquipmentElectricity() {
|
|
|
+ return
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/equipmentDataMonitoring/equipmentElectricity'
|
|
|
})
|
|
|
},
|
|
|
toElectronicMonitoring(item) {
|
|
|
+ return
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/equipmentDataMonitoring/electronicMonitoring'
|
|
|
})
|