refactor:下钻到最后一级提示对应信息

This commit is contained in:
wangjiahao 2021-08-17 15:26:05 +08:00
parent 8e7fe632d9
commit effcab3ec4
5 changed files with 18 additions and 3 deletions

View File

@ -309,6 +309,12 @@ export default {
this.chart.type === 'map' && this.sendToChildren(param)
this.drillClickDimensionList.push({ dimensionList: param.data.dimensionList })
this.getData(this.element.propValue.viewId)
} else if (this.chart.drillFields.length > 0) {
this.$message({
type: 'error',
message: this.$t('chart.last_layer'),
showClose: true
})
}
},

View File

@ -842,7 +842,8 @@ export default {
width: 'Width',
height: 'Height',
system_case: 'System',
custom_case: 'Custom'
custom_case: 'Custom',
last_layer: 'This Is The Last Layer'
},
dataset: {
sheet_warn: 'There are multiple sheet pages, and the first one is extracted by default',

View File

@ -842,7 +842,8 @@ export default {
width: '寬度',
height: '高度',
system_case: '系統方案',
custom_case: '自定義'
custom_case: '自定義',
last_layer: '当前已经是最后一级'
},
dataset: {
sheet_warn: '有多個sheet頁面默認抽取第一個',

View File

@ -842,7 +842,8 @@ export default {
width: '宽度',
height: '高度',
system_case: '系统方案',
custom_case: '自定义'
custom_case: '自定义',
last_layer: '当前已经是最后一级'
},
dataset: {
sheet_warn: '有多个 Sheet 页,默认抽取第一个',

View File

@ -1416,6 +1416,12 @@ export default {
this.drillClickDimensionList.push({ dimensionList: param.data.dimensionList })
this.getData(this.param.id)
}
} else if (this.view.drillFields.length > 0) {
this.$message({
type: 'error',
message: this.$t('chart.last_layer'),
showClose: true
})
}
},