This commit is contained in:
none
2023-03-23 16:35:20 +08:00
parent e7421f67cc
commit 9f90bd75d3
22 changed files with 190 additions and 157 deletions

View File

@@ -1,6 +1,6 @@
import React, { useState, useEffect } from "react";
import { Spin, Button, Tree, Modal, message, Tooltip } from "antd";
import styles from "./index.module.less";
// import styles from "./index.module.less";
import { PlusOutlined, ExclamationCircleFilled } from "@ant-design/icons";
import { department } from "../../api/index";
import { PerButton } from "../../compenents";
@@ -18,14 +18,7 @@ interface Option {
children?: Option[];
}
interface DataType {
id: React.Key;
name: string;
created_at: string;
sort: number;
}
export const DepartmentPage: React.FC = () => {
const DepartmentPage = () => {
const navigate = useNavigate();
const permisssions = useSelector((state: any) => state.permisssions);
const [loading, setLoading] = useState<boolean>(true);
@@ -398,3 +391,5 @@ export const DepartmentPage: React.FC = () => {
</>
);
};
export default DepartmentPage;