归档前如果设备没有生成报告则自动生成报告
This commit is contained in:
@@ -712,8 +712,16 @@ const updatePercentage = async () => {
|
||||
let {data: autoGenerate} = await getAutoGenerate()
|
||||
if (autoGenerate == 1) {
|
||||
//调用自动生成报告接口
|
||||
let deviceIds = checkStore.devices.map(item => item.deviceId)
|
||||
// await generateDevReport({'planId': checkStore.plan.id, 'devId':deviceIds[0] ,'scriptId':checkStore.plan.scriptId,'planCode':checkStore.plan.code+''})
|
||||
let devIdList=checkStore.devices.map(item => {
|
||||
return item.deviceId
|
||||
})
|
||||
|
||||
await generateDevReport({
|
||||
'planId': checkStore.plan.id,
|
||||
'devIdList':devIdList,
|
||||
'scriptId':checkStore.plan.scriptId,
|
||||
'planCode':checkStore.plan.code+''
|
||||
})
|
||||
}
|
||||
ElMessageBox.alert('检测全部结束,你可以停留在此页面查看检测结果,或返回首页进行复检、报告生成和归档等操作', '检测完成', {
|
||||
confirmButtonText: '确定',
|
||||
|
||||
Reference in New Issue
Block a user