临时提交

This commit is contained in:
648540858
2024-08-26 17:59:29 +08:00
parent c45bf5d6af
commit b2b7426871
16 changed files with 378 additions and 98 deletions

View File

@@ -225,14 +225,23 @@
}
})
}else {
this.$message.success("未找到可用设备");
this.$message.success({
showClose: true,
message: "未找到可用设备"
});
}
}else {
this.$message.error(res.data.msg);
this.$message.error({
showClose: true,
message: res.data.msg
})
}
}).catch((error)=> {
this.$message.error(error.response.data.msg);
this.$message.error({
showClose: true,
message: error
})
});
},
@@ -302,21 +311,24 @@
this.$router.push(`/cloudRecordDetail/${row.app}/${row.stream}`)
},
deleteStreamProxy: function(row){
let that = this;
this.$confirm('确定删除此代理吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
that.$axios({
this.$axios({
method:"delete",
url:"/api/proxy/delete",
params:{
id: row.id,
}
}).then((res)=>{
that.initData()
}).catch(function (error) {
this.$message.success({
showClose: true,
message: "删除成功"
})
this.initData()
}).catch((error) =>{
console.log(error);
});
}).catch(() => {