提交 2cc91fc1 authored 作者: junjie's avatar junjie

feat(视图):fix

上级 807d3703
...@@ -2,9 +2,9 @@ export const DEFAULT_COLOR_CASE = { ...@@ -2,9 +2,9 @@ export const DEFAULT_COLOR_CASE = {
value: 'default', value: 'default',
colors: ['#5470c6', '#91cc75', '#fac858', '#ee6666', '#73c0de', '#3ba272', '#fc8452', '#9a60b4', '#ea7ccc'], colors: ['#5470c6', '#91cc75', '#fac858', '#ee6666', '#73c0de', '#3ba272', '#fc8452', '#9a60b4', '#ea7ccc'],
alpha: 100, alpha: 100,
tableHeaderBgColor: '#e8eaec', tableHeaderBgColor: '#4e81bb',
tableItemBgColor: '#ffffff', tableItemBgColor: '#c6d9f0',
tableFontColor: '#606266', tableFontColor: '#000000',
tableStripe: true tableStripe: true
} }
export const DEFAULT_SIZE = { export const DEFAULT_SIZE = {
......
...@@ -192,7 +192,7 @@ export default { ...@@ -192,7 +192,7 @@ export default {
return prev return prev
} }
}, 0) }, 0)
means[columnIndex] = means[columnIndex].toFixed(2) means[columnIndex] = (means[columnIndex] + '').includes('.') ? means[columnIndex].toFixed(2) : means[columnIndex]
} else { } else {
means[columnIndex] = '' means[columnIndex] = ''
} }
......
...@@ -565,8 +565,8 @@ export default { ...@@ -565,8 +565,8 @@ export default {
this.$store.dispatch('chart/setTableId', null) this.$store.dispatch('chart/setTableId', null)
this.$store.dispatch('chart/setTableId', this.table.id) this.$store.dispatch('chart/setTableId', this.table.id)
// this.$router.push('/chart/chart-edit') // this.$router.push('/chart/chart-edit')
this.$emit('switchComponent', { name: 'ChartEdit' }) this.$emit('switchComponent', { name: 'ChartEdit', param: { 'id': response.data.id }})
this.$store.dispatch('chart/setViewId', response.data.id) // this.$store.dispatch('chart/setViewId', response.data.id)
this.chartTree() this.chartTree()
}) })
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论