组织快照
This commit is contained in:
parent
bf30163bb5
commit
3404995d45
|
|
@ -4,4 +4,8 @@ import {
|
||||||
|
|
||||||
export const getSearchList = (date) => {
|
export const getSearchList = (date) => {
|
||||||
return WeaTools.callApi(`/api/bs/hrmorganization/danikorresource/listPage?syncDate=${date}`, 'GET');
|
return WeaTools.callApi(`/api/bs/hrmorganization/danikorresource/listPage?syncDate=${date}`, 'GET');
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getDatas = (date) => {
|
||||||
|
return WeaTools.callApi(`/api/bs/hrmorganization/danikorresource/getSummaryData?syncDate=${date}`, 'GET');
|
||||||
}
|
}
|
||||||
|
|
@ -62,6 +62,7 @@ export default class Resource extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
|
||||||
this.init();
|
this.init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -289,6 +290,7 @@ export default class Resource extends React.Component {
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
resource.customization();
|
resource.customization();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//存为模板
|
//存为模板
|
||||||
|
|
|
||||||
|
|
@ -73,6 +73,18 @@ export class SnapshotStore {
|
||||||
|
|
||||||
|
|
||||||
@action("数据统计") getDatas() {
|
@action("数据统计") getDatas() {
|
||||||
|
Api.getDatas(this.date).then(res => {
|
||||||
|
if (res.code === 200) {
|
||||||
|
this.datas = {
|
||||||
|
...res.data
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
message.warning(res.msg);
|
||||||
|
}
|
||||||
|
}, error => {
|
||||||
|
message.warning(error.msg);
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue