Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DA-Platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
文档服务地址:
http://47.92.0.57:3000/
周报索引地址:
http://47.92.0.57:3000/s/NruNXRYmV
Open sidebar
Berlin
DA-Platform
Commits
24d181ba
Commit
24d181ba
authored
Aug 21, 2020
by
李严凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
放弃任务功能
parent
4b047a37
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
2 deletions
+48
-2
OngoingTaskDetail.vue
DAPlatform-front/src/components/OngoingTaskDetail.vue
+48
-2
~$功能组_接口文档.docx
文档/~$功能组_接口文档.docx
+0
-0
通用功能组_接口文档.docx
文档/通用功能组_接口文档.docx
+0
-0
No files found.
DAPlatform-front/src/components/OngoingTaskDetail.vue
View file @
24d181ba
...
...
@@ -2,8 +2,16 @@
<div
class=
"task-container"
>
<div
class=
"task-panel"
>
<h2>
{{
task
.
name
}}
</h2>
<p>
发布者:
{{
task
.
creator
}}
</p>
<p>
发布时间:
{{
task
.
date
|
formatDate
}}
</p>
<p><el-row>
发布者:
{{
task
.
creator
}}
</el-row></p>
<p><el-row>
<el-col
span=
"8"
>
发布时间:
{{
task
.
date
|
formatDate
}}
</el-col>
<el-col
offset=
"11"
span=
"5"
>
<el-button
type=
"primary"
plain
>
提交标注
</el-button>
<el-button
plain
@
click=
"giveUpTask"
>
放弃任务
</el-button>
</el-col>
</el-row></p>
<el-divider></el-divider>
<pieces-table
:task-id=
"task.id"
showProgress
withExecutor
>
<template
v-slot:option=
"slotProps"
>
...
...
@@ -71,6 +79,44 @@ export default {
}
else
if
(
piece
.
type
===
'图层'
)
{
download
(
'/layer/export'
,
relationId
)
}
},
giveUpTask
(){
// alert(1)
// console.log(this.task.id)
this
.
$confirm
(
'此操作将放弃该任务标注'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
axios
({
methd
:
'post'
,
url
:
'task/giveUpTask'
,
params
:{
userId
:
this
.
$store
.
state
.
userInfo
.
userId
,
taskId
:
this
.
task
.
id
}
}).
then
(
res
=>
{
if
(
res
.
code
==
1
){
this
.
$message
({
type
:
'info'
,
message
:
'任务已放弃标注'
});
this
.
$router
.
push
({
path
:
"/ongoingtask"
});
}
else
{
this
.
$message
({
type
:
'info'
,
message
:
'放弃失败'
});
}
}
)
}).
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'已取消放弃任务'
});
});
}
}
}
...
...
文档/~$功能组_接口文档.docx
0 → 100644
View file @
24d181ba
File added
文档/通用功能组_接口文档.docx
View file @
24d181ba
No preview for this file type
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