From 3463517a546ba0a867173807b022cecd76ca6ac5 Mon Sep 17 00:00:00 2001 From: taojinlong Date: Fri, 13 Dec 2024 16:49:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8B=BC=E5=86=99=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../datasource/server/EngineServer.java | 2 +- core/core-frontend/src/api/datasource.ts | 2 +- .../datasource/form/ApiHttpRequestDraw.vue | 8 +++---- .../data/datasource/form/EditorDetail.vue | 6 ++--- .../data/datasource/form/ExcelDetail.vue | 6 ++--- .../visualized/data/datasource/form/index.vue | 10 ++++----- .../visualized/data/datasource/index.vue | 22 +++++++++---------- .../java/io/dataease/api/ds/EngineApi.java | 4 ++-- 8 files changed, 30 insertions(+), 30 deletions(-) diff --git a/core/core-backend/src/main/java/io/dataease/datasource/server/EngineServer.java b/core/core-backend/src/main/java/io/dataease/datasource/server/EngineServer.java index fc69ee66a4..ce389e74ac 100644 --- a/core/core-backend/src/main/java/io/dataease/datasource/server/EngineServer.java +++ b/core/core-backend/src/main/java/io/dataease/datasource/server/EngineServer.java @@ -86,7 +86,7 @@ public class EngineServer implements EngineApi { } @Override - public boolean surportSetKey() throws Exception { + public boolean supportSetKey() throws Exception { return !getEngine().getType().equalsIgnoreCase("h2"); } } diff --git a/core/core-frontend/src/api/datasource.ts b/core/core-frontend/src/api/datasource.ts index 19aea8842d..a0bb6a677c 100644 --- a/core/core-frontend/src/api/datasource.ts +++ b/core/core-frontend/src/api/datasource.ts @@ -175,4 +175,4 @@ export const listSyncRecord = (page: number, limit: number, dsId: number | strin export const getDeEngine = () => request.get({ url: '/engine/getEngine' }) -export const surportSetKey = () => request.get({ url: '/engine/surportSetKey' }) +export const supportSetKey = () => request.get({ url: '/engine/supportSetKey' }) diff --git a/core/core-frontend/src/views/visualized/data/datasource/form/ApiHttpRequestDraw.vue b/core/core-frontend/src/views/visualized/data/datasource/form/ApiHttpRequestDraw.vue index dcf3590074..93dd4b5ba1 100644 --- a/core/core-frontend/src/views/visualized/data/datasource/form/ApiHttpRequestDraw.vue +++ b/core/core-frontend/src/views/visualized/data/datasource/form/ApiHttpRequestDraw.vue @@ -109,7 +109,7 @@ const columns = shallowRef([]) const valueList = shallowRef([]) const tableData = shallowRef([]) const apiItemBasicInfo = ref() -const isSurportSetKey = ref(false) +const isSupportSetKey = ref(false) const isNumber = (rule, value, callback) => { if (!value) { callback(new Error(t('datasource.please_input_query_timeout'))) @@ -168,10 +168,10 @@ const editItem = ref(false) const copyItem = ref(false) const copyDs = ref(false) provide('api-active-name', activeName) -const initApiItem = (val: ApiItem, from, name, edit, surportSetKey) => { +const initApiItem = (val: ApiItem, from, name, edit, supportSetKey) => { copyItem.value = val.copy copyDs.value = from.copy - isSurportSetKey.value = surportSetKey + isSupportSetKey.value = supportSetKey activeName.value = name editItem.value = edit apiItemList = from.apiConfiguration @@ -819,7 +819,7 @@ defineExpose({ prop="primaryKey" class-name="checkbox-table" :label="t('datasource.set_key')" - v-if="apiItem.type !== 'params' && isSurportSetKey" + v-if="apiItem.type !== 'params' && isSupportSetKey" width="100" >