首页新增安全例会按钮
parent
0a0cfb6df3
commit
c1515f1b4f
|
@ -1,13 +1,14 @@
|
||||||
<template name="basics">
|
<template name="basics">
|
||||||
<view>
|
<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">
|
<cu-custom bgColor="bg-gradual-blueness" :isRingt="true">
|
||||||
<block slot="content">秦安安全首页</block>
|
<block slot="content">秦安安全首页</block>
|
||||||
<block slot="right">
|
<block slot="right">
|
||||||
<!-- <view class="icon-ui" @click="$noMultipleClicks(scan)">-->
|
<!-- <view class="icon-ui" @click="$noMultipleClicks(scan)">-->
|
||||||
<!-- <text class="cuIcon-scan"></text>-->
|
<!-- <text class="cuIcon-scan"></text>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<view @tap.stop="openAuth('CAMERA')">
|
<view @tap.stop="openAuth('CAMERA')">
|
||||||
<view class="icon-ui">
|
<view class="icon-ui">
|
||||||
<text class="cuIcon-scan"></text>
|
<text class="cuIcon-scan"></text>
|
||||||
|
@ -16,8 +17,10 @@
|
||||||
</block>
|
</block>
|
||||||
</cu-custom>
|
</cu-custom>
|
||||||
|
|
||||||
<view class="answerico" v-if="this.SURVEY_ID !='' " style="position: fixed; right: 20px; box-shadow: 0 0 5px #ccc; border-radius: 100%; ">
|
<view class="answerico" v-if="this.SURVEY_ID !='' "
|
||||||
<navigator class="swiper-item" hover-class="none" :url="'/pages/questionnaire/questionnaire?SURVEY_ID=' + 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>
|
<image src="../../static/icon-apps/wenjuan.png" mode="" style="width: 35px; height: 35px;"></image>
|
||||||
</navigator>
|
</navigator>
|
||||||
</view>
|
</view>
|
||||||
|
@ -89,7 +92,8 @@
|
||||||
<text>风险分布</text>
|
<text>风险分布</text>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</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">
|
<view class="home-apps-item-img">
|
||||||
<image src="../../static/icon-apps/home-fl.png" mode=""></image>
|
<image src="../../static/icon-apps/home-fl.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
|
@ -110,7 +114,8 @@
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</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">
|
<view class="home-apps-item-img">
|
||||||
<image src="../../static/icon-apps/home-zdgcgl.jpg" mode=""></image>
|
<image src="../../static/icon-apps/home-zdgcgl.jpg" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
|
@ -138,27 +143,41 @@
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</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;">
|
<view class="home-apps-item-img" style="position: relative;">
|
||||||
<image src="../../static/icon-apps/home-base.png" mode=""></image>
|
<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>
|
||||||
<view class="text">
|
<view class="text">
|
||||||
<text>安全环保检查</text>
|
<text>安全环保检查</text>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</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/safety-environmental-inspection/home">-->
|
||||||
|
|
||||||
<!-- <view class="home-apps-item-img">-->
|
<!-- <view class="home-apps-item-img">-->
|
||||||
<!-- <image src="../../static/icon-apps/home-base.png" mode=""></image>-->
|
<!-- <image src="../../static/icon-apps/home-base.png" mode=""></image>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- <view class="text">-->
|
<!-- <view class="text">-->
|
||||||
<!-- <text>安全环保检查</text>-->
|
<!-- <text>安全环保检查</text>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- <view v-if="safetyEnvironmentalInspection>0" class="cu-tag badge">{{ safetyEnvironmentalInspection }}</view>-->
|
<!-- <view v-if="safetyEnvironmentalInspection>0" class="cu-tag badge">{{ safetyEnvironmentalInspection }}</view>-->
|
||||||
<!-- </navigator>-->
|
<!-- </navigator>-->
|
||||||
|
|
||||||
<navigator class="home-apps-item" hover-class="none" url="/pages/application/speEquip/index"
|
<navigator class="home-apps-item" hover-class="none" url="/pages/application/speEquip/index"
|
||||||
v-show="premission.speEquip">
|
v-show="premission.speEquip">
|
||||||
|
@ -169,14 +188,15 @@
|
||||||
<text>设备巡检</text>
|
<text>设备巡检</text>
|
||||||
</view>
|
</view>
|
||||||
</navigator>
|
</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">
|
<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>
|
||||||
<view class="text">
|
<view class="text">
|
||||||
<text>人脸识别</text>
|
<text>安全例会</text>
|
||||||
</view>
|
</view>
|
||||||
</navigator> -->
|
</navigator>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
@ -190,7 +210,8 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="work-list">
|
<view class="work-list">
|
||||||
<view class="work-box">
|
<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">
|
||||||
<view class="job-list-img">
|
<view class="job-list-img">
|
||||||
<image src="../../static/icon-apps/jobico1.png" mode=""></image>
|
<image src="../../static/icon-apps/jobico1.png" mode=""></image>
|
||||||
|
@ -359,8 +380,8 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="main">
|
<view class="main">
|
||||||
<view>
|
<view>
|
||||||
<maoScroll :data="rollData" :showNum="showNum" :lineHeight="lineHeight" :animationScroll="animationScroll"
|
<maoScroll :data="rollData" :showNum="showNum" :lineHeight="lineHeight"
|
||||||
:animation="animation">
|
:animationScroll="animationScroll" :animation="animation">
|
||||||
<template v-slot="{line}">
|
<template v-slot="{line}">
|
||||||
<view class="flex-line" @click="$noMultipleClicks(gotRectify,line.HIDDEN_ID)">
|
<view class="flex-line" @click="$noMultipleClicks(gotRectify,line.HIDDEN_ID)">
|
||||||
<view class="oline" v-if="line.HIDDENDESCR">
|
<view class="oline" v-if="line.HIDDENDESCR">
|
||||||
|
@ -379,77 +400,77 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- <view class="home-date">-->
|
<!-- <view class="home-date">-->
|
||||||
<!-- <view class="home-work-title">-->
|
<!-- <view class="home-work-title">-->
|
||||||
<!-- <view class="title">-->
|
<!-- <view class="title">-->
|
||||||
<!-- <view class="q_title"></view>-->
|
<!-- <view class="q_title"></view>-->
|
||||||
<!-- <view class="text-black f30b">排查数据</view>-->
|
<!-- <view class="text-black f30b">排查数据</view>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- <!– <view class="this-date">更多</view> –>-->
|
<!-- <!– <view class="this-date">更多</view> –>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- <view class="home-date-list">-->
|
<!-- <view class="home-date-list">-->
|
||||||
<!-- <view class="qd-date">-->
|
<!-- <view class="qd-date">-->
|
||||||
<!-- <view class="qd-date-item">-->
|
<!-- <view class="qd-date-item">-->
|
||||||
<!-- <view class="date text-blue">-->
|
<!-- <view class="date text-blue">-->
|
||||||
<!-- {{ hdCount.monthTotal }}-->
|
<!-- {{ hdCount.monthTotal }}-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- <view class="name">-->
|
<!-- <view class="name">-->
|
||||||
<!-- 发现隐患数-->
|
<!-- 发现隐患数-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- <view class="qd-date-item">-->
|
<!-- <view class="qd-date-item">-->
|
||||||
<!-- <view class="date text-orange">-->
|
<!-- <view class="date text-orange">-->
|
||||||
<!-- {{ hdCount.monthChecked }}-->
|
<!-- {{ hdCount.monthChecked }}-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- <view class="name">-->
|
<!-- <view class="name">-->
|
||||||
<!-- 已验收隐患数-->
|
<!-- 已验收隐患数-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- <view class="qd-date-item">-->
|
<!-- <view class="qd-date-item">-->
|
||||||
<!-- <view class="date text-green">-->
|
<!-- <view class="date text-green">-->
|
||||||
<!-- {{ hdCount.monthTotal == 0 ? 0 : ((hdCount.monthChecked / hdCount.monthTotal * 100).toFixed(2)) }}%-->
|
<!-- {{ hdCount.monthTotal == 0 ? 0 : ((hdCount.monthChecked / hdCount.monthTotal * 100).toFixed(2)) }}%-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- <view class="name">-->
|
<!-- <view class="name">-->
|
||||||
<!-- 隐患整改率-->
|
<!-- 隐患整改率-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- <view class="qd-tag bg-blue">-->
|
<!-- <view class="qd-tag bg-blue">-->
|
||||||
<!-- <text>月</text>-->
|
<!-- <text>月</text>-->
|
||||||
<!-- <text>度</text>-->
|
<!-- <text>度</text>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- <view class="qd-date">-->
|
<!-- <view class="qd-date">-->
|
||||||
<!-- <view class="qd-date-item">-->
|
<!-- <view class="qd-date-item">-->
|
||||||
<!-- <view class="date text-blue">-->
|
<!-- <view class="date text-blue">-->
|
||||||
<!-- {{ hdCount.yearTotal }}-->
|
<!-- {{ hdCount.yearTotal }}-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- <view class="name">-->
|
<!-- <view class="name">-->
|
||||||
<!-- 发现隐患数-->
|
<!-- 发现隐患数-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- <view class="qd-date-item">-->
|
<!-- <view class="qd-date-item">-->
|
||||||
<!-- <view class="date text-orange">-->
|
<!-- <view class="date text-orange">-->
|
||||||
<!-- {{ hdCount.yearChecked }}-->
|
<!-- {{ hdCount.yearChecked }}-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- <view class="name">-->
|
<!-- <view class="name">-->
|
||||||
<!-- 已验收隐患数-->
|
<!-- 已验收隐患数-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- <view class="qd-date-item">-->
|
<!-- <view class="qd-date-item">-->
|
||||||
<!-- <view class="date text-green">-->
|
<!-- <view class="date text-green">-->
|
||||||
<!-- {{ hdCount.yearTotal == 0 ? 0 : ((hdCount.yearChecked / hdCount.yearTotal * 100).toFixed(2)) }}%-->
|
<!-- {{ hdCount.yearTotal == 0 ? 0 : ((hdCount.yearChecked / hdCount.yearTotal * 100).toFixed(2)) }}%-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- <view class="name">-->
|
<!-- <view class="name">-->
|
||||||
<!-- 隐患整改率-->
|
<!-- 隐患整改率-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- <view class="qd-tag bg-red">-->
|
<!-- <view class="qd-tag bg-red">-->
|
||||||
<!-- <text>年</text>-->
|
<!-- <text>年</text>-->
|
||||||
<!-- <text>度</text>-->
|
<!-- <text>度</text>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<!-- </view>-->
|
<!-- </view>-->
|
||||||
<view class="home-date">
|
<view class="home-date">
|
||||||
<view class="home-work-title">
|
<view class="home-work-title">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
|
@ -562,7 +583,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
basePath,
|
basePath,
|
||||||
loginSession,
|
loginSession,
|
||||||
loginUserId,
|
loginUserId,
|
||||||
|
@ -580,21 +601,22 @@ import {
|
||||||
projectManagerUrl,
|
projectManagerUrl,
|
||||||
setUpdateInfo,
|
setUpdateInfo,
|
||||||
updateInfo
|
updateInfo
|
||||||
} from '@/common/tool.js';
|
} from '@/common/tool.js';
|
||||||
|
|
||||||
import MescrollMixin from "@/components/mescroll-uni/mescroll-mixins.js";
|
import MescrollMixin from "@/components/mescroll-uni/mescroll-mixins.js";
|
||||||
import maoScroll from '@/components/mao-scroll/mao-scroll.vue';
|
import maoScroll from '@/components/mao-scroll/mao-scroll.vue';
|
||||||
import ykAuthpup from "@/components/yk-authpup/yk-authpup";
|
import ykAuthpup from "@/components/yk-authpup/yk-authpup";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
maoScroll,ykAuthpup
|
maoScroll,
|
||||||
|
ykAuthpup
|
||||||
},
|
},
|
||||||
mixins: [MescrollMixin], // 使用mixin (在main.js注册全局组件)
|
mixins: [MescrollMixin], // 使用mixin (在main.js注册全局组件)
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
keyProjectManagement: '',
|
keyProjectManagement: '',
|
||||||
safetyEnvironmentalInspection:0,//安全环保总数
|
safetyEnvironmentalInspection: 0, //安全环保总数
|
||||||
permissionID:'',
|
permissionID: '',
|
||||||
premission: {},
|
premission: {},
|
||||||
noClick: true,
|
noClick: true,
|
||||||
StatusBar: this.StatusBar,
|
StatusBar: this.StatusBar,
|
||||||
|
@ -628,7 +650,7 @@ export default {
|
||||||
rollData: [],
|
rollData: [],
|
||||||
eight_work_count: 0,
|
eight_work_count: 0,
|
||||||
updataPd: {},
|
updataPd: {},
|
||||||
modalName:''
|
modalName: ''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -664,28 +686,30 @@ export default {
|
||||||
// }, 1000);
|
// }, 1000);
|
||||||
// },
|
// },
|
||||||
methods: {
|
methods: {
|
||||||
getSafetyEnvironmentalInspectionCount(){
|
getSafetyEnvironmentalInspectionCount() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
uni.request({
|
uni.request({
|
||||||
url: basePath +'/app/safetyenvironmental/countCheck',
|
url: basePath + '/app/safetyenvironmental/countCheck',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
header:{
|
header: {
|
||||||
'Content-type':'application/x-www-form-urlencoded'
|
'Content-type': 'application/x-www-form-urlencoded'
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
CORPINFO_ID:corpinfoId,
|
CORPINFO_ID: corpinfoId,
|
||||||
INSPECTION_USER_ID:loginUser.USER_ID,
|
INSPECTION_USER_ID: loginUser.USER_ID,
|
||||||
INSPECTED_SITEUSER_ID: loginUser.USER_ID,
|
INSPECTED_SITEUSER_ID: loginUser.USER_ID,
|
||||||
INSPECTION_ORIGINATOR_ID: loginUser.USER_ID,
|
INSPECTION_ORIGINATOR_ID: loginUser.USER_ID,
|
||||||
tm:new Date().getTime()
|
tm: new Date().getTime()
|
||||||
},
|
},
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
if ("success" == res.data.result) {
|
if ("success" == res.data.result) {
|
||||||
_this.safetyEnvironmentalInspection = res.data.confirmCount.confirmCount
|
_this.safetyEnvironmentalInspection = res.data.confirmCount
|
||||||
+ res.data.checkedCount.checkedCount+ res.data.repulseCount.repulseCount
|
.confirmCount +
|
||||||
+res.data.repulseAndCheckCount.repulseAndCheckCount
|
res.data.checkedCount.checkedCount + res.data.repulseCount
|
||||||
|
.repulseCount +
|
||||||
|
res.data.repulseAndCheckCount.repulseAndCheckCount
|
||||||
resolve();
|
resolve();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -715,7 +739,7 @@ export default {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
IKnow(){
|
IKnow() {
|
||||||
this.modalName = ''
|
this.modalName = ''
|
||||||
setUpdateInfo(true)
|
setUpdateInfo(true)
|
||||||
// console.info(updateInfo)
|
// console.info(updateInfo)
|
||||||
|
@ -768,13 +792,16 @@ export default {
|
||||||
premissionList.set('commitment', true)
|
premissionList.set('commitment', true)
|
||||||
if (item.subMenu && item.subMenu.length > 0) {
|
if (item.subMenu && item.subMenu.length > 0) {
|
||||||
item.subMenu.map(child => {
|
item.subMenu.map(child => {
|
||||||
if (child.menu_NAME == '公司级承诺公告' && child.hasMenu) {
|
if (child.menu_NAME == '公司级承诺公告' && child
|
||||||
|
.hasMenu) {
|
||||||
premissionList.set('commitment-company', true)
|
premissionList.set('commitment-company', true)
|
||||||
}
|
}
|
||||||
if (child.menu_NAME == '车间级承诺公告' && child.hasMenu) {
|
if (child.menu_NAME == '车间级承诺公告' && child
|
||||||
|
.hasMenu) {
|
||||||
premissionList.set('commitment-workshop', true)
|
premissionList.set('commitment-workshop', true)
|
||||||
}
|
}
|
||||||
if (child.menu_NAME == '班组级承诺公告' && child.hasMenu) {
|
if (child.menu_NAME == '班组级承诺公告' && child
|
||||||
|
.hasMenu) {
|
||||||
premissionList.set('commitment-team', true)
|
premissionList.set('commitment-team', true)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -829,7 +856,9 @@ export default {
|
||||||
setCorpinfoId(null);
|
setCorpinfoId(null);
|
||||||
setDeptId(null);
|
setDeptId(null);
|
||||||
setloginUser(null);
|
setloginUser(null);
|
||||||
uni.removeStorage({key: 'USER'});
|
uni.removeStorage({
|
||||||
|
key: 'USER'
|
||||||
|
});
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: '/pages/login/home'
|
url: '/pages/login/home'
|
||||||
});
|
});
|
||||||
|
@ -966,7 +995,7 @@ export default {
|
||||||
// console.log(loginUser.ISSUPERVISE)
|
// console.log(loginUser.ISSUPERVISE)
|
||||||
// console.log(loginUser.ISMAIN)
|
// console.log(loginUser.ISMAIN)
|
||||||
// console.log(res.data.pd)
|
// console.log(res.data.pd)
|
||||||
if(loginUser.ISSUPERVISE == '1'){
|
if (loginUser.ISSUPERVISE == '1') {
|
||||||
_this.superviseDeptCount = res.data.pd;
|
_this.superviseDeptCount = res.data.pd;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -983,8 +1012,7 @@ export default {
|
||||||
showCancel: false,
|
showCancel: false,
|
||||||
content: '您处于离岗状态,无需检查清单。',
|
content: '您处于离岗状态,无需检查清单。',
|
||||||
confirmText: "返回", // 确认按钮文字
|
confirmText: "返回", // 确认按钮文字
|
||||||
success: (res) => {
|
success: (res) => {}
|
||||||
}
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getMonth() {
|
getMonth() {
|
||||||
|
@ -1059,8 +1087,8 @@ export default {
|
||||||
'Content-type': 'application/x-www-form-urlencoded'
|
'Content-type': 'application/x-www-form-urlencoded'
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
CORPINFO_ID: loginUser.CORPINFO_ID,
|
||||||
USER_ID:loginUser.USER_ID,
|
USER_ID: loginUser.USER_ID,
|
||||||
},
|
},
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
if ("success" == res.data.result) {
|
if ("success" == res.data.result) {
|
||||||
|
@ -1092,8 +1120,8 @@ export default {
|
||||||
'Content-type': 'application/x-www-form-urlencoded'
|
'Content-type': 'application/x-www-form-urlencoded'
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
CORPINFO_ID: loginUser.CORPINFO_ID,
|
||||||
USER_ID:loginUser.USER_ID
|
USER_ID: loginUser.USER_ID
|
||||||
},
|
},
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
if ("success" == res.data.result) {
|
if ("success" == res.data.result) {
|
||||||
|
@ -1141,14 +1169,16 @@ export default {
|
||||||
title: "服务器正在升级,请稍后再试。",
|
title: "服务器正在升级,请稍后再试。",
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
setTimeout(function () {
|
setTimeout(function() {
|
||||||
plus.runtime.quit();
|
plus.runtime.quit();
|
||||||
// ios quit方法无效,退出到登陆页
|
// ios quit方法无效,退出到登陆页
|
||||||
setloginUserId(null);
|
setloginUserId(null);
|
||||||
setCorpinfoId(null);
|
setCorpinfoId(null);
|
||||||
setDeptId(null);
|
setDeptId(null);
|
||||||
setloginUser(null);
|
setloginUser(null);
|
||||||
uni.removeStorage({key: 'USER'});
|
uni.removeStorage({
|
||||||
|
key: 'USER'
|
||||||
|
});
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/login/home'
|
url: '/pages/login/home'
|
||||||
});
|
});
|
||||||
|
@ -1175,7 +1205,7 @@ export default {
|
||||||
_this.hdCount.monthTotal = res.data.total;
|
_this.hdCount.monthTotal = res.data.total;
|
||||||
_this.hdCount.monthChecked = res.data.checked;
|
_this.hdCount.monthChecked = res.data.checked;
|
||||||
_this.hdCount.monthUncheck = res.data.uncheck;
|
_this.hdCount.monthUncheck = res.data.uncheck;
|
||||||
this.$forceUpdate();//强制刷新
|
this.$forceUpdate(); //强制刷新
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -1199,7 +1229,7 @@ export default {
|
||||||
_this.hdCount.yearTotal = res.data.total;
|
_this.hdCount.yearTotal = res.data.total;
|
||||||
_this.hdCount.yearChecked = res.data.checked;
|
_this.hdCount.yearChecked = res.data.checked;
|
||||||
_this.hdCount.yearUncheck = res.data.uncheck;
|
_this.hdCount.yearUncheck = res.data.uncheck;
|
||||||
this.$forceUpdate();//强制刷新
|
this.$forceUpdate(); //强制刷新
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -1251,7 +1281,7 @@ export default {
|
||||||
title: "服务器正在升级,请稍后再试。",
|
title: "服务器正在升级,请稍后再试。",
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
setTimeout(function () {
|
setTimeout(function() {
|
||||||
plus.runtime.quit();
|
plus.runtime.quit();
|
||||||
}, 2000);
|
}, 2000);
|
||||||
}
|
}
|
||||||
|
@ -1283,7 +1313,7 @@ export default {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
for (var i = 0; i < res.data.hiddenList.length; i++) {
|
for (var i = 0; i < res.data.hiddenList.length; i++) {
|
||||||
if (res.data.hiddenList[i].CREATTIME) {
|
if (res.data.hiddenList[i].CREATTIME) {
|
||||||
var subStr = new RegExp('-', 'ig');//创建正则表达式对象,不区分大小写,全局查找
|
var subStr = new RegExp('-', 'ig'); //创建正则表达式对象,不区分大小写,全局查找
|
||||||
let date = new Date(res.data.hiddenList[i].CREATTIME.replace(subStr, "/"))
|
let date = new Date(res.data.hiddenList[i].CREATTIME.replace(subStr, "/"))
|
||||||
res.data.hiddenList[i].CREATTIME = formatDate(date, 'MM-dd hh:mm')
|
res.data.hiddenList[i].CREATTIME = formatDate(date, 'MM-dd hh:mm')
|
||||||
}
|
}
|
||||||
|
@ -1304,7 +1334,7 @@ export default {
|
||||||
title: "服务器正在升级,请稍后再试。",
|
title: "服务器正在升级,请稍后再试。",
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
setTimeout(function () {
|
setTimeout(function() {
|
||||||
plus.runtime.quit();
|
plus.runtime.quit();
|
||||||
}, 2000);
|
}, 2000);
|
||||||
}
|
}
|
||||||
|
@ -1313,7 +1343,8 @@ export default {
|
||||||
//跳转事件
|
//跳转事件
|
||||||
gotRectify(e) {
|
gotRectify(e) {
|
||||||
uni.navigateTo({
|
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() {
|
// refresh() {
|
||||||
|
@ -1353,17 +1384,17 @@ export default {
|
||||||
// });
|
// });
|
||||||
// },
|
// },
|
||||||
|
|
||||||
openAuth(permissionID){
|
openAuth(permissionID) {
|
||||||
this.permissionID = permissionID;
|
this.permissionID = permissionID;
|
||||||
setTimeout(()=>{
|
setTimeout(() => {
|
||||||
this.$refs['authpup'].open();
|
this.$refs['authpup'].open();
|
||||||
},200)
|
}, 200)
|
||||||
},
|
},
|
||||||
|
|
||||||
scan() {
|
scan() {
|
||||||
let _this = this;
|
let _this = this;
|
||||||
uni.scanCode({
|
uni.scanCode({
|
||||||
success: function (res) {
|
success: function(res) {
|
||||||
if (res.result.indexOf('%_face') > 0) {
|
if (res.result.indexOf('%_face') > 0) {
|
||||||
_this.goToFace(res.result.substring(0, res.result.indexOf('%_face')))
|
_this.goToFace(res.result.substring(0, res.result.indexOf('%_face')))
|
||||||
} else {
|
} else {
|
||||||
|
@ -1372,7 +1403,10 @@ export default {
|
||||||
for (var i = 0; i < _this.totalList.length; i++) {
|
for (var i = 0; i < _this.totalList.length; i++) {
|
||||||
if (_this.totalList[i].LISTMANAGER_ID == listId) {
|
if (_this.totalList[i].LISTMANAGER_ID == listId) {
|
||||||
flag = true;
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1448,7 +1482,8 @@ export default {
|
||||||
//跳转事件
|
//跳转事件
|
||||||
goToList(e) {
|
goToList(e) {
|
||||||
uni.navigateTo({
|
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({
|
// uni.navigateTo({
|
||||||
// url: '/pages/application/hidden-trouble-investigation/hidden-trouble-app/check-items-list?listId='+e.listId+'&listName='+e.listName
|
// url: '/pages/application/hidden-trouble-investigation/hidden-trouble-app/check-items-list?listId='+e.listId+'&listName='+e.listName
|
||||||
|
@ -1460,115 +1495,118 @@ export default {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
.status_bar {
|
.status_bar {
|
||||||
height: var(--status-bar-height);
|
height: var(--status-bar-height);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: #2068d0;
|
background-color: #2068d0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.top_view {
|
.top_view {
|
||||||
height: var(--status-bar-height);
|
height: var(--status-bar-height);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
background-color: #2068d0;
|
background-color: #2068d0;
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*说明*/
|
/*说明*/
|
||||||
.notice-warp {
|
.notice-warp {
|
||||||
font-size: 26 upx;
|
font-size: 26 upx;
|
||||||
padding: 40 upx 0;
|
padding: 40 upx 0;
|
||||||
border-bottom: 1 upx solid #eee;
|
border-bottom: 1 upx solid #eee;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notice-warp .notice {
|
.notice-warp .notice {
|
||||||
color: #555;
|
color: #555;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notice-warp .btn-change {
|
.notice-warp .btn-change {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-top: 28 upx;
|
margin-top: 28 upx;
|
||||||
padding: 6 upx 16 upx;
|
padding: 6 upx 16 upx;
|
||||||
border: 1 upx solid #FF6990;
|
border: 1 upx solid #FF6990;
|
||||||
border-radius: 40 upx;
|
border-radius: 40 upx;
|
||||||
color: #FF6990;
|
color: #FF6990;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notice-warp .btn-change:active {
|
.notice-warp .btn-change:active {
|
||||||
opacity: .5;
|
opacity: .5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main {
|
.main {
|
||||||
padding: 0 30 upx;
|
padding: 0 30 upx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flex-line {
|
.flex-line {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flex-line .oline {
|
.flex-line .oline {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flex-line .otext {
|
.flex-line .otext {
|
||||||
width: 200 upx;
|
width: 200 upx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 20 upx;
|
padding: 20 upx;
|
||||||
background-color: #f7f8f8;
|
background-color: #f7f8f8;
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.noticeer {
|
.noticeer {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
border-radius: 10 upx;
|
border-radius: 10 upx;
|
||||||
padding: 20 upx;
|
padding: 20 upx;
|
||||||
margin-bottom: 20 upx;
|
margin-bottom: 20 upx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.noticeer image {
|
.noticeer image {
|
||||||
width: 40 upx;
|
width: 40 upx;
|
||||||
height: 40 upx;
|
height: 40 upx;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
margin-top: -5 upx;
|
margin-top: -5 upx;
|
||||||
margin-right: 5 upx;
|
margin-right: 5 upx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.answerico {
|
.answerico {
|
||||||
|
|
||||||
position: fixed;
|
position: fixed;
|
||||||
right: 20 upx;
|
right: 20 upx;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
z-index: 9;
|
z-index: 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
.answerico uni-image img {
|
.answerico uni-image img {
|
||||||
width: 70 px;
|
width: 70 px;
|
||||||
height: 70 px;
|
height: 70 px;
|
||||||
}
|
}
|
||||||
.cu-modal{ z-index: 999999999;}
|
|
||||||
|
|
||||||
.up-mainer{
|
.cu-modal {
|
||||||
|
z-index: 999999999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.up-mainer {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
width:80%;
|
width: 80%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
margin-left: 10%;
|
margin-left: 10%;
|
||||||
|
@ -1576,22 +1614,24 @@ export default {
|
||||||
|
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
}
|
}
|
||||||
.up-mainer .title{
|
|
||||||
|
.up-mainer .title {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
border-bottom: 1px solid #eee;
|
border-bottom: 1px solid #eee;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
}
|
}
|
||||||
.up-info{
|
|
||||||
|
.up-info {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding:0 20px;
|
padding: 0 20px;
|
||||||
line-height: 36px;
|
line-height: 36px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
height: 200px;
|
height: 200px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.know-btn{
|
.know-btn {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
padding: 8px 10px;
|
padding: 8px 10px;
|
||||||
background: #359ae1;
|
background: #359ae1;
|
||||||
|
|
Loading…
Reference in New Issue