From 913bc0f4c351c80247cdd3eeaed3e5871d8688eb Mon Sep 17 00:00:00 2001 From: zhangzhen <525765282@qq.com> Date: Fri, 13 Jun 2025 16:39:11 +0800 Subject: [PATCH] 优化新增后查询逻辑; --- src/components/Common/CommonNewBillEvent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Common/CommonNewBillEvent.js b/src/components/Common/CommonNewBillEvent.js index 55ca6f0..2c81487 100644 --- a/src/components/Common/CommonNewBillEvent.js +++ b/src/components/Common/CommonNewBillEvent.js @@ -414,8 +414,8 @@ export default (ChildComponent) => { /** 获取主表、从表、审核表数据 */ handleGetData = async (masterConfig, slaveConfig, slave0Config, slave1Config, slave2Config, slave3Config, slave4Config, bEditClick, slave5Config, slave6Config, slave7Config, slave8Config, slave9Config, slave10Config) => { const { currentId, app } = this.props; /* 当前页签数据 */ - const sId = currentId !== undefined ? currentId : ''; const { sModelsId, masterData, sModelsType, slaveSelectedRowKeys } = this.props; + const sId = currentId || masterData.sId || ""; await this.props.handleGetDataOne({ name: 'master', configData: masterConfig, condition: { sId, pageSize: '', pageNum: '' }, bEditClick }); let addStateSlave = {}; if (!commonUtils.isEmptyObject(slaveConfig)) { -- libgit2 0.22.2