commit
6dafc9b020
|
|
@ -21,7 +21,8 @@ export default class CompanyExtend extends React.Component {
|
||||||
this.init();
|
this.init();
|
||||||
}
|
}
|
||||||
init = () => {
|
init = () => {
|
||||||
const { companyExtend } = this.props;
|
const { companyExtend,company } = this.props;
|
||||||
|
const {id} = company;
|
||||||
companyExtend.init();
|
companyExtend.init();
|
||||||
// companyExtend.hrmId=hrmId;
|
// companyExtend.hrmId=hrmId;
|
||||||
companyExtend.getData();
|
companyExtend.getData();
|
||||||
|
|
|
||||||
|
|
@ -200,7 +200,13 @@ export default class Company extends React.Component {
|
||||||
!this.isEmptyObject(form.getFormParams()) && company.updateFields(val);
|
!this.isEmptyObject(form.getFormParams()) && company.updateFields(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
///spa/organization/static/index.html#/main/organization/companyExtend
|
||||||
reRenderColumns(columns) {
|
reRenderColumns(columns) {
|
||||||
|
const {
|
||||||
|
company
|
||||||
|
} = this.props;
|
||||||
let _this = this;
|
let _this = this;
|
||||||
columns.forEach((c, index) => {
|
columns.forEach((c, index) => {
|
||||||
if (c.dataIndex == 'forbiddenTag') {
|
if (c.dataIndex == 'forbiddenTag') {
|
||||||
|
|
@ -210,7 +216,10 @@ export default class Company extends React.Component {
|
||||||
};
|
};
|
||||||
if (c.dataIndex == 'compName') {
|
if (c.dataIndex == 'compName') {
|
||||||
c.render = function (text, record) {
|
c.render = function (text, record) {
|
||||||
return <a href='/spa/organization/static/index.html#/main/organization/companyExtend' target='_blank'>{text}</a>
|
return <a onClick={() => {
|
||||||
|
company.setId(record.id);
|
||||||
|
window.open('/spa/organization/static/index.html#/main/organization/companyExtend',"_blank")
|
||||||
|
}}>{text}</a>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,6 @@ const WeaLogViewComp = WeaLogView.Component;
|
||||||
export default class simpleOrg extends React.Component {
|
export default class simpleOrg extends React.Component {
|
||||||
|
|
||||||
componentWillMount() { // 初始化渲染页面
|
componentWillMount() { // 初始化渲染页面
|
||||||
debugger
|
|
||||||
const { simpleOrgStore: { doInit } } = this.props;
|
const { simpleOrgStore: { doInit } } = this.props;
|
||||||
doInit();
|
doInit();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -182,6 +182,10 @@ export class CompanyStore {
|
||||||
this.ids = ids;
|
this.ids = ids;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setId(id) {
|
||||||
|
this.id =id;
|
||||||
|
}
|
||||||
|
|
||||||
scLoadingReset() {
|
scLoadingReset() {
|
||||||
this.searchConditionLoading = true;
|
this.searchConditionLoading = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue