From e9d39a0c6c285da74ad163a5da9cf4a76ceb1823 Mon Sep 17 00:00:00 2001 From: x_z Date: Fri, 10 Mar 2023 16:34:49 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=AE=8C=E6=88=90=E5=BA=93=E5=AD=98=E9=A2=84?= =?UTF-8?q?=E8=AD=A6=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/remind/invRemindMsg.vue | 79 +++++++++++++++++++++++++++---- 1 file changed, 69 insertions(+), 10 deletions(-) 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 @@ - - + + - + @@ -161,21 +161,22 @@ - - - - + + + @@ -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() {