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
c3e0a951
Commit
c3e0a951
authored
Jun 29, 2020
by
Wang Yuhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跳转到标注页面时传递文件信息
parent
291aedae
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
52 additions
and
27 deletions
+52
-27
CheckDetail.vue
DAPlatform-front/src/components/CheckDetail.vue
+16
-8
CompletedTaskDetail.vue
DAPlatform-front/src/components/CompletedTaskDetail.vue
+16
-8
OngoingTaskDetail.vue
DAPlatform-front/src/components/OngoingTaskDetail.vue
+14
-5
PiecesTable.vue
DAPlatform-front/src/components/PiecesTable.vue
+1
-1
index.js
DAPlatform-front/src/router/index.js
+4
-4
index.js
DAPlatform-front/src/store/index.js
+1
-1
Task.cpython-36.pyc
DAPlatform/Dao/__pycache__/Task.cpython-36.pyc
+0
-0
task.cpython-36.pyc
DAPlatform/views/__pycache__/task.cpython-36.pyc
+0
-0
No files found.
DAPlatform-front/src/components/CheckDetail.vue
View file @
c3e0a951
...
...
@@ -7,7 +7,7 @@
<el-divider></el-divider>
<pieces-table
:task-id=
"task.id"
showProgress
>
<template
v-slot:option=
'slotProps'
>
<el-button
type=
"primary"
size=
"mini"
plain
@
click=
'doOption(slotProps.file)'
>
审核
</el-button>
<el-button
type=
"primary"
size=
"mini"
plain
@
click=
'doOption(slotProps.file
,slotProps.type
)'
>
审核
</el-button>
</
template
>
</pieces-table>
</div>
...
...
@@ -31,14 +31,22 @@ export default {
this
.
task
=
JSON
.
parse
(
decodeURIComponent
(
this
.
$route
.
params
.
task
))
},
methods
:
{
doOption
()
{
console
.
log
(
this
.
isCheck
)
this
.
$router
.
push
({
path
:
'/selected'
,
query
:
{
isCheck
:
this
.
isCheck
doOption
(
file
,
type
)
{
var
params
=
{
file
:
encodeURIComponent
(
JSON
.
stringify
(
file
))}
var
self
=
this
function
goto
(
path
)
{
self
.
$router
.
push
({
name
:
path
,
params
})
}
switch
(
type
)
{
case
'文本'
:
goto
(
'SelectedText'
)
break
case
'图片'
:
goto
(
'image'
)
break
case
'图层'
:
goto
(
'layer'
)
}
})
}
}
}
...
...
DAPlatform-front/src/components/CompletedTaskDetail.vue
View file @
c3e0a951
...
...
@@ -7,7 +7,7 @@
<el-divider></el-divider>
<pieces-table
:task-id=
"task.id"
>
<template
v-slot:option=
'slotProps'
>
<el-button
type=
"primary"
size=
"mini"
plain
@
click=
'doOption(slotProps.file)'
>
详情
</el-button>
<el-button
type=
"primary"
size=
"mini"
plain
@
click=
'doOption(slotProps.file
,slotProps.type
)'
>
详情
</el-button>
</
template
>
</pieces-table>
</div>
...
...
@@ -32,14 +32,22 @@ export default {
this
.
task
=
JSON
.
parse
(
decodeURIComponent
(
this
.
$route
.
params
.
task
))
},
methods
:
{
doOption
(
file
)
{
console
.
log
(
file
)
this
.
$router
.
push
({
path
:
'/selected'
,
query
:
{
isCheck
:
this
.
isCheck
doOption
(
file
,
type
)
{
var
params
=
{
file
:
encodeURIComponent
(
JSON
.
stringify
(
file
))}
var
self
=
this
function
goto
(
path
)
{
self
.
$router
.
push
({
name
:
path
,
params
})
}
switch
(
type
)
{
case
'文本'
:
goto
(
'SelectedText'
)
break
case
'图片'
:
goto
(
'image'
)
break
case
'图层'
:
goto
(
'layer'
)
}
})
}
}
}
...
...
DAPlatform-front/src/components/OngoingTaskDetail.vue
View file @
c3e0a951
...
...
@@ -32,11 +32,20 @@ export default {
},
methods
:
{
doOption
(
file
,
type
)
{
console
.
log
(
file
,
type
)
if
(
type
===
'文本'
)
{
this
.
$router
.
push
(
'/select'
)
}
else
{
this
.
$router
.
push
(
'/image'
)
var
params
=
{
file
:
encodeURIComponent
(
JSON
.
stringify
(
file
))}
var
self
=
this
function
goto
(
path
)
{
self
.
$router
.
push
({
name
:
path
,
params
})
}
switch
(
type
)
{
case
'文本'
:
goto
(
'SelectText'
)
break
case
'图片'
:
goto
(
'image'
)
break
case
'图层'
:
goto
(
'layer'
)
}
}
}
...
...
DAPlatform-front/src/components/PiecesTable.vue
View file @
c3e0a951
...
...
@@ -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
}}
KB
<slot
name=
'option'
:file=
'item
.id
'
:type=
'props.row.type'
></slot>
<slot
name=
'option'
:file=
'item'
:type=
'props.row.type'
></slot>
</div>
</div>
</
template
>
...
...
DAPlatform-front/src/router/index.js
View file @
c3e0a951
...
...
@@ -84,12 +84,12 @@ export default new Router({
component
:
checkdetail
},
{
path
:
'/select'
,
path
:
'/select
/:file
'
,
name
:
'SelectText'
,
component
:
SelectText
},
{
path
:
'/selected'
,
path
:
'/selected
/:file
'
,
name
:
'SelectedText'
,
component
:
SelectedText
},
...
...
@@ -99,12 +99,12 @@ export default new Router({
component
:
Table
},
{
path
:
'/image'
,
path
:
'/image
/:file
'
,
name
:
'image'
,
component
:
imageAnnotiation
},
{
path
:
'/layer'
,
path
:
'/layer
/:file
'
,
name
:
'layer'
,
component
:
layerAnnotation
}
...
...
DAPlatform-front/src/store/index.js
View file @
c3e0a951
...
...
@@ -8,7 +8,7 @@ Vue.use(Vuex)
export
default
new
Vuex
.
Store
({
state
:
{
userInfo
:
null
,
imageData
:
null
,
imageData
:
null
},
mutations
:
{
setUserInfo
(
state
,
userInfo
)
{
...
...
DAPlatform/Dao/__pycache__/Task.cpython-36.pyc
View file @
c3e0a951
No preview for this file type
DAPlatform/views/__pycache__/task.cpython-36.pyc
View file @
c3e0a951
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