|
|
|
@ -6,7 +6,7 @@ import axios from 'axios'
|
|
|
|
|
/**
|
|
|
|
|
角色数组, CREATOR: 创建者, PROFESSOR: 教师, ASSISTANT_PROFESSOR: 助教, STUDENT: 学生
|
|
|
|
|
*/
|
|
|
|
|
function ChangeRolePop({ member_roles = [], record, courseId, onChangeRoleSuccess, showNotification, getUserId, fetchUser }) {
|
|
|
|
|
function ChangeRolePop({ member_roles = [], record, courseId, onChangeRoleSuccess, showNotification, getUserId, fetchUser, style }) {
|
|
|
|
|
const [checkBoxRoles, setCheckBoxRoles] = useState(member_roles)
|
|
|
|
|
// useEffect(() => {
|
|
|
|
|
// if (checkBoxRoles.length != member_roles.length) { // 死循环
|
|
|
|
@ -75,7 +75,7 @@ function ChangeRolePop({ member_roles = [], record, courseId, onChangeRoleSucces
|
|
|
|
|
</Checkbox.Group>
|
|
|
|
|
}
|
|
|
|
|
>
|
|
|
|
|
<WordsBtn style={'blue'} style2={props.style}>修改角色</WordsBtn>
|
|
|
|
|
<WordsBtn style={'blue'} style2={style}>修改角色</WordsBtn>
|
|
|
|
|
</Popconfirm>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|