薪资档案页面导入功能接口联调

This commit is contained in:
18652063575 2022-10-25 17:13:58 +08:00
parent 0305c24556
commit ced585e164
2 changed files with 10 additions and 5 deletions

View File

@ -113,6 +113,12 @@ class ImportMenu extends Component {
render() {
const { importType, refreshList } = this.props;
const { importParams, previewColumns, previewDataSource } = this.state;
let params = "";
if (importParams.importType === "init" || importParams.importType === "salaryItemAdjust") {
params = importParams.importType + "&listType=FIXED";
} else {
params = "" + "&listType=" + importParams.importType;
}
return (
<React.Fragment>
<Menu className="dropdownMenuWrapper" onClick={this.handleMenuClick}>
@ -144,8 +150,7 @@ class ImportMenu extends Component {
previewImport={(params) => this.salaryArchivePreview(params)}
importFile={(params) => this.handleImportFile(params)}
templateLink={
"/api/bs/hrmsalary/salaryArchive/downloadTemplate?importType=" +
importParams.importType
"/api/bs/hrmsalary/salaryArchive/downloadTemplate?importType=" + params
}
visiable={importParams.visible}
onCancel={() => {

View File

@ -363,7 +363,7 @@ class Index extends Component {
}}>导入</Button>,
<Dropdown overlay={<ExportMenu selectedKey={selectedKey} selectedRowKeys={selectedRowKeys}
searchItemsValue={searchItemsValue}/>}>
<Button type="primary" style={{ marginLeft: 8 }}>导出<i className="icon-coms-down2" style={{
<Button type="primary">导出<i className="icon-coms-down2" style={{
marginLeft: 8,
verticalAlign: "middle"
}}/></Button>
@ -380,14 +380,14 @@ class Index extends Component {
}}
/>
}>
<Button type="primary" style={{ marginLeft: 8 }}>批量取消停薪<i className="icon-coms-down2" style={{
<Button type="primary">批量取消停薪<i className="icon-coms-down2" style={{
marginLeft: 8,
verticalAlign: "middle"
}}/></Button>
</Dropdown>,
<Dropdown overlay={<ExportMenu selectedKey={selectedKey} selectedRowKeys={selectedRowKeys}
searchItemsValue={searchItemsValue}/>}>
<Button type="primary" style={{ marginLeft: 8 }}>导出<i className="icon-coms-down2" style={{
<Button type="primary">导出<i className="icon-coms-down2" style={{
marginLeft: 8,
verticalAlign: "middle"
}}/></Button>