diff --git a/src/components/Common/CommonTable/index.js b/src/components/Common/CommonTable/index.js index 80aea66..9b26b55 100644 --- a/src/components/Common/CommonTable/index.js +++ b/src/components/Common/CommonTable/index.js @@ -12460,7 +12460,7 @@ const useGetTableBtnOprSetting = props => { // props.onMesTableLineDel && props.onMesTableLineDel(params); const btnsConfig = gdsconfigformslave.find( - item => item.sControlName?.toLowerCase().includes("enventofftwork") + item => item.sControlName?.toLowerCase().includes("enventmanualofftwork") ) || {}; props.parentProps.onExecInstructSet({ btnConfig: { diff --git a/src/mes/common/siderInfoComponent/index.js b/src/mes/common/siderInfoComponent/index.js index 5eec1b5..d2ef03b 100644 --- a/src/mes/common/siderInfoComponent/index.js +++ b/src/mes/common/siderInfoComponent/index.js @@ -633,110 +633,115 @@ const DeviceTargetInfoComponent = () => { }; }; const equipmentTargetInformation = commonFunc.showLocalMessage(props, 'equipmentTargetInformation', '设备及目标信息'); + const { workOrderInfoData = [] } = props; + const sColumnConfig = JSON.parse(workOrderInfoData[0]?.sColumnConfig || '[]'); + const [first] = sColumnConfig + const otherList = sColumnConfig.slice(1).filter(item => item.bVisible === 1); + const sNamesInArr2 = new Set(otherList.map(item => item.sName)); // 或 item.sname + const result = showConfig.filter(item => sNamesInArr2.has(item.sName)); // 或 item.sname return ( +