Merge pull request '其它导入' (#17) from feature/cl into dev
Reviewed-on: http://221.226.25.34:3000/liang.cheng/trunk/pulls/17
This commit is contained in:
commit
5b091c5e82
|
|
@ -110,6 +110,9 @@ export default class newImport extends React.Component {
|
||||||
case 3:
|
case 3:
|
||||||
newImport.importType = 'resource';
|
newImport.importType = 'resource';
|
||||||
break;
|
break;
|
||||||
|
case 4:
|
||||||
|
newImport.importType = 'joblevel';
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
newImport.buttonTitle = i18n.button.nextStep();
|
newImport.buttonTitle = i18n.button.nextStep();
|
||||||
newImport.current = 0;
|
newImport.current = 0;
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ import { renderNoright } from "../../util";
|
||||||
const confirm = Modal.confirm;
|
const confirm = Modal.confirm;
|
||||||
const WeaTable = WeaTableNew.WeaTable;
|
const WeaTable = WeaTableNew.WeaTable;
|
||||||
@inject("officeManageStore")
|
@inject("officeManageStore")
|
||||||
|
@inject('importDialog')
|
||||||
@observer
|
@observer
|
||||||
export default class OfficeManage extends Component {
|
export default class OfficeManage extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
|
|
@ -62,7 +63,7 @@ export default class OfficeManage extends Component {
|
||||||
};
|
};
|
||||||
|
|
||||||
handleMenuClick = key => {
|
handleMenuClick = key => {
|
||||||
const { officeManageStore } = this.props;
|
const { officeManageStore,importDialog } = this.props;
|
||||||
const { isPanelShow, tableStore, officeClassifyId } = officeManageStore;
|
const { isPanelShow, tableStore, officeClassifyId } = officeManageStore;
|
||||||
isPanelShow && officeManageStore.setPanelStatus(false);
|
isPanelShow && officeManageStore.setPanelStatus(false);
|
||||||
switch (key) {
|
switch (key) {
|
||||||
|
|
@ -78,6 +79,12 @@ export default class OfficeManage extends Component {
|
||||||
tableStore.setColSetVisible(true);
|
tableStore.setColSetVisible(true);
|
||||||
tableStore.tableColSet(true);
|
tableStore.tableColSet(true);
|
||||||
break;
|
break;
|
||||||
|
case "import":
|
||||||
|
importDialog.importVisible=true;
|
||||||
|
importDialog.importModule='postInfo';
|
||||||
|
importDialog.current = 0;
|
||||||
|
importDialog.getImportForm();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -133,7 +140,7 @@ export default class OfficeManage extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
getTopMenuBtns = () => {
|
getTopMenuBtns = () => {
|
||||||
const { officeManageStore } = this.props;
|
const { officeManageStore,importDialog } = this.props;
|
||||||
const { topMenu, tableStore, officeClassifyId } = officeManageStore;
|
const { topMenu, tableStore, officeClassifyId } = officeManageStore;
|
||||||
let btns = [];
|
let btns = [];
|
||||||
topMenu.map((item, i) => {
|
topMenu.map((item, i) => {
|
||||||
|
|
@ -161,6 +168,11 @@ export default class OfficeManage extends Component {
|
||||||
bool: true,
|
bool: true,
|
||||||
type: item.menuFun
|
type: item.menuFun
|
||||||
});
|
});
|
||||||
|
}else if(item.menuFun == "import") {
|
||||||
|
importDialog.importVisible=true;
|
||||||
|
importDialog.importModule='postInfo';
|
||||||
|
importDialog.current = 0;
|
||||||
|
importDialog.getImportForm();
|
||||||
}
|
}
|
||||||
}}>
|
}}>
|
||||||
{item.menuName}
|
{item.menuName}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue