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