Merge pull request #300 from dataease/pr@dev@fix_视图中数据集字段

fix: 视图中数据集字段
This commit is contained in:
XiaJunjie2020 2021-07-23 10:45:57 +08:00 committed by GitHub
commit 18a24f8e2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -710,7 +710,7 @@ export default {
return true return true
}) })
} else { } else {
this.resetView() this.resetDatasetField()
} }
}, },
save(getData, trigger, needRefreshGroup = false) { save(getData, trigger, needRefreshGroup = false) {
@ -1190,11 +1190,14 @@ export default {
hideTab() { hideTab() {
this.tabStatus = false this.tabStatus = false
}, },
resetView() { resetDatasetField() {
this.dimension = [] this.dimension = []
this.dimensionData = [] this.dimensionData = []
this.quota = [] this.quota = []
this.quotaData = [] this.quotaData = []
},
resetView() {
this.resetDatasetField()
this.view = { this.view = {
xAxis: [], xAxis: [],
yAxis: [], yAxis: [],