export function didMount() {
console.log(`Page JS: current page URL ${location.href}`);
// console.log(`Page JS: current page id parameter is ${this.state.urlParams.id}`);
// For more this-related APIs, see: https://developers.aliwork.com/
// document.title = window.loginUser.userName + ' | YiDA';
}
/**
* Pagination onChange
* @param currentPagination Current page number
*/
export function onChange(currentPagination) {
let params = {
currentPage: currentPagination
};
this.dataSourceMap.dp4.load(params);
console.log('onChange', currentPagination);
}
/**
* Pagination onPageSizeChange
* @param pageSize Number of records per page after the change
*/
export function onPageSizeChange(pageSize) {
this.setState({
pageSizeA: pageSize
});
let params = {
pageSize: pageSize,
};
this.dataSourceMap.dp4.load(params);
console.log('onPageSizeChange', pageSize);
}