修改执行中任务的面板交互逻辑
This commit is contained in:
parent
0158cabf7b
commit
ca8852c311
@ -475,6 +475,12 @@ export default {
|
|||||||
historyPictureList = []
|
historyPictureList = []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
'detailUav.visible': {
|
||||||
|
handler: function (nv) {
|
||||||
|
this.$emit('sar-change', nv)
|
||||||
|
},
|
||||||
|
immediate: true,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@ -1110,8 +1116,8 @@ export default {
|
|||||||
// 测试
|
// 测试
|
||||||
// this.addUavToScene(item)
|
// this.addUavToScene(item)
|
||||||
})
|
})
|
||||||
this.detailUav.id = data[0].id
|
this.detailUav.id = data.length ? data[0].id : 1
|
||||||
this.detailUav.visible = true
|
this.detailUav.visible = data.length ? true : false
|
||||||
taskListResource = data
|
taskListResource = data
|
||||||
this.taskList.data = list
|
this.taskList.data = list
|
||||||
if (this.taskList.data.length) {
|
if (this.taskList.data.length) {
|
||||||
@ -1557,7 +1563,7 @@ export default {
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
stopTaskFly({ id: info.id }).then(res => {
|
stopTaskFly({ id: info.id }).then(res => {
|
||||||
if (res.data.code === 200) {
|
if (res.data.code === 200) {
|
||||||
info.status = 2
|
// info.status = 2
|
||||||
this.getTaskList()
|
this.getTaskList()
|
||||||
this.$message.success('任务已结束!')
|
this.$message.success('任务已结束!')
|
||||||
this.removeTaskTarget(info.id)
|
this.removeTaskTarget(info.id)
|
||||||
@ -2738,7 +2744,6 @@ export default {
|
|||||||
console.log('SAR波形', JSON.parse(info.body))
|
console.log('SAR波形', JSON.parse(info.body))
|
||||||
let data = JSON.parse(info.body)
|
let data = JSON.parse(info.body)
|
||||||
console.log('id对比', this.detailUav.id, data.payloadId);
|
console.log('id对比', this.detailUav.id, data.payloadId);
|
||||||
// && this.detailUav.id === data.payloadId
|
|
||||||
if (this.detailUav.visible && this.detailUav.id === data.jobId) {
|
if (this.detailUav.visible && this.detailUav.id === data.jobId) {
|
||||||
let channel1False = []
|
let channel1False = []
|
||||||
let channel1Real = []
|
let channel1Real = []
|
||||||
|
|||||||
@ -405,6 +405,14 @@
|
|||||||
height: calc(100vh - 620px);
|
height: calc(100vh - 620px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.detail-uav-wrap {
|
||||||
|
width: 430px;
|
||||||
|
position: fixed;
|
||||||
|
bottom: 5px;
|
||||||
|
right: 10px;
|
||||||
|
height: calc(100vh - 60px);
|
||||||
|
}
|
||||||
|
|
||||||
.detail-info {
|
.detail-info {
|
||||||
width: 460px;
|
width: 460px;
|
||||||
//position: fixed;
|
//position: fixed;
|
||||||
@ -1174,8 +1182,8 @@
|
|||||||
|
|
||||||
|
|
||||||
.detail-uav {
|
.detail-uav {
|
||||||
width: 460px;
|
width: 410px;
|
||||||
position: fixed;
|
// position: fixed;
|
||||||
top: 60px;
|
top: 60px;
|
||||||
//bottom: 5px;
|
//bottom: 5px;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
@ -1185,6 +1193,10 @@
|
|||||||
transition: 0.2s ease-in-out;
|
transition: 0.2s ease-in-out;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
|
||||||
|
::v-deep .dt-card__header {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.detail-uav__content {
|
.detail-uav__content {
|
||||||
padding-right: 8px;
|
padding-right: 8px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|||||||
@ -77,10 +77,7 @@
|
|||||||
>
|
>
|
||||||
<div class="left-part">
|
<div class="left-part">
|
||||||
<!-- <div class="task-progress-bar" :style="'width: ' + item.uavCompletion +'%;'"></div>-->
|
<!-- <div class="task-progress-bar" :style="'width: ' + item.uavCompletion +'%;'"></div>-->
|
||||||
<div
|
<div class="execute-info">
|
||||||
class="execute-info"
|
|
||||||
@click.stop="openTaskLineDetail(item)"
|
|
||||||
>
|
|
||||||
<span
|
<span
|
||||||
class="execute-type-icon"
|
class="execute-type-icon"
|
||||||
:class="'execute-state-' + item.status"
|
:class="'execute-state-' + item.status"
|
||||||
@ -344,6 +341,7 @@
|
|||||||
</right-slide>
|
</right-slide>
|
||||||
|
|
||||||
<!-- 详情 -->
|
<!-- 详情 -->
|
||||||
|
<right-slide class="detail-uav-wrap" v-if="detailUav.visible">
|
||||||
<dt-card
|
<dt-card
|
||||||
:class="{
|
:class="{
|
||||||
'detail-uav': true,
|
'detail-uav': true,
|
||||||
@ -451,6 +449,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</dt-card>
|
</dt-card>
|
||||||
|
</right-slide>
|
||||||
|
|
||||||
<dt-dialog
|
<dt-dialog
|
||||||
:title="taskLineDetail.title"
|
:title="taskLineDetail.title"
|
||||||
|
|||||||
@ -443,7 +443,8 @@ export default {
|
|||||||
visible: false,
|
visible: false,
|
||||||
data: [],
|
data: [],
|
||||||
boatTypeLegend: []
|
boatTypeLegend: []
|
||||||
}
|
},
|
||||||
|
moveInfoBar: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -1522,7 +1523,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
//#endregion
|
//#endregion
|
||||||
|
sarChange(val) {
|
||||||
|
this.moveInfoBar = val
|
||||||
|
},
|
||||||
|
|
||||||
//#region ais船
|
//#region ais船
|
||||||
getAisData() {
|
getAisData() {
|
||||||
|
|||||||
@ -66,6 +66,7 @@
|
|||||||
width: 300px;
|
width: 300px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
|
|
||||||
.message-title {
|
.message-title {
|
||||||
height: 30px;
|
height: 30px;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -74,16 +75,19 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border-bottom: 1px solid $--color-black-3;
|
border-bottom: 1px solid $--color-black-3;
|
||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
|
|
||||||
>span {
|
>span {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: $--color-text-1;
|
color: $--color-text-1;
|
||||||
}
|
}
|
||||||
|
|
||||||
>i {
|
>i {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: $--color-text-1;
|
color: $--color-text-1;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.message-body {
|
.message-body {
|
||||||
//height: 50px;
|
//height: 50px;
|
||||||
|
|
||||||
@ -95,10 +99,12 @@
|
|||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
.el-textarea {
|
.el-textarea {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
margin: 0 10px;
|
margin: 0 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
>i {
|
>i {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: $--color-text-1;
|
color: $--color-text-1;
|
||||||
@ -106,12 +112,14 @@
|
|||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.message-send {
|
.message-send {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
|
||||||
.el-button {
|
.el-button {
|
||||||
margin: 0 10px;
|
margin: 0 10px;
|
||||||
}
|
}
|
||||||
@ -124,3 +132,7 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.info-bar-show {
|
||||||
|
right: 430px;
|
||||||
|
}
|
||||||
|
|||||||
@ -37,6 +37,7 @@
|
|||||||
ref="twinSituation"
|
ref="twinSituation"
|
||||||
v-if="menus.situation.active"
|
v-if="menus.situation.active"
|
||||||
:visible.sync="menus.situation.active"
|
:visible.sync="menus.situation.active"
|
||||||
|
@sar-change="sarChange"
|
||||||
></twin-situation>
|
></twin-situation>
|
||||||
<task-manage
|
<task-manage
|
||||||
v-if="menus.taskManage.active"
|
v-if="menus.taskManage.active"
|
||||||
@ -58,8 +59,11 @@
|
|||||||
v-if="menus.userList.active"
|
v-if="menus.userList.active"
|
||||||
:visible.sync="menus.userList.active"
|
:visible.sync="menus.userList.active"
|
||||||
></user-list>
|
></user-list>
|
||||||
<info-bar v-if="menus.situation.active || menus.taskManage.active" />
|
|
||||||
|
|
||||||
|
<info-bar
|
||||||
|
:class="{ 'info-bar-show': moveInfoBar }"
|
||||||
|
v-if="menus.situation.active || menus.taskManage.active"
|
||||||
|
/>
|
||||||
<!-- 遮罩 -->
|
<!-- 遮罩 -->
|
||||||
<!-- <dt-loading :visible="loadingCount > 0"></dt-loading> -->
|
<!-- <dt-loading :visible="loadingCount > 0"></dt-loading> -->
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user