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

34 lines
755 B
JavaScript

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