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 个修改的文件
包含
63 行增加
和
30 行删除
+63
-30
index.vue
...List/components/timedTask/components/flightPlan/index.vue
+13
-11
index.vue
...Left/components/airwayList/components/timedTask/index.vue
+49
-18
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
...
@@ -211,17 +211,19 @@ export default {
...
@@ -211,17 +211,19 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.task-add
::v-deep
{
.task-add
::v-deep
{
min-height
:
232px
;
min-height
:
232px
;
position
:
fixed
;
position
:
fixed
;
top
:
20%
;
/* 设置为 0 */
max-height
:
400px
;
left
:
0
;
/* 设置为 0 */
top
:
-24%
;
right
:
0
;
/* 设置为 0 */
overflow-y
:
auto
;
bottom
:
0
;
/* 设置为 0 */
left
:
0
;
margin
:
auto
;
/* 自动边距实现居中 */
right
:
0
;
width
:
660px
;
bottom
:
0
;
z-index
:
1
;
margin
:
auto
;
display
:
flex
;
width
:
660px
;
flex-direction
:
column
;
z-index
:
1
;
gap
:
5px
;
display
:
flex
;
flex-direction
:
column
;
gap
:
5px
;
.task-add-header
{
.task-add-header
{
flex-shrink
:
0
;
flex-shrink
:
0
;
...
...
src/components/MMCFlightControlCenter/components/hangar/components/controlPanel/components/controlLeft/components/airwayList/components/timedTask/index.vue
浏览文件 @
fc9367c8
...
@@ -58,7 +58,11 @@
...
@@ -58,7 +58,11 @@
</div>
</div>
<div
class=
"row__column flex2 ctrl"
>
<div
class=
"row__column flex2 ctrl"
>
<el-tooltip
content=
"查看"
placement=
"top"
>
<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>
<el-tooltip
content=
"计划安排"
placement=
"top"
>
<el-tooltip
content=
"计划安排"
placement=
"top"
>
<i
class=
"el-icon-date"
@
click=
"onOpenPlan(item)"
></i>
<i
class=
"el-icon-date"
@
click=
"onOpenPlan(item)"
></i>
...
@@ -129,6 +133,8 @@ export default {
...
@@ -129,6 +133,8 @@ export default {
timeHandle
:
null
,
timeHandle
:
null
,
selectedTask
:
null
,
//选中的任务
selectedTask
:
null
,
//选中的任务
loading
:
false
,
loading
:
false
,
executeFlightRouteId
:
null
,
airwayId
:
null
,
};
};
},
},
computed
:
{
computed
:
{
...
@@ -147,6 +153,10 @@ export default {
...
@@ -147,6 +153,10 @@ export default {
type
:
{
type
:
{
immediate
:
true
,
immediate
:
true
,
handler
()
{
handler
()
{
// 切换任务列表时清空航线
this
.
clearAirwayEntities
();
this
.
airwayId
=
null
;
this
.
executeFlightRouteId
=
null
;
this
.
rootNode
.
$emit
(
"hangarTaskTabChange"
,
{
this
.
rootNode
.
$emit
(
"hangarTaskTabChange"
,
{
type
:
this
.
type
,
type
:
this
.
type
,
});
});
...
@@ -196,23 +206,36 @@ export default {
...
@@ -196,23 +206,36 @@ export default {
/**
/**
* 更新任务列表
* 更新任务列表
*/
*/
getTaskList
()
{
getTaskList
()
{
this
.
rootNode
.
$emit
(
"taskListGet"
,
{
const
params
=
{
pageNo
:
1
,
pageNo
:
1
,
pageSize
:
100
,
pageSize
:
100
,
type
:
this
.
type
,
// 0: 日常任务 1.定时任务 2.周期任务
type
:
this
.
type
,
// 0: 日常任务, 1: 定时任务, 2: 周期任务
taskStatus
:
11
,
//筛选掉审核未通过的
taskStatus
:
11
,
// 筛选掉审核未通过的
hangar
:
this
.
hangar
,
hangar
:
this
.
hangar
,
putDevice
:
2
,
putDevice
:
2
,
callback
:
(
res
)
=>
{
callback
:
this
.
handleTaskListResponse
.
bind
(
this
),
if
(
res
.
taskType
==
this
.
type
)
{
};
this
.
taskListAll
=
res
.
records
||
[];
}
else
{
this
.
rootNode
.
$emit
(
"taskListGet"
,
params
);
this
.
taskListAll
=
[];
},
}
},
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 {
...
@@ -225,11 +248,19 @@ export default {
);
);
if
(
find
)
{
if
(
find
)
{
this
.
clearAirwayEntities
({
id
:
airway
.
id
});
this
.
clearAirwayEntities
({
id
:
airway
.
id
});
if
(
this
.
airwayId
!=
airway
.
id
)
{
this
.
createAirwayEntities
({
polyline
:
airway
.
content
,
id
:
airway
.
id
,
});
this
.
airwayId
=
airway
.
id
;
}
}
else
{
}
else
{
this
.
createAirwayEntities
({
this
.
createAirwayEntities
({
polyline
:
airway
.
content
,
polyline
:
airway
.
content
,
id
:
airway
.
id
,
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 {
...
@@ -301,7 +301,7 @@ export default {
position
:
fixed
;
position
:
fixed
;
width
:
670px
;
width
:
670px
;
height
:
143px
;
height
:
143px
;
top
:
2
0%
;
/* 设置为 0 */
top
:
-5
0%
;
/* 设置为 0 */
left
:
0
;
/* 设置为 0 */
left
:
0
;
/* 设置为 0 */
right
:
0
;
/* 设置为 0 */
right
:
0
;
/* 设置为 0 */
bottom
:
0
;
/* 设置为 0 */
bottom
:
0
;
/* 设置为 0 */
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论