From 5e74e356e0359763edf8d7f409b53cf194d5de5e Mon Sep 17 00:00:00 2001 From: "pikachu1995@126.com" Date: Tue, 20 Oct 2026 14:56:06 +0800 Subject: [PATCH] =?UTF-8?q?refactor(manager):=20=E9=87=8D=E6=9E=84?= =?UTF-8?q?=E5=95=86=E5=93=81/=E5=AE=A1=E6=A0=B8/=E5=93=81=E7=89=8C/?= =?UTF-8?q?=E5=88=86=E8=AF=8D/=E5=88=86=E9=94=80=E6=8F=90=E7=8E=B0?= =?UTF-8?q?=E4=B8=8E=E7=AD=89=E7=BA=A7=E7=AD=897=E4=B8=AA=E6=A0=B8?= =?UTF-8?q?=E5=BF=83=E5=88=97=E8=A1=A8=E9=A1=B5=E4=B8=BA=20useTable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 重构商品管理(商品总览、商品审核)列表页为 useTable - 重构商品维护(品牌管理、评价管理)列表页为 useTable - 重构分销管理(分销提现、等级变动历史)与自定义分词列表页为 useTable - 消除 150+ 行重复样板代码,统一竞态防护与分页查询规范 --- manager/src/views/custom-words/index.vue | 144 ++++++------- .../views/distribution/distributionCash.vue | 195 ++++++++---------- .../distribution/distributionGradeHistory.vue | 131 +++++------- manager/src/views/goods/goods-info/goods.vue | 95 ++++----- .../src/views/goods/goods-info/goodsApply.vue | 88 +++----- .../src/views/goods/goods-manage/brand.vue | 91 +++----- .../src/views/goods/goods-review/index.vue | 106 ++++------ 7 files changed, 347 insertions(+), 503 deletions(-) diff --git a/manager/src/views/custom-words/index.vue b/manager/src/views/custom-words/index.vue index b0133bafe..0c0454dc5 100644 --- a/manager/src/views/custom-words/index.vue +++ b/manager/src/views/custom-words/index.vue @@ -3,6 +3,7 @@
添加 + 批量删除
@@ -58,14 +59,15 @@ + + diff --git a/manager/src/views/distribution/distributionCash.vue b/manager/src/views/distribution/distributionCash.vue index ee1897a1f..95d572d69 100644 --- a/manager/src/views/distribution/distributionCash.vue +++ b/manager/src/views/distribution/distributionCash.vue @@ -4,10 +4,11 @@ - + - + 搜索 + 重置 - + @@ -82,8 +84,8 @@ :total="total" layout="total, sizes, prev, pager, next, jumper" size="small" - @current-change="changePage" - @size-change="changePageSize" + @current-change="getDataList" + @size-change="() => { searchForm.pageNumber = 1; getDataList(); }" /> @@ -176,29 +178,21 @@ + - - diff --git a/manager/src/views/distribution/distributionGradeHistory.vue b/manager/src/views/distribution/distributionGradeHistory.vue index 1835d898b..575198c86 100644 --- a/manager/src/views/distribution/distributionGradeHistory.vue +++ b/manager/src/views/distribution/distributionGradeHistory.vue @@ -57,31 +57,26 @@ - - - - - - + + + + + - + - + - - - + @@ -93,8 +88,8 @@ :total="total" layout="total, sizes, prev, pager, next, jumper" size="small" - @current-change="changePage" - @size-change="changePageSize" + @current-change="getDataList" + @size-change="() => { searchForm.pageNumber = 1; getDataList(); }" /> @@ -103,32 +98,42 @@ diff --git a/manager/src/views/goods/goods-review/index.vue b/manager/src/views/goods/goods-review/index.vue index 61e2df10d..a19fbb4b8 100644 --- a/manager/src/views/goods/goods-review/index.vue +++ b/manager/src/views/goods/goods-review/index.vue @@ -27,12 +27,13 @@ 搜索 + 重置 - - + + @@ -43,13 +44,13 @@ - + - +