From 51fde85acc0313afa0569acf18b99ed5d0768697 Mon Sep 17 00:00:00 2001 From: dzq Date: Tue, 22 Apr 2025 15:39:45 +0800 Subject: [PATCH] =?UTF-8?q?refactor(shop):=20=E9=87=8D=E6=9E=84=E6=9F=9C?= =?UTF-8?q?=E6=9C=BA=E5=95=86=E5=93=81=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=B8=83=E5=B1=80=E5=B9=B6=E4=BC=98=E5=8C=96=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 重构了柜机商品管理页面的布局,将柜机列表移至左侧,提升用户体验。同时优化了 `cabinet-goods-config-modal.vue` 组件的逻辑,添加了 `watch` 和 `onMounted` 钩子以确保数据及时更新。此外,移除了导航栏和侧边栏中不必要的组件注释,保持界面简洁。 --- src/layout/components/navbar.vue | 8 +- src/layout/components/sidebar/horizontal.vue | 8 +- src/layout/components/sidebar/mixNav.vue | 8 +- .../cabinet-goods-config-modal.vue | 13 +- src/views/shop/cabinet-goods/index.vue | 193 ++++++++++-------- 5 files changed, 135 insertions(+), 95 deletions(-) diff --git a/src/layout/components/navbar.vue b/src/layout/components/navbar.vue index 438c4b7..d641337 100644 --- a/src/layout/components/navbar.vue +++ b/src/layout/components/navbar.vue @@ -37,9 +37,9 @@ const { - + - + @@ -61,9 +61,9 @@ const { - + diff --git a/src/layout/components/sidebar/horizontal.vue b/src/layout/components/sidebar/horizontal.vue index d6f705a..4c81165 100644 --- a/src/layout/components/sidebar/horizontal.vue +++ b/src/layout/components/sidebar/horizontal.vue @@ -47,9 +47,9 @@ nextTick(() => { - + - + @@ -65,9 +65,9 @@ nextTick(() => { - + diff --git a/src/layout/components/sidebar/mixNav.vue b/src/layout/components/sidebar/mixNav.vue index 18ec4d3..b7dc5d5 100644 --- a/src/layout/components/sidebar/mixNav.vue +++ b/src/layout/components/sidebar/mixNav.vue @@ -76,9 +76,9 @@ watch( - + - + @@ -94,9 +94,9 @@ watch( - + diff --git a/src/views/shop/cabinet-goods/cabinet-goods-config-modal.vue b/src/views/shop/cabinet-goods/cabinet-goods-config-modal.vue index 6515aea..b41dbc5 100644 --- a/src/views/shop/cabinet-goods/cabinet-goods-config-modal.vue +++ b/src/views/shop/cabinet-goods/cabinet-goods-config-modal.vue @@ -1,5 +1,5 @@ diff --git a/src/views/shop/cabinet-goods/index.vue b/src/views/shop/cabinet-goods/index.vue index c3c11b1..afa39d1 100644 --- a/src/views/shop/cabinet-goods/index.vue +++ b/src/views/shop/cabinet-goods/index.vue @@ -191,89 +191,118 @@ const handleClearGoods = async (row: CabinetCellDTO) => { - +