重新计算、切换误差体系接口调整
This commit is contained in:
@@ -82,8 +82,8 @@ export const reCalculate = (params: {
|
|||||||
errorSysId: string
|
errorSysId: string
|
||||||
deviceId: string
|
deviceId: string
|
||||||
code: string
|
code: string
|
||||||
patternId: string
|
patternId: string,
|
||||||
|
chnNum: string
|
||||||
}) => {
|
}) => {
|
||||||
return http.post('/result/reCalculate', params, {loading: true})
|
return http.post('/result/reCalculate', params, {loading: true})
|
||||||
}
|
}
|
||||||
@@ -129,7 +129,8 @@ export const changeErrorSystem = (params: {
|
|||||||
errorSysId: string
|
errorSysId: string
|
||||||
deviceId: string
|
deviceId: string
|
||||||
code: string
|
code: string
|
||||||
patternId: string
|
patternId: string,
|
||||||
|
chnNum: string
|
||||||
}) => {
|
}) => {
|
||||||
return http.post('/result/changeErrorSystem', params, {loading: true})
|
return http.post('/result/changeErrorSystem', params, {loading: true})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -563,7 +563,8 @@ const handleErrorSysChange = async () => {
|
|||||||
errorSysId: formContent.errorSysId,
|
errorSysId: formContent.errorSysId,
|
||||||
deviceId: formContent.deviceId,
|
deviceId: formContent.deviceId,
|
||||||
code: checkStore.plan.code + '',
|
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 => {
|
}).then(res => {
|
||||||
if (res.code === ResultEnum.SUCCESS) {
|
if (res.code === ResultEnum.SUCCESS) {
|
||||||
ElMessage.success('切换误差体系成功')
|
ElMessage.success('切换误差体系成功')
|
||||||
@@ -579,7 +580,8 @@ const handleReCalculate = async () => {
|
|||||||
errorSysId: formContent.errorSysId,
|
errorSysId: formContent.errorSysId,
|
||||||
deviceId: formContent.deviceId,
|
deviceId: formContent.deviceId,
|
||||||
code: checkStore.plan.code + '',
|
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 => {
|
}).then(res => {
|
||||||
if (res.code === ResultEnum.SUCCESS) {
|
if (res.code === ResultEnum.SUCCESS) {
|
||||||
ElMessage.success('重新计算成功!')
|
ElMessage.success('重新计算成功!')
|
||||||
|
|||||||
Reference in New Issue
Block a user