fix:topology 缓存处理
This commit is contained in:
@@ -337,7 +337,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
// import { Topology, registerNode } from '@topology/core'
|
// import { Topology, registerNode } from '@topology/core'
|
||||||
import { Topology, registerNode } from '@/components/common/@topology/core'
|
import { Topology, registerNode } from '@/components/common/@topology/core/index.js'
|
||||||
import imgDefault from '@/components/common/project/L5/services/img'
|
import imgDefault from '@/components/common/project/L5/services/img'
|
||||||
import {
|
import {
|
||||||
Tools,
|
Tools,
|
||||||
|
|||||||
@@ -136,6 +136,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { data as le5leData, observers as le5leObservers } from 'le5le-store/store/data.js'
|
||||||
import chartRightBox from '@/components/common/rightBox/chart/chartRightBox'
|
import chartRightBox from '@/components/common/rightBox/chart/chartRightBox'
|
||||||
import bus from '../../../libs/bus'
|
import bus from '../../../libs/bus'
|
||||||
import pickTime from '../../common/pickTime'
|
import pickTime from '../../common/pickTime'
|
||||||
@@ -528,6 +529,7 @@ export default {
|
|||||||
if (!this.hasButton('panel_view')) {
|
if (!this.hasButton('panel_view')) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
this.dataList = []
|
||||||
this.chartListLoading = true
|
this.chartListLoading = true
|
||||||
if (params.start_time === '' || params.end_time === '') {
|
if (params.start_time === '' || params.end_time === '') {
|
||||||
const now = bus.getTimezontDateRange()
|
const now = bus.getTimezontDateRange()
|
||||||
@@ -536,6 +538,18 @@ export default {
|
|||||||
params.start_time = startTimeTmp
|
params.start_time = startTimeTmp
|
||||||
params.end_time = endTimeTmp
|
params.end_time = endTimeTmp
|
||||||
}
|
}
|
||||||
|
if (le5leData) {
|
||||||
|
Object.keys(le5leData).forEach(key => {
|
||||||
|
le5leData[key] = null
|
||||||
|
delete le5leData[key]
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if (le5leObservers) {
|
||||||
|
Object.keys(le5leObservers).forEach(key => {
|
||||||
|
le5leObservers[key] = null
|
||||||
|
delete le5leObservers[key]
|
||||||
|
})
|
||||||
|
}
|
||||||
this.$get('visual/panel/chart?panelId=' + params.panelId + '&groupId=0' + '&pageSize=-1').then(response => {
|
this.$get('visual/panel/chart?panelId=' + params.panelId + '&groupId=0' + '&pageSize=-1').then(response => {
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.chartListLoading = false
|
this.chartListLoading = false
|
||||||
|
|||||||
Reference in New Issue
Block a user