|
|
@ -467,7 +467,7 @@ |
|
|
|
</el-table-column> |
|
|
|
<el-table-column align="center" property="url" label="资源URL"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input v-model="ruleForm.radioImg[scope.$index].url" /> |
|
|
|
<el-input v-model="ruleForm.radioImg[scope.$index].neteaseUrl" /> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
@ -1377,7 +1377,8 @@ export default { |
|
|
|
mediaType: n.mediaType, |
|
|
|
sourceType: n.sourceType, |
|
|
|
title: n.title, |
|
|
|
url: n.url, |
|
|
|
// url: n.url, |
|
|
|
url: n.neteaseUrl, |
|
|
|
processNames: n.processNames, |
|
|
|
processId: n.processId.split(",") |
|
|
|
}; |
|
|
@ -1571,10 +1572,11 @@ export default { |
|
|
|
this.dialog.Visible = false; |
|
|
|
this.queryList(); |
|
|
|
} else { |
|
|
|
this.$message({ |
|
|
|
message: res.msg, |
|
|
|
type: "error" |
|
|
|
}); |
|
|
|
// console.log('新增提交失败'); |
|
|
|
// this.$message({ |
|
|
|
// message: res.msg, |
|
|
|
// type: "error" |
|
|
|
// }); |
|
|
|
} |
|
|
|
} else if (this.type == "edit") { |
|
|
|
var res = await updateJbInfo(this.ruleForm); |
|
|
@ -1583,8 +1585,9 @@ export default { |
|
|
|
this.dialog.Visible = false; |
|
|
|
this.queryList(); |
|
|
|
} else { |
|
|
|
console.log('编辑提交失败'); |
|
|
|
this.$message({ |
|
|
|
message: res.msg, |
|
|
|
// message: res.msg, |
|
|
|
type: "error" |
|
|
|
}); |
|
|
|
} |
|
|
@ -1888,8 +1891,28 @@ export default { |
|
|
|
DelImg(index) { |
|
|
|
this.ruleForm.radioImg.splice(index, 1); |
|
|
|
}, |
|
|
|
//网易云删除按钮 |
|
|
|
DelMusic(index) { |
|
|
|
this.ruleForm.radioMusic.splice(index, 1); |
|
|
|
// this.ruleForm.radioMusic.splice(index, 1); |
|
|
|
this.$confirm("您确定要删除吗?", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning" |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
this.ruleForm.radioMusic.splice(index, 1); |
|
|
|
this.tongbuliuchen(); |
|
|
|
this.$message({ |
|
|
|
type: "success", |
|
|
|
message: "删除成功!" |
|
|
|
}); |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.$message({ |
|
|
|
type: "error", |
|
|
|
message: "已取消删除" |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
DelVideo(index) { |
|
|
|
this.ruleForm.radioVideo.splice(index, 1); |
|
|
@ -1949,7 +1972,15 @@ export default { |
|
|
|
this.$refs.img.data = this.ruleForm.radioImg; |
|
|
|
} |
|
|
|
}, |
|
|
|
//新增网易云新增按钮 |
|
|
|
handleAddMusic() { |
|
|
|
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('一次只能添加一条') |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
this.ruleForm.radioMusic.push({ |
|
|
|
title: "", |
|
|
|
url: "", |
|
|
|