@@ -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)
}
@@ -117,8 +117,10 @@
import { contentList, findList, detail, edit, createTag, remove, removeChildren } from '@/api/label/tag'
- dicts: ['audio_type', 'free_yes_no'],
+ dicts: ['audio_type'],
data() {
return {
// 遮罩层
@@ -402,7 +404,7 @@ export default {
return this.selectDictLabel(this.lableTypeOptions, row.audioType)