mirror of
https://github.com/PlayEdu/backend
synced 2025-06-22 03:32:47 +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[]>(
|
const [checkedList, setCheckedList] = useState<CheckboxValueType[]>(
|
||||||
props.defaultCheckedList
|
props.defaultCheckedList
|
||||||
);
|
);
|
||||||
const [indeterminate, setIndeterminate] = useState(true);
|
const [indeterminate, setIndeterminate] = useState(false);
|
||||||
const [checkAll, setCheckAll] = useState(false);
|
const [checkAll, setCheckAll] = useState(false);
|
||||||
|
|
||||||
// 获取列表
|
// 获取列表
|
||||||
@ -113,10 +113,10 @@ export const UploadVideoSub = (props: PropsInterface) => {
|
|||||||
|
|
||||||
const onCheckAllChange = (e: CheckboxChangeEvent) => {
|
const onCheckAllChange = (e: CheckboxChangeEvent) => {
|
||||||
const arr = plainOptions.map((item: any) => item.value);
|
const arr = plainOptions.map((item: any) => item.value);
|
||||||
const arrLabel = videoList.map((item: any) => item.name);
|
|
||||||
setCheckedList(e.target.checked ? arr : []);
|
setCheckedList(e.target.checked ? arr : []);
|
||||||
setIndeterminate(false);
|
setIndeterminate(false);
|
||||||
setCheckAll(e.target.checked);
|
setCheckAll(e.target.checked);
|
||||||
|
const arrLabel = videoList.map((item: any) => item.name);
|
||||||
if (e.target.checked) {
|
if (e.target.checked) {
|
||||||
props.onSelected(arr, arrLabel);
|
props.onSelected(arr, arrLabel);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user