فهرست منبع

修复设备详情中设备信息不准确项

microrain 2 سال پیش
والد
کامیت
e5f08673dc

+ 3 - 3
src/views/iot/device/instance/component/subDevice.vue

@@ -88,13 +88,13 @@
 										<th class="ant-descriptions-item-label ant-descriptions-item-colon">固件版本</th>
 										<td class="ant-descriptions-item-content" colspan="1">{{ prodetail.version }}</td>
 										<th class="ant-descriptions-item-label ant-descriptions-item-colon">注册时间</th>
-										<td class="ant-descriptions-item-content" colspan="1">{{ prodetail.updatedAt }}</td>
+										<td class="ant-descriptions-item-content" colspan="1">{{ detail.updatedAt }}</td>
 										<th class="ant-descriptions-item-label ant-descriptions-item-colon">最后上线时间</th>
-										<td class="ant-descriptions-item-content" colspan="1">{{ prodetail.lastOnlineTime || '' }}</td>
+										<td class="ant-descriptions-item-content" colspan="1">{{ detail.lastOnlineTime || '' }}</td>
 									</tr>
 									<tr class="ant-descriptions-row">
 										<th class="ant-descriptions-item-label ant-descriptions-item-colon">说明</th>
-										<td class="ant-descriptions-item-content" colspan="5">{{ prodetail.desc }}</td>
+										<td class="ant-descriptions-item-content" colspan="5">{{ detail.desc }}</td>
 									</tr>
 								</tbody>
 							</table>

+ 4 - 4
src/views/iot/device/instance/detail.vue

@@ -95,13 +95,13 @@
                   <th class="ant-descriptions-item-label ant-descriptions-item-colon">固件版本</th>
                   <td class="ant-descriptions-item-content" colspan="1">{{ prodetail.version }}</td>
                   <th class="ant-descriptions-item-label ant-descriptions-item-colon">注册时间</th>
-                  <td class="ant-descriptions-item-content" colspan="1">{{ prodetail.updatedAt }}</td>
+                  <td class="ant-descriptions-item-content" colspan="1">{{ detail.updatedAt }}</td>
                   <th class="ant-descriptions-item-label ant-descriptions-item-colon">最后上线时间</th>
-                  <td class="ant-descriptions-item-content" colspan="1">{{ prodetail.lastOnlineTime || '' }}</td>
+                  <td class="ant-descriptions-item-content" colspan="1">{{ detail.lastOnlineTime || '' }}</td>
                 </tr>
                 <tr class="ant-descriptions-row">
                   <th class="ant-descriptions-item-label ant-descriptions-item-colon">说明</th>
-                  <td class="ant-descriptions-item-content" colspan="5">{{ prodetail.desc }}</td>
+                  <td class="ant-descriptions-item-content" colspan="5">{{ detail.desc }}</td>
                 </tr>
               </tbody>
             </table>
@@ -745,7 +745,7 @@ export default defineComponent({
           let datalist = item.list || [];
           temp[index] = [];
           var temps = new Array();
- 
+
           datalist.forEach(function (a, b) {
             if (b < 15) {
               temps.push(a);

+ 3 - 3
src/views/iot/device/template/detail.vue

@@ -86,13 +86,13 @@
 									<th class="ant-descriptions-item-label ant-descriptions-item-colon">固件版本</th>
 									<td class="ant-descriptions-item-content" colspan="1">{{ prodetail.version }}</td>
 									<th class="ant-descriptions-item-label ant-descriptions-item-colon">注册时间</th>
-									<td class="ant-descriptions-item-content" colspan="1">{{ prodetail.updatedAt }}</td>
+									<td class="ant-descriptions-item-content" colspan="1">{{ detail.updatedAt }}</td>
 									<th class="ant-descriptions-item-label ant-descriptions-item-colon">最后上线时间</th>
-									<td class="ant-descriptions-item-content" colspan="1">{{ prodetail.lastOnlineTime || '' }}</td>
+									<td class="ant-descriptions-item-content" colspan="1">{{ detail.lastOnlineTime || '' }}</td>
 								</tr>
 								<tr class="ant-descriptions-row">
 									<th class="ant-descriptions-item-label ant-descriptions-item-colon">说明</th>
-									<td class="ant-descriptions-item-content" colspan="5">{{ prodetail.desc }}</td>
+									<td class="ant-descriptions-item-content" colspan="5">{{ detail.desc }}</td>
 								</tr>
 							</tbody>
 						</table>

+ 3 - 3
src/views/iot/iotmanager/dashboard.vue

@@ -17,7 +17,7 @@
 					</div>
 					<div class="flex" style="font-weight: bold;">
 						<div class="flex font14"><div class="title_status"  :style="{ backgroundColor: v.title1_bgcolor }"></div> {{ v.title1 }} {{ v.num1 }}</div>
-						<div class="flex ml10 font14"><div class="title_status"  :style="{  backgroundColor: v.title2_bgcolor}"></div>{{ v.title2 }} {{ v.num2 }}</div>
+						<div class="flex ml20 font14"><div class="title_status"  :style="{  backgroundColor: v.title2_bgcolor}"></div>{{ v.title2 }} {{ v.num2 }}</div>
 					</div>
 				</div>
 			</el-col>
@@ -525,8 +525,8 @@ $homeNavLengh: 8;
 			height: 50px;
 		}
 		.title_status{
-			width: 10px;
-			height: 10px;
+			width: 7px;
+			height: 7px;
 			background: #c1bbbb;
 			border-radius: 50px;
 			margin-right: 5px;