岗职位体系导入相关功能改造
This commit is contained in:
parent
8f9a3f1422
commit
0c235113f9
|
|
@ -29,8 +29,6 @@ import '../../style/common.less';
|
|||
export default class DepartmentExtendStore extends React.Component {
|
||||
|
||||
componentDidMount() {
|
||||
const params = useParams();
|
||||
console.log(toJS(params));
|
||||
this.handleHashChange();
|
||||
window.addEventListener('hashchange', this.handleHashChange);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@ export default class StepDialog extends React.Component {
|
|||
{
|
||||
current == 0 &&
|
||||
<div>
|
||||
<p style={{"color":"red","fontSize":"15px"}}>注意:右侧列表默认加载的为必填字段!!!</p>
|
||||
<p style={{"color":"red","fontSize":"15px"}}>注意:右侧列表默认加载的为必填字段!</p>
|
||||
<WeaTransfer
|
||||
data={toJS(data)}
|
||||
selectedKeys={toJS(selectedKeys)}
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ import {
|
|||
import '../../style/common.less';
|
||||
|
||||
import NewAndEditDialog from '../NewAndEditDialog';
|
||||
import ImportDialog from '../ImportDialog'
|
||||
import { renderNoright } from '../../util';
|
||||
|
||||
|
||||
|
|
@ -40,6 +41,7 @@ const WeaTable = WeaTableNew.WeaTable;
|
|||
|
||||
|
||||
@inject('sequence')
|
||||
@inject('importDialog')
|
||||
@observer
|
||||
export default class Sequence extends React.Component {
|
||||
constructor(props) {
|
||||
|
|
@ -150,6 +152,16 @@ export default class Sequence extends React.Component {
|
|||
sequence.delete();
|
||||
}
|
||||
|
||||
importFile(){
|
||||
const {
|
||||
importDialog
|
||||
} = this.props;
|
||||
importDialog.importVisible=true;
|
||||
importDialog.importModule='sequence';
|
||||
importDialog.current = 0;
|
||||
importDialog.getImportForm();
|
||||
}
|
||||
|
||||
|
||||
getDropMenuDatas() {
|
||||
const {
|
||||
|
|
@ -374,13 +386,13 @@ export default class Sequence extends React.Component {
|
|||
render() {
|
||||
|
||||
const {
|
||||
sequence
|
||||
sequence,importDialog
|
||||
} = this.props;
|
||||
const {
|
||||
isPanelShow, form2, levelName, conditionNum, tableStore,nEdialogTitle,visible,condition,
|
||||
form,dialogLoading,isEdit,selectedKey,topTab,topTabCount,date,hasRight
|
||||
} = sequence;
|
||||
|
||||
const {importVisible} = importDialog;
|
||||
if (hasRight === false) {
|
||||
return renderNoright();
|
||||
}
|
||||
|
|
@ -442,6 +454,7 @@ export default class Sequence extends React.Component {
|
|||
save={() => this.handleSave()}
|
||||
onCancel={() => sequence.setVisible(false)}
|
||||
/>
|
||||
{importVisible && <ImportDialog ecId={`${this && this.props && this.props.ecId || ''}_ImportDialog@633i8k`} />}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -152,7 +152,17 @@ export class DepartmentExtendStore {
|
|||
//this.tableInfo = this.handleTable(res.data.result.tables);
|
||||
this.getTabInfo();
|
||||
res.data.result.buttons && this.setButtons(res.data.result.buttons);
|
||||
res.data.result.tabInfo && this.setTopTab(res.data.result.tabInfo);
|
||||
// const topTab = [
|
||||
// ...res.data.result.tabInfo,
|
||||
// {
|
||||
// "color": "#000000",
|
||||
// "groupId": "-10000",
|
||||
// "showcount": false,
|
||||
// "title": "人力资源",
|
||||
// "viewCondition": "-10000"
|
||||
// }
|
||||
// ]
|
||||
this.setTopTab(res.data.result.tabInfo);
|
||||
this.isEditor && this.getSelectedRows();
|
||||
this.setLoading(false);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue