1
//字典通用方法
import {filterDictTextByCache} from '@/components/dict/JDictSelectUtil'
2
{
title:'渠道分类',
align:"center",
dataIndex: 'categoryId',
//第一种
customRender: (text) => {//最有效的
//字典值翻译通用方法
return filterDictTextByCache('archives_type', text);
},
//第二种
//scopedSlots: { customRender: 'customRenderCategoryId' },
第三种
// customRender: function (text) {
// let name = '';
// let ary = [
// {id:0,name:'银行'},
// {id:1,name:'商会'},
// {id:2,name:'协会'},
// {id:3,name:'校友会'},