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,