diff --git a/frontend/src/components/canvas/custom-component/UserView.vue b/frontend/src/components/canvas/custom-component/UserView.vue index 153100e9c1..5c6210b454 100644 --- a/frontend/src/components/canvas/custom-component/UserView.vue +++ b/frontend/src/components/canvas/custom-component/UserView.vue @@ -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 + }) } }, diff --git a/frontend/src/lang/en.js b/frontend/src/lang/en.js index 15124656be..10cca9e74a 100644 --- a/frontend/src/lang/en.js +++ b/frontend/src/lang/en.js @@ -846,7 +846,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', diff --git a/frontend/src/lang/tw.js b/frontend/src/lang/tw.js index a7b3f03d0b..082eef1234 100644 --- a/frontend/src/lang/tw.js +++ b/frontend/src/lang/tw.js @@ -845,7 +845,8 @@ export default { width: '寬度', height: '高度', system_case: '系統方案', - custom_case: '自定義' + custom_case: '自定義', + last_layer: '当前已经是最后一级' }, dataset: { sheet_warn: '有多個sheet頁面,默認抽取第一個', diff --git a/frontend/src/lang/zh.js b/frontend/src/lang/zh.js index 43a4bd015a..465790a6d4 100644 --- a/frontend/src/lang/zh.js +++ b/frontend/src/lang/zh.js @@ -845,7 +845,8 @@ export default { width: '宽度', height: '高度', system_case: '系统方案', - custom_case: '自定义' + custom_case: '自定义', + last_layer: '当前已经是最后一级' }, dataset: { sheet_warn: '有多个 Sheet 页,默认抽取第一个', diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue index 387e47457d..92b5f6fbac 100644 --- a/frontend/src/views/chart/view/ChartEdit.vue +++ b/frontend/src/views/chart/view/ChartEdit.vue @@ -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 + }) } },