fix: 修复删除应用的提示框

This commit is contained in:
Orange
2020-11-16 18:55:09 +08:00
committed by 老广
parent c27dd0baef
commit 0cba2b3116
3 changed files with 6 additions and 6 deletions

View File

@@ -37,12 +37,12 @@ export default {
actions: {
prop: '',
formatterArgs: {
onDelete: function({ row, col, cellValue, reload }) {
performDelete: function({ row, col, cellValue, reload }) {
this.$axios.delete(
`/api/v1/applications/applications/${row.id}/`
).then(res => {
this.$refs.GenericListTable.$refs.ListTable.reloadTable()
this.$message.success(this.$t('common.deleteSuccessMsg'))
// this.$message.success(this.$t('common.deleteSuccessMsg'))
}).catch(error => {
this.$message.error(this.$t('common.deleteErrorMsg' + ' ' + error))
})

View File

@@ -29,12 +29,12 @@ export default {
actions: {
prop: '',
formatterArgs: {
onDelete: function({ row, col, cellValue, reload }) {
performDelete: function({ row, col, cellValue, reload }) {
this.$axios.delete(
`/api/v1/applications/applications/${row.id}/`
).then(res => {
this.$refs.GenericListTable.$refs.ListTable.reloadTable()
this.$message.success(this.$t('common.deleteSuccessMsg'))
// this.$message.success(this.$t('common.deleteSuccessMsg'))
}).catch(error => {
this.$message.error(this.$t('common.deleteErrorMsg' + ' ' + error))
})

View File

@@ -38,12 +38,12 @@ export default {
onUpdate: ({ row }) => {
vm.$router.push({ name: 'RemoteAppUpdate', params: { id: row.id }, query: { type: row.type }})
},
onDelete: function({ row, col, cellValue, reload }) {
performDelete: function({ row, col, cellValue, reload }) {
this.$axios.delete(
`/api/v1/applications/applications/${row.id}/`
).then(res => {
this.$refs.GenericListTable.$refs.ListTable.reloadTable()
this.$message.success(this.$t('common.deleteSuccessMsg'))
// this.$message.success(this.$t('common.deleteSuccessMsg'))
}).catch(error => {
this.$message.error(this.$t('common.deleteErrorMsg' + ' ' + error))
})