diff --git a/neutrino-proxy-admin/src/views/system/portPool.vue b/neutrino-proxy-admin/src/views/system/portPool.vue index 69b73e20..04d55f34 100644 --- a/neutrino-proxy-admin/src/views/system/portPool.vue +++ b/neutrino-proxy-admin/src/views/system/portPool.vue @@ -35,8 +35,8 @@ @@ -76,6 +76,7 @@ import { fetchList, updateEnableStatus, createPortPool, deletePortPool } from '@/api/portPool' import waves from '@/directive/waves' // 水波纹指令 import { parseTime } from '@/utils' + import ButtonPopover from '../../components/Button/buttonPopover' const calendarTypeOptions = [ { key: 'CN', display_name: 'China' }, @@ -95,6 +96,9 @@ directives: { waves }, + components: { + ButtonPopover + }, data() { return { tableKey: 0, @@ -238,23 +242,17 @@ }) }, handleDelete(row) { - this.$confirm('确定要删除吗?', '提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: 'warning' - }).then(() => { - deletePortPool(row.id).then(response => { - if (response.data.code === 0) { - this.$notify({ - title: '成功', - message: '删除成功', - type: 'success', - duration: 2000 - }) - this.getList() - } - }) - }).catch(() => {}) + deletePortPool(row.id).then(response => { + if (response.data.code === 0) { + this.$notify({ + title: '成功', + message: '删除成功', + type: 'success', + duration: 2000 + }) + this.getList() + } + }) }, handleDownload() { this.downloadLoading = true