From 936a3418f20a706585ca8fab2665e54ac1f41d53 Mon Sep 17 00:00:00 2001 From: taojinlong Date: Thu, 15 Aug 2024 14:40:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20API=20=E6=95=B0=E6=8D=AE=E6=BA=90?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=97=B6=E9=97=B4=E5=87=BD=E6=95=B0=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data/datasource/form/ApiKeyValue.vue | 14 +++++++++----- .../data/datasource/form/ApiVariable.vue | 16 +++++++++------- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/core/core-frontend/src/views/visualized/data/datasource/form/ApiKeyValue.vue b/core/core-frontend/src/views/visualized/data/datasource/form/ApiKeyValue.vue index 00e9c79f8a..62af9645b3 100644 --- a/core/core-frontend/src/views/visualized/data/datasource/form/ApiKeyValue.vue +++ b/core/core-frontend/src/views/visualized/data/datasource/form/ApiKeyValue.vue @@ -72,6 +72,10 @@ const querySearch = (queryString, cb) => { : suggestions.value cb(results) } + +const changeNameType = element => { + element.value = '' +} const createFilter = (queryString: string) => { return restaurant => { return restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0 @@ -98,12 +102,12 @@ const options = [ const timeFunLists = [ { - label: '当天(yyyy-MM-DD)', - value: 'currentDay yyyy-MM-DD' + label: '当天(yyyy-MM-dd)', + value: 'currentDay yyyy-MM-dd' }, { - label: '当天(yyyy/MM/DD)', - value: 'currentDay yyyy/MM/DD' + label: '当天(yyyy/MM/dd)', + value: 'currentDay yyyy/MM/dd' } ] @@ -137,7 +141,7 @@ const timeFunLists = [ /> - + { return restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0 } } - +const changeNameType = element => { + element.value = '' +} const activeName = inject('api-active-name') const options = [ { @@ -118,12 +120,12 @@ const options = [ ] const timeFunLists = [ { - label: '当天(yyyy-MM-DD)', - value: 'currentDay yyyy-MM-DD' + label: '当天(yyyy-MM-dd)', + value: 'currentDay yyyy-MM-dd' }, { - label: '当天(yyyy/MM/DD)', - value: 'currentDay yyyy/MM/DD' + label: '当天(yyyy/MM/dd)', + value: 'currentDay yyyy/MM/dd' } ] @@ -173,7 +175,7 @@ const timeFunLists = [ /> - +