From 417c46988366e8c11f54230345f2e6840a0025f7 Mon Sep 17 00:00:00 2001
From: jihongshun <1151753686@qq.com>
Date: 星期三, 16 七月 2025 16:43:00 +0800
Subject: [PATCH] 项目相关

---
 src/views/system/shootPoint/index.vue |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/views/system/shootPoint/index.vue b/src/views/system/shootPoint/index.vue
index 8ad757b..03f2833 100644
--- a/src/views/system/shootPoint/index.vue
+++ b/src/views/system/shootPoint/index.vue
@@ -9,6 +9,8 @@
               @click="handleAdd">鏂板妯℃澘</el-button>
           </template>
           <template #operator="{ row }">
+            <el-button size="mini" type="text" icon="el-icon-view"
+              @click="preview(row)">棰勮</el-button>
             <el-button size="mini" type="text" icon="el-icon-delete"
               @click="handleDelete(row)">鍒犻櫎</el-button>
           </template>
@@ -19,7 +21,7 @@
        </el-col>
      </el-row>
     
-    <shootPointDialog  @on-submit="$refs.AppTable.getData()"  v-if="showDialog" @close="close"></shootPointDialog>
+    <shootPointDialog  @on-submit="$refs.AppTable.getData()"  v-if="showDialog" @close="close" :templateId="templateId"></shootPointDialog>
   </div>
 </template>
 
@@ -67,7 +69,8 @@
         }
       ],
       showMap:false,
-      showDialog:false
+      showDialog:false,
+      templateId:null
     };
   },
   watch: {
@@ -79,6 +82,7 @@
   methods: {
     // 娣诲姞鏁版嵁
     handleAdd() {
+      this.templateId = null
       this.showMap  = false
       this.showDialog = true
       // this.$refs.shootPointDialog.show()
@@ -107,7 +111,11 @@
     // },
     close(){
       this.showDialog =false
-      this
+    },
+    preview(row){
+      console.log(row)
+      this.templateId = row.id
+      this.showDialog = true
     }
   },
 };

--
Gitblit v1.9.3