<el-table :data="boct_lst" style="width: 100%">
<el-table-column prop="name" label="姓名" width="180"></el-table-column>
<el-table-column prop="pay_status" label="性别" width="180"></el-table-column>
<el-table-column prop="div" label="外键" width="180"></el-table-column>
<el-table-column
fixed="right"
label="操作"
width="100">
<template slot-scope="scope">
<el-button @click="handleClick(scope.row.id)" type="text" size="small">查看</el-button>
<el-button type="text" size="small">编辑</el-button>
</template>
</el-table-column>
</el-table>
handleClick(id) {
Axios.get('http://127.0.0.1:8000/make/'+id+'/')
.then(res=>{
console.log(res)
this.make_lst = res.data.msg
}).catch(err=>{
console.log(err)
})
},