模拟式报告生成不弹框
This commit is contained in:
@@ -224,6 +224,7 @@ import { documentedPqDev } from '@/api/device/report'
|
||||
import { ResultEnum } from '@/enums/httpEnum'
|
||||
import { getPqMonList } from '@/api/device/monitor/index.ts'
|
||||
import ReportResultPopup from '@/views/home/components/reportResultPopup.vue'
|
||||
import { el } from 'element-plus/es/locale'
|
||||
|
||||
const checkStore = useCheckStore()
|
||||
let devNum = 0 //当前选取的被检设备数量
|
||||
@@ -994,8 +995,10 @@ const openTestDialog2 = () => {
|
||||
const openDrawer = async (title: string, row: any) => {
|
||||
// 单个设备报告生成
|
||||
if (title === '报告生成') {
|
||||
if (modeStore.currentMode == '比对式'){
|
||||
reportPopup.value?.open(row)
|
||||
/*await generateDevReport({
|
||||
}else{
|
||||
await generateDevReport({
|
||||
planId: checkStore.plan.id,
|
||||
devIdList: [row.id],
|
||||
scriptId: checkStore.plan.scriptId,
|
||||
@@ -1004,7 +1007,8 @@ const openDrawer = async (title: string, row: any) => {
|
||||
pageSize: 999
|
||||
})
|
||||
emit('batchGenerateClicked') // 触发事件
|
||||
ElMessage.success({ message: `报告生成成功!` })*/
|
||||
ElMessage.success({ message: `报告生成成功!` })
|
||||
}
|
||||
}
|
||||
|
||||
if (title === '报告下载') {
|
||||
|
||||
Reference in New Issue
Block a user