|
|
@ -284,7 +284,7 @@ |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input |
|
|
|
@input="changCode" |
|
|
|
v-model="ruleForm.processesList[scope.$index].code" |
|
|
|
v-model.number="ruleForm.processesList[scope.$index].code" |
|
|
|
/> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
@ -911,6 +911,7 @@ |
|
|
|
clearable |
|
|
|
multiple |
|
|
|
placeholder="请选择流程" |
|
|
|
@change="changeLiuc" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="(item, y) in ruleForm.processesList" |
|
|
@ -973,36 +974,7 @@ export default { |
|
|
|
Visible: false |
|
|
|
}, |
|
|
|
ruleForm: { |
|
|
|
// processesList: [], |
|
|
|
processesList: [ |
|
|
|
{ |
|
|
|
title: "测试" |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: "测试" |
|
|
|
} |
|
|
|
// { |
|
|
|
// title: "开场", //标题 |
|
|
|
// code: rand(1000,9999), //随机4位数 |
|
|
|
// introduction: "开场", //介绍 |
|
|
|
// sort: "", //排序 |
|
|
|
// // type: '1', //类型 |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// title: "选角", |
|
|
|
// code: rand(1000,9999), |
|
|
|
// introduction: "选角", |
|
|
|
// sort: "", |
|
|
|
// // type: '2', |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// title: "复盘", |
|
|
|
// code: rand(1000,9999), |
|
|
|
// introduction: "复盘", |
|
|
|
// sort: "", |
|
|
|
// // type: '9', |
|
|
|
// }, |
|
|
|
], |
|
|
|
processesList: [], |
|
|
|
imgUrl: "", |
|
|
|
imgUrls: [], |
|
|
|
radioImg: [], |
|
|
@ -1050,6 +1022,9 @@ export default { |
|
|
|
// this.queryFindList(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
changeLiuc(e){ |
|
|
|
// console.log(e); |
|
|
|
}, |
|
|
|
//音频校验 |
|
|
|
uploadAudio(file) { |
|
|
|
console.log(file); |
|
|
@ -1171,13 +1146,13 @@ export default { |
|
|
|
this.ruleForm.processesList[i].sort == |
|
|
|
this.ruleForm.processesList[s].sort |
|
|
|
) { |
|
|
|
this.$message({ |
|
|
|
message: "输入的流程排序有重复,请重新输入", |
|
|
|
type: "error" |
|
|
|
}); |
|
|
|
this.ruleForm.processesList[s].sort = ""; |
|
|
|
console.log(val); |
|
|
|
this.disabledButton = true; |
|
|
|
// this.$message({ |
|
|
|
// message: "输入的流程排序有重复,请重新输入", |
|
|
|
// type: "error" |
|
|
|
// }); |
|
|
|
// this.ruleForm.processesList[s].sort = ""; |
|
|
|
// console.log(val); |
|
|
|
// this.disabledButton = true; |
|
|
|
} else { |
|
|
|
this.disabledButton = false; |
|
|
|
} |
|
|
@ -1295,7 +1270,7 @@ export default { |
|
|
|
if ( |
|
|
|
res.data.resourcesList[i].mediaType == 1 && |
|
|
|
res.data.resourcesList[i].sourceType == 1 |
|
|
|
) { |
|
|
|
) { //图片 |
|
|
|
this.radioImg = 1; |
|
|
|
img.push(res.data.resourcesList[i]); |
|
|
|
} |
|
|
@ -1602,6 +1577,7 @@ export default { |
|
|
|
handleView(row) { |
|
|
|
console.log(this.type, 41231); |
|
|
|
this.type = "view"; |
|
|
|
this.dialog.title = "查看剧本"; |
|
|
|
console.log(this.type, 41231222); |
|
|
|
this.queryListDetail(row.id); |
|
|
|
this.disabled = true; |
|
|
@ -1666,9 +1642,17 @@ export default { |
|
|
|
// 开本流程新增 |
|
|
|
handleAddK() { |
|
|
|
//为空不能进行添加 |
|
|
|
if (!this.ruleForm.processesList.includes(false)) { |
|
|
|
this.disabledButton = true; |
|
|
|
let list = this.ruleForm.processesList; |
|
|
|
if(list.length!=0){ |
|
|
|
if (list[list.length-1].title=="" || list[list.length-1].code=="" ||list[list.length-1].introduction=="" ||list[list.length-1].sort=="" ) { |
|
|
|
this.$message({ |
|
|
|
message: '一次只能添加一次', |
|
|
|
type: 'warning' |
|
|
|
}); |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.ruleForm.processesList.push({ |
|
|
|
title: "", |
|
|
|
code: "", |
|
|
@ -1677,6 +1661,71 @@ export default { |
|
|
|
type: "5" |
|
|
|
}); |
|
|
|
}, |
|
|
|
//同步流程 |
|
|
|
tongbuliuchen(){ |
|
|
|
//删除图片 |
|
|
|
this.imgData.forEach((item,index)=>{ |
|
|
|
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<this.ruleForm.processesList.length;x++){ |
|
|
|
for(let y=0;y<imgprocessId.length;y++){ |
|
|
|
if(this.ruleForm.processesList[x].code.indexOf(imgprocessId[y])>-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<this.ruleForm.processesList.length;x++){ |
|
|
|
for(let y=0;y<imgprocessId.length;y++){ |
|
|
|
if(this.ruleForm.processesList[x].code.indexOf(imgprocessId[y])>-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<this.ruleForm.processesList.length;x++){ |
|
|
|
for(let y=0;y<imgprocessId.length;y++){ |
|
|
|
if(this.ruleForm.processesList[x].code.indexOf(imgprocessId[y])>-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, "视频地址"); |
|
|
|
// } |
|
|
|
} |
|
|
|
}; |
|
|
|
</script> |
|
|
|