From 0dc7fbac552884839ee89807e0140d6bf6d1f005 Mon Sep 17 00:00:00 2001
From: jihongshun <1151753686@qq.com>
Date: 星期六, 02 八月 2025 13:38:38 +0800
Subject: [PATCH] fix创建多个设备 第n个转的时候

---
 src/views/system/device/index.vue |   21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/src/views/system/device/index.vue b/src/views/system/device/index.vue
index ab8c6f5..2a88f27 100644
--- a/src/views/system/device/index.vue
+++ b/src/views/system/device/index.vue
@@ -3,7 +3,7 @@
      <el-row :gutter="20">
        <el-col :span="showMap ? 12 : 24" :xs="24">
         <AppTable ref="AppTable" selection :showDeptSearch="false" :url="'tower/device/list'" :tableColumns="tableColumns"
-          :tableFilter="tableFilter"  @clickRow="clickRow">
+          :tableFilter="tableFilter">
           <template #operatorBox="{ row }">
             <el-button type="primary" plain icon="el-icon-plus" size="mini"
               @click="handleAdd">鏂板璁惧</el-button>
@@ -11,9 +11,9 @@
           </template>
           <template #operator="{ row }">
             <el-button size="mini" type="text" icon="el-icon-edit"
-              @click="handleUpdate(row)">淇敼</el-button>
+              @click.stop="handleUpdate(row)">淇敼</el-button>
             <el-button size="mini" type="text" icon="el-icon-delete"
-              @click="handleDelete(row)">鍒犻櫎</el-button>
+              @click.stop="handleDelete(row)">鍒犻櫎</el-button>
           </template>
         </AppTable>
       </el-col>
@@ -50,15 +50,15 @@
       tableColumns: [
         {
           label: '璁惧鍚嶇О',
-          prop: 'name'
+          prop: 'deviceName'
         },
         {
           label: '鎵�灞炵嚎璺�',
-          prop: 'createBy'
+          prop: 'belongingRoute'
         },
         {
           label: '鏈濆悜',
-          prop: 'createTime'
+          prop: 'face'
         },
         {
           label: '鎿嶄綔',
@@ -98,6 +98,7 @@
     },
     // 鍒犻櫎鏁版嵁
     handleDelete(row) {
+      console.log(row)
       const ids = row.id || this.ids
       const name = row.name || ''
       this.$api.deleteByName('/tower/device', ids,name).then(res => {
@@ -108,10 +109,10 @@
     handleImport () {
       this.$refs.deviceImportDialog.show()
     },
-    clickRow(row){
-      console.log(row)
-      this.showMap =true
-    },
+    // clickRow(row){
+    //   console.log(row)
+    //   this.showMap =true
+    // },
   },
 };
 </script>

--
Gitblit v1.9.3