|
@@ -1,94 +1,11 @@
|
|
|
<template>
|
|
|
<view>
|
|
|
- <view class="timeBox flex justify-between align-center padding-lr-sm">
|
|
|
- <view v-if="type==1" class="time">{{detailMessage.time}}</view>
|
|
|
- <view v-else class="time">{{detailMessage2.time}}</view>
|
|
|
+ <view class="timeBox flex justify-between align-center padding-lr-sm">
|
|
|
+ <view class="time">2021-01-18 15:16:45</view>
|
|
|
<button class="cu-btn radius bg-red sm">未处理</button>
|
|
|
</view>
|
|
|
- <!-- 电力start -->
|
|
|
- <view v-if="type==1">
|
|
|
- <view class="basic-info">
|
|
|
- <view class="info-tit margin-left-xs">
|
|
|
- <text class="cuIcon-titles margin-right-xs"></text>
|
|
|
- 基本信息
|
|
|
- </view>
|
|
|
- <view class="info-content">
|
|
|
- <view class="info-one-info ">
|
|
|
- <text>站点名称:</text>
|
|
|
- <text>{{detailMessage.siteName}}</text>
|
|
|
- </view>
|
|
|
- <view>
|
|
|
- <text>线路名称:</text>
|
|
|
- <text>{{detailMessage.deviceName}}</text>
|
|
|
- </view>
|
|
|
- <view>
|
|
|
- <text>警告信息:</text>
|
|
|
- <text>{{detailMessage.measValue}}</text>
|
|
|
- </view>
|
|
|
- <view>
|
|
|
- <text>警告状态:</text>
|
|
|
- <text>{{detailMessage.measValue?'动作':'复归'}}</text>
|
|
|
- </view>
|
|
|
- <view>
|
|
|
- <text>采集终端:</text>
|
|
|
- <text>{{detailMessage.deviceCode}}</text>
|
|
|
- </view>
|
|
|
- <view>
|
|
|
- <text>站点地址:</text>
|
|
|
- <text>{{detailMessage.address}}<text class="icon iconfont map" @click="mapLocation()"></text></text>
|
|
|
- </view>
|
|
|
- <view>
|
|
|
- <text>联系人:</text>
|
|
|
- <text>{{detailMessage.userName}}</text>
|
|
|
- </view>
|
|
|
- <view>
|
|
|
- <text>联系方式:</text>
|
|
|
- <text>
|
|
|
- {{detailMessage.phone}}
|
|
|
- <text class="phone icon iconfont" @click="submit()"></text>
|
|
|
- </text>
|
|
|
- </view>
|
|
|
- <view>
|
|
|
- <text>运行数据:</text>
|
|
|
- <text class="checkMore" @tap="goOpeDataDetail(detailMessage)">点击查看</text>
|
|
|
- </view>
|
|
|
- <view>
|
|
|
- <text>视频:</text>
|
|
|
- <text class="checkMore" @tap="goVideoDetail">点击查看</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <!-- 处理状态start -->
|
|
|
- <view class="processStatus">
|
|
|
- <view class="info-tit margin-left-xs">
|
|
|
- <text class="cuIcon-titles margin-right-xs"></text>
|
|
|
- 处理内容
|
|
|
- </view>
|
|
|
- <view class="padding-lr padding-bottom-lg">
|
|
|
- <form action="">
|
|
|
- <view class="cu-form-group">
|
|
|
- <!-- <textarea maxlength="-1" :disabled="modalName!=null" @input="textareaAInput" placeholder="备注信息,最多可输入50个字..."></textarea>-->
|
|
|
- <textarea class="JTxtArea lg" v-model="msg" placeholder="备注信息,最多可输入50个字..." :maxlength="50" :data-maxnum="reason.length+'/50'"
|
|
|
- auto-height></textarea>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="btn-area">
|
|
|
- <!-- <button class="bg-orange round missReport margin-top">误 报 </button> -->
|
|
|
- <button class="bg-blue round missReport margin-top" @click="powerSubmit()">告警确认 </button>
|
|
|
- </view>
|
|
|
-
|
|
|
- </form>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <!-- 处理状态end -->
|
|
|
- </view>
|
|
|
- <!-- 电力end-->
|
|
|
-
|
|
|
-
|
|
|
- <view v-else>
|
|
|
+
|
|
|
+ <view>
|
|
|
<view class="basic-info">
|
|
|
<view class="info-tit margin-left-xs">
|
|
|
<text class="cuIcon-titles margin-right-xs"></text>
|
|
@@ -97,30 +14,20 @@
|
|
|
<view class="info-content">
|
|
|
<view class="info-one-info ">
|
|
|
<text>设备名称:</text>
|
|
|
- <text>{{detailMessage2.deviceName}}</text>
|
|
|
+ <text>三楼赛特威尔测试烟感二</text>
|
|
|
</view>
|
|
|
|
|
|
<view>
|
|
|
<text>设备地址:</text>
|
|
|
- <text>{{detailMessage2.deviceAddress}}</text>
|
|
|
+ <text>上海市青浦区徐泾镇徐乐路208号</text>
|
|
|
</view>
|
|
|
<view>
|
|
|
<text>告警信息:</text>
|
|
|
- <text>{{detailMessage2.alarmInformation}}</text>
|
|
|
+ <text>烟雾拆卸报警</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <!-- 报警当前情况截图start -->
|
|
|
- <view class="basic-info">
|
|
|
- <view class="info-tit margin-left-xs">
|
|
|
- <text class="cuIcon-titles margin-right-xs"></text>
|
|
|
- 报警当前情况截图
|
|
|
- </view>
|
|
|
- <view class="info-content padding-lr-lg">
|
|
|
- <image :src="detailMessage2.alarmPicture" style="width:100%"></image>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <!-- 报警当前情况截图end -->
|
|
|
+
|
|
|
<!-- 处理状态start -->
|
|
|
<view class="processStatus">
|
|
|
<view class="info-tit margin-left-xs">
|
|
@@ -130,24 +37,20 @@
|
|
|
<view class="padding-lr padding-bottom-lg">
|
|
|
<form action="">
|
|
|
<view class="cu-form-group">
|
|
|
- <!-- <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="msg2"></textarea>
|
|
|
</view>
|
|
|
<view class="btn-area">
|
|
|
<button class="bg-orange round missReport margin-top" @click="videoMissSubmit()">误 报 </button>
|
|
|
- <button class="bg-blue round missReport margin-top " @click="videoSubmit()">告警确认 </button>
|
|
|
+ <button class="bg-blue round missReport margin-top " @click="videoSubmit()">非 误 报 </button>
|
|
|
</view>
|
|
|
</form>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 处理状态end -->
|
|
|
</view>
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -170,46 +73,10 @@
|
|
|
}
|
|
|
},
|
|
|
onLoad: function(option) {
|
|
|
- this.type = option.type;
|
|
|
- this.companyCode = option.companyCode;
|
|
|
- this.processingStatus = option.processingStatus;
|
|
|
- this.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: {
|
|
|
-
|
|
|
- async getUnProcessDetail(params = {}) {
|
|
|
- const res = await this.$myRequest({
|
|
|
- url: 'IntegratedAlarm/getPowerAlarmDetails',
|
|
|
- data: params
|
|
|
- })
|
|
|
- console.log(res.data.data[0]);
|
|
|
- this.detailMessage = res.data.data[0]
|
|
|
- },
|
|
|
-
|
|
|
- async getUnProcessDetail2(params = {}) {
|
|
|
- const res = await this.$myRequest({
|
|
|
- url: 'IntegratedAlarm/getVideoAlarmDetails',
|
|
|
- data: params
|
|
|
- })
|
|
|
- console.log(res.data.data[0]);
|
|
|
- this.detailMessage2 = res.data.data[0]
|
|
|
- },
|
|
|
-
|
|
|
async powerSubmitRes(params = {}) {
|
|
|
const res = await this.$myRequest({
|
|
|
url: 'IntegratedAlarm/setAlarmHandle',
|
|
@@ -225,32 +92,11 @@
|
|
|
setTimeout(() => {
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/processList/processList?companyCode=' + this.companyCode + '&type='+this.type+'',
|
|
|
-
|
|
|
});
|
|
|
}, 1000);
|
|
|
|
|
|
|
|
|
},
|
|
|
-
|
|
|
- powerSubmit() {
|
|
|
- if(!this.msg){
|
|
|
- uni.showToast({
|
|
|
- title: "请输入处理内容",
|
|
|
- icon:"none"
|
|
|
- });
|
|
|
- }else{
|
|
|
- this.powerSubmitRes({
|
|
|
- "type": 1,
|
|
|
- "deviceCode": this.detailMessage.deviceCode,
|
|
|
- "companyCode": this.companyCode,
|
|
|
- "id": this.detailMessage.id,
|
|
|
- "handlerContent": this.msg
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- },
|
|
|
-
|
|
|
videoSubmit() {
|
|
|
if(!this.msg2){
|
|
|
uni.showToast({
|
|
@@ -287,48 +133,14 @@
|
|
|
"handlerContent": this.msg2
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
},
|
|
|
|
|
|
-
|
|
|
submit() {
|
|
|
uni.makePhoneCall({
|
|
|
phoneNumber: '15122423833' //仅为示例
|
|
|
});
|
|
|
},
|
|
|
|
|
|
- mapLocation() {
|
|
|
- uni.openLocation({
|
|
|
- latitude: parseInt(this.detailMessage.latitude),
|
|
|
- longitude: parseInt(this.detailMessage.longitude),
|
|
|
- success: function() {
|
|
|
- console.log('success');
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
-
|
|
|
- // 页面跳转
|
|
|
- goOpeDataDetail(detailMessage) {
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/unprocessDetail/opeDataDetail/opeDataDetail?companyCode=' + this.companyCode + '&deviceCode=' +
|
|
|
- detailMessage.deviceCode + '&deviceType=' + this.type + '',
|
|
|
- success: res => {},
|
|
|
- fail: () => {},
|
|
|
- complete: () => {}
|
|
|
- });
|
|
|
- },
|
|
|
- goVideoDetail() {
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/unprocessDetail/videoDetail/videoDetail',
|
|
|
- success: res => {},
|
|
|
- fail: () => {},
|
|
|
- complete: () => {}
|
|
|
- });
|
|
|
-
|
|
|
- },
|
|
|
-
|
|
|
-
|
|
|
RadioChange(e) {
|
|
|
this.radio = e.detail.value
|
|
|
},
|
|
@@ -346,36 +158,5 @@
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
|
- /* // 处理内容 */
|
|
|
- .cu-form-group {
|
|
|
- background: #f5f5f5;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- .processStatus {
|
|
|
- textarea {
|
|
|
- background: #F5F5F5;
|
|
|
- color: #999999;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // textarea
|
|
|
- .JTxtArea {
|
|
|
- position: relative;
|
|
|
-
|
|
|
- &.sm {
|
|
|
- min-height: 60rpx;
|
|
|
- }
|
|
|
-
|
|
|
- &.lg {
|
|
|
- min-height: 100rpx;
|
|
|
- }
|
|
|
-
|
|
|
- &:after {
|
|
|
- content: attr(data-maxnum);
|
|
|
- position: absolute;
|
|
|
- right: 10rpx;
|
|
|
- bottom: 0px;
|
|
|
- }
|
|
|
- }
|
|
|
+
|
|
|
</style>
|