From 44f7d425e29d5a1eef5449c9f35362de9dac9008 Mon Sep 17 00:00:00 2001
From: pyt <626651354@qq.com>
Date: 星期三, 26 二月 2025 15:40:19 +0800
Subject: [PATCH] fix

---
 management/src/pages/setting/user/index.jsx |   26 +++++++++++++++-----------
 1 files changed, 15 insertions(+), 11 deletions(-)

diff --git a/management/src/pages/setting/user/index.jsx b/management/src/pages/setting/user/index.jsx
index 448916c..7c64ee4 100644
--- a/management/src/pages/setting/user/index.jsx
+++ b/management/src/pages/setting/user/index.jsx
@@ -1,23 +1,18 @@
-import { buildProTableDataSource, sendRequest, showDelConfirm } from '@/utils/antdUtils';
+import { sendRequest, showDelConfirm } from '@/utils/antdUtils';
 import { DeleteOutlined, EditOutlined, PlusOutlined } from '@ant-design/icons';
 import { PageContainer, ProFormText, ProTable, QueryFilter } from '@ant-design/pro-components';
 import { Button, Col, Menu, Row, Space } from 'antd';
 import { useEffect, useRef, useState } from 'react';
 import { Access, useAccess } from 'umi';
 import AddAndEdit from './components/addAndEdit';
-import { add, del, edit, getList, getUnitList } from './service';
+import { add, del, edit, getUnitList } from './service';
 
 const Role = () => {
   const actionRef = useRef();
   const addViewRef = useRef();
-  const [modalVisible, handleModalVisibles] = useState(true);
+  const [modalVisible, handleModalVisibles] = useState(false);
   const access = useAccess();
-  useEffect(() => {
-    getUnitList().then((res) => {
-      console.log(res);
-    });
-  }, []);
-  const items = [
+  const [items, setItems] = useState([
     {
       key: '1',
       icon: (
@@ -71,7 +66,13 @@
         },
       ],
     },
-  ];
+  ]);
+  useEffect(() => {
+    getUnitList().then((res) => {
+      console.log(res);
+    });
+    console.log(items);
+  }, []);
   const columns = [
     {
       title: '角色名称',
@@ -143,12 +144,15 @@
       </div>
       <Row style={{ marginTop: 20, background: '#fff' }}>
         <Col span={4}>
+          <Space style={{ margin: '10px 0' }}>
+            <span style={{ margin: '0 27px'}}>单位管理</span>
+            <Button type="primary">添加</Button>
+          </Space>
           <Menu
             mode="inline"
             defaultSelectedKeys={['231']}
             style={{
               //   width: 256,
-              height: '100%',
             }}
             items={items}
           />

--
Gitblit v1.7.1