-
+
{
});
};
+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 || [];