Pārlūkot izejas kodu

标签分类 修复关联内容的音频类型对应参数

DESKTOP-O04BTUJ\muzen 2 gadi atpakaļ
vecāks
revīzija
552be44bd4
1 mainītis faili ar 5 papildinājumiem un 5 dzēšanām
  1. 5 5
      src/views/operation/tag/detail.vue

+ 5 - 5
src/views/operation/tag/detail.vue

@@ -35,7 +35,7 @@
               <el-image :src="scope.row.audioPic" />
             </template>
           </el-table-column>
-          <el-table-column label="音频类型" prop="audioType" align="center" :formatter="typeFormatter" />
+          <el-table-column label="音频类型" prop="audioType" align="center" :formatter="audioTypeFormatter" />
           <el-table-column label="资源平台" align="center" :formatter="platfromFormatter" />
           <el-table-column label="操作" align="center">
             <template slot-scope="scope">
@@ -60,12 +60,12 @@
 import Dialog from '@/components/Dialog/index.vue'
 import Upload from '@/components/Upload/index.vue'
 import { submitThree, detail } from '@/api/operation/tag'
-import { platformMixin, isFreeMixin, channelMixin } from '@/mixin/index'
+import { platformMixin, isFreeMixin, channelMixin, audioMixin } from '@/mixin/index'
 export default {
   components: {
     Upload, Dialog
   },
-  mixins: [platformMixin, isFreeMixin, channelMixin],
+  mixins: [platformMixin, isFreeMixin, channelMixin, audioMixin],
   data() {
     return {
       // 表单
@@ -180,8 +180,8 @@ export default {
     },
 
     // 字典翻译
-    typeFormatter(row) {
-      return this.selectDictLabel(this.channelTypeOptions, row.audioType)
+    audioTypeFormatter(row) {
+      return this.selectDictLabel(this.audioOptions, row.audioType)
     },
     statusFormatter(row) {
       return this.selectDictLabel(this.onOrOffOptions, row.status)