| | |
| | | </view> |
| | | <view class="list"> |
| | | <view class="first" @click="goExamine" v-if="role == '审核领导'"> |
| | | <view class="badge"> |
| | | <u-badge type="error" :absolute="true" :offset="[90 + statusBarHeight ,65]" max="99" :value="examineNum" style="line-height: 40px;font-size: 14px;width: 30px;height: 40px;"> |
| | | </u-badge> |
| | | </view> |
| | | <view class="icon"> |
| | | <image src="../../../static/examine.png" class="img"></image>预警审核 |
| | | </view> |
| | |
| | | |
| | | <script> |
| | | import tabBar from '../tabBarIndex.vue' |
| | | import {getExamine} from '../../../api/examine.js' |
| | | export default { |
| | | components:{ |
| | | tabBar |
| | |
| | | return { |
| | | page: 'pages/tabBar/firstPage/firstPage', |
| | | statusBarHeight: '', |
| | | leaderType: 'da' |
| | | leaderType: 'da', |
| | | examineNum: 0, |
| | | data: { |
| | | pageIndex: 1, |
| | | pageSize: 9999, |
| | | searchParams: { |
| | | emergType: null,//1-紧急;2-常规 |
| | | warningLevel: null,//1-红色预警;2-橙色预警;3-黄色预警;4-蓝色预警 |
| | | reviewStatus: null//1:未审核,2:已审核,3:审核已驳回 |
| | | } |
| | | }, |
| | | } |
| | | |
| | | }, |
| | |
| | | uni.hideTabBar(); |
| | | this.role = uni.getStorageSync('roleName'); |
| | | console.log("role",this.role) |
| | | |
| | | }, |
| | | onShow(){ |
| | | this.getNum(); |
| | | }, |
| | | methods: { |
| | | getNum(){ |
| | | this.data.searchParams.reviewStatus = 1; |
| | | getExamine(this.data).then(res => { |
| | | if(res.code == 100) { |
| | | if(res.data && res.data.length > 0){ |
| | | this.examineNum = res.data.length; |
| | | }else { |
| | | this.examineNum = 0; |
| | | } |
| | | }else{ |
| | | uni.$u.toast(res.msg) |
| | | } |
| | | }) |
| | | }, |
| | | goExamine() { |
| | | uni.switchTab({ |
| | | url: '/pages/tabBar/examine/examine' |
| | |
| | | height: 20px; |
| | | margin-right: 6px; |
| | | } |
| | | .badge span{ |
| | | text-align: center; |
| | | width: 100%; |
| | | } |
| | | </style> |