Merge pull request 'feature/cl' (#58) from feature/cl into dev
Reviewed-on: http://221.226.25.34:3000/liang.cheng/trunk/pulls/58
This commit is contained in:
commit
2a3941cb03
|
|
@ -328,6 +328,12 @@ export default class Company extends React.Component {
|
||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
columns.forEach((c, index) => {
|
columns.forEach((c, index) => {
|
||||||
|
if (c.dataIndex == 'showOrder') {
|
||||||
|
c.render = function (text, record) {
|
||||||
|
return <span>{record.showOrder.toFixed(2)}</span>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (c.dataIndex == 'canceled') {
|
if (c.dataIndex == 'canceled') {
|
||||||
c.render = function (text, record) {
|
c.render = function (text, record) {
|
||||||
return <Switch checked={record.canceled == "0" ? true : false} onChange={checked => _this.updateForbiddenTag(checked, record.id)} />
|
return <Switch checked={record.canceled == "0" ? true : false} onChange={checked => _this.updateForbiddenTag(checked, record.id)} />
|
||||||
|
|
|
||||||
|
|
@ -375,6 +375,12 @@ export default class Department extends React.Component {
|
||||||
} = this.props;
|
} = this.props;
|
||||||
let _this = this;
|
let _this = this;
|
||||||
columns.forEach((c, index) => {
|
columns.forEach((c, index) => {
|
||||||
|
if (c.dataIndex == 'showOrder') {
|
||||||
|
c.render = function (text, record) {
|
||||||
|
return <span>{record.showOrder.toFixed(2)}</span>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (c.dataIndex == 'canceled') {
|
if (c.dataIndex == 'canceled') {
|
||||||
c.render = function (text, record) {
|
c.render = function (text, record) {
|
||||||
return <Switch checked={record.canceled == "0" ? true : false} onChange={checked => _this.updateForbiddenTag(checked, record.id)} />
|
return <Switch checked={record.canceled == "0" ? true : false} onChange={checked => _this.updateForbiddenTag(checked, record.id)} />
|
||||||
|
|
|
||||||
|
|
@ -332,6 +332,11 @@ export default class Job extends React.Component {
|
||||||
} = this.props;
|
} = this.props;
|
||||||
let _this = this;
|
let _this = this;
|
||||||
columns.forEach((c, index) => {
|
columns.forEach((c, index) => {
|
||||||
|
if (c.dataIndex == 'showOrder') {
|
||||||
|
c.render = function (text, record) {
|
||||||
|
return <span>{record.showOrder.toFixed(2)}</span>
|
||||||
|
}
|
||||||
|
}
|
||||||
if (c.dataIndex == 'forbiddenTag') {
|
if (c.dataIndex == 'forbiddenTag') {
|
||||||
c.render = function (text, record) {
|
c.render = function (text, record) {
|
||||||
return <Switch checked={record.forbiddenTag == "0" ? true : false} onChange={checked => _this.updateForbiddenTag(checked, record.id)} />
|
return <Switch checked={record.forbiddenTag == "0" ? true : false} onChange={checked => _this.updateForbiddenTag(checked, record.id)} />
|
||||||
|
|
|
||||||
|
|
@ -143,12 +143,11 @@ export default class LogView extends React.Component {
|
||||||
|
|
||||||
const btn = [
|
const btn = [
|
||||||
(<Button ecId={`${this && this.props && this.props.ecId || ''}_Button@bx87i8`} type="primary" onClick={() => {
|
(<Button ecId={`${this && this.props && this.props.ecId || ''}_Button@bx87i8`} type="primary" onClick={() => {
|
||||||
logViewStore.getTableInfo(); this.setState({ showSearchAd: false })
|
logViewStore.getTableInfo(); this.setState({ showSearchAd: false })
|
||||||
}}>{i18n.button.search()}</Button>),
|
}}>{i18n.button.search()}</Button>),
|
||||||
(<Button ecId={`${this && this.props && this.props.ecId || ''}_Button@218ju6`} onClick={() => form.reset()}>{i18n.button.reset()}</Button>),
|
(<Button ecId={`${this && this.props && this.props.ecId || ''}_Button@218ju6`} onClick={() => form.reset()}>{i18n.button.reset()}</Button>),
|
||||||
(<Button ecId={`${this && this.props && this.props.ecId || ''}_Button@5u9mfz`} onClick={() => this.setState({ showSearchAd: false })}>{i18n.button.cancel()}</Button>),
|
(<Button ecId={`${this && this.props && this.props.ecId || ''}_Button@5u9mfz`} onClick={() => this.setState({ showSearchAd: false })}>{i18n.button.cancel()}</Button>),
|
||||||
];
|
];
|
||||||
|
|
||||||
return btn;
|
return btn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -180,8 +179,8 @@ export default class LogView extends React.Component {
|
||||||
searchType={['advanced']}
|
searchType={['advanced']}
|
||||||
showSearchAd={showSearchAd}
|
showSearchAd={showSearchAd}
|
||||||
setShowSearchAd={bool => {
|
setShowSearchAd={bool => {
|
||||||
this.setState({ showSearchAd: bool })
|
this.setState({ showSearchAd: bool })
|
||||||
}}
|
}}
|
||||||
advanceHeight={161}
|
advanceHeight={161}
|
||||||
searchsAd={showSearchAd ? this.getPanelComponents() : <div></div>}
|
searchsAd={showSearchAd ? this.getPanelComponents() : <div></div>}
|
||||||
buttonsAd={this.getTabBtn()}
|
buttonsAd={this.getTabBtn()}
|
||||||
|
|
|
||||||
|
|
@ -326,7 +326,7 @@ export default class PersonnelResume extends React.Component {
|
||||||
dropMenuDatas={this.getDropMenuDatas()}
|
dropMenuDatas={this.getDropMenuDatas()}
|
||||||
onDropMenuClick={(e) => this.handleMenuClick(e)}
|
onDropMenuClick={(e) => this.handleMenuClick(e)}
|
||||||
>
|
>
|
||||||
<WeaLeftRightLayout ecId={`${this && this.props && this.props.ecId || ''}_WeaLeftRightLayout@7muhhb`} isNew={true} showLeft={defaultShowLeft} leftCom={this.getTree()}>
|
<WeaLeftRightLayout className='org-personnel-resume' ecId={`${this && this.props && this.props.ecId || ''}_WeaLeftRightLayout@7muhhb`} isNew={true} showLeft={defaultShowLeft} leftCom={this.getTree()}>
|
||||||
{
|
{
|
||||||
!this.isEmptyObject(resumeList) ? <div id='personnel-resume'>
|
!this.isEmptyObject(resumeList) ? <div id='personnel-resume'>
|
||||||
<div className='content'>
|
<div className='content'>
|
||||||
|
|
|
||||||
|
|
@ -263,7 +263,6 @@ export default class ResourceCard extends React.Component {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className='right-button'>
|
<div className='right-button'>
|
||||||
<Button className='item' onClick={this.view} >{i18n.button.version()}</Button>
|
|
||||||
{
|
{
|
||||||
data.buttons.slice(0,3).map((item,index) => {
|
data.buttons.slice(0,3).map((item,index) => {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,17 @@ const WeaTable = WeaTableNew.WeaTable;
|
||||||
const { ButtonSelect } = WeaDropdown;
|
const { ButtonSelect } = WeaDropdown;
|
||||||
const getLabel = WeaLocaleProvider.getLabel;
|
const getLabel = WeaLocaleProvider.getLabel;
|
||||||
|
|
||||||
|
const viewDepartment = (id) => {
|
||||||
|
window.open(`/spa/hrm/engine.html#/hrmengine/organization?showTree=false&isView=1&type=department&id=${id}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
const viewSubCompany = (id) => {
|
||||||
|
window.open(`/spa/hrm/engine.html#/hrmengine/organization?showTree=false&isView=1&type=subcompany&id=${id}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
window.viewDepartment = viewDepartment;
|
||||||
|
window.viewSubCompany = viewSubCompany;
|
||||||
|
|
||||||
@inject('resource')
|
@inject('resource')
|
||||||
@inject('datasImport')
|
@inject('datasImport')
|
||||||
@observer
|
@observer
|
||||||
|
|
@ -372,6 +383,7 @@ export default class Resource extends React.Component {
|
||||||
let _this = this;
|
let _this = this;
|
||||||
columns.forEach((c, index) => {
|
columns.forEach((c, index) => {
|
||||||
c.className = "wea-table-indent"
|
c.className = "wea-table-indent"
|
||||||
|
c.oldWidth = (100 / columns.length).toFixed(2) + '%';
|
||||||
if (c.dataIndex == 'lastname') {
|
if (c.dataIndex == 'lastname') {
|
||||||
c.render = function (text, record) {
|
c.render = function (text, record) {
|
||||||
return <a href='javascript:void(0);' onClick={() => {
|
return <a href='javascript:void(0);' onClick={() => {
|
||||||
|
|
|
||||||
|
|
@ -37,4 +37,10 @@
|
||||||
left: 44%;
|
left: 44%;
|
||||||
box-shadow: 2px 2px 10px #909090;
|
box-shadow: 2px 2px 10px #909090;
|
||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.org-personnel-resume {
|
||||||
|
.wea-left-right-layout-right {
|
||||||
|
overflow: scroll !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue