From 54242ae2209f0ccc702ab043602db5087464e060 Mon Sep 17 00:00:00 2001
From: ssongliu <73214554+ssongliu@users.noreply.github.com>
Date: Mon, 15 Jan 2024 14:15:36 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E6=9C=AC=E5=9C=B0?=
=?UTF-8?q?=E5=A4=87=E4=BB=BD=E8=B7=AF=E5=BE=84=E6=97=A0=E6=B3=95=E7=BC=96?=
=?UTF-8?q?=E8=BE=91=E7=9A=84=E9=97=AE=E9=A2=98=20(#3612)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../views/setting/backup-account/index.vue | 8 +-
.../setting/backup-account/local/index.vue | 126 ++++++++++++++++++
2 files changed, 133 insertions(+), 1 deletion(-)
create mode 100644 frontend/src/views/setting/backup-account/local/index.vue
diff --git a/frontend/src/views/setting/backup-account/index.vue b/frontend/src/views/setting/backup-account/index.vue
index 8c04da48f..045fda09a 100644
--- a/frontend/src/views/setting/backup-account/index.vue
+++ b/frontend/src/views/setting/backup-account/index.vue
@@ -9,7 +9,7 @@
{{ $t('setting.LOCAL') }}
-
+
{{ $t('commons.button.edit') }}
@@ -414,6 +414,7 @@
+
@@ -430,6 +431,7 @@ import { dateFormat } from '@/utils/util';
import { onMounted, ref } from 'vue';
import OpDialog from '@/components/del-dialog/index.vue';
import { getBackupList, deleteBackup } from '@/api/modules/setting';
+import localDialog from '@/views/setting/backup-account/local/index.vue';
import s3Dialog from '@/views/setting/backup-account/s3/index.vue';
import ossDialog from '@/views/setting/backup-account/oss/index.vue';
import cosDialog from '@/views/setting/backup-account/cos/index.vue';
@@ -446,6 +448,7 @@ const data = ref();
const opRef = ref();
const refresh = ref(false);
+const localRef = ref();
const s3Ref = ref();
const ossRef = ref();
const cosRef = ref();
@@ -647,6 +650,9 @@ const onOpenDialog = async (
rowData: { ...rowData },
};
switch (accountType) {
+ case 'LOCAL':
+ localRef.value.acceptParams(params);
+ return;
case 'S3':
s3Ref.value.acceptParams(params);
return;
diff --git a/frontend/src/views/setting/backup-account/local/index.vue b/frontend/src/views/setting/backup-account/local/index.vue
new file mode 100644
index 000000000..d30aee4a8
--- /dev/null
+++ b/frontend/src/views/setting/backup-account/local/index.vue
@@ -0,0 +1,126 @@
+
+
+
+
+
+
+
+
+
+
+ {{ $t('setting.' + dialogData.rowData!.type) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+