diff --git a/src/components/drawer/index.jsx b/src/components/drawer/index.jsx index ed1c356..402dee3 100644 --- a/src/components/drawer/index.jsx +++ b/src/components/drawer/index.jsx @@ -31,7 +31,7 @@ export default class DrawerComponents extends React.Component { dataSource: [], columns: [], spinning: true, - showJob: true, + showJob: false, //港湾二开 不显示岗位 }; } @@ -62,7 +62,7 @@ export default class DrawerComponents extends React.Component { } //获取数据 - getDeatilDatas(params, type = 'chart', showJob = '1') { + getDeatilDatas(params, type = 'chart', showJob = '0') { this.setState({ spinning: true }); d3.json( '/api/bs/hrmorganization/orgchart/getDepartmentDetail?' + @@ -302,19 +302,20 @@ export default class DrawerComponents extends React.Component { }; showDrawer = (params) => { - const showJob = params.fclass == '0' ? '1' : '0'; + //港湾二开 不显示岗位 + const showJob = '0'; this.getDeatilDatas(params, 'chart', showJob); this.setState({ open: true, params: params }); }; onClose = () => { - this.setState({ open: false, detailType: 'chart', showJob: true }); + this.setState({ open: false, detailType: 'chart', showJob: false }); }; 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, }); @@ -353,25 +354,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', - ); - }} - > - 是否显示岗位 - - )} diff --git a/src/components/topBar/index.jsx b/src/components/topBar/index.jsx index b0f0fb6..b7878a3 100644 --- a/src/components/topBar/index.jsx +++ b/src/components/topBar/index.jsx @@ -301,7 +301,7 @@ export class TopBar extends React.Component { - + */}