fix: login landing from menu_access, silent optional Layout 403

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
XingQue
2026-06-28 23:59:33 +08:00
parent 9e7dba32d2
commit 12506c5d32
7 changed files with 253 additions and 35 deletions

View File

@@ -51,6 +51,7 @@
<!-- 用户表格 -->
<el-table :data="userList" v-loading="loading" border class="user-table">
<el-table-column prop="phone" label="账号" width="140" />
<el-table-column prop="yonghuid" label="用户ID" width="100" />
<el-table-column prop="nicheng" label="昵称" width="150" />
<el-table-column label="角色" min-width="180">
<template #default="{ row }">
@@ -103,6 +104,9 @@
<div class="info-section">
<div class="section-title">基本信息</div>
<el-form :model="editForm" label-width="100px">
<el-form-item label="用户ID">
<span>{{ currentUser?.yonghuid }}</span>
</el-form-item>
<el-form-item label="账号">
<span>{{ currentUser?.phone }}</span>
</el-form-item>
@@ -386,6 +390,7 @@ const saveUserInfo = async () => {
const payload = {
username,
action: 'update_user_info',
yonghuid: currentUser.value.yonghuid,
phone: currentUser.value.phone,
nicheng: editForm.value.nicheng,
status: editForm.value.status
@@ -426,6 +431,7 @@ const confirmAddUserRoles = async () => {
const res = await request.post('/houtai/xghtyhsj', {
username,
action: 'add_user_roles',
yonghuid: currentUser.value.yonghuid,
phone: currentUser.value.phone,
role_codes: selectedRoleCodes.value
})
@@ -452,6 +458,7 @@ const removeUserRole = async (role) => {
const res = await request.post('/houtai/xghtyhsj', {
username,
action: 'remove_user_role',
yonghuid: currentUser.value.yonghuid,
phone: currentUser.value.phone,
role_code: role.role_code
})