首页新增安全例会按钮
parent
0a0cfb6df3
commit
c1515f1b4f
|
@ -1,6 +1,7 @@
|
|||
<template name="basics">
|
||||
<view>
|
||||
<yk-authpup ref="authpup" type="top" @changeAuth="$noMultipleClicks(scan)" :permissionID="permissionID"></yk-authpup>
|
||||
<yk-authpup ref="authpup" type="top" @changeAuth="$noMultipleClicks(scan)" :permissionID="permissionID">
|
||||
</yk-authpup>
|
||||
|
||||
<cu-custom bgColor="bg-gradual-blueness" :isRingt="true">
|
||||
<block slot="content">秦安安全首页</block>
|
||||
|
@ -16,8 +17,10 @@
|
|||
</block>
|
||||
</cu-custom>
|
||||
|
||||
<view class="answerico" v-if="this.SURVEY_ID !='' " style="position: fixed; right: 20px; box-shadow: 0 0 5px #ccc; border-radius: 100%; ">
|
||||
<navigator class="swiper-item" hover-class="none" :url="'/pages/questionnaire/questionnaire?SURVEY_ID=' + this.SURVEY_ID">
|
||||
<view class="answerico" v-if="this.SURVEY_ID !='' "
|
||||
style="position: fixed; right: 20px; box-shadow: 0 0 5px #ccc; border-radius: 100%; ">
|
||||
<navigator class="swiper-item" hover-class="none"
|
||||
:url="'/pages/questionnaire/questionnaire?SURVEY_ID=' + this.SURVEY_ID">
|
||||
<image src="../../static/icon-apps/wenjuan.png" mode="" style="width: 35px; height: 35px;"></image>
|
||||
</navigator>
|
||||
</view>
|
||||
|
@ -89,7 +92,8 @@
|
|||
<text>风险分布</text>
|
||||
</view>
|
||||
</navigator>
|
||||
<navigator class="home-apps-item" hover-class="none" url="/pages/basics/study-files/study-files">
|
||||
<navigator class="home-apps-item" hover-class="none"
|
||||
url="/pages/basics/study-files/study-files">
|
||||
<view class="home-apps-item-img">
|
||||
<image src="../../static/icon-apps/home-fl.png" mode=""></image>
|
||||
</view>
|
||||
|
@ -110,7 +114,8 @@
|
|||
</view>
|
||||
</navigator>
|
||||
|
||||
<navigator class="home-apps-item" hover-class="none" url="/pages/application/key-project-management/index/index">
|
||||
<navigator class="home-apps-item" hover-class="none"
|
||||
url="/pages/application/key-project-management/index/index">
|
||||
<view class="home-apps-item-img">
|
||||
<image src="../../static/icon-apps/home-zdgcgl.jpg" mode=""></image>
|
||||
</view>
|
||||
|
@ -138,11 +143,25 @@
|
|||
</view>
|
||||
</navigator>
|
||||
|
||||
<navigator class="home-apps-item" hover-class="none" url="/pages/application/safety-environmental-inspection/home">
|
||||
|
||||
<!-- <navigator class="home-apps-item" hover-class="none" url="/pages/application/onlinexxks/face/index">
|
||||
<view class="home-apps-item-img">
|
||||
<image src="../../static/icon-apps/home-study.png" mode=""></image>
|
||||
</view>
|
||||
<view class="text">
|
||||
<text>人脸识别</text>
|
||||
</view>
|
||||
</navigator> -->
|
||||
</view>
|
||||
<view class="home-apps-list">
|
||||
<navigator class="home-apps-item" hover-class="none"
|
||||
url="/pages/application/safety-environmental-inspection/home">
|
||||
|
||||
<view class="home-apps-item-img" style="position: relative;">
|
||||
<image src="../../static/icon-apps/home-base.png" mode=""></image>
|
||||
<view v-if="safetyEnvironmentalInspection>0" class="cu-tag badge">{{ safetyEnvironmentalInspection }}</view>
|
||||
<view v-if="safetyEnvironmentalInspection>0" class="cu-tag badge">
|
||||
{{ safetyEnvironmentalInspection }}
|
||||
</view>
|
||||
</view>
|
||||
<view class="text">
|
||||
<text>安全环保检查</text>
|
||||
|
@ -169,14 +188,15 @@
|
|||
<text>设备巡检</text>
|
||||
</view>
|
||||
</navigator>
|
||||
<!-- <navigator class="home-apps-item" hover-class="none" url="/pages/application/onlinexxks/face/index">
|
||||
<navigator class="home-apps-item" hover-class="none" url="/pages/application/speEquip/index">
|
||||
<view class="home-apps-item-img">
|
||||
<image src="../../static/icon-apps/home-study.png" mode=""></image>
|
||||
<image src="../../static/icon-apps/safetymeeting.png" mode=""></image>
|
||||
</view>
|
||||
<view class="text">
|
||||
<text>人脸识别</text>
|
||||
<text>安全例会</text>
|
||||
</view>
|
||||
</navigator> -->
|
||||
</navigator>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
@ -190,7 +210,8 @@
|
|||
</view>
|
||||
<view class="work-list">
|
||||
<view class="work-box">
|
||||
<navigator v-if="isRest=='1'" class="swiper-item" hover-class="none" url="../" @click="showRest()">
|
||||
<navigator v-if="isRest=='1'" class="swiper-item" hover-class="none" url="../"
|
||||
@click="showRest()">
|
||||
<view class="job-list">
|
||||
<view class="job-list-img">
|
||||
<image src="../../static/icon-apps/jobico1.png" mode=""></image>
|
||||
|
@ -359,8 +380,8 @@
|
|||
</view>
|
||||
<view class="main">
|
||||
<view>
|
||||
<maoScroll :data="rollData" :showNum="showNum" :lineHeight="lineHeight" :animationScroll="animationScroll"
|
||||
:animation="animation">
|
||||
<maoScroll :data="rollData" :showNum="showNum" :lineHeight="lineHeight"
|
||||
:animationScroll="animationScroll" :animation="animation">
|
||||
<template v-slot="{line}">
|
||||
<view class="flex-line" @click="$noMultipleClicks(gotRectify,line.HIDDEN_ID)">
|
||||
<view class="oline" v-if="line.HIDDENDESCR">
|
||||
|
@ -587,7 +608,8 @@ import maoScroll from '@/components/mao-scroll/mao-scroll.vue';
|
|||
import ykAuthpup from "@/components/yk-authpup/yk-authpup";
|
||||
export default {
|
||||
components: {
|
||||
maoScroll,ykAuthpup
|
||||
maoScroll,
|
||||
ykAuthpup
|
||||
},
|
||||
mixins: [MescrollMixin], // 使用mixin (在main.js注册全局组件)
|
||||
data() {
|
||||
|
@ -683,9 +705,11 @@ export default {
|
|||
},
|
||||
success: (res) => {
|
||||
if ("success" == res.data.result) {
|
||||
_this.safetyEnvironmentalInspection = res.data.confirmCount.confirmCount
|
||||
+ res.data.checkedCount.checkedCount+ res.data.repulseCount.repulseCount
|
||||
+res.data.repulseAndCheckCount.repulseAndCheckCount
|
||||
_this.safetyEnvironmentalInspection = res.data.confirmCount
|
||||
.confirmCount +
|
||||
res.data.checkedCount.checkedCount + res.data.repulseCount
|
||||
.repulseCount +
|
||||
res.data.repulseAndCheckCount.repulseAndCheckCount
|
||||
resolve();
|
||||
}
|
||||
}
|
||||
|
@ -768,13 +792,16 @@ export default {
|
|||
premissionList.set('commitment', true)
|
||||
if (item.subMenu && item.subMenu.length > 0) {
|
||||
item.subMenu.map(child => {
|
||||
if (child.menu_NAME == '公司级承诺公告' && child.hasMenu) {
|
||||
if (child.menu_NAME == '公司级承诺公告' && child
|
||||
.hasMenu) {
|
||||
premissionList.set('commitment-company', true)
|
||||
}
|
||||
if (child.menu_NAME == '车间级承诺公告' && child.hasMenu) {
|
||||
if (child.menu_NAME == '车间级承诺公告' && child
|
||||
.hasMenu) {
|
||||
premissionList.set('commitment-workshop', true)
|
||||
}
|
||||
if (child.menu_NAME == '班组级承诺公告' && child.hasMenu) {
|
||||
if (child.menu_NAME == '班组级承诺公告' && child
|
||||
.hasMenu) {
|
||||
premissionList.set('commitment-team', true)
|
||||
}
|
||||
})
|
||||
|
@ -829,7 +856,9 @@ export default {
|
|||
setCorpinfoId(null);
|
||||
setDeptId(null);
|
||||
setloginUser(null);
|
||||
uni.removeStorage({key: 'USER'});
|
||||
uni.removeStorage({
|
||||
key: 'USER'
|
||||
});
|
||||
uni.reLaunch({
|
||||
url: '/pages/login/home'
|
||||
});
|
||||
|
@ -983,8 +1012,7 @@ export default {
|
|||
showCancel: false,
|
||||
content: '您处于离岗状态,无需检查清单。',
|
||||
confirmText: "返回", // 确认按钮文字
|
||||
success: (res) => {
|
||||
}
|
||||
success: (res) => {}
|
||||
})
|
||||
},
|
||||
getMonth() {
|
||||
|
@ -1148,7 +1176,9 @@ export default {
|
|||
setCorpinfoId(null);
|
||||
setDeptId(null);
|
||||
setloginUser(null);
|
||||
uni.removeStorage({key: 'USER'});
|
||||
uni.removeStorage({
|
||||
key: 'USER'
|
||||
});
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/home'
|
||||
});
|
||||
|
@ -1313,7 +1343,8 @@ export default {
|
|||
//跳转事件
|
||||
gotRectify(e) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/application/hidden-danger-management/hidden-danger-record/hidden-danger-record-detail?id=' + e,
|
||||
url: '/pages/application/hidden-danger-management/hidden-danger-record/hidden-danger-record-detail?id=' +
|
||||
e,
|
||||
});
|
||||
},
|
||||
// refresh() {
|
||||
|
@ -1372,7 +1403,10 @@ export default {
|
|||
for (var i = 0; i < _this.totalList.length; i++) {
|
||||
if (_this.totalList[i].LISTMANAGER_ID == listId) {
|
||||
flag = true;
|
||||
_this.goToList({listId: _this.totalList[i].LISTMANAGER_ID, listName: _this.totalList[i].NAME});
|
||||
_this.goToList({
|
||||
listId: _this.totalList[i].LISTMANAGER_ID,
|
||||
listName: _this.totalList[i].NAME
|
||||
});
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -1448,7 +1482,8 @@ export default {
|
|||
//跳转事件
|
||||
goToList(e) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/application/hidden-trouble-investigation/hidden-trouble-app/hidden-trouble-spot?listId=' + e.listId + '&listName=' + e.listName
|
||||
url: '/pages/application/hidden-trouble-investigation/hidden-trouble-app/hidden-trouble-spot?listId=' +
|
||||
e.listId + '&listName=' + e.listName
|
||||
});
|
||||
// uni.navigateTo({
|
||||
// url: '/pages/application/hidden-trouble-investigation/hidden-trouble-app/check-items-list?listId='+e.listId+'&listName='+e.listName
|
||||
|
@ -1562,7 +1597,10 @@ export default {
|
|||
width: 70 px;
|
||||
height: 70 px;
|
||||
}
|
||||
.cu-modal{ z-index: 999999999;}
|
||||
|
||||
.cu-modal {
|
||||
z-index: 999999999;
|
||||
}
|
||||
|
||||
.up-mainer {
|
||||
position: fixed;
|
||||
|
@ -1576,12 +1614,14 @@ export default {
|
|||
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
.up-mainer .title {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
border-bottom: 1px solid #eee;
|
||||
line-height: 40px;
|
||||
}
|
||||
|
||||
.up-info {
|
||||
width: 100%;
|
||||
padding: 0 20px;
|
||||
|
|
Loading…
Reference in New Issue