-
- {{ item.database }}
+
+ {{ item.database }}
+
+ {{ item.database.substring(0, 25) }}...
+
{{ item.type === 'mysql' ? 'MySQL' : 'MariaDB' }}
@@ -573,4 +579,7 @@ onMounted(() => {
font-size: 12px;
margin-top: 5px;
}
+.optionClass {
+ min-width: 350px;
+}
diff --git a/frontend/src/views/database/mysql/setting/index.vue b/frontend/src/views/database/mysql/setting/index.vue
index ea420f7ca..e6baeed8a 100644
--- a/frontend/src/views/database/mysql/setting/index.vue
+++ b/frontend/src/views/database/mysql/setting/index.vue
@@ -116,6 +116,25 @@
+
+
+
+ {{ $t('database.goUpgrade') }}
+
+
+
+
+
+
+
@@ -136,7 +155,8 @@ import { loadDatabaseFile, loadMysqlBaseInfo, loadMysqlVariables, updateMysqlCon
import { ChangePort, CheckAppInstalled, GetAppDefaultConfig } from '@/api/modules/app';
import { Rules } from '@/global/form-rules';
import i18n from '@/lang';
-import { MsgError, MsgSuccess } from '@/utils/message';
+import { MsgSuccess } from '@/utils/message';
+import router from '@/routers';
const loading = ref(false);
@@ -152,6 +172,7 @@ const baseInfo = reactive({
});
const panelFormRef = ref();
const mysqlConf = ref();
+const upgradeVisiable = ref();
const useOld = ref(false);
@@ -312,11 +333,15 @@ const loadMysqlConf = async () => {
mysqlConf.value = res.data;
})
.catch(() => {
- MsgError(i18n.global.t('database.confNotFound'));
+ upgradeVisiable.value = true;
loading.value = false;
});
};
+const goUpgrade = () => {
+ router.push({ name: 'AppUpgrade' });
+};
+
const onLoadInfo = async () => {
await CheckAppInstalled(props.type, props.database).then((res) => {
mysqlName.value = res.data.name;
diff --git a/frontend/src/views/setting/snapshot/snap_status/index.vue b/frontend/src/views/setting/snapshot/snap_status/index.vue
index e59238399..475a813ca 100644
--- a/frontend/src/views/setting/snapshot/snap_status/index.vue
+++ b/frontend/src/views/setting/snapshot/snap_status/index.vue
@@ -62,7 +62,9 @@
- {{ $t('setting.compress') }}
+
+ {{ $t('setting.compress') }} {{ status.size }}
+
{{ status.compress }}
@@ -71,7 +73,7 @@
- {{ $t('setting.upload') }} {{ status.size }}
+ {{ $t('setting.upload') }}
{{ status.upload }}
@@ -187,6 +189,7 @@ const onWatch = () => {
status.backupData = res.data.backupData;
status.compress = res.data.compress;
+ status.size = res.data.size;
status.upload = res.data.upload;
}
}, 1000 * 3);