From b8df6f340341199197e74db1595409f7ff74fba9 Mon Sep 17 00:00:00 2001 From: ks3356143 <314298729@qq.com> Date: Fri, 7 Jun 2024 18:03:11 +0800 Subject: [PATCH] =?UTF-8?q?6=E6=9C=887=E6=97=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cdTMP/src/api/project/singleProblem.js | 14 + cdTMP/src/components/Empty/index.vue | 1 + cdTMP/src/layout/components/footer.vue | 10 +- cdTMP/src/layout/components/navbar.vue | 16 +- cdTMP/src/layout/page-layout.vue | 10 +- cdTMP/src/layout/project-layout.vue | 84 ++++- .../workplace/components/cpns/st-welcome.vue | 2 +- .../project/case/components/CaseModal.vue | 65 ++++ .../project/case/components/ProblemChoose.vue | 40 ++- cdTMP/src/views/project/case/index.vue | 7 +- cdTMP/src/views/project/testDemand/index.vue | 1 + .../testmanage/projmanage/cpns/preview.vue | 14 +- .../testmanage/projmanage/cpns/progress.vue | 3 +- .../src/views/testmanage/projmanage/index.vue | 334 +++++++++++------- 14 files changed, 439 insertions(+), 162 deletions(-) create mode 100644 cdTMP/src/views/project/case/components/CaseModal.vue diff --git a/cdTMP/src/api/project/singleProblem.js b/cdTMP/src/api/project/singleProblem.js index 19c1ba4..9bc1337 100644 --- a/cdTMP/src/api/project/singleProblem.js +++ b/cdTMP/src/api/project/singleProblem.js @@ -1,10 +1,24 @@ import { request } from "@/api/request" export default { + /** + * 得到单个问题单信息 + */ getSingleProblem(params = {}) { return request({ url: "/project/getSingleProblem", method: "get", params }) + }, + /** + * 参数是对象,对象里面1.id-问题单id + * @returns 问题单关联的用例 + */ + getRelativeCases(params = {}) { + return request({ + url: "/project/getRelativeCases", + method: "get", + params + }) } } diff --git a/cdTMP/src/components/Empty/index.vue b/cdTMP/src/components/Empty/index.vue index 476fea8..6462e1c 100644 --- a/cdTMP/src/components/Empty/index.vue +++ b/cdTMP/src/components/Empty/index.vue @@ -21,6 +21,7 @@ const text = ref("暂无数据") color: #aaa; p { margin-top: 6px; + user-select: none; } } diff --git a/cdTMP/src/layout/components/footer.vue b/cdTMP/src/layout/components/footer.vue index a8c2226..dc8019d 100644 --- a/cdTMP/src/layout/components/footer.vue +++ b/cdTMP/src/layout/components/footer.vue @@ -1,15 +1,15 @@ diff --git a/cdTMP/src/layout/components/navbar.vue b/cdTMP/src/layout/components/navbar.vue index 4f751ae..783a4ae 100644 --- a/cdTMP/src/layout/components/navbar.vue +++ b/cdTMP/src/layout/components/navbar.vue @@ -19,7 +19,11 @@
- +