|
@@ -147,18 +147,18 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="bottom_btn" v-if="timeStatus && (form.warningSubType!=2 && form.warningSubType!=3 && form.warningSubType!=4)" @click="handleClick('','monitor')">查看监控</view>
|
|
|
- </scroll-view>
|
|
|
+ </scroll-view>
|
|
|
</view>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { config } from '@/api/request/config.js'
|
|
|
-import {checkManageList,conditionCollegeInfo,warningNoticeLogDetail} from '@/api/index.js'
|
|
|
+import {warningNoticeLogDetail} from '@/api/index.js'
|
|
|
export default {
|
|
|
name: "rectifyList",
|
|
|
components: {
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -173,12 +173,12 @@ export default {
|
|
|
form:{},
|
|
|
currentTime:'',
|
|
|
timeStatus:false,
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
let self = this;
|
|
|
-
|
|
|
+
|
|
|
//先判断是否是通过点击列表进入
|
|
|
if(option.warningId){
|
|
|
this.warningId=option.warningId;
|
|
@@ -196,24 +196,24 @@ export default {
|
|
|
}else{
|
|
|
this.warningId = option.id;
|
|
|
uni.removeStorageSync('warningId');
|
|
|
- }
|
|
|
- }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
onShow() {
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
mounted(){
|
|
|
- this.getInfo();
|
|
|
-
|
|
|
+ this.getInfo();
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
-
|
|
|
+
|
|
|
//滚动事件
|
|
|
scrollGet(){
|
|
|
let self=this;
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
//判断预警时间是否超过30分钟
|
|
|
compareTime (gettime){
|
|
@@ -227,7 +227,7 @@ export default {
|
|
|
console.log('预警没超过30分钟')
|
|
|
this.timeStatus=true;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
//查看图片
|
|
|
lockImg(list){
|
|
@@ -248,8 +248,8 @@ export default {
|
|
|
},
|
|
|
//视频全屏播放
|
|
|
lockVideo(){
|
|
|
- this.videoContext = uni.createVideoContext("myvideo", this);
|
|
|
- this.videoContext.requestFullScreen({ direction: 90 });
|
|
|
+ this.videoContext = uni.createVideoContext("myvideo", this);
|
|
|
+ this.videoContext.requestFullScreen({ direction: 90 });
|
|
|
this.videoContext.play();
|
|
|
},
|
|
|
//计算两个日期差值(天)
|
|
@@ -270,7 +270,7 @@ export default {
|
|
|
let res=data.data
|
|
|
this.form=res;
|
|
|
if(this.form.startTime!='' && this.form.startTime!=null && this.form.endTime !=''&& this.form.endTime !=null){
|
|
|
-
|
|
|
+
|
|
|
if(this.form.startTime.split(' ')[0] != this.form.endTime.split(' ')[0]){
|
|
|
this.form.everyDay=true;
|
|
|
this.form.everyDayNum=this.datedifference(this.form.endTime.split(' ')[0],this.form.startTime.split(' ')[0])
|
|
@@ -286,15 +286,15 @@ export default {
|
|
|
}else if(res.warningType==2){
|
|
|
uni.setNavigationBarTitle({
|
|
|
title:'化学品预警信息'
|
|
|
- })
|
|
|
+ })
|
|
|
}else if(res.warningType==3){
|
|
|
uni.setNavigationBarTitle({
|
|
|
title:'气瓶预警信息'
|
|
|
- })
|
|
|
+ })
|
|
|
}else if(res.warningType==4){
|
|
|
uni.setNavigationBarTitle({
|
|
|
title:'预案报警信息'
|
|
|
- })
|
|
|
+ })
|
|
|
}
|
|
|
this.compareTime(res.warningTime);
|
|
|
}
|
|
@@ -306,10 +306,10 @@ export default {
|
|
|
url: '/pages/earlyWarningManage/videoMonitoring?subId='+this.form.subId+'&floorId='+this.form.floorId//我的实验室
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
@@ -478,7 +478,7 @@ export default {
|
|
|
line-height: 28rpx;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
.small_title{
|
|
|
height: 90rpx;
|
|
@@ -567,7 +567,7 @@ export default {
|
|
|
font-weight: 400;
|
|
|
color: #0183FA;
|
|
|
line-height: 60rpx;
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -584,7 +584,7 @@ export default {
|
|
|
flex-wrap: wrap;
|
|
|
padding: 40rpx 30rpx 10rpx;
|
|
|
box-sizing: border-box;
|
|
|
-
|
|
|
+
|
|
|
.video{
|
|
|
position: relative;
|
|
|
width: 150rpx;
|
|
@@ -621,7 +621,7 @@ export default {
|
|
|
margin-right: 0;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
.bottom_btn{
|
|
@@ -638,7 +638,7 @@ export default {
|
|
|
text-align: center;
|
|
|
background: #F5F5F5;
|
|
|
margin: 90rpx 30rpx 30rpx;
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</style>
|