From 3ba0b3cdab9c570cfc987536d6bd6d3ac03221c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=89=91?= Date: Sun, 16 Apr 2023 23:50:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=EF=BC=8C=E5=88=87=E6=8D=A2=E8=A1=A8=E3=80=81?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E6=97=B6=E6=B8=85=E7=A9=BA=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vue/src/components/uisourcedata/index.vue | 25 +++++++++++-------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/huawei/datashow/vue/src/components/uisourcedata/index.vue b/src/main/java/com/huawei/datashow/vue/src/components/uisourcedata/index.vue index 47c0616..5a6b8d7 100644 --- a/src/main/java/com/huawei/datashow/vue/src/components/uisourcedata/index.vue +++ b/src/main/java/com/huawei/datashow/vue/src/components/uisourcedata/index.vue @@ -480,6 +480,7 @@ methods: { }, handelPollChange(pollName){ this.schemaName = '' + this.resetSearch() axios({ url:'/getSchema', method:"get", @@ -497,6 +498,7 @@ methods: { }, handelSchemaNameChange(){ this.table = '' + this.resetSearch() axios({ url:'/getTables', method:"get", @@ -516,6 +518,7 @@ methods: { async handleTableSelect(index){ this.table = index this.loading = true + this.resetSearch() this.sql = 'SELECT * FROM ' + this.table await axios({ url:'/showSourceData', @@ -567,18 +570,20 @@ methods: { this.getCount() }, + resetSearch(){ + this.choose_table_headers = []; + this.where_table_header = ''; + this.where_table_header_equals = ''; + this.order_by_headers = []; + this.order_by_header_desc_or_asc = ''; + this.group_by_header = ''; + this.aggregate_header = ''; + this.aggregate_function = ''; + this.aggregate_header_new_name = ''; + }, handle_reset_sift(){ - - this.choose_table_headers = [], - this.where_table_header = '', - this.where_table_header_equals = '', - this.order_by_headers = [], - this.order_by_header_desc_or_asc = '', - this.group_by_header = '', - this.aggregate_header = '', - this.aggregate_function = '', - this.aggregate_header_new_name = '' + this.resetSearch(); axios({ url:'/showSourceData', method:"get", -- Gitee