From 8a3cd9fec9adad297ee46dfdf1d590612c47df4b Mon Sep 17 00:00:00 2001 From: dzq Date: Wed, 28 May 2025 10:03:32 +0800 Subject: [PATCH] =?UTF-8?q?refactor(views):=20=E4=BC=98=E5=8C=96=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E5=92=8C=E8=A1=A8=E6=A0=BC=E6=A0=B7=E5=BC=8F=E5=8F=8A?= =?UTF-8?q?=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除表单项的冗余label文本,使用placeholder替代 - 统一搜索和重置按钮的间距样式 - 替换PureTableBar为自定义table-container样式 - 调整分页组件样式和默认页大小 - 为表格容器添加统一样式包括阴影、圆角和间距 ``` 这个提交消息遵循了以下原则: 1. 使用refactor类型,因为主要是代码结构调整和样式优化,不改变功能 2. 添加了scope(views)表明修改范围是视图组件 3. 描述简明扼要,说明了主要修改内容 4. 在正文中使用列表形式列举了主要变更点 5. 保持了中文语言环境下的简洁表达 6. 符合50字符限制且不使用句号结尾的要求 --- src/views/cabinet/operation/index.vue | 37 ++++++++++++------ src/views/shop/approval/index.vue | 55 +++++++++++++++++---------- src/views/shop/goods/index.vue | 6 +-- src/views/shop/order/index.vue | 51 +++++++++++++++++-------- src/views/user/ab98/index.vue | 6 +-- 5 files changed, 101 insertions(+), 54 deletions(-) diff --git a/src/views/cabinet/operation/index.vue b/src/views/cabinet/operation/index.vue index 75a46d9..c9c114d 100644 --- a/src/views/cabinet/operation/index.vue +++ b/src/views/cabinet/operation/index.vue @@ -83,33 +83,33 @@ getList();
- + - + - + - + 搜索 - + 重置 - +
@@ -134,13 +134,28 @@ getList(); - + @size-change="onSizeChange" @current-change="onCurrentChange" class="pagination" /> +
- \ No newline at end of file diff --git a/src/views/shop/approval/index.vue b/src/views/shop/approval/index.vue index 8ccf598..c2feefa 100644 --- a/src/views/shop/approval/index.vue +++ b/src/views/shop/approval/index.vue @@ -128,40 +128,40 @@ getList();
- + - + - + - + - - + + - + - + 搜索 - + 重置 - - +
@@ -193,7 +187,7 @@ getList(); :preview-src-list="row.coverImg.split(',')" :z-index="9999" :preview-teleported="true" :hide-on-click-modal="true" fit="cover" class="rounded" width="40" height="40" />
- - + -\ @@ -232,7 +226,7 @@ getList(); :preview-src-list="row.returnImages.split(',')" :z-index="9999" :preview-teleported="true" :hide-on-click-modal="true" fit="cover" class="rounded" width="40" height="40" />
- - + -\ @@ -253,8 +247,8 @@ getList(); - + @size-change="handlePaginationChange" @current-change="handlePaginationChange" class="pagination" /> + @@ -279,8 +273,27 @@ getList(); - \ No newline at end of file diff --git a/src/views/shop/goods/index.vue b/src/views/shop/goods/index.vue index 17f4877..3d0b97f 100644 --- a/src/views/shop/goods/index.vue +++ b/src/views/shop/goods/index.vue @@ -131,16 +131,16 @@ const handleEdit = (row: GoodsDTO) => {
- + - + 搜索 diff --git a/src/views/shop/order/index.vue b/src/views/shop/order/index.vue index 7d75ee3..1f6ce85 100644 --- a/src/views/shop/order/index.vue +++ b/src/views/shop/order/index.vue @@ -31,7 +31,7 @@ const searchFormParams = ref({ }); const pagination = ref({ - pageSize: 5, + pageSize: 8, currentPage: 1, total: 0 }); @@ -137,20 +137,20 @@ getList(); --> - + - + - + - - + + @@ -158,7 +158,7 @@ getList(); - + @@ -166,17 +166,17 @@ getList(); - + - + 搜索 - + 重置 - +
- + - \ No newline at end of file diff --git a/src/views/user/ab98/index.vue b/src/views/user/ab98/index.vue index 947b46f..dc520ab 100644 --- a/src/views/user/ab98/index.vue +++ b/src/views/user/ab98/index.vue @@ -115,12 +115,12 @@ onMounted(() => {
- + - - + +