From 6e979c5dcb07860b6b078df3729f6e986400d871 Mon Sep 17 00:00:00 2001 From: caozehui <2427765068@qq.com> Date: Thu, 28 Aug 2025 16:29:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/check/test/index.ts | 2 ++ ...reDataCheckSingleChannelSingleTestPopup.vue | 1 + .../dataCheckSingleChannelSingleTestPopup.vue | 18 ++++++++++++------ 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/frontend/src/api/check/test/index.ts b/frontend/src/api/check/test/index.ts index 0578b3c..92eeda9 100644 --- a/frontend/src/api/check/test/index.ts +++ b/frontend/src/api/check/test/index.ts @@ -73,6 +73,7 @@ export const reCalculate = (params: { errorSysId: string deviceId: string code: string + patternId: string }) => { return http.post('/result/reCalculate', params, {loading: true}) } @@ -113,6 +114,7 @@ export const changeErrorSystem = (params: { errorSysId: string deviceId: string code: string + patternId: 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 fdb66c0..8ff3246 100644 --- a/frontend/src/views/home/components/compareDataCheckSingleChannelSingleTestPopup.vue +++ b/frontend/src/views/home/components/compareDataCheckSingleChannelSingleTestPopup.vue @@ -292,6 +292,7 @@ const getResults = async () => { const close = () => { visible.value = false + formContent.num='' // 可以在这里添加其他清理逻辑 } diff --git a/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue b/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue index 0fc5f39..620343a 100644 --- a/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue +++ b/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue @@ -8,7 +8,8 @@ - { errorSysId: formContent.errorSysId, deviceId: deviceId, code: checkStore.plan.code + '', + patternId: dictStore.getDictData('Pattern').find(item => item.name === modeStore.currentMode)?.id ?? '', }).then((res) => { if (res.code === ResultEnum.SUCCESS) { ElMessage.success('切换误差体系成功') @@ -440,7 +445,7 @@ const open = async (_deviceId: string, chnNum: string, _scriptType: string | nul } const handleGenerateReport = async () => { - await generateDevReport({'planId': checkStore.plan.id, 'devIdList': [deviceId],'scriptId':checkStore.plan.scriptId,'planCode':planCode}) + await generateDevReport({'planId': checkStore.plan.id, 'devIdList': [deviceId], 'scriptId': checkStore.plan.scriptId, 'planCode': planCode}) ElMessage.success({message: `报告生成成功!`}) } @@ -450,7 +455,8 @@ const handleReCalculate = async () => { scriptId: checkStore.plan.scriptId, errorSysId: formContent.errorSysId, deviceId: deviceId, - code: checkStore.plan.code + '' + code: checkStore.plan.code + '', + patternId: dictStore.getDictData('Pattern').find(item => item.name === modeStore.currentMode)?.id ?? '', }).then((res) => { ElMessage.success('重新计算成功!') // if (originErrorSysId != formContent.errorSysId) { @@ -596,7 +602,7 @@ const dataToShow = (num: number): string => { if (num == null || num == undefined) { return '/' } - return num+'' + return num + '' }