mirror of
https://github.com/PlayEdu/backend
synced 2025-06-21 20:43:23 +08:00
管理人员编辑禁止登录显示优化
This commit is contained in:
parent
01d20a97e1
commit
60aa433589
@ -39,7 +39,7 @@ export const UploadVideoSub = (props: PropsInterface) => {
|
||||
const [checkedList, setCheckedList] = useState<CheckboxValueType[]>(
|
||||
props.defaultCheckedList
|
||||
);
|
||||
const [indeterminate, setIndeterminate] = useState(true);
|
||||
const [indeterminate, setIndeterminate] = useState(false);
|
||||
const [checkAll, setCheckAll] = useState(false);
|
||||
|
||||
// 获取列表
|
||||
@ -113,10 +113,10 @@ export const UploadVideoSub = (props: PropsInterface) => {
|
||||
|
||||
const onCheckAllChange = (e: CheckboxChangeEvent) => {
|
||||
const arr = plainOptions.map((item: any) => item.value);
|
||||
const arrLabel = videoList.map((item: any) => item.name);
|
||||
setCheckedList(e.target.checked ? arr : []);
|
||||
setIndeterminate(false);
|
||||
setCheckAll(e.target.checked);
|
||||
const arrLabel = videoList.map((item: any) => item.name);
|
||||
if (e.target.checked) {
|
||||
props.onSelected(arr, arrLabel);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user