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
ad3029de
Commit
ad3029de
authored
Jun 27, 2020
by
李梓桢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
image
parent
13c7deaa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
imageAnnotiation.vue
...front/src/components/imageAnnotation/imageAnnotiation.vue
+16
-7
No files found.
DAPlatform-front/src/components/imageAnnotation/imageAnnotiation.vue
View file @
ad3029de
...
...
@@ -32,6 +32,7 @@
<el-radio-button
label=
"矩形标注"
></el-radio-button>
<el-radio-button
label=
"多边形标注"
></el-radio-button>
</el-radio-group>
<el-button
@
click=
"save()"
>
保存
</el-button>
</div>
</div>
</el-aside>
...
...
@@ -552,7 +553,7 @@ export default {
var
children
=
this
.
data
[
this
.
pictureId
].
children
var
tmp
=
this
.
canvasAll
[
id
]
this
.
labelName
=
children
[
index
].
label
this
.
labelName
=
children
[
index
].
label
Name
this
.
labelPosition
=
''
var
lenTmp
=
tmp
[
index
].
length
/
2
;
var
i
=
0
;
...
...
@@ -813,19 +814,20 @@ export default {
}
var
self
=
this
let
res
=
await
this
.
axios
({
method
:
'
ge
t'
,
method
:
'
pos
t'
,
url
:
'/image/getImage'
,
data
:
params
})
if
(
res
.
code
===
1
)
{
let
imageList
=
res
.
data
// console.log(imageList.imageList[0].imageUrl)
self
.
$store
.
commit
(
'clearImageData'
)
self
.
$store
.
commit
(
'setImageData'
,
imageList
.
imageList
)
console
.
log
(
"!!!!!!!!!!!!!!!!"
)
console
.
log
(
this
.
$store
.
state
.
imageData
)
}
}
catch
(
err
)
{
this
.
$store
.
commit
(
'clearImageData'
)
self
.
$store
.
commit
(
'clearImageData'
)
console
.
log
(
err
)
alert
(
'请求出错!'
)
}
...
...
@@ -853,14 +855,16 @@ export default {
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
}).
then
(({
value
})
=>
{
if
(
value
==
null
)
value
=
'iss'
labelName
=
value
let
currentImageId
=
this
.
pictureId
const
newLabel
=
{
label
:
labelName
}
const
newLabel
=
{
label
Name
:
labelName
}
this
.
data
[
currentImageId
].
children
.
push
(
newLabel
)
}).
catch
(()
=>
{
labelName
=
'iss'
let
currentImageId
=
this
.
pictureId
const
newLabel
=
{
label
:
labelName
}
const
newLabel
=
{
label
Name
:
labelName
}
this
.
data
[
currentImageId
].
children
.
push
(
newLabel
)
})
},
...
...
@@ -1004,12 +1008,17 @@ export default {
}
outputData
.
push
(
newData
)
})
/**
* 这里还有问题,再添加标签时只有标签名
*/
console
.
log
(
"outputdata"
)
console
.
log
(
outputData
)
this
.
imageNum
=
this
.
data
.
len
this
.
axios
({
method
:
'post'
,
url
:
'/image'
,
url
:
'/image
/saveImage
'
,
data
:
{
outputData
imageList
:
outputData
}
}).
then
(
res
=>
{
console
.
log
(
res
)
...
...
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