Browse Source

运营管理 定制频道 频道属性修改关联内容列表

DESKTOP-O04BTUJ\muzen 2 years ago
parent
commit
5439658fce
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/views/operation/channel/detail.vue

+ 5 - 1
src/views/operation/channel/detail.vue

@@ -143,6 +143,11 @@ export default {
       ids: [],
     }
   },
+  watch: {
+    'form.channelType'(val) {
+      this.dialogForm.platformId = val === 16 ? 3 : val === 17 ? 2 : ''
+    }
+  },
   mounted() {
     this.getDetail()
     this.getList()
@@ -174,7 +179,6 @@ export default {
     // 修改频道属性
     handleChange(e) {
       let type = e === 17 ? 2 : e === 16 ? 8 : e
-      e === 17 ? [type = 2, this.dialogForm.platformId = 2] : e === 16 ? [type = 8, this.dialogForm.platformId = 3] : type = e
       this.getPlatform({
         audioType: type
       })