diff --git a/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue b/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue index 06ae8f1..5cb8791 100644 --- a/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue +++ b/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue @@ -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 - }) - } - }) - } }) })