Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
mmc-stl-vue2
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
mmc-stl-vue2
Commits
c44f0c0a
提交
c44f0c0a
authored
1月 07, 2025
作者:
温凯
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:点击飞行计划弹框,运行监控日志或其他弹框需释放掉,不显示其他弹框
上级
678e084c
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
61 行增加
和
75 行删除
+61
-75
index.vue
...Left/components/airwayList/components/timedTask/index.vue
+39
-46
index.vue
...components/controlPanel/components/controlRight/index.vue
+21
-29
index.js
src/components/MMCFlightControlCenter/store/index.js
+1
-0
没有找到文件。
src/components/MMCFlightControlCenter/components/hangar/components/controlPanel/components/controlLeft/components/airwayList/components/timedTask/index.vue
浏览文件 @
c44f0c0a
...
...
@@ -6,44 +6,20 @@
<div
class=
"header__column status"
>
状态
</div>
<div
class=
"header__column flex2"
>
操作
</div>
</div>
<div
class=
"timed-task-main"
v-loading=
"loading"
element-loading-background=
"rgba(0, 0, 0, 0.8)"
>
<div
class=
"row"
:class=
"
{ single: i % 2 != 0 }"
v-for="(item, i) in taskListAll"
:key="item.id"
>
<div
class=
"timed-task-main"
v-loading=
"loading"
element-loading-background=
"rgba(0, 0, 0, 0.8)"
>
<div
class=
"row"
:class=
"
{ single: i % 2 != 0 }" v-for="(item, i) in taskListAll" :key="item.id">
<div
class=
"row__column flex2"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"item.name"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"item.name"
placement=
"top-start"
>
<span
class=
"f12"
>
{{
item
.
name
}}
</span>
</el-tooltip>
</div>
<div
class=
"row__column flex2 col-2"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"item.taskStartTime"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"item.taskStartTime"
placement=
"top-start"
>
<span
class=
"f9"
>
{{
item
.
taskStartTime
}}
</span>
</el-tooltip>
</div>
<div
class=
"row__column status"
style=
"color: rgb(255, 189, 54)"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"item.status"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"item.status"
placement=
"top-start"
>
<span
class=
"f12"
>
{{
item
.
status
}}
</span>
</el-tooltip>
</div>
...
...
@@ -55,17 +31,14 @@
<i
class=
"el-icon-date"
@
click=
"onOpenPlan(item)"
></i>
</el-tooltip>
<el-tooltip
content=
"编辑"
placement=
"top"
v
>
<i
class=
"el-icon-edit"
@
click=
"onOpenEdit(item)"
v-if=
"item.status !== '执行中' && item.status !== '已完成'"
></i>
<i
class=
"el-icon-edit"
@
click=
"onOpenEdit(item)"
v-if=
"item.status !== '执行中' && item.status !== '已完成'"
></i>
</el-tooltip>
<!--
<el-tooltip
content=
"开关"
placement=
"top"
>
<i
class=
"el-icon-turn-off"
></i>
</el-tooltip>
-->
<el-tooltip
content=
"删除"
placement=
"top"
>
<i
v-if=
"item.status !== '执行中' && item.status !== '已完成'"
class=
"el-icon-delete"
@
click=
"onDelAirway(item)"
></i>
<i
v-if=
"item.status !== '执行中' && item.status !== '已完成'"
class=
"el-icon-delete"
@
click=
"onDelAirway(item)"
></i>
</el-tooltip>
</div>
</div>
...
...
@@ -74,18 +47,9 @@
<div
class=
"task-add__btn"
@
click=
"showFlightPlan = true"
>
创建定时任务
</div>
</div>
-->
<FlightPlan
v-if=
"showFlightPlan"
:taskId=
"selectedTask.id"
:taskList=
"taskListAll"
@
close=
"showFlightPlan = false"
>
<FlightPlan
v-if=
"showFlightPlan"
:taskId=
"selectedTask.id"
:taskList=
"taskListAll"
@
close=
"showFlightPlan = false"
>
</FlightPlan>
<FlightEdit
v-if=
"showFlightEdit"
:task=
"selectedTask"
@
close=
"showFlightEdit = false"
></FlightEdit>
<FlightEdit
v-if=
"showFlightEdit"
:task=
"selectedTask"
@
close=
"showFlightEdit = false"
></FlightEdit>
</div>
</
template
>
...
...
@@ -140,6 +104,24 @@ export default {
this
.
getTaskList
();
},
},
showFlightEdit
:
{
handler
(
val
)
{
if
(
!
val
&&
!
this
.
showFlightPlan
)
{
this
.
changeflyLogStatus
(
false
)
}
else
{
this
.
changeflyLogStatus
(
true
)
}
}
},
showFlightPlan
:
{
handler
(
val
)
{
if
(
!
val
&&!
this
.
showFlightEdit
)
{
this
.
changeflyLogStatus
(
false
)
}
else
{
this
.
changeflyLogStatus
(
true
)
}
}
}
},
created
()
{
this
.
timeHandle
=
setInterval
(()
=>
{
...
...
@@ -155,6 +137,13 @@ export default {
"createAirwayEntities"
,
"clearAirwayEntities"
,
]),
// 改变飞行日志弹框状态
changeflyLogStatus
(
falg
)
{
this
.
$store
.
commit
(
"MMCFlightControlCenter/setState"
,
{
key
:
"flyLogStatus"
,
value
:
falg
,
});
},
/**
* 更新任务列表
*/
...
...
@@ -224,13 +213,17 @@ export default {
onOpenPlan
(
item
)
{
this
.
selectedTask
=
item
;
this
.
showFlightPlan
=
true
;
this
.
showFlightEdit
=
false
;
this
.
changeflyLogStatus
(
false
)
},
/**
* 打开飞行编辑
*/
onOpenEdit
(
item
)
{
this
.
selectedTask
=
item
;
this
.
showFlightPlan
=
false
;
this
.
showFlightEdit
=
true
;
this
.
changeflyLogStatus
(
false
)
},
},
};
...
...
src/components/MMCFlightControlCenter/components/hangar/components/controlPanel/components/controlRight/index.vue
浏览文件 @
c44f0c0a
<
template
>
<ControlRight
ref=
"controlRight"
isHangar
@
switchCallback=
"showHangar = false; showMonitor = false;"
>
<div
slot=
"hangar"
class=
"control-item"
:class=
"showHangar ? 'active' : ''"
@
click=
"onSwitchShow('showHangar')"
>
<ControlRight
ref=
"controlRight"
isHangar
@
switchCallback=
"showHangar = false; showMonitor = false;"
>
<div
slot=
"hangar"
class=
"control-item"
:class=
"showHangar ? 'active' : ''"
@
click=
"onSwitchShow('showHangar')"
>
<img
src=
"./assets/images/hangar.svg"
/>
<span
class=
"dib"
>
机库
</span>
</div>
...
...
@@ -21,25 +12,16 @@
<span
class=
"dialog-header__close"
@
click=
"showHangar = false;"
>
关闭
</span>
</div>
<div
class=
"hangar-ctrl-list"
>
<div
class=
"hangar-ctrl-item"
v-for=
"(item, i) in ctrlList"
:key=
"i"
@
click=
"onClickCMD(i)"
>
<div
class=
"hangar-ctrl-item"
v-for=
"(item, i) in ctrlList"
:key=
"i"
@
click=
"onClickCMD(i)"
>
<SymbolIcon
v-if=
"item.icon"
:icon=
"item.icon"
class=
"hangar-ctrl-item__icon"
/>
<img
v-else
:src=
"item.img"
class=
"hangar-ctrl-item__icon"
/>
<div
class=
"hangar-ctrl-item__title"
>
{{
item
.
label
}}
</div>
<div
class=
"hangar-ctrl-item__title"
>
{{
item
.
label
}}
</div>
</div>
</div>
</div>
<Logger
class=
"logger"
@
exit=
"showLogger = false"
v-if=
"showLogger"
></Logger>
<HangarMonitor
:uavMsg=
"uavRealTimeData.msg"
:weatherStation=
"hangarRealTimeData.weatherStation"
:hangarData=
"hangarRealTimeData"
v-if=
"showMonitor"
></HangarMonitor>
<HangarMonitor
:uavMsg=
"uavRealTimeData.msg"
:weatherStation=
"hangarRealTimeData.weatherStation"
:hangarData=
"hangarRealTimeData"
v-if=
"showMonitor"
></HangarMonitor>
</div>
</ControlRight>
</
template
>
...
...
@@ -120,11 +102,21 @@ export default {
};
},
computed
:
{
...
mapState
(
"MMCFlightControlCenter"
,
[
"showAirwayEdit"
]),
...
mapState
(
"MMCFlightControlCenter"
,
[
"showAirwayEdit"
,
"flyLogStatus"
]),
...
mapState
(
"MMCFlightControlCenter/uav"
,
[
"uavRealTimeData"
]),
...
mapState
(
"MMCFlightControlCenter/hangar"
,
[
"hangarRealTimeData"
]),
},
watch
:
{
flyLogStatus
:
{
handler
(
val
)
{
if
(
val
)
{
this
.
showLogger
=
false
}
else
{
this
.
showLogger
=
true
}
},
immediate
:
true
,
},
// 打开航线编辑时关闭所有窗口
showAirwayEdit
(
newVal
)
{
if
(
newVal
)
{
...
...
@@ -150,7 +142,7 @@ export default {
* 切换展示
*/
async
onSwitchShow
(
key
)
{
if
(
!
await
this
.
isTakeOver
())
{
if
(
!
await
this
.
isTakeOver
())
{
this
.
$message
.
warning
(
"请先接管设备"
);
return
;
}
...
...
@@ -163,7 +155,7 @@ export default {
* @param {number} i this.ctrlList被点击元素的索引
*/
async
onClickCMD
(
i
)
{
if
(
!
await
this
.
isTakeOver
())
{
if
(
!
await
this
.
isTakeOver
())
{
this
.
$message
.
warning
(
"请先接管设备"
);
return
;
}
...
...
@@ -221,8 +213,7 @@ export default {
justify-content
:
space-between
;
height
:
32px
;
.hangar-ctrl-header__title
{
}
.hangar-ctrl-header__title
{
}
.hangar-ctrl-header__close
{
font-size
:
14px
;
...
...
@@ -234,6 +225,7 @@ export default {
align-items
:
center
;
}
}
.hangar-ctrl-list
{
box-sizing
:
border-box
;
padding
:
8px
16px
14px
;
...
...
src/components/MMCFlightControlCenter/store/index.js
浏览文件 @
c44f0c0a
...
...
@@ -7,6 +7,7 @@ import { Utils } from "../lib/cesium";
export
default
{
namespaced
:
true
,
state
:
{
flyLogStatus
:
false
,
//飞行日志状态
devMode
:
false
,
//开发模式, 使用开发环境接口
token
:
""
,
//登录token
TenantId
:
""
,
//租户id
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论