fix: 优化实体列表性能
This commit is contained in:
@@ -2294,9 +2294,11 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
|
setTimeout(() => {
|
||||||
this.initChart()
|
this.initChart()
|
||||||
this.throttle = this.$_.throttle(this.echartsResize, 500)
|
this.throttle = this.$_.throttle(this.echartsResize, 500)
|
||||||
window.addEventListener('resize', this.throttle)
|
window.addEventListener('resize', this.throttle)
|
||||||
|
}, 300)
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
chart: {
|
chart: {
|
||||||
@@ -2304,7 +2306,7 @@ export default {
|
|||||||
deep: true,
|
deep: true,
|
||||||
handler (n, o) {
|
handler (n, o) {
|
||||||
if (o) {
|
if (o) {
|
||||||
this.initChart()
|
setTimeout(() => { this.initChart() })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -2315,7 +2317,7 @@ export default {
|
|||||||
if (n && o) {
|
if (n && o) {
|
||||||
this.standaloneTimeRange.use = false
|
this.standaloneTimeRange.use = false
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.initChart()
|
setTimeout(() => { this.initChart() })
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2326,7 +2328,7 @@ export default {
|
|||||||
handler (n, o) {
|
handler (n, o) {
|
||||||
if (n) {
|
if (n) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.initChart()
|
setTimeout(() => { this.initChart() })
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,7 +93,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-collapse-transition>
|
<el-collapse-transition>
|
||||||
<div class="cn-entity__detail-overview" v-show="!isCollapse">
|
<div class="cn-entity__detail-overview" v-if="!isCollapse">
|
||||||
<el-divider></el-divider>
|
<el-divider></el-divider>
|
||||||
<detail-overview
|
<detail-overview
|
||||||
:entity="entityData"
|
:entity="entityData"
|
||||||
|
|||||||
@@ -210,7 +210,7 @@ export default {
|
|||||||
if (this.listMode === 'list') {
|
if (this.listMode === 'list') {
|
||||||
this.entityData = _.cloneDeep(this.entity)
|
this.entityData = _.cloneDeep(this.entity)
|
||||||
this.chartOption = _.cloneDeep(entityListLineOption)
|
this.chartOption = _.cloneDeep(entityListLineOption)
|
||||||
setTimeout(() => { this.queryEntityDetail() })
|
// setTimeout(() => { this.queryEntityDetail() })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user