From e1cac1af6129216da66e569ddec892dd1f07fe80 Mon Sep 17 00:00:00 2001
From: chen.lin <1442464845@qq.com>
Date: 星期三, 25 二月 2026 10:14:37 +0800
Subject: [PATCH] 站点复制功能

---
 rsf-admin/src/page/basicInfo/basStation/BasStationCreate.jsx |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/rsf-admin/src/page/basicInfo/basStation/BasStationCreate.jsx b/rsf-admin/src/page/basicInfo/basStation/BasStationCreate.jsx
index b73e16b..5534a72 100644
--- a/rsf-admin/src/page/basicInfo/basStation/BasStationCreate.jsx
+++ b/rsf-admin/src/page/basicInfo/basStation/BasStationCreate.jsx
@@ -35,7 +35,7 @@
 import DictionaryArraySelect from "../../components/DictionaryArraySelect";
 
 const BasStationCreate = (props) => {
-    const { open, setOpen } = props;
+    const { open, setOpen , copyRecord = null, onClose} = props;
 
     const translate = useTranslate();
     const notify = useNotify();
@@ -43,6 +43,7 @@
     const handleClose = (event, reason) => {
         if (reason !== "backdropClick") {
             setOpen(false);
+            if (typeof onClose === 'function') {onClose();}
         }
     };
 
@@ -58,7 +59,8 @@
     return (
         <>
             <CreateBase
-                record={{}}
+              key={open ? (copyRecord ? 'copy' : 'new') : 'closed'}
+              record={copyRecord || {}}
                 transform={(data) => {
                     return data;
                 }}

--
Gitblit v1.9.1