Browse Source

频道管理 定制频道

DESKTOP-O04BTUJ\muzen 3 năm trước cách đây
mục cha
commit
7bb2ae78ad
1 tập tin đã thay đổi với 10 bổ sung2 xóa
  1. 10 2
      src/views/channel/custom/detail.vue

+ 10 - 2
src/views/channel/custom/detail.vue

@@ -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