PT PC端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
834 B

<template>
<SearchHistoryLog @search="onSearch" />
<TableHistoryLog />
</template>
<script setup>
import { computed } from 'vue';
import { useStore } from 'vuex';
import { getSendHistory } from 'apis';
import SearchHistoryLog from 'components/history/search-history-log.vue';
import TableHistoryLog from 'components/history/history-log-table.vue';
const store = useStore();
const currentDeviceId = computed(() => store.state.device.currentDeviceId); // 正在操作的设备的id
async function getData() {
try {
const params = {
deviceId: currentDeviceId.value,
status: 'DATA',
type: 'EVENT',
};
const resData = await getSendHistory(params);
console.log(resData);
} catch (error) {
console.error(error);
}
}
getData();
function onSearch(event) {
console.log(event);
}
</script>