This commit is contained in:
caozehui
2025-04-21 09:11:31 +08:00
parent 2134fea518
commit 19a30894f8
2 changed files with 2 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ export namespace Device {
devId?: string; // 装置id
scriptId?: string; // 脚本id
planCode?: string;
devIdList?: string[]; // 装置id列表
}
/**

View File

@@ -1067,7 +1067,7 @@ const openDrawer = async (title: string, row: any) => {
if (title === '报告生成') {
await generateDevReport({'planId': checkStore.plan.id, 'devId': row.id,'scriptId':checkStore.plan.scriptId,'planCode':checkStore.plan.code+''})
await generateDevReport({'planId': checkStore.plan.id, 'devIdList': [row.id],'scriptId':checkStore.plan.scriptId,'planCode':checkStore.plan.code+''})
emit('batchGenerateClicked') // 触发事件
ElMessage.success({message: `报告生成成功!`})
}