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

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

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