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: '类型',