<template slot-scope="scope">
<el-switch
v-model="scope.row.status"
:active-value="1"
:inactive-value="0"
@change="changeStatus($event,scope.row.status)"
>
</el-switch>
</template>
@change暂时没有用到所有只做了打印操作
changeStatus (val, state) {
console.log(val, state)
}
Q.E.D.
Comments | 0 条评论