From e1cb0923a89efbaddeec71a292607c4fa5cb33ac Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Thu, 28 Aug 2025 11:34:34 +0800
Subject: [PATCH] feat:添加接口

---
 src/views/resource/components/spotDetails.vue |   25 +++++++++++++------------
 1 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/src/views/resource/components/spotDetails.vue b/src/views/resource/components/spotDetails.vue
index a19d5ab..fa0867f 100644
--- a/src/views/resource/components/spotDetails.vue
+++ b/src/views/resource/components/spotDetails.vue
@@ -76,7 +76,7 @@
             <div class="pagination-container">
               <el-pagination
               :current-page="params.current"
-      :page-size="params.size"
+              :page-size="params.size"
                 background
                 layout="prev, pager, next"
                 prev-text="上一页"
@@ -107,18 +107,12 @@
 </template>
 
 <script setup>
-import {
-  getCenterPoint,
-  getLnglatDist,
-  getLnglatAltitude,
-  getPolygonMaxHeight,
-  cartesian3Convert,
-  getWaylineShowHeight,
-} from '@/utils/cesium/mapUtil.js';
+import {spotManagementTableApi,searchManagementApi,uploadManagementApi,tableMapListApi} from '@/api/patchManagement/index'
+import {getCenterPoint, } from '@/utils/cesium/mapUtil.js';
 import { getPatchesSpotList } from '@/api/patchManagement/index';
 import * as Cesium from 'cesium';
 import { PublicCesium } from '@/utils/cesium/publicCesium';
-import { ref, watch, onBeforeUnmount } from 'vue';
+import { ref, watch, onBeforeUnmount, onMounted } from 'vue';
 import FunButton from '@/views/resource/components/FunButton.vue';
 const uploadPatchDialog = defineModel('show');
 const props = defineProps(['title']);
@@ -165,6 +159,12 @@
   current: 1,
   size: 20,
 });
+// 图斑管理表格
+const getspotManagementTableApi =()=>{
+  spotManagementTableApi(params).then(res => {
+    console.log('管理表格数据',res);
+  })
+}
 const handleSizeChange = () => {};
 const handleCurrentChange = () => {};
 const tableData = ref([]);
@@ -379,7 +379,9 @@
     destroyMap();
   }
 });
-
+onMounted(()=>{
+  getspotManagementTableApi()
+})
 onBeforeUnmount(() => {
   destroyMap();
 });
@@ -390,7 +392,6 @@
   padding-left: 16px !important;
 }
 }
-
 </style>
 <style scoped lang="scss">
 // :deep(.el-dialog.is-align-center) {

--
Gitblit v1.9.3