From fc5d2c44ea3607a75015733b55874ce5beeadb4a Mon Sep 17 00:00:00 2001 From: ks3356143 <314298729@qq.com> Date: Mon, 19 Jun 2023 19:51:12 +0800 Subject: [PATCH] 54321 --- cdTMP/src/api/project/dut.js | 15 ++++ cdTMP/src/api/project/project.js | 15 ++++ cdTMP/src/layout/components/navbar.vue | 2 +- cdTMP/src/layout/project-layout.vue | 68 +++++++++++---- cdTMP/src/router/index.js | 11 +++ cdTMP/src/store/index.js | 10 +-- cdTMP/src/store/project/treeData.js | 27 ++++++ cdTMP/src/views/project/case/index.vue | 22 ++--- .../src/views/project/design-demand/index.vue | 10 ++- cdTMP/src/views/project/dut/index.vue | 83 +++++++++++++++++++ cdTMP/src/views/project/round/index.vue | 65 ++++++++++----- cdTMP/src/views/project/testDemand/index.vue | 6 +- 12 files changed, 275 insertions(+), 59 deletions(-) create mode 100644 cdTMP/src/api/project/dut.js create mode 100644 cdTMP/src/store/project/treeData.js create mode 100644 cdTMP/src/views/project/dut/index.vue 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 }} +