Commit 225437e9 authored by qzhxx's avatar qzhxx

提示

parent 827127c5
/* <template> <template>
<div class="listPage H100"> <div class="listPage H100">
<div class="search-container"> <div class="search-container">
<el-form :inline="true" :model="form" ref="form" onsubmit="return false;"> <el-form :inline="true" :model="form" ref="form" onsubmit="return false;">
...@@ -235,6 +235,7 @@ export default { ...@@ -235,6 +235,7 @@ export default {
parentId: "", parentId: "",
sort: "" sort: ""
}, },
videoBolb:[],
typeList: [], typeList: [],
rules: { rules: {
sort: [ sort: [
...@@ -531,11 +532,17 @@ export default { ...@@ -531,11 +532,17 @@ export default {
// param // param
) )
.then(res => { .then(res => {
this.videoList = []
const videos = res.data.data.videoFileList const videos = res.data.data.videoFileList
for(var i=0;i<videos.length;i++){ for(var i=0;i<videos.length;i++){
videos[i].fileUrl = Base64.decode(videos[i].intro) videos[i].fileUrl = Base64.decode(videos[i].intro)
// this.getBolb(videos[i])
} }
this.videoList = videos this.videoList = videos
// this.videoList = res.data.data.videoFileList // this.videoList = res.data.data.videoFileList
// console.log(this.videoList[0].fileUrl,'视频地址 fileUrl') // console.log(this.videoList[0].fileUrl,'视频地址 fileUrl')
// console.log(Base64.decode(this.videoList[0].intro),'解密地址') // console.log(Base64.decode(this.videoList[0].intro),'解密地址')
...@@ -547,17 +554,23 @@ export default { ...@@ -547,17 +554,23 @@ export default {
console.log(err); console.log(err);
}); });
}, },
getBolb(){ getBolb(data){
console.log(data.fileUrl)
// var uri = new Uri(data.fileUrl);
// Console.WriteLine(uri.AbsolutePath);
const _this =this const _this =this
const _data = data
axios({ axios({
method: "get", method: "get",
url: `/aa/group1/M00/00/54/wKhuVWCBObuAUSIQA6Mwb1hO1jk035.mp4`, // url: data.fileUrl,
url: `/aa/group1/M00/00/5E/wKhuVWCjsv6ACvENB_W9GhVPLd0452.mp4`,
responseType: "blob", responseType: "blob",
}).then(res => { }).then(res => {
// debugger; // debugger;
var blob = res.data; var blob = res.data;
console.log(window.URL.createObjectURL(blob), '加密的视频地址') console.log(window.URL.createObjectURL(blob), '加密的视频地址')
_data.fileUrl = window.URL.createObjectURL(blob)
this.videoList.push(_data)
// _this.videoSrc = window.URL.createObjectURL(blob) // _this.videoSrc = window.URL.createObjectURL(blob)
// video.onload = function(e) { // video.onload = function(e) {
// window.URL.revokeObjectURL(video.src); // window.URL.revokeObjectURL(video.src);
......
...@@ -368,8 +368,13 @@ export default { ...@@ -368,8 +368,13 @@ export default {
}) })
.then( .then(
(res) => { (res) => {
if(res.data.resultCode==='200'){
this.$message({ type: "success", message: "删除成功!" }); this.$message({ type: "success", message: "删除成功!" });
_this.Search(); _this.Search();
}else{
this.$message({ type: "error", message: res.data.message });
}
}, },
(error) => { (error) => {
this.$message({ this.$message({
......
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