Commit ca700d17bb61ef2e39a4bc86b39f72a07eb5b252

Authored by chenxt
1 parent 4e456e19

解决报错

src/mes/common/commonOperationBarComponent/index.js
... ... @@ -1198,7 +1198,7 @@ const CommonOperationBarComponent = basProps => {
1198 1198 let leftShowTypeProps = {
1199 1199 app,
1200 1200 record: {},
1201   - sId: letfSearchField.sId /* 修改当前编号(数据格式:字符串) */,
  1201 + sId: letfSearchField?.sId /* 修改当前编号(数据格式:字符串) */,
1202 1202 name: "slave",
1203 1203 form,
1204 1204 formId: sModelsId,
... ... @@ -1220,7 +1220,7 @@ const CommonOperationBarComponent = basProps => {
1220 1220 formRoute: props.formRoute,
1221 1221 getDateFormat: props.getDateFormat,
1222 1222 bNoMesBlue: true,
1223   - record: props.slaveData[0],
  1223 + record: props.slaveData?.[0],
1224 1224 onDropDownBlur: props.onDropDownBlur
1225 1225 }
1226 1226 return (
... ...