Commit 991c3a3d authored by qzhxx's avatar qzhxx

测试优化

parent 57d04928
<template> <template>
<div> <div>
<el-upload <el-upload
accept=".jpg,.jpeg,.png,.gif,.bmp,.pdf,.JPG,.JPEG,.PBG,.GIF,.BMP,.PDF" accept=".jpg,.jpeg,.png.JPG,.JPEG,.PNG"
:class="{disabled:uploadDisabled}" :class="{disabled:uploadDisabled}"
action="http://111.203.232.175:8088/mall/file/image/upload" action="http://111.203.232.175:8088/mall/file/image/upload"
list-type="picture-card" list-type="picture-card"
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
:multiple ="false" :multiple ="false"
> >
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
<div slot="tip" class="el-upload__tip color_red">只能上传.jpg/.jpeg/.png/.gif/.bmp/.pdf文件</div> <div slot="tip" class="el-upload__tip color_red">只能上传.jpg/.jpeg/.png文件</div>
</el-upload> </el-upload>
<el-dialog :visible.sync="dialogVisible"> <el-dialog :visible.sync="dialogVisible">
<img width="100%" :src="dialogImageUrl" alt /> <img width="100%" :src="dialogImageUrl" alt />
......
...@@ -318,6 +318,7 @@ export default { ...@@ -318,6 +318,7 @@ export default {
this.multipleSelection = data.exhibitionBoardList; this.multipleSelection = data.exhibitionBoardList;
this.$refs.uploadImg.showImg(this.ruleForm.cover); this.$refs.uploadImg.showImg(this.ruleForm.cover);
this.getExhibitionBoardTable(); this.getExhibitionBoardTable();
this.getAssetTypeData()
}) })
.catch(function(err) { .catch(function(err) {
console.log(err); console.log(err);
...@@ -497,7 +498,7 @@ export default { ...@@ -497,7 +498,7 @@ export default {
} else { } else {
this.checkedThing2 = false; this.checkedThing2 = false;
} }
this.getTableParam() // this.getTableParam()
}, },
// 筛选展板备选清单选项条件 // 筛选展板备选清单选项条件
getTableParam(){ getTableParam(){
......
...@@ -238,8 +238,8 @@ export default { ...@@ -238,8 +238,8 @@ export default {
init() { init() {
if (this.$route.query.type === "Update") { if (this.$route.query.type === "Update") {
this.getInfo(this.$route.query.id); this.getInfo(this.$route.query.id);
this.getVideoContentCatData()
this.getVideoContentCopyrightData()
} }
}, },
getVideoContentCat(data){ getVideoContentCat(data){
...@@ -267,6 +267,8 @@ export default { ...@@ -267,6 +267,8 @@ export default {
this.ruleForm.videoFileIdList = data.videoFileIdList this.ruleForm.videoFileIdList = data.videoFileIdList
this.ruleForm.imageList=[{url:data.thumbnail}] this.ruleForm.imageList=[{url:data.thumbnail}]
this.ruleForm.videoList=data.videoFileList.map(item=>{return {id:item.id,name:item.fileName,url:item.fileUrl}}) this.ruleForm.videoList=data.videoFileList.map(item=>{return {id:item.id,name:item.fileName,url:item.fileUrl}})
this.getVideoContentCatData()
this.getVideoContentCopyrightData()
}).catch(function(err) { }).catch(function(err) {
console.log(err); console.log(err);
}); });
...@@ -393,15 +395,20 @@ export default { ...@@ -393,15 +395,20 @@ export default {
// 获取视频分类列表 // 获取视频分类列表
getVideoContentCatData() { getVideoContentCatData() {
let vm = this; let vm = this;
vm.$https({ if(this.ruleForm.videoContentCopyrightOwnerId){
vm.$https({
url: "videoContentCat/getList", url: "videoContentCat/getList",
method: "get", method: "get",
authType: this.backToken authType: this.backToken
}).then(res => { },{copyrightOwnerId:this.ruleForm.videoContentCopyrightOwnerId}).then(res => {
this.videoContentCat = res.data.data; this.videoContentCat = res.data.data;
}).catch(function(err) { }).catch(function(err) {
console.log(err); console.log(err);
}); });
}else{
this.$message.warning("请先选择视频版权方!")
}
}, },
getSelectDep(videoContentCatIdList) { getSelectDep(videoContentCatIdList) {
this.checkedThing = videoContentCatIdList.length === this.videoContentCat.length; this.checkedThing = videoContentCatIdList.length === this.videoContentCat.length;
......
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