优化用户和工单管理功能
Build and Deploy Vue3 / build (push) Successful in 3m1s
Build and Deploy Vue3 / deploy (push) Successful in 1m50s

- 优化用户列表页面,移除头像批量加载导致的大量detail请求
- 移除工单列表自动刷新功能,避免页面跳转问题
- 将用户余额管理整合到用户列表操作菜单中
- 重构用户余额管理页面,采用现代化企业扁平化设计
- 移除用户余额管理独立菜单项
- 优化页面交互体验和视觉效果
This commit is contained in:
2025-12-15 20:34:02 +08:00
parent 6859753470
commit ab2df50c0d
6 changed files with 662 additions and 1357 deletions
File diff suppressed because it is too large Load Diff
+6
View File
@@ -393,6 +393,10 @@ const Edit = EditIcon
const route = useRoute()
const router = useRouter()
// 引入tagsViewStore
import { useTagsViewStore } from '@/store/tagsViewStore'
const tagsViewStore = useTagsViewStore()
// 用户信息
const userInfo = ref({})
const loading = ref(false)
@@ -546,6 +550,8 @@ const refreshData = () => {
// 返回上一页
const goBack = () => {
// 关闭当前tab
tagsViewStore.delVisitedView(route)
router.go(-1)
}
+12
View File
@@ -129,6 +129,7 @@
<el-dropdown-item command="password">修改密码</el-dropdown-item>
<el-dropdown-item command="group">修改用户组</el-dropdown-item>
<el-dropdown-item command="realname">实名信息</el-dropdown-item>
<el-dropdown-item command="balance">余额管理</el-dropdown-item>
<el-dropdown-item command="loginHistory">登录记录</el-dropdown-item>
<el-dropdown-item command="operationHistory">操作记录</el-dropdown-item>
<el-dropdown-item command="simulateLogin">模拟登录</el-dropdown-item>
@@ -676,6 +677,9 @@ const handleCommand = (command, row) => {
case 'realname':
handleRealnameModify(row)
break
case 'balance':
handleBalanceManage(row)
break
case 'loginHistory':
handleLoginHistory(row)
break
@@ -691,6 +695,14 @@ const handleCommand = (command, row) => {
}
}
// 余额管理
const handleBalanceManage = (row) => {
router.push({
path: '/user/balance',
query: { user_id: row.UserId }
})
}
// 模拟登录
const handleSimulateLogin = async (row) => {