competitions
hjm 5 years ago
parent 1aa2012cb0
commit ead7c7c474

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

Loading…
Cancel
Save