diff --git a/src/index.less b/src/index.less index d397acb..c18e44f 100644 --- a/src/index.less +++ b/src/index.less @@ -428,6 +428,12 @@ textarea.ant-input { opacity: 0.8; } } +.ant-tree-treenode { + position: relative; + .ant-tree-draggable-icon { + display: none; + } +} .form-column { width: 1px; diff --git a/src/pages/department/index.tsx b/src/pages/department/index.tsx index f3e8785..92dfdfc 100644 --- a/src/pages/department/index.tsx +++ b/src/pages/department/index.tsx @@ -1,5 +1,5 @@ import React, { useState, useEffect } from "react"; -import { Button, Tree, Modal, message } from "antd"; +import { Button, Tree, Modal, message, Tooltip } from "antd"; import styles from "./index.module.less"; import { PlusOutlined, ExclamationCircleFilled } from "@ant-design/icons"; import { department } from "../../api/index"; @@ -72,6 +72,12 @@ export const DepartmentPage: React.FC = () => { title: (
{departments[id][i].name}
+ + + {through("department-cud") && ( <> { title: (
{departments[id][i].name}
+ + + {through("department-cud") && ( <> { title: (
{categories[id][i].name}
+ + + {through("resource-category") && ( { title: (
{categories[id][i].name}
+ + + {through("resource-category") && (