From b498685e9c29c9c4b56f24f1ee1c9db9fd109ad9 Mon Sep 17 00:00:00 2001
From: jihongshun <1151753686@qq.com>
Date: 星期六, 12 七月 2025 17:23:02 +0800
Subject: [PATCH] 算法优化

---
 src/views/system/shootPoint/index.vue |   38 +++++++++++++++++---------------------
 1 files changed, 17 insertions(+), 21 deletions(-)

diff --git a/src/views/system/shootPoint/index.vue b/src/views/system/shootPoint/index.vue
index a8467c8..8ad757b 100644
--- a/src/views/system/shootPoint/index.vue
+++ b/src/views/system/shootPoint/index.vue
@@ -2,15 +2,13 @@
   <div class="app-container">
      <el-row :gutter="20">
        <el-col :span="showMap ? 12 : 24" :xs="24">
-        <AppTable ref="AppTable" selection :showDeptSearch="false" :url="'device/towers/list'" :tableColumns="tableColumns"
-          :tableFilter="tableFilter"  @clickRow="clickRow">
+        <AppTable ref="AppTable" selection :showDeptSearch="false" :url="'tower/point/list'" :tableColumns="tableColumns"
+          :tableFilter="tableFilter">
           <template #operatorBox="{ row }">
             <el-button type="primary" plain icon="el-icon-plus" size="mini"
-              @click="handleAdd">鏂板妯″瀷</el-button>
+              @click="handleAdd">鏂板妯℃澘</el-button>
           </template>
           <template #operator="{ row }">
-            <el-button size="mini" type="text" icon="el-icon-edit"
-              @click="handleUpdate(row)">淇敼</el-button>
             <el-button size="mini" type="text" icon="el-icon-delete"
               @click="handleDelete(row)">鍒犻櫎</el-button>
           </template>
@@ -21,7 +19,7 @@
        </el-col>
      </el-row>
     
-    <shootPointDialog  v-if="showDialog" @close="close"></shootPointDialog>
+    <shootPointDialog  @on-submit="$refs.AppTable.getData()"  v-if="showDialog" @close="close"></shootPointDialog>
   </div>
 </template>
 
@@ -30,7 +28,7 @@
 import CesiumMap from "../../../utils/components/cesium-map.vue";
 export default {
   name: "towers",
-  dicts: ['model_type'],
+  dicts: ['model_typpe'],
   components: {
     shootPointDialog,
     CesiumMap
@@ -45,16 +43,12 @@
       multiple: true,
       tableColumns: [
         {
-          label: '妯″瀷鍚嶇О',
-          prop: 'name'
+          label: '妯℃澘鍚嶇О',
+          prop: 'templateName'
         },
         {
-          label: '妯″瀷绫诲瀷',
-          prop: 'createBy'
-        },
-        {
-          label: '妯″瀷璺緞',
-          prop: 'createTime'
+          label: '妯″瀷ID',
+          prop: 'modelId'
         },
         {
           label: '鎿嶄綔',
@@ -97,8 +91,9 @@
     // 鍒犻櫎鏁版嵁
     handleDelete(row) {
       const ids = row.id || this.ids
-      const name = row.name || ''
-      this.$api.deleteByName('/work/tower', ids,name).then(res => {
+      // const name = row.name || ''
+      const name = ids
+      this.$api.deleteByName('/tower/point', ids,name).then(res => {
         this.$refs.AppTable.getData()
       })
     },
@@ -106,12 +101,13 @@
     handleExport() {
       this.$refs.AppTable.exportExcel()
     },
-    clickRow(row){
-      console.log(row)
-      this.showMap =true
-    },
+    // clickRow(row){
+    //   console.log(row)
+    //   this.showMap =true
+    // },
     close(){
       this.showDialog =false
+      this
     }
   },
 };

--
Gitblit v1.9.3