Ver código fonte

样式调整

zy1125 1 ano atrás
pai
commit
000a47c3c4
2 arquivos alterados com 10 adições e 6 exclusões
  1. 2 2
      src/assets/css/home.scss
  2. 8 4
      src/components/home.vue

+ 2 - 2
src/assets/css/home.scss

@@ -68,7 +68,7 @@
68
         .listtitle{
68
         .listtitle{
69
            
69
            
70
             width: 100%;
70
             width: 100%;
71
-            height: 30px;
71
+      
72
             display: flex;
72
             display: flex;
73
             align-items: center;
73
             align-items: center;
74
 
74
 
@@ -119,7 +119,7 @@
119
 
119
 
120
         .listtitle {
120
         .listtitle {
121
             width: 100%;
121
             width: 100%;
122
-            height: 30px;
122
+    
123
             display: flex;
123
             display: flex;
124
             align-items: center;
124
             align-items: center;
125
 
125
 

+ 8 - 4
src/components/home.vue

@@ -11,17 +11,19 @@
11
 
11
 
12
         </el-container>
12
         </el-container>
13
         <div ref="popoverRef" id="popoverRef" class="modelInfo">
13
         <div ref="popoverRef" id="popoverRef" class="modelInfo">
14
-            <div v-if="orientation=='Left' ||orientation=='Right'" class="model-detail"  >
14
+            <div v-if="orientation=='Left' || orientation=='Right'" class="model-detail"  >
15
                 <div v-for="item in classDeviceInfo" class="listbox" >
15
                 <div v-for="item in classDeviceInfo" class="listbox" >
16
                     
16
                     
17
                     <div class="list">
17
                     <div class="list">
18
                     {{ item[0].value }}
18
                     {{ item[0].value }}
19
                     </div>
19
                     </div>
20
-                    <div   v-for="item2 in item" class="listtitle">
20
+                    <div   v-for="item2 in item" class="listtitle" >
21
                         
21
                         
22
-                       <span class="name"> {{ item2.name }} :</span>
22
+                        <div  v-if="item2.name!=='设备名称'" style="height: 30px;display: flex;align-items: center;">
23
+                            <span class="name"> {{ item2.name }} :</span>
23
                        <span v-if="item2.value!='在线'" class="value">{{ item2.value }}</span>
24
                        <span v-if="item2.value!='在线'" class="value">{{ item2.value }}</span>
24
                        <span v-else style=" font-family: 100; margin-left: 5px;color: #10C383;">{{ item2.value }}</span>
25
                        <span v-else style=" font-family: 100; margin-left: 5px;color: #10C383;">{{ item2.value }}</span>
26
+                        </div>
25
                     </div>
27
                     </div>
26
                 </div>
28
                 </div>
27
             </div>
29
             </div>
@@ -38,9 +40,11 @@
38
                             
40
                             
39
                                 
41
                                 
40
                             
42
                             
43
+                                <div v-if="item2.name!=='设备名称'">
41
                                     <span class="name"> {{ item2.name }} :</span>
44
                                     <span class="name"> {{ item2.name }} :</span>
42
-                                <span v-if="item2.value!='在线'" class="value">{{ item2.value }}</span>
45
+                                <span v-if="item2.value!='在线'" class="value" style="font-weight: 400;">{{ item2.value }}</span>
43
                                 <span v-else style=" font-family: 100; margin-left: 5px;color: #10C383;">{{ item2.value }}</span>
46
                                 <span v-else style=" font-family: 100; margin-left: 5px;color: #10C383;">{{ item2.value }}</span>
47
+                                </div>
44
                          
48
                          
45
                             </div>
49
                             </div>
46
                         </div>
50
                         </div>