diff --git a/src/views/sce/sceInfo/index.vue b/src/views/sce/sceInfo/index.vue
index a933ce6..dd191cc 100644
--- a/src/views/sce/sceInfo/index.vue
+++ b/src/views/sce/sceInfo/index.vue
@@ -284,7 +284,7 @@
@@ -911,6 +911,7 @@
clearable
multiple
placeholder="请选择流程"
+ @change="changeLiuc"
>
{
+ let imgprocessId=this.imgData[index].processId?this.imgData[index].processId.split(","):[]
+ let data=[]
+ let name=[]
+ if(this.ruleForm.processesList.length<1){
+ this.imgData[index].processId=null
+ this.imgData[index].processNames=null
+ }else{
+ for(let x=0;x-1 ){
+ data.push(imgprocessId[y])
+ }
+ if(this.ruleForm.processesList[x].code==imgprocessId[y]){
+ name.push(this.ruleForm.processesList[x].title)
+ }
+
+ }
+ this.imgData[index].processId=data.join(",")
+ this.imgData[index].processNames=name.join(",")
+ }
+ }
+
+ })
+ //删除音频
+ this.musicData.forEach((item,index)=>{
+ let imgprocessId=this.musicData[index].processId?this.musicData[index].processId.split(","):[]
+ let data=[]
+ let name=[]
+ for(let x=0;x-1 ){
+ data.push(imgprocessId[y])
+ }
+ if(this.ruleForm.processesList[x].code==imgprocessId[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 imgprocessId=this.videoData[index].processId?this.videoData[index].processId.split(","):[]
+ let data=[]
+ let name=[]
+ for(let x=0;x-1 ){
+ data.push(imgprocessId[y])
+ }
+ if(this.ruleForm.processesList[x].code==imgprocessId[y]){
+ name.push(this.ruleForm.processesList[x].title)
+ }
+ }
+ this.videoData[index].processId=data.join(",")
+ this.videoData[index].processNames=name.join(",")
+ }
+ })
+
+ },
// 开本流程删除
Del(index) {
this.$confirm("此操作将永久删除该剧本流程,是否继续?", "提示", {
@@ -1685,11 +1734,12 @@ export default {
type: "warning"
})
.then(() => {
- this.ruleForm.processesList.splice(index, 1),
- this.$message({
- type: "success",
- message: "删除成功!"
- });
+ this.ruleForm.processesList.splice(index, 1),
+ this.tongbuliuchen();
+ this.$message({
+ type: "success",
+ message: "删除成功!"
+ });
})
.catch(() => {
this.$message({
@@ -1904,6 +1954,9 @@ export default {
},
//关联流程
setLc(item, i, type) {
+ console.log('item',item);
+ console.log('i',i);
+ console.log('type',type);
if (this.ruleForm.processesList.length == 0) {
this.$message({
message: "请新建流程",
@@ -1913,15 +1966,25 @@ export default {
}
if (type == "img") {
this.imgIndex = i;
+ try{
+ this.processId = this.imgData[i].processId.split(',')
+ }catch(err){}
} else if (type == "music") {
this.musicIndex = i;
+ try{
+ this.processId = this.musicData[i].processId.split(',')
+ }catch(err){}
} else if (type == "video") {
this.videoIndex = i;
+ try{
+ this.processId = this.videoData[i].processId.split(',')
+ }catch(err){}
}
this.list = item;
this.typeUrl = type;
- this.processId = "";
+ // this.processId = "";
this.process.Visible = true;
+
},
subMitLc() {
this.process.Visible = false;
@@ -1979,9 +2042,9 @@ export default {
}
},
//查看视频
- handleView(item) {
- console.log(item, "视频地址");
- }
+ // handleView(item) {
+ // console.log(item, "视频地址");
+ // }
}
};