Переглянути джерело

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

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

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

@@ -24,30 +24,34 @@ defineProps({
24
   height: 100%;
24
   height: 100%;
25
   display: flex;
25
   display: flex;
26
   flex-direction: column;
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
 .module-header {
33
 .module-header {
33
   width: 100%;
34
   width: 100%;
34
-  height: 36px;
35
+  padding: 10px;
35
   display: flex;
36
   display: flex;
36
   align-items: center;
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
 .module-title {
45
 .module-title {
43
-  font-size: 16px;
46
+  font-size: 20px;
44
   font-weight: 600;
47
   font-weight: 600;
45
-  color: #fbffff;
48
+  color: #2E75B6;
49
+  text-align: center;
46
 }
50
 }
47
 
51
 
48
 .module-content {
52
 .module-content {
49
   flex: 1;
53
   flex: 1;
50
-  padding: 10px;
51
-  overflow: hidden;
54
+
55
+
52
 }
56
 }
53
 </style>
57
 </style>

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

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

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

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

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

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

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

@@ -34,7 +34,7 @@ import ModuleFour from './components/ModuleFour.vue'
34
 .blocking-data-screen {
34
 .blocking-data-screen {
35
   width: 100%;
35
   width: 100%;
36
   height: 100vh;
36
   height: 100vh;
37
-  background: linear-gradient(180deg, #0D507A 0%, #054066 50%, #033055 100%);
37
+
38
   display: flex;
38
   display: flex;
39
   flex-direction: column;
39
   flex-direction: column;
40
   overflow: hidden;
40
   overflow: hidden;
@@ -46,15 +46,15 @@ import ModuleFour from './components/ModuleFour.vue'
46
   align-items: center;
46
   align-items: center;
47
   justify-content: space-between;
47
   justify-content: space-between;
48
   padding: 0 30px;
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
 .header-title {
53
 .header-title {
54
   font-size: 24px;
54
   font-size: 24px;
55
   font-weight: bold;
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
 .grid-layout {
71
 .grid-layout {
72
   display: grid;
72
   display: grid;
73
-  grid-template-columns: repeat(2, 1fr);
74
-  grid-template-rows: repeat(2, 1fr);
73
+  grid-template-columns: 1fr;
75
   gap: 20px;
74
   gap: 20px;
76
   height: 100%;
75
   height: 100%;
77
 }
76
 }
78
 
77
 
79
 .grid-item {
78
 .grid-item {
80
-  min-height: 200px;
79
+ 
80
+  width: 100%;
81
 }
81
 }
82
 </style>
82
 </style>