|
@@ -9,7 +9,7 @@
|
|
|
@dblclick="handleRenameGroup"
|
|
@dblclick="handleRenameGroup"
|
|
|
>
|
|
>
|
|
|
<div class="renameGroupInput" v-show="showRenameGroupInput">
|
|
<div class="renameGroupInput" v-show="showRenameGroupInput">
|
|
|
- <img class="folderIcon" src="@/assets/icons/nine-square-grid/folder.png" />
|
|
|
|
|
|
|
+ <img class="folderIcon" src="@/assets/icons/nine-square-grid/folder-white.png" />
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="inputNewGroupName"
|
|
v-model="inputNewGroupName"
|
|
|
class="GroupNameInput"
|
|
class="GroupNameInput"
|
|
@@ -51,7 +51,7 @@
|
|
|
<div class="addCameraIcon">
|
|
<div class="addCameraIcon">
|
|
|
<img src="@/assets/icons/nine-square-grid/add.png" />
|
|
<img src="@/assets/icons/nine-square-grid/add.png" />
|
|
|
</div>
|
|
</div>
|
|
|
- <div>添加监控点位</div>
|
|
|
|
|
|
|
+ <div>添加点位</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<CameraListOfGroup :cameraGroup="cameraGroup" />
|
|
<CameraListOfGroup :cameraGroup="cameraGroup" />
|
|
@@ -116,9 +116,14 @@
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (cameraGroupList.value.find((x) => x.groupName === inputNewGroupName.value && x.id !== props.cameraGroup.id)) {
|
|
|
|
|
|
|
+ const camera = cameraGroupList.value.find((x) => x.groupName === inputNewGroupName.value);
|
|
|
|
|
+
|
|
|
|
|
+ try {
|
|
|
|
|
+ if (camera && camera.id === props.cameraGroup.id) return;
|
|
|
|
|
+ else if (camera && camera.id !== props.cameraGroup.id)
|
|
|
|
|
+ return ElMessage({ message: '已存在同名区域', type: 'error' });
|
|
|
|
|
+ } finally {
|
|
|
showRenameGroupInput.value = false;
|
|
showRenameGroupInput.value = false;
|
|
|
- return ElMessage({ message: '区域名已存在', type: 'error' });
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
props.cameraGroup.groupName = inputNewGroupName.value;
|
|
props.cameraGroup.groupName = inputNewGroupName.value;
|
|
@@ -202,7 +207,7 @@
|
|
|
.cameraGroup {
|
|
.cameraGroup {
|
|
|
margin-bottom: 1px;
|
|
margin-bottom: 1px;
|
|
|
.cameraGroupTitle {
|
|
.cameraGroupTitle {
|
|
|
- height: 100%;
|
|
|
|
|
|
|
+ height: 38px;
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
@@ -231,6 +236,7 @@
|
|
|
|
|
|
|
|
.folderIcon {
|
|
.folderIcon {
|
|
|
height: 24px;
|
|
height: 24px;
|
|
|
|
|
+ margin-left: 12px;
|
|
|
margin-right: 12px;
|
|
margin-right: 12px;
|
|
|
}
|
|
}
|
|
|
.GroupNameInput {
|
|
.GroupNameInput {
|
|
@@ -246,7 +252,6 @@
|
|
|
margin-right: 12px;
|
|
margin-right: 12px;
|
|
|
}
|
|
}
|
|
|
.groupName {
|
|
.groupName {
|
|
|
- height: 48px;
|
|
|
|
|
white-space: nowrap;
|
|
white-space: nowrap;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -276,7 +281,7 @@
|
|
|
height: 63px;
|
|
height: 63px;
|
|
|
width: 130px;
|
|
width: 130px;
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
- bottom: -60px;
|
|
|
|
|
|
|
+ bottom: -63px;
|
|
|
right: 5px;
|
|
right: 5px;
|
|
|
box-shadow: 0px 0px 10px 2px rgb(0, 0, 0, 0.3);
|
|
box-shadow: 0px 0px 10px 2px rgb(0, 0, 0, 0.3);
|
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
@@ -297,6 +302,7 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.playingCameraGroup {
|
|
.playingCameraGroup {
|
|
|
|
|
+ height: 38px;
|
|
|
background-color: #1777ff;
|
|
background-color: #1777ff;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -342,9 +348,14 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ :deep(.el-collapse-item__header) {
|
|
|
|
|
+ height: 38px;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
:deep(.el-collapse-item__header:has(.playingCameraGroup)) {
|
|
:deep(.el-collapse-item__header:has(.playingCameraGroup)) {
|
|
|
|
|
+ height: 38px;
|
|
|
background-color: #1777ff;
|
|
background-color: #1777ff;
|
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
|
|
|
|
|
@@ -358,20 +369,20 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
:deep(.el-collapse-item__header:not(.el-collapse-item__header:has(.playingCameraGroup)):hover) {
|
|
:deep(.el-collapse-item__header:not(.el-collapse-item__header:has(.playingCameraGroup)):hover) {
|
|
|
- background-color: #c0c4d2;
|
|
|
|
|
|
|
+ background-color: #cdd8ff;
|
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
:deep(.el-collapse-item__header:not(.el-collapse-item__header:has(.playingCameraGroup)):hover .cameraGroupTitle) {
|
|
:deep(.el-collapse-item__header:not(.el-collapse-item__header:has(.playingCameraGroup)):hover .cameraGroupTitle) {
|
|
|
- background-color: #c0c4d2;
|
|
|
|
|
|
|
+ background-color: #cdd8ff;
|
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
:deep(.el-dialog__header) {
|
|
:deep(.el-dialog__header) {
|
|
|
text-align: left;
|
|
text-align: left;
|
|
|
|
|
+ font-weight: bold;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
:deep(.el-dialog__body) {
|
|
:deep(.el-dialog__body) {
|
|
|
- padding: 0px 20px 20px 20px;
|
|
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|