forked from github/dataease
Merge branch 'main' of github.com:dataease/dataease into main
This commit is contained in:
commit
86f5a0fe1b
@ -45,9 +45,9 @@ export default {
|
|||||||
this.$store.dispatch('panel/setComponentDataTemp', JSON.stringify(this.componentData))
|
this.$store.dispatch('panel/setComponentDataTemp', JSON.stringify(this.componentData))
|
||||||
this.$store.dispatch('panel/setCanvasStyleDataTemp', JSON.stringify(this.canvasStyleData))
|
this.$store.dispatch('panel/setCanvasStyleDataTemp', JSON.stringify(this.canvasStyleData))
|
||||||
if (this.curComponent.component === 'user-view') {
|
if (this.curComponent.component === 'user-view') {
|
||||||
this.$store.dispatch('chart/setViewId', null)
|
// this.$store.dispatch('chart/setViewId', null)
|
||||||
this.$store.dispatch('chart/setViewId', this.curComponent.propValue.viewId)
|
// this.$store.dispatch('chart/setViewId', this.curComponent.propValue.viewId)
|
||||||
bus.$emit('PanelSwitchComponent', { name: 'ChartEdit' })
|
bus.$emit('PanelSwitchComponent', { name: 'ChartEdit', param: { 'id': this.curComponent.propValue.viewId }})
|
||||||
}
|
}
|
||||||
if (this.curComponent.type === 'custom') {
|
if (this.curComponent.type === 'custom') {
|
||||||
bus.$emit('component-dialog-edit')
|
bus.$emit('component-dialog-edit')
|
||||||
|
@ -181,7 +181,7 @@ export default {
|
|||||||
if (columnIndex === 0) {
|
if (columnIndex === 0) {
|
||||||
means.push('合计')
|
means.push('合计')
|
||||||
} else {
|
} else {
|
||||||
const values = data.map(item => Number(item[column.property]))
|
const values = data.map(item => Number((item[column.property] + '').trim() === '' ? 'a' : item[column.property]))
|
||||||
// 合计
|
// 合计
|
||||||
if (!values.every(value => isNaN(value))) {
|
if (!values.every(value => isNaN(value))) {
|
||||||
means[columnIndex] = values.reduce((prev, curr) => {
|
means[columnIndex] = values.reduce((prev, curr) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user