From 4d46a7ca90d63e8e7d4d9fbc6ee356a6154ee19a Mon Sep 17 00:00:00 2001 From: MustangDeng <670124965@qq.com> Date: Mon, 27 Jun 2022 18:01:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E8=B5=B7=E6=B5=81=E7=A8=8B=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js | 4 +++- pc4mobx/hrmSalary/stores/payroll.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js index bcadde2e..d0e6522d 100644 --- a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js +++ b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js @@ -197,8 +197,10 @@ export default class PayrollGrant extends React.Component { const { payrollStore: {grantProxy} } = this.props; grantProxy({ salarySendId: this.state.currentId - }).then(() => { + }).then((data) => { this.getSendBtnStatus(this.state.currentId) + console.log(`/spa/workflow/static4form/index.html#/main/workflow/req?requestid=` + data.requestId) + window.open(`/spa/workflow/static4form/index.html#/main/workflow/req?requestid=` + data.requestId, "_blank"); }) } diff --git a/pc4mobx/hrmSalary/stores/payroll.js b/pc4mobx/hrmSalary/stores/payroll.js index 3afb7bc2..d7f47f0a 100644 --- a/pc4mobx/hrmSalary/stores/payroll.js +++ b/pc4mobx/hrmSalary/stores/payroll.js @@ -555,7 +555,7 @@ export class payrollStore { return new Promise((resolve, reject) => { API.grantProxy(params).then(res => { if (res.status) { - resolve(); + resolve(res.data); } else { reject(); }