提交 3d5ffb8c authored 作者: wangjiahao's avatar wangjiahao

feat:仪表板支持视图上卷

上级 7c5205dd
...@@ -19,6 +19,9 @@ ...@@ -19,6 +19,9 @@
<chart-component v-if="requestStatus==='success'&&chart.type && !chart.type.includes('table') && !chart.type.includes('text')" :ref="element.propValue.id" class="chart-class" :chart="chart" @onChartClick="chartClick" /> <chart-component v-if="requestStatus==='success'&&chart.type && !chart.type.includes('table') && !chart.type.includes('text')" :ref="element.propValue.id" class="chart-class" :chart="chart" @onChartClick="chartClick" />
<table-normal v-if="requestStatus==='success'&&chart.type && chart.type.includes('table')" :ref="element.propValue.id" :chart="chart" class="table-class" /> <table-normal v-if="requestStatus==='success'&&chart.type && chart.type.includes('table')" :ref="element.propValue.id" :chart="chart" class="table-class" />
<label-normal v-if="requestStatus==='success'&&chart.type && chart.type.includes('text')" :ref="element.propValue.id" :chart="chart" class="table-class" /> <label-normal v-if="requestStatus==='success'&&chart.type && chart.type.includes('text')" :ref="element.propValue.id" :chart="chart" class="table-class" />
<div style="position: absolute;left: 20px;bottom:14px;">
<drill-path :drill-filters="drillFilters" @onDrillJump="drillJump" />
</div>
</div> </div>
</template> </template>
...@@ -37,10 +40,11 @@ import { BASE_CHART_STRING } from '@/views/chart/chart/chart' ...@@ -37,10 +40,11 @@ import { BASE_CHART_STRING } from '@/views/chart/chart/chart'
import eventBus from '@/components/canvas/utils/eventBus' import eventBus from '@/components/canvas/utils/eventBus'
import { deepCopy } from '@/components/canvas/utils/utils' import { deepCopy } from '@/components/canvas/utils/utils'
import { getToken, getLinkToken } from '@/utils/auth' import { getToken, getLinkToken } from '@/utils/auth'
import DrillPath from '@/views/chart/view/DrillPath'
export default { export default {
name: 'UserView', name: 'UserView',
components: { ChartComponent, TableNormal, LabelNormal }, components: { ChartComponent, TableNormal, LabelNormal, DrillPath },
props: { props: {
element: { element: {
type: Object, type: Object,
...@@ -79,7 +83,8 @@ export default { ...@@ -79,7 +83,8 @@ export default {
chart: BASE_CHART_STRING, chart: BASE_CHART_STRING,
requestStatus: 'waiting', requestStatus: 'waiting',
message: null, message: null,
drillClickDimensionList: [] drillClickDimensionList: [],
drillFilters: []
} }
}, },
computed: { computed: {
...@@ -198,6 +203,7 @@ export default { ...@@ -198,6 +203,7 @@ export default {
if (!response.data.drill) { if (!response.data.drill) {
this.drillClickDimensionList.splice(this.drillClickDimensionList.length - 1, 1) this.drillClickDimensionList.splice(this.drillClickDimensionList.length - 1, 1)
} }
this.drillFilters = JSON.parse(JSON.stringify(response.data.drillFilters))
this.requestStatus = 'merging' this.requestStatus = 'merging'
this.mergeStyle() this.mergeStyle()
this.requestStatus = 'success' this.requestStatus = 'success'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论