diff --git a/pc4mobx/hrmSalary/pages/declareOnlineComparison/index.js b/pc4mobx/hrmSalary/pages/declareOnlineComparison/index.js
index 5090667b..7cf297a2 100644
--- a/pc4mobx/hrmSalary/pages/declareOnlineComparison/index.js
+++ b/pc4mobx/hrmSalary/pages/declareOnlineComparison/index.js
@@ -8,10 +8,12 @@ import React, { Component } from "react";
import { inject, observer } from "mobx-react";
import { toJS } from "mobx";
import { WeaCheckbox, WeaLoadingGlobal, WeaLocaleProvider, WeaTable, WeaTop } from "ecCom";
-import { Dropdown, Menu } from "antd";
+import { Button } from "antd";
+import { WeaTableNew } from "comsMobx";
import { exportContrast } from "../../apis/declare";
import "./index.less";
+const WeaTableComx = WeaTableNew.WeaTable;
const getLabel = WeaLocaleProvider.getLabel;
@inject("payrollFilesStore")
@@ -50,19 +52,13 @@ class Index extends Component {
queryParams: { ...queryParams, [key]: value === "1" }
}, () => this.getTaxdeclarationContrastList());
};
- handleCompareOpts = async ({ key }) => {
+ handleExport = async () => {
const { params: { taxDeclarationId } } = this.props;
const { queryParams } = this.state;
- switch (key) {
- case "exportContrast":
- WeaLoadingGlobal.start();
- const payload = { taxDeclarationId, ...queryParams };
- const promise = await exportContrast(payload);
- WeaLoadingGlobal.destroy();
- break;
- default:
- break;
- }
+ WeaLoadingGlobal.start();
+ const payload = { taxDeclarationId, ...queryParams };
+ const promise = await exportContrast(payload);
+ WeaLoadingGlobal.destroy();
};
getColumns = () => {
const { showColumns } = this.state;
@@ -91,8 +87,20 @@ class Index extends Component {
}
}));
};
+ onDropMenuClick = (key) => {
+ switch (key) {
+ case "custom_cols":
+ const { payrollFilesStore: { declareTableStore } } = this.props;
+ declareTableStore.setColSetVisible(true);
+ declareTableStore.tableColSet(true);
+ break;
+ default:
+ break;
+ }
+ };
render() {
+ const { payrollFilesStore: { declareTableStore } } = this.props;
const { dataSource, pageInfo, queryParams } = this.state;
const { onlyShowDiffEmp, onlyShowDiffItem } = queryParams;
const pagination = {
@@ -114,26 +122,31 @@ class Index extends Component {
};
return (
}
- iconBgcolor="#F14A2D" buttonSpace={10} showDropIcon={false}
+ iconBgcolor="#F14A2D" buttonSpace={10} showDropIcon onDropMenuClick={this.onDropMenuClick}
buttons={[
-
- {getLabel(81272, "导出全部")}
- }>
- {getLabel(111, "项目筛选")}
- ,
+ ,
this.handleDiffChange("onlyShowDiffEmp", v)}
/>,
this.handleDiffChange("onlyShowDiffItem", v)}
/>
- ]}
+ ]} dropMenuDatas={[{
+ key: "custom_cols",
+ icon: ,
+ content: getLabel(32535, "显示列定制")
+ }]}
>
+
);
}