From cbea9fff71ae8f2b499ed466df0fadaff28128ef Mon Sep 17 00:00:00 2001
From: suixy <2277317060@qq.com>
Date: Thu, 30 Oct 2025 17:36:44 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=9A=9C=E7=A2=8D=E7=89=A9?=
=?UTF-8?q?=E4=BF=9D=E5=AD=98=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/index.vue | 62 +++++++++++++++++++++++++++++++++------------
1 file changed, 46 insertions(+), 16 deletions(-)
diff --git a/src/views/index.vue b/src/views/index.vue
index e628a60..0ac5361 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -212,7 +212,7 @@
删除
- 固定物
+ 固定物
@@ -641,6 +641,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{
const ShutDownWorkBtn = () => {
ShutDownWork()
}
-// 设置障碍物-不处理
+
+const form1 = ref({})
+const form2 = ref({})
+const form3 = ref({})
+const form4 = ref({})
+const form5 = ref({})
+const form6 = ref({})
+
+// 障碍物
+const shildDialog = ref(false)
+const shildForm = ref({})
+const openShildDialog = (e) => {
+ console.log(e.row)
+ shildDialog.value = true
+ shildForm.value = {
+ lon: e.row.Lon,
+ lat: e.row.Lat,
+ strength: e.row.rate,
+ }
+}
+// 设置障碍物-固定物
const addShildItem = () => {
- addShildData({
- name: 'string',
- lon: 123,
- lat: 12,
- deviation: 12,
- shielding: 23
- }).then(e => {
+ addShildData(shildForm.value).then(e => {
+ shildDialog.value = false
+ shildForm.value = {}
getShildTableList()
})
}
@@ -885,13 +922,6 @@ const getShildTableList = () => {
})
}
-const form1 = ref({})
-const form2 = ref({})
-const form3 = ref({})
-const form4 = ref({})
-const form5 = ref({})
-const form6 = ref({})
-
const tableData1 = ref(Array(1000).fill(0).map((_, k) => {
return {
Lon: 111.11111111,