forked from github/dataease
fix(仪表板): 表格颜色样设置跟随仪表板主题变化后,设置视图属性后又恢复的问题
This commit is contained in:
parent
3dae4b9868
commit
dc3ac270ef
@ -476,7 +476,9 @@ export default {
|
||||
this.chart.customStyle = this.sourceCustomStyleStr
|
||||
updateParams['customStyle'] = this.sourceCustomStyleStr
|
||||
}
|
||||
viewPropsSave(this.panelInfo.id, updateParams)
|
||||
viewPropsSave(this.panelInfo.id, updateParams).then(rsp =>{
|
||||
this.active && bus.$emit('current-component-change')
|
||||
})
|
||||
this.$store.commit('recordViewEdit', { viewId: this.chart.id, hasEdit: true })
|
||||
this.mergeScale()
|
||||
},
|
||||
@ -491,7 +493,9 @@ export default {
|
||||
this.sourceCustomStyleStr = JSON.stringify(sourceCustomStyle)
|
||||
this.chart.customStyle = this.sourceCustomStyleStr
|
||||
updateParams['customStyle'] = this.sourceCustomStyleStr
|
||||
viewPropsSave(this.panelInfo.id, updateParams)
|
||||
viewPropsSave(this.panelInfo.id, updateParams).then(rsp =>{
|
||||
this.active && bus.$emit('current-component-change')
|
||||
})
|
||||
this.$store.commit('recordViewEdit', { viewId: this.chart.id, hasEdit: true })
|
||||
this.mergeScale()
|
||||
},
|
||||
|
@ -1459,6 +1459,9 @@ export default {
|
||||
},
|
||||
|
||||
methods: {
|
||||
resetChartData(){
|
||||
this.getChart(this.param.id)
|
||||
},
|
||||
setDynamicAreaCode(code) {
|
||||
this.currentAreaCode = code
|
||||
},
|
||||
|
@ -697,6 +697,7 @@ export default {
|
||||
bus.$off('previewFullScreenClose', this.previewFullScreenClose)
|
||||
bus.$off('change_panel_right_draw', this.changeRightDrawOpen)
|
||||
bus.$off('delete-condition', this.deleteCustomComponent)
|
||||
bus.$off('current-component-change', this.asideRefresh)
|
||||
const elx = this.$refs.rightPanel
|
||||
elx && elx.remove()
|
||||
},
|
||||
@ -718,6 +719,12 @@ export default {
|
||||
bus.$on('previewFullScreenClose', this.previewFullScreenClose)
|
||||
bus.$on('change_panel_right_draw', this.changeRightDrawOpen)
|
||||
bus.$on('delete-condition', this.deleteCustomComponent)
|
||||
bus.$on('current-component-change', this.asideRefresh)
|
||||
},
|
||||
asideRefresh(){
|
||||
if(this.$refs['chartEditRef']){
|
||||
this.$refs['chartEditRef'].resetChartData()
|
||||
}
|
||||
},
|
||||
deleteCustomComponent(param) {
|
||||
param && param.componentId && this.componentData.forEach(com => {
|
||||
|
Loading…
Reference in New Issue
Block a user