diff --git a/src/pages/src/views/setting/data-source/ConfigList.vue b/src/pages/src/views/setting/data-source/ConfigList.vue index 4f3b59b70..c8fac05c3 100644 --- a/src/pages/src/views/setting/data-source/ConfigList.vue +++ b/src/pages/src/views/setting/data-source/ConfigList.vue @@ -14,7 +14,7 @@ hover-theme="primary" :loading="resetLoading" @click="handleReset" - :disabled="RUNNING_FIELDS.includes(syncStatus?.status)" + :disabled="disabledSyncBtn" > {{ $t('重置') }} @@ -34,7 +34,7 @@
{{ dataRecordStatus[syncStatus?.status]?.text }} @@ -42,7 +42,7 @@ {{ dataRecordStatus[syncStatus?.status]?.text }} - + {{ syncStatus?.start_at }}
@@ -51,6 +51,7 @@ class="min-w-[64px]" theme="primary" @click="handleImport" + :disabled="disabledSyncBtn || resetLoading" > {{ $t('导入') }} @@ -68,6 +69,7 @@ class="min-w-[64px]" theme="primary" @click.stop + :disabled="disabledSyncBtn" > {{ $t('同步') }} @@ -214,6 +216,7 @@ const route = useRoute(); const userStore = useUser(); const syncStatusStore = useSyncStatus(); const syncStatus = computed(() => syncStatusStore.syncStatus); +const disabledSyncBtn = computed(() => RUNNING_FIELDS.includes(syncStatus.value?.status)); const { dataSourcePlugins, dataSource, diff --git a/src/pages/src/views/setting/data-source/HttpDetails.vue b/src/pages/src/views/setting/data-source/HttpDetails.vue index 7e07a6bde..a00fe1da3 100644 --- a/src/pages/src/views/setting/data-source/HttpDetails.vue +++ b/src/pages/src/views/setting/data-source/HttpDetails.vue @@ -1,62 +1,116 @@