From 43dd708784177ea36f450a90680e99f0969f0f8c Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期六, 08 二月 2025 17:43:50 +0800
Subject: [PATCH] 改bug

---
 admin/src/views/roomStatus/index.vue |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/admin/src/views/roomStatus/index.vue b/admin/src/views/roomStatus/index.vue
index ac4fd77..2af5abd 100644
--- a/admin/src/views/roomStatus/index.vue
+++ b/admin/src/views/roomStatus/index.vue
@@ -587,7 +587,7 @@
                                             <el-table-column
                                                 label="璁惧缂栫爜">
                                                 <template slot-scope="{row}">
-                                                    <el-button type="text">{{row.code}}</el-button>
+                                                    <el-button type="text" @click="handledeviveDetail(row.id)">{{row.code}}</el-button>
                                                 </template>
                                             </el-table-column>
                                             <el-table-column
@@ -646,6 +646,8 @@
         <Edit v-if="showEdit1" ref="EditRef" @success="getDevicePage" @close="showEdit1 = false" />
         <!--    鍚堝悓璇︽儏    -->
         <ContractDetail ref="ContractDetailRef" />
+        <!--    璁惧璇︽儏    -->
+        <deviceDetail ref="deviceDetail" />
     </div>
 </template>
 
@@ -662,9 +664,10 @@
   import { fetchList as devicePage, getDeviceCateData, getDeviceStatus } from '@/api/Inspection/device'
   import Edit from '../operation/components/deviceEdit'
   import ContractDetail from '../contract/components/contractDetail'
+  import deviceDetail from '../operation/components/deviceDetail'
   export default {
     name: 'index',
-    components: { OperaYwWorkorderWindow, Detail, Edit, ContractDetail },
+    components: { OperaYwWorkorderWindow, Detail, Edit, ContractDetail, deviceDetail },
     data() {
       return {
         showDetail: false,
@@ -719,6 +722,11 @@
       }
     },
     methods: {
+      handledeviveDetail(id) {
+        this.$refs.deviceDetail.visible = true
+        this.$refs.deviceDetail.id = id
+        this.$refs.deviceDetail.getDetail()
+      },
       nodeClick(e) {
         this.tableData = []
         this.pageSize = 10

--
Gitblit v1.9.3