From d571fa17c6be00ee560f00c94907d4e4cf20f191 Mon Sep 17 00:00:00 2001 From: taojinlong Date: Mon, 2 Sep 2024 16:43:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=95=B0=E6=8D=AE=E6=BA=90=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=20loading=20=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/visualized/data/datasource/form/EditorDetail.vue | 4 ++++ .../src/views/visualized/data/datasource/form/index.vue | 2 ++ 2 files changed, 6 insertions(+) diff --git a/core/core-frontend/src/views/visualized/data/datasource/form/EditorDetail.vue b/core/core-frontend/src/views/visualized/data/datasource/form/EditorDetail.vue index 6058e587da..02ab4efe31 100644 --- a/core/core-frontend/src/views/visualized/data/datasource/form/EditorDetail.vue +++ b/core/core-frontend/src/views/visualized/data/datasource/form/EditorDetail.vue @@ -55,6 +55,7 @@ const state = reactive({ }) const schemas = ref([]) +const loading = ref(false) const dsForm = ref() const cronEdit = ref(true) @@ -502,7 +503,9 @@ const getDsSchema = () => { if (val) { const request = JSON.parse(JSON.stringify(form.value)) request.configuration = Base64.encode(JSON.stringify(request.configuration)) + loading.value = true getSchema(request).then(res => { + loading.value = false schemas.value = res.data ElMessage.success(t('commons.success')) }) @@ -722,6 +725,7 @@ defineExpose({ label-width="180px" label-position="top" require-asterisk-position="right" + v-loading="loading" > { } const doValidateDs = request => { + dsLoading.value = true validate(request).then(res => { + dsLoading.value = false if (res.data.type === 'API') { let error = 0 const status = JSON.parse(res.data.status) as Array<{ status: string; name: string }>