|
@@ -58,7 +58,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="分类:">
|
|
|
<el-select v-model="dialogForm.classifyId" placeholder="请选择分类">
|
|
|
- <!-- <el-option /> -->
|
|
|
+ <el-option v-for="item in classifyOptions" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
@@ -120,7 +120,7 @@ export default {
|
|
|
pageSize: 10
|
|
|
},
|
|
|
total: 0,
|
|
|
-
|
|
|
+ classifyOptions:[],
|
|
|
// 添加频道内容
|
|
|
ids: [],
|
|
|
}
|
|
@@ -152,6 +152,14 @@ export default {
|
|
|
|
|
|
// 可选全部频道内容列表
|
|
|
getPage() {
|
|
|
+ channelTemplate({
|
|
|
+ audioType: this.data.audioType
|
|
|
+ }).then(res => {
|
|
|
+ if(res.code === 0){
|
|
|
+ this.classifyOptions = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
channelList({
|
|
|
...this.data,
|
|
|
...this.dialogForm
|