From 5643cbc145d796961d3566ddb06b3dbbd4e3818d Mon Sep 17 00:00:00 2001 From: dzq Date: Sun, 27 Apr 2025 10:49:15 +0800 Subject: [PATCH] =?UTF-8?q?refactor(views):=20=E6=9B=B4=E6=96=B0searchForm?= =?UTF-8?q?Params=E7=9A=84=E7=B1=BB=E5=9E=8B=E4=B8=BACabinetCellQuery?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为了确保searchFormParams的类型与API定义一致,将其类型显式声明为CabinetCellQuery,提高代码的可维护性和类型安全性。 --- src/views/shop/cabinet-goods/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/shop/cabinet-goods/index.vue b/src/views/shop/cabinet-goods/index.vue index cca9a50..43f2786 100644 --- a/src/views/shop/cabinet-goods/index.vue +++ b/src/views/shop/cabinet-goods/index.vue @@ -3,7 +3,7 @@ import { ref, onMounted } from "vue"; import { PureTableBar } from "@/components/RePureTableBar"; import { onBeforeRouteUpdate, useRoute } from "vue-router"; import { useRenderIcon } from "@/components/ReIcon/src/hooks"; -import { getCabinetCellList, deleteCabinetCell, CabinetCellDTO, changeGoodsCellsStock, clearGoodsCells } from "@/api/cabinet/cabinet-cell"; +import { getCabinetCellList, deleteCabinetCell, CabinetCellDTO, changeGoodsCellsStock, clearGoodsCells, CabinetCellQuery } from "@/api/cabinet/cabinet-cell"; import { allCabinets, SmartCabinetDTO } from "@/api/cabinet/smart-cabinet"; import EditPen from "@iconify-icons/ep/edit-pen"; import Delete from "@iconify-icons/ep/delete"; @@ -24,7 +24,7 @@ const router = useRouter(); const formRef = ref(); const tableRef = ref(); -const searchFormParams = ref({ +const searchFormParams = ref({ cabinetId: null, cellNo: null, cellType: null