From 15a0d3854c79c7451f1d6a99d65aa0457f26a7d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Mon, 16 Mar 2026 16:37:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E8=81=94=E8=AE=BE=E5=A4=87=E7=94=B5?= =?UTF-8?q?=E8=A1=A8=E5=A2=9E=E5=8A=A0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/iot/hs/electricity/index.vue | 11 +++++++---- src/views/iot/tq/ApiRequestLog/ApiRequestLog.data.ts | 6 +++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/views/iot/hs/electricity/index.vue b/src/views/iot/hs/electricity/index.vue index 6fb1475..de07c72 100644 --- a/src/views/iot/hs/electricity/index.vue +++ b/src/views/iot/hs/electricity/index.vue @@ -38,6 +38,7 @@ 知道了 + @@ -52,6 +53,7 @@ import {useModal} from "@/components/Modal"; import DrawerModal from "./components/DrawerModal.vue"; import { defHttp } from '/@/utils/http/axios'; + import ApiLogModal from "@/views/iot/tq/electricity/apilog/ApiLogModal.vue"; const queryParam = reactive({}); const apiLogModal = ref(); @@ -153,10 +155,10 @@ placement: 'topLeft', }, }, - // { - // label: '日志', - // onClick: showApiLog.bind(null, record), - // }, + { + label: '日志', + onClick: showApiLog.bind(null, record), + }, ] } @@ -219,6 +221,7 @@ */ function showApiLog(record){ console.log(record); + record.cid = record.sn; apiLogModal.value.disableSubmit = true; apiLogModal.value.showApiLog(record); } diff --git a/src/views/iot/tq/ApiRequestLog/ApiRequestLog.data.ts b/src/views/iot/tq/ApiRequestLog/ApiRequestLog.data.ts index c9c7170..25254bf 100644 --- a/src/views/iot/tq/ApiRequestLog/ApiRequestLog.data.ts +++ b/src/views/iot/tq/ApiRequestLog/ApiRequestLog.data.ts @@ -8,7 +8,7 @@ export const columns: BasicColumn[] = [ { title: '设备号', align: "center", - dataIndex: 'address' + dataIndex: 'cid' }, { title: '类型', @@ -58,7 +58,7 @@ export const dbsbcolumns: BasicColumn[] = [ { title: '设备号', align: "center", - dataIndex: 'address' + dataIndex: 'cid' }, { title: '类型', @@ -88,7 +88,7 @@ export const columns2: BasicColumn[] = [ { title: '设备号', align: "center", - dataIndex: 'address' + dataIndex: 'cid' }, { title: '类型',