diff --git a/web/src/App.vue b/web/src/App.vue index 66225b6fa089a1210b25747eeb2a209da3873f4a..5cb433a59705547f2df2d396d4ff6ace794d4182 100755 --- a/web/src/App.vue +++ b/web/src/App.vue @@ -1,61 +1,62 @@ @@ -68,7 +69,6 @@ import { useLayoutStore } from '@/stores/charts'; import { pickerOptions } from '@/utils/datePicker'; const node_list = reactive([]) -const time_list = reactive(["1699595594", "1699595668", "1699595751"]) const interval_list = reactive(["关闭", "5s", "10s", "15s", "1m", "5m"]) let dateRange = ref([new Date() as any - 2 * 60 * 60 * 1000, new Date() as any - 0]) @@ -95,14 +95,14 @@ onMounted(async () => { async function updateNodeList() { //ttcode // const data = { - // "code": 0, - // "error": null, - // "data": - // {"agentlist": {"070cb0b4-c415-4b6a-843b-efc51cff6b76": "10.44.55.66:9992"}} - // } + // "code": 0, + // "error": null, + // "data": + // {"agentlist": {"070cb0b4-c415-4b6a-843b-efc51cff6b76": "10.44.55.66:9992"}} + // } const data = await topo.host_list() - // console.log(data); +// console.log(data); for (let key in data.data.agentlist) { node_list.push({ id: key, @@ -124,57 +124,39 @@ function switch_single_topo(node: any) { }) } -// 选择展示时间范围 -const changeDate = (value: number[]) => { - if (value) { - startTime.value = (new Date(value[0]) as any) / 1000; - endTime.value = (new Date(value[1]) as any) / 1000; - } else { - startTime.value = (new Date() as any) / 1000 - 60 * 60 * 2; - endTime.value = (new Date() as any) / 1000; - } -} -