From 043be60f4fce88bcf9a3c1904f4e409adaf147d3 Mon Sep 17 00:00:00 2001 From: 2256907009 <2256907009@qq.com> Date: Thu, 29 Jan 2026 17:43:45 +0800 Subject: [PATCH] =?UTF-8?q?feate:=E6=B7=BB=E5=8A=A0=E5=88=86=E7=BB=84?= =?UTF-8?q?=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/menus.js | 3 +- src/router/index.js | 3 +- src/views/product/ProductGroup.vue | 227 ++++++++++++++++++++++++----- src/views/product/ProductList.vue | 14 +- 问题.MD | 5 + 5 files changed, 206 insertions(+), 46 deletions(-) diff --git a/src/config/menus.js b/src/config/menus.js index f69141c..dbb2875 100644 --- a/src/config/menus.js +++ b/src/config/menus.js @@ -46,8 +46,7 @@ export const menus = [ { path: '/product/group', title: '商品分组' - }, - + } ] }, { diff --git a/src/router/index.js b/src/router/index.js index 162ff31..c4c0daa 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -249,8 +249,7 @@ const routes = [ meta: { title: '商品分组' } - }, - + } ] }, // 订单管理路由 diff --git a/src/views/product/ProductGroup.vue b/src/views/product/ProductGroup.vue index 7edeea3..3153f01 100644 --- a/src/views/product/ProductGroup.vue +++ b/src/views/product/ProductGroup.vue @@ -45,6 +45,14 @@ 列表视图 + + + 全部展开 + + + 全部收起 + + @@ -66,18 +74,17 @@ - + - + {{ row.name }} @@ -103,12 +110,20 @@ /> - + 添加子级 编辑 删除 + + {{ isRowExpanded(row) ? '收起' : '展开' }} + @@ -259,18 +274,19 @@ - + + + 添加子级时自动继承父级分组,不可修改 + @@ -464,7 +483,7 @@