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
7efe8f2e
Commit
7efe8f2e
authored
Jul 17, 2020
by
Wang Yuhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改获取文件接口,新增返回标注关系id,实现审核进度功能
parent
677c8ddb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
PiecesTable.vue
DAPlatform-front/src/components/PiecesTable.vue
+9
-5
task.cpython-36.pyc
DAPlatform/views/__pycache__/task.cpython-36.pyc
+0
-0
通用功能组_接口文档.docx
文档/通用功能组_接口文档.docx
+0
-0
No files found.
DAPlatform-front/src/components/PiecesTable.vue
View file @
7efe8f2e
...
...
@@ -15,7 +15,7 @@
<el-table-column
prop=
"template"
label=
"模板/说明"
:width=
"showProgress ? 240 : ''"
></el-table-column>
<el-table-column
v-if=
"showProgress"
label=
"进度"
>
<template
slot-scope=
"props"
>
<el-progress
:percentage=
"percentage(props.row
.fileNum, props.row.completedNum
)"
style=
"width:150px"
></el-progress>
<el-progress
:percentage=
"percentage(props.row)"
style=
"width:150px"
></el-progress>
</
template
>
</el-table-column>
<el-table-column
type=
"expand"
>
...
...
@@ -68,7 +68,10 @@ export default {
beforeMount
()
{
// 拉取分片信息
var
self
=
this
,
params
=
{
taskId
:
this
.
taskId
}
if
(
this
.
showProgress
&&
!
this
.
isCheck
)
{
params
.
userId
=
this
.
userId
}
if
(
this
.
showProgress
)
{
if
(
this
.
isCheck
)
params
.
isCheck
=
true
else
params
.
userId
=
this
.
userId
}
this
.
axios
.
get
(
'/slice/getPieces'
,
{
params
}).
then
(
res
=>
{
self
.
tableData
=
res
.
data
})
},
methods
:
{
...
...
@@ -139,9 +142,10 @@ export default {
return
'text-row'
}
},
percentage
(
fileNum
,
completedNum
)
{
if
(
!
completedNum
)
return
0
return
Math
.
floor
(
completedNum
/
fileNum
*
100
)
percentage
(
piece
)
{
var
self
=
this
if
(
piece
.
fileNum
===
0
||
piece
.
totalNum
===
0
)
return
100
return
Math
.
floor
(
piece
.
completedNum
/
(
self
.
isCheck
?
piece
.
totalNum
:
piece
.
fileNum
)
*
100
)
}
}
}
...
...
DAPlatform/views/__pycache__/task.cpython-36.pyc
View file @
7efe8f2e
No preview for this file type
文档/通用功能组_接口文档.docx
View file @
7efe8f2e
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