serv\web- 日志

This commit is contained in:
2025-10-30 16:40:56 +08:00
parent 82b6f14e64
commit 2b252e1b3c
91 changed files with 6003 additions and 1485 deletions

View File

@@ -424,7 +424,19 @@ async function fetchDeptRoles() {
auth: true
};
}
return await deptApi.getDeptByRole(currentDept.value);
const result = await deptApi.getDeptByRole(currentDept.value);
// 转换数据格式,将 UserDeptRoleVO 转换为与 SysRole 一致的格式
if (result.success && result.dataList) {
result.dataList = result.dataList.map(item => ({
roleID: item.roleID,
name: item.roleName, // roleName -> name
description: item.roleDescription // roleDescription -> description
}));
}
return result;
}
// 查看绑定角色