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
2b726157
Commit
2b726157
authored
Jul 18, 2020
by
Wang Yuhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
路由传参
parent
b912a45b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
35 deletions
+26
-35
CheckDetail.vue
DAPlatform-front/src/components/CheckDetail.vue
+12
-5
OngoingTaskDetail.vue
DAPlatform-front/src/components/OngoingTaskDetail.vue
+9
-25
index.js
DAPlatform-front/src/router/index.js
+5
-5
Task.cpython-36.pyc
DAPlatform/Dao/__pycache__/Task.cpython-36.pyc
+0
-0
通用功能组_接口文档.docx
文档/通用功能组_接口文档.docx
+0
-0
No files found.
DAPlatform-front/src/components/CheckDetail.vue
View file @
2b726157
...
...
@@ -67,16 +67,23 @@ export default {
})
},
goto
(
executor
)
{
var
{
file
,
type
}
=
this
,
self
=
this
var
params
=
{
file
,
executor
}
var
self
=
this
,
{
file
,
type
}
=
this
var
params
=
{
file
,
task
:
self
.
task
,
relationId
:
executor
.
relation_id
,
executor
}
function
goto
(
path
)
{
self
.
$router
.
push
({
name
:
path
,
params
})
}
switch
(
type
)
{
case
'文本'
:
goto
(
'SelectedText'
);
break
case
'文本'
:
if
(
file
.
url
.
endsWith
(
'xlsx'
))
{
goto
(
'table'
)
}
if
(
file
.
url
.
endsWith
(
'txt'
))
{
goto
(
'SelectTexted'
)
}
break
case
'图片'
:
goto
(
'image'
);
break
case
'图层'
:
goto
(
'layer'
);
break
case
'表格'
:
goto
(
'table'
)
case
'图层'
:
goto
(
'layer'
)
}
}
}
...
...
DAPlatform-front/src/components/OngoingTaskDetail.vue
View file @
2b726157
...
...
@@ -35,37 +35,21 @@ export default {
},
methods
:
{
doOption
(
file
,
type
)
{
var
params
=
{
file
,
task
:
this
.
task
},
self
=
this
var
self
=
this
,
params
=
{
file
,
task
:
this
.
task
,
relationId
:
file
.
relation_id
}
function
goto
(
path
)
{
self
.
$router
.
push
({
name
:
path
,
params
})
}
switch
(
type
)
{
case
'文本'
:
if
(
file
.
url
.
split
(
''
)
.
reverse
()
.
join
(
''
)
.
substring
(
0
,
4
)
.
split
(
''
)
.
reverse
()
.
join
(
''
)
==
'xlsx'
)
{
goto
(
'table'
)
}
else
if
(
file
.
url
.
split
(
''
)
.
reverse
()
.
join
(
''
)
.
substring
(
0
,
3
)
.
split
(
''
)
.
reverse
()
.
join
(
''
)
==
'txt'
)
{
goto
(
'SelectText'
)
}
break
case
'图片'
:
goto
(
'image'
)
if
(
file
.
url
.
endsWith
(
'xlsx'
))
{
goto
(
'table'
)
}
if
(
file
.
url
.
endsWith
(
'txt'
))
{
goto
(
'SelectText'
)
}
break
case
'图
层'
:
goto
(
'layer'
)
case
'图
片'
:
goto
(
'image'
);
break
case
'图层'
:
goto
(
'layer'
)
}
}
}
...
...
DAPlatform-front/src/router/index.js
View file @
2b726157
...
...
@@ -84,27 +84,27 @@ export default new Router({
component
:
checkdetail
},
{
path
:
'/select/:file/:task'
,
path
:
'/select/:file/:task
/:relationId/:executor
'
,
name
:
'SelectText'
,
component
:
SelectText
},
{
path
:
'/selected/:file/:task'
,
path
:
'/selected/:file/:task
/:relationId/:executor
'
,
name
:
'SelectedText'
,
component
:
SelectedText
},
{
path
:
'/table/:file/:task'
,
path
:
'/table/:file/:task
/:relationId/:executor
'
,
name
:
'table'
,
component
:
Table
},
{
path
:
'/image/:file/:task'
,
path
:
'/image/:file/:task
/:relationId/:executor
'
,
name
:
'image'
,
component
:
imageAnnotiation
},
{
path
:
'/layer/:file/:task'
,
path
:
'/layer/:file/:task
/:relationId/:executor
'
,
name
:
'layer'
,
component
:
layerAnnotation
}
...
...
DAPlatform/Dao/__pycache__/Task.cpython-36.pyc
View file @
2b726157
No preview for this file type
文档/通用功能组_接口文档.docx
View file @
2b726157
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