mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 08:19:15 +08:00
feat: 容器列表增加选择列功能 (#3684)
This commit is contained in:
parent
4ce50328ba
commit
0f53de56a7
@ -86,6 +86,7 @@ const message = {
|
||||
refreshRate: 'Rate',
|
||||
noRefresh: 'No Refresh',
|
||||
refreshRateUnit: '{0} Seconds/Time',
|
||||
selectColumn: 'Select column',
|
||||
},
|
||||
loadingText: {
|
||||
Upgrading: 'System upgrade, please wait...',
|
||||
|
@ -86,6 +86,7 @@ const message = {
|
||||
refreshRate: '刷新頻率',
|
||||
noRefresh: '不刷新',
|
||||
refreshRateUnit: '{0} 秒/次',
|
||||
selectColumn: '選擇列',
|
||||
},
|
||||
loadingText: {
|
||||
Upgrading: '系統升級中,請稍候...',
|
||||
|
@ -86,6 +86,7 @@ const message = {
|
||||
refreshRate: '刷新频率',
|
||||
noRefresh: '不刷新',
|
||||
refreshRateUnit: '{0} 秒/次',
|
||||
selectColumn: '选择列',
|
||||
},
|
||||
loadingText: {
|
||||
Upgrading: '系统升级中,请稍候...',
|
||||
|
@ -13,6 +13,12 @@
|
||||
{{ $t('container.includeAppstore') }}
|
||||
</el-checkbox>
|
||||
</div>
|
||||
<fu-table-column-select
|
||||
:columns="columns"
|
||||
trigger="hover"
|
||||
:title="$t('commons.table.selectColumn')"
|
||||
popper-class="popper-class"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
<template #toolbar>
|
||||
@ -86,6 +92,8 @@
|
||||
@search="search"
|
||||
:row-style="{ height: '65px' }"
|
||||
style="width: 100%"
|
||||
:columns="columns"
|
||||
localKey="contanerColumn"
|
||||
>
|
||||
<el-table-column type="selection" />
|
||||
<el-table-column
|
||||
@ -184,7 +192,12 @@
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :label="$t('container.ip')" :width="mobile ? 80 : 'auto'" min-width="100" fix>
|
||||
<el-table-column
|
||||
:label="$t('container.ip')"
|
||||
:width="mobile ? 80 : 'auto'"
|
||||
min-width="100"
|
||||
prop="network"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<div v-if="row.network">
|
||||
<div v-for="(item, index) in row.network" :key="index">{{ item }}</div>
|
||||
@ -235,7 +248,6 @@
|
||||
:width="mobile ? 260 : 'auto'"
|
||||
min-width="200"
|
||||
prop="ports"
|
||||
fix
|
||||
>
|
||||
<template #default="{ row }">
|
||||
<div v-if="row.ports">
|
||||
@ -277,7 +289,6 @@
|
||||
min-width="200"
|
||||
show-overflow-tooltip
|
||||
prop="runTime"
|
||||
fix
|
||||
/>
|
||||
<fu-table-operations
|
||||
width="180px"
|
||||
@ -357,6 +368,7 @@ const dialogUpgradeRef = ref();
|
||||
const dialogPortJumpRef = ref();
|
||||
const opRef = ref();
|
||||
const includeAppStore = ref(true);
|
||||
const columns = ref([]);
|
||||
|
||||
const dockerStatus = ref('Running');
|
||||
const loadStatus = async () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user