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,14 +282,14 @@ const onSubmit = async function () {
ckStandardId: item.selectedID, //ID ckStandardId: item.selectedID, //ID
}) })
} }
})
if (item.hasOwnProperty('selectedGroup')) { if (item.hasOwnProperty('selectedGroup')) {
item.selectedGroup.forEach((selectedItem) => { item.selectedGroup.forEach((selectedItem) => {
console.log(selectedItem) // console.log(selectedItem)
if (selectedItem != 'null') { // console.log(ele)
if (ele.ckItemId != 'null' && selectedItem != 'null') {
assessmentRecordDetails.value.push({ assessmentRecordDetails.value.push({
ckGroupId: element.snowFlakeId, //Id ckGroupId: element.snowFlakeId, //Id
ckItemId: item.snowFlakeId, //ID ckItemId: ele.ckItemId, //ID
ckStandardId: selectedItem, //ID ckStandardId: selectedItem, //ID
}) })
} }
@ -297,6 +297,7 @@ const onSubmit = async function () {
} }
}) })
}) })
})
const assessmentRecordParams = { const assessmentRecordParams = {
assessmentRecordDetails: [] as any[], assessmentRecordDetails: [] as any[],