64
64
@search =" search"
65
65
>
66
66
<el-table-column type =" selection" fix />
67
- <el-table-column :label =" $t('commons.table.name')" min-width =" 80" prop =" name" sortable fix >
67
+ <el-table-column
68
+ :label =" $t('commons.table.name')"
69
+ :width =" mobile ? 300 : 'auto'"
70
+ min-width =" 80"
71
+ prop =" name"
72
+ sortable
73
+ fix
74
+ >
68
75
<template #default =" { row } " >
69
76
<Tooltip @click =" onInspect(row.containerID)" :text =" row.name" />
70
77
</template >
75
82
min-width =" 80"
76
83
prop =" imageName"
77
84
/>
78
- <el-table-column :label =" $t('commons.table.status')" min-width =" 60 " prop =" state" sortable fix >
85
+ <el-table-column :label =" $t('commons.table.status')" min-width =" 80 " prop =" state" sortable fix >
79
86
<template #default =" { row } " >
80
87
<Status :key =" row.state" :status =" row.state" ></Status >
81
88
</template >
82
89
</el-table-column >
83
- <el-table-column :label =" $t('container.source')" show-overflow-tooltip min-width =" 75 " fix >
90
+ <el-table-column :label =" $t('container.source')" show-overflow-tooltip min-width =" 100 " fix >
84
91
<template #default =" { row } " >
85
92
<div v-if =" row.hasLoad" >
86
93
<div >CPU: {{ row.cpuPercent.toFixed(2) }}%</div >
91
98
</div >
92
99
</template >
93
100
</el-table-column >
94
- <el-table-column :label =" $t('commons.table.port')" min-width =" 120" prop =" ports" fix >
101
+ <el-table-column
102
+ :label =" $t('commons.table.port')"
103
+ :width =" mobile ? 260 : 'auto'"
104
+ min-width =" 120"
105
+ prop =" ports"
106
+ fix
107
+ >
95
108
<template #default =" { row } " >
96
109
<div v-if =" row.ports" >
97
110
<div v-for =" (item, index) in row.ports" :key =" index" >
127
140
</el-table-column >
128
141
<el-table-column
129
142
:label =" $t('container.upTime')"
130
- min-width =" 70 "
143
+ min-width =" 80 "
131
144
show-overflow-tooltip
132
145
prop =" runTime"
133
146
fix
@@ -168,7 +181,7 @@ import TerminalDialog from '@/views/container/container/terminal/index.vue';
168
181
import CodemirrorDialog from ' @/components/codemirror-dialog/index.vue' ;
169
182
import PortJumpDialog from ' @/components/port-jump/index.vue' ;
170
183
import Status from ' @/components/status/index.vue' ;
171
- import { reactive , onMounted , ref } from ' vue' ;
184
+ import { reactive , onMounted , ref , computed } from ' vue' ;
172
185
import {
173
186
containerListStats ,
174
187
containerOperator ,
@@ -184,6 +197,12 @@ import i18n from '@/lang';
184
197
import router from ' @/routers' ;
185
198
import { MsgSuccess , MsgWarning } from ' @/utils/message' ;
186
199
import { computeSize } from ' @/utils/util' ;
200
+ import { GlobalStore } from ' @/store' ;
201
+ const globalStore = GlobalStore ();
202
+
203
+ const mobile = computed (() => {
204
+ return globalStore .isMobile ();
205
+ });
187
206
188
207
const loading = ref ();
189
208
const data = ref ();
0 commit comments