qa-prevention-gwj-first-app/pages/application/accesscontrol/home.vue

240 lines
6.4 KiB
Vue
Raw Normal View History

2023-11-07 09:43:46 +08:00
<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/accesscontrol/carmanage/apply/list">
<view class="imgs action">
<image src="../../../static/icon-apps/icon-yxkj-1.png" mode=""></image>
</view>
<view class="text-semi" style="text-align: center;">
<view>外来车辆入场申请</view>
</view>
</navigator>
<navigator class="apps-item" hover-class="none" url="/pages/application/accesscontrol/carmanage/depttoexamine/list">
<view class="imgs action">
<image src="../../../static/icon-apps/icon-904.png" mode=""></image>
<view v-if="count.COUNT_CAR_EXAMINE" class="cu-tag badge">{{count.COUNT_CAR_EXAMINE}}</view>
</view>
<view class="text-semi" style="text-align: center;">
<view>职能部门审核</view>
</view>
</navigator>
<navigator class="apps-item" hover-class="none" url="/pages/application/accesscontrol/carmanage/deptapproval/list">
<view class="imgs action">
<image src="../../../static/icon-apps/icon-905.png" mode=""></image>
<view v-if="count.COUNT_CAR_APPROVE" class="cu-tag badge">{{count.COUNT_CAR_APPROVE}}</view>
</view>
<view class="text-semi" style="text-align: center;">
<view>安监部门审批</view>
</view>
</navigator>
<navigator class="apps-item" hover-class="none" url="/pages/application/accesscontrol/carmanage/sceneconfirm/list">
<view class="imgs action">
<image src="../../../static/icon-apps/icon-yxkj-2.png" mode=""></image>
<view v-if="count.COUNT_CAR_CONFIRM" class="cu-tag badge">{{count.COUNT_CAR_CONFIRM}}</view>
</view>
<view class="text-semi" style="text-align: center;">
<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/accesscontrol/outsidersmanage/apply/list">
<view class="imgs action">
<image src="../../../static/icon-apps/icon-yxkj-1.png" mode=""></image>
</view>
<view class="text-semi" style="text-align: center;">
<view>外来人员入场申请</view>
</view>
</navigator>
<navigator class="apps-item" hover-class="none" url="/pages/application/accesscontrol/outsidersmanage/depttoexamine/list">
<view class="imgs action">
<image src="../../../static/icon-apps/icon-904.png" mode=""></image>
<view v-if="count.COUNT_PEOPLE_EXAMINE" class="cu-tag badge">{{count.COUNT_PEOPLE_EXAMINE}}</view>
</view>
<view class="text-semi" style="text-align: center;">
<view>职能部门审核</view>
</view>
</navigator>
<navigator class="apps-item" hover-class="none" url="/pages/application/accesscontrol/outsidersmanage/deptapproval/list">
<view class="imgs action">
<image src="../../../static/icon-apps/icon-905.png" mode=""></image>
<view v-if="count.COUNT_PEOPLE_APPROVE" class="cu-tag badge">{{count.COUNT_PEOPLE_APPROVE}}</view>
</view>
<view class="text-semi" style="text-align: center;">
<view>安监部门审批</view>
</view>
</navigator>
<navigator class="apps-item" hover-class="none" url="/pages/application/accesscontrol/outsidersmanage/sceneconfirm/list">
<view class="imgs action">
<image src="../../../static/icon-apps/icon-yxkj-2.png" mode=""></image>
<view v-if="count.COUNT_PEOPLE_CONFIRM" class="cu-tag badge">{{count.COUNT_PEOPLE_CONFIRM}}</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,
loginUserId,
formatDate,
corpinfoId,
loginUser,
setloginUserId,
setCorpinfoId,
setloginUser,
setDeptId,
isRest
} from '@/common/tool.js';
export default {
data() {
return {
isRest :'',
count : {}
};
},
mounted(){
this.isRest = isRest;
},
onShow() {
this.getData();
},
methods: {
showRest(){
uni.showModal({
title: '提示',
showCancel:false,
content: '您处于离岗状态,无需检查清单。',
confirmText: "返回", // 确认按钮文字
success: (res) => {
}
})
},
getData(){
var _this = this;
uni.showLoading({
title:"加载中..."
});//加载中动画
uni.request({
url: basePath +'/app/outsiders/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>