|
|
@@ -135,9 +135,9 @@
|
|
|
function updataState(data, updateData) {
|
|
|
for (let i = 0; i < data.length; i++) {
|
|
|
const camera = data[i];
|
|
|
- const matchedCamera = updateData.find((item) => item.cameraCode === camera.code);
|
|
|
+ const matchedCamera = updateData.find((item) => item.code === camera.code);
|
|
|
if (matchedCamera) {
|
|
|
- camera.status = matchedCamera.status;
|
|
|
+ camera.status = matchedCamera.networkingState;
|
|
|
camera.integrationState = matchedCamera.integrationState;
|
|
|
}
|
|
|
}
|
|
|
@@ -456,15 +456,11 @@
|
|
|
}
|
|
|
|
|
|
&__list {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
align-items: center;
|
|
|
- width: 100%;
|
|
|
- height: 32px;
|
|
|
+ margin: 10px 0;
|
|
|
font-size: 14px;
|
|
|
font-weight: 400;
|
|
|
color: #404040;
|
|
|
- line-height: 14px;
|
|
|
cursor: pointer;
|
|
|
|
|
|
&:hover {
|
|
|
@@ -472,15 +468,8 @@
|
|
|
color: #1890ff;
|
|
|
}
|
|
|
|
|
|
- .camera-id {
|
|
|
- width: 110px;
|
|
|
- }
|
|
|
-
|
|
|
.camera-space {
|
|
|
- width: 120px;
|
|
|
- white-space: nowrap;
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
+ margin-left: 12px;
|
|
|
}
|
|
|
}
|
|
|
}
|