Commit 225437e9 authored by qzhxx's avatar qzhxx

提示

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