|
@@ -147,15 +147,15 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 箭头 -->
|
|
<!-- 箭头 -->
|
|
- <view class="more">
|
|
|
|
- <u-icon name="arrow-right" color="#d4d4d4" size="24"></u-icon>
|
|
|
|
- </view>
|
|
|
|
-
|
|
|
|
|
|
+ <view class="more">
|
|
|
|
+ <u-icon name="arrow-right" color="#d4d4d4" size="24"></u-icon>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
<!-- 统计2 异常告警记录 -->
|
|
<!-- 统计2 异常告警记录 -->
|
|
<view class="statistics-2 statistics" v-if="abnormalRecordsList.length != 0">
|
|
<view class="statistics-2 statistics" v-if="abnormalRecordsList.length != 0">
|
|
<view class="title">
|
|
<view class="title">
|
|
@@ -183,18 +183,18 @@
|
|
</view>
|
|
</view>
|
|
<view class="item-value">
|
|
<view class="item-value">
|
|
<view class="value-content">
|
|
<view class="value-content">
|
|
- <view class="value1">
|
|
|
|
- {{item.meterName}}
|
|
|
|
- </view>
|
|
|
|
- <view class="value2">
|
|
|
|
- {{item.installationAddressSimple}}
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <!-- 箭头 -->
|
|
|
|
- <view class="more">
|
|
|
|
- <u-icon name="arrow-right" color="#d4d4d4" size="24"></u-icon>
|
|
|
|
- </view>
|
|
|
|
-
|
|
|
|
|
|
+ <view class="value1">
|
|
|
|
+ {{item.meterName}}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="value2">
|
|
|
|
+ {{item.installationAddressSimple}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <!-- 箭头 -->
|
|
|
|
+ <view class="more">
|
|
|
|
+ <u-icon name="arrow-right" color="#d4d4d4" size="24"></u-icon>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
@@ -223,7 +223,7 @@
|
|
<view class="text1">
|
|
<view class="text1">
|
|
{{item.name}}
|
|
{{item.name}}
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
<view class="state">
|
|
<view class="state">
|
|
<view class="state1">
|
|
<view class="state1">
|
|
<view class="icon">
|
|
<view class="icon">
|
|
@@ -237,11 +237,11 @@
|
|
</view>
|
|
</view>
|
|
{{item.smokeStatus=='1' ? '正常' : '异常'}}
|
|
{{item.smokeStatus=='1' ? '正常' : '异常'}}
|
|
</view>
|
|
</view>
|
|
- <!-- 箭头 -->
|
|
|
|
- <view class="more">
|
|
|
|
- <u-icon name="arrow-right" color="#d4d4d4" size="24"></u-icon>
|
|
|
|
- </view>
|
|
|
|
-
|
|
|
|
|
|
+ <!-- 箭头 -->
|
|
|
|
+ <view class="more">
|
|
|
|
+ <u-icon name="arrow-right" color="#d4d4d4" size="24"></u-icon>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="company-name">
|
|
<view class="company-name">
|
|
@@ -305,7 +305,7 @@
|
|
<view class="infos-item">
|
|
<view class="infos-item">
|
|
<view class="icon">
|
|
<view class="icon">
|
|
平均功率因数:
|
|
平均功率因数:
|
|
-
|
|
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
<view class="text">
|
|
<view class="text">
|
|
{{item.remoteMonitorRecord.averPowerFactor.toFixed(2)}}
|
|
{{item.remoteMonitorRecord.averPowerFactor.toFixed(2)}}
|
|
@@ -331,7 +331,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
<!-- 故障类型 -->
|
|
<!-- 故障类型 -->
|
|
<view class="statistics-5 statistics" v-if="false">
|
|
<view class="statistics-5 statistics" v-if="false">
|
|
<view class="title">
|
|
<view class="title">
|
|
@@ -348,7 +348,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
<!-- 工单处理 -->
|
|
<!-- 工单处理 -->
|
|
<view class="statistics-6 statistics" v-if="false">
|
|
<view class="statistics-6 statistics" v-if="false">
|
|
<view class="title">
|
|
<view class="title">
|
|
@@ -455,9 +455,9 @@
|
|
onLoad() {
|
|
onLoad() {
|
|
var date = new Date();
|
|
var date = new Date();
|
|
var year = date.getFullYear();
|
|
var year = date.getFullYear();
|
|
- var month = date.getMonth()+1 >= 10 ? date.getMonth()+1 : '0'+(date.getMonth()+1);
|
|
|
|
|
|
+ var month = date.getMonth() + 1 >= 10 ? date.getMonth() + 1 : '0' + (date.getMonth() + 1);
|
|
this.queryDate = year + '-' + month;
|
|
this.queryDate = year + '-' + month;
|
|
-
|
|
|
|
|
|
+
|
|
this.getPowerConsumption(0);
|
|
this.getPowerConsumption(0);
|
|
this.getEquipmentDataMonitoring(0);
|
|
this.getEquipmentDataMonitoring(0);
|
|
this.getCompanyInfoList();
|
|
this.getCompanyInfoList();
|
|
@@ -472,8 +472,8 @@
|
|
},
|
|
},
|
|
beforeDestroy() {
|
|
beforeDestroy() {
|
|
this.clearTimer(); // 组件销毁前清除定时器
|
|
this.clearTimer(); // 组件销毁前清除定时器
|
|
- this.intervalReady=false;
|
|
|
|
- console.log( "组件销毁前清除定时器")
|
|
|
|
|
|
+ this.intervalReady = false;
|
|
|
|
+ console.log("组件销毁前清除定时器")
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
clearTimer() {
|
|
clearTimer() {
|
|
@@ -487,7 +487,7 @@
|
|
this.intervalId = setInterval(() => {
|
|
this.intervalId = setInterval(() => {
|
|
// 每隔5秒运行的代码
|
|
// 每隔5秒运行的代码
|
|
// console.log('这段代码每隔5秒运行一次');
|
|
// console.log('这段代码每隔5秒运行一次');
|
|
- this.getPowerConsumption(0,true)
|
|
|
|
|
|
+ this.getPowerConsumption(0, true)
|
|
}, 60000);
|
|
}, 60000);
|
|
},
|
|
},
|
|
merchantChange(item, index) {
|
|
merchantChange(item, index) {
|
|
@@ -518,7 +518,7 @@
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
this.companyList = response.data.companyInfoList;
|
|
this.companyList = response.data.companyInfoList;
|
|
var list = response.data.companyInfoList;
|
|
var list = response.data.companyInfoList;
|
|
-
|
|
|
|
|
|
+
|
|
// for (var i = 0; i < list.length; i++) {
|
|
// for (var i = 0; i < list.length; i++) {
|
|
// list[i].name = list[i].fullName;
|
|
// list[i].name = list[i].fullName;
|
|
// }
|
|
// }
|
|
@@ -528,7 +528,7 @@
|
|
} else {
|
|
} else {
|
|
this.merchantList1 = list;
|
|
this.merchantList1 = list;
|
|
}
|
|
}
|
|
- if(list.length > 1) {
|
|
|
|
|
|
+ if (list.length > 1) {
|
|
this.merchantList1.unshift({
|
|
this.merchantList1.unshift({
|
|
id: '',
|
|
id: '',
|
|
name: '全部'
|
|
name: '全部'
|
|
@@ -608,12 +608,12 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 用电量
|
|
// 用电量
|
|
- getPowerConsumption(pl,interval) {
|
|
|
|
|
|
+ getPowerConsumption(pl, interval) {
|
|
this.pageIndexp = this.pageIndexp + pl;
|
|
this.pageIndexp = this.pageIndexp + pl;
|
|
if (this.pageIndexp > this.totalPagep) {
|
|
if (this.pageIndexp > this.totalPagep) {
|
|
this.pageIndexp = 1;
|
|
this.pageIndexp = 1;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
if (!interval) {
|
|
if (!interval) {
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
title: "加载中",
|
|
title: "加载中",
|
|
@@ -630,8 +630,8 @@
|
|
}
|
|
}
|
|
this.kWhList = response.data.data;
|
|
this.kWhList = response.data.data;
|
|
this.totalPagep = response.data.totalPage;
|
|
this.totalPagep = response.data.totalPage;
|
|
-
|
|
|
|
- if(!interval){
|
|
|
|
|
|
+
|
|
|
|
+ if (!interval) {
|
|
this.startInterval(); // 组件挂载后开始间隔
|
|
this.startInterval(); // 组件挂载后开始间隔
|
|
}
|
|
}
|
|
}).catch(error => {
|
|
}).catch(error => {
|
|
@@ -656,7 +656,7 @@
|
|
}).then((response) => {
|
|
}).then((response) => {
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
this.alarmsForm = response.data;
|
|
this.alarmsForm = response.data;
|
|
- if(this.alarmsForm.okNum != 0) {
|
|
|
|
|
|
+ if (this.alarmsForm.okNum != 0) {
|
|
this.alarmsPercent = this.alarmsForm.okNum / (this.alarmsForm.okNum + this.alarmsForm.errorNum) * 100;
|
|
this.alarmsPercent = this.alarmsForm.okNum / (this.alarmsForm.okNum + this.alarmsForm.errorNum) * 100;
|
|
}
|
|
}
|
|
}).catch(error => {
|
|
}).catch(error => {
|
|
@@ -850,14 +850,14 @@
|
|
data[2].value = list.okNum; //正常运行
|
|
data[2].value = list.okNum; //正常运行
|
|
data[3].value = list.errorDeviceNum; //设备异常
|
|
data[3].value = list.errorDeviceNum; //设备异常
|
|
data[4].value = list.errorOnlineNum; //设备离线
|
|
data[4].value = list.errorOnlineNum; //设备离线
|
|
-
|
|
|
|
|
|
+
|
|
for (var i = 0; i < data.length; i++) {
|
|
for (var i = 0; i < data.length; i++) {
|
|
- if(data[i].value != 0) {
|
|
|
|
|
|
+ if (data[i].value != 0) {
|
|
data2.push(data[i]);
|
|
data2.push(data[i]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
var option = {
|
|
var option = {
|
|
tooltip: {
|
|
tooltip: {
|
|
trigger: 'item'
|
|
trigger: 'item'
|
|
@@ -928,8 +928,8 @@
|
|
},
|
|
},
|
|
toElectronicMonitoring(item) {
|
|
toElectronicMonitoring(item) {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url: '/pages/equipmentDataMonitoring/electronicMonitoring?id=' + item.id + '&name=' + item.name
|
|
|
|
- + '&companyId=' + item.companyId
|
|
|
|
|
|
+ url: '/pages/equipmentDataMonitoring/electronicMonitoring?id=' + item.id + '&name=' + item.name +
|
|
|
|
+ '&companyId=' + item.companyId
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -954,12 +954,13 @@
|
|
padding-right: 32rpx;
|
|
padding-right: 32rpx;
|
|
color: rgba(51, 51, 51, 1);
|
|
color: rgba(51, 51, 51, 1);
|
|
font-size: 32rpx;
|
|
font-size: 32rpx;
|
|
-
|
|
|
|
|
|
+
|
|
.tabs {
|
|
.tabs {
|
|
width: 88%;
|
|
width: 88%;
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
/deep/.u-tab-item {
|
|
/deep/.u-tab-item {
|
|
width: 25% !important;
|
|
width: 25% !important;
|
|
flex: none !important;
|
|
flex: none !important;
|
|
@@ -1260,10 +1261,11 @@
|
|
.item-value {
|
|
.item-value {
|
|
text-align: right;
|
|
text-align: right;
|
|
display: flex;
|
|
display: flex;
|
|
- align-items: center;
|
|
|
|
- .more{
|
|
|
|
- margin-left: 8rpx;
|
|
|
|
- }
|
|
|
|
|
|
+ align-items: center;
|
|
|
|
+
|
|
|
|
+ .more {
|
|
|
|
+ margin-left: 8rpx;
|
|
|
|
+ }
|
|
|
|
|
|
.value1 {
|
|
.value1 {
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
@@ -1292,20 +1294,21 @@
|
|
color: rgba(51, 51, 51, 1);
|
|
color: rgba(51, 51, 51, 1);
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
-
|
|
|
|
- .company-name{
|
|
|
|
- color: rgba(119,119,119,1);
|
|
|
|
|
|
+
|
|
|
|
+ .company-name {
|
|
|
|
+ color: rgba(119, 119, 119, 1);
|
|
font-size: 24rpx;
|
|
font-size: 24rpx;
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
|
|
+
|
|
.state {
|
|
.state {
|
|
margin-left: 12rpx;
|
|
margin-left: 12rpx;
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
color: rgba(255, 123, 0, 1);
|
|
color: rgba(255, 123, 0, 1);
|
|
-
|
|
|
|
|
|
+
|
|
text {
|
|
text {
|
|
margin-right: 8rpx;
|
|
margin-right: 8rpx;
|
|
display: inline-block;
|
|
display: inline-block;
|
|
@@ -1313,18 +1316,18 @@
|
|
height: 16rpx;
|
|
height: 16rpx;
|
|
border-radius: 999px;
|
|
border-radius: 999px;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.off-line {
|
|
.off-line {
|
|
-
|
|
|
|
|
|
+
|
|
background-color: rgba(255, 123, 0, 1);
|
|
background-color: rgba(255, 123, 0, 1);
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.on-line {
|
|
.on-line {
|
|
background-color: rgba(0, 185, 98, 1);
|
|
background-color: rgba(0, 185, 98, 1);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.state2 {
|
|
.state2 {
|
|
color: rgba(0, 185, 98, 1);
|
|
color: rgba(0, 185, 98, 1);
|
|
}
|
|
}
|
|
@@ -1340,9 +1343,10 @@
|
|
align-items: center;
|
|
align-items: center;
|
|
margin-left: 24rpx;
|
|
margin-left: 24rpx;
|
|
}
|
|
}
|
|
- .more{
|
|
|
|
- margin-left: 8rpx;
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ .more {
|
|
|
|
+ margin-left: 8rpx;
|
|
|
|
+ }
|
|
|
|
|
|
.img {
|
|
.img {
|
|
width: 32rpx;
|
|
width: 32rpx;
|
|
@@ -1351,7 +1355,7 @@
|
|
margin-right: 8rpx;
|
|
margin-right: 8rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
// 监控信息
|
|
// 监控信息
|
|
.infos {
|
|
.infos {
|
|
@@ -1364,23 +1368,22 @@
|
|
|
|
|
|
.infos-item {
|
|
.infos-item {
|
|
width: 38%;
|
|
width: 38%;
|
|
-
|
|
|
|
|
|
+
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
- color: rgba(51,51,51,1);
|
|
|
|
|
|
+ color: rgba(51, 51, 51, 1);
|
|
font-size: 22rpx;
|
|
font-size: 22rpx;
|
|
// margin-right: 16rpx;
|
|
// margin-right: 16rpx;
|
|
margin-bottom: 8rpx;
|
|
margin-bottom: 8rpx;
|
|
- .icon{
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ .icon {}
|
|
}
|
|
}
|
|
|
|
|
|
.text {
|
|
.text {
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1476,9 +1479,8 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
/deep/.u-drawer {
|
|
/deep/.u-drawer {
|
|
z-index: 999 !important;
|
|
z-index: 999 !important;
|
|
}
|
|
}
|
|
-
|
|
|
|
</style>
|
|
</style>
|