|
@@ -3,7 +3,8 @@
|
|
<view class="timeBox flex justify-between align-center padding-lr-sm">
|
|
<view class="timeBox flex justify-between align-center padding-lr-sm">
|
|
<view class="time">2021-01-18 15:16:45</view>
|
|
<view class="time">2021-01-18 15:16:45</view>
|
|
<button class="cu-btn radius bg-red sm">未处理</button>
|
|
<button class="cu-btn radius bg-red sm">未处理</button>
|
|
- </view>
|
|
|
|
|
|
+ </view>
|
|
|
|
+ <!-- 电力start -->
|
|
<view v-if="type==1">
|
|
<view v-if="type==1">
|
|
<view class="basic-info" >
|
|
<view class="basic-info" >
|
|
<view class="info-tit margin-left-xs">
|
|
<view class="info-tit margin-left-xs">
|
|
@@ -66,13 +67,13 @@
|
|
<form action="">
|
|
<form action="">
|
|
<view class="cu-form-group">
|
|
<view class="cu-form-group">
|
|
<!-- <textarea maxlength="-1" :disabled="modalName!=null" @input="textareaAInput" placeholder="备注信息,最多可输入50个字..."></textarea>-->
|
|
<!-- <textarea maxlength="-1" :disabled="modalName!=null" @input="textareaAInput" placeholder="备注信息,最多可输入50个字..."></textarea>-->
|
|
- <textarea class="JTxtArea lg" placeholder="备注信息,最多可输入50个字..." :maxlength="50" :data-maxnum="reason.length+'/50'"
|
|
|
|
- auto-height v-model="reason"></textarea>
|
|
|
|
|
|
+ <textarea class="JTxtArea lg" v-model="msg" placeholder="备注信息,最多可输入50个字..." :maxlength="50" :data-maxnum="reason.length+'/50'"
|
|
|
|
+ auto-height ></textarea>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<view class="btn-area">
|
|
<view class="btn-area">
|
|
<!-- <button class="bg-orange round missReport margin-top">误 报 </button> -->
|
|
<!-- <button class="bg-orange round missReport margin-top">误 报 </button> -->
|
|
- <button class="bg-blue round missReport margin-top ">告警确认 </button>
|
|
|
|
|
|
+ <button class="bg-blue round missReport margin-top" @click="powerSubmit()">告警确认 </button>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
</form>
|
|
</form>
|
|
@@ -83,6 +84,8 @@
|
|
</view>
|
|
</view>
|
|
<!-- 处理状态end -->
|
|
<!-- 处理状态end -->
|
|
</view>
|
|
</view>
|
|
|
|
+ <!-- 电力end-->
|
|
|
|
+
|
|
|
|
|
|
<view v-else>
|
|
<view v-else>
|
|
<view class="basic-info">
|
|
<view class="basic-info">
|
|
@@ -93,16 +96,16 @@
|
|
<view class="info-content">
|
|
<view class="info-content">
|
|
<view class="info-one-info ">
|
|
<view class="info-one-info ">
|
|
<text>设备名称:</text>
|
|
<text>设备名称:</text>
|
|
- <text>{{detailMessage.deviceName}}</text>
|
|
|
|
|
|
+ <text>{{detailMessage2.deviceName}}</text>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<view>
|
|
<view>
|
|
<text>设备地址:</text>
|
|
<text>设备地址:</text>
|
|
- <text>{{detailMessage.address}}</text>
|
|
|
|
|
|
+ <text>{{detailMessage2.deviceAddress}}</text>
|
|
</view>
|
|
</view>
|
|
<view>
|
|
<view>
|
|
<text>告警信息:</text>
|
|
<text>告警信息:</text>
|
|
- <text>{{detailMessage.address}}</text>
|
|
|
|
|
|
+ <text>{{detailMessage2.alarmInformation}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -113,7 +116,7 @@
|
|
报警当前情况截图
|
|
报警当前情况截图
|
|
</view>
|
|
</view>
|
|
<view class="info-content padding-lr-lg">
|
|
<view class="info-content padding-lr-lg">
|
|
- <image src="../../static/video-img.png" style="width:100%"></image>
|
|
|
|
|
|
+ <image :src="detailMessage2.alarmPicture" style="width:100%"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 报警当前情况截图end -->
|
|
<!-- 报警当前情况截图end -->
|
|
@@ -139,11 +142,11 @@
|
|
<view class="cu-form-group">
|
|
<view class="cu-form-group">
|
|
<!-- <textarea maxlength="-1" :disabled="modalName!=null" @input="textareaAInput" placeholder="备注信息,最多可输入50个字..."></textarea>-->
|
|
<!-- <textarea maxlength="-1" :disabled="modalName!=null" @input="textareaAInput" placeholder="备注信息,最多可输入50个字..."></textarea>-->
|
|
<textarea class="JTxtArea lg" placeholder="备注信息,最多可输入50个字..." :maxlength="50" :data-maxnum="reason.length+'/50'"
|
|
<textarea class="JTxtArea lg" placeholder="备注信息,最多可输入50个字..." :maxlength="50" :data-maxnum="reason.length+'/50'"
|
|
- auto-height v-model="reason"></textarea>
|
|
|
|
|
|
+ auto-height v-model="msg2"></textarea>
|
|
</view>
|
|
</view>
|
|
<view class="btn-area">
|
|
<view class="btn-area">
|
|
- <button class="bg-orange round missReport margin-top">误 报 </button>
|
|
|
|
- <button class="bg-blue round missReport margin-top ">告警确认 </button>
|
|
|
|
|
|
+ <button class="bg-orange round missReport margin-top" @click="videoMissSubmit()">误 报 </button>
|
|
|
|
+ <button class="bg-blue round missReport margin-top " @click="videoSubmit()">告警确认 </button>
|
|
</view>
|
|
</view>
|
|
</form>
|
|
</form>
|
|
|
|
|
|
@@ -168,9 +171,13 @@
|
|
radio: 'A',
|
|
radio: 'A',
|
|
radio: 'B',
|
|
radio: 'B',
|
|
modalName: null,
|
|
modalName: null,
|
|
- reason: '',
|
|
|
|
|
|
+ reason:'',
|
|
type: '0',
|
|
type: '0',
|
|
- detailMessage:{}
|
|
|
|
|
|
+ detailMessage:{},
|
|
|
|
+ detailMessage2:{},
|
|
|
|
+ msg:'',
|
|
|
|
+ msg2:''
|
|
|
|
+
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad: function(option) {
|
|
onLoad: function(option) {
|
|
@@ -178,28 +185,62 @@
|
|
this.companyCode = option.companyCode;
|
|
this.companyCode = option.companyCode;
|
|
this.processingStatus=option.processingStatus;
|
|
this.processingStatus=option.processingStatus;
|
|
this.alarmId = option.id;
|
|
this.alarmId = option.id;
|
|
- this.getUnProcessDetail({"companyCode":option.companyCode,"processingStatus":option.processingStatus,"alarmId":option.id})
|
|
|
|
|
|
+ if(this.type==1){
|
|
|
|
+ this.getUnProcessDetail({"companyCode":option.companyCode,"processingStatus":option.processingStatus,"alarmId":option.id})
|
|
|
|
+ }else{
|
|
|
|
+ this.getUnProcessDetail2({"companyCode":option.companyCode,"processingStatus":option.processingStatus,"alarmId":option.id})
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
-
|
|
|
|
-
|
|
|
|
- async getUnProcessDetail(ming={}) {
|
|
|
|
|
|
+
|
|
|
|
+ async getUnProcessDetail(ming={}) { //电力未处理详情接口
|
|
const res= await this.$myRequest({
|
|
const res= await this.$myRequest({
|
|
url:'IntegratedAlarm/getPowerAlarmDetails',
|
|
url:'IntegratedAlarm/getPowerAlarmDetails',
|
|
data:ming
|
|
data:ming
|
|
})
|
|
})
|
|
- // this.unporcessList=res.data.data;
|
|
|
|
- // this.alarmUntreatedCount=res.data.alarmUntreatedCount
|
|
|
|
console.log(res.data.data[0]);
|
|
console.log(res.data.data[0]);
|
|
this.detailMessage=res.data.data[0]
|
|
this.detailMessage=res.data.data[0]
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ async getUnProcessDetail2(ming={}) { //电力未处理详情接口
|
|
|
|
+ const res= await this.$myRequest({
|
|
|
|
+ url:'IntegratedAlarm/getVideoAlarmDetails',
|
|
|
|
+ data:ming
|
|
|
|
+ })
|
|
|
|
+ console.log(res.data.data[0]);
|
|
|
|
+ this.detailMessage2=res.data.data[0]
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ async powerSubmitRes(ming={}) {
|
|
|
|
+ const res= await this.$myRequest({
|
|
|
|
+ url:'IntegratedAlarm/setAlarmHandle',
|
|
|
|
+ data:ming
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ powerSubmit(){
|
|
|
|
+
|
|
|
|
+ this.powerSubmitRes({"type":1,"deviceCode":this.detailMessage.deviceCode,"companyCode":this.companyCode,"id":this.detailMessage.id,"handlerContent":this.msg})
|
|
|
|
+ alert(成功)
|
|
|
|
+ },
|
|
|
|
+ videoSubmit(){
|
|
|
|
+ alert(1)
|
|
|
|
+ this.powerSubmitRes({"alarmStatus":0,"type":2,"deviceCode":this.detailMessage2.deviceCode,"companyCode":this.companyCode,"id":this.detailMessage2.id,"handlerContent":this.msg2})
|
|
|
|
+ },
|
|
|
|
+ videoMissSubmit(){
|
|
|
|
+ alert(1)
|
|
|
|
+ this.powerSubmitRes({"alarmStatus":1,"type":2,"deviceCode":this.detailMessage2.deviceCode,"companyCode":this.companyCode,"id":this.detailMessage2.id,"handlerContent":this.msg2})
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
|
|
submit() {
|
|
submit() {
|
|
uni.makePhoneCall({
|
|
uni.makePhoneCall({
|
|
phoneNumber: '15122423833' //仅为示例
|
|
phoneNumber: '15122423833' //仅为示例
|
|
});
|
|
});
|
|
- },
|
|
|
|
|
|
+ },
|
|
|
|
+
|
|
mapLocation() {
|
|
mapLocation() {
|
|
uni.openLocation({
|
|
uni.openLocation({
|
|
latitude: parseInt(this.detailMessage.latitude),
|
|
latitude: parseInt(this.detailMessage.latitude),
|