|
@@ -6,7 +6,7 @@
|
|
<button class="cu-btn radius bg-green sm" v-if="handling_status==0">未处理</button>
|
|
<button class="cu-btn radius bg-green sm" v-if="handling_status==0">未处理</button>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view >
|
|
|
|
|
|
+ <view>
|
|
<!-- 基本信息start -->
|
|
<!-- 基本信息start -->
|
|
<view class="basic-info">
|
|
<view class="basic-info">
|
|
<view class="info-tit margin-left-xs">
|
|
<view class="info-tit margin-left-xs">
|
|
@@ -18,9 +18,9 @@
|
|
<text>设备名称:</text>
|
|
<text>设备名称:</text>
|
|
<text>{{detailMessage2.deviceName}}</text>
|
|
<text>{{detailMessage2.deviceName}}</text>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
<view>
|
|
<view>
|
|
- <text>设备地址:</text>
|
|
|
|
|
|
+ <text>设备地址:</text>
|
|
<text>{{detailMessage2.deviceAddress}}</text>
|
|
<text>{{detailMessage2.deviceAddress}}</text>
|
|
</view>
|
|
</view>
|
|
<view>
|
|
<view>
|
|
@@ -67,8 +67,8 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 处理状态end -->
|
|
<!-- 处理状态end -->
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
<!-- 处理状态start -->
|
|
<!-- 处理状态start -->
|
|
<view class="processStatus" v-else>
|
|
<view class="processStatus" v-else>
|
|
<view class="info-tit margin-left-xs">
|
|
<view class="info-tit margin-left-xs">
|
|
@@ -78,11 +78,12 @@
|
|
<view class="padding-lr padding-bottom-lg">
|
|
<view class="padding-lr padding-bottom-lg">
|
|
<form action="">
|
|
<form action="">
|
|
<view class="cu-form-group">
|
|
<view class="cu-form-group">
|
|
- <textarea class="JTxtArea lg" placeholder="备注信息,最多可输入50个字..." :maxlength="50" :data-maxnum="reason.length+'/50'"
|
|
|
|
- auto-height v-model="msg2"></textarea>
|
|
|
|
|
|
+ <textarea class="JTxtArea lg" placeholder="备注信息,最多可输入50个字..." :maxlength="50"
|
|
|
|
+ :data-maxnum="reason.length+'/50'" auto-height v-model="msg2"></textarea>
|
|
</view>
|
|
</view>
|
|
<view class="btn-area">
|
|
<view class="btn-area">
|
|
- <button class="bg-orange round missReport margin-top" @click="videoMissSubmit()">误 报 </button>
|
|
|
|
|
|
+ <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>
|
|
</view>
|
|
</form>
|
|
</form>
|
|
@@ -90,7 +91,7 @@
|
|
</view>
|
|
</view>
|
|
<!-- 处理状态end -->
|
|
<!-- 处理状态end -->
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -104,47 +105,51 @@
|
|
radio: 'B',
|
|
radio: 'B',
|
|
modalName: null,
|
|
modalName: null,
|
|
type: '0',
|
|
type: '0',
|
|
- detailMessage2:{},
|
|
|
|
-
|
|
|
|
- handling_status:0
|
|
|
|
|
|
+ detailMessage2: {},
|
|
|
|
+
|
|
|
|
+ handling_status: 0
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad: function(option) {
|
|
onLoad: function(option) {
|
|
- this.handling_status=option.handling_status;
|
|
|
|
|
|
+
|
|
this.type = option.type;
|
|
this.type = option.type;
|
|
this.companyCode = option.companyCode;
|
|
this.companyCode = option.companyCode;
|
|
- this.processingStatus=option.handling_status;
|
|
|
|
this.alarmId = option.id;
|
|
this.alarmId = option.id;
|
|
- if (option.handling_status!=0) {
|
|
|
|
- uni.setNavigationBarTitle({
|
|
|
|
- title: '已处理'
|
|
|
|
- });
|
|
|
|
- } else {
|
|
|
|
- uni.setNavigationBarTitle({
|
|
|
|
- title: '未处理'
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- this.getVideoDetail({"companyCode":option.companyCode,"processingStatus":option.processingStatus,"alarmId":option.id})
|
|
|
|
|
|
|
|
|
|
+ this.getVideoDetail({
|
|
|
|
+ "companyCode": option.companyCode,
|
|
|
|
+ "alarmId": option.id
|
|
|
|
+ })
|
|
|
|
+
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
-
|
|
|
|
- async getVideoDetail(ming={}) {
|
|
|
|
- const res= await this.$myRequest({
|
|
|
|
- url:'IntegratedAlarm/getVideoAlarmDetails',
|
|
|
|
- data:ming
|
|
|
|
|
|
+
|
|
|
|
+ async getVideoDetail(ming = {}) {
|
|
|
|
+ const res = await this.$myRequest({
|
|
|
|
+ url: 'IntegratedAlarm/getVideoAlarmDetails',
|
|
|
|
+ data: ming
|
|
})
|
|
})
|
|
- console.log(res.data.data[0]);
|
|
|
|
- this.detailMessage2=res.data.data[0]
|
|
|
|
|
|
+ console.log(res.data.data[0]);
|
|
|
|
+ this.detailMessage2 = res.data.data[0];
|
|
|
|
+ this.handling_status = this.detailMessage2.handling_status;
|
|
|
|
+ if (this.handling_status != 0) {
|
|
|
|
+ uni.setNavigationBarTitle({
|
|
|
|
+ title: '已处理'
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ uni.setNavigationBarTitle({
|
|
|
|
+ title: '未处理'
|
|
|
|
+ });
|
|
|
|
+ }
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+
|
|
videoSubmit() {
|
|
videoSubmit() {
|
|
- if(!this.msg2){
|
|
|
|
|
|
+ if (!this.msg2) {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: "请输入处理内容",
|
|
title: "请输入处理内容",
|
|
- icon:"none"
|
|
|
|
|
|
+ icon: "none"
|
|
});
|
|
});
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
this.powerSubmitRes({
|
|
this.powerSubmitRes({
|
|
"alarmStatus": 0,
|
|
"alarmStatus": 0,
|
|
"type": 2,
|
|
"type": 2,
|
|
@@ -153,18 +158,18 @@
|
|
"id": this.detailMessage2.id,
|
|
"id": this.detailMessage2.id,
|
|
"handlerContent": this.msg2
|
|
"handlerContent": this.msg2
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
},
|
|
},
|
|
videoMissSubmit() {
|
|
videoMissSubmit() {
|
|
- if(!this.msg2){
|
|
|
|
|
|
+ if (!this.msg2) {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: "请输入处理内容",
|
|
title: "请输入处理内容",
|
|
- icon:"none"
|
|
|
|
|
|
+ icon: "none"
|
|
});
|
|
});
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
this.powerSubmitRes({
|
|
this.powerSubmitRes({
|
|
"alarmStatus": 1,
|
|
"alarmStatus": 1,
|
|
"type": 2,
|
|
"type": 2,
|
|
@@ -174,18 +179,18 @@
|
|
"handlerContent": this.msg2
|
|
"handlerContent": this.msg2
|
|
})
|
|
})
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
},
|
|
},
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
powerSubmit() {
|
|
powerSubmit() {
|
|
- if(!this.msg){
|
|
|
|
|
|
+ if (!this.msg) {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: "请输入处理内容",
|
|
title: "请输入处理内容",
|
|
- icon:"none"
|
|
|
|
|
|
+ icon: "none"
|
|
});
|
|
});
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
this.powerSubmitRes({
|
|
this.powerSubmitRes({
|
|
"type": 1,
|
|
"type": 1,
|
|
"deviceCode": this.detailMessage.deviceCode,
|
|
"deviceCode": this.detailMessage.deviceCode,
|
|
@@ -195,34 +200,35 @@
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+
|
|
async powerSubmitRes(params = {}) {
|
|
async powerSubmitRes(params = {}) {
|
|
const res = await this.$myRequest({
|
|
const res = await this.$myRequest({
|
|
url: 'IntegratedAlarm/setAlarmHandle',
|
|
url: 'IntegratedAlarm/setAlarmHandle',
|
|
data: params
|
|
data: params
|
|
})
|
|
})
|
|
-
|
|
|
|
- if(res.data.flag){
|
|
|
|
- uni.showToast({
|
|
|
|
- title: "提交成功",
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- setTimeout(() => {
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: '/pages/processList/processList?companyCode=' + this.companyCode + '&type='+this.type+'',
|
|
|
|
-
|
|
|
|
- });
|
|
|
|
- }, 1000);
|
|
|
|
|
|
+
|
|
|
|
+ if (res.data.flag) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "提交成功",
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pages/processList/processList?companyCode=' + this.companyCode +
|
|
|
|
+ '&type=' + this.type + '',
|
|
|
|
+
|
|
|
|
+ });
|
|
|
|
+ }, 1000);
|
|
},
|
|
},
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
submit() {
|
|
submit() {
|
|
uni.makePhoneCall({
|
|
uni.makePhoneCall({
|
|
- phoneNumber: this.detailMessage.phone
|
|
|
|
|
|
+ phoneNumber: this.detailMessage.phone
|
|
});
|
|
});
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+
|
|
RadioChange(e) {
|
|
RadioChange(e) {
|
|
this.radio = e.detail.value
|
|
this.radio = e.detail.value
|
|
},
|
|
},
|
|
@@ -242,10 +248,12 @@
|
|
height: 88rpx;
|
|
height: 88rpx;
|
|
background: #EFF4FF;
|
|
background: #EFF4FF;
|
|
line-height: 88rpx;
|
|
line-height: 88rpx;
|
|
|
|
+
|
|
.time {
|
|
.time {
|
|
color: #333
|
|
color: #333
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
.info-tit {
|
|
.info-tit {
|
|
color: #4074E7;
|
|
color: #4074E7;
|
|
line-height: 90rpx;
|
|
line-height: 90rpx;
|
|
@@ -264,32 +272,32 @@
|
|
width: 160rpx;
|
|
width: 160rpx;
|
|
display: inline-block
|
|
display: inline-block
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
/* // 处理内容 */
|
|
/* // 处理内容 */
|
|
.cu-form-group {
|
|
.cu-form-group {
|
|
background: #f5f5f5;
|
|
background: #f5f5f5;
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.processStatus {
|
|
.processStatus {
|
|
textarea {
|
|
textarea {
|
|
background: #F5F5F5;
|
|
background: #F5F5F5;
|
|
color: #999999;
|
|
color: #999999;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
// textarea
|
|
// textarea
|
|
.JTxtArea {
|
|
.JTxtArea {
|
|
position: relative;
|
|
position: relative;
|
|
-
|
|
|
|
|
|
+
|
|
&.sm {
|
|
&.sm {
|
|
min-height: 60rpx;
|
|
min-height: 60rpx;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
&.lg {
|
|
&.lg {
|
|
min-height: 100rpx;
|
|
min-height: 100rpx;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
&:after {
|
|
&:after {
|
|
content: attr(data-maxnum);
|
|
content: attr(data-maxnum);
|
|
position: absolute;
|
|
position: absolute;
|