联动表问题修复
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
</ai-dialog-btn>
|
||||
</ai-fold>
|
||||
</template>
|
||||
<template v-else-if="options.type=='plot'">
|
||||
<template v-else-if="isPlot">
|
||||
<ai-fold v-for="(chart,i) in options.charts" :key="i">
|
||||
<div slot="title" class="flex w100">
|
||||
<span class="layoutTitle fill" v-text="chart.title"/>
|
||||
@@ -36,7 +36,7 @@
|
||||
<config-item label="图表模板">
|
||||
<chart-picker v-model="chart.chart"/>
|
||||
</config-item>
|
||||
<datasource-picker v-model="chart.ds" :instance="instance"
|
||||
<datasource-picker v-model="chart.ds" :instance="instance" class="mar-b10"
|
||||
@input="chart={...chart,...chart.ds},$emit('change',options)"/>
|
||||
<config-item label="数据维度" v-if="chart.dataType !== 'staticData'">
|
||||
<code-editor v-model="chart.djson" lang="json" theme="github" width="100%" height="100"
|
||||
@@ -165,7 +165,8 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
markers: v => v.options.staticData?.markers || [],
|
||||
isTable: v => v.options.type == 'table'
|
||||
isTable: v => v.options.type == 'table',
|
||||
isPlot: v => v.options.type == 'plot'
|
||||
},
|
||||
components: {
|
||||
DatasourcePicker,
|
||||
@@ -182,6 +183,8 @@ export default {
|
||||
this.$emit("change", values)
|
||||
} else if (this.isTable) {
|
||||
this.json = JSON.stringify(this.options.tableConfig)
|
||||
} else if (this.isPlot) {
|
||||
this.options.charts = this.options.charts.map(e => ({...e, ds: e}))
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
Reference in New Issue
Block a user