From 5369190b1db4b7ae52192ebcfc0f1b45901ee7c2 Mon Sep 17 00:00:00 2001 From: TimSpan Date: Fri, 8 Nov 2024 17:07:47 +0800 Subject: [PATCH] Update dailyInspection.vue --- .../dailyInspection/dailyInspection.vue | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) 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 - }) - } - }) - } }) })