<el-table-column label="车身颜色" prop="csysid" min-width="100">
<template slot-scope="scope">
<span>{{ scope.row.csysid ? formatData(scope.row.csysid,'csysid','csysmc',csysList) :'--'}}</span>
</template>
</el-table-column>
// 格式化数据
formatData(id,value,label,arr){
//id 当前id
// value 绑定的value名称
// label 绑定的label名称
// 格式化的数组
for(let i in arr){
if(arr[i][value] == id){
return arr[i][label]
}
}
},