NEZ-2178 feat:新增 rank 排行榜图表类型

This commit is contained in:
zyh
2022-09-09 09:51:58 +08:00
parent b119b9e762
commit 919b122b74
11 changed files with 373 additions and 7 deletions

View File

@@ -888,6 +888,10 @@ export default {
id: 'bubble',
name: this.$t('dashboard.panel.chartForm.typeVal.bubble.label')
},
{
id: 'rank',
name: this.$t('dashboard.panel.chartForm.typeVal.rank.label')
},
{
id: 'gauge',
name: this.$t('dashboard.panel.chartForm.typeVal.gauge.label')
@@ -954,7 +958,8 @@ export default {
case 'hexagon':
case 'gauge':
case 'bubble':
if (this.oldType === 'stat' || this.oldType === 'gauge' || this.oldType === 'hexagon' || this.oldType === 'bubble') {
case 'rank':
if (this.oldType === 'stat' || this.oldType === 'gauge' || this.oldType === 'hexagon' || this.oldType === 'bubble' || this.oldType === 'rank') {
break
}
this.chartConfig.param = {