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
596a4e65
Commit
596a4e65
authored
Jun 22, 2020
by
张欣玥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
image-改
parent
321bead0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
79 additions
and
79 deletions
+79
-79
imageAnnotiation.vue
...front/src/components/imageAnnotation/imageAnnotiation.vue
+0
-0
api.js
DAPlatform-front/src/mock/api.js
+79
-79
No files found.
DAPlatform-front/src/components/imageAnnotation/imageAnnotiation.vue
View file @
596a4e65
This diff is collapsed.
Click to expand it.
DAPlatform-front/src/mock/api.js
View file @
596a4e65
import
Mock
from
'mockjs'
// Mock.mock('http://localhost:9100/api/getTasks', {
// 'status': 0,
// 'data|10': [{
// 'id|1-9999': 1,
// 'name|1': ['冰箱物品标注', '新通路图片', '人脸识别', '客服语音', '行人十字画框', '动物打点标注'],
// 'creator|1': ['王强', '赵信良', '李轩辕', '田予欢', '张三', '李斯'],
// 'date': Mock.Random.date('yyyy/MM/dd')
// }]
// })
Mock
.
mock
(
'http://localhost:9100/api/image'
,
{
code
:
1
,
data
:
[{
relationId
:
123
,
imageUrl
:
'https://juanmdbucket.oss-cn-beijing.aliyuncs.com/20200301231737.png'
,
labelList
:
[{
labelId
:
0
,
label
:
'label1'
,
pointList
:
[{
pointId
:
'1-1'
,
X
:
1.1
,
Y
:
2.2
},
{
pointId
:
'1-2'
,
X
:
1.2
,
Y
:
2.3
}]
},
{
labelId
:
1
,
label
:
'label2'
,
pointList
:
[{
pointId
:
'2-1'
,
X
:
1
.1
,
Y
:
2.2
},
{
pointId
:
'2-2'
,
X
:
1.2
,
Y
:
2
.3
}]
}]
},
{
relationId
:
233
,
imageUrl
:
'https://juanmdbucket.oss-cn-beijing.aliyuncs.com/20200526170357.jpg'
,
labelList
:
[{
labelId
:
0
,
label
:
'label1'
,
pointList
:
[{
pointId
:
'1-1'
,
X
:
1
.1
,
Y
:
2.2
},
{
pointId
:
'1-2'
,
X
:
1.2
,
Y
:
2.3
}]
}]
}]
})
// Mock.mock(/http:\/\/localhost:9100\/api\/getPieces\?id=[0-9]+/, {
// 'status': 0,
// 'data|5-10': [{
// 'id|1-65535': 1,
// 'fileNum|10-50': 1,
// 'template|1': ['人脸识别标注模板', '动物标注模板', '本文标注模板', '桥梁标注模板', '植物标注模板'],
// 'type|1': ['文本', '图片', '图层']
// }]
// })
Mock
.
mock
(
/
\/
api
\/
file
\/
getFiles
\?
pieceId=
[
0-9
]
+/
,
{
'status'
:
0
,
'data|1-5'
:
[{
'id|1-65535'
:
1
,
'name'
:
'标注文件.xxx'
,
'size|10-30'
:
1
,
'state|0-1'
:
1
}]
})
import
Mock
from
'mockjs'
// Mock.mock('http://localhost:9100/api/getTasks', {
// 'status': 0,
// 'data|10': [{
// 'id|1-9999': 1,
// 'name|1': ['冰箱物品标注', '新通路图片', '人脸识别', '客服语音', '行人十字画框', '动物打点标注'],
// 'creator|1': ['王强', '赵信良', '李轩辕', '田予欢', '张三', '李斯'],
// 'date': Mock.Random.date('yyyy/MM/dd')
// }]
// })
Mock
.
mock
(
'http://localhost:9100/api/image'
,
{
code
:
1
,
data
:
[{
relationId
:
123
,
imageUrl
:
'https://juanmdbucket.oss-cn-beijing.aliyuncs.com/20200301231737.png'
,
labelList
:
[{
labelId
:
0
,
label
:
'label1'
,
pointList
:
[{
pointId
:
'1-1'
,
X
:
500
,
Y
:
300
},
{
pointId
:
'1-2'
,
X
:
600
,
Y
:
400
}]
},
{
labelId
:
1
,
label
:
'label2'
,
pointList
:
[{
pointId
:
'2-1'
,
X
:
1
00
,
Y
:
100
},
{
pointId
:
'2-2'
,
X
:
200
,
Y
:
2
00
}]
}]
},
{
relationId
:
233
,
imageUrl
:
'https://juanmdbucket.oss-cn-beijing.aliyuncs.com/20200526170357.jpg'
,
labelList
:
[{
labelId
:
0
,
label
:
'label1'
,
pointList
:
[{
pointId
:
'1-1'
,
X
:
1
00
,
Y
:
100
},
{
pointId
:
'1-2'
,
X
:
300
,
Y
:
300
}]
}]
}]
})
// Mock.mock(/http:\/\/localhost:9100\/api\/getPieces\?id=[0-9]+/, {
// 'status': 0,
// 'data|5-10': [{
// 'id|1-65535': 1,
// 'fileNum|10-50': 1,
// 'template|1': ['人脸识别标注模板', '动物标注模板', '本文标注模板', '桥梁标注模板', '植物标注模板'],
// 'type|1': ['文本', '图片', '图层']
// }]
// })
Mock
.
mock
(
/
\/
api
\/
file
\/
getFiles
\?
pieceId=
[
0-9
]
+/
,
{
'status'
:
0
,
'data|1-5'
:
[{
'id|1-65535'
:
1
,
'name'
:
'标注文件.xxx'
,
'size|10-30'
:
1
,
'state|0-1'
:
1
}]
})
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