fix: NEZ-715 修复Alert->Alert silence页面下,operation下得expired按钮提示信息是删除

This commit is contained in:
@changcode
2021-06-17 18:11:22 +08:00
parent fd5888c734
commit b7bdb210bc
3 changed files with 20 additions and 1 deletions

View File

@@ -194,6 +194,23 @@ export default {
}
})
},
del (row) {
this.$confirm(this.$t('tip.confirmExpired'), {
confirmButtonText: this.$t('tip.yes'),
cancelButtonText: this.$t('tip.no'),
type: 'warning'
}).then(() => {
this.$delete(this.url + '?ids=' + row.id + '&state=' + this.state).then(response => {
if (response.code === 200) {
this.delFlag = true
this.$message({ duration: 2000, type: 'success', message: this.$t('tip.deleteSuccess') })
this.getTableData()
} else {
this.$message.error(response.msg)
}
})
})
},
}
}
</script>