Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
王刘锁
/
jianlin-tms-view
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4c62281d
authored
Nov 22, 2022
by
王刘锁
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
类型
parent
36d81ad2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
1 deletions
src/api/taskPlan/TaskChainList.js
src/views/modules/taskPlan/taskChainList/index.vue
src/api/taskPlan/TaskChainList.js
View file @
4c62281d
...
...
@@ -26,6 +26,15 @@ export default class TaskChainList {
});
}
// 任务执行清单状态
priorityChange
(
data
)
{
return
request
({
url
:
`/task/taskList/updateByPriority`
,
method
:
"post"
,
data
,
});
}
//任务执行清单队列删除
setdeleteById
(
data
)
{
return
request
({
...
...
src/views/modules/taskPlan/taskChainList/index.vue
View file @
4c62281d
...
...
@@ -54,7 +54,10 @@
<span
v-else-if=
"scope.row.taskStatus === '5'"
style=
"color: #249601;font-weight: bold;"
>
队列中
</span>
</
template
>
</vxe-column>
<vxe-column
field=
"source_dictText"
title=
"来源"
align=
"center"
></vxe-column>
<vxe-column
field=
"orderEntity.start"
title=
"起点"
align=
"center"
></vxe-column>
<vxe-column
field=
"orderEntity.ends"
title=
"终点"
align=
"center"
></vxe-column>
<vxe-column
title=
"指令集"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-tooltip
placement=
"top"
v-if=
"scope.row.orderEntity"
>
...
...
@@ -72,7 +75,16 @@
</el-tooltip>
</
template
>
</vxe-column>
<vxe-column
field=
"priority"
title=
"优先级"
align=
"center"
></vxe-column>
<vxe-column
field=
"priority"
title=
"优先级"
align=
"center"
>
</vxe-column>
<vxe-column
title=
"优先级"
field=
"priority"
width=
"170px"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-input-number
size=
"small"
v-model=
"scope.row.priority"
@
change=
"priorityChange(scope.row)"
:step=
"1"
:min=
"0"
:max=
"99"
label=
"设置优先级"
></el-input-number>
</
template
>
</vxe-column>
<vxe-column
field=
"createDate"
title=
"创建时间"
align=
"center"
></vxe-column>
<vxe-column
field=
"beginAt"
title=
"执行开始时间"
align=
"center"
></vxe-column>
<vxe-column
field=
"finishAt"
title=
"执行结束时间"
align=
"center"
></vxe-column>
...
...
@@ -217,6 +229,19 @@ export default {
this
.
subtaskData
=
data
})
},
priorityChange
(
row
)
{
this
.
loading
=
true
this
.
TaskChainList
.
priorityChange
({
id
:
row
.
id
,
priority
:
row
.
priority
}).
then
(({
data
})
=>
{
this
.
$message
({
message
:
data
.
msg
,
type
:
'success'
,
duration
:
1500
})
this
.
loading
=
false
this
.
refreshList
()
})
},
// 设置任务状态
async
setTaskStatus
(
row
,
taskStatus
)
{
const
can
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment