setOpen(false)}
+ title={'添加工作量'}
+ destroyOnClose
+ >
+
+
添加工作量信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
+
+AddDataManageDrawer.propTypes = {
+ open: PropTypes.bool.isRequired,
+ setOpen: PropTypes.func.isRequired,
+ commonAxios: PropTypes.func.isRequired,
+ fetchWorkload: PropTypes.func.isRequired,
+ messageApi: PropTypes.object.isRequired
+};
+
+export default AddDataManageDrawer;
\ No newline at end of file
diff --git a/src/page/Dashboard/DataManager/DataManageTable.jsx b/src/page/Dashboard/DataManager/DataManageTable.jsx
index e04efbc..9fd7048 100644
--- a/src/page/Dashboard/DataManager/DataManageTable.jsx
+++ b/src/page/Dashboard/DataManager/DataManageTable.jsx
@@ -4,6 +4,7 @@ import ManageTableColumn from "./ManageTableColumn";
import ImportDataDrawer from "./ImportDataDrawer";
import EditDataManageDrawer from './EditDataManageDrawer';
import creatMessageCommonAxios from "../../../http/CreatMessageCommonAxios";
+import AddDataManageDrawer from './AddDataManageDrawer'; // 导入新增的组件
const DataManageTable = props => {
@@ -17,6 +18,9 @@ const DataManageTable = props => {
// 新增编辑抽屉相关状态
const [editDrawerOpen, setEditDrawerOpen] = useState(false);
const [currentEditData, setCurrentEditData] = useState({});
+ // 添加添加数据抽屉的状态
+ const [addDrawerOpen, setAddDrawerOpen] = useState(false);
+
const rowSelection = {
type: 'checkbox',
onChange: (selectedRowKeys, selectedRows) => {
@@ -59,19 +63,28 @@ const DataManageTable = props => {
fetchWorkloadData={fetWorkload}
/>
{/* 编辑抽屉 */}
- {/*