|
|
@@ -21,13 +21,13 @@
|
|
|
<view class="yichang-box ddflex">
|
|
|
<view class="yichang-item fflex" @click="jumpUrl('warning/abnormalAlarm/abnormalAlarm')">
|
|
|
<view class="yichang-title">异常告警</view>
|
|
|
- <view class="yichang-data">10<text class="symbol">条</text></view>
|
|
|
+ <view class="yichang-data">{{alarmCount}}<text class="symbol">条</text></view>
|
|
|
<view class="yichang-btn">去查看</view>
|
|
|
<image src="../../static/images/ycjg.png"></image>
|
|
|
</view>
|
|
|
<view class="yichang-item fflex" style="margin-left: 26rpx;" @click="jumpUrl('warning/orderAlarm/orderAlarm')">
|
|
|
<view class="yichang-title">异常处理</view>
|
|
|
- <view class="yichang-data">10<text class="symbol">个</text></view>
|
|
|
+ <view class="yichang-data">{{exceptionOrderCount}}<text class="symbol">个</text></view>
|
|
|
<view class="yichang-btn">去处理</view>
|
|
|
<image src="../../static/images/yccl.png"></image>
|
|
|
</view>
|
|
|
@@ -99,6 +99,9 @@
|
|
|
isLogin:false,
|
|
|
|
|
|
userInfos: null,
|
|
|
+
|
|
|
+ alarmCount:0,
|
|
|
+ exceptionOrderCount:0
|
|
|
};
|
|
|
},
|
|
|
|
|
|
@@ -140,6 +143,12 @@
|
|
|
req.getRequest('/admin/v2/userInfo',{},res=>{
|
|
|
|
|
|
})
|
|
|
+ },
|
|
|
+ getWarningData(){
|
|
|
+ req.getRequest('/admin/v2/alarm/alarmCount',{},res=>{
|
|
|
+ this.alarmCount = res.alarmCount?res.alarmCount:0
|
|
|
+ this.exceptionOrderCount = res.exceptionOrderCount?res.exceptionOrderCount:0
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
};
|