From 201d42b5596dd7df3455182d5c0b4f3447f2e5b5 Mon Sep 17 00:00:00 2001
From: 1 <1@123>
Date: 星期三, 04 二月 2026 14:18:17 +0800
Subject: [PATCH] lsh#
---
rsf-admin/src/page/basicInfo/basStation/ContainerTypesField.jsx | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/rsf-admin/src/page/basicInfo/basStation/ContainerTypesField.jsx b/rsf-admin/src/page/basicInfo/basStation/ContainerTypesField.jsx
index 0a69c5a..7495bf0 100644
--- a/rsf-admin/src/page/basicInfo/basStation/ContainerTypesField.jsx
+++ b/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
--
Gitblit v1.9.1