Commit b35f6248a1754fda5175d42b47e4942fae70026c
1 parent
2beb161a
perf: dashboard component add title
Showing
1 changed file
with
3 additions
and
1 deletions
... | ... | @@ -13656,7 +13656,6 @@ class HandleDataSource { |
13656 | 13656 | if (!isActive) { |
13657 | 13657 | instance.isActive = true |
13658 | 13658 | const chartOption = this.getChartComponentOption(chartInstanceType, { chartType: chartInstanceType, attr, dataList: realDataList, action, nodeId: node.id , additional}) |
13659 | - console.log(chartOption) | |
13660 | 13659 | instance.setOption(chartOption) |
13661 | 13660 | |
13662 | 13661 | } else { |
... | ... | @@ -13885,6 +13884,9 @@ class HandleDataSource { |
13885 | 13884 | |
13886 | 13885 | const [timespan, value] = dataList[0] || [] |
13887 | 13886 | return { |
13887 | + title: { | |
13888 | + text: slaveDeviceName || deviceName | |
13889 | + }, | |
13888 | 13890 | series: [ |
13889 | 13891 | { |
13890 | 13892 | type: 'gauge', | ... | ... |