diff --git a/frontend/src/lang/en.js b/frontend/src/lang/en.js index 3673a59bfa..d41d8550ef 100644 --- a/frontend/src/lang/en.js +++ b/frontend/src/lang/en.js @@ -953,7 +953,8 @@ export default { table_page_size: 'Page Size', table_page_size_unit: 'Item/Page', result_count: 'Result', - result_mode_all: 'ALL' + result_mode_all: 'ALL', + splitCount_less_100: 'Split Count must less 100' }, 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 7174fef792..7d2dc6e127 100644 --- a/frontend/src/lang/tw.js +++ b/frontend/src/lang/tw.js @@ -954,7 +954,8 @@ export default { table_page_size: '分頁', table_page_size_unit: '條/頁', result_count: '結果展示', - result_mode_all: '全部' + result_mode_all: '全部', + splitCount_less_100: '刻度數不能超過100' }, dataset: { sheet_warn: '有多個 Sheet 頁,默認抽取第一個', diff --git a/frontend/src/lang/zh.js b/frontend/src/lang/zh.js index 50c666be33..7eb2130404 100644 --- a/frontend/src/lang/zh.js +++ b/frontend/src/lang/zh.js @@ -957,7 +957,8 @@ export default { table_page_size: '分页', table_page_size_unit: '条/页', result_count: '结果展示', - result_mode_all: '全部' + result_mode_all: '全部', + splitCount_less_100: '刻度数不能超过100' }, dataset: { sheet_warn: '有多个 Sheet 页,默认抽取第一个', diff --git a/frontend/src/views/chart/components/component-style/XAxisSelectorAntV.vue b/frontend/src/views/chart/components/component-style/XAxisSelectorAntV.vue index 1eda3c6655..9ca3aa0b28 100644 --- a/frontend/src/views/chart/components/component-style/XAxisSelectorAntV.vue +++ b/frontend/src/views/chart/components/component-style/XAxisSelectorAntV.vue @@ -160,6 +160,13 @@ export default { if (!this.axisForm.show) { this.isSetting = false } + if (this.axisForm.axisValue.splitCount && parseInt(this.axisForm.axisValue.splitCount) > 100) { + this.$message({ + message: this.$t('chart.splitCount_less_100'), + type: 'error' + }) + return + } this.$emit('onChangeXAxisForm', this.axisForm) } } diff --git a/frontend/src/views/chart/components/component-style/YAxisExtSelectorAntV.vue b/frontend/src/views/chart/components/component-style/YAxisExtSelectorAntV.vue index 28b24cc025..f10d9cbc9c 100644 --- a/frontend/src/views/chart/components/component-style/YAxisExtSelectorAntV.vue +++ b/frontend/src/views/chart/components/component-style/YAxisExtSelectorAntV.vue @@ -163,6 +163,13 @@ export default { if (!this.axisForm.show) { this.isSetting = false } + if (this.axisForm.axisValue.splitCount && parseInt(this.axisForm.axisValue.splitCount) > 100) { + this.$message({ + message: this.$t('chart.splitCount_less_100'), + type: 'error' + }) + return + } this.$emit('onChangeYAxisForm', this.axisForm) } } diff --git a/frontend/src/views/chart/components/component-style/YAxisSelectorAntV.vue b/frontend/src/views/chart/components/component-style/YAxisSelectorAntV.vue index 1bd3392688..1125ddaff5 100644 --- a/frontend/src/views/chart/components/component-style/YAxisSelectorAntV.vue +++ b/frontend/src/views/chart/components/component-style/YAxisSelectorAntV.vue @@ -171,6 +171,13 @@ export default { if (!this.axisForm.show) { this.isSetting = false } + if (this.axisForm.axisValue.splitCount && parseInt(this.axisForm.axisValue.splitCount) > 100) { + this.$message({ + message: this.$t('chart.splitCount_less_100'), + type: 'error' + }) + return + } this.$emit('onChangeYAxisForm', this.axisForm) } }