From 21b8b7bf412d9151f4c9222c299b0b662649e462 Mon Sep 17 00:00:00 2001 From: wkc <978997012@qq.com> Date: Thu, 26 Mar 2026 09:12:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E7=B4=A7=E9=A1=B9=E7=9B=AE=E5=88=86?= =?UTF-8?q?=E6=9E=90=E5=BC=B9=E7=AA=97=E5=A4=B4=E5=B8=A6=E4=B8=8E=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/ProjectAnalysisDialog.vue | 203 +++++++++++------- ...roject-analysis-dialog-default-tab.test.js | 2 + .../project-analysis-dialog-layout.test.js | 25 ++- ...t-analysis-dialog-source-highlight.test.js | 9 +- 4 files changed, 155 insertions(+), 84 deletions(-) diff --git a/ruoyi-ui/src/views/ccdiProject/components/detail/ProjectAnalysisDialog.vue b/ruoyi-ui/src/views/ccdiProject/components/detail/ProjectAnalysisDialog.vue index 28da7349..e685f56d 100644 --- a/ruoyi-ui/src/views/ccdiProject/components/detail/ProjectAnalysisDialog.vue +++ b/ruoyi-ui/src/views/ccdiProject/components/detail/ProjectAnalysisDialog.vue @@ -2,57 +2,65 @@ -
-
+
+
+
+
+
结果总览
+
项目分析详情
+
+
+ 当前命中模型 + + {{ dialogData.sourceSummary.currentModelValue }} + +
+
+
+
-
-
- - - -
- 当前命中模型 - {{ dialogData.sourceSummary.currentModelValue }} -
- - - - - - - - - - - - - - - - - -
+
+ + + + + + + + + + + + + + + + + + + +
@@ -200,59 +208,100 @@ export default { diff --git a/ruoyi-ui/tests/unit/project-analysis-dialog-default-tab.test.js b/ruoyi-ui/tests/unit/project-analysis-dialog-default-tab.test.js index b7c28553..307c8e00 100644 --- a/ruoyi-ui/tests/unit/project-analysis-dialog-default-tab.test.js +++ b/ruoyi-ui/tests/unit/project-analysis-dialog-default-tab.test.js @@ -18,4 +18,6 @@ const dialog = fs.readFileSync( "handleDialogClosed()", "this.fetchDetailData()", "this.resetDialogState()", + "project-analysis-header", + 'class="project-analysis-tabs"', ].forEach((token) => assert(dialog.includes(token), token)); diff --git a/ruoyi-ui/tests/unit/project-analysis-dialog-layout.test.js b/ruoyi-ui/tests/unit/project-analysis-dialog-layout.test.js index 84b41633..32ee81a0 100644 --- a/ruoyi-ui/tests/unit/project-analysis-dialog-layout.test.js +++ b/ruoyi-ui/tests/unit/project-analysis-dialog-layout.test.js @@ -19,10 +19,10 @@ const mockSource = fs.readFileSync( [ 'title="项目分析"', - 'width="80%"', - 'top="5vh"', - "project-analysis-shell", " assert(dialog.includes(token), token)); + +[ + 'width="92%"', + 'top="2vh"', + "project-analysis-header__main", + "project-analysis-header__meta", +].forEach((token) => assert(dialog.includes(token), token)); + +[ + 'width="80%"', + 'top="5vh"', + "project-analysis-shell", "project-analysis-layout__main-scroll", "overflow-y: auto", "max-height: calc(90vh - 120px)", - "border: 1px solid #e2e8f0", - "border-radius: 20px", -].forEach((token) => assert(dialog.includes(token), token)); +].forEach((token) => assert(!dialog.includes(token), token)); [ "projectAnalysisTabs", diff --git a/ruoyi-ui/tests/unit/project-analysis-dialog-source-highlight.test.js b/ruoyi-ui/tests/unit/project-analysis-dialog-source-highlight.test.js index be42ceef..2764aee7 100644 --- a/ruoyi-ui/tests/unit/project-analysis-dialog-source-highlight.test.js +++ b/ruoyi-ui/tests/unit/project-analysis-dialog-source-highlight.test.js @@ -21,9 +21,16 @@ const mockSource = fs.readFileSync( 'source === "riskModelPeople"', "当前命中模型", "dialogData.sourceSummary", + "project-analysis-header__meta", + "project-analysis-header__meta-label", + "project-analysis-header__meta-value", +].forEach((token) => assert(dialog.includes(token), token)); + +[ + 'class="source-summary"', "source-summary__label", "source-summary__value", -].forEach((token) => assert(dialog.includes(token), token)); +].forEach((token) => assert(!dialog.includes(token), token)); [ "sourceSummary",