fix:修改 guage未gauge

This commit is contained in:
zhangyu
2022-03-07 18:06:41 +08:00
parent 01128f11e4
commit 306fcce990
9 changed files with 24 additions and 24 deletions

View File

@@ -124,7 +124,7 @@ export default {
case 'bar' :
case 'table' :
case 'stat' :
case 'guage' :
case 'gauge' :
case 'pie' :
case 'treemap' :
case 'log' :

View File

@@ -31,7 +31,7 @@ import { initColor } from '@/components/chart/chart/tools'
import { randomcolor } from '@/components/common/js/radomcolor/randomcolor'
export default {
name: 'chart-guage',
name: 'chart-gauge',
mixins: [chartMixin, chartFormat],
data () {
return {

View File

@@ -43,7 +43,7 @@ export function getOption (type) {
chartOption = lodash.cloneDeep(chartTreemapOption)
break
}
case chartType.guage: {
case chartType.gauge: {
chartOption = lodash.cloneDeep(chartGaugeOption)
break
}
@@ -109,7 +109,7 @@ export function isTable (type) {
return type === chartType.table
}
export function isGauge (type) {
return type === chartType.guage
return type === chartType.gauge
}
export function isClock (type) {
return type === chartType.clock

View File

@@ -395,7 +395,7 @@ export const chartType = {
bar: 'bar',
table: 'table',
stat: 'stat',
guage: 'guage',
gauge: 'gauge',
pie: 'pie',
treemap: 'treemap',
log: 'log',

View File

@@ -737,8 +737,8 @@ export default {
name: this.$t('dashboard.panel.chartForm.typeVal.bar.label')
},
{
id: 'guage',
name: this.$t('dashboard.panel.chartForm.typeVal.guage.label')
id: 'gauge',
name: this.$t('dashboard.panel.chartForm.typeVal.gauge.label')
},
{
id: 'treemap',
@@ -809,8 +809,8 @@ export default {
break
case 'stat':
case 'hexagon':
case 'guage':
if (this.oldType === 'stat' || this.oldType === 'guage' || this.oldType === 'hexagon') {
case 'gauge':
if (this.oldType === 'stat' || this.oldType === 'gauge' || this.oldType === 'hexagon') {
break
}
this.chartConfig.param = {

View File

@@ -218,7 +218,7 @@ export default {
if (!params.groupId) {
params.groupId = 0
}
if (params.type !== 'guage') {
if (params.type !== 'gauge') {
delete params.param.min
delete params.param.max
}

View File

@@ -53,7 +53,7 @@ export default {
case 'hexagon':
case 'bar':
case 'treemap':
case 'guage':
case 'gauge':
case 'pie':
return false
default: return false
@@ -70,7 +70,7 @@ export default {
case 'hexagon':
case 'bar':
case 'treemap':
case 'guage':
case 'gauge':
case 'pie':
return true
default: return false
@@ -88,7 +88,7 @@ export default {
case 'table':
case 'stat':
case 'hexagon':
case 'guage':
case 'gauge':
return false
default: return false
}
@@ -112,7 +112,7 @@ export default {
case 'stat':
case 'hexagon':
case 'bar':
case 'guage':
case 'gauge':
case 'treemap':
case 'pie':
return true
@@ -127,7 +127,7 @@ export default {
case 'pie':
case 'stat':
case 'hexagon':
case 'guage':
case 'gauge':
return false
case 'line':
case 'area':
@@ -144,7 +144,7 @@ export default {
case 'pie':
case 'stat':
case 'hexagon':
case 'guage':
case 'gauge':
return true
case 'line':
case 'area':

View File

@@ -90,8 +90,8 @@ export default {
name: this.$t('dashboard.panel.chartForm.typeVal.bar.label')
},
{
id: 'guage',
name: this.$t('dashboard.panel.chartForm.typeVal.guage.label')
id: 'gauge',
name: this.$t('dashboard.panel.chartForm.typeVal.gauge.label')
},
{
id: 'treemap',
@@ -133,8 +133,8 @@ export default {
name: this.$t('dashboard.panel.chartForm.typeVal.bar.label')
},
{
id: 'guage',
name: this.$t('dashboard.panel.chartForm.typeVal.guage.label')
id: 'gauge',
name: this.$t('dashboard.panel.chartForm.typeVal.gauge.label')
},
{
id: 'treemap',

View File

@@ -635,8 +635,8 @@ export default {
name: this.$t('dashboard.panel.chartForm.typeVal.pie.label')
},
{
id: 'guage',
name: this.$t('dashboard.panel.chartForm.typeVal.guage.label')
id: 'gauge',
name: this.$t('dashboard.panel.chartForm.typeVal.gauge.label')
},
{
id: 'treemap',
@@ -698,8 +698,8 @@ export default {
switch (type) {
case 'stat':
case 'hexagon':
case 'guage':
if (this.oldType === 'stat' || this.oldType === 'guage' || this.oldType === 'hexagon') {
case 'gauge':
if (this.oldType === 'stat' || this.oldType === 'gauge' || this.oldType === 'hexagon') {
break
}
this.chartConfig.param = {