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