From 32eaeea1f7fd7645cc5c189a4bd7677a711fd07d Mon Sep 17 00:00:00 2001 From: tx <2622874537@qq.com> Date: Tue, 7 Jan 2025 15:18:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E8=AF=A6=E6=83=85=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- src/views/system/commandLog/index.vue | 7 +- src/views/system/device/device_detail.vue | 93 +++++++++++++---------- 3 files changed, 59 insertions(+), 45 deletions(-) diff --git a/.env.development b/.env.development index 4fbe76a..6e0da17 100644 --- a/.env.development +++ b/.env.development @@ -5,8 +5,8 @@ VUE_APP_TITLE = 共享空间 ENV = 'development' # 共享空间/开发环境 -VUE_APP_BASE_API = 'https://testcha.chuangtewl.com/prod-api' -# VUE_APP_BASE_API = 'http://localhost:8089' +# VUE_APP_BASE_API = 'https://testcha.chuangtewl.com/prod-api' +VUE_APP_BASE_API = 'http://192.168.2.43:8089' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/views/system/commandLog/index.vue b/src/views/system/commandLog/index.vue index 7aff973..a5a17a0 100644 --- a/src/views/system/commandLog/index.vue +++ b/src/views/system/commandLog/index.vue @@ -9,7 +9,7 @@ @keyup.enter.native="handleQuery" /> - + - + 房间名称: - {{ deviceData.monthFee || '--' }} + + {{ deviceData.room.roomName || '--' }} + @@ -120,20 +122,18 @@ - {{ deviceData.storeName || '--' }} + + {{ deviceData.storeName || '--' }} +
绑定设施: - - {{ facilityTag }} - + + {{ deviceData.equ.name }} +
@@ -142,7 +142,9 @@ - {{ deviceData.userName || '--' }} + + {{ deviceData.userName || '--' }} +
备注: @@ -180,21 +182,21 @@ 最后在线时间: {{ deviceData.lastOnlineTime || '--' }}
-
+
版本号: {{ deviceData.version || '--' }}
-
+ @@ -202,7 +204,7 @@ - +
实时信息
-
+
电压: {{ deviceData.voltage || '--' }} V
电流: - {{ deviceData.realTimePower || '--' }} A + {{ deviceData.electricity || '--' }} A
功率: - {{ deviceData.realTimePower || '--' }} W + {{ deviceData.realTimePower || '--' }} KW
-
+ @@ -253,16 +255,16 @@
- 打开 - 关闭 - 关闭 + {{ deviceData.status === '8' ? '解禁' : '禁用' }} - 重启 - 更新 - 删除 + 重启 + 更新 + 删除
@@ -270,12 +272,16 @@ - - + + + + - 订单列表内容 - 命令日志内容 + @@ -381,13 +387,12 @@ import { listEquipment } from "@/api/system/equipment" import QrCode from '@/components/QrCode/index.vue' import QRCode from 'qrcode' import Role from '@/views/system/rule/index.vue' - +import Log from '@/views/system/commandLog/index.vue' export default { name: "DeviceDetail", components: { - QrCode, - Role - }, + QrCode,Role,Log + }, dicts: ['ss_equipment_type', 'ss_equipment_status', 'ss_user_type'], data() { return { @@ -442,7 +447,7 @@ export default { }, // 标签页相关 - activeTab: 'packages', + activeTab: 'logs', searchForm: { userName: '', userPhone: '', @@ -713,7 +718,15 @@ export default {