Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
mmc-stl-vue2
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
mmc-stl-vue2
Commits
773179eb
提交
773179eb
authored
11月 01, 2024
作者:
翁进城
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: mock飞机屏蔽任务结束提示
上级
6d36ef3a
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
36 行增加
和
34 行删除
+36
-34
index.vue
...onents/MMCFlightControlCenter/components/hangar/index.vue
+22
-22
index.vue
...CFlightControlCenter/components/uavApplications/index.vue
+14
-12
没有找到文件。
src/components/MMCFlightControlCenter/components/hangar/index.vue
浏览文件 @
773179eb
...
...
@@ -19,40 +19,40 @@ export default {
ControlPanel
,
},
data
()
{
return
{};
},
computed
:
{
...
mapState
(
"MMCFlightControlCenter/hangar"
,
[
"showPanel"
,
"hangar"
]),
...
mapState
(
"MMCFlightControlCenter/uav"
,
[
"uavRealTimeData"
]),
...
mapState
(
"MMCFlightControlCenter/uav"
,
[
"uav
"
,
"uav
RealTimeData"
]),
},
watch
:
{
'uavRealTimeData.isFlying'
(
newVal
,
oldVal
)
{
"uavRealTimeData.isFlying"
(
newVal
,
oldVal
)
{
// 监听飞机降落然后进行任务结束的提示
if
(
oldVal
===
true
&&
newVal
===
false
)
{
this
.
$alert
(
'当前任务已结束'
,
'提示'
,
{
t
ype
:
'success '
,
confirmButtonText
:
'确定'
,
callback
:
action
=>
{
},
});
setTimeout
(()
=>
{
const
dialog
=
document
.
querySelector
(
'.el-message-box__wrapper'
);
if
(
dialog
)
{
const
closeButton
=
dialog
.
querySelector
(
'.el-button'
);
if
(
oldVal
===
true
&&
newVal
===
false
)
{
if
(
!
this
.
uav
.
deviceId
.
include
(
"mock"
))
{
t
his
.
$alert
(
"当前任务已结束"
,
"提示"
,
{
type
:
"success "
,
confirmButtonText
:
"确定"
,
callback
:
(
action
)
=>
{
},
});
setTimeout
(()
=>
{
const
dialog
=
document
.
querySelector
(
".el-message-box__wrapper"
);
if
(
dialog
)
{
const
closeButton
=
dialog
.
querySelector
(
".el-button"
);
if
(
closeButton
)
{
closeButton
.
click
();
closeButton
.
click
();
}
}
},
3000
);
}
},
3000
);
}
}
}
}
,
},
beforeDestroy
()
{
this
.
$store
.
commit
(
'MMCFlightControlCenter/setState'
,
{
key
:
'listCollapse'
,
value
:
false
})
this
.
$store
.
commit
(
"MMCFlightControlCenter/setState"
,
{
key
:
"listCollapse"
,
value
:
false
,
})
;
},
};
</
script
>
...
...
src/components/MMCFlightControlCenter/components/uavApplications/index.vue
浏览文件 @
773179eb
...
...
@@ -39,20 +39,22 @@ export default {
"uavRealTimeData.isFlying"
(
newVal
,
oldVal
)
{
// 监听飞机降落然后进行任务结束的提示
if
(
oldVal
===
true
&&
newVal
===
false
)
{
this
.
$alert
(
"当前任务已结束"
,
"提示"
,
{
type
:
"success "
,
confirmButtonText
:
"确定"
,
callback
:
(
action
)
=>
{
},
});
setTimeout
(()
=>
{
const
dialog
=
document
.
querySelector
(
'.el-message-box__wrapper'
);
if
(
dialog
)
{
const
closeButton
=
dialog
.
querySelector
(
'.el-button'
);
if
(
!
this
.
uav
.
deviceId
.
include
(
"mock"
))
{
this
.
$alert
(
"当前任务已结束"
,
"提示"
,
{
type
:
"success "
,
confirmButtonText
:
"确定"
,
callback
:
(
action
)
=>
{},
});
setTimeout
(()
=>
{
const
dialog
=
document
.
querySelector
(
".el-message-box__wrapper"
);
if
(
dialog
)
{
const
closeButton
=
dialog
.
querySelector
(
".el-button"
);
if
(
closeButton
)
{
closeButton
.
click
();
closeButton
.
click
();
}
}
},
3000
);
}
},
3000
);
}
}
},
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论