feat: 对接系统配置中的组织架构90%

This commit is contained in:
Zzz1zz
2025-06-28 00:10:30 +08:00
parent c5c61f0573
commit f6e4159889
16 changed files with 901 additions and 49 deletions
+17 -3
View File
@@ -1,6 +1,6 @@
import axios from 'axios';
import type { RouteRecordNormalized } from 'vue-router';
import { UserState } from '@/store/modules/user/types';
// import type { RouteRecordNormalized } from 'vue-router';
// import { UserState } from '@/store/modules/user/types';
export interface ProjectRecord {
id: string;
@@ -11,4 +11,18 @@ export interface ProjectRecord {
export interface ProjectParams extends Partial<ProjectRecord> {
current: number;
pageSize: number;
}
}
// 全部项目列表
export function getAllProjectList() {
return axios.get<any>('/project/getAllProjectList');
}
// 项目信息
export function getProjectDetail(id: string) {
return axios.get<any>(`/project/getProject?id=${id}`);
}
// 项目列表(分页)
export function queryPolicyList(params: ProjectParams) {
return axios.post<any>('/project/getProjectList', { params });
}