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
75e089fc
Commit
75e089fc
authored
Jul 20, 2020
by
Wang Yuhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跳转传递分片信息
parent
f49b7072
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
27 deletions
+29
-27
CheckDetail.vue
DAPlatform-front/src/components/CheckDetail.vue
+8
-8
CompletedTaskDetail.vue
DAPlatform-front/src/components/CompletedTaskDetail.vue
+4
-3
OngoingTaskDetail.vue
DAPlatform-front/src/components/OngoingTaskDetail.vue
+6
-5
PiecesTable.vue
DAPlatform-front/src/components/PiecesTable.vue
+1
-1
index.js
DAPlatform-front/src/router/index.js
+10
-10
No files found.
DAPlatform-front/src/components/CheckDetail.vue
View file @
75e089fc
...
...
@@ -40,8 +40,7 @@ export default {
dialogVisible
:
false
,
executors
:
[],
file
:
undefined
,
type
:
undefined
,
pieceId
:
undefined
,
piece
:
undefined
,
loading
:
false
}
},
...
...
@@ -49,15 +48,15 @@ export default {
this
.
task
=
JSON
.
parse
(
decodeURIComponent
(
this
.
$route
.
params
.
task
))
},
methods
:
{
doOption
(
file
,
type
,
pieceId
)
{
doOption
(
file
,
piece
)
{
// 打开模态框
this
.
file
=
file
;
this
.
type
=
type
;
this
.
pieceId
=
pieceId
this
.
file
=
file
;
this
.
piece
=
piece
this
.
dialogVisible
=
true
},
getExecutors
()
{
this
.
loading
=
true
var
self
=
this
,
params
=
{
pieceId
:
this
.
pieceId
,
pieceId
:
this
.
piece
.
piece
Id
,
fileId
:
this
.
file
.
id
}
this
.
axios
.
get
(
'/file/getExecutors'
,
{
...
...
@@ -67,17 +66,18 @@ export default {
})
},
goto
(
executor
)
{
var
self
=
this
,
{
file
,
typ
e
}
=
this
var
self
=
this
,
{
file
,
piec
e
}
=
this
var
params
=
{
file
,
task
:
self
.
task
,
relationId
:
executor
.
relation_id
,
executor
executor
,
piece
}
function
goto
(
path
)
{
self
.
$router
.
push
({
name
:
path
,
params
})
}
switch
(
type
)
{
switch
(
piece
.
type
)
{
case
'文本'
:
if
(
file
.
url
.
endsWith
(
'xlsx'
))
{
goto
(
'tabledCheck'
)
}
if
(
file
.
url
.
endsWith
(
'txt'
))
{
goto
(
'SelectedCheck'
)
}
...
...
DAPlatform-front/src/components/CompletedTaskDetail.vue
View file @
75e089fc
...
...
@@ -37,16 +37,17 @@ export default {
this
.
task
=
JSON
.
parse
(
decodeURIComponent
(
this
.
$route
.
params
.
task
))
},
methods
:
{
doOption
(
file
,
typ
e
)
{
doOption
(
file
,
piec
e
)
{
var
self
=
this
,
params
=
{
file
,
task
:
this
.
task
,
relationId
:
file
.
relation_id
relationId
:
file
.
relation_id
,
piece
}
function
goto
(
path
)
{
self
.
$router
.
push
({
name
:
path
,
params
})
}
switch
(
type
)
{
switch
(
piece
.
type
)
{
case
'文本'
:
if
(
file
.
url
.
endsWith
(
'xlsx'
))
{
goto
(
'tabled'
)
}
if
(
file
.
url
.
endsWith
(
'txt'
))
{
goto
(
'SelectedText'
)
}
...
...
DAPlatform-front/src/components/OngoingTaskDetail.vue
View file @
75e089fc
...
...
@@ -8,10 +8,10 @@
<pieces-table
:task-id=
"task.id"
showProgress
>
<template
v-slot:option=
"slotProps"
>
<el-button
v-if=
"!slotProps.file.state"
type=
"primary"
size=
"mini"
plain
@
click=
"doOption(slotProps.file,slotProps.
typ
e)"
@
click=
"doOption(slotProps.file,slotProps.
piec
e)"
>
标注
</el-button>
<el-button
v-else
type=
"success"
size=
"mini"
plain
@
click=
"doOption(slotProps.file,slotProps.
typ
e)"
@
click=
"doOption(slotProps.file,slotProps.
piec
e)"
>
修改
</el-button>
</
template
>
</pieces-table>
...
...
@@ -36,16 +36,17 @@ export default {
this
.
task
=
JSON
.
parse
(
decodeURIComponent
(
this
.
$route
.
params
.
task
))
},
methods
:
{
doOption
(
file
,
typ
e
)
{
doOption
(
file
,
piec
e
)
{
var
self
=
this
,
params
=
{
file
,
task
:
this
.
task
,
relationId
:
file
.
relation_id
relationId
:
file
.
relation_id
,
piece
}
function
goto
(
path
)
{
self
.
$router
.
push
({
name
:
path
,
params
})
}
switch
(
type
)
{
switch
(
piece
.
type
)
{
case
'文本'
:
if
(
file
.
url
.
endsWith
(
'xlsx'
))
{
goto
(
'table'
)
}
if
(
file
.
url
.
endsWith
(
'txt'
))
{
goto
(
'SelectText'
)
}
...
...
DAPlatform-front/src/components/PiecesTable.vue
View file @
75e089fc
...
...
@@ -24,7 +24,7 @@
<div
class=
"file"
v-for=
"item in map[props.row.id]"
:key=
"item.id"
>
<i
class=
"el-icon-document"
></i>
<span
class=
"file-name"
>
{{
item
.
name
}}
</span>
{{
item
.
size
}}
<slot
name=
'option'
:file=
'item'
:
type=
'props.row.type'
:pieceId=
'props.row.id
'
></slot>
<slot
name=
'option'
:file=
'item'
:
piece=
'props.row
'
></slot>
</div>
</div>
</
template
>
...
...
DAPlatform-front/src/router/index.js
View file @
75e089fc
...
...
@@ -89,52 +89,52 @@ export default new Router({
component
:
checkdetail
},
{
path
:
'/select/:file/:task/:relationId/:
executor
'
,
path
:
'/select/:file/:task/:relationId/:
piece
'
,
name
:
'SelectText'
,
component
:
SelectText
},
{
path
:
'/selected/:file/:task/:relationId/:executor'
,
path
:
'/selected/:file/:task/:relationId/:executor
/:piece
'
,
name
:
'SelectedText'
,
component
:
SelectedText
},
{
path
:
'/selectedCheck/:file/:task/:relationId/:executor'
,
path
:
'/selectedCheck/:file/:task/:relationId/:executor
/:piece
'
,
name
:
'SelectedCheck'
,
component
:
SelectedCheck
},
{
path
:
'/table/:file/:task/:relationId/:
executor
'
,
path
:
'/table/:file/:task/:relationId/:
piece
'
,
name
:
'table'
,
component
:
Table
},
{
path
:
'/tabled/:file/:task/:relationId/:executor'
,
path
:
'/tabled/:file/:task/:relationId/:executor
/:piece
'
,
name
:
'tabled'
,
component
:
Tabled
},
{
path
:
'/tabledCheck/:file/:task/:relationId/:executor'
,
path
:
'/tabledCheck/:file/:task/:relationId/:executor
/:piece
'
,
name
:
'tabledCheck'
,
component
:
TabledCheck
},
{
path
:
'/image/:file/:task/:relationId/:
executor
'
,
path
:
'/image/:file/:task/:relationId/:
piece
'
,
name
:
'image'
,
component
:
imageAnnotiation
},
{
path
:
'/layer/:file/:task/:relationId/:
executor
'
,
path
:
'/layer/:file/:task/:relationId/:
piece
'
,
name
:
'layer'
,
component
:
layerAnnotation
},
{
path
:
'/imageshow'
,
path
:
'/imageshow
/:file/:task/:relationId/:executor/:piece
'
,
name
:
'images'
,
component
:
imageShow
},
{
path
:
'/layershow'
,
path
:
'/layershow
/:file/:task/:relationId/:executor/:piece
'
,
name
:
'layers'
,
component
:
layerShow
}
...
...
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