瀏覽代碼

修改字

oyq28 1 年之前
父節點
當前提交
2c8f6b8c65

+ 4 - 4
src/main/resources/static/admin/bigScreen/index.html

@@ -188,20 +188,20 @@
                                     <td>${device.deviceModel? device.deviceModel : '未知'}</td>
                                 </tr>
                                     <td>主程序号</td>
-                                    <td>${device.mainProg}</td>
+                                    <td>${(device.mainProg !== null && device.mainProg !== undefined && device.mainProg !== 'NaN' && device.mainProg !== '') ? device.mainProg : ''}</td>
                                 </tr>
                                 <tr>
                                     <td>主轴转速</td>
-                                    <td>${device.actSpindle}</td>
+                                    <td>${(device.actSpindle !== null && device.actSpindle !== undefined && device.actSpindle !== 'NaN' && device.actSpindle !== '') ? device.actSpindle + '%' : '0'}</td>
                                 </tr>
                                 <tr>
                                     <td>主轴倍率</td>
-                                    <td>${device.spindleMagnification}%</td>
+                                    <td>${(device.spindleMagnification !== null && device.spindleMagnification !== undefined && device.spindleMagnification !== 'NaN' && device.spindleMagnification !== '') ? device.spindleMagnification + '%' : '0'}</td>
                                 </tr>
 
                                 <tr>
                                     <td>进给速度</td>
-                                    <td>${device.actFeed}</td>
+                                    <td>${(device.actFeed !== null && device.actFeed !== undefined && device.actFeed !== 'NaN' && device.actFeed !== '') ? device.actFeed + '%' : '0'}</td>
                                 </tr>
                                 </tbody>
                             </table>

+ 2 - 2
src/main/resources/static/admin/bigScreenDetail/index.html

@@ -52,7 +52,7 @@
                     <th>主轴进给率</th>
                     <th>主轴倍率</th>
                     <th>主轴转速</th>
-                    <th>开机时长</th>
+                    <th>开机时长</th>
                 </tr>
                 </thead>
                 <tbody class="b_right_box_tbody">
@@ -177,7 +177,7 @@
                         <div class="t_b_box3">
                             <span>当日开机时长</span>
                             <i></i>
-                            <h2>${data.todayPowerOnTime}</h2>
+                            <h2>${data.todayPowerOnTime}M</h2>
                         </div>
                     </main>
                     <img class="t_r_line" src="img/right_line.png" alt="">

+ 1 - 1
src/main/resources/static/admin/css/index.css

@@ -431,7 +431,7 @@
 }
 .data_content .data_bottom div .main_table td{
     color:#fff;
-    font-size: 10px;
+    font-size: 15px;
     text-align: center;
 }
 .data_content .data_bottom div .main_table tbody tr