|
@@ -51,9 +51,9 @@
|
|
|
|
|
|
</view>
|
|
|
<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(alarmSubmit1)">误 报
|
|
|
</button>
|
|
|
- <button class="bg-blue round missReport margin-top " @click="$noMultipleClicks(alarmSubmit(0))">非 误 报
|
|
|
+ <button class="bg-blue round missReport margin-top " @click="$noMultipleClicks(alarmSubmit0)">非 误 报
|
|
|
</button>
|
|
|
</view>
|
|
|
</form>
|
|
@@ -158,7 +158,58 @@
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- alarmSubmit(query) {
|
|
|
+
|
|
|
+ //误报
|
|
|
+ alarmSubmit1() {
|
|
|
+ if (!this.textareaMsg.replace(/^\s*/g,'')) {
|
|
|
+ uni.showToast({
|
|
|
+ title: "请输入处理内容",
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+
|
|
|
+ let queryParam = {};
|
|
|
+ queryParam.id = this.getData.id;
|
|
|
+ queryParam.type = this.getData.dwtype;
|
|
|
+ queryParam.device_code = this.getData.device_code;
|
|
|
+ queryParam.if_batch = this.radioOne;
|
|
|
+ queryParam.clwb = 1;
|
|
|
+ queryParam.ncmd = this.getData.ncmd;
|
|
|
+ queryParam.clnr = this.textareaMsg;
|
|
|
+
|
|
|
+ if (this.getData.dwtype == 1) {
|
|
|
+ queryParam.data3 = this.getData.data3;
|
|
|
+ queryParam.data5 = this.getData.data5;
|
|
|
+ this.powerSubmitRes(queryParam);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (this.getData.dwtype == 2) {
|
|
|
+ queryParam.data1 = this.getData.data1;
|
|
|
+ this.powerSubmitRes(queryParam);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (this.getData.dwtype == 7) {
|
|
|
+ queryParam.data1 = this.getData.data1;
|
|
|
+ this.powerSubmitRes(queryParam);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (this.getData.dwtype == 3) {
|
|
|
+ queryParam.data2=this.getData.data2;
|
|
|
+ this.powerSubmitRes(queryParam);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (this.getData.dwtype == 6) {
|
|
|
+ queryParam.data2=this.getData.data2;
|
|
|
+ queryParam.data4=this.getData.data4;
|
|
|
+ this.powerSubmitRes(queryParam);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.powerSubmitRes(queryParam)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //非误报
|
|
|
+ //误报
|
|
|
+ alarmSubmit0() {
|
|
|
if (!this.textareaMsg.replace(/^\s*/g,'')) {
|
|
|
uni.showToast({
|
|
|
title: "请输入处理内容",
|
|
@@ -171,7 +222,7 @@
|
|
|
queryParam.type = this.getData.dwtype;
|
|
|
queryParam.device_code = this.getData.device_code;
|
|
|
queryParam.if_batch = this.radioOne;
|
|
|
- queryParam.clwb = query;
|
|
|
+ queryParam.clwb = 0;
|
|
|
queryParam.ncmd = this.getData.ncmd;
|
|
|
queryParam.clnr = this.textareaMsg;
|
|
|
|