From fc8185483019f211bd82de2d47846260ffadf625 Mon Sep 17 00:00:00 2001 From: WuPeng Date: Wed, 4 May 2022 17:49:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8B=89=E6=B5=81=E4=BB=A3?= =?UTF-8?q?=E7=90=86=E5=88=A0=E9=99=A4=E7=A1=AE=E8=AE=A4=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_src/src/components/StreamProxyList.vue | 43 +++++++++++++--------- 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/web_src/src/components/StreamProxyList.vue b/web_src/src/components/StreamProxyList.vue index d5533927b..b77b735b2 100644 --- a/web_src/src/components/StreamProxyList.vue +++ b/web_src/src/components/StreamProxyList.vue @@ -240,24 +240,31 @@ }); }, - deleteStreamProxy: function(row){ - let that = this; - this.getListLoading = true; - that.$axios({ - method:"delete", - url:"/api/proxy/del", - params:{ - app: row.app, - stream: row.stream - } - }).then((res)=>{ - that.getListLoading = false; - that.initData() - }).catch(function (error) { - console.log(error); - that.getListLoading = false; - }); - }, + deleteStreamProxy: function(row){ + this.$confirm('确认删除此路数据?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + let that = this; + this.getListLoading = true; + that.$axios({ + method:"delete", + url:"/api/proxy/del", + params:{ + app: row.app, + stream: row.stream + } + }).then((res)=>{ + that.getListLoading = false; + that.initData() + }).catch(function (error) { + console.log(error); + that.getListLoading = false; + }); + }).catch(() => { + }); + }, start: function(row){ let that = this; this.getListLoading = true;