|
@@ -3,13 +3,13 @@
|
|
<view class="earlyWarning">
|
|
<view class="earlyWarning">
|
|
<scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
|
|
<scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
|
|
<!-- 预案报警 -->
|
|
<!-- 预案报警 -->
|
|
- <view class="header" v-if="form.warningType==4">甲烷气体泄露-中风险</view>
|
|
|
|
|
|
+ <view class="header" v-if="form.warningType==4">{{form.warningContent}}</view>
|
|
<!-- 化学品 -->
|
|
<!-- 化学品 -->
|
|
- <view class="header_tow" v-if="form.warningType==2">化学品违规带离</view>
|
|
|
|
|
|
+ <view class="header_tow" v-if="form.warningType==2">{{form.warningContent}}</view>
|
|
<!-- 气瓶 -->
|
|
<!-- 气瓶 -->
|
|
- <view class="header_three" v-if="form.warningType==3">气瓶违规带离</view>
|
|
|
|
|
|
+ <view class="header_three" v-if="form.warningType==3">{{form.warningContent}}</view>
|
|
<!-- 算法识别 -->
|
|
<!-- 算法识别 -->
|
|
- <view class="header_four" v-if="form.warningType==1">多人未穿戴实验服</view>
|
|
|
|
|
|
+ <view class="header_four" v-if="form.warningType==1">{{form.warningContent}}</view>
|
|
<!-- 预案报警 -->
|
|
<!-- 预案报警 -->
|
|
<view class="site" v-if="form.warningType==4">
|
|
<view class="site" v-if="form.warningType==4">
|
|
<img src="@/images/Version2.2/icon_wtzg_xx.png"/>
|
|
<img src="@/images/Version2.2/icon_wtzg_xx.png"/>
|
|
@@ -65,17 +65,17 @@
|
|
<text>化学品余量:</text>
|
|
<text>化学品余量:</text>
|
|
<text>{{form.margin}}</text>
|
|
<text>{{form.margin}}</text>
|
|
</view>
|
|
</view>
|
|
- <view class="basics_li">
|
|
|
|
|
|
+ <view class="basics_li" v-if="form.warningSubType==2">
|
|
<text>申领人:</text>
|
|
<text>申领人:</text>
|
|
<text>{{form.apply}}</text>
|
|
<text>{{form.apply}}</text>
|
|
</view>
|
|
</view>
|
|
- <view class="basics_li">
|
|
|
|
|
|
+ <view class="basics_li" v-if="form.warningSubType==2">
|
|
<text>申领时间:</text>
|
|
<text>申领时间:</text>
|
|
<text>{{form.applyTime}}</text>
|
|
<text>{{form.applyTime}}</text>
|
|
</view>
|
|
</view>
|
|
- <view class="basics_li">
|
|
|
|
|
|
+ <view class="basics_li" v-if="form.warningSubType==3||form.warningSubType==4">
|
|
<text>过期时间:</text>
|
|
<text>过期时间:</text>
|
|
- <text>{{form.applyTime}}</text>
|
|
|
|
|
|
+ <text>{{form.expirationTime}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 气瓶 -->
|
|
<!-- 气瓶 -->
|
|
@@ -95,17 +95,17 @@
|
|
</view>
|
|
</view>
|
|
<view class="basics_li">
|
|
<view class="basics_li">
|
|
<text>所有人:</text>
|
|
<text>所有人:</text>
|
|
- <text>{{form.specification}}</text>
|
|
|
|
|
|
+ <text>{{form.holder}}</text>
|
|
</view>
|
|
</view>
|
|
<view class="basics_li">
|
|
<view class="basics_li">
|
|
<text>入库时间:</text>
|
|
<text>入库时间:</text>
|
|
- <text>{{form.specification}}</text>
|
|
|
|
|
|
+ <text>{{form.entryTime}}</text>
|
|
</view>
|
|
</view>
|
|
- <view class="basics_li">
|
|
|
|
|
|
+ <view class="basics_li" v-if="form.warningSubType==2">
|
|
<text>申领人:</text>
|
|
<text>申领人:</text>
|
|
- <text>{{form.apply}}</text>apply
|
|
|
|
|
|
+ <text>{{form.apply}}</text>
|
|
</view>
|
|
</view>
|
|
- <view class="basics_li">
|
|
|
|
|
|
+ <view class="basics_li" v-if="form.warningSubType==2">
|
|
<text>申领时间:</text>
|
|
<text>申领时间:</text>
|
|
<text>{{form.applyTime}}</text>
|
|
<text>{{form.applyTime}}</text>
|
|
</view>
|
|
</view>
|
|
@@ -114,14 +114,14 @@
|
|
<view class="small_title"><text></text><text>通知短信</text></view>
|
|
<view class="small_title"><text></text><text>通知短信</text></view>
|
|
<view class="note_li" style="margin-top:20rpx;" v-for="(item,index) in form.messageVOList">
|
|
<view class="note_li" style="margin-top:20rpx;" v-for="(item,index) in form.messageVOList">
|
|
<text>{{item.name}}</text>
|
|
<text>{{item.name}}</text>
|
|
- <view class="note_li_r" v-if="item.isSuccess=='成功'"><img src="@/images/icon_yjxx_ytz.png"/><text>已通知</text></view>
|
|
|
|
|
|
+ <view class="note_li_r" v-if="item.isSuccess==1"><img src="@/images/icon_yjxx_ytz.png"/><text>已通知</text></view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="note">
|
|
<view class="note">
|
|
<view class="small_title"><text></text><text>预警通知</text></view>
|
|
<view class="small_title"><text></text><text>预警通知</text></view>
|
|
<view class="note_li" style="margin-top:20rpx;">
|
|
<view class="note_li" style="margin-top:20rpx;">
|
|
<text>语音播报</text>
|
|
<text>语音播报</text>
|
|
- <view class="note_li_r"><img src="@/images/icon_yjxx_ytz.png"/><text>已通知</text></view>
|
|
|
|
|
|
+ <view class="note_li_r" v-if="form.voiceBroadcast==1"><img src="@/images/icon_yjxx_ytz.png"/><text>已通知</text></view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="picture">
|
|
<view class="picture">
|
|
@@ -133,7 +133,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="bottom_btn">查看监控</view>
|
|
|
|
|
|
+ <view class="bottom_btn" @click="handleClick('','monitor')">查看监控</view>
|
|
</scroll-view>
|
|
</scroll-view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
@@ -156,14 +156,27 @@ export default {
|
|
pageSize:20,
|
|
pageSize:20,
|
|
},
|
|
},
|
|
total:0,
|
|
total:0,
|
|
- id:'',
|
|
|
|
|
|
+ warningId:'',
|
|
form:{},
|
|
form:{},
|
|
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
if(option.id){
|
|
if(option.id){
|
|
- this.id=option.id;
|
|
|
|
|
|
+ this.warningId=option.id;
|
|
|
|
+ }
|
|
|
|
+ let self = this;
|
|
|
|
+ if(option.q){
|
|
|
|
+ let text = decodeURIComponent(option.q)
|
|
|
|
+ if(!uni.getStorageSync('token')){
|
|
|
|
+ uni.setStorageSync('warningId',text.split("?")[1]);
|
|
|
|
+ uni.redirectTo({
|
|
|
|
+ url: '/pages/login',
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ this.warningId = uni.getStorageSync('warningId');
|
|
|
|
+ uni.removeStorageSync('warningId');
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
@@ -206,7 +219,7 @@ export default {
|
|
//获取详情
|
|
//获取详情
|
|
async getInfo(){
|
|
async getInfo(){
|
|
let _this = this;
|
|
let _this = this;
|
|
- const {data} = await warningNoticeLogDetail({id:this.id})
|
|
|
|
|
|
+ const {data} = await warningNoticeLogDetail({id:this.warningId})
|
|
if(data.code==200){
|
|
if(data.code==200){
|
|
let res=data.data
|
|
let res=data.data
|
|
this.form=res;
|
|
this.form=res;
|
|
@@ -232,8 +245,10 @@ export default {
|
|
},
|
|
},
|
|
handleClick(row,doType){
|
|
handleClick(row,doType){
|
|
let self=this;
|
|
let self=this;
|
|
- if( doType=='detail'){//详情
|
|
|
|
-
|
|
|
|
|
|
+ if( doType=='monitor'){//监控
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pages/earlyWarningManage/videoMonitoring?subId='+this.form.subId+'&floorId='+this.form.floorId//我的实验室
|
|
|
|
+ });
|
|
}
|
|
}
|
|
|
|
|
|
},
|
|
},
|