不合格项复检bug

This commit is contained in:
caozehui
2025-05-09 08:51:54 +08:00
parent b3750d6a7f
commit bb35eb749b
3 changed files with 8 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ import {CheckData} from "@/api/check/interface";
export const getBigTestItem = (params: {
reCheckType: number,
planId: string,
devId: string,
devIds: string[],
}) => {
return http.post(`/adPlan/getBigTestItem`, params, {loading: false});
}

View File

@@ -952,11 +952,12 @@ const handleTest = async (val: string) => {
})
.then(() => {
ElMessage.success('不合格项复检')
if (checkStore.devices.length > 1) {
checkStore.setReCheckType(1)
} else {
// if (checkStore.devices.length > 1) {
// checkStore.setReCheckType(1)
// } else {
// checkStore.setReCheckType(0)
// }
checkStore.setReCheckType(0)
}
selectTestItemPopupRef.value?.open()
})
.catch((action: Action) => {

View File

@@ -751,7 +751,7 @@ const showTestLog = () => {
// 初始化检测脚本数据
const initScriptData = async () => {
let response: any = await getBigTestItem({reCheckType:checkStore.reCheckType, planId:checkStore.plan.id,devId:checkStore.devices[0].deviceId})
let response: any = await getBigTestItem({reCheckType:checkStore.reCheckType, planId:checkStore.plan.id,devIds:checkStore.devices.map(item => item.deviceId)})
let temp = response.data.map(item => {
return {