From 4e19debe21b57691ce27c347bdd301c8f5ece059 Mon Sep 17 00:00:00 2001 From: junjun Date: Fri, 18 Feb 2022 10:45:02 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=A7=86=E5=9B=BE=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/view/ChartEdit.vue | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue index 916aa15627..0b59744444 100644 --- a/frontend/src/views/chart/view/ChartEdit.vue +++ b/frontend/src/views/chart/view/ChartEdit.vue @@ -1284,16 +1284,10 @@ export default { buildParam(getData, trigger, needRefreshGroup = false, switchType = false) { if (!this.view.resultCount || this.view.resultCount === '' || - this.view.resultCount.length > 4 || isNaN(Number(this.view.resultCount)) || String(this.view.resultCount).includes('.') || parseInt(this.view.resultCount) < 1) { - this.$message({ - message: this.$t('dataset.pls_input_less_5'), - type: 'error', - showClose: true - }) - return + this.view.resultCount = '1000' } if (switchType && (this.view.type === 'table-info' || this.chart.type === 'table-info') && this.view.xaxis.length > 0) { this.$message({