From fd9771cf69d8aab494059ab97571157ceb62f063 Mon Sep 17 00:00:00 2001 From: chenxt <10125295+chen-xintao97@user.noreply.gitee.com> Date: Fri, 22 May 2026 17:04:02 +0800 Subject: [PATCH] 刷脸上班传参修改选中行 --- src/mobile/common/CommobileListEvent.js | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/src/mobile/common/CommobileListEvent.js b/src/mobile/common/CommobileListEvent.js index 0390d45..84ad7a5 100644 --- a/src/mobile/common/CommobileListEvent.js +++ b/src/mobile/common/CommobileListEvent.js @@ -396,7 +396,6 @@ export default (ChildComponent) => { } else if (name === 'BtnAdd') { this.handleAdd(); } else if (name.includes('BtnScanFace')) { - console.log("🚀 ~ name:", name) this.startCamera() } }; @@ -501,7 +500,6 @@ export default (ChildComponent) => { faceData: result, ...dataReturn, onSuccess: (_, dataset) => { - console.log("🚀 ~ dataset:", dataset) const { proData = [] } = dataset.rows[0].dataSet; const { [`${addData}Data`]: tableData = [], [`${addData}Config`]: config = {} } = this.props; const copyConfig = config?.gdsconfigformslave?.find(item => item.sControlName.toLowerCase().includes('btnscanface')) @@ -580,7 +578,7 @@ export default (ChildComponent) => { sUserId, sParentId, sEmployeeNo, - + } = params; const currentState = this.props || this.state; @@ -735,20 +733,21 @@ export default (ChildComponent) => { item.iFlag = iFlag; }); } - + const slaveRowData = this.props?.slaveData?.find(x => x.sSlaveId === slaveSelectedRowKeys?.[0]) || {} + const proInparamValue = { + ...slaveRowData, + sUserId, + sParentId, + sEmployeeNo, + sFaceParentId: sParentId, + sFaceEmployeeNo: sEmployeeNo + } + // sFaceParentId: faceData[0].sParentId, sFaceEmployeeNo: faceData[0].sEmployeeNo const proInParam = JSON.stringify({ params: inParams.map(item => ({ ...item, sUserName: app.userinfo.sUserName, - value: [{ - sUserId, - sParentId, - sEmployeeNo, - sId: slaveSelectedRowKeys[0], - "sOperate": "start", - ...commonData, - - }] + value: [proInparamValue] })), changeValue: sValue, sButtonParam: btn @@ -763,7 +762,6 @@ export default (ChildComponent) => { changeValue: sValue, sButtonParam: btn }); - console.log(value, 'value '); const url = `${commonConfig.server_host }procedureCall/doGenericProcedureCall?sModelsId=${sModelsId}`; const returnData = (await commonServices.postValueService( -- libgit2 0.22.2