This commit is contained in:
caozehui
2024-12-27 14:29:21 +08:00
parent c6836cad06
commit 3d9ba8b1cb
2 changed files with 13 additions and 9 deletions

View File

@@ -148,17 +148,18 @@ const detectionOptions = ref([
const preTestRef = ref(null);
const testRef = ref(null);
const devIdArr = ref([])
const planId = ref('')
// 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)
// devIdArr.value = selection.map(item => item.id);
// planId.value =selection[0].planId
// console.log('wwwwwwwwwwwwwwwww',selection)
const allCheckStatesEqual = new Set(checkStates).size <= 1;
@@ -213,7 +214,10 @@ const detectionOptions = ref([
const handleSubmit = () => {
skipDisabled.value = true
console.log('=============',stepsActiveIndex.value)
let deviceIds = checkStore.devices.map((item) => item.deviceId)
let planId = checkStore.planId
switch (stepsActiveIndex.value) {
case 0:
preTestStatus.value = 'start'
@@ -226,8 +230,9 @@ const detectionOptions = ref([
})*/
startPreTest({
userPageId: "cdf",
devIds:devIdArr.value,
planId:planId.value
devIds:deviceIds,
planId:planId,
operateType:'0' // '0'为预检测、1为正式检测
}).then(res=>{