Sfoglia il codice sorgente

修改isFree参数对应文案

DESKTOP-O04BTUJ\muzen 3 anni fa
parent
commit
b1c717761e
2 ha cambiato i file con 8 aggiunte e 4 eliminazioni
  1. 4 2
      src/views/channel/custom/detail.vue
  2. 4 2
      src/views/label/tag/detail.vue

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

@@ -93,8 +93,10 @@
 <script>
 import Upload from '@/components/Upload/index'
 import { channelList, channelTemplate, channelDetail, edit, list, remove, queryList } from '@/api/channel/custom'
+import { isFreeMixin } from '@/mixin/index'
 export default {
-  dicts: ['free_yes_no', 'channels_type'],
+  dicts: ['channels_type'],
+  mixins: [isFreeMixin],
   components: {
     Upload
   },
@@ -262,7 +264,7 @@ export default {
 
     // 字典翻译
     freeFormatter(row) {
-      return this.selectDictLabel(this.dict.type.free_yes_no, row.isFree)
+      return this.selectDictLabel(this.freeOptions, row.isFree)
     }
   }
 }

+ 4 - 2
src/views/label/tag/detail.vue

@@ -117,8 +117,10 @@
 
 <script>
 import { contentList, findList, detail, edit, createTag, remove, removeChildren } from '@/api/label/tag'
+import { isFreeMixin } from '@/mixin/index'
 export default {
-  dicts: ['audio_type', 'free_yes_no'],
+  dicts: ['audio_type'],
+  mixins: [isFreeMixin],
   data() {
     return {
       // 遮罩层
@@ -402,7 +404,7 @@ export default {
       return this.selectDictLabel(this.lableTypeOptions, row.audioType)
     },
     freeFormatter(row) {
-      return this.selectDictLabel(this.dict.type.free_yes_no, row.isFree)
+      return this.selectDictLabel(this.freeOptions, row.isFree)
     }
   }
 }