ADD: 检修计划添加项目负责人和项目成员

This commit is contained in:
贾同学
2025-09-08 10:21:54 +08:00
parent 6d6d03c03c
commit 629dff1256
5 changed files with 210 additions and 108 deletions

View File

@@ -36,6 +36,9 @@ export namespace Plan {
children?: ResPlan[];
testConfig?: PlanTestConfig;
importFlag?: number; // 导入标识0-否1-是
leader?: string; // 负责人
memberIds?: string[]; //成员
members?: string; //成员字符串
}
// 检测计划 + 分页

View File

@@ -42,7 +42,7 @@ export const getPqErrSysList = () => {
}
//获取指定模式下所有未绑定的设备
export const getUnboundPqDevList = (params: Plan.ReqPlan) => {
export const getUnboundPqDevList = (params: { pattern: string}) => {
return http.get(`/pqDev/listUnbound?pattern=${params.pattern}`)
}
@@ -152,6 +152,6 @@ export const mergeSubPlanCheckData = (params: Plan.ResPlan) => {
}
//根据误差体系id获取测试项
export const getPqErrSysTestItemList = (params: Plan.ResPlan) => {
export const getPqErrSysTestItemList = (params: {errorSysId : string}) => {
return http.get(`/pqErrSys/getTestItems?id=${params.errorSysId}`)
}

View File

@@ -1,23 +1,23 @@
// 登录模块
import type { ReqPage,ResPage } from '@/api/interface'
import type { ReqPage, ResPage } from '@/api/interface'
export namespace Login {
export interface ReqLoginForm {
username: string;
password: string;
checked: boolean;
}
export interface ResLogin {
accessToken: string;
refreshToken: string;
userInfo:{
id: string;
name: string;
export interface ReqLoginForm {
username: string
password: string
checked: boolean
}
export interface ResLogin {
accessToken: string
refreshToken: string
userInfo: {
id: string
name: string
}
}
export interface ResAuthButtons {
[key: string]: string[]
}
}
export interface ResAuthButtons {
[key: string]: string[];
}
}
@@ -52,6 +52,8 @@ export namespace User {
updateTime?: string;//更新时间
roleIds?: string[]; //
roleNames?:string[]; //
roleCodes?:string[]; //
disabled?: boolean;
}
// 用户接口