|
@@ -16,11 +16,11 @@
|
|
<text>{{getData.device_name}}</text>
|
|
<text>{{getData.device_name}}</text>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view class="info-one-info ">
|
|
|
|
|
|
+ <view class="info-one-info ">
|
|
<text>设备地址:</text>
|
|
<text>设备地址:</text>
|
|
<text>{{getData.unitinfo}}</text>
|
|
<text>{{getData.unitinfo}}</text>
|
|
</view>
|
|
</view>
|
|
- <view class="info-one-info ">
|
|
|
|
|
|
+ <view class="info-one-info ">
|
|
<text>告警信息:</text>
|
|
<text>告警信息:</text>
|
|
<text>{{getData.alarm_information}}</text>
|
|
<text>{{getData.alarm_information}}</text>
|
|
</view>
|
|
</view>
|
|
@@ -51,9 +51,11 @@
|
|
|
|
|
|
</view>
|
|
</view>
|
|
<view class="btn-area">
|
|
<view class="btn-area">
|
|
- <button class="bg-orange round missReport margin-top" @click="$noMultipleClicks(alarmSubmit,1)" >误 报
|
|
|
|
|
|
+ <button class="bg-orange round missReport margin-top"
|
|
|
|
+ @click="$noMultipleClicks(alarmSubmit,1)">误 报
|
|
</button>
|
|
</button>
|
|
- <button class="bg-blue round missReport margin-top " @click="$noMultipleClicks(alarmSubmit,0)">非 误 报
|
|
|
|
|
|
+ <button class="bg-blue round missReport margin-top "
|
|
|
|
+ @click="$noMultipleClicks(alarmSubmit,0)">非 误 报
|
|
</button>
|
|
</button>
|
|
</view>
|
|
</view>
|
|
</form>
|
|
</form>
|
|
@@ -70,23 +72,25 @@
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- noClick:true,
|
|
|
|
|
|
+ noClick: true,
|
|
modalName: null,
|
|
modalName: null,
|
|
reason: '',
|
|
reason: '',
|
|
type: 1,
|
|
type: 1,
|
|
textareaMsg: '',
|
|
textareaMsg: '',
|
|
getData: {},
|
|
getData: {},
|
|
radioOne: 0,
|
|
radioOne: 0,
|
|
- clzt:0
|
|
|
|
|
|
+ clzt: 0
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+
|
|
onLoad: function(option) {
|
|
onLoad: function(option) {
|
|
this.type = option.type;
|
|
this.type = option.type;
|
|
this.getDetailData({
|
|
this.getDetailData({
|
|
"type": option.type,
|
|
"type": option.type,
|
|
"id": option.id
|
|
"id": option.id
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+
|
|
let url = "";
|
|
let url = "";
|
|
switch (parseInt(option.type)) {
|
|
switch (parseInt(option.type)) {
|
|
case 1:
|
|
case 1:
|
|
@@ -126,10 +130,10 @@
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
uni.setNavigationBarTitle({
|
|
uni.setNavigationBarTitle({
|
|
- title: url+'(未处理)'
|
|
|
|
|
|
+ title: url + '(未处理)'
|
|
});
|
|
});
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
async getDetailData(params = {}) {
|
|
async getDetailData(params = {}) {
|
|
@@ -162,13 +166,13 @@
|
|
|
|
|
|
//误报 非误报
|
|
//误报 非误报
|
|
alarmSubmit(params) {
|
|
alarmSubmit(params) {
|
|
- if (!this.textareaMsg.replace(/^\s*/g,'')) {
|
|
|
|
|
|
+ if (!this.textareaMsg.replace(/^\s*/g, '')) {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: "请输入处理内容",
|
|
title: "请输入处理内容",
|
|
icon: "none"
|
|
icon: "none"
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
-
|
|
|
|
|
|
+
|
|
let queryParam = {};
|
|
let queryParam = {};
|
|
queryParam.id = this.getData.id;
|
|
queryParam.id = this.getData.id;
|
|
queryParam.type = this.getData.dwtype;
|
|
queryParam.type = this.getData.dwtype;
|
|
@@ -177,7 +181,7 @@
|
|
queryParam.clwb = params;
|
|
queryParam.clwb = params;
|
|
queryParam.ncmd = this.getData.ncmd;
|
|
queryParam.ncmd = this.getData.ncmd;
|
|
queryParam.clnr = this.textareaMsg;
|
|
queryParam.clnr = this.textareaMsg;
|
|
-
|
|
|
|
|
|
+
|
|
if (this.getData.dwtype == 1) {
|
|
if (this.getData.dwtype == 1) {
|
|
queryParam.data3 = this.getData.data3;
|
|
queryParam.data3 = this.getData.data3;
|
|
queryParam.data5 = this.getData.data5;
|
|
queryParam.data5 = this.getData.data5;
|
|
@@ -195,20 +199,20 @@
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if (this.getData.dwtype == 3) {
|
|
if (this.getData.dwtype == 3) {
|
|
- queryParam.data2=this.getData.data2;
|
|
|
|
|
|
+ queryParam.data2 = this.getData.data2;
|
|
this.powerSubmitRes(queryParam);
|
|
this.powerSubmitRes(queryParam);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if (this.getData.dwtype == 6) {
|
|
if (this.getData.dwtype == 6) {
|
|
- queryParam.data2=this.getData.data2;
|
|
|
|
- queryParam.data4=this.getData.data4;
|
|
|
|
|
|
+ queryParam.data2 = this.getData.data2;
|
|
|
|
+ queryParam.data4 = this.getData.data4;
|
|
this.powerSubmitRes(queryParam);
|
|
this.powerSubmitRes(queryParam);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
this.powerSubmitRes(queryParam)
|
|
this.powerSubmitRes(queryParam)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
RadioChange(e) {
|
|
RadioChange(e) {
|
|
this.radioOne = e.detail.value;
|
|
this.radioOne = e.detail.value;
|