feat(视图):fix

This commit is contained in:
junjie 2021-04-26 17:54:15 +08:00
parent 807d370346
commit 2cc91fc188
3 changed files with 6 additions and 6 deletions

View File

@ -2,9 +2,9 @@ export const DEFAULT_COLOR_CASE = {
value: 'default',
colors: ['#5470c6', '#91cc75', '#fac858', '#ee6666', '#73c0de', '#3ba272', '#fc8452', '#9a60b4', '#ea7ccc'],
alpha: 100,
tableHeaderBgColor: '#e8eaec',
tableItemBgColor: '#ffffff',
tableFontColor: '#606266',
tableHeaderBgColor: '#4e81bb',
tableItemBgColor: '#c6d9f0',
tableFontColor: '#000000',
tableStripe: true
}
export const DEFAULT_SIZE = {

View File

@ -192,7 +192,7 @@ export default {
return prev
}
}, 0)
means[columnIndex] = means[columnIndex].toFixed(2)
means[columnIndex] = (means[columnIndex] + '').includes('.') ? means[columnIndex].toFixed(2) : means[columnIndex]
} else {
means[columnIndex] = ''
}

View File

@ -565,8 +565,8 @@ export default {
this.$store.dispatch('chart/setTableId', null)
this.$store.dispatch('chart/setTableId', this.table.id)
// this.$router.push('/chart/chart-edit')
this.$emit('switchComponent', { name: 'ChartEdit' })
this.$store.dispatch('chart/setViewId', response.data.id)
this.$emit('switchComponent', { name: 'ChartEdit', param: { 'id': response.data.id }})
// this.$store.dispatch('chart/setViewId', response.data.id)
this.chartTree()
})
},