From f3f07a46123f1d5e637e295d4979fa1dfc3fc50b Mon Sep 17 00:00:00 2001 From: liyongshun <971387674@qq.com> Date: Tue, 14 Jun 2022 11:32:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E6=A8=A1=E6=9D=BF=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E7=9A=84=E5=8C=BA=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pc4mobx/hrmSalary/components/importModal/modalStep1.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pc4mobx/hrmSalary/components/importModal/modalStep1.js b/pc4mobx/hrmSalary/components/importModal/modalStep1.js index c050c8ac..567d5b6c 100644 --- a/pc4mobx/hrmSalary/components/importModal/modalStep1.js +++ b/pc4mobx/hrmSalary/components/importModal/modalStep1.js @@ -25,7 +25,11 @@ export default class ModalStep1 extends React.Component { render() { const { datetime, taxAgentId, hasData } = this.state - const { taxAgentStore: {taxAgentOption} } = this.props; + const { taxAgentStore: {taxAgentOption}, isInit } = this.props; + let downloadExtra= ''; + if(isInit){ + downloadExtra= hasData === '1' ? `&hasData=true` : `&hasData=false`; + } const dragger = { name: 'file', multiple: false, @@ -84,7 +88,7 @@ export default class ModalStep1 extends React.Component {

1. 第一步,请选择导出的Excel文件或 { (typeof this.props.templateLink) == "string" ? - 点击这里下载模板 + 点击这里下载模板 : {this.props.templateLink()}}>点击这里下载模板 }