提交 3b3ac518 作者: 温凯

Merge branch 'v4' of ssh://git.mmcuav.cn:8222/root/mmc-stl-vue2 into v4

This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -9,6 +9,7 @@
:useSTLAirway="useSTLAirway"
:useTimedTask="useTimedTask"
:useTask="useTask"
:showVideoPanel="showVideoPanel"
@tokenInvalid="dispatchEvent('tokenInvalid')"
@refreshToken="dispatchEvent('refreshToken', $event)"
@uavChange="dispatchEvent('uavChange', $event)"
......@@ -55,6 +56,7 @@ export default {
taskListGetCB: null, //获取任务数据回调
useTask: false, //使用任务进行航线选择
callbackList: {},
showVideoPanel: false, //无人机是否展示视频面板
};
},
computed: {},
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -74,7 +74,7 @@
</div>
</div>
<div class="device-fns">
<div
<div v-if="showVideoPanel"
class="iconfont icon-luxiang_xianxing"
:class="{ active: uav && device.deviceId === uav.deviceId && uav.showPlayer }"
title="视频"
......@@ -158,6 +158,7 @@ export default {
"userInfo",
"showAirwayEdit",
"deptId",
'showVideoPanel',
]),
},
watch: {
......
......@@ -75,6 +75,12 @@ export default {
type: Boolean,
default: false,
},
//使用视频面板
showVideoPanel:{
type: Boolean,
default: false,
},
userInfo: {
type: Object,
default() {
......@@ -194,6 +200,17 @@ export default {
});
},
},
showVideoPanel: {
immediate: true,
handler(newVal) {
this.$store.commit("MMCFlightControlCenter/setState", {
key: "showVideoPanel",
value: newVal,
});
},
},
},
beforeCreate() {
crashMonitor({
......
......@@ -43,6 +43,7 @@ export default {
useSTLAirway: true, //是否使用标准航线库
useTimedTask: false, //是否使用定时任务
useTask: false, //使用任务进行航线选择
showVideoPanel: false, //显示视频面板
baseUrl: '', //api请求的base url
wsUrl: '', //websocket的url
mqttUrl: '', //无人机的mqtt地址
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论