diff --git a/cdTMP/src/api/project/dut.js b/cdTMP/src/api/project/dut.js new file mode 100644 index 0000000..187eed2 --- /dev/null +++ b/cdTMP/src/api/project/dut.js @@ -0,0 +1,15 @@ +import { request } from "@/api/request" + +export default { + /** + * 根据项目id、round信息,请求dut + * @returns dut数据 + */ + getDutList(params = {}) { + return request({ + url: `project/getDutList`, + method: "get", + params + }) + } +} diff --git a/cdTMP/src/api/project/project.js b/cdTMP/src/api/project/project.js index 6f5f2bd..c07c965 100644 --- a/cdTMP/src/api/project/project.js +++ b/cdTMP/src/api/project/project.js @@ -11,6 +11,21 @@ export default { method: "get" }) }, + /** + * 根据项目名、树节点等级和key查找被测件 + * @returns 被测件 + */ + getDutInfo(projectId, key, level) { + return request({ + url: `project/getDutInfo`, + method: "get", + params: { + projectId: projectId, + key: key, + level: level + } + }) + }, /** * 根据项目名、树节点等级和key查找设计需求 * @returns 设计需求树状节点信息 diff --git a/cdTMP/src/layout/components/navbar.vue b/cdTMP/src/layout/components/navbar.vue index 16642bc..2d98c23 100644 --- a/cdTMP/src/layout/components/navbar.vue +++ b/cdTMP/src/layout/components/navbar.vue @@ -14,7 +14,7 @@
- {{ title }} +