组织更新
This commit is contained in:
parent
21801124c1
commit
a5cfeb9f08
|
|
@ -43,6 +43,7 @@ import '../../style/common.less';
|
||||||
import NewAndEditDialog from '../NewAndEditDialog';
|
import NewAndEditDialog from '../NewAndEditDialog';
|
||||||
import NewWeaTableDialog from '../NewWeaTableDialog';
|
import NewWeaTableDialog from '../NewWeaTableDialog';
|
||||||
import { renderNoright } from '../../util';
|
import { renderNoright } from '../../util';
|
||||||
|
import ImportDialog from '../ImportDialog';
|
||||||
|
|
||||||
const getLabel = WeaLocaleProvider.getLabel;
|
const getLabel = WeaLocaleProvider.getLabel;
|
||||||
|
|
||||||
|
|
@ -53,6 +54,7 @@ const confirm = Modal.confirm;
|
||||||
|
|
||||||
|
|
||||||
@inject('job')
|
@inject('job')
|
||||||
|
@inject('importDialog')
|
||||||
@observer
|
@observer
|
||||||
export default class Job extends React.Component {
|
export default class Job extends React.Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
|
|
@ -401,6 +403,17 @@ export default class Job extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
batchImport() {
|
||||||
|
const {
|
||||||
|
importDialog
|
||||||
|
} = this.props;
|
||||||
|
importDialog.importVisible=true;
|
||||||
|
importDialog.importModule='job';
|
||||||
|
importDialog.current = 0;
|
||||||
|
importDialog.getImportForm();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
handleSave() {
|
handleSave() {
|
||||||
const {
|
const {
|
||||||
job
|
job
|
||||||
|
|
@ -572,7 +585,7 @@ export default class Job extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
|
|
||||||
const {
|
const {
|
||||||
job
|
job,importDialog
|
||||||
} = this.props;
|
} = this.props;
|
||||||
const {
|
const {
|
||||||
isPanelShow, jobTitleName, conditionNum, visible, condition, form,
|
isPanelShow, jobTitleName, conditionNum, visible, condition, form,
|
||||||
|
|
@ -581,6 +594,9 @@ export default class Job extends React.Component {
|
||||||
defaultShowLeft, form2, hasRight, jobtitleVisible
|
defaultShowLeft, form2, hasRight, jobtitleVisible
|
||||||
} = job;
|
} = job;
|
||||||
|
|
||||||
|
const {importVisible} = importDialog;
|
||||||
|
|
||||||
|
|
||||||
if (hasRight === false) {
|
if (hasRight === false) {
|
||||||
return renderNoright();
|
return renderNoright();
|
||||||
}
|
}
|
||||||
|
|
@ -722,6 +738,8 @@ export default class Job extends React.Component {
|
||||||
visible={jobtitleVisible}
|
visible={jobtitleVisible}
|
||||||
style={{ width: 600, height: 500 }}
|
style={{ width: 600, height: 500 }}
|
||||||
/>
|
/>
|
||||||
|
{importVisible && <ImportDialog ecId={`${this && this.props && this.props.ecId || ''}_ImportDialog@633i8k`} />}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue