fix: 解决合并导致的代码格式问题 (#2174)

pull/2176/head
ssongliu 2023-09-04 16:56:13 +08:00 committed by GitHub
parent c00d715b87
commit ea17c451a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 14 deletions

View File

@ -57,6 +57,7 @@ export namespace Container {
createTime: string;
state: string;
runTime: string;
network: Array<string>;
ports: Array<string>;
isFromApp: boolean;
isFromCompose: boolean;

View File

@ -78,7 +78,7 @@ const message = {
interval: 'Interval',
user: 'User',
title: 'Title',
network: 'Network',
network: 'Network',
port: 'Port',
protocol: 'Protocol',
tableSetting: 'Table setting',

View File

@ -78,7 +78,7 @@ const message = {
interval: '',
user: '',
title: '',
network: '',
network: '',
port: '',
protocol: '',
tableSetting: '',

View File

@ -78,7 +78,7 @@ const message = {
interval: '',
user: '',
title: '',
network: '',
network: '',
port: '',
protocol: '',
tableSetting: '',

View File

@ -90,7 +90,10 @@
<el-table-column :label="$t('container.source')" show-overflow-tooltip min-width="100" fix>
<template #default="{ row }">
<div v-if="row.hasLoad">
<div>CPU: {{ row.cpuPercent.toFixed(2) }}% {{ $t('monitor.memory') }}: {{ row.memoryPercent.toFixed(2) }}%</div>
<div>
CPU: {{ row.cpuPercent.toFixed(2) }}% {{ $t('monitor.memory') }}:
{{ row.memoryPercent.toFixed(2) }}%
</div>
</div>
<div v-if="!row.hasLoad">
<el-button link loading></el-button>
@ -98,16 +101,18 @@
</template>
</el-table-column>
<el-table-column
:label="$t('commons.table.network')"
:width="mobile ? 80 : 'auto'"
min-width="80"
fix
>
<div v-if="row.network">
<div v-for="(item, index) in row.network" :key="index">
<div>{{ item }}</div>
</div>
</div>
:label="$t('commons.table.network')"
:width="mobile ? 80 : 'auto'"
min-width="80"
fix
>
<template #default="{ row }">
<div v-if="row.network">
<div v-for="(item, index) in row.network" :key="index">
<div>{{ item }}</div>
</div>
</div>
</template>
</el-table-column>
<el-table-column
:label="$t('commons.table.port')"