fix: 状态栏增加重启 loading

This commit is contained in:
ssongliu
2022-12-12 17:17:39 +08:00
committed by ssongliu
parent 62d0d3fc2c
commit 23996b25c3
14 changed files with 125 additions and 104 deletions

View File

@@ -1,7 +1,13 @@
<template>
<div>
<div v-loading="loading">
<Submenu activeName="mysql" />
<AppStatus :app-key="'mysql'" style="margin-top: 20px" @setting="onSetting" @is-exist="checkExist" />
<AppStatus
:app-key="'mysql'"
style="margin-top: 20px"
v-model:loading="loading"
@setting="onSetting"
@is-exist="checkExist"
/>
<Setting ref="settingRef" style="margin-top: 20px" />
<el-card width="30%" v-if="mysqlStatus != 'Running' && !isOnSetting && mysqlIsExist" class="mask-prompt">
@@ -193,6 +199,8 @@ import { App } from '@/api/interface/app';
import { GetAppPort } from '@/api/modules/app';
import router from '@/routers';
const loading = ref(false);
const selects = ref<any>([]);
const mysqlName = ref();
const isOnSetting = ref<boolean>();
@@ -353,6 +361,7 @@ const onDelete = async (row: Database.MysqlDBInfo) => {
search();
}
};
const buttons = [
{
label: i18n.global.t('database.changePassword'),