一、根据tabIndex变量值,显示不同的表头header
二、代码
<el-table-column min-width="220" show-overflow-tooltip>
<template slot="header" slot-scope="scope">
{{tabIndex==1?'表头栏目1':'表头栏目222'}}
</template>
<template slot-scope="scope">
{{scope.row.content}}
</template>
</el-table-column>