diff --git a/src/components/topBar/index.jsx b/src/components/topBar/index.jsx
index 413ca8b..54536e7 100644
--- a/src/components/topBar/index.jsx
+++ b/src/components/topBar/index.jsx
@@ -22,10 +22,9 @@ const { TextArea } = Input;
import moment from 'moment';
import 'moment/locale/zh-cn';
import locale from 'antd/lib/date-picker/locale/zh_CN';
-import { HomeOutlined } from '@ant-design/icons';
+import { HomeOutlined, FolderOpenOutlined } from '@ant-design/icons';
moment.locale('zh-cn');
import { getLabel } from '../../util/i18n.js';
-import { SmileOutlined } from '@ant-design/icons';
export class TopBar extends React.Component {
constructor(props) {
@@ -116,7 +115,11 @@ export class TopBar extends React.Component {
arr = [...data.companyTree];
}
arr.map((item, index) => {
- item.icon = ;
+ if (item.type == '1') {
+ item.icon = ;
+ } else {
+ item.icon = ;
+ }
});
this.setState({
rootTreeData: arr,
@@ -165,7 +168,11 @@ export class TopBar extends React.Component {
.then((res) => res.json())
.then((data) => {
data.companyTree.map((item, index) => {
- item.icon = ;
+ if (item.type == '1') {
+ item.icon = ;
+ } else {
+ item.icon = ;
+ }
});
this.setState({
fclasslist: data.fclasslist,
@@ -197,7 +204,7 @@ export class TopBar extends React.Component {
return (
-
+ {/*
{getLabel(547293, labelData)}:
-
+ */}
{getLabel(547294, labelData)}:
{getLabel(547465, labelData)}
-
-
+
+
- {this.state.requestData.fclass == '0' && (
+ {/* {this.state.requestData.fclass == '0' && (
- )}
+ )} */}
`;
} else if (d.data.ftype == 1) {
@@ -192,7 +197,9 @@ export default function companyPage() {
- ${d.data.staffNum} /
+ ${
+ d.data.staffNum
+ } /
${d.data.onJobNum}
@@ -214,7 +221,9 @@ export default function companyPage() {
- ${d.data.staffNum} /
+ ${
+ d.data.staffNum
+ } /
${d.data.onJobNum}
@@ -488,14 +497,14 @@ export default function companyPage() {
onZoomIn={(progressBtn) => handleZoomIn(progressBtn)}
onZoomBehavior={(value) => handleZoomBehavior(value)}
/>
- (timeLine = r)}
onClick={(timeline) => {
timeLineSearch(timeline);
}}
url={'/api/bs/hrmorganization/orgchart/timeLines?fclass=0'}
labelData={labelData}
- />
+ /> */}
(orgChart = chart)}
diff --git a/src/pages/user.jsx b/src/pages/user.jsx
index e2c91e3..1a92709 100644
--- a/src/pages/user.jsx
+++ b/src/pages/user.jsx
@@ -99,7 +99,7 @@ export default function userPage() {
// 获取数据
useEffect(() => {
document.cookie =
- 'ecology_JSessionid=aaav03Zyuvq3A9TG0PEdz; JSESSIONID=aaav03Zyuvq3A9TG0PEdz; Systemlanguid=7; languageidweaver=7; loginuuids=1; loginidweaver=sysadmin; __randcode__=62316935-a99b-4cbf-a23f-0ac9c37db0da';
+ 'ecology_JSessionid=aaaqP0tTaKbFM9rJ6fQjz; JSESSIONID=aaaqP0tTaKbFM9rJ6fQjz; Systemlanguid=7; languageidweaver=7; loginuuids=1; __randcode__=811e5b8d-968b-4847-99ed-e0aa22b0ad4e; loginidweaver=sysadmin';
d3.json(
'/api/bs/hrmorganization/orgchart/userData?fclass=0&fisvitual=0&root=0&level=3&id=0',
).then((data) => {