Browse Source

编辑本地音乐报错

dev
liuzeweilog 3 years ago
parent
commit
868f3f8dd1
1 changed files with 17 additions and 3 deletions
  1. 20
      src/views/sce/sceInfo/index.vue

20
src/views/sce/sceInfo/index.vue

@ -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('一次只能添加一条')

Loading…
Cancel
Save