fix 选择器

This commit is contained in:
2025-10-30 17:59:04 +08:00
parent 2b252e1b3c
commit 0935ec5ec5
22 changed files with 2313 additions and 125 deletions

View File

@@ -53,8 +53,8 @@ export const learningTaskApi = {
* @param filter 过滤条件
* @returns Promise<ResultDomain<LearningTask>>
*/
async getTaskPage(pageParam: PageParam, filter: LearningTask): Promise<ResultDomain<LearningTask>> {
const response = await api.post<LearningTask>(`${this.learningTaskPrefix}/page`, {pageParam, filter});
async getTaskPage(pageParam: PageParam, filter: LearningTask): Promise<ResultDomain<TaskVO>> {
const response = await api.post<TaskVO>(`${this.learningTaskPrefix}/page`, {pageParam, filter});
return response.data;
},
/**

View File

@@ -5,7 +5,7 @@
*/
import { api } from '@/apis/index';
import type { SysPermission, SysRole, SysRolePermission, ResultDomain } from '@/types';
import type { SysPermission, SysRole, SysRolePermission, ResultDomain, UserDeptRoleVO } from '@/types';
/**
* 角色API服务
@@ -17,8 +17,8 @@ export const roleApi = {
* @author yslg
* @ since 2025-10-09
*/
async getAllRoles(): Promise<ResultDomain<SysRole>> {
const response = await api.post<SysRole>('/roles/all');
async getAllRoles(): Promise<ResultDomain<UserDeptRoleVO>> {
const response = await api.post<UserDeptRoleVO>('/roles/all');
return response.data;
},