From 01a62848b6bbb2abf29f81049f2a32d0f500b1a8 Mon Sep 17 00:00:00 2001 From: Fine Date: Thu, 11 Jan 2024 16:13:46 +0800 Subject: [PATCH] fix: tyeps --- src/views/dashboard/List.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/dashboard/List.vue b/src/views/dashboard/List.vue index 08ed6695..f9856368 100644 --- a/src/views/dashboard/List.vue +++ b/src/views/dashboard/List.vue @@ -195,7 +195,7 @@ limitations under the License. --> import { WidgetType } from "@/views/dashboard/data"; import Metrics from "@/views/dashboard/related/topology/config/Metrics.vue"; - /*global Nullable*/ + /*global Nullable, Recordable*/ const { t } = useI18n(); const dashboardStore = useDashboardStore(); const pageSize = 20; @@ -208,7 +208,7 @@ limitations under the License. --> const multipleSelection = ref([]); const dashboardFile = ref>(null); const MQEVisible = ref(false); - const currentRow = ref({}); + const currentRow = ref({}); const handleSelectionChange = (val: DashboardItem[]) => { multipleSelection.value = val; @@ -223,7 +223,7 @@ limitations under the License. --> currentRow.value.expressions = params; } - function updateSettings(config: any) { + function updateSettings(config: Record) { currentRow.value = { ...currentRow.value, expressionsConfig: config.hierarchyServicesConfig, @@ -604,7 +604,7 @@ limitations under the License. --> ...d, name: value, }); - dashboards.value = dashboardStore.dashboards.map((item: any) => { + dashboards.value = dashboardStore.dashboards.map((item: DashboardItem) => { if (dashboardStore.currentDashboard.id === item.id) { item = dashboardStore.currentDashboard; } @@ -636,7 +636,7 @@ limitations under the License. --> sessionStorage.setItem("dashboards", JSON.stringify(dashboards.value)); sessionStorage.removeItem(`${row.layer}_${row.entity}_${row.name}`); } - function searchDashboards(pageIndex?: any) { + function searchDashboards(pageIndex: number) { const list = JSON.parse(sessionStorage.getItem("dashboards") || "[]"); const arr = list.filter((d: { name: string }) => d.name.includes(searchText.value));