feat: 对接系统配置中的组织架构90%
This commit is contained in:
+17
-3
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user