This commit is contained in:
2024-07-24 18:40:14 +08:00
parent bf0b0f6080
commit 3c32e70977
12 changed files with 192 additions and 30 deletions

View File

@@ -0,0 +1,15 @@
import { request } from "@/api/request"
import { IFragSearchCondition } from "./types/fragmentTypes"
export class FragApi {
/**
* 根据参数获取文档片段
* @returns 文档片段数组
*/
static getFragList(params: IFragSearchCondition = {}) {
return request({
url: "system/userField/getFragment",
method: "get",
params
})
}
}

View File

@@ -0,0 +1,22 @@
/**
* 所属产品文档名称的enum
*/
export enum FragBelongDoc {
dg = "大纲",
sm = "说明",
jl = "记录",
hsm = "回归说明",
hjl = "回归记录",
bg = "报告",
wtd = "问题单"
}
/**
* 接口:文档片段查询条件
*/
export interface IFragSearchCondition {
belongDocName?: FragBelongDoc
name?: string
isMain?: boolean
projectId?: number
}

View File

@@ -11,6 +11,16 @@ export default {
params
})
},
/**
* 获取单个项目信息
* @returns 单个项目信息
*/
getProjectById(id) {
return request({
url: "testmanage/project/findOneById/" + id,
method: "get"
})
},
/**
* 添加项目
* @returns
@@ -43,5 +53,5 @@ export default {
method: "delete",
data
})
},
}
}