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 + '',