Sfoglia il codice sorgente

style(blockingData): 统一模块样式并优化布局

- 为所有模块添加统一边框样式和阴影效果
- 调整模块标题格式为"模块X 描述"
- 移除背景渐变和特殊边框,采用更简洁的设计
- 优化网格布局为单列显示
- 调整标题颜色和大小增强可读性
huoyi 2 giorni fa
parent
commit
290cdfb327

+ 15 - 11
src/views/blockingData/blockingDataScreen/components/ModuleContainer.vue

@@ -24,30 +24,34 @@ defineProps({
24 24
   height: 100%;
25 25
   display: flex;
26 26
   flex-direction: column;
27
-  background: rgba(13, 80, 122, 0.3);
28
-  border: 1px solid rgba(112, 207, 231, 0.3);
29
-  border-radius: 4px;
27
+  // background: rgba(13, 80, 122, 0.3);
28
+  // border: 1px solid rgba(112, 207, 231, 0.3);
29
+  // border-radius: 4px;
30
+
30 31
 }
31 32
 
32 33
 .module-header {
33 34
   width: 100%;
34
-  height: 36px;
35
+  padding: 10px;
35 36
   display: flex;
36 37
   align-items: center;
37
-  padding: 0 15px;
38
-  background: linear-gradient(90deg, rgba(11, 88, 131, 0.8) 0%, rgba(13, 80, 122, 0.4) 100%);
39
-  border-bottom: 1px solid rgba(112, 207, 231, 0.3);
38
+  text-align: center;
39
+  border: 1px solid #eee;
40
+  justify-content: center;
41
+  margin-bottom: 10px;
42
+  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
40 43
 }
41 44
 
42 45
 .module-title {
43
-  font-size: 16px;
46
+  font-size: 20px;
44 47
   font-weight: 600;
45
-  color: #fbffff;
48
+  color: #2E75B6;
49
+  text-align: center;
46 50
 }
47 51
 
48 52
 .module-content {
49 53
   flex: 1;
50
-  padding: 10px;
51
-  overflow: hidden;
54
+
55
+
52 56
 }
53 57
 </style>

+ 3 - 1
src/views/blockingData/blockingDataScreen/components/ModuleFour.vue

@@ -1,5 +1,5 @@
1 1
 <template>
2
-  <module-container title="放行速率分析">
2
+  <module-container title="模块四 放行速率分析">
3 3
     <div class="module-four-content">
4 4
       <div class="chart-row">
5 5
         <div class="chart-item">
@@ -196,6 +196,8 @@ onMounted(() => {
196 196
   background: #fff;
197 197
   border-radius: 6px;
198 198
   padding: 8px;
199
+
200
+  border: 1px solid #eee;
199 201
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
200 202
 }
201 203
 

+ 4 - 2
src/views/blockingData/blockingDataScreen/components/ModuleOne.vue

@@ -1,5 +1,5 @@
1 1
 <template>
2
-  <module-container title="运行数据分析">
2
+  <module-container title="模块一 运行数据分析">
3 3
     <div class="module-one-content">
4 4
       <!-- 新增:统计卡片行 -->
5 5
       <div class="stats-row">
@@ -459,7 +459,7 @@ onMounted(() => {
459 459
   flex-direction: column;
460 460
   gap: 10px;
461 461
   overflow-y: auto;
462
-  padding: 10px;
462
+  
463 463
 }
464 464
 
465 465
 .stats-row {
@@ -473,6 +473,7 @@ onMounted(() => {
473 473
   background: #fff;
474 474
   border-radius: 6px;
475 475
   padding: 15px;
476
+  border: 1px solid #eee;
476 477
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
477 478
   min-height: 120px;
478 479
 }
@@ -539,6 +540,7 @@ onMounted(() => {
539 540
   background: #fff;
540 541
   border-radius: 6px;
541 542
   padding: 10px;
543
+  border: 1px solid #eee;
542 544
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
543 545
   display: flex;
544 546
   flex-direction: column;

+ 3 - 2
src/views/blockingData/blockingDataScreen/components/ModuleThree.vue

@@ -1,5 +1,5 @@
1 1
 <template>
2
-  <module-container title="培训质控分析">
2
+  <module-container title="模块三 培训质控分析">
3 3
     <div class="module-three-content">
4 4
       <div class="chart-card">
5 5
         <div class="chart-title">查堵-人员自测漏检次数(总累积)</div>
@@ -68,7 +68,7 @@ onMounted(() => {
68 68
   height: 100%;
69 69
   display: flex;
70 70
   gap: 10px;
71
-  padding: 10px;
71
+  
72 72
 }
73 73
 
74 74
 .chart-card {
@@ -76,6 +76,7 @@ onMounted(() => {
76 76
   background: #fff;
77 77
   border-radius: 6px;
78 78
   padding: 10px;
79
+  border: 1px solid #eee;
79 80
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
80 81
   display: flex;
81 82
   flex-direction: column;

+ 3 - 1
src/views/blockingData/blockingDataScreen/components/ModuleTwo.vue

@@ -1,5 +1,5 @@
1 1
 <template>
2
-  <module-container title="查堵人员分析">
2
+  <module-container title="模块二 查堵人员分析">
3 3
     <div class="module-two-content">
4 4
       <div class="top-row">
5 5
         <div class="table-card">
@@ -260,6 +260,7 @@ onMounted(() => {
260 260
   background: #fff;
261 261
   border-radius: 6px;
262 262
   padding: 8px;
263
+  border: 1px solid #eee;
263 264
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
264 265
   display: flex;
265 266
   flex-direction: column;
@@ -271,6 +272,7 @@ onMounted(() => {
271 272
   background: #fff;
272 273
   border-radius: 6px;
273 274
   padding: 8px;
275
+  border: 1px solid #eee;
274 276
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
275 277
   display: flex;
276 278
   flex-direction: column;

+ 8 - 8
src/views/blockingData/blockingDataScreen/index.vue

@@ -34,7 +34,7 @@ import ModuleFour from './components/ModuleFour.vue'
34 34
 .blocking-data-screen {
35 35
   width: 100%;
36 36
   height: 100vh;
37
-  background: linear-gradient(180deg, #0D507A 0%, #054066 50%, #033055 100%);
37
+
38 38
   display: flex;
39 39
   flex-direction: column;
40 40
   overflow: hidden;
@@ -46,15 +46,15 @@ import ModuleFour from './components/ModuleFour.vue'
46 46
   align-items: center;
47 47
   justify-content: space-between;
48 48
   padding: 0 30px;
49
-  background: linear-gradient(90deg, rgba(5, 64, 102, 0.9) 0%, rgba(11, 88, 131, 0.9) 50%, rgba(5, 64, 102, 0.9) 100%);
50
-  border-bottom: 2px solid rgba(112, 207, 231, 0.5);
49
+ 
50
+  // border-bottom: 2px solid rgba(112, 207, 231, 0.5);
51 51
 }
52 52
 
53 53
 .header-title {
54 54
   font-size: 24px;
55 55
   font-weight: bold;
56
-  color: #fbffff;
57
-  text-shadow: 0 0 10px rgba(112, 207, 231, 0.5);
56
+  color: black;
57
+  // text-shadow: 0 0 10px rgba(112, 207, 231, 0.5);
58 58
 }
59 59
 
60 60
 
@@ -70,13 +70,13 @@ import ModuleFour from './components/ModuleFour.vue'
70 70
 
71 71
 .grid-layout {
72 72
   display: grid;
73
-  grid-template-columns: repeat(2, 1fr);
74
-  grid-template-rows: repeat(2, 1fr);
73
+  grid-template-columns: 1fr;
75 74
   gap: 20px;
76 75
   height: 100%;
77 76
 }
78 77
 
79 78
 .grid-item {
80
-  min-height: 200px;
79
+ 
80
+  width: 100%;
81 81
 }
82 82
 </style>