diff --git a/src/mes/common/commonModelComponent/index.js b/src/mes/common/commonModelComponent/index.js index e0407ed..fa67e21 100644 --- a/src/mes/common/commonModelComponent/index.js +++ b/src/mes/common/commonModelComponent/index.js @@ -1992,49 +1992,19 @@ const CommonRepairComponent = props => { }; let bCenter = false; - if (title === "异常信息") { - style.top = "auto"; - style.left = -500; - style.margin = 0; - bCenter = true; - } - - useEffect( - () => { - if (visible && title === "异常信息") { - oBoxImg.current = document.createElement("div"); - oBoxImg.current.className = styles.boxImg; - // oBoxImg.current.innerHTML = "盒形图"; - - const url = - "/data/tools/xlyerpfiles/tempPath/240606/12710101117176455089290_Image_1717645454288.png"; - const fileUrl = `${ - commonConfig.file_host - }file/download?savePathStr=${encodeURIComponent( - url - )}&sModelsId=100&token=${props.app.token}`; - const oImg = document.createElement("img"); - oImg.src = fileUrl; - oBoxImg.current.appendChild(oImg); - - document.body.appendChild(oBoxImg.current); - } - }, - [visible] - ); - // OQC标签弹窗添加清空按钮 - const onEmptyClick = () =>{ - setViewRow({ - ...viewRow, - sAbnormalLine: '', - sAbnormalType: '', - sAbnormalMemo: '', - sQcPerson: '', - dSampQty: 0, - bReturn: false - }) - } + // OQC标签弹窗添加清空按钮 + const onEmptyClick = () =>{ + setViewRow({ + ...viewRow, + sAbnormalLine: '', + sAbnormalType: '', + sAbnormalMemo: '', + sQcPerson: '', + dSampQty: 0, + bReturn: false + }) + } const titleNew = title === '异常信息' ? 'Abnormal Info' : title; return (