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
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
54 additions
and
29 deletions
+54
-29
CheckDetail.vue
DAPlatform-front/src/components/CheckDetail.vue
+17
-9
CompletedTaskDetail.vue
DAPlatform-front/src/components/CompletedTaskDetail.vue
+17
-9
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 @@
...
@@ -7,7 +7,7 @@
<el-divider></el-divider>
<el-divider></el-divider>
<pieces-table
:task-id=
"task.id"
showProgress
>
<pieces-table
:task-id=
"task.id"
showProgress
>
<template
v-slot:option=
'slotProps'
>
<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
>
</
template
>
</pieces-table>
</pieces-table>
</div>
</div>
...
@@ -31,14 +31,22 @@ export default {
...
@@ -31,14 +31,22 @@ export default {
this
.
task
=
JSON
.
parse
(
decodeURIComponent
(
this
.
$route
.
params
.
task
))
this
.
task
=
JSON
.
parse
(
decodeURIComponent
(
this
.
$route
.
params
.
task
))
},
},
methods
:
{
methods
:
{
doOption
()
{
doOption
(
file
,
type
)
{
console
.
log
(
this
.
isCheck
)
var
params
=
{
file
:
encodeURIComponent
(
JSON
.
stringify
(
file
))}
this
.
$router
.
push
({
var
self
=
this
path
:
'/selected'
,
function
goto
(
path
)
{
query
:
{
self
.
$router
.
push
({
name
:
path
,
params
})
isCheck
:
this
.
isCheck
}
}
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 @@
...
@@ -7,7 +7,7 @@
<el-divider></el-divider>
<el-divider></el-divider>
<pieces-table
:task-id=
"task.id"
>
<pieces-table
:task-id=
"task.id"
>
<template
v-slot:option=
'slotProps'
>
<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
>
</
template
>
</pieces-table>
</pieces-table>
</div>
</div>
...
@@ -32,14 +32,22 @@ export default {
...
@@ -32,14 +32,22 @@ export default {
this
.
task
=
JSON
.
parse
(
decodeURIComponent
(
this
.
$route
.
params
.
task
))
this
.
task
=
JSON
.
parse
(
decodeURIComponent
(
this
.
$route
.
params
.
task
))
},
},
methods
:
{
methods
:
{
doOption
(
file
)
{
doOption
(
file
,
type
)
{
console
.
log
(
file
)
var
params
=
{
file
:
encodeURIComponent
(
JSON
.
stringify
(
file
))}
this
.
$router
.
push
({
var
self
=
this
path
:
'/selected'
,
function
goto
(
path
)
{
query
:
{
self
.
$router
.
push
({
name
:
path
,
params
})
isCheck
:
this
.
isCheck
}
}
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 {
...
@@ -32,11 +32,20 @@ export default {
},
},
methods
:
{
methods
:
{
doOption
(
file
,
type
)
{
doOption
(
file
,
type
)
{
console
.
log
(
file
,
type
)
var
params
=
{
file
:
encodeURIComponent
(
JSON
.
stringify
(
file
))}
if
(
type
===
'文本'
)
{
var
self
=
this
this
.
$router
.
push
(
'/select'
)
function
goto
(
path
)
{
}
else
{
self
.
$router
.
push
({
name
:
path
,
params
})
this
.
$router
.
push
(
'/image'
)
}
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 @@
...
@@ -24,7 +24,7 @@
<div
class=
"file"
v-for=
"item in map[props.row.id]"
:key=
"item.id"
>
<div
class=
"file"
v-for=
"item in map[props.row.id]"
:key=
"item.id"
>
<i
class=
"el-icon-document"
></i>
<i
class=
"el-icon-document"
></i>
<span
class=
"file-name"
>
{{
item
.
name
}}
</span>
{{
item
.
size
}}
KB
<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>
</div>
</div>
</
template
>
</
template
>
...
...
DAPlatform-front/src/router/index.js
View file @
c3e0a951
...
@@ -84,12 +84,12 @@ export default new Router({
...
@@ -84,12 +84,12 @@ export default new Router({
component
:
checkdetail
component
:
checkdetail
},
},
{
{
path
:
'/select'
,
path
:
'/select
/:file
'
,
name
:
'SelectText'
,
name
:
'SelectText'
,
component
:
SelectText
component
:
SelectText
},
},
{
{
path
:
'/selected'
,
path
:
'/selected
/:file
'
,
name
:
'SelectedText'
,
name
:
'SelectedText'
,
component
:
SelectedText
component
:
SelectedText
},
},
...
@@ -99,12 +99,12 @@ export default new Router({
...
@@ -99,12 +99,12 @@ export default new Router({
component
:
Table
component
:
Table
},
},
{
{
path
:
'/image'
,
path
:
'/image
/:file
'
,
name
:
'image'
,
name
:
'image'
,
component
:
imageAnnotiation
component
:
imageAnnotiation
},
},
{
{
path
:
'/layer'
,
path
:
'/layer
/:file
'
,
name
:
'layer'
,
name
:
'layer'
,
component
:
layerAnnotation
component
:
layerAnnotation
}
}
...
...
DAPlatform-front/src/store/index.js
View file @
c3e0a951
...
@@ -8,7 +8,7 @@ Vue.use(Vuex)
...
@@ -8,7 +8,7 @@ Vue.use(Vuex)
export
default
new
Vuex
.
Store
({
export
default
new
Vuex
.
Store
({
state
:
{
state
:
{
userInfo
:
null
,
userInfo
:
null
,
imageData
:
null
,
imageData
:
null
},
},
mutations
:
{
mutations
:
{
setUserInfo
(
state
,
userInfo
)
{
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