Browse Source

fix: 时间清空问题

main
betaqi 1 month ago
parent
commit
c4cd580cf7
  1. 2
      src/views/stationData/topology/components/detailDrawer.vue
  2. 2
      src/views/stationData/transfer/components/deviceDrawer.vue

2
src/views/stationData/topology/components/detailDrawer.vue

@ -320,6 +320,7 @@ function setChartData(pointData: any[]) { @@ -320,6 +320,7 @@ function setChartData(pointData: any[]) {
function handleBeforeClose(done: () => void) {
time.value = undefined
isShowDrawer.value = false
clearData()
fullscreenLoading.value = null
@ -327,7 +328,6 @@ function handleBeforeClose(done: () => void) { @@ -327,7 +328,6 @@ function handleBeforeClose(done: () => void) {
}
function clearData() {
time.value = undefined
chartLimit.value = 1000
chartOffset.value = 0
chartAllTotal.value = 0

2
src/views/stationData/transfer/components/deviceDrawer.vue

@ -287,6 +287,7 @@ function setChartData(pointData: any[]) { @@ -287,6 +287,7 @@ function setChartData(pointData: any[]) {
}
function handleBeforeClose(done: () => void) {
time.value = undefined
isShowDrawer.value = false
clearData()
fullscreenLoading.value = null
@ -294,7 +295,6 @@ function handleBeforeClose(done: () => void) { @@ -294,7 +295,6 @@ function handleBeforeClose(done: () => void) {
}
function clearData() {
time.value = undefined
chartLimit.value = 1000
chartOffset.value = 0
chartAllTotal.value = 0

Loading…
Cancel
Save