Commit afa9bb2d authored by qzhxx's avatar qzhxx

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

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