From c4cc6e89ede325194ad40dfce59df85c0650c2ee Mon Sep 17 00:00:00 2001 From: aoshiguchen <1052045476@qq.com> Date: Sun, 28 Aug 2022 17:13:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86=E3=80=81?= =?UTF-8?q?=E7=AB=AF=E5=8F=A3=E6=B1=A0=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/system/portPool.vue | 36 +++++++++---------- 1 file changed, 17 insertions(+), 19 deletions(-) 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