From 09382319dffd53bfa390ad7cdc0fa8bf884f6e6a Mon Sep 17 00:00:00 2001 From: ks3356143 <314298729@qq.com> Date: Mon, 12 Jun 2023 20:47:54 +0800 Subject: [PATCH] 3322 --- cdTMP/src/api/project/project.js | 30 +++++ cdTMP/src/components/ma-treeSlider/index.vue | 8 +- cdTMP/src/layout/components/navbar.vue | 10 +- .../src/layout/components/project-tab-bar.vue | 89 +++++++++++++ cdTMP/src/layout/project-layout.vue | 123 +++++++++++++++++ cdTMP/src/router/index.js | 17 ++- cdTMP/src/router/routes/base.js | 3 +- cdTMP/src/router/routes/modules/dashboard.js | 2 +- cdTMP/src/router/routes/modules/testmanage.js | 2 +- cdTMP/src/store/index.js | 9 +- .../projmanage/config/crudOptionsConfig.js | 125 ------------------ .../testmanage/projmanage/cpns/preview.vue | 2 +- .../src/views/testmanage/projmanage/index.vue | 4 +- 13 files changed, 289 insertions(+), 135 deletions(-) create mode 100644 cdTMP/src/api/project/project.js create mode 100644 cdTMP/src/layout/components/project-tab-bar.vue create mode 100644 cdTMP/src/layout/project-layout.vue delete mode 100644 cdTMP/src/views/testmanage/projmanage/config/crudOptionsConfig.js diff --git a/cdTMP/src/api/project/project.js b/cdTMP/src/api/project/project.js new file mode 100644 index 0000000..bfeafe3 --- /dev/null +++ b/cdTMP/src/api/project/project.js @@ -0,0 +1,30 @@ +import { request } from "@/api/request" + +export default { + /** + * 根据项目名确定round初始节点 + * @returns round初始节点 + */ + getRoundInfo(projectId) { + return request({ + url: `project/getRoundInfo/${projectId}`, + method: "get" + }) + }, + + /** + * 根据项目名、轮次round查询轮次下面的设计需求 + * @returns 设计需求树状节点信息 + */ + getDemandInfo(projectId, key, level) { + return request({ + url: `project/getdemandInfo`, + method: "get", + params: { + projectId: projectId, + key: key, + level: level + } + }) + } +} diff --git a/cdTMP/src/components/ma-treeSlider/index.vue b/cdTMP/src/components/ma-treeSlider/index.vue index cb3edab..25a7353 100644 --- a/cdTMP/src/components/ma-treeSlider/index.vue +++ b/cdTMP/src/components/ma-treeSlider/index.vue @@ -1,7 +1,13 @@ diff --git a/cdTMP/src/views/testmanage/projmanage/index.vue b/cdTMP/src/views/testmanage/projmanage/index.vue index 3017660..00d9f8c 100644 --- a/cdTMP/src/views/testmanage/projmanage/index.vue +++ b/cdTMP/src/views/testmanage/projmanage/index.vue @@ -4,6 +4,7 @@ @@ -11,7 +12,6 @@ -