Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
mmc-stl-vue2
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
mmc-stl-vue2
Commits
fc9367c8
提交
fc9367c8
authored
1月 14, 2025
作者:
温凯
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:任务库处理
上级
a4fd3ae7
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
49 行增加
和
16 行删除
+49
-16
index.vue
...List/components/timedTask/components/flightPlan/index.vue
+7
-5
index.vue
...Left/components/airwayList/components/timedTask/index.vue
+41
-10
index.vue
...Panel/components/controlRight/components/logger/index.vue
+1
-1
没有找到文件。
src/components/MMCFlightControlCenter/components/hangar/components/controlPanel/components/controlLeft/components/airwayList/components/timedTask/components/flightPlan/index.vue
浏览文件 @
fc9367c8
...
...
@@ -212,11 +212,13 @@ export default {
.task-add
::v-deep
{
min-height
:
232px
;
position
:
fixed
;
top
:
20%
;
/* 设置为 0 */
left
:
0
;
/* 设置为 0 */
right
:
0
;
/* 设置为 0 */
bottom
:
0
;
/* 设置为 0 */
margin
:
auto
;
/* 自动边距实现居中 */
max-height
:
400px
;
top
:
-24%
;
overflow-y
:
auto
;
left
:
0
;
right
:
0
;
bottom
:
0
;
margin
:
auto
;
width
:
660px
;
z-index
:
1
;
display
:
flex
;
...
...
src/components/MMCFlightControlCenter/components/hangar/components/controlPanel/components/controlLeft/components/airwayList/components/timedTask/index.vue
浏览文件 @
fc9367c8
...
...
@@ -58,7 +58,11 @@
</div>
<div
class=
"row__column flex2 ctrl"
>
<el-tooltip
content=
"查看"
placement=
"top"
>
<i
class=
"el-icon-position"
style
@
click=
"onSwitchAirway(item)"
></i>
<i
class=
"el-icon-position"
style
@
click=
"onSwitchAirway(item, true)"
></i>
</el-tooltip>
<el-tooltip
content=
"计划安排"
placement=
"top"
>
<i
class=
"el-icon-date"
@
click=
"onOpenPlan(item)"
></i>
...
...
@@ -129,6 +133,8 @@ export default {
timeHandle
:
null
,
selectedTask
:
null
,
//选中的任务
loading
:
false
,
executeFlightRouteId
:
null
,
airwayId
:
null
,
};
},
computed
:
{
...
...
@@ -147,6 +153,10 @@ export default {
type
:
{
immediate
:
true
,
handler
()
{
// 切换任务列表时清空航线
this
.
clearAirwayEntities
();
this
.
airwayId
=
null
;
this
.
executeFlightRouteId
=
null
;
this
.
rootNode
.
$emit
(
"hangarTaskTabChange"
,
{
type
:
this
.
type
,
});
...
...
@@ -197,22 +207,35 @@ export default {
* 更新任务列表
*/
getTaskList
()
{
this
.
rootNode
.
$emit
(
"taskListGet"
,
{
const
params
=
{
pageNo
:
1
,
pageSize
:
100
,
type
:
this
.
type
,
// 0: 日常任务 1.定时任务 2.
周期任务
taskStatus
:
11
,
//
筛选掉审核未通过的
type
:
this
.
type
,
// 0: 日常任务, 1: 定时任务, 2:
周期任务
taskStatus
:
11
,
//
筛选掉审核未通过的
hangar
:
this
.
hangar
,
putDevice
:
2
,
callback
:
(
res
)
=>
{
if
(
res
.
taskType
==
this
.
type
)
{
this
.
taskListAll
=
res
.
records
||
[];
}
else
{
callback
:
this
.
handleTaskListResponse
.
bind
(
this
),
};
this
.
rootNode
.
$emit
(
"taskListGet"
,
params
);
},
handleTaskListResponse
(
res
)
{
if
(
res
.
taskType
!==
this
.
type
||
res
.
records
.
length
===
0
)
{
this
.
taskListAll
=
[];
return
;
}
},
this
.
taskListAll
=
res
.
records
.
sort
((
a
,
b
)
=>
{
const
aIsExecuting
=
a
.
status
===
"执行中"
;
const
bIsExecuting
=
b
.
status
===
"执行中"
;
return
aIsExecuting
===
bIsExecuting
?
0
:
(
aIsExecuting
?
-
1
:
1
);
});
},
const
executeFlightRoute
=
this
.
taskListAll
.
find
(
item
=>
item
.
status
===
"执行中"
);
if
(
executeFlightRoute
&&
this
.
executeFlightRouteId
!==
executeFlightRoute
.
airwayId
)
{
this
.
executeFlightRouteId
=
executeFlightRoute
.
airwayId
;
this
.
onSwitchAirway
(
executeFlightRoute
);
}
},
/**
* 显示或隐藏航线
*/
...
...
@@ -225,11 +248,19 @@ export default {
);
if
(
find
)
{
this
.
clearAirwayEntities
({
id
:
airway
.
id
});
if
(
this
.
airwayId
!=
airway
.
id
)
{
this
.
createAirwayEntities
({
polyline
:
airway
.
content
,
id
:
airway
.
id
,
});
this
.
airwayId
=
airway
.
id
;
}
}
else
{
this
.
createAirwayEntities
({
polyline
:
airway
.
content
,
id
:
airway
.
id
,
});
this
.
airwayId
=
airway
.
id
;
}
},
});
...
...
src/components/MMCFlightControlCenter/components/hangar/components/controlPanel/components/controlRight/components/logger/index.vue
浏览文件 @
fc9367c8
...
...
@@ -301,7 +301,7 @@ export default {
position
:
fixed
;
width
:
670px
;
height
:
143px
;
top
:
2
0%
;
/* 设置为 0 */
top
:
-5
0%
;
/* 设置为 0 */
left
:
0
;
/* 设置为 0 */
right
:
0
;
/* 设置为 0 */
bottom
:
0
;
/* 设置为 0 */
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论