From 2079ba28f20bde46f7736699c97abf0e1564770d Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 14 十月 2024 09:30:46 +0800
Subject: [PATCH] 最新版本

---
 admin/src/views/business/deviceLed.vue |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/admin/src/views/business/deviceLed.vue b/admin/src/views/business/deviceLed.vue
index 3ab4c39..4cdd754 100644
--- a/admin/src/views/business/deviceLed.vue
+++ b/admin/src/views/business/deviceLed.vue
@@ -32,6 +32,16 @@
                 </el-table-column>
                 <el-table-column prop="ip" label="璁惧ip"></el-table-column>
                 <el-table-column prop="port" label="璁惧绔彛"></el-table-column>
+              <el-table-column
+                  v-if="containPermissions(['business:device:update' ])"
+                  label="鎿嶄綔"
+                  min-width="120"
+                  fixed="right"
+              >
+                <template slot-scope="{row}">
+                  <el-button type="text" @click="$refs.OperaDeviceLedWindow.open('璁剧疆灞忔樉鍐呭', row)" icon="el-icon-edit" v-permissions="['business:device:update']">璁剧疆灞忔樉鍐呭</el-button>
+                </template>
+              </el-table-column>
             </el-table>
             <pagination
                 @size-change="handleSizeChange"
@@ -41,7 +51,7 @@
             </pagination>
         </template>
         <!-- 鏂板缓/淇敼 -->
-<!--        <OperaDeviceWindow ref="operaDeviceWindow" @success="handlePageChange"/>-->
+        <OperaDeviceLedWindow ref="OperaDeviceLedWindow" @success="handlePageChange"/>
     </TableLayout>
 </template>
 
@@ -49,12 +59,12 @@
 import BaseTable from '@/components/base/BaseTable'
 import TableLayout from '@/layouts/TableLayout'
 import Pagination from '@/components/common/Pagination'
-import OperaDeviceWindow from '@/components/business/OperaDeviceWindow'
+import OperaDeviceLedWindow from '@/components/business/OperaDeviceLedWindow'
 import { syncDevices, updateEntranceById } from '@/api/business/device'
 export default {
   name: 'Device',
   extends: BaseTable,
-  components: { TableLayout, Pagination, OperaDeviceWindow },
+  components: { TableLayout, Pagination, OperaDeviceLedWindow },
   data () {
     return {
       // 鎼滅储

--
Gitblit v1.9.3