diff --git a/frontend/src/api/check/test/index.ts b/frontend/src/api/check/test/index.ts index 97c0335..5b42e86 100644 --- a/frontend/src/api/check/test/index.ts +++ b/frontend/src/api/check/test/index.ts @@ -82,8 +82,8 @@ export const reCalculate = (params: { errorSysId: string deviceId: string code: string - patternId: string - + patternId: string, + chnNum: string }) => { return http.post('/result/reCalculate', params, {loading: true}) } @@ -129,7 +129,8 @@ export const changeErrorSystem = (params: { errorSysId: string deviceId: string code: string - patternId: string + patternId: string, + chnNum: string }) => { return http.post('/result/changeErrorSystem', params, {loading: true}) } diff --git a/frontend/src/views/home/components/compareDataCheckSingleChannelSingleTestPopup.vue b/frontend/src/views/home/components/compareDataCheckSingleChannelSingleTestPopup.vue index 0001c34..387a7bf 100644 --- a/frontend/src/views/home/components/compareDataCheckSingleChannelSingleTestPopup.vue +++ b/frontend/src/views/home/components/compareDataCheckSingleChannelSingleTestPopup.vue @@ -563,7 +563,8 @@ const handleErrorSysChange = async () => { errorSysId: formContent.errorSysId, deviceId: formContent.deviceId, code: checkStore.plan.code + '', - patternId: dictStore.getDictData('Pattern').find(item => item.name === modeStore.currentMode)?.id ?? '' + patternId: dictStore.getDictData('Pattern').find(item => item.name === modeStore.currentMode)?.id ?? '', + chnNum: formContent.chnNum }).then(res => { if (res.code === ResultEnum.SUCCESS) { ElMessage.success('切换误差体系成功') @@ -579,7 +580,8 @@ const handleReCalculate = async () => { errorSysId: formContent.errorSysId, deviceId: formContent.deviceId, code: checkStore.plan.code + '', - patternId: dictStore.getDictData('Pattern').find(item => item.name === modeStore.currentMode)?.id ?? '' + patternId: dictStore.getDictData('Pattern').find(item => item.name === modeStore.currentMode)?.id ?? '', + chnNum: formContent.chnNum }).then(res => { if (res.code === ResultEnum.SUCCESS) { ElMessage.success('重新计算成功!')