From cda9a8a476949bc51288f5aec3d7d4cf4762162a Mon Sep 17 00:00:00 2001 From: suixy <2277317060@qq.com> Date: Fri, 12 Dec 2025 15:07:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9ws?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/index.vue b/src/views/index.vue index 25cb7fa..a6336cf 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -2150,7 +2150,7 @@ const shildForm3 = ref({}) const openShildDialog3 = (e) => { shildDialog3.value = true shildForm3.value = { - // shildId: e.row.id, + shildId: e.row.id, lon: e.row.longitude, lat: e.row.latitude, strength: e.row.strength, @@ -2162,8 +2162,12 @@ const openShildDialog3 = (e) => { // 设置固定物 const addShildItem3 = () => { dotIndex2.value = -1 - addShildData({...shildForm3.value, FodAirId: form1.value.region1}).then(e => { - // DeleteDealObstacleModel({id: shildForm3.value.shildId}) + let params = { + ...shildForm3.value, FodAirId: form1.value.region1 + } + delete params.shildId + addShildData(params).then(e => { + DeleteDealObstacleModel({id: shildForm3.value.shildId}) shildDialog3.value = false shildForm3.value = {} getShildTableList()