NEZ-3115 fix:删除告警信息,页面报错

This commit is contained in:
zhangyu
2023-08-28 13:58:04 +08:00
parent cd91590860
commit acf1439f49
2 changed files with 4 additions and 4 deletions

View File

@@ -402,7 +402,7 @@ export default {
// } else {
// url = this.url
// }
url = this.urlNew
url = this.url
this.$delete(url + '?ids=' + row.id + '&state=' + row.state).then(response => {
if (response.code === 200) {
self.delFlag = true
@@ -604,7 +604,7 @@ export default {
this.alertSilenceUrl = `/alert/silence/${this.obj.id}/rel`
url = this.alertSilenceUrl
} else {
url = this.urlNew
url = this.url
}
this.$put(url, this.deleteBox).then(res => {
if (res.code === 200) {

View File

@@ -564,7 +564,7 @@ export default {
})
arrState.forEach(state => {
const batchDeleteArr = this.batchDeleteObjs.filter(m => m.state === state)
promiseArr.push(this.$delete(this.url + '?ids=' + batchDeleteArr.map(m => m.id).join(',') + '&state=' + state))
promiseArr.push(this.$delete('/alert/message' + '?ids=' + batchDeleteArr.map(m => m.id).join(',') + '&state=' + state))
})
Promise.all(promiseArr)
.then(res => {
@@ -595,7 +595,7 @@ export default {
cancelButtonText: this.$t('tip.no'),
type: 'warning'
}).then(() => {
this.$delete(this.url + '?ids=' + row.id + '&state=' + row.state).then(response => {
this.$delete('/alert/message' + '?ids=' + row.id + '&state=' + row.state).then(response => {
if (response.code === 200) {
this.delFlag = true
this.$message({ duration: 2000, type: 'success', message: this.$t('tip.deleteSuccess') })