不用写方法,如此判断即可
<el-form-item prop="executType"> <el-checkbox-group v-model="fileApprForm.executType"> <el-checkbox @change="leaderVisible=!leaderVisible" label="呈送领导"></el-checkbox> <el-checkbox @change="executerVisible=!executerVisible" label="发送给执行人"></el-checkbox> </el-checkbox-group> </el-form-item>
export default { data() { return { leaderVisible: false, executerVisible: false, }, } },