|
@@ -175,23 +175,24 @@
|
|
|
</el-form>
|
|
|
<el-table :data="tableData" ref="tableData" :row-key="rowKey" @selection-change="handleSelectionChange"
|
|
|
v-loading="loading">
|
|
|
- <el-table-column type="selection" align="center" reserve-selection
|
|
|
+ <el-table-column type="selection" align="center" reserve-selection key="selection"
|
|
|
v-if="tabIndex === 2 && active === 1" />
|
|
|
- <el-table-column label="音频ID" prop="audioId" align="center" show-overflow-tooltip />
|
|
|
- <el-table-column label="音频名称" prop="audioName" align="center" show-overflow-tooltip />
|
|
|
- <el-table-column label="音频封面" align="center" width="100px">
|
|
|
+ <el-table-column label="音频ID" prop="audioId" align="center" key="audioId" show-overflow-tooltip />
|
|
|
+ <el-table-column label="音频名称" prop="audioName" align="center" key="audioName" show-overflow-tooltip />
|
|
|
+ <el-table-column label="音频封面" align="center" key="audioPic" width="100px">
|
|
|
<template slot-scope="scope">
|
|
|
<el-image :src="scope.row.audioPic" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="音频类型" prop="audioType" align="center" :formatter="audioFormatter" />
|
|
|
- <el-table-column label="音频数量" prop="programCount" align="center" />
|
|
|
- <el-table-column label="付费类型" align="center" :formatter="freeFormatter" width="100px" />
|
|
|
- <el-table-column label="当前状态" align="center" :formatter="listStatusFormatter" />
|
|
|
- <el-table-column label="操作" align="center">
|
|
|
+ <el-table-column label="音频类型" prop="audioType" align="center" key="audioType"
|
|
|
+ :formatter="audioFormatter" />
|
|
|
+ <el-table-column label="音频数量" prop="programCount" align="center" key="programCount" />
|
|
|
+ <el-table-column label="付费类型" align="center" key="isFree" :formatter="freeFormatter" width="100px" />
|
|
|
+ <el-table-column label="当前状态" align="center" key="status" :formatter="statusFormatter" />
|
|
|
+ <el-table-column label="操作" align="center" key="change"
|
|
|
+ v-if="tabIndex === 2 && active === 1 ? false : true">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button v-if="tabIndex === 2 && active === 1 ? false : true" type="text"
|
|
|
- @click="getSelect(scope.row)" :disabled="scope.row.status === 2">
|
|
|
+ <el-button type="text" @click="getSelect(scope.row)">
|
|
|
选择
|
|
|
</el-button>
|
|
|
</template>
|
|
@@ -524,6 +525,7 @@ export default {
|
|
|
if (res.code === 0) {
|
|
|
this.tableData = res.data.records
|
|
|
this.total = res.data.total
|
|
|
+ this.$refs.tableData.clearSelection()
|
|
|
if (this.tableData.length > 0) {
|
|
|
this.list[this.index].childList.map(i => {
|
|
|
let row = res.data.records.find(j => j.audioId === i.contentId)
|
|
@@ -565,7 +567,8 @@ export default {
|
|
|
platformId: i.platformId,
|
|
|
contentType: i.audioType,
|
|
|
pic: i.audioPic,
|
|
|
- description: i.description
|
|
|
+ description: i.description,
|
|
|
+ status: i.status
|
|
|
})
|
|
|
}
|
|
|
})
|
|
@@ -657,9 +660,6 @@ export default {
|
|
|
statusFormatter(row) {
|
|
|
return row.status === 0 ? '上架' : '下架'
|
|
|
},
|
|
|
- listStatusFormatter(row) {
|
|
|
- return row.status ? this.selectDictLabel(this.onOrOffOptions, row.status) : '上架'
|
|
|
- },
|
|
|
|
|
|
// v-if判断
|
|
|
// 标题模块
|