首页新增安全例会按钮
parent
0a0cfb6df3
commit
c1515f1b4f
|
@ -1,13 +1,14 @@
|
|||
<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>
|
||||
<block slot="right">
|
||||
<!-- <view class="icon-ui" @click="$noMultipleClicks(scan)">-->
|
||||
<!-- <text class="cuIcon-scan"></text>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="icon-ui" @click="$noMultipleClicks(scan)">-->
|
||||
<!-- <text class="cuIcon-scan"></text>-->
|
||||
<!-- </view>-->
|
||||
<view @tap.stop="openAuth('CAMERA')">
|
||||
<view class="icon-ui">
|
||||
<text class="cuIcon-scan"></text>
|
||||
|
@ -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,27 +143,41 @@
|
|||
</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>
|
||||
</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/safety-environmental-inspection/home">-->
|
||||
|
||||
<!-- <view class="home-apps-item-img">-->
|
||||
<!-- <image src="../../static/icon-apps/home-base.png" mode=""></image>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="text">-->
|
||||
<!-- <text>安全环保检查</text>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view v-if="safetyEnvironmentalInspection>0" class="cu-tag badge">{{ safetyEnvironmentalInspection }}</view>-->
|
||||
<!-- </navigator>-->
|
||||
<!-- <view class="home-apps-item-img">-->
|
||||
<!-- <image src="../../static/icon-apps/home-base.png" mode=""></image>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="text">-->
|
||||
<!-- <text>安全环保检查</text>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view v-if="safetyEnvironmentalInspection>0" class="cu-tag badge">{{ safetyEnvironmentalInspection }}</view>-->
|
||||
<!-- </navigator>-->
|
||||
|
||||
<navigator class="home-apps-item" hover-class="none" url="/pages/application/speEquip/index"
|
||||
v-show="premission.speEquip">
|
||||
|
@ -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">
|
||||
|
@ -379,77 +400,77 @@
|
|||
</view>
|
||||
</view>
|
||||
|
||||
<!-- <view class="home-date">-->
|
||||
<!-- <view class="home-work-title">-->
|
||||
<!-- <view class="title">-->
|
||||
<!-- <view class="q_title"></view>-->
|
||||
<!-- <view class="text-black f30b">排查数据</view>-->
|
||||
<!-- </view>-->
|
||||
<!-- <!– <view class="this-date">更多</view> –>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="home-date-list">-->
|
||||
<!-- <view class="qd-date">-->
|
||||
<!-- <view class="qd-date-item">-->
|
||||
<!-- <view class="date text-blue">-->
|
||||
<!-- {{ hdCount.monthTotal }}-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="name">-->
|
||||
<!-- 发现隐患数-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="qd-date-item">-->
|
||||
<!-- <view class="date text-orange">-->
|
||||
<!-- {{ hdCount.monthChecked }}-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="name">-->
|
||||
<!-- 已验收隐患数-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="qd-date-item">-->
|
||||
<!-- <view class="date text-green">-->
|
||||
<!-- {{ hdCount.monthTotal == 0 ? 0 : ((hdCount.monthChecked / hdCount.monthTotal * 100).toFixed(2)) }}%-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="name">-->
|
||||
<!-- 隐患整改率-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="qd-tag bg-blue">-->
|
||||
<!-- <text>月</text>-->
|
||||
<!-- <text>度</text>-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="qd-date">-->
|
||||
<!-- <view class="qd-date-item">-->
|
||||
<!-- <view class="date text-blue">-->
|
||||
<!-- {{ hdCount.yearTotal }}-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="name">-->
|
||||
<!-- 发现隐患数-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="qd-date-item">-->
|
||||
<!-- <view class="date text-orange">-->
|
||||
<!-- {{ hdCount.yearChecked }}-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="name">-->
|
||||
<!-- 已验收隐患数-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="qd-date-item">-->
|
||||
<!-- <view class="date text-green">-->
|
||||
<!-- {{ hdCount.yearTotal == 0 ? 0 : ((hdCount.yearChecked / hdCount.yearTotal * 100).toFixed(2)) }}%-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="name">-->
|
||||
<!-- 隐患整改率-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="qd-tag bg-red">-->
|
||||
<!-- <text>年</text>-->
|
||||
<!-- <text>度</text>-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="home-date">-->
|
||||
<!-- <view class="home-work-title">-->
|
||||
<!-- <view class="title">-->
|
||||
<!-- <view class="q_title"></view>-->
|
||||
<!-- <view class="text-black f30b">排查数据</view>-->
|
||||
<!-- </view>-->
|
||||
<!-- <!– <view class="this-date">更多</view> –>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="home-date-list">-->
|
||||
<!-- <view class="qd-date">-->
|
||||
<!-- <view class="qd-date-item">-->
|
||||
<!-- <view class="date text-blue">-->
|
||||
<!-- {{ hdCount.monthTotal }}-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="name">-->
|
||||
<!-- 发现隐患数-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="qd-date-item">-->
|
||||
<!-- <view class="date text-orange">-->
|
||||
<!-- {{ hdCount.monthChecked }}-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="name">-->
|
||||
<!-- 已验收隐患数-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="qd-date-item">-->
|
||||
<!-- <view class="date text-green">-->
|
||||
<!-- {{ hdCount.monthTotal == 0 ? 0 : ((hdCount.monthChecked / hdCount.monthTotal * 100).toFixed(2)) }}%-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="name">-->
|
||||
<!-- 隐患整改率-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="qd-tag bg-blue">-->
|
||||
<!-- <text>月</text>-->
|
||||
<!-- <text>度</text>-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="qd-date">-->
|
||||
<!-- <view class="qd-date-item">-->
|
||||
<!-- <view class="date text-blue">-->
|
||||
<!-- {{ hdCount.yearTotal }}-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="name">-->
|
||||
<!-- 发现隐患数-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="qd-date-item">-->
|
||||
<!-- <view class="date text-orange">-->
|
||||
<!-- {{ hdCount.yearChecked }}-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="name">-->
|
||||
<!-- 已验收隐患数-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="qd-date-item">-->
|
||||
<!-- <view class="date text-green">-->
|
||||
<!-- {{ hdCount.yearTotal == 0 ? 0 : ((hdCount.yearChecked / hdCount.yearTotal * 100).toFixed(2)) }}%-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="name">-->
|
||||
<!-- 隐患整改率-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="qd-tag bg-red">-->
|
||||
<!-- <text>年</text>-->
|
||||
<!-- <text>度</text>-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<view class="home-date">
|
||||
<view class="home-work-title">
|
||||
<view class="title">
|
||||
|
@ -562,7 +583,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
import {
|
||||
basePath,
|
||||
loginSession,
|
||||
loginUserId,
|
||||
|
@ -580,21 +601,22 @@ import {
|
|||
projectManagerUrl,
|
||||
setUpdateInfo,
|
||||
updateInfo
|
||||
} from '@/common/tool.js';
|
||||
} from '@/common/tool.js';
|
||||
|
||||
import MescrollMixin from "@/components/mescroll-uni/mescroll-mixins.js";
|
||||
import maoScroll from '@/components/mao-scroll/mao-scroll.vue';
|
||||
import ykAuthpup from "@/components/yk-authpup/yk-authpup";
|
||||
export default {
|
||||
import MescrollMixin from "@/components/mescroll-uni/mescroll-mixins.js";
|
||||
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() {
|
||||
return {
|
||||
keyProjectManagement: '',
|
||||
safetyEnvironmentalInspection:0,//安全环保总数
|
||||
permissionID:'',
|
||||
safetyEnvironmentalInspection: 0, //安全环保总数
|
||||
permissionID: '',
|
||||
premission: {},
|
||||
noClick: true,
|
||||
StatusBar: this.StatusBar,
|
||||
|
@ -628,7 +650,7 @@ export default {
|
|||
rollData: [],
|
||||
eight_work_count: 0,
|
||||
updataPd: {},
|
||||
modalName:''
|
||||
modalName: ''
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
|
@ -664,28 +686,30 @@ export default {
|
|||
// }, 1000);
|
||||
// },
|
||||
methods: {
|
||||
getSafetyEnvironmentalInspectionCount(){
|
||||
getSafetyEnvironmentalInspectionCount() {
|
||||
var _this = this;
|
||||
return new Promise((resolve, reject) => {
|
||||
uni.request({
|
||||
url: basePath +'/app/safetyenvironmental/countCheck',
|
||||
url: basePath + '/app/safetyenvironmental/countCheck',
|
||||
method: 'POST',
|
||||
dataType: 'json',
|
||||
header:{
|
||||
'Content-type':'application/x-www-form-urlencoded'
|
||||
header: {
|
||||
'Content-type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: {
|
||||
CORPINFO_ID:corpinfoId,
|
||||
INSPECTION_USER_ID:loginUser.USER_ID,
|
||||
CORPINFO_ID: corpinfoId,
|
||||
INSPECTION_USER_ID: loginUser.USER_ID,
|
||||
INSPECTED_SITEUSER_ID: loginUser.USER_ID,
|
||||
INSPECTION_ORIGINATOR_ID: loginUser.USER_ID,
|
||||
tm:new Date().getTime()
|
||||
tm: new Date().getTime()
|
||||
},
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
@ -715,7 +739,7 @@ export default {
|
|||
});
|
||||
}
|
||||
},
|
||||
IKnow(){
|
||||
IKnow() {
|
||||
this.modalName = ''
|
||||
setUpdateInfo(true)
|
||||
// console.info(updateInfo)
|
||||
|
@ -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'
|
||||
});
|
||||
|
@ -966,7 +995,7 @@ export default {
|
|||
// console.log(loginUser.ISSUPERVISE)
|
||||
// console.log(loginUser.ISMAIN)
|
||||
// console.log(res.data.pd)
|
||||
if(loginUser.ISSUPERVISE == '1'){
|
||||
if (loginUser.ISSUPERVISE == '1') {
|
||||
_this.superviseDeptCount = res.data.pd;
|
||||
}
|
||||
}
|
||||
|
@ -983,8 +1012,7 @@ export default {
|
|||
showCancel: false,
|
||||
content: '您处于离岗状态,无需检查清单。',
|
||||
confirmText: "返回", // 确认按钮文字
|
||||
success: (res) => {
|
||||
}
|
||||
success: (res) => {}
|
||||
})
|
||||
},
|
||||
getMonth() {
|
||||
|
@ -1059,8 +1087,8 @@ export default {
|
|||
'Content-type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: {
|
||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||
USER_ID:loginUser.USER_ID,
|
||||
CORPINFO_ID: loginUser.CORPINFO_ID,
|
||||
USER_ID: loginUser.USER_ID,
|
||||
},
|
||||
success: (res) => {
|
||||
if ("success" == res.data.result) {
|
||||
|
@ -1092,8 +1120,8 @@ export default {
|
|||
'Content-type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: {
|
||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||
USER_ID:loginUser.USER_ID
|
||||
CORPINFO_ID: loginUser.CORPINFO_ID,
|
||||
USER_ID: loginUser.USER_ID
|
||||
},
|
||||
success: (res) => {
|
||||
if ("success" == res.data.result) {
|
||||
|
@ -1141,14 +1169,16 @@ export default {
|
|||
title: "服务器正在升级,请稍后再试。",
|
||||
duration: 2000
|
||||
});
|
||||
setTimeout(function () {
|
||||
setTimeout(function() {
|
||||
plus.runtime.quit();
|
||||
// ios quit方法无效,退出到登陆页
|
||||
setloginUserId(null);
|
||||
setCorpinfoId(null);
|
||||
setDeptId(null);
|
||||
setloginUser(null);
|
||||
uni.removeStorage({key: 'USER'});
|
||||
uni.removeStorage({
|
||||
key: 'USER'
|
||||
});
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/home'
|
||||
});
|
||||
|
@ -1175,7 +1205,7 @@ export default {
|
|||
_this.hdCount.monthTotal = res.data.total;
|
||||
_this.hdCount.monthChecked = res.data.checked;
|
||||
_this.hdCount.monthUncheck = res.data.uncheck;
|
||||
this.$forceUpdate();//强制刷新
|
||||
this.$forceUpdate(); //强制刷新
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -1199,7 +1229,7 @@ export default {
|
|||
_this.hdCount.yearTotal = res.data.total;
|
||||
_this.hdCount.yearChecked = res.data.checked;
|
||||
_this.hdCount.yearUncheck = res.data.uncheck;
|
||||
this.$forceUpdate();//强制刷新
|
||||
this.$forceUpdate(); //强制刷新
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -1251,7 +1281,7 @@ export default {
|
|||
title: "服务器正在升级,请稍后再试。",
|
||||
duration: 2000
|
||||
});
|
||||
setTimeout(function () {
|
||||
setTimeout(function() {
|
||||
plus.runtime.quit();
|
||||
}, 2000);
|
||||
}
|
||||
|
@ -1283,7 +1313,7 @@ export default {
|
|||
uni.hideLoading();
|
||||
for (var i = 0; i < res.data.hiddenList.length; i++) {
|
||||
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, "/"))
|
||||
res.data.hiddenList[i].CREATTIME = formatDate(date, 'MM-dd hh:mm')
|
||||
}
|
||||
|
@ -1304,7 +1334,7 @@ export default {
|
|||
title: "服务器正在升级,请稍后再试。",
|
||||
duration: 2000
|
||||
});
|
||||
setTimeout(function () {
|
||||
setTimeout(function() {
|
||||
plus.runtime.quit();
|
||||
}, 2000);
|
||||
}
|
||||
|
@ -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() {
|
||||
|
@ -1353,17 +1384,17 @@ export default {
|
|||
// });
|
||||
// },
|
||||
|
||||
openAuth(permissionID){
|
||||
openAuth(permissionID) {
|
||||
this.permissionID = permissionID;
|
||||
setTimeout(()=>{
|
||||
setTimeout(() => {
|
||||
this.$refs['authpup'].open();
|
||||
},200)
|
||||
}, 200)
|
||||
},
|
||||
|
||||
scan() {
|
||||
let _this = this;
|
||||
uni.scanCode({
|
||||
success: function (res) {
|
||||
success: function(res) {
|
||||
if (res.result.indexOf('%_face') > 0) {
|
||||
_this.goToFace(res.result.substring(0, res.result.indexOf('%_face')))
|
||||
} else {
|
||||
|
@ -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
|
||||
|
@ -1460,115 +1495,118 @@ export default {
|
|||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
.status_bar {
|
||||
.status_bar {
|
||||
height: var(--status-bar-height);
|
||||
width: 100%;
|
||||
background-color: #2068d0;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.top_view {
|
||||
.top_view {
|
||||
height: var(--status-bar-height);
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
background-color: #2068d0;
|
||||
top: 0;
|
||||
z-index: 999;
|
||||
}
|
||||
}
|
||||
|
||||
/*说明*/
|
||||
.notice-warp {
|
||||
/*说明*/
|
||||
.notice-warp {
|
||||
font-size: 26 upx;
|
||||
padding: 40 upx 0;
|
||||
border-bottom: 1 upx solid #eee;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.notice-warp .notice {
|
||||
.notice-warp .notice {
|
||||
color: #555;
|
||||
}
|
||||
}
|
||||
|
||||
.notice-warp .btn-change {
|
||||
.notice-warp .btn-change {
|
||||
display: inline-block;
|
||||
margin-top: 28 upx;
|
||||
padding: 6 upx 16 upx;
|
||||
border: 1 upx solid #FF6990;
|
||||
border-radius: 40 upx;
|
||||
color: #FF6990;
|
||||
}
|
||||
}
|
||||
|
||||
.notice-warp .btn-change:active {
|
||||
.notice-warp .btn-change:active {
|
||||
opacity: .5;
|
||||
}
|
||||
}
|
||||
|
||||
.main {
|
||||
.main {
|
||||
padding: 0 30 upx;
|
||||
}
|
||||
}
|
||||
|
||||
.flex-line {
|
||||
.flex-line {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
.flex-line .oline {
|
||||
.flex-line .oline {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.flex-line .otext {
|
||||
.flex-line .otext {
|
||||
width: 200 upx;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
|
||||
.container {
|
||||
.container {
|
||||
width: 100%;
|
||||
padding: 20 upx;
|
||||
background-color: #f7f8f8;
|
||||
padding-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.noticeer {
|
||||
.noticeer {
|
||||
width: 100%;
|
||||
background: #ffffff;
|
||||
border-radius: 10 upx;
|
||||
padding: 20 upx;
|
||||
margin-bottom: 20 upx;
|
||||
}
|
||||
}
|
||||
|
||||
.noticeer image {
|
||||
.noticeer image {
|
||||
width: 40 upx;
|
||||
height: 40 upx;
|
||||
vertical-align: middle;
|
||||
margin-top: -5 upx;
|
||||
margin-right: 5 upx;
|
||||
}
|
||||
}
|
||||
|
||||
.answerico {
|
||||
.answerico {
|
||||
|
||||
position: fixed;
|
||||
right: 20 upx;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
z-index: 9;
|
||||
}
|
||||
}
|
||||
|
||||
.answerico uni-image img {
|
||||
.answerico uni-image img {
|
||||
width: 70 px;
|
||||
height: 70 px;
|
||||
}
|
||||
.cu-modal{ z-index: 999999999;}
|
||||
}
|
||||
|
||||
.up-mainer{
|
||||
.cu-modal {
|
||||
z-index: 999999999;
|
||||
}
|
||||
|
||||
.up-mainer {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
background: #ffffff;
|
||||
width:80%;
|
||||
width: 80%;
|
||||
margin: 0 auto;
|
||||
border-radius: 4px;
|
||||
margin-left: 10%;
|
||||
|
@ -1576,22 +1614,24 @@ export default {
|
|||
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.up-mainer .title{
|
||||
|
||||
.up-mainer .title {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
border-bottom: 1px solid #eee;
|
||||
line-height: 40px;
|
||||
}
|
||||
.up-info{
|
||||
|
||||
.up-info {
|
||||
width: 100%;
|
||||
padding:0 20px;
|
||||
padding: 0 20px;
|
||||
line-height: 36px;
|
||||
text-align: left;
|
||||
height: 200px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.know-btn{
|
||||
.know-btn {
|
||||
width: 50%;
|
||||
padding: 8px 10px;
|
||||
background: #359ae1;
|
||||
|
|
Loading…
Reference in New Issue