Merge pull request #6159 from dataease/pr@dev@fix_info_table_switch

fix: 编辑时切换到明细表会清空字段 #6157
This commit is contained in:
wisonic-s 2023-09-15 17:35:07 +08:00 committed by GitHub
commit 7565161c2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2040,9 +2040,6 @@ export default {
return return
} }
this.view.isPlugin = this.$refs['cu-chart-type'] && this.$refs['cu-chart-type'].currentIsPlugin(newVal.type, newVal.render) this.view.isPlugin = this.$refs['cu-chart-type'] && this.$refs['cu-chart-type'].currentIsPlugin(newVal.type, newVal.render)
this.setChartDefaultOptions()
this.calcData(true, 'chart', true, newVal.type !== oldVal.type, newVal.render !== oldVal.render)
} }
}, },
created() { created() {
@ -3310,10 +3307,12 @@ export default {
this.$store.commit('recordViewEdit', { viewId: this.param.id, hasEdit: status }) this.$store.commit('recordViewEdit', { viewId: this.param.id, hasEdit: status })
}, },
changeChartRender() { changeChartRender() {
// Do Nothing this.setChartDefaultOptions()
this.calcData(true, 'chart', true, false, true)
}, },
changeChartType() { changeChartType() {
// Do Nothing this.setChartDefaultOptions()
this.calcData(true, 'chart', true, true)
}, },
setChartDefaultOptions() { setChartDefaultOptions() {