|
|
@ -1572,7 +1572,7 @@ export default { |
|
|
|
this.ruleForm.radioVideo = this.videoData; |
|
|
|
} |
|
|
|
let data = this.ruleForm.radioImg //图片,音乐,视频给后端传的值 |
|
|
|
.concat(this.ruleForm.radioMusic) |
|
|
|
.concat(this.ruleForm.radioMusic?this.ruleForm.radioMusic:[]) |
|
|
|
.concat(this.musicData) |
|
|
|
.concat(this.ruleForm.radioVideo); |
|
|
|
console.log(data); |
|
|
@ -1983,7 +1983,9 @@ export default { |
|
|
|
}, |
|
|
|
changeMusic(val) { |
|
|
|
this.radioMusic = val; |
|
|
|
// this.ruleForm.radioMusic = []; |
|
|
|
if(this.ruleForm.radioMusic.length<=0){ |
|
|
|
this.ruleForm.radioMusic = []; |
|
|
|
} |
|
|
|
// this.musicData = []; |
|
|
|
}, |
|
|
|
changeVideo(val) { |
|
|
@ -2014,9 +2016,21 @@ export default { |
|
|
|
this.$refs.img.data = this.ruleForm.radioImg; |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//新增网易云新增按钮 |
|
|
|
handleAddMusic() { |
|
|
|
let list = this.ruleForm.radioMusic |
|
|
|
console.log('新增'); |
|
|
|
// console.log(this); |
|
|
|
// console.log('ruleForm',this.ruleForm); |
|
|
|
// console.log(this.ruleForm.radioMusic); |
|
|
|
// if(this.ruleForm.radioMusic){ |
|
|
|
// this.ruleForm.radioMusic = []; |
|
|
|
// } |
|
|
|
if(this.dialog.title == "编辑剧本" && this.ruleForm.radioMusic != []){ |
|
|
|
this.ruleForm.radioMusic = []; |
|
|
|
} |
|
|
|
|
|
|
|
let list = this.ruleForm.radioMusic; |
|
|
|
if(list.length!=0){ |
|
|
|
if(list[list.length-1].title==''||list[list.length-1].url==''||list[list.length-1].processId==''){ |
|
|
|
this.$message.warning('一次只能添加一条') |
|
|
|