diff --git a/src/views/Jyh/Home/index.vue b/src/views/Jyh/Home/index.vue index b821bcd..b5092c9 100644 --- a/src/views/Jyh/Home/index.vue +++ b/src/views/Jyh/Home/index.vue @@ -581,10 +581,7 @@ $primary-color: #5e7ce0; .delay-200 { animation-delay: 200ms; } .delay-300 { animation-delay: 300ms; } - -// ---------------------------------------------------- -// 基础样式 (保持不变) -// ---------------------------------------------------- +// 基础样式 .home-container { width: 100%; height: 100%; @@ -633,7 +630,7 @@ $primary-color: #5e7ce0; justify-content: space-between; align-items: center; padding: 12px; - transition: all 0.3s ease; // 添加过渡 + transition: all 0.3s ease; &:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); @@ -659,7 +656,7 @@ $primary-color: #5e7ce0; justify-content: center; align-items: center; gap: 8px; - transition: color 0.3s ease; // 添加过渡 + transition: color 0.3s ease; &:hover { color: $primary-color; @@ -689,7 +686,7 @@ $primary-color: #5e7ce0; .glow-border { border: 1px solid var(--devui-form-control-line, #d7d8da); border-color: var(--devui-form-control-line-active, #5e7ce0) !important; - box-shadow: 0 0 0 4px var(--devui-form-control-interactive-outline, rgba(94, 124, 224, 0.15)); // 调整光晕颜色透明度 + box-shadow: 0 0 0 4px var(--devui-form-control-interactive-outline, rgba(94, 124, 224, 0.15)); transition: border-color 0.3s ease, box-shadow 0.3s ease; } @@ -962,13 +959,13 @@ $primary-light: #e8f0fe; } } -/* 时间线样式调整,保持与原有布局一致 */ +/* 时间线样式 */ :deep(.devui-timeline) { - --devui-timeline-item-padding: 0 0 24px 0; /* 调整项间距 */ + --devui-timeline-item-padding: 0 0 24px 0; } :deep(.devui-timeline-item-time) { - /* 年份标签样式,与原有红色标签保持一致 */ + /* 年份标签样式 */ background-color: #fee2e2; /* 浅红背景 */ color: #dc2626; /* 红色文字 */ font-size: 12px; diff --git a/src/views/Jyh/TestingCenter/index.vue b/src/views/Jyh/TestingCenter/index.vue index afd9b00..8c99dac 100644 --- a/src/views/Jyh/TestingCenter/index.vue +++ b/src/views/Jyh/TestingCenter/index.vue @@ -8,11 +8,13 @@
- -
选择检测方式
+ +
+ 选择检测方式 +
- +
- -

点击或拖拽文件到此处上传

-

支持格式:.zip, .tar, .gz, .json (最大100MB)

+
+ +
+

点击或拖拽文件到此处上传

+

支持格式:.zip, .tar, .gz, .json (最大100MB)

- + @@ -44,21 +49,23 @@ @click="startUrlScan" variant="solid" :disabled="!scanUrl" + class="btn-primary transform transition-all hover:scale-105" > - 开始检测 + 开始检测 - + @@ -66,8 +73,9 @@ @click="startSbomScan" variant="solid" :disabled="!sbomContent" + class="btn-primary transform transition-all hover:scale-105" > - 开始检测 + 开始检测 @@ -77,12 +85,14 @@ - - -
-

当前检测状态

-
当前检测状态
- {{ getStatusText(currentScan.status) }} + +
+
+ 当前检测状态 +
+ + {{ getStatusText(currentScan.status) }} +
@@ -90,14 +100,16 @@ :percentage="currentScan.progress" :status="getProgressStatus(currentScan.status)" stroke-width="6" + class="progress-bar" > -

- {{ currentScan.progress }}% 完成 - {{ currentScan.currentStep || '准备开始检测' }} +

+ {{ currentScan.progress }}% 完成 + - {{ currentScan.currentStep || '准备开始检测' }}

- + {{ currentScan.target }} {{ formatTime(currentScan.startTime) }} @@ -113,19 +125,28 @@
- 查看报告详情 + + 查看报告详情 +
- -
历史检测记录
-
+ +
+
+ 历史检测记录 +
@@ -135,21 +156,30 @@ :data="filteredHistory" v-if="filteredHistory.length > 0" table-layout="auto" + row-hover > @@ -157,23 +187,23 @@ - +
@@ -198,6 +229,9 @@ v-model="reportVisible" :width="800" title="检测报告详情" + :show-close="true" + class="report-drawer" + @open="handleDrawerOpen" >