|
@@ -240,7 +240,8 @@
|
|
|
}
|
|
|
.marterialInfo{
|
|
|
overflow: auto;
|
|
|
-
|
|
|
+ height: 800px;
|
|
|
+ position: relative;
|
|
|
p{margin-bottom: 0;}
|
|
|
ul,li{
|
|
|
margin: 0;
|
|
@@ -295,7 +296,7 @@
|
|
|
line-height: 60px;
|
|
|
text-align: center;
|
|
|
position: absolute;
|
|
|
- bottom: 20px;
|
|
|
+ bottom: 0px;
|
|
|
left: 0;
|
|
|
|
|
|
}
|
|
@@ -405,8 +406,9 @@
|
|
|
:visible="visible"
|
|
|
@close="onClose"
|
|
|
>
|
|
|
-
|
|
|
+ <a-spin :spinning="visibleLoading">
|
|
|
<div class="marterialInfo videomarterialInfo">
|
|
|
+
|
|
|
<div class="info-item">
|
|
|
<span>视频状态:</span>
|
|
|
<p>{{ currentVideo.videoStatus | handlerVideoStatus }}</p>
|
|
@@ -420,9 +422,12 @@
|
|
|
</div>
|
|
|
<div class="info-item">
|
|
|
<span>封面预览:</span>
|
|
|
- <div class="imgBox">
|
|
|
+ <div class="imgBox" v-if="currentVideo.imgList&¤tVideo.imgList.length">
|
|
|
<img alt="" style="width:100px;margin:0 10px 8px 0" v-for="(item,index) in currentVideo.imgList" :key='index' :src="item">
|
|
|
</div>
|
|
|
+ <div v-else>
|
|
|
+ <span>暂无封面</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="info-item" v-if="currentVideo.videoStatus==1">
|
|
|
<span>视频标签:</span>
|
|
@@ -451,8 +456,9 @@
|
|
|
<a-button type='default' @click="onClose">关闭</a-button>
|
|
|
</div>
|
|
|
|
|
|
-
|
|
|
+
|
|
|
</div>
|
|
|
+ </a-spin>
|
|
|
</a-drawer>
|
|
|
<a-drawer
|
|
|
title="脚本详情"
|
|
@@ -462,7 +468,7 @@
|
|
|
:visible="scriptVisible"
|
|
|
@close="scriptClose"
|
|
|
>
|
|
|
-
|
|
|
+ <a-spin :spinning="visibleLoading">
|
|
|
<div class="marterialInfo">
|
|
|
<div class="info-item">
|
|
|
<span>脚本状态:</span>
|
|
@@ -500,6 +506,7 @@
|
|
|
<a-button type='default' @click="scriptClose">关闭</a-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ </a-spin>
|
|
|
</a-drawer>
|
|
|
|
|
|
<!-- bohui -->
|
|
@@ -597,6 +604,7 @@ export default {
|
|
|
{ title: '视频列表', content: '', key: 2 , },
|
|
|
];
|
|
|
return {
|
|
|
+ visibleLoading:false,
|
|
|
loadingElse:false,
|
|
|
videoRejectVisiable:false,
|
|
|
scriptRejectVisiable:false,
|
|
@@ -698,17 +706,20 @@ export default {
|
|
|
console.log(record)
|
|
|
this.currentMaterial=record
|
|
|
if(record.materialStatus>=4){
|
|
|
- this.currentVideo={};
|
|
|
+ this.currentVideo={};
|
|
|
+ this.visible = true;
|
|
|
+ this.visibleLoading=true
|
|
|
if(record.videoId){
|
|
|
getAction(this.url.videoDetail,{
|
|
|
videoId:record.videoId
|
|
|
}).then(res=>{
|
|
|
console.log(res);
|
|
|
+ this.visibleLoading=false
|
|
|
if(res.success){
|
|
|
if(res.result){
|
|
|
- let tagList=res.result.tag.split(',')
|
|
|
- let imgList=res.result.imageUrl.split(',')
|
|
|
- console.log(tagList)
|
|
|
+ let tagList=res.result.tag?res.result.tag.split(','):[]
|
|
|
+ let imgList=res.result.imageUrl?res.result.imageUrl.split(','):[]
|
|
|
+ // console.log(tagList)
|
|
|
this.currentVideo={
|
|
|
...res.result,
|
|
|
tagList,
|
|
@@ -716,7 +727,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- this.visible = true;
|
|
|
+
|
|
|
}else{
|
|
|
this.currentVideo={};
|
|
|
}
|
|
@@ -735,14 +746,17 @@ export default {
|
|
|
console.log(record)
|
|
|
this.currentMaterial=record
|
|
|
this.currentScript={};
|
|
|
+ this.scriptVisible = true;
|
|
|
if(record.scriptId){
|
|
|
+ this.visibleLoading=true
|
|
|
getAction(this.url.scriptDetail,{
|
|
|
scriptId:record.scriptId
|
|
|
}).then(res=>{
|
|
|
console.log(res);
|
|
|
+ this.visibleLoading=false
|
|
|
if(res.success){
|
|
|
this.currentScript=res.result;
|
|
|
- this.scriptVisible = true;
|
|
|
+
|
|
|
}else{
|
|
|
this.currentScript={};
|
|
|
}
|