|
@@ -44,8 +44,7 @@
|
|
|
<view class="item" @click="toDataMonitoringList">
|
|
|
<view class="item-top">
|
|
|
<view class="img-box">
|
|
|
- <u-circle-progress active-color="#2979ff"
|
|
|
- :percent="alarmsForm.okNum/(alarmsForm.okNum+alarmsForm.errorNum)*100" width="88">
|
|
|
+ <u-circle-progress active-color="#2979ff" :percent="alarmsPercent" width="88">
|
|
|
</u-circle-progress>
|
|
|
</view>
|
|
|
<view class="number">
|
|
@@ -285,6 +284,7 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ alarmsPercent: 0,
|
|
|
alarmsForm: {
|
|
|
okNum: 0,
|
|
|
errorNum: 0,
|
|
@@ -439,6 +439,7 @@
|
|
|
}).then((response) => {
|
|
|
uni.hideLoading();
|
|
|
this.alarmsForm = response.data;
|
|
|
+ this.alarmsPercent = alarmsForm.okNum/(alarmsForm.okNum+alarmsForm.errorNum)*100;
|
|
|
}).catch(error => {
|
|
|
uni.showToast({
|
|
|
title: error,
|