diff --git a/frontend/src/components/table-setting/index.vue b/frontend/src/components/table-setting/index.vue index 303d8ce84..01a3ee4b3 100644 --- a/frontend/src/components/table-setting/index.vue +++ b/frontend/src/components/table-setting/index.vue @@ -1,42 +1,39 @@ diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index d88b399cb..2c21a15d7 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -83,8 +83,9 @@ const message = { port: 'Port', protocol: 'Protocol', tableSetting: 'Table setting', - autoRefresh: 'Auto refresh', refreshRate: 'Rate', + noRefresh: 'No Refresh', + refreshRateUnit: '{0} Seconds/Time', }, loadingText: { Upgrading: 'System upgrade, please wait...', diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts index 610d4ffcb..00451b8c8 100644 --- a/frontend/src/lang/modules/tw.ts +++ b/frontend/src/lang/modules/tw.ts @@ -83,8 +83,9 @@ const message = { port: '端口', protocol: '協議', tableSetting: '列表設置', - autoRefresh: '定時刷新', refreshRate: '刷新頻率', + noRefresh: '不刷新', + refreshRateUnit: '{0} 秒/次', }, loadingText: { Upgrading: '系統升級中,請稍候...', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 10a9dfba2..33ca43f35 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -83,8 +83,9 @@ const message = { port: '端口', protocol: '协议', tableSetting: '列表设置', - autoRefresh: '定时刷新', refreshRate: '刷新频率', + noRefresh: '不刷新', + refreshRateUnit: '{0} 秒/次', }, loadingText: { Upgrading: '系统升级中,请稍候...', diff --git a/frontend/src/views/container/container/index.vue b/frontend/src/views/container/container/index.vue index 2ba9583e9..8d175d246 100644 --- a/frontend/src/views/container/container/index.vue +++ b/frontend/src/views/container/container/index.vue @@ -40,7 +40,7 @@ - +
{ }); }; +const refresh = async () => { + let filterItem = props.filters ? props.filters : ''; + let params = { + name: searchName.value, + state: searchState.value || 'all', + page: paginationConfig.currentPage, + pageSize: paginationConfig.pageSize, + filters: filterItem, + orderBy: paginationConfig.orderBy, + order: paginationConfig.order, + }; + loadStats(); + const res = await searchContainer(params); + let containers = res.data.items || []; + for (const container of containers) { + for (const c of data.value) { + c.hasLoad = true; + if (container.containerID == c.containerID) { + for (let key in container) { + if (key !== 'cpuPercent' && key !== 'memoryPercent') { + c[key] = container[key]; + } + } + } + } + } +}; + const loadStats = async () => { const res = await containerListStats(); let stats = res.data || [];