Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
mmc-stl-vue2
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
mmc-stl-vue2
Commits
27ef7b71
提交
27ef7b71
authored
12月 14, 2024
作者:
翁进城
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 周期任务创建增加任务库
上级
4c0ddfaa
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
62 行增加
和
10 行删除
+62
-10
index.vue
...eft/components/airwayList/components/normalTask/index.vue
+4
-3
index.vue
...ayList/components/periodTask/components/taskAdd/index.vue
+54
-3
index.vue
...wayList/components/timedTask/components/taskAdd/index.vue
+3
-3
index.vue
...el/components/controlLeft/components/airwayList/index.vue
+1
-1
没有找到文件。
src/components/MMCFlightControlCenter/components/hangar/components/controlPanel/components/controlLeft/components/airwayList/components/normalTask/index.vue
浏览文件 @
27ef7b71
...
...
@@ -154,9 +154,10 @@ export default {
this
.
rootNode
.
$emit
(
"taskListGet"
,
{
pageNo
:
1
,
pageSize
:
100
,
type
:
0
,
isHangar
:
true
,
hangar
:
null
,
// type: 0,
// isHangar: true,
hangar
:
this
.
hangar
,
// taskStatus: 1,
callback
:
(
res
)
=>
{
this
.
taskList
=
res
?.
records
||
[];
this
.
$nextTick
(()
=>
{
...
...
src/components/MMCFlightControlCenter/components/hangar/components/controlPanel/components/controlLeft/components/airwayList/components/periodTask/components/taskAdd/index.vue
浏览文件 @
27ef7b71
...
...
@@ -32,6 +32,19 @@
value-format=
"HH:mm:ss"
></el-time-picker>
</el-form-item>
<el-form-item
label=
"任务库"
prop=
"taskId"
>
<el-select
v-model=
"form.taskId"
clearable
size=
"mini"
popper-class=
"mmc"
@
change=
"onTaskChange()"
placeholder=
"请选择任务"
v-if=
"useTask"
>
<el-option
v-for=
"(item , i) in taskList"
:label=
"item.name"
:value=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"航线名称"
prop=
"airwayId"
>
<el-select
v-model=
"form.airwayId"
size=
"mini"
popper-class=
"mmc"
style=
"width:100%"
>
<el-option
:label=
"item.name"
:value=
"item.id"
v-for=
"(item, index) in airwayList"
></el-option>
...
...
@@ -58,6 +71,7 @@ export default {
date
:
[],
time
:
[
"00:00:00"
,
"23:59:59"
],
airwayId
:
""
,
taskId
:
""
,
},
rules
:
{
date
:
[{
required
:
true
,
message
:
"请选择日期"
,
trigger
:
"blur"
}],
...
...
@@ -71,12 +85,13 @@ export default {
},
},
airwayList
:
[],
//航线列表
taskList
:
[],
//任务列表
confirmLoading
:
false
,
};
},
computed
:
{
...
mapState
(
"MMCFlightControlCenter/hangar"
,
[
"hangar"
]),
...
mapState
(
"MMCFlightControlCenter"
,
[
"airwayEntities"
,
"useSTLAirway"
]),
...
mapState
(
"MMCFlightControlCenter"
,
[
"airwayEntities"
,
"useSTLAirway"
,
"useTask"
]),
/**
* 选择的日常任务数据
*/
...
...
@@ -153,6 +168,16 @@ export default {
},
});
}
this
.
rootNode
.
$emit
(
"taskListGet"
,
{
pageNo
:
1
,
pageSize
:
100
,
// type: 2,
hangar
:
this
.
hangar
,
// taskStatus: 1,
callback
:
(
res
)
=>
{
this
.
taskList
=
res
?.
records
||
[];
},
});
},
methods
:
{
...
mapActions
(
"MMCFlightControlCenter"
,
[
...
...
@@ -165,7 +190,10 @@ export default {
onConfirm
()
{
this
.
$refs
[
"form"
].
validate
((
valid
)
=>
{
let
form
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
));
form
.
time
=
[
`
${
form
.
date
[
0
]}
${
form
.
time
[
0
]}
`
,
`
${
form
.
date
[
1
]}
${
form
.
time
[
1
]}
`
];
form
.
time
=
[
`
${
form
.
date
[
0
]}
${
form
.
time
[
0
]}
`
,
`
${
form
.
date
[
1
]}
${
form
.
time
[
1
]}
`
,
];
if
(
valid
)
{
this
.
confirmLoading
=
true
;
this
.
rootNode
.
$emit
(
"taskBatchAdd"
,
{
...
...
@@ -185,13 +213,36 @@ export default {
}
});
},
/**
* 任务更改事件
*/
onTaskChange
()
{
let
find
=
this
.
taskList
.
find
((
item1
)
=>
{
return
item1
.
id
==
this
.
form
.
taskId
;
});
if
(
find
)
{
let
findAirway
=
this
.
airwayList
.
find
((
item1
)
=>
{
return
item1
.
id
===
find
.
airwayId
;
});
if
(
findAirway
)
{
this
.
form
.
airwayId
=
find
.
airwayId
;
return
;
}
}
// 找不到航线
this
.
form
.
airwayId
=
""
;
this
.
form
.
taskId
=
""
;
this
.
$message
.
warning
(
"未找到相应的航线"
);
},
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
.task-add
{
height
:
286px
;
min-
height
:
286px
;
background
:
rgba
(
9
,
32
,
87
,
0.7
);
//
border
:
1px
solid
#70daf9
;
position
:
absolute
;
...
...
src/components/MMCFlightControlCenter/components/hangar/components/controlPanel/components/controlLeft/components/airwayList/components/timedTask/components/taskAdd/index.vue
浏览文件 @
27ef7b71
...
...
@@ -107,9 +107,9 @@ export default {
this
.
rootNode
.
$emit
(
"taskListGet"
,
{
pageNo
:
1
,
pageSize
:
100
,
type
:
1
,
isHangar
:
true
,
hangar
:
null
,
//
type: 1,
hangar
:
this
.
hangar
,
// taskStatus: 1
,
callback
:
(
res
)
=>
{
this
.
taskList
=
res
?.
records
||
[];
},
...
...
src/components/MMCFlightControlCenter/components/uavApplications/components/controlPanel/components/controlLeft/components/airwayList/index.vue
浏览文件 @
27ef7b71
...
...
@@ -187,7 +187,7 @@ export default {
this
.
rootNode
.
$emit
(
"taskListGet"
,
{
pageNo
:
1
,
pageSize
:
100
,
taskStatus
:
1
,
// 任务状态 0:待审批 1:待执行 2:执行中 3:执行完成 4:审批不通过
//
taskStatus: 1, // 任务状态 0:待审批 1:待执行 2:执行中 3:执行完成 4:审批不通过
callback
:
(
res
)
=>
{
this
.
taskList
=
res
?.
records
||
[];
this
.
$nextTick
(()
=>
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论