数模没有标准设备

This commit is contained in:
sjl
2025-08-15 08:37:35 +08:00
parent 83c8dc5f19
commit 61b87304e6
9 changed files with 56 additions and 230 deletions

View File

@@ -118,11 +118,13 @@ import { ElMessage, ElMessageBox } from 'element-plus'
import { getBigTestItem } from '@/api/check/test'
import { getAutoGenerate } from '@/api/user/login'
import { generateDevReport } from '@/api/plan/plan'
import { useModeStore } from '@/stores/modules/mode' // 引入模式 store
import { useDictStore } from '@/stores/modules/dict'
// 获取检测状态管理实例
const checkStore = useCheckStore()
const modeStore = useModeStore()
const dictStore = useDictStore()
// 最大通道数限制,超过此数量将使用汇总显示
const MAX_CHN_SUM = 12
@@ -733,11 +735,13 @@ const showTestLog = () => {
// ========== 数据初始化函数 ==========
// 从服务器获取检测脚本配置数据
const initScriptData = async () => {
const pattern = dictStore.getDictData('Pattern').find(item => item.name === modeStore.currentMode)?.id ?? '';
// 根据复检类型、计划ID、设备ID列表获取测试项
let response: any = await getBigTestItem({
reCheckType: checkStore.reCheckType,
planId: checkStore.plan.id,
devIds: checkStore.devices.map(item => item.deviceId),
patternId: pattern
})
// 格式化脚本数据