预见测代码

This commit is contained in:
2024-12-25 20:29:27 +08:00
parent 6b76d89507
commit 2e17531c52
2 changed files with 69 additions and 32 deletions

View File

@@ -147,11 +147,18 @@ const detectionOptions = ref([
const isTimeCheck = ref(false)
const preTestRef = ref(null);
const devIdArr = ref([])
const planId = ref('')
// 打开弹窗,可能是新增,也可能是编辑
const open = (selection: Device.ResPqDev[],title: string,time:boolean) => {
const checkStates = selection.map(item => item.checkState);
devIdArr.value = selection.map(item => item.id);
planId.value =selection[0].planId
console.log('wwwwwwwwwwwwwwwww',selection)
const allCheckStatesEqual = new Set(checkStates).size <= 1;
if (!allCheckStatesEqual) {
@@ -196,26 +203,6 @@ const detectionOptions = ref([
}
/* else if(res.code === 10200){
switch (res.operateCode){
case 'INIT_GATHER':
break
}
}else if(res.code === 10201){
switch (res.operateCode){
case 'INIT_GATHER':
//开始进入源初始化检测
break
}
}*/
});
@@ -238,12 +225,11 @@ const detectionOptions = ref([
})*/
startPreTest({
userPageId: "cdf",
devIds:["5eaba83670ff4d9daf892a62a5e13ea3","80b4b4f52a4c4064a18319525f8ac13c"],
planId:"31cc203f3fa94fa39323ae7cc411cd66"
devIds:devIdArr.value,
planId:planId.value
}).then(res=>{
})
break;
case 1: