diff --git a/src/views/remind/invRemindMsg.vue b/src/views/remind/invRemindMsg.vue
index c5fa61bf..17187adc 100644
--- a/src/views/remind/invRemindMsg.vue
+++ b/src/views/remind/invRemindMsg.vue
@@ -137,8 +137,8 @@
-
-
+
+
{{ statusMap[scope.row.status] }}
@@ -149,7 +149,7 @@
{{ ignoreStatusMap[scope.row.ignoreStatus] }}
-
+
{{ typeMap[scope.row.type] }}
@@ -161,21 +161,22 @@
-
-
-
-
+
+
+
确认
忽略
@@ -190,6 +191,26 @@
@pagination="getList"
/>
+
+
+
+
+
+
+ 忽略7天
+
+ 忽略15天
+ 忽略30天
+
+
@@ -241,7 +262,9 @@ export default {
queryName: null,
invList: [],
spaceList: [],
- ggxhList: []
+ ggxhList: [],
+ ignoreVisible: false,
+ currentId: null
};
},
methods: {
@@ -357,10 +380,46 @@ export default {
this.filterQuery.relId = null;
},
confirmMsg(row) {
-
+ this.$prompt('请输入处理方式', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ }).then(({value}) => {
+ let params = {
+ id: row.id,
+ handleMsg: value
+ };
+ confirmMsg(params).then((res) => {
+ if (res.code === 20000) {
+ this.$message.success("已确认");
+ this.getList();
+ } else {
+ this.$message.error(res.message);
+ }
+ })
+ }).catch(() => {
+ });
},
ignoreMsg(row) {
-
+ this.ignoreVisible = true;
+ this.currentId = row.id;
+ },
+ ignore(type) {
+ this.ignoreVisible = false;
+ let params = {
+ id: this.currentId,
+ ignoreStatus: type
+ };
+ ignoreMsg(params).then((res) => {
+ this.currentId = null;
+ if (res.code === 20000) {
+ this.$message.success("已忽略预警");
+ this.getList();
+ } else {
+ this.$message.error(res.message);
+ }
+ }).catch(() => {
+ this.currentId = null;
+ })
},
},
created() {