|
@@ -91,15 +91,15 @@
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="跳转方式:" v-if="forwardType()">
|
|
|
- <el-select v-model="item.forwardType" placeholder="请选择跳转方式">
|
|
|
+ <el-select v-model="item.forwardType" placeholder="请选择跳转方式" @change="getForwardType(item)">
|
|
|
<el-option v-for="item in typeOptions" :key="item.value" :label="item.label"
|
|
|
:value="Number(item.value)" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="专区页面:" v-if="item.forwardType === 7">
|
|
|
- <el-select placeholder="请选择跳转专区">
|
|
|
- <el-option v-for="item in locationOptions" :key="item.value" :value="item.value" :label="item.label" />
|
|
|
+ <el-select v-model="item.contentId" placeholder="请选择跳转专区">
|
|
|
+ <el-option v-for="item in sceneOptions" :key="item.value" :value="item.value" :label="item.label" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
|
|
@@ -234,6 +234,7 @@ import {
|
|
|
removeList
|
|
|
} from '@/api/operation/recommend'
|
|
|
import { isFreeMixin, audioMixin, platformMixin, onOrOffMixin, coverMixin } from '@/mixin/index'
|
|
|
+import { list } from '@/api/operation/scene'
|
|
|
|
|
|
export default {
|
|
|
mixins: [isFreeMixin, audioMixin, platformMixin, onOrOffMixin, coverMixin],
|
|
@@ -381,7 +382,8 @@ export default {
|
|
|
type: 6
|
|
|
}, {
|
|
|
value: 7,
|
|
|
- label: 'APP内容跳转专区'
|
|
|
+ label: 'APP内容跳转专区',
|
|
|
+ type: 16
|
|
|
}, {
|
|
|
value: 5,
|
|
|
label: 'H5内链'
|
|
@@ -397,16 +399,7 @@ export default {
|
|
|
label: '手动推荐内容'
|
|
|
}],
|
|
|
// 专区
|
|
|
- locationOptions: [{
|
|
|
- value: 0,
|
|
|
- label: '运动专区'
|
|
|
- }, {
|
|
|
- value: 1,
|
|
|
- label: '睡眠专区'
|
|
|
- }, {
|
|
|
- value: 2,
|
|
|
- label: '儿童专区'
|
|
|
- }]
|
|
|
+ sceneOptions: []
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -422,6 +415,7 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
this.getTab()
|
|
|
+ this.getSceneList()
|
|
|
},
|
|
|
methods: {
|
|
|
// 分类列表
|
|
@@ -737,6 +731,25 @@ export default {
|
|
|
item.isCustom = item.model === 0 ? 1 : 0
|
|
|
},
|
|
|
|
|
|
+ // 监听跳转方式
|
|
|
+ getForwardType(item) {
|
|
|
+ item.contentType = item.forwardType === 7 ? 16 : null
|
|
|
+ },
|
|
|
+
|
|
|
+ // 爱听专区
|
|
|
+ getSceneList() {
|
|
|
+ list().then(res => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ res.data.map(i => {
|
|
|
+ this.sceneOptions.push({
|
|
|
+ value: i.id,
|
|
|
+ label: i.name
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
// 字典翻译
|
|
|
audioFormatter(row) {
|
|
|
return this.selectDictLabel(this.audioOptions, row.audioType)
|