@ -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 {
< div class = "dept-box" style = "font-size: 15px;font-family: Microsoft YaHei-Regular, Microsoft YaHei;font-weight: 900;color: #333333;height: 25px;line-height: 25px;width:110px,white-space:nowrap;overflow:hidden;text-overflow:ellipsis;" >
$ { d . data . fname }
< / div >
< div style = "font-size: 13px;font-family: Microsoft YaHei-Bold, Microsoft YaHei;color: #333333; height: 25px; line-height: 25px;">
$ { getLabel ( 547 322 , labelData ) } : $ { d . data . fleader }
< div style = "font-size: 13px;font-family: Microsoft YaHei-Bold, Microsoft YaHei;color: #333333; line-height: 25px;">
$ { getLabel ( 547 190 , labelData ) } : $ { d . data . fleader }
< / div >
< div style = "display:flex" >
< div style = "height: 25px; line-height: 25px; min-width: 80px;" >
@ -310,11 +310,16 @@ export default class DrawerComponents extends React.Component {
d . data . fname
} < / div >
< / div >
< div style = "font-size: 13px;font-family: Microsoft YaHei-Regular, Microsoft YaHei;font-weight: 400;color: #333333;display: flex; height: 25px; line-height: 25px;">
< div style = "font-size: 13px;font-family: Microsoft YaHei-Regular, Microsoft YaHei;font-weight: 400;color: #333333;display: flex; line-height: 25px;">
< span > $ { getLabel ( 547324 , labelData ) } : $ {
d . data . companyWorkYear
} $ { getLabel ( 547526 , labelData ) } < / span >
< / div >
< div style = "font-size: 13px;font-family: Microsoft YaHei-Regular, Microsoft YaHei;font-weight: 400;color: #333333;display: flex;line-height: 25px;" >
< span > $ { getLabel ( 547333 , labelData ) } : $ {
d . data . jobName
} < / span >
< / div >
< / div >
< / div >
< / div > ` ;
@ -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 ,
} ) ;
@ -359,7 +364,7 @@ export default class DrawerComponents extends React.Component {
arr . push ( { label : ` ${ getLabel ( 547315 , labelData ) } ` , key : '1' } ) ;
/ / a r r . p u s h ( { l a b e l : ' 导 出 P D F ' , k e y : ' 2 ' } ) ;
} else {
arr . push ( { label : '导出表格' , key : '3' } ) ;
arr . push ( { label : ` ${ getLabel ( 547448 , labelData ) } ` , key : '3' } ) ;
}
const menu = < Menu onClick = { this . handleExport . bind ( this ) } items = { arr } / > ;
@ -375,25 +380,6 @@ export default class DrawerComponents extends React.Component {
} }
extra = {
< Space >
{ detailType == 'chart' && params && params . fclass == '0' && (
< Checkbox
style = { { marginTop : '5px' , marginLeft : 100 } }
checked = { showJob }
onChange = { ( e ) => {
this . setState ( {
showJob : e . target . checked ,
} ) ;
this . getDeatilDatas (
params ,
detailType ,
e . target . checked ? '1' : '0' ,
) ;
} }
>
{ getLabel ( 547447 , labelData ) }
< / Checkbox >
) }
< Dropdown overlay = { menu } >
< Button type = "primary" > { getLabel ( 547314 , labelData ) } < / Button >
< / Dropdown >
@ -430,7 +416,6 @@ export default class DrawerComponents extends React.Component {
< Table
dataSource = { dataSource }
columns = { columns }
scroll = { { y : 600 } }
loading = { spinning }
pagination = { {
showSizeChanger : false ,