forked from github/dataease
fix: 仪表板浏览器console报错
This commit is contained in:
parent
5a78aa0599
commit
b72955204d
@ -652,7 +652,7 @@
|
|||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane :label="$t('chart.chart_style')" class="padding-tab" style="width: 300px">
|
<el-tab-pane :label="$t('chart.chart_style')" class="padding-tab" style="width: 300px">
|
||||||
<chart-style
|
<chart-style
|
||||||
v-if="chartProperties"
|
v-if="chartProperties || view.isPlugin"
|
||||||
:param="param"
|
:param="param"
|
||||||
:view="view"
|
:view="view"
|
||||||
:chart="chart"
|
:chart="chart"
|
||||||
@ -1175,12 +1175,12 @@ export default {
|
|||||||
if (_this.chart && _this.chart.render) {
|
if (_this.chart && _this.chart.render) {
|
||||||
const viewConfig = this.allViewRender.filter(item => item.render === _this.chart.render && item.value === _this.chart.type)
|
const viewConfig = this.allViewRender.filter(item => item.render === _this.chart.render && item.value === _this.chart.type)
|
||||||
if (viewConfig && viewConfig.length) {
|
if (viewConfig && viewConfig.length) {
|
||||||
return viewConfig[0].properties
|
return viewConfig[0].properties || []
|
||||||
} else {
|
} else {
|
||||||
return null
|
return []
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return null
|
return []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
chartType() {
|
chartType() {
|
||||||
|
@ -354,7 +354,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
showProperties(property) {
|
showProperties(property) {
|
||||||
return this.properties.includes(property)
|
return this.properties && this.properties.length && this.properties.includes(property)
|
||||||
},
|
},
|
||||||
showPropertiesCollapse(propertiesInfo) {
|
showPropertiesCollapse(propertiesInfo) {
|
||||||
let includeCount = 0
|
let includeCount = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user