From a7d7431c75d554c9845b999ab3ac7c30228035aa Mon Sep 17 00:00:00 2001 From: guoyue Date: Thu, 29 Sep 2022 09:24:02 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=9F=BA=E7=A1=80=E8=AE=BE?= =?UTF-8?q?=E6=96=BD-=E7=94=B3=E8=AF=B7=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/home/apply.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/front/src/views/home/apply.vue b/front/src/views/home/apply.vue index 29ff3398..57d6d779 100644 --- a/front/src/views/home/apply.vue +++ b/front/src/views/home/apply.vue @@ -359,7 +359,7 @@ export default { ids.push(item.id) } } else { - infrastructureConfirm(item) + infrastructureConfirm(item, falgNum, sxt) } }) }) @@ -421,7 +421,7 @@ export default { ids.push(item.id) } } else { - infrastructureConfirm(item) + infrastructureConfirm(item, falgNum, sxt) } }) }) @@ -476,12 +476,14 @@ export default { } // 基础设施--数据下发 - const infrastructureConfirm = (item) => { + const infrastructureConfirm = (item, falgNum, sxt) => { let obj = {} Object.assign(obj, formName) console.log('摄像头===============>', obj, item) obj.system = [] - item.note1 = JSON.parse(item.note1) + if(item.note1 && typeof item.note1 == 'string') { + item.note1 = JSON.parse(item.note1) + } item.note1.map((sxt) => { let _itemData = { resourceId: sxt.idtCameraChannel + '',