weaver_trunk_cli/pc4mobx/hrm/public/components/AlertPage.js

42 lines
942 B
JavaScript
Raw Normal View History

2023-03-14 09:11:54 +08:00
import {
WeaAlertPage,
WeaLocaleProvider,
} from 'ecCom';
import {
Spin
} from 'antd';
const getLabel = WeaLocaleProvider.getLabel;
2024-12-11 15:32:14 +08:00
export default class AlertPage extends React.Component {
2023-03-14 09:11:54 +08:00
render() {
const {
2024-12-11 15:32:14 +08:00
loading
} = this.props;
2023-03-14 09:11:54 +08:00
const style = {
position: 'absolute',
top: '50%',
left: '50%',
marginLeft: -16,
marginTop: -16,
}
if (loading) {
return (
<div style={style}>
2024-12-11 15:32:14 +08:00
<Spin ecId={`${this && this.props && this.props.ecId || ''}_Spin@t5atvz`} spinning={true} size='large'></Spin>
2023-03-14 09:11:54 +08:00
</div>
)
} else {
return (
<div style={{height:'100%'}}>
2024-12-11 15:32:14 +08:00
<WeaAlertPage ecId={`${this && this.props && this.props.ecId || ''}_WeaAlertPage@vixc9z`}>
2023-03-14 09:11:54 +08:00
<div style={{ color: '#000' }}>
{getLabel(2012, '对不起,您暂时没有权限!')}
</div>
</WeaAlertPage>
</div>
)
}
}
}