fix: echarts getters in heightmap, tempchart & history statistics (#859)
This commit is contained in:
1 parent
e0fd25cd90
commit
4be40b6457
5 files changed
+5
-7
No files matched your search
@@ -80,7 +80,7 @@ export default class HistoryAllPrintStatus extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
get chart(): ECharts | null {
|
||||
return this.$refs.historyAllPrintStatus ?? null
|
||||
return this.$refs.historyAllPrintStatus?.chart ?? null
|
||||
}
|
||||
|
||||
mounted() {
|
||||
|
||||
@@ -110,7 +110,7 @@ export default class HistoryPrinttimeAvg extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
get chart(): ECharts | null {
|
||||
return this.$refs.historyFilamentUsage ?? null
|
||||
return this.$refs.historyFilamentUsage?.chart ?? null
|
||||
}
|
||||
|
||||
mounted() {
|
||||
|
||||
@@ -95,7 +95,7 @@ export default class HistoryPrinttimeAvg extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
get chart(): ECharts | null {
|
||||
return this.$refs.historyPrinttimeAvg ?? null
|
||||
return this.$refs.historyPrinttimeAvg?.chart ?? null
|
||||
}
|
||||
|
||||
mounted() {
|
||||
|
||||
@@ -27,8 +27,6 @@ interface echartsTooltipObj {
|
||||
components: {},
|
||||
})
|
||||
export default class TempChart extends Mixins(BaseMixin) {
|
||||
convertName = convertName
|
||||
|
||||
declare $refs: {
|
||||
tempchart: any
|
||||
}
|
||||
@@ -196,7 +194,7 @@ export default class TempChart extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
get chart(): ECharts | null {
|
||||
return this.$refs.tempchart ?? null
|
||||
return this.$refs.tempchart?.chart ?? null
|
||||
}
|
||||
|
||||
get maxHistory() {
|
||||
|
||||
@@ -649,7 +649,7 @@ export default class PageHeightmap extends Mixins(BaseMixin, ControlMixin) {
|
||||
}
|
||||
|
||||
get chart(): ECharts | null {
|
||||
return this.$refs.heightmap ?? null
|
||||
return this.$refs.heightmap?.chart ?? null
|
||||
}
|
||||
|
||||
get profiles() {
|
||||
|
||||
Reference in new issue
Block a user