Commit afa9bb2d authored by qzhxx's avatar qzhxx

汇出文件更改,视频删除确认

parent e260cc21
...@@ -513,10 +513,47 @@ export default { ...@@ -513,10 +513,47 @@ export default {
console.log(err); console.log(err);
}); });
}, },
// 删除 // 根据视频内容id查询被引用的展板
handleDelete(row) { 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 });
}
},
error => {
this.$message({
type: "fail",
message: "删除失败!" + error.response.data
});
}
);
},
//
// 删除弹出确认窗口
openDel(id,data){
// alert(data)
const dataMsg = data
let _this = this; let _this = this;
this.$confirm("此操作将永久删除, 是否继续?", "提示", { this.$confirm(dataMsg + "此操作将永久删除, 是否继续?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
...@@ -525,7 +562,7 @@ export default { ...@@ -525,7 +562,7 @@ export default {
_this _this
.$https({ .$https({
method: "delete", method: "delete",
url: "videoContent/delete/" + row.id, url: "videoContent/delete/" + id,
authType: this.backToken authType: this.backToken
}) })
.then( .then(
...@@ -548,6 +585,10 @@ export default { ...@@ -548,6 +585,10 @@ export default {
}) })
.catch(() => {}); .catch(() => {});
}, },
// 删除
handleDelete(row) {
this.getUseBoard(row.id)
},
// 批量操作 // 批量操作
handleSelectionChange(selection) { handleSelectionChange(selection) {
......
...@@ -306,7 +306,7 @@ export default { ...@@ -306,7 +306,7 @@ export default {
console.log(str); console.log(str);
_this.$https({ _this.$https({
url: "asset/download", url: "asset/download",
method: "get", method: "post",
authType: this.backToken authType: this.backToken
}, },
{idList:str} {idList:str}
...@@ -329,8 +329,6 @@ export default { ...@@ -329,8 +329,6 @@ export default {
downloadElement.click() // 点击下载 downloadElement.click() // 点击下载
document.body.removeChild(downloadElement) // 下载完成移除元素 document.body.removeChild(downloadElement) // 下载完成移除元素
window.URL.revokeObjectURL(href) // 释放blob对象 window.URL.revokeObjectURL(href) // 释放blob对象
}, },
error => {} error => {}
); );
......
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