NEZ-663 fix: 排查部分报错问题

This commit is contained in:
chenjinsong
2021-05-25 19:47:22 +08:00
parent 9fbe3f6ca2
commit dbf0e74e7a
6 changed files with 36 additions and 765 deletions

View File

@@ -1717,12 +1717,17 @@ export default {
resize () {
this.init()
this.$nextTick(() => {
this.$parent.$parent.dateChange()
if (this.$parent && this.$parent.$parent) {
this.$parent.$parent.dateChange()
}
})
},
init () {
this.stepWidth = this.chartResizeTool.stepWidth(document.getElementById('listContainer').offsetWidth - 14)
this.tempDomInit()
const dom = document.getElementById('listContainer')
if (dom) {
this.stepWidth = this.chartResizeTool.stepWidth(dom.offsetWidth - 14)
this.tempDomInit()
}
},
chartBySync (item) {
this.$post('visual/panel/chart/syncTmpl', { ids: [item.id] }).then(res => {