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