diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts
index 8bc528f2b..5c251d2d9 100644
--- a/frontend/src/lang/modules/en.ts
+++ b/frontend/src/lang/modules/en.ts
@@ -162,6 +162,11 @@ export default {
ioDelay: 'IO delay',
time: 'Times',
+ runSmoothly: 'Run smoothly',
+ runNormal: 'Run normal',
+ runSlowly: 'Run slowly',
+ runJam: 'Run Blockaged',
+
core: 'Physical core',
logicCore: 'Logic core',
loadAverage: 'Average load in the last {0} minutes',
diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts
index 37b44ea94..cf8af3019 100644
--- a/frontend/src/lang/modules/zh.ts
+++ b/frontend/src/lang/modules/zh.ts
@@ -163,6 +163,11 @@ export default {
ioDelay: 'IO 延迟',
time: '次',
+ runSmoothly: '运行流畅',
+ runNormal: '运行正常',
+ runSlowly: '运行缓慢',
+ runJam: '运行堵塞',
+
core: '物理核心',
logicCore: '逻辑核心',
loadAverage: '最近 {0} 分钟平均负载',
diff --git a/frontend/src/views/database/mysql/index.vue b/frontend/src/views/database/mysql/index.vue
index 031a97c8e..a4a4bd67b 100644
--- a/frontend/src/views/database/mysql/index.vue
+++ b/frontend/src/views/database/mysql/index.vue
@@ -3,9 +3,9 @@
-
+
-
+
([]);
-const mysqlInfo = reactive({
- name: '',
- version: '',
- isExist: false,
-});
+const mysqlName = ref();
const isOnSetting = ref();
const data = ref();
@@ -151,7 +147,7 @@ const mysqlIsExist = ref(false);
const dialogRef = ref();
const onOpenDialog = async () => {
let params = {
- mysqlName: mysqlInfo.name,
+ mysqlName: mysqlName.value,
};
dialogRef.value!.acceptParams(params);
};
@@ -159,7 +155,7 @@ const onOpenDialog = async () => {
const dialogBackupRef = ref();
const onOpenBackupDialog = async (dbName: string) => {
let params = {
- mysqlName: mysqlInfo.name,
+ mysqlName: mysqlName.value,
dbName: dbName,
};
dialogBackupRef.value!.acceptParams(params);
@@ -171,7 +167,7 @@ const settingRef = ref();
const onSetting = async () => {
isOnSetting.value = true;
let params = {
- mysqlName: mysqlInfo.name,
+ mysqlName: mysqlName.value,
};
settingRef.value!.acceptParams(params);
};
@@ -194,7 +190,7 @@ const submitChangeInfo = async (formEl: FormInstance | undefined) => {
formEl.validate(async (valid) => {
if (!valid) return;
changeForm.value = changeForm.operation === 'password' ? changeForm.password : changeForm.privilege;
- changeForm.mysqlName = mysqlInfo.name;
+ changeForm.mysqlName = mysqlName.value;
await updateMysqlDBInfo(changeForm);
ElMessage.success(i18n.global.t('commons.msg.operationSuccess'));
search();
@@ -214,6 +210,10 @@ const search = async () => {
const checkExist = (data: App.CheckInstalled) => {
mysqlIsExist.value = data.isExist;
+ mysqlName.value = data.name;
+ if (mysqlIsExist.value) {
+ search();
+ }
};
const onBatchDelete = async (row: Database.MysqlDBInfo | null) => {
@@ -262,7 +262,7 @@ const buttons = [
label: i18n.global.t('database.loadBackup'),
click: (row: Database.MysqlDBInfo) => {
let params = {
- mysqlName: mysqlInfo.name,
+ mysqlName: mysqlName.value,
dbName: row.name,
};
uploadRef.value!.acceptParams(params);
diff --git a/frontend/src/views/database/redis/index.vue b/frontend/src/views/database/redis/index.vue
index 1346fdfa3..fe10a6c10 100644
--- a/frontend/src/views/database/redis/index.vue
+++ b/frontend/src/views/database/redis/index.vue
@@ -4,9 +4,9 @@
-
+
-
+
diff --git a/frontend/src/views/home/status/index.vue b/frontend/src/views/home/status/index.vue
index f957f96d1..d9b2c5fc7 100644
--- a/frontend/src/views/home/status/index.vue
+++ b/frontend/src/views/home/status/index.vue
@@ -35,7 +35,9 @@
- ( {{ formatNumber(currentInfo.cpuUsed) }} / {{ currentInfo.cpuTotal }} ) Core
+
+ ( {{ formatNumber(currentInfo.cpuUsed) }} / {{ currentInfo.cpuTotal }} ) Core
+
@@ -45,9 +47,9 @@
-
+
( {{ formatNumber(currentInfo.memoryUsed / 1024 / 1024) }} /
- {{ currentInfo.memoryTotal / 1024 / 1024 }} ) MB
+ {{ formatNumber(currentInfo.memoryTotal / 1024 / 1024) }} ) MB
@@ -77,7 +79,7 @@
- {{ loadStatus(currentInfo.loadUsagePercent) }}
+ {{ loadStatus(currentInfo.loadUsagePercent) }}
@@ -120,7 +122,7 @@
-
+
( {{ formatNumber(currentInfo.used / 1024 / 1024 / 1024) }} /
{{ formatNumber(currentInfo.total / 1024 / 1024 / 1024) }} ) GB
@@ -132,13 +134,16 @@