From b0c5004b2619cd2ae9b908151967ebbb2dba861d Mon Sep 17 00:00:00 2001
From: Chengliang <1546584672@qq.com>
Date: Mon, 17 Jun 2024 11:07:10 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E8=AF=AD=E8=A8=80=E8=AE=BE=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/drawer/index.jsx | 35 ++++++++++-----------------------
src/components/topBar/index.jsx | 11 -----------
src/pages/company.jsx | 7 -------
src/pages/user.jsx | 2 +-
4 files changed, 11 insertions(+), 44 deletions(-)
diff --git a/src/components/drawer/index.jsx b/src/components/drawer/index.jsx
index def832f..1a00aee 100644
--- a/src/components/drawer/index.jsx
+++ b/src/components/drawer/index.jsx
@@ -70,7 +70,7 @@ export default class DrawerComponents extends React.Component {
}
//获取数据
- getDeatilDatas(params, type = 'chart', showJob = '1') {
+ getDeatilDatas(params, type = 'chart', showJob = '0') {
this.setState({ spinning: true, data: [], dataSource: [] });
d3.json(
'/api/bs/hrmorganization/orgchart/getDepartmentDetail?' +
@@ -257,8 +257,8 @@ export default class DrawerComponents extends React.Component {
${d.data.fname}
-
- ${getLabel(547322, labelData)}:${d.data.fleader}
+
+ ${getLabel(547190, labelData)}:${d.data.fleader}
@@ -310,11 +310,16 @@ export default class DrawerComponents extends React.Component {
d.data.fname
}
-
+
${getLabel(547324, labelData)}: ${
d.data.companyWorkYear
} ${getLabel(547526, labelData)}
+
+ ${getLabel(547333, labelData)}: ${
+ d.data.jobName
+ }
+
`;
@@ -333,7 +338,7 @@ export default class DrawerComponents extends React.Component {
changeDetail = () => {
const { detailType, params } = this.state;
let type = detailType == 'chart' ? 'table' : 'chart';
- const showJob = this.state.showJob ? '1' : '0';
+ const showJob = '0';
this.setState({
detailType: type,
});
@@ -375,25 +380,6 @@ export default class DrawerComponents extends React.Component {
}}
extra={
- {detailType == 'chart' && params && params.fclass == '0' && (
- {
- this.setState({
- showJob: e.target.checked,
- });
-
- this.getDeatilDatas(
- params,
- detailType,
- e.target.checked ? '1' : '0',
- );
- }}
- >
- {getLabel(547447, labelData)}
-
- )}
@@ -430,7 +416,6 @@ export default class DrawerComponents extends React.Component {
-
-