35 lines
971 B
JavaScript
35 lines
971 B
JavaScript
/*
|
|
* 领悦调薪档案报表
|
|
*
|
|
* @Author: 黎永顺
|
|
* @Date: 2025/9/16
|
|
* @Wechat:
|
|
* @Email: 971387674@qq.com
|
|
* @description:
|
|
*/
|
|
import React, { Component } from "react";
|
|
import { WeaLocaleProvider, WeaRangePicker, WeaTop } from "ecCom";
|
|
import { Button } from "antd";
|
|
import "../index.less"
|
|
|
|
const getLabel = WeaLocaleProvider.getLabel;
|
|
|
|
class Layout extends Component {
|
|
|
|
render() {
|
|
const { title, onExport, dateRange, onChange } = this.props;
|
|
const buttons = [
|
|
<WeaRangePicker value={dateRange} onChange={onChange}/>,
|
|
<Button type="primary" onClick={onExport}>{getLabel(111, "导出全部")}</Button>
|
|
];
|
|
return (<WeaTop title={title} icon={<i className="icon-coms-fa"/>} buttons={buttons} showDropIcon={false}
|
|
iconBgcolor="#F14A2D" className="custom_salary_lingyue">
|
|
<div className="lingyue-body">
|
|
{this.props.children}
|
|
</div>
|
|
</WeaTop>);
|
|
}
|
|
}
|
|
|
|
export default Layout;
|