用template 的slot-scope=“scope” 获取到当前行或者列的信息 从而拿到 状态值 赋给v-model
若是改变状态 用change事件发送请求 修改状态
<el-table-column prop="status" label="用户状态">
<template slot-scope="scope">
<el-switch v-model="scope.row.status" active-color="#13ce66" inactive-color="#ff4949">
</el-switch>
</template>
</el-table-column>