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,7 +13656,6 @@ class HandleDataSource { | ||
| 13656 | if (!isActive) { | 13656 | if (!isActive) { |
| 13657 | instance.isActive = true | 13657 | instance.isActive = true |
| 13658 | const chartOption = this.getChartComponentOption(chartInstanceType, { chartType: chartInstanceType, attr, dataList: realDataList, action, nodeId: node.id , additional}) | 13658 | const chartOption = this.getChartComponentOption(chartInstanceType, { chartType: chartInstanceType, attr, dataList: realDataList, action, nodeId: node.id , additional}) |
| 13659 | - console.log(chartOption) | ||
| 13660 | instance.setOption(chartOption) | 13659 | instance.setOption(chartOption) |
| 13661 | 13660 | ||
| 13662 | } else { | 13661 | } else { |
| @@ -13885,6 +13884,9 @@ class HandleDataSource { | @@ -13885,6 +13884,9 @@ class HandleDataSource { | ||
| 13885 | 13884 | ||
| 13886 | const [timespan, value] = dataList[0] || [] | 13885 | const [timespan, value] = dataList[0] || [] |
| 13887 | return { | 13886 | return { |
| 13887 | + title: { | ||
| 13888 | + text: slaveDeviceName || deviceName | ||
| 13889 | + }, | ||
| 13888 | series: [ | 13890 | series: [ |
| 13889 | { | 13891 | { |
| 13890 | type: 'gauge', | 13892 | type: 'gauge', |