物联设备电表增加日志

This commit is contained in:
曹磊 2026-03-16 16:37:09 +08:00
parent c880bd04f8
commit 15a0d3854c
2 changed files with 10 additions and 7 deletions

View File

@ -38,6 +38,7 @@
<a-button type="primary" style="margin-right: 35%" @click="handleCancel">知道了</a-button>
</template>
</a-modal>
<ApiLogModal ref="apiLogModal"></ApiLogModal>
</div>
</template>
@ -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<any>({});
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);
}

View File

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