From 868f3f8dd1c585b1fd1f49655930b95d668a9f91 Mon Sep 17 00:00:00 2001 From: liuzeweilog <909920273@qq.com> Date: Tue, 19 Oct 2021 10:16:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=9C=AC=E5=9C=B0=E9=9F=B3?= =?UTF-8?q?=E4=B9=90=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/sce/sceInfo/index.vue | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/views/sce/sceInfo/index.vue b/src/views/sce/sceInfo/index.vue index d1ce73c..a23f310 100644 --- a/src/views/sce/sceInfo/index.vue +++ b/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('一次只能添加一条')