From d2a6ad05b410436372b4e84482580cbf8e68f3a3 Mon Sep 17 00:00:00 2001 From: junjie Date: Tue, 2 Nov 2021 15:35:53 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=BD=B4=E7=BA=BF=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E5=88=BB=E5=BA=A6=E6=95=B0=E9=99=90=E5=88=B6?= =?UTF-8?q?=E4=B8=8D=E8=B6=85=E8=BF=87100?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/lang/en.js | 3 ++- frontend/src/lang/tw.js | 3 ++- frontend/src/lang/zh.js | 3 ++- .../chart/components/component-style/XAxisSelectorAntV.vue | 7 +++++++ .../components/component-style/YAxisExtSelectorAntV.vue | 7 +++++++ .../chart/components/component-style/YAxisSelectorAntV.vue | 7 +++++++ 6 files changed, 27 insertions(+), 3 deletions(-) diff --git a/frontend/src/lang/en.js b/frontend/src/lang/en.js index 6b4bcb57e6..0ea644134d 100644 --- a/frontend/src/lang/en.js +++ b/frontend/src/lang/en.js @@ -956,7 +956,8 @@ export default { result_mode_all: 'ALL', chart_word_cloud: 'Word Cloud', drag_block_word_cloud_label: 'Word Label', - drag_block_word_cloud_size: 'Word Size' + drag_block_word_cloud_size: 'Word Size', + 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 1393e2e979..84fb4beec5 100644 --- a/frontend/src/lang/tw.js +++ b/frontend/src/lang/tw.js @@ -957,7 +957,8 @@ export default { result_mode_all: '全部', chart_word_cloud: '詞雲', drag_block_word_cloud_label: '詞標簽', - drag_block_word_cloud_size: '詞大小' + drag_block_word_cloud_size: '詞大小', + splitCount_less_100: '刻度數不能超過100' }, dataset: { sheet_warn: '有多個 Sheet 頁,默認抽取第一個', diff --git a/frontend/src/lang/zh.js b/frontend/src/lang/zh.js index 5a6b1381b1..a08f371fad 100644 --- a/frontend/src/lang/zh.js +++ b/frontend/src/lang/zh.js @@ -960,7 +960,8 @@ export default { result_mode_all: '全部', chart_word_cloud: '词云', drag_block_word_cloud_label: '词标签', - drag_block_word_cloud_size: '词大小' + drag_block_word_cloud_size: '词大小', + 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) } }