213 lines
6.6 KiB
Vue
213 lines
6.6 KiB
Vue
<template>
|
|
<view>
|
|
<view class="app-banner">
|
|
<image src="../../static/apps-banner.png" mode=""></image>
|
|
</view>
|
|
<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/hidden-trouble-investigation/hidden-trouble-app/hidden-trouble-app">
|
|
<view class="imgs action">
|
|
<image src="../../static/icon-apps/icon-pc-1.png" mode=""></image>
|
|
</view>
|
|
<view class="text-semi">隐患排查</view>
|
|
</navigator>
|
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hidden-danger-management/hidden-danger-add/hidden-danger-add">
|
|
<view class="imgs action">
|
|
<image src="../../static/icon-apps/icon-pc-1.png" mode=""></image>
|
|
</view>
|
|
<view class="text-semi">隐患快报</view>
|
|
</navigator>
|
|
<navigator class="apps-item" hover-class="none" url="/pages/application/check-record/check_listmanager">
|
|
<view class="imgs action">
|
|
<image src="../../static/icon-apps/icon-pc-1.png" mode=""></image>
|
|
</view>
|
|
<view class="text-semi">检查记录</view>
|
|
</navigator>
|
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hidden-danger-management/hidden-danger-record/hidden-danger-record">
|
|
<view class="imgs action">
|
|
<image src="../../static/icon-apps/icon-zl-2.png" mode=""></image>
|
|
</view>
|
|
<view class="text-semi">隐患记录</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/hidden-danger-management/hidden-danger-confirm/hidden-danger-confirm-change">
|
|
<view class="imgs action">
|
|
<image src="../../static/icon-apps/icon-yh-1.png" mode=""></image>
|
|
<view v-if="hidCount.dqr >0" class="cu-tag badge">{{hidCount.dqr}}</view>
|
|
</view>
|
|
<view class="text-semi">隐患确认</view>
|
|
</navigator>
|
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hidden-danger-management/hidden-danger-neglect/hidden-danger-neglect-change">
|
|
<view class="date text-blue"/>
|
|
<view class="imgs action">
|
|
<image src="../../static/icon-apps/icon-201.png" mode=""></image>
|
|
</view>
|
|
<view class="text-semi">忽略隐患</view>
|
|
</navigator>
|
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hidden-danger-management/hidden-danger-rectification/hidden-danger-rectification-change">
|
|
<view class="imgs action">
|
|
<image src="../../static/icon-apps/icon-zl-3.png" mode=""></image>
|
|
<view v-if="hidCount.dzg >0" class="cu-tag badge">{{hidCount.dzg}}</view>
|
|
</view>
|
|
<view class="text-semi">隐患整改</view>
|
|
</navigator>
|
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hidden-danger-management/hidden-danger-disposal/hidden-danger-disposal-change">
|
|
<view class="imgs action">
|
|
<image src="../../static/icon-apps/icon-905.png" mode=""></image>
|
|
<view v-if="hidCount.tscz >0" class="cu-tag badge">{{hidCount.tscz}}</view>
|
|
</view>
|
|
<view class="text-semi">特殊处置审核</view>
|
|
</navigator>
|
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hidden-danger-management/hidden-danger-postpone/hidden-danger-postpone-change">
|
|
<view class="imgs action">
|
|
<image src="../../static/icon-apps/icon-202.png" mode=""></image>
|
|
<view v-if="hidCount.yq >0" class="cu-tag badge">{{hidCount.yq}}</view>
|
|
</view>
|
|
<view class="text-semi">延期审核</view>
|
|
</navigator>
|
|
<navigator class="apps-item" hover-class="none" url="/pages/application/hidden-danger-management/hidden-danger-check/hidden-danger-check">
|
|
<view class="imgs action">
|
|
<image src="../../static/icon-apps/icon-907.png" mode=""></image>
|
|
<view v-if="hidCount.dys >0" class="cu-tag badge">{{hidCount.dys}}</view>
|
|
</view>
|
|
<view class="text-semi">隐患验收</view>
|
|
</navigator>
|
|
<!-- <navigator class="apps-item" hover-class="none" url="/pages/application/hidden-danger-management/hidden-danger-acceptance/hidden-danger-acceptance-change">-->
|
|
<!-- <view class="imgs action">-->
|
|
<!-- <image src="../../static/icon-apps/icon-zl-2.png" mode=""></image>-->
|
|
<!-- </view>-->
|
|
<!-- <view class="text-semi">隐患验收</view>-->
|
|
<!-- </navigator>-->
|
|
</view>
|
|
</view>
|
|
<view class="cu-tabbar-height"></view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import {
|
|
basePath,loginUserId,formatDate,loginUser,setloginUserId,setCorpinfoId,setloginUser,setDeptId
|
|
} from '@/common/tool.js';
|
|
export default {
|
|
data() {
|
|
return {
|
|
loginUser :loginUser,
|
|
hidCount: [],
|
|
};
|
|
},
|
|
mounted(){
|
|
this.getWork();
|
|
},
|
|
methods: {
|
|
getWork(){
|
|
var _this = this;
|
|
uni.request({
|
|
url: basePath + '/app/hidden/getCountByUserId',
|
|
method: 'POST',
|
|
dataType: 'json',
|
|
header:{
|
|
'Content-type':'application/x-www-form-urlencoded'
|
|
},
|
|
data: {
|
|
userId: loginUserId,
|
|
CORPINFO_ID: loginUser.CORPINFO_ID,
|
|
USER_ID: loginUser.USER_ID,
|
|
USER_NAME: loginUser.NAME,
|
|
CHECK_DEPARTMENT_ID: loginUser.DEPARTMENT_ID,
|
|
IS_MAIN:loginUser.ISMAIN
|
|
},
|
|
success: (res) => {
|
|
if (res.data != null) {
|
|
this.hidCount = res.data.hidCount;
|
|
}
|
|
}
|
|
});
|
|
},
|
|
}
|
|
|
|
}
|
|
</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>
|