From 43a3f8fdd0567b9566eed81acfc047b04ba9a180 Mon Sep 17 00:00:00 2001 From: betaqi <3188864257@qq.com> Date: Wed, 17 Sep 2025 15:30:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=B6=E9=97=B4=E6=B8=85=E7=A9=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../topology/components/detailDrawer.vue | 15 +++++++++------ .../transfer/components/deviceDrawer.vue | 1 + 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/views/stationData/topology/components/detailDrawer.vue b/src/views/stationData/topology/components/detailDrawer.vue index bcc3f71..027d6c6 100644 --- a/src/views/stationData/topology/components/detailDrawer.vue +++ b/src/views/stationData/topology/components/detailDrawer.vue @@ -128,6 +128,7 @@ async function open(device: IDevice & { } const selectValue = ref() + function onchangeSelect(value: string) { PointCheckboxRef.value?.clearCheck() } @@ -216,25 +217,26 @@ async function loadChardData() { clearData() const limit = chartLimit.value const offset = chartOffset.value - const options = { + const options: any = { columns: columParams.value, isLocal: !curDevice.value?.isonLine, host: curDevice.value?.isonLine ? (curDevice.value as IOnlineDevice).clientIp : '', - name: selectValue.value as string, + name: currentGroup.value?.customNode ? selectValue.value : currentGroup.value?.name as string, startTime: time.value[0], endTime: time.value[1], } + if (env.VITE_APP_ENV !== 'local' || !curDevice.value?.isonLine) { + options.site_id = curDevice.value!.siteName || '' + options.device_id = curDevice.value?.sn || '' + } + const params: IGetDeviceDataParams = { ...options, limit, offset } - if (env.VITE_APP_ENV !== 'local' || !curDevice.value?.isonLine) { - params.site_id = curDevice.value!.siteName || '' - params.device_id = curDevice.value?.sn || '' - } loadingChart.value = true isShowChart.value = false @@ -325,6 +327,7 @@ function handleBeforeClose(done: () => void) { } function clearData() { + time.value = undefined chartLimit.value = 1000 chartOffset.value = 0 chartAllTotal.value = 0 diff --git a/src/views/stationData/transfer/components/deviceDrawer.vue b/src/views/stationData/transfer/components/deviceDrawer.vue index 2e8810f..d6cee62 100644 --- a/src/views/stationData/transfer/components/deviceDrawer.vue +++ b/src/views/stationData/transfer/components/deviceDrawer.vue @@ -294,6 +294,7 @@ function handleBeforeClose(done: () => void) { } function clearData() { + time.value = undefined chartLimit.value = 1000 chartOffset.value = 0 chartAllTotal.value = 0