mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-24 11:09:16 +08:00
fix: 修改数据库状态异常样式 (#5020)
This commit is contained in:
parent
8870b92ceb
commit
54e81b2de5
@ -112,7 +112,13 @@
|
||||
</el-row>
|
||||
</template>
|
||||
<template #main v-if="currentDB">
|
||||
<ComplexTable :pagination-config="paginationConfig" @sort-change="search" @search="search" :data="data">
|
||||
<ComplexTable
|
||||
:pagination-config="paginationConfig"
|
||||
:class="{ mask: maskShow && currentDB.from !== 'local' }"
|
||||
@sort-change="search"
|
||||
@search="search"
|
||||
:data="data"
|
||||
>
|
||||
<el-table-column :label="$t('commons.table.name')" prop="name" sortable min-width="90">
|
||||
<template #default="{ row }">
|
||||
<Tooltip v-if="!row.isDelete" :islink="false" :text="row.name" />
|
||||
@ -210,6 +216,13 @@
|
||||
</template>
|
||||
</LayoutContent>
|
||||
|
||||
<el-card
|
||||
v-if="mysqlStatus != 'Running' && currentDB && !loading && maskShow && currentDB?.from === 'local'"
|
||||
class="mask-prompt"
|
||||
>
|
||||
<span>{{ $t('commons.service.serviceNotStarted', ['MySQL']) }}</span>
|
||||
</el-card>
|
||||
|
||||
<div v-if="dbOptionsLocal.length === 0 && dbOptionsRemote.length === 0">
|
||||
<LayoutContent :title="'MySQL ' + $t('menu.database')" :divider="true">
|
||||
<template #main>
|
||||
|
@ -89,7 +89,13 @@
|
||||
</el-row>
|
||||
</template>
|
||||
<template #main v-if="currentDB">
|
||||
<ComplexTable :pagination-config="paginationConfig" @sort-change="search" @search="search" :data="data">
|
||||
<ComplexTable
|
||||
:class="{ mask: maskShow && currentDB.from !== 'local' }"
|
||||
:pagination-config="paginationConfig"
|
||||
@sort-change="search"
|
||||
@search="search"
|
||||
:data="data"
|
||||
>
|
||||
<el-table-column :label="$t('commons.table.name')" prop="name" sortable>
|
||||
<template #default="{ row }">
|
||||
<Tooltip v-if="!row.isDelete" :islink="false" :text="row.name" />
|
||||
@ -176,6 +182,13 @@
|
||||
</template>
|
||||
</LayoutContent>
|
||||
|
||||
<el-card
|
||||
v-if="postgresqlStatus != 'Running' && currentDB && !loading && maskShow && currentDB?.from === 'local'"
|
||||
class="mask-prompt"
|
||||
>
|
||||
<span>{{ $t('commons.service.serviceNotStarted', ['PostgreSQL']) }}</span>
|
||||
</el-card>
|
||||
|
||||
<div v-if="dbOptionsLocal.length === 0 && dbOptionsRemote.length === 0">
|
||||
<LayoutContent :title="'PostgreSQL ' + $t('menu.database')" :divider="true">
|
||||
<template #main>
|
||||
|
Loading…
Reference in New Issue
Block a user