Update dailyInspection.vue

This commit is contained in:
TimSpan 2024-11-08 17:07:47 +08:00
parent 59d96b7d17
commit 5369190b1d
1 changed files with 13 additions and 12 deletions

View File

@ -282,19 +282,20 @@ const onSubmit = async function () {
ckStandardId: item.selectedID, //ID
})
}
if (item.hasOwnProperty('selectedGroup')) {
item.selectedGroup.forEach((selectedItem) => {
// console.log(selectedItem)
// console.log(ele)
if (ele.ckItemId != 'null' && selectedItem != 'null') {
assessmentRecordDetails.value.push({
ckGroupId: element.snowFlakeId, //Id
ckItemId: ele.ckItemId, //ID
ckStandardId: selectedItem, //ID
})
}
})
}
})
if (item.hasOwnProperty('selectedGroup')) {
item.selectedGroup.forEach((selectedItem) => {
console.log(selectedItem)
if (selectedItem != 'null') {
assessmentRecordDetails.value.push({
ckGroupId: element.snowFlakeId, //Id
ckItemId: item.snowFlakeId, //ID
ckStandardId: selectedItem, //ID
})
}
})
}
})
})