release/2.9.42311.01
This commit is contained in:
parent
1afaa04129
commit
7908f925ea
|
|
@ -10,9 +10,10 @@ import { WeaLeftRightLayout, WeaLocaleProvider, WeaSelect, WeaTop } from "ecCom"
|
||||||
import { message, Modal } from "antd";
|
import { message, Modal } from "antd";
|
||||||
import LeftTab from "./components/leftTab";
|
import LeftTab from "./components/leftTab";
|
||||||
import ReportContent from "./components/reportContent";
|
import ReportContent from "./components/reportContent";
|
||||||
import StatisticalMicroSettingsSlide from "./components/statisticalMicroSettingsSlide";
|
import StatisticalMicroSettingsSlide, { getSalaryMonthValue } from "./components/statisticalMicroSettingsSlide";
|
||||||
import TopBtns from "./components/topBtns";
|
|
||||||
import { reportGetForm, reportStatisticsReportSave } from "../../apis/ruleconfig";
|
import { reportGetForm, reportStatisticsReportSave } from "../../apis/ruleconfig";
|
||||||
|
import { convertToUrlString } from "../../util/url";
|
||||||
|
import TopBtns from "./components/topBtns";
|
||||||
import "./index.less";
|
import "./index.less";
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -92,8 +93,13 @@ class Index extends Component {
|
||||||
*/
|
*/
|
||||||
exportData = () => {
|
exportData = () => {
|
||||||
const { report } = this.state;
|
const { report } = this.state;
|
||||||
const { id, dimensionId, isShare } = report;
|
const { id, dimensionId, isShare, timeType, salaryEndMonth: end, salaryStartMonth: start } = report;
|
||||||
window.open(`${window.location.origin}/api/bs/hrmsalary/report/statistics/report/exportData?id=${id}&dimensionId=${dimensionId}&isShare=${isShare}`, "_blank");
|
const [salaryStartMonth, salaryEndMonth] = getSalaryMonthValue(timeType);
|
||||||
|
const payload = {
|
||||||
|
id, dimensionId, isShare,
|
||||||
|
salaryStartMonth: (salaryStartMonth || start) + "-01", salaryEndMonth: (salaryEndMonth || end) + "-01"
|
||||||
|
};
|
||||||
|
window.open(`${window.location.origin}/api/bs/hrmsalary/report/statistics/report/exportData?${convertToUrlString(payload)}`, "_blank");
|
||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue