Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
mmc-stl-vue2
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
mmc-stl-vue2
Commits
94a3c6b7
提交
94a3c6b7
authored
12月 30, 2024
作者:
温凯
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:挂载控制添加权限判断
上级
0673a9bb
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
36 行增加
和
25 行删除
+36
-25
index.vue
...lPanel/components/controlRight/components/mount/index.vue
+35
-24
index.vue
...components/controlPanel/components/controlRight/index.vue
+1
-1
没有找到文件。
src/components/MMCFlightControlCenter/components/uavApplications/components/controlPanel/components/controlRight/components/mount/index.vue
浏览文件 @
94a3c6b7
...
...
@@ -2,15 +2,10 @@
<div
class=
"mountBox"
>
<div
class=
"main"
v-if=
"show"
>
<div
v-if=
"mountList.length > 0"
class=
"list"
>
<div
class=
"mount-item pr mt6"
:class=
"
{
active:
(selectMount
&&
selectMount.gimbalName) === item.gimbalName,
}"
v-for="(item, index) in mountList"
:key="index"
>
<div
class=
"mount-item pr mt6"
:class=
"
{
active:
(selectMount
&&
selectMount.gimbalName) === item.gimbalName,
}" v-for="(item, index) in mountList" :key="index">
<div
class=
"icon-box"
@
click=
"onSelectMount(item)"
>
<img
class
:src=
"item.icon"
/>
</div>
...
...
@@ -18,17 +13,9 @@
</div>
</div>
<template
v-if=
"selectMount"
>
<component
:is=
"selectMount.gimbalName"
v-if=
"selectMount"
class=
"mount-panel"
:keyFlag=
"nxNormal"
:payload_data=
"selectMountPayload"
@
directive=
"mountDirective"
@
take_photo=
"mountTakePhoto"
@
record=
"mountRecord"
@
close=
"mountClose"
/>
<component
:is=
"selectMount.gimbalName"
v-if=
"selectMount"
class=
"mount-panel"
:keyFlag=
"nxNormal"
:payload_data=
"selectMountPayload"
@
directive=
"mountDirective"
@
take_photo=
"mountTakePhoto"
@
record=
"mountRecord"
@
close=
"mountClose"
/>
</
template
>
</div>
</template>
...
...
@@ -48,6 +35,11 @@ export default {
...
mountComponents
,
},
props
:
{
// 是否机库页面使用
isHangar
:
{
type
:
Boolean
,
default
:
false
,
},
show
:
{
type
:
Boolean
,
default
:
false
,
...
...
@@ -78,11 +70,30 @@ export default {
return
this
.
uavRealTimeData
?.
healthData
?.
NX
?.
warningLevel
===
"NORMAL"
;
},
},
created
()
{},
mounted
()
{},
beforeDestroy
()
{},
created
()
{
},
mounted
()
{
},
beforeDestroy
()
{
},
methods
:
{
onSelectMount
(
item
)
{
/**
* 接管判断, 机库模块中不需要判断接管
*/
async
isTakeOver
()
{
if
(
this
.
isHangar
)
{
return
await
this
.
$store
.
dispatch
(
"MMCFlightControlCenter/hangar/isTakeOver"
);
}
else
{
return
await
this
.
$store
.
dispatch
(
"MMCFlightControlCenter/uav/isTakeOver"
);
}
},
async
onSelectMount
(
item
)
{
// 判断是否已接管
if
(
!
(
await
this
.
isTakeOver
()))
{
this
.
$message
.
warning
(
"请先接管设备"
);
return
;
}
this
.
$store
.
commit
(
"MMCFlightControlCenter/uav/setState"
,
{
key
:
"selectMount"
,
value
:
item
,
...
...
src/components/MMCFlightControlCenter/components/uavApplications/components/controlPanel/components/controlRight/index.vue
浏览文件 @
94a3c6b7
...
...
@@ -30,7 +30,7 @@
<ControlList
@
clearId=
"$emit('clearId')"
@
closeIconShow=
"iconShow = false"
@
exit=
"showControlList = false"
:show=
"showControlList"
:isHangar=
"isHangar"
></ControlList>
<Health
v-if=
"showHealth"
@
exit=
"showHealth = false"
></Health>
<Mount
v-if=
"showMount"
:show=
"showMount"
></Mount>
<Mount
v-if=
"showMount"
:isHangar=
"isHangar"
:show=
"showMount"
></Mount>
<!-- 喊话器 -->
<MMCGimbalP1
class=
"PagerP1"
v-show=
"showMMCGimbalP1"
ref=
"MMCGimbalP1"
@
close=
"showMMCGimbalP1 = false"
/>
<MountController
@
webscoketFn=
"(data) => fun(data)"
v-if=
"uav && uav.deviceId"
ref=
"MountControllerRef"
/>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论