NEZ-641 fix: alert-msg删除增加参数

This commit is contained in:
chenjinsong
2021-05-20 09:18:05 +08:00
parent 190e7669b2
commit 8676ce648b
2 changed files with 36 additions and 0 deletions

View File

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