From 2aaed235b0008a1895a5ab999357600dc5371272 Mon Sep 17 00:00:00 2001 From: lys <971387674@qq.com> Date: Thu, 22 May 2025 09:46:29 +0800 Subject: [PATCH] =?UTF-8?q?custom/=E4=BA=94=E9=99=A2=E6=9D=AD=E5=B7=9E?= =?UTF-8?q?=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pc4mobx/hrmSalary/pages/calculate/doCalc/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/index.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/index.js index 5ff5c2ca..96f6cf8c 100644 --- a/pc4mobx/hrmSalary/pages/calculate/doCalc/index.js +++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/index.js @@ -5,7 +5,7 @@ * Date: 2023/9/13 */ import React, { Component } from "react"; -import { WeaLocaleProvider, WeaReqTop } from "ecCom"; +import { WeaLocaleProvider, WeaReqTop, WeaTools } from "ecCom"; import { Button, Dropdown, Menu, message, Modal } from "antd"; import { inject, observer } from "mobx-react"; import Layout from "./layout"; @@ -50,7 +50,9 @@ class Index extends Component { init = () => { const { routeParams: { salaryAcctRecordId } } = this.props; getApprovalInfoByRecordId({ salaryAcctRecordId }).then(({ status, data: approvalInfo }) => { - if (status) this.setState({ approvalInfo }); + if (status) this.setState({ + approvalInfo, selectedKey: WeaTools.getUrlParams().tabkey || this.state.selectedKey + }); }); }; handleMenuClick = ({ key }) => {