// 表格中
<el-table-column prop="channelName" :formatter="getChannelName" header-align="center" align="center" label="销售渠道"></el-table-column>
// methods中
getChannelName(row) {
for (let i in this.tableTreeDdataPlatform.content) {
if (this.tableTreeDdataPlatform.content[i].id == row.channelId) {
return this.tableTreeDdataPlatform.content[i].channelName
}
}
},
// 其中this.tableTreeDdataPlatform.content是获取到的字典数据