提交 1846b282 authored 作者: junjie's avatar junjie

refactor: 交互调整

上级 b490d15f
......@@ -558,7 +558,7 @@ export default {
showClose: true
})
this.treeNode()
this.$store.dispatch('chart/setTable', new Date().getTime())
this.$emit('switchComponent', { name: '' })
})
} else {
// this.$message({
......
<template>
<el-row v-loading="loading" style="height: 100%;overflow-y: hidden;width: 100%;">
<el-row style="height: 40px;" class="padding-lr">
<span v-show="false">{{ refreshPage }}</span>
<span class="title-text" style="line-height: 40px;">{{ view.name }}</span>
<el-popover
placement="right-start"
......@@ -1106,10 +1105,6 @@ export default {
}
},
computed: {
refreshPage: function() {
this.getChart(this.param.id)
return this.$store.getters.chartTable
},
chartType() {
return this.chart.type
}
......
<template>
<el-row style="height: 100%;overflow-y: hidden;width: 100%;">
<span v-show="false">{{ refreshPage }}</span>
<el-row style="height: 26px;">
<span class="title-text" style="line-height: 26px;">
{{ table.name }}
......@@ -108,10 +107,6 @@ export default {
computed: {
hideCustomDs: function() {
return this.$store.getters.hideCustomDs
},
refreshPage: function() {
this.initTable(this.param.id)
return this.$store.getters.table
}
},
watch: {
......
......@@ -436,7 +436,7 @@ export default {
_this.expandedArray.push(table.sceneId)
_this.$refs.datasetTreeRef.setCurrentKey(table.id)
_this.treeNode()
this.$store.dispatch('dataset/setTable', new Date().getTime())
this.$emit('switchComponent', { name: '' })
})
} else {
return false
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论