Merge pull request !11 from reset/feature/cl
This commit is contained in:
reset 2022-05-18 09:53:34 +00:00 committed by Gitee
commit 6dafc9b020
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 16 additions and 3 deletions

View File

@ -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();

View File

@ -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>
} }
} }
}) })

View File

@ -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();
} }

View File

@ -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;
} }