<el-checkbox-group :disabled="Editordisabled" v-model="checkboxGroup" @change="checkboxchange">
<el-checkbox v-for="item in rendatas" :label="item.sRoleId" :key="item.sRoleId">{{ item.sRoleName }}</el-checkbox>
</el-checkbox-group>
let params = {
sUserId:window.sessionStorage.getItem("userId"), // 当前登录人id
}
API.queryByIdThatpersonId(params, res => {
console.log(res)
if(res.statusCode=== "API-COMMON-INF-OK"){
this.rendatas = res.content;
}
})
checkboxchange(e) {
console.log(e)
},
变量
checkboxGroup: [], // 普通角色复选框回显数组
rendatas: [], // 普通角色复选框按钮数组