<template> <view> <cu-custom bgColor="bg-gradual-blueness" :isBack="true" :isRingt="true"> <block slot="backText">返回</block> <block slot="content">有限空间作业管理</block> </cu-custom> <view class="apps-box"> <view class="apps-row"> <view class="apps-title"> <text class="apps-title-line"></text> <text>有限空间作业台账</text> </view> <view class="apps-warp"> <navigator class="apps-item" hover-class="none" url="/pages/application/limit-space/limit-space-list"> <view class="imgs action"> <image src="../../../../static/icon-apps/icon-pc-1.png" mode=""></image> </view> <view class="text-semi" style="text-align: center;"> <view>有限空间作业</view> <view>台账管理</view> </view> </navigator> </view> </view> <view class="apps-row"> <view class="apps-title"> <text class="apps-title-line"></text> <text>有限空间作业管理</text> </view> <view class="apps-warp"> <navigator class="apps-item" hover-class="none" url="/pages/application/high-risk-work/limited-space/apply/list"> <view class="imgs action"> <image src="../../../../static/icon-apps/icon-yxkj-1.png" mode=""></image> <view v-if="count.zero" class="cu-tag badge">{{count.zero}}</view> </view> <view class="text-semi" style="text-align: center;"> <view>有限空间作业</view> <view>管理申请</view> </view> </navigator> <navigator class="apps-item" hover-class="none" url="/pages/application/high-risk-work/limited-space/gas-analysis/list"> <view class="imgs action"> <image src="../../../../static/icon-apps/icon-yxkj-1.png" mode=""></image> <view v-if="count.one" class="cu-tag badge">{{count.one}}</view> </view> <view class="text-semi" style="text-align: center;"> <view>气体分析</view> </view> </navigator> <navigator class="apps-item" hover-class="none" url="/pages/application/high-risk-work/limited-space/work-unit-manager/list"> <view class="imgs action"> <image src="../../../../static/icon-apps/icon-yxkj-1.png" mode=""></image> <view v-if="count.two" class="cu-tag badge">{{count.two}}</view> </view> <view class="text-semi" style="text-align: center;"> <view>作业单位</view> <view>负责人确认</view> </view> </navigator> <navigator class="apps-item" hover-class="none" url="/pages/application/high-risk-work/limited-space/job-site-manager/list"> <view class="imgs action"> <image src="../../../../static/icon-apps/icon-yxkj-1.png" mode=""></image> <view v-if="count.three" class="cu-tag badge">{{count.three}}</view> </view> <view class="text-semi" style="text-align: center;"> <view>作业现场</view> <view>负责人审核</view> </view> </navigator> <navigator class="apps-item" hover-class="none" url="/pages/application/high-risk-work/limited-space/management-unit/list"> <view class="imgs action"> <image src="../../../../static/icon-apps/icon-yxkj-1.png" mode=""></image> <view v-if="count.four" class="cu-tag badge">{{count.four}}</view> </view> <view class="text-semi" style="text-align: center;"> <view>管理单位</view> <view>负责人审批</view> </view> </navigator> <navigator class="apps-item" hover-class="none" url="/pages/application/high-risk-work/limited-space/completion-acceptance/list"> <view class="imgs action"> <image src="../../../../static/icon-apps/icon-yxkj-1.png" mode=""></image> <view v-if="count.five" class="cu-tag badge">{{count.five}}</view> </view> <view class="text-semi" style="text-align: center;"> <view>作业单位</view> <view>负责人验收</view> </view> </navigator> <navigator class="apps-item" hover-class="none" url="/pages/application/high-risk-work/limited-space/completion-acceptance-management/list"> <view class="imgs action"> <image src="../../../../static/icon-apps/icon-yxkj-1.png" mode=""></image> <view v-if="count.six" class="cu-tag badge">{{count.six}}</view> </view> <view class="text-semi" style="text-align: center;"> <view>管理单位</view> <view>负责人验收</view> </view> </navigator> <navigator class="apps-item" hover-class="none" url="/pages/application/high-risk-work/limited-space/archive-management/list"> <view class="imgs action"> <image src="../../../../static/icon-apps/icon-yxkj-1.png" mode=""></image> <view v-if="count.COUNTACCEPTAPPLY" class="cu-tag badge">{{count.COUNTACCEPTAPPLY}}</view> </view> <view class="text-semi" style="text-align: center;"> <view>归档管理</view> </view> </navigator> </view> </view> <view class="cu-tabbar-height"></view> </view> </view> </template> <script> import { basePath, corpinfoId, loginUser, } from '@/common/tool.js'; export default { data() { return { count : {} }; }, onShow() { this.getData(); }, methods: { getData(){ var _this = this; uni.showLoading({ title:"加载中..." });//加载中动画 uni.request({ url: basePath +'/app/confinedspace/countCheck', method: 'POST', dataType: 'json', header: { 'Content-type':'application/x-www-form-urlencoded' }, data: { CORPINFO_ID:corpinfoId, USER_ID:loginUser.USER_ID, tm:new Date().getTime() }, success: (res) => { uni.hideLoading();//结束加载中动画 if ("success" == res.data.result) { _this.count = res.data.count; } } }) }, } } </script> <style> .app-banner{ width: 100%; height: 380upx; } .app-banner image{ width: 100%; height: 100%; } .apps-box {} .apps-row { padding: 20upx 20upx 10upx 20upx; background-color: #fff; margin-top: 20upx; } .apps-row:first-child{ margin-top: 0; } .apps-title { position: relative; padding-left: 20upx; color: #989898; padding-bottom: 20upx; } .apps-title-line { display: inline-block; background-color: #37a6ff; width: 10upx; height: 23upx; position: absolute; left: 0upx; top: 11upx; } .apps-warp { display: flex; flex-wrap: wrap; } .apps-item { display: flex; flex-direction: column; align-items: center; width: 25%; font-size: 25upx; margin-bottom: 20upx; } .apps-item .text-semi{ margin-top: 6upx; } .apps-item .action{ position: relative; } .apps-item .action .cu-tag.badge{ right: -20upx; } .apps-item .imgs { width: 50upx; height: 50upx; } .apps-item .imgs image { width: 100%; height: 100%; } </style>