增加拉流代理删除确认功能。

This commit is contained in:
WuPeng 2022-05-04 17:49:40 +08:00
parent c38aa291dd
commit fc81854830

View File

@ -240,24 +240,31 @@
}); });
}, },
deleteStreamProxy: function(row){ deleteStreamProxy: function(row){
let that = this; this.$confirm('确认删除此路数据?', '提示', {
this.getListLoading = true; confirmButtonText: '确定',
that.$axios({ cancelButtonText: '取消',
method:"delete", type: 'warning'
url:"/api/proxy/del", }).then(() => {
params:{ let that = this;
app: row.app, this.getListLoading = true;
stream: row.stream that.$axios({
} method:"delete",
}).then((res)=>{ url:"/api/proxy/del",
that.getListLoading = false; params:{
that.initData() app: row.app,
}).catch(function (error) { stream: row.stream
console.log(error); }
that.getListLoading = false; }).then((res)=>{
}); that.getListLoading = false;
}, that.initData()
}).catch(function (error) {
console.log(error);
that.getListLoading = false;
});
}).catch(() => {
});
},
start: function(row){ start: function(row){
let that = this; let that = this;
this.getListLoading = true; this.getListLoading = true;