salary-management-front/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/statisticsModal.js

36 lines
900 B
JavaScript

/*
* Author: 黎永顺
* name: 统计弹框
* Description:
* Date: 2023/4/10
*/
import React, { Component } from "react";
import { WeaDialog, WeaLocaleProvider } from "ecCom";
import { Button } from "antd";
import "../index.less";
const { getLabel } = WeaLocaleProvider;
class StatisticsModal extends Component {
render() {
const { typeKey, onCancel } = this.props;
const buttons = typeKey === "addReport" ? [
<Button type="primary">{getLabel(111, "保存并进行详细统计设置")}</Button>
] : [];
return (
<WeaDialog
{...this.props} hasScroll
style={typeKey === "addReport" ? { width: 640 } : { width: 640, height: 350 }}
buttons={buttons}
onCancel={onCancel}
initLoadCss
className="dimensionModalWrapper"
>
{this.props.children}
</WeaDialog>
);
}
}
export default StatisticsModal;