diff --git a/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.js b/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.js index bbd8651..7dada03 100644 --- a/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.js +++ b/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.js @@ -475,6 +475,12 @@ export default { historyPictureList = [] } } + }, + 'detailUav.visible': { + handler: function (nv) { + this.$emit('sar-change', nv) + }, + immediate: true, } }, created() { @@ -1110,8 +1116,8 @@ export default { // 测试 // this.addUavToScene(item) }) - this.detailUav.id = data[0].id - this.detailUav.visible = true + this.detailUav.id = data.length ? data[0].id : 1 + this.detailUav.visible = data.length ? true : false taskListResource = data this.taskList.data = list if (this.taskList.data.length) { @@ -1557,7 +1563,7 @@ export default { }).then(res => { stopTaskFly({ id: info.id }).then(res => { if (res.data.code === 200) { - info.status = 2 + // info.status = 2 this.getTaskList() this.$message.success('任务已结束!') this.removeTaskTarget(info.id) @@ -2738,7 +2744,6 @@ export default { console.log('SAR波形', JSON.parse(info.body)) let data = JSON.parse(info.body) console.log('id对比', this.detailUav.id, data.payloadId); - // && this.detailUav.id === data.payloadId if (this.detailUav.visible && this.detailUav.id === data.jobId) { let channel1False = [] let channel1Real = [] diff --git a/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.scss b/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.scss index 15c67e6..474342a 100644 --- a/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.scss +++ b/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.scss @@ -405,6 +405,14 @@ height: calc(100vh - 620px); } + .detail-uav-wrap { + width: 430px; + position: fixed; + bottom: 5px; + right: 10px; + height: calc(100vh - 60px); + } + .detail-info { width: 460px; //position: fixed; @@ -1174,8 +1182,8 @@ .detail-uav { - width: 460px; - position: fixed; + width: 410px; + // position: fixed; top: 60px; //bottom: 5px; right: 10px; @@ -1185,6 +1193,10 @@ transition: 0.2s ease-in-out; z-index: 2; + ::v-deep .dt-card__header { + display: none; + } + .detail-uav__content { padding-right: 8px; box-sizing: border-box; diff --git a/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.vue b/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.vue index a8752eb..6c0669e 100644 --- a/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.vue +++ b/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.vue @@ -77,10 +77,7 @@ >