diff --git a/src/pages_function/pages/overview/device/list.vue b/src/pages_function/pages/overview/device/list.vue index 46cc2d6..f6dbfd4 100644 --- a/src/pages_function/pages/overview/device/list.vue +++ b/src/pages_function/pages/overview/device/list.vue @@ -15,8 +15,8 @@ @confirm="handleSearch" /> - - + + @@ -204,9 +204,10 @@ function handleSearch() { applyFilters(true) } -function resetSearch() { +async function resetFilters() { + if (searchTimer) clearTimeout(searchTimer) keyword.value = '' - applyFilters(true) + await fetchDevices(true) } function onScroll(e) { @@ -329,14 +330,16 @@ function formatDateTime(value) { box-sizing: border-box; } -.icon-btn { - width: 68rpx; - height: 68rpx; - border-radius: 8rpx; - background: #ffffff; +.icon-filter-btn { + width: 66rpx; + height: 66rpx; + flex: 0 0 66rpx; display: flex; align-items: center; justify-content: center; + border: 1rpx solid transparent; + background: transparent; + box-sizing: border-box; } .list-scroll {