|
@@ -150,7 +150,14 @@
|
|
|
|
|
|
<el-table-column label="操作" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <!-- <Audio :src="scope.row.progaramUrl" /> -->
|
|
|
+ <Audio :src="scope.row.progaramUrl" />
|
|
|
+
|
|
|
+ <el-button
|
|
|
+ type="delete"
|
|
|
+ :disabled="disabled"
|
|
|
+ @click="getDeletePlus(scope.$index)"
|
|
|
+ >删除</el-button
|
|
|
+ >
|
|
|
|
|
|
<!-- 向上移动 -->
|
|
|
<el-button
|
|
@@ -452,6 +459,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 删除已选歌曲
|
|
|
+ getDeletePlus(index) {
|
|
|
+ this.form.adminPodCastProgramDetailResp.splice(index, 1);
|
|
|
+ this.form.adminPodCastProgramDetailResp =
|
|
|
+ this.form.adminPodCastProgramDetailResp.filter((i) => i);
|
|
|
+ },
|
|
|
+
|
|
|
// 排序
|
|
|
getChange(top, index, laterIndex) {
|
|
|
var row = this.form.adminPodCastProgramDetailResp[index];
|
|
@@ -476,27 +490,6 @@ export default {
|
|
|
this.$message.success("操作成功!");
|
|
|
},
|
|
|
|
|
|
- // 排序
|
|
|
- getChangeSort(row, sort) {
|
|
|
- const rowBean = this.form.adminPodCastProgramDetailResp[row];
|
|
|
- const sortBean = this.form.adminPodCastProgramDetailResp[sort];
|
|
|
- this.form.adminPodCastProgramDetailResp[row] = sortBean;
|
|
|
- this.form.adminPodCastProgramDetailResp[sort] = rowBean;
|
|
|
- this.form.adminPodCastProgramDetailResp =
|
|
|
- this.form.adminPodCastProgramDetailResp.filter((i) => i);
|
|
|
- // this.form.podcastProgramIds = [];
|
|
|
- // this.form.adminPodCastProgramDetailResp.map((i) => {
|
|
|
- // this.form.podcastProgramIds.push(i.id);
|
|
|
- // });
|
|
|
- // submit(this.form).then((res) => {
|
|
|
- // if (res.code === 0) {
|
|
|
- // let title = "修改成功!";
|
|
|
- // this.$message.success(`${title}`);
|
|
|
- // this.getDetail();
|
|
|
- // }
|
|
|
- // });
|
|
|
- },
|
|
|
-
|
|
|
// 详情
|
|
|
getDetail() {
|
|
|
detail(this.form.id).then((res) => {
|