From 9a3c3141dfa6e879215c6c089d18b5df6d40f6bc Mon Sep 17 00:00:00 2001 From: Chengliang <1546584672@qq.com> Date: Fri, 13 Sep 2024 16:18:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E8=BF=9C=E7=BB=84=E7=BB=87=E6=9E=B6?= =?UTF-8?q?=E6=9E=84=E5=9B=BE=E7=89=88=E6=9C=AC=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/topBar/index.jsx | 80 +++++++++++++++++---------------- src/pages/company.jsx | 6 ++- src/pages/user.jsx | 2 +- 3 files changed, 48 insertions(+), 40 deletions(-) diff --git a/src/components/topBar/index.jsx b/src/components/topBar/index.jsx index 98caa38..9df16f9 100644 --- a/src/components/topBar/index.jsx +++ b/src/components/topBar/index.jsx @@ -217,7 +217,7 @@ export class TopBar extends React.Component { ); render() { - const { disabled, type } = this.props; + const { disabled, type, timelineId } = this.props; const { rootTreeData, open, @@ -247,28 +247,30 @@ export class TopBar extends React.Component { treeIcon /> - - - this.handleFormChange({ - showClass: e.target.checked ? '1' : '0', - }) - } - > - 显示班组 - - - - - + {timelineId == 0 && ( + + + this.handleFormChange({ + showClass: e.target.checked ? '1' : '0', + }) + } + > + 显示班组 + + + + + + )} - - 部门节点: - - - + {timelineId == 0 && ( + + 部门节点: + + + )} +