From 78cb6ea78212052ae8849191a55b9c7295666926 Mon Sep 17 00:00:00 2001
From: Leo <98382335+gaoziman@users.noreply.github.com>
Date: Tue, 8 Jul 2025 10:56:23 +0800
Subject: [PATCH] =?UTF-8?q?refactor(system):=20=E4=BC=98=E5=8C=96=E8=A7=92?=
=?UTF-8?q?=E8=89=B2=E5=92=8C=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 统一表单验证处理机制,添加验证失败提示
- 完善错误处理逻辑,提升用户体验
- 规范化消息提示使用,确保一致性
- 优化页面布局和交互细节
---
src/views/system/role/index.vue | 6 +++---
src/views/system/user/index.vue | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue
index 2a9b736..2b2cf2b 100644
--- a/src/views/system/role/index.vue
+++ b/src/views/system/role/index.vue
@@ -94,7 +94,7 @@
-
+
@@ -107,7 +107,7 @@
v-button="PERMISSIONS.ROLE.DELETE"
type="error"
:disabled="selectedRows.length === 0"
- class="px-6 flex items-center"
+ class="px-3 flex items-center"
@click="handleBatchDelete"
>
@@ -1242,7 +1242,7 @@ onMounted(() => {
.custom-table :deep(.n-data-table-th) {
padding: 10px 12px;
background-color: #fafafa;
- font-weight: 600;
+ font-weight: normal;
color: #262626;
}
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index c76d04a..c18e848 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -117,7 +117,7 @@
v-button="PERMISSIONS.USER.DELETE"
type="error"
:disabled="selectedRows.length === 0"
- class="px-6 flex items-center"
+ class="px-3 flex items-center"
@click="handleBatchDelete"
>
@@ -132,12 +132,12 @@
v-button="PERMISSIONS.USER.ROLE"
type="info"
:disabled="selectedRows.length !== 1"
- class="px-6 flex items-center"
+ class="px-3 flex items-center"
@click="handleAssignRole(selectedRows[0])"
>
-
+
分配角色
@@ -1995,7 +1995,7 @@ onBeforeUnmount(() => {
.custom-table :deep(.n-data-table-th) {
padding: 10px 12px;
background-color: #fafafa;
- font-weight: 600;
+ font-weight: normal;
color: #262626;
}