|
|
@ -1680,7 +1680,8 @@ export default { |
|
|
|
console.log('else'); |
|
|
|
for(let x=0;x<this.ruleForm.processesList.length;x++){ //遍历table有数据 |
|
|
|
for(let y=0;y<imgProcessId.length;y++){ //遍历图片关联流程数据 |
|
|
|
if(this.ruleForm.processesList[x].code.indexOf(imgProcessId[y])>-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<this.ruleForm.processesList.length;x++){ |
|
|
|
for(let y=0;y<musicProcessId.length;y++){ |
|
|
|
if(this.ruleForm.processesList[x].code.indexOf(musicProcessId[y])>-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<this.ruleForm.processesList.length;x++){ |
|
|
|
for(let y=0;y<videoProcessId.length;y++){ |
|
|
|
if(this.ruleForm.processesList[x].code.indexOf(videoProcessId[y])>-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<this.ruleForm.processesList.length;x++){ |
|
|
|
// for(let y=0;y<musicProcessId.length;y++){ |
|
|
|
// if(this.ruleForm.processesList[x].code.indexOf(musicProcessId[y])>-1 ){ |
|
|
|
// data.push(musicProcessId[y]) |
|
|
|
// } |
|
|
|
// if(this.ruleForm.processesList[x].code==musicProcessId[y]){ |
|
|
|
// name.push(this.ruleForm.processesList[x].title) |
|
|
|
// } |
|
|
|
// </span><span class="err"> pan> } |
|
|
|
// this.musicData[index].processId=data.join(",") |
|
|
|
// this.musicData[index].processNames=name.join(",") |
|
|
|
// </span><span class="err"> pan> } |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// //删除视频 |
|
|
|
// 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<this.ruleForm.processesList.length;x++){ |
|
|
|
// for(let y=0;y<videoProcessId.length;y++){ |
|
|
|
// if(this.ruleForm.processesList[x].code.indexOf(videoProcessId[y])>-1 ){ |
|
|
|
// data.push(videoProcessId[y]) |
|
|
|
// </span><span class="err"> pan> } |
|
|
|
// if(this.ruleForm.processesList[x].code==videoProcessId[y]){ |
|
|
|
// name.push(this.ruleForm.processesList[x].title) |
|
|
|
// </span><span class="err"> pan> } |
|
|
|
// </span><span class="err"> pan> } |
|
|
|
// this.videoData[index].processId=data.join(",") |
|
|
|
// this.videoData[index].processNames=name.join(",") |
|
|
|
// </span><span class="err"> pan> } |
|
|
|
// </span><span class="err"> pan> } |
|
|
|
// }) |
|
|
|
}, |
|
|
|
// 开本流程删除 |
|
|
|
Del(index) { |
|
|
|