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()