From 89b24e8ac8377c8f438eae301845cd1e44f0a4ef Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: 星期二, 10 五月 2022 08:38:04 +0800
Subject: [PATCH] Merge branch 'master' of https://sinanoaq.cn:8888/r/ztqt
---
src/views/majorHazardSourceMonitoring/equipmentAlarm/index.vue | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/src/views/majorHazardSourceMonitoring/equipmentAlarm/index.vue b/src/views/majorHazardSourceMonitoring/equipmentAlarm/index.vue
index 97e7aad..89a65cd 100644
--- a/src/views/majorHazardSourceMonitoring/equipmentAlarm/index.vue
+++ b/src/views/majorHazardSourceMonitoring/equipmentAlarm/index.vue
@@ -199,7 +199,7 @@
alarmInfo: { required: true, message: "请输入报警信息", trigger: "change"},
},
equipmentName:[],
- unitIdOptions:[{label:"已处理",value:0},{label:"未处理",value:1}],
+ unitIdOptions:[{label:"未处理",value:0},{label:"已处理",value:1}],
};
},
created() {
@@ -232,14 +232,14 @@
this.title = "新增";
this.form = {
equipmentId: "",
- status:'',
+ status:0,
remark:"",
alarmTime:"",
alarmInfo:""
};
} else {
this.title = "编辑";
- this.form = value;
+ this.form=JSON.parse(JSON.stringify(value));
}
},
AddelementManagement() {
@@ -257,6 +257,10 @@
title: "成功",
});
} else {
+ this.$message({
+ type: "warning",
+ message: res.data.message,
+ });
}
});
} else {
@@ -271,6 +275,10 @@
title: "成功",
});
}else {
+ this.$message({
+ type: "warning",
+ message: res.data.message,
+ });
}
});
}
@@ -297,6 +305,11 @@
type: "success",
duration: 2000,
});
+ }else {
+ this.$message({
+ type: "warning",
+ message: res.data.message,
+ });
}
})
})
--
Gitblit v1.9.2