组织快照

This commit is contained in:
Chengliang 2023-02-01 11:25:47 +08:00
parent bf30163bb5
commit 3404995d45
3 changed files with 18 additions and 0 deletions

View File

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

View File

@ -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();
} }
//存为模板 //存为模板

View File

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