<el-table-column prop="sex" label="性別" width="180" :formatter="formatSex" > formatSex: function (row, column) { return row.sex === 1 ? '男' : row.sex === 0 ? '女' : '未知' } 或者多個的話
formatMsgType: function (row, column) { switch (row.msgType) { case ("text"): return '文本'; break; case ("image"): return '圖片'; break; case ("voice"): return '語音'; break; case ("video"): return '視頻'; break; case ("shortvideo"): return '小視頻'; break; case ("location"): return '地理位置'; break; case ("link"): return '鏈接消息'; break; } },