<el-table-column label="三审" align="center">
<template slot-scope="scope"> //此行代码解决switch在表格中点击没有效果
<el-switch
v-model="scope.row.switch1" //要想在表格中每个switch都单独的控制,写法v-mode=“scope.row.自己定义”
active-color="#13ce66"
inactive-color="#DCDFE6"
:active-value="1" //选中switch1请赋值为1
:inactive-value="0" //不选中switch1请赋值为0
>
</el-switch>
</template>
</el-table-column>
11-12
5194
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-16