diff --git a/src/views/sce/sceInfo/index.vue b/src/views/sce/sceInfo/index.vue index 6fbb6ea..553260d 100644 --- a/src/views/sce/sceInfo/index.vue +++ b/src/views/sce/sceInfo/index.vue @@ -1680,7 +1680,8 @@ export default { console.log('else'); for(let x=0;x-1 ){ //如果table上的code在图片的关联数据上,就把图片的关联放到data中 + // if(this.ruleForm.processesList[x].code.indexOf(imgProcessId[y])>-1 ){ //如果table上的code在图片的关联数据上,就把图片的关联放到data中 + if(this.ruleForm.processesList[x].code.includes(imgProcessId[y]) ){ //如果table上的code在图片的关联数据上,就把图片的关联放到data中 data.push(imgProcessId[y]) console.log(data); }; @@ -1688,60 +1689,60 @@ export default { name.push(this.ruleForm.processesList[x].title) console.log(name); } + // debugger } } - this.imgData[index].processId=data.join(","); //把data上的数据变成字符串赋值到当前图片的下拉框上 this.imgData[index].processNames=name.join(',') console.log(this.imgData); } }) - //删除音频 - this.musicData.forEach((item,index)=>{ - let musicProcessId=this.musicData[index].processId?this.musicData[index].processId.split(","):[] - let data=[] - let name=[] - if(this.ruleForm.processesList.length<1){ - this.musicData[index].processId=null - this.musicData[index].processNames=null - }else{ - for(let x=0;x-1 ){ - data.push(musicProcessId[y]) - } - if(this.ruleForm.processesList[x].code==musicProcessId[y]){ - name.push(this.ruleForm.processesList[x].title) - } - } - this.musicData[index].processId=data.join(",") - this.musicData[index].processNames=name.join(",") - } - } - }) - //删除视频 - this.videoData.forEach((item,index)=>{ - let videoProcessId=this.videoData[index].processId?this.videoData[index].processId.split(","):[] - let data=[] - let name=[] - if(this.ruleForm.processesList.length<1){ - this.videoData[index].processId=null - this.videoData[index].processNames=null - }else{ - for(let x=0;x-1 ){ - data.push(videoProcessId[y]) - } - if(this.ruleForm.processesList[x].code==videoProcessId[y]){ - name.push(this.ruleForm.processesList[x].title) - } - } - this.videoData[index].processId=data.join(",") - this.videoData[index].processNames=name.join(",") - } - } - }) + // //删除音频 + // this.musicData.forEach((item,index)=>{ + // let musicProcessId=this.musicData[index].processId?this.musicData[index].processId.split(","):[] + // let data=[] + // let name=[] + // if(this.ruleForm.processesList.length<1){ + // this.musicData[index].processId=null + // this.musicData[index].processNames=null + // }else{ + // for(let x=0;x-1 ){ + // data.push(musicProcessId[y]) + // } + // if(this.ruleForm.processesList[x].code==musicProcessId[y]){ + // name.push(this.ruleForm.processesList[x].title) + // } + // } + // this.musicData[index].processId=data.join(",") + // this.musicData[index].processNames=name.join(",") + // } + // } + // }) + // //删除视频 + // this.videoData.forEach((item,index)=>{ + // let videoProcessId=this.videoData[index].processId?this.videoData[index].processId.split(","):[] + // let data=[] + // let name=[] + // if(this.ruleForm.processesList.length<1){ + // this.videoData[index].processId=null + // this.videoData[index].processNames=null + // }else{ + // for(let x=0;x-1 ){ + // data.push(videoProcessId[y]) + // } + // if(this.ruleForm.processesList[x].code==videoProcessId[y]){ + // name.push(this.ruleForm.processesList[x].title) + // } + // } + // this.videoData[index].processId=data.join(",") + // this.videoData[index].processNames=name.join(",") + // } + // } + // }) }, // 开本流程删除 Del(index) {