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
96f9be17
authored
Nov 11, 2022
by
HUAWEI
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
111
parent
84c796aa
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
src/api/taskPlan/TaskChainList.js
src/views/modules/taskPlan/taskChainList/index.vue
src/api/taskPlan/TaskChainList.js
View file @
96f9be17
...
@@ -25,4 +25,13 @@ export default class TaskChainList {
...
@@ -25,4 +25,13 @@ export default class TaskChainList {
data
,
data
,
});
});
}
}
//任务执行清单队列删除
setdeleteById
(
data
)
{
return
request
({
url
:
`/task/taskList/deleteById`
,
method
:
"post"
,
data
,
});
}
}
}
src/views/modules/taskPlan/taskChainList/index.vue
View file @
96f9be17
...
@@ -119,6 +119,12 @@
...
@@ -119,6 +119,12 @@
v-if=
"scope.row.taskStatus === '1' && hasPermission('taskChainList:cancel')"
v-if=
"scope.row.taskStatus === '1' && hasPermission('taskChainList:cancel')"
@
click=
"setTaskStatus(scope.row,'4')"
>
取消
@
click=
"setTaskStatus(scope.row,'4')"
>
取消
</el-button>
</el-button>
<el-divider
direction=
"vertical"
v-if=
"scope.row.taskStatus === '5' && hasPermission('taskChainList:delete')"
></el-divider>
<el-button
type=
"text"
size=
"mini"
v-if=
"scope.row.taskStatus === '5' && hasPermission('taskChainList:delete')"
@
click=
"delete(scope.row)"
>
删除
</el-button>
</template>
</template>
</vxe-column>
</vxe-column>
</vxe-table>
</vxe-table>
...
@@ -225,6 +231,20 @@ export default {
...
@@ -225,6 +231,20 @@ export default {
}
}
})
})
},
},
async
delete
(
row
)
{
const
can
=
{
id
:
row
.
id
}
this
.
TaskChainList
.
setdeleteById
(
can
).
then
(({
data
})
=>
{
if
(
data
.
code
===
200
)
{
this
.
$set
(
row
,
'taskStatus'
,
taskStatus
)
this
.
$message
({
type
:
'success'
,
message
:
data
.
msg
});
}
})
},
},
},
created
()
{
created
()
{
this
.
TaskChainList
=
new
TaskChainList
()
this
.
TaskChainList
=
new
TaskChainList
()
...
...
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