|
@@ -1,7 +1,7 @@
|
|
|
<!-- 预案报警信息 -->
|
|
|
<template>
|
|
|
<view class="earlyWarning">
|
|
|
- <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
|
|
|
+
|
|
|
<!-- 预案报警 -->
|
|
|
<view class="header" v-if="form.warnType==4">{{form.eventName}} - {{form.riskPlanLevel ==1?'低风险':(form.riskPlanLevel ==2?'中风险':(form.riskPlanLevel ==3?'较高风险':(form.riskPlanLevel ==4?'高风险':'')))}}</view>
|
|
|
<!-- 化学品 -->
|
|
@@ -198,21 +198,21 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 报警抓拍 -->
|
|
|
- <view v-if="(form.warnType==1&&form.chemicalWarnType==1&&form.snapImg[0]) || (form.warnType!=1&&form.snapImg[0])"
|
|
|
+ <view v-if="(form.warnType==1&&form.chemicalWarnType==1&&form.recordPhoto[0]) || (form.warnType!=1&&form.recordPhoto[0])"
|
|
|
class="picture">
|
|
|
<view class="small_title"><text></text><text>报警抓拍</text></view>
|
|
|
<view class="picture_b">
|
|
|
<view class="img">
|
|
|
- <img v-for="(item,index) in form.snapImg" @click="lockImg(form.snapImg)" :key="index"
|
|
|
- :src="configUrl+item" />
|
|
|
+ <img v-for="(item,index) in form.recordPhoto" @click="lockImg(form.recordPhoto)" :key="index"
|
|
|
+ :src="item" />
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 查看监控 -->
|
|
|
<view class="bottom_btn"
|
|
|
- v-if="(form.warnType==1&&form.chemicalWarnType==1&&form.snapVideo[0]) || (form.warnType!=1&&form.snapVideo[0])"
|
|
|
+ v-if="(form.warnType==1&&form.chemicalWarnType==1&&form.recordVideo[0]) || (form.warnType!=1&&form.recordVideo[0])"
|
|
|
@click="handleClick('','monitor')">查看监控</view>
|
|
|
- </scroll-view>
|
|
|
+
|
|
|
</view>
|
|
|
|
|
|
</template>
|
|
@@ -252,6 +252,7 @@
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
+ console.log('短信',option)
|
|
|
let self = this;
|
|
|
if (!uni.getStorageSync('token')) {
|
|
|
if (option.noticeId) {
|
|
@@ -260,6 +261,9 @@
|
|
|
} else if (option.eventId) {
|
|
|
uni.setStorageSync('warningId', option.eventId);
|
|
|
uni.setStorageSync('warnType', '4');
|
|
|
+ }else if (option.id) {
|
|
|
+ uni.setStorageSync('warningId', option.id);
|
|
|
+ uni.setStorageSync('warnType', '4');
|
|
|
}
|
|
|
uni.redirectTo({
|
|
|
url: '/pages/views/login/login',
|
|
@@ -271,6 +275,9 @@
|
|
|
} else if (option.eventId) {
|
|
|
this.warningId = option.eventId
|
|
|
this.warnType = '4';
|
|
|
+ }else if (option.id) {
|
|
|
+ this.warningId = option.id
|
|
|
+ this.warnType = '4';
|
|
|
} else if (uni.getStorageSync('warningId')) {
|
|
|
this.warningId = uni.getStorageSync('warningId');
|
|
|
this.warnType = uni.getStorageSync('warnType');
|
|
@@ -435,6 +442,9 @@
|
|
|
data.data.warnType = 4;
|
|
|
data.data.eventStartTime = parseTime(data.data.eventStartTime, "{y}-{m}-{d} {h}:{i}:{s}");
|
|
|
data.data.eventEndTime = data.data.eventEndTime?parseTime(data.data.eventEndTime, "{h}:{i}:{s}"):null;
|
|
|
+ if(data.data.recordPhoto){
|
|
|
+ data.data.recordPhoto=data.data.recordPhoto.split(',')
|
|
|
+ }
|
|
|
let list = [];
|
|
|
data.data.messageLogVoList.forEach((item) => {
|
|
|
let minList = item.nickRoleName.split(',');
|
|
@@ -453,9 +463,16 @@
|
|
|
handleClick(row, doType) {
|
|
|
let self = this;
|
|
|
if (doType == 'monitor') { //监控
|
|
|
- uni.navigateTo({
|
|
|
+ /* uni.navigateTo({
|
|
|
url: '/pages_basics/views/earlyWarningManage/videoMonitoring?subId=' + this.form.subId + '&floorId=' +
|
|
|
this.form.floorId //我的实验室
|
|
|
+ }); */
|
|
|
+ let obj = {
|
|
|
+ type:4,
|
|
|
+ subId:this.form.subId
|
|
|
+ }
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages_manage/views/laboratory/videoPlayer?item='+encodeURIComponent(JSON.stringify(obj))
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -468,11 +485,9 @@
|
|
|
|
|
|
<style lang="stylus" scoped>
|
|
|
.earlyWarning {
|
|
|
- height: 100%;
|
|
|
- display flex;
|
|
|
padding-bottom: 30rpx;
|
|
|
box-sizing: border-box;
|
|
|
-
|
|
|
+
|
|
|
.red_color {
|
|
|
color: #D40000;
|
|
|
border: 1rpx solid #D40000;
|