lbq
10 小时以前 912b4dab5f847ab1108b18df1b5e06e85c71881e
rsf-admin/src/page/basicInfo/basStation/ContainerTypesField.jsx
@@ -21,9 +21,9 @@
    const fetchAreaNames = async () => {
        if (!record?.containerTypes || record.containerTypes.length === 0) return;
        setLoading(true);
        try {
        try {
            const res = await request.post(`/dictData/many/${record.containerTypes$.join(',')}`);
            if (res?.data?.code === 200) {
                setAreaNames(res.data.data || []);
@@ -36,10 +36,10 @@
    };
    React.useEffect(() => {
        if (record?.containerTypes   && record.containerTypes.length > 0) {
        if (record?.containerTypes && record.containerTypes.length > 0) {
            fetchAreaNames();
        }
    }, [record]);
    }, [record]);
    if (loading) {
        return <CircularProgress size={20} />;
@@ -47,10 +47,10 @@
    return (
        <>
            <Stack
                direction="row"
                gap={1}
                flexWrap="wrap"
            <Stack
                direction="row"
                gap={1}
                flexWrap="wrap"
                onClick={handleOpen}
                sx={{ cursor: 'pointer' }}
            >
@@ -75,8 +75,8 @@
                )}
            </Stack>
            <Dialog
                open={open}
            <Dialog
                open={open}
                onClose={handleClose}
                maxWidth="md"
                fullWidth