重新计算、切换误差体系接口调整

This commit is contained in:
caozehui
2025-11-25 19:58:04 +08:00
parent 4a309feac5
commit f987e1c625
2 changed files with 8 additions and 5 deletions

View File

@@ -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})
}

View File

@@ -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('重新计算成功!')