| | |
| | | <template> |
| | | <basic-container> |
| | | <div class="dataCenter-table"> |
| | | <searchData |
| | | @search="searchClick" |
| | |
| | | <template #default="scope"> |
| | | <span class="look" @click="lookDetail(scope.row)">查看</span> |
| | | <span class="delete" @click="deleteDetail(scope.row)" v-if="scope.row.resultType !== 2" |
| | | >删除</span |
| | | >删除</span |
| | | > |
| | | |
| | | <span |
| | | class="location" |
| | | @click="positionDetail(scope.row)" |
| | | v-if="shouldShowLocation(scope.row)" |
| | | >定位</span |
| | | >定位</span |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | |
| | | :src="dialogDetailList.link" |
| | | ></video> |
| | | <!-- 全景 --> |
| | | <!-- <img |
| | | class="quanjing" |
| | | @click="clickpanorama(dialogDetailList)" |
| | | v-else-if="dialogDetailList?.resultType === 5" |
| | | :src="dialogDetailList?.resultType?.smallUrl" |
| | | alt="" |
| | | /> --> |
| | | <!-- <img |
| | | class="quanjing" |
| | | @click="clickpanorama(dialogDetailList)" |
| | | v-else-if="dialogDetailList?.resultType === 5" |
| | | :src="dialogDetailList?.resultType?.smallUrl" |
| | | alt="" |
| | | /> --> |
| | | <!-- 地图 --> |
| | | <div |
| | | v-else-if="dialogDetailList?.resultType === 4" |
| | |
| | | </div> |
| | | <div class="editname"> |
| | | <span v-if="!dialogDetailList?.checkedinput" @click="editTitle(dialogDetailList)" |
| | | ><el-icon><Edit /></el-icon |
| | | ><el-icon><Edit /></el-icon |
| | | ></span> |
| | | <div v-else class="suffixBoxEdit"> |
| | | <div class="editText" @click="submitEditSuffix(dialogDetailList)">✔</div> |
| | |
| | | plain |
| | | icon="el-icon-download" |
| | | @click="detailDownLoad(dialogDetailList)" |
| | | >下载</el-button |
| | | >下载</el-button |
| | | > |
| | | </div> |
| | | </div> |
| | |
| | | :dotData="mapList" |
| | | ></dataCenterMap> |
| | | </div> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script setup> |
| | |
| | | const viewer = viewInstance.value.getViewer(); |
| | | if (viewer && viewer.camera) { |
| | | viewer.camera.flyToBoundingSphere(boundingSphere, { |
| | | duration: 2, // 飞行动画持续时间(秒) |
| | | duration: 0, // 飞行动画持续时间(秒) |
| | | offset: new Cesium.HeadingPitchRange(0, -0.5, boundingSphere.radius * 1.5), |
| | | }); |
| | | } else { |
| | |
| | | |
| | | <style scoped lang="scss"> |
| | | .dataCenter-table { |
| | | margin: 0 18px 16px 10px; |
| | | background-color: #ffffff; |
| | | padding: 14px 18px; |
| | | height: 0; |
| | | flex: 1; |
| | | display: flex; |
| | | flex-direction: column; |
| | | |
| | | .dataTable { |
| | | height: 700px; |
| | | height: 0; |
| | | flex: 1; |
| | | overflow: auto; |
| | | |
| | | .look { |
| | | color: #1c5cff; |
| | | cursor: pointer; |
| | | margin-right: 10px; |
| | | } |
| | | |
| | | .delete { |
| | | color: #ff241c; |
| | | margin-right: 10px; |
| | | cursor: pointer; |
| | | } |
| | | |
| | | .location { |
| | | color: #19876d; |
| | | cursor: pointer; |
| | | } |
| | | } |
| | | |
| | | .pagination { |
| | | display: flex; |
| | | justify-content: end; |
| | | margin-top: 20px; |
| | | } |
| | | |
| | | .quanjing, |
| | | .el-image, |
| | | .imageBox { |
| | |
| | | width: 76px; |
| | | height: 72px; |
| | | } |
| | | |
| | | .videoDialog :deep(.el-dialog) { |
| | | height: 600px; |
| | | width: 54%; |
| | | } |
| | | |
| | | .video-container { |
| | | width: 100%; |
| | | aspect-ratio: 16/9; /* 按视频比例设置(如16:9) */ |
| | | overflow: hidden; /* 隐藏溢出部分 */ |
| | | aspect-ratio: 16/9; |
| | | /* 按视频比例设置(如16:9) */ |
| | | overflow: hidden; |
| | | /* 隐藏溢出部分 */ |
| | | } |
| | | |
| | | .videoBox { |
| | | width: 100%; |
| | | height: 100%; |
| | | object-fit: contain; /* 保持比例完整显示 */ |
| | | object-fit: contain; |
| | | /* 保持比例完整显示 */ |
| | | display: block; |
| | | } |
| | | } |
| | | |
| | | :deep(.custom-header th.el-table__cell) { |
| | | color: rgba(0, 0, 0, 0.85); |
| | | } |
| | | |
| | | // 弹框 |
| | | .detailContainer { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | |
| | | .leftImg { |
| | | width: 70%; |
| | | height: 500px; |
| | | |
| | | img { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | |
| | | #detaildataCenterMap { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | } |
| | | |
| | | .rightDetail { |
| | | width: 30%; |
| | | padding-left: 40px; |
| | | |
| | | .title { |
| | | display: flex; |
| | | margin: 0 !important; |
| | | |
| | | .editname { |
| | | cursor: pointer; |
| | | } |
| | | |
| | | .inputEdit { |
| | | display: flex; |
| | | align-items: center; |
| | | width: 100%; |
| | | |
| | | .fileTitle { |
| | | width: 70%; |
| | | white-space: nowrap; |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | div { |
| | | margin-bottom: 20px; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .my-header :deep(.el-dialog__title) { |
| | | margin: 0 !important; |
| | | height: 19px; |
| | | } |
| | | |
| | | .my-header { |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | .el-button { |
| | | margin-left: 20px; |
| | | } |
| | | } |
| | | |
| | | .title-input { |
| | | margin-bottom: 0 !important; |
| | | width: 70%; |
| | | } |
| | | |
| | | .editname { |
| | | margin-bottom: 0 !important; |
| | | } |
| | | |
| | | .suffixBoxEdit { |
| | | display: flex; |
| | | // align-items: center; |
| | | justify-content: space-between; |
| | | margin-bottom: 0 !important; |
| | | font-size: 16px; |
| | | > .editText { |
| | | |
| | | >.editText { |
| | | cursor: pointer; |
| | | margin-right: 6px; |
| | | |
| | | &:hover { |
| | | transform: scale(1.2); |
| | | } |
| | | } |
| | | |
| | | .editimg { |
| | | cursor: pointer; |
| | | width: 15px; |
| | | height: 15px; |
| | | |
| | | &:hover { |
| | | transform: scale(1.2); |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | | </style> |