Commit 6508bf10 authored by Your Name's avatar Your Name

展板版权方、内容管理删除提示

parent 9634ca70
......@@ -516,46 +516,51 @@ export default {
});
},
// 根据视频内容id查询被引用的展板
getUseBoard(id){
this
.$https({
method: "get",
url: "videoContent/getExhibitionBoardById/" + id,
authType: this.backToken
})
.then(
res => {
if(res.data.resultCode === "200"){
// console.log(res.data.data,'wwwww')
let data = res.data.data
if(data){
data = '当前视频已被展板(' + res.data.data + ')所使用,'
}else{
data = '当前视频无引用展板,'
}
console.log(data)
this.openDel(id,data)
// getUseBoard(id){
// this
// .$https({
// method: "get",
// url: "videoContent/getExhibitionBoardById/" + id,
// authType: this.backToken
// })
// .then(
// res => {
// if(res.data.resultCode === "200"){
// // console.log(res.data.data,'wwwww')
// let data = res.data.data
// if(data){
// data = '当前视频已被展板(' + res.data.data + ')所使用,'
// }else{
// data = '当前视频无引用展板,'
// }
// console.log(data)
// this.openDel(id,data)
}else{
this.$message({ type: "error", message: res.data.message });
}
// }else{
// this.$message({ type: "error", message: res.data.message });
// }
},
error => {
this.$message({
type: "fail",
message: "删除失败!" + error.response.data
});
}
);
},
// },
// error => {
// this.$message({
// type: "fail",
// message: "删除失败!" + error.response.data
// });
// }
// );
// },
//
// 删除弹出确认窗口
openDel(id,data){
openDel(id){
// alert(data)
const dataMsg = data
// const dataMsg = data
},
// 删除
handleDelete(row) {
var id = row.id
let _this = this;
this.$confirm(dataMsg + "此操作将永久删除, 是否继续?", "提示", {
this.$confirm("此操作将永久删除, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
......@@ -587,10 +592,6 @@ export default {
})
.catch(() => {});
},
// 删除
handleDelete(row) {
this.getUseBoard(row.id)
},
// 批量操作
handleSelectionChange(selection) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment