|
@@ -157,7 +157,10 @@
|
|
|
<view class="txt">今日巡更</view>
|
|
|
</view>
|
|
|
<view class="list bimga" @click="getWarrantyFn" v-if="checkPermi(['wuYe:repair:list'])">
|
|
|
- <view class="imgs"><image :src="htabj" class="imgb"></image><view class="tips">3</view>
|
|
|
+ <view class="imgs"><image :src="htabj" class="imgb"></image><view class="tips">
|
|
|
+ <block v-if="countTips.propertyRepair>98">99+</block>
|
|
|
+ <block v-else>{{countTips.propertyRepair||0}}</block>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="txt">物业报修</view>
|
|
|
</view>
|
|
@@ -166,7 +169,10 @@
|
|
|
<view class="txt">员工管理</view>
|
|
|
</view>
|
|
|
<view class="list bimga" @click="getComplaintFn" v-if="checkPermi(['wuYe:suggestion:list'])">
|
|
|
- <view class="imgs"><image :src="htabl" class="imga"></image><view class="tips">1</view></view>
|
|
|
+ <view class="imgs"><image :src="htabl" class="imga"></image><view class="tips">
|
|
|
+ <block v-if="countTips.complaintSuggestion>98">99+</block>
|
|
|
+ <block v-else>{{countTips.complaintSuggestion||0}}</block>
|
|
|
+ </view></view>
|
|
|
<view class="txt">投诉建议</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -182,7 +188,10 @@
|
|
|
<view class="txt">党建信息</view>
|
|
|
</view>
|
|
|
<view class="list bimga" @click="getNewssqFn" v-if="checkPermi(['wuYe:news:list'])">
|
|
|
- <view class="imgs"><image :src="htabn" class="imgi"></image><view class="tips">27</view></view>
|
|
|
+ <view class="imgs"><image :src="htabn" class="imgi"></image><view class="tips">
|
|
|
+ <block v-if="countTips.commentInteractionUserCount>98">99+</block>
|
|
|
+ <block v-else>{{countTips.commentInteractionUserCount||0}}</block>
|
|
|
+ </view></view>
|
|
|
<view class="txt">社区资讯</view>
|
|
|
</view>
|
|
|
<view class="list bimga" @click="getNewsYgFn" v-if="checkPermi(['wuYe:manual:list'])">
|
|
@@ -208,7 +217,7 @@ import {getUserProfile} from "@/api/system/user.js"
|
|
|
import {repairList} from "@/api/work/service.js"
|
|
|
import self from '@/utils/location.js';
|
|
|
import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
|
|
|
-import {getCount} from "@/api/work/index.js"
|
|
|
+import {getCount,getCountTips} from "@/api/work/index.js"
|
|
|
export default {
|
|
|
components:{footers,notice},
|
|
|
data(){
|
|
@@ -251,6 +260,8 @@ import {getCount} from "@/api/work/index.js"
|
|
|
autoplay:false,
|
|
|
zhanflag:true,
|
|
|
count:"",//统计
|
|
|
+ countTips:'',//红点
|
|
|
+ userId:this.$store.state.user.userId,
|
|
|
noticelist:[],
|
|
|
}
|
|
|
},
|
|
@@ -272,6 +283,7 @@ import {getCount} from "@/api/work/index.js"
|
|
|
if(checkPermi(['wuYe:statistics:num:app'])){
|
|
|
this.getCount()
|
|
|
}
|
|
|
+ this.getCountTips()
|
|
|
if(checkPermi(['wuYe:repair:list'])){
|
|
|
this.repairList()
|
|
|
}
|
|
@@ -311,6 +323,16 @@ import {getCount} from "@/api/work/index.js"
|
|
|
// this.postGroup = response.postGroup
|
|
|
})
|
|
|
},
|
|
|
+ getCountTips(){
|
|
|
+ var params={
|
|
|
+ userId:this.userId
|
|
|
+ }
|
|
|
+ getCountTips(params).then(res=>{
|
|
|
+ if(res.code==200){
|
|
|
+ this.countTips=res.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
getUser() {
|
|
|
getUserProfile().then(response => {
|
|
|
this.roleGroup = response.roleGroup
|