不合格项复检bug
This commit is contained in:
@@ -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});
|
||||
}
|
||||
|
||||
@@ -952,11 +952,12 @@ const handleTest = async (val: string) => {
|
||||
})
|
||||
.then(() => {
|
||||
ElMessage.success('不合格项复检')
|
||||
if (checkStore.devices.length > 1) {
|
||||
checkStore.setReCheckType(1)
|
||||
} else {
|
||||
checkStore.setReCheckType(0)
|
||||
}
|
||||
// if (checkStore.devices.length > 1) {
|
||||
// checkStore.setReCheckType(1)
|
||||
// } else {
|
||||
// checkStore.setReCheckType(0)
|
||||
// }
|
||||
checkStore.setReCheckType(0)
|
||||
selectTestItemPopupRef.value?.open()
|
||||
})
|
||||
.catch((action: Action) => {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user