传统格式
<el-table
v-show="tableShow2"
:data="tableData2"
height="500"
border
style="width: 100% !important"
<el-table-column
prop="address"
label="地址"
width="300">
</el-table-column>
<el-table-column
prop="IDnumber"
label="身份证号"
width="300">
</el-table-column>
<el-table-column
prop="number"
label="年度总工数"
width="200">
</el-table-column>
<el-table-column
fixed="right"
label="操作"
width="200">
<template slot-scope="scope">
<el-button @click="lookAllInfo(scope.row)" type="text" size="small">查看详情</el-button>
</template>
</el-table-column>
</el-table>
可以通过<template slot-scope="scope"> 标签然后获取里边的值 scope.row可以查看,index的话为scope.$index