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
f7436f9c
Commit
f7436f9c
authored
May 29, 2020
by
李梓桢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
image
parent
ac8676d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
imageAnnotiation.vue
...front/src/components/imageAnnotation/imageAnnotiation.vue
+18
-9
No files found.
DAPlatform-front/src/components/imageAnnotation/imageAnnotiation.vue
View file @
f7436f9c
...
...
@@ -110,6 +110,7 @@ export default {
name
:
'imageAnnotation'
,
data
()
{
return
{
pictureId
:
1
,
scaleSize
:
1
,
height_res
:
0
,
activeIndex1
:
1
,
...
...
@@ -118,7 +119,7 @@ export default {
"relationId"
:
123
,
"imageUrl"
:
"..."
,
"labelList"
:
[{
"labelId"
:
"1"
,
"labelId"
:
0
,
"labelName"
:
"label1"
,
"pointList"
:
[{
"pointId"
:
"1-1"
,
...
...
@@ -130,7 +131,7 @@ export default {
"Y"
:
2.3
}]
},{
"labelId"
:
"2"
,
"labelId"
:
1
,
"labelName"
:
"label2"
,
"pointList"
:
[{
"pointId"
:
"2-1"
,
...
...
@@ -211,10 +212,11 @@ export default {
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
deleteLabel
();
this
.
$message
({
type
:
'success'
,
message
:
'删除成功!'
})
})
;
}).
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
...
...
@@ -265,6 +267,7 @@ export default {
label
:
'图片1'
,
url
:
'https://juanmdbucket.oss-cn-beijing.aliyuncs.com/20200301231737.png'
,
children
:
[{
id
:
0
,
label
:
'二级 1-1'
}]
},
{
...
...
@@ -289,14 +292,20 @@ export default {
this
.
imageNum
=
3
;
},
addLabel
()
{
let
currentImageId
=
1
;
let
currentImageId
=
this
.
pictureId
;
const
newLabel
=
{
label
:
'new label'
};
for
(
let
index
=
0
;
index
<
this
.
imageNum
;
index
++
)
{
if
(
this
.
data
[
index
].
id
==
currentImageId
)
{
this
.
data
[
index
].
children
.
push
(
newLabel
);
}
}
this
.
data
[
currentImageId
].
children
.
push
(
newLabel
);
// for (let index = 0; index
<
this
.
imageNum
;
index
++
)
{
// if (this.data[index].id == currentImageId) {
// this.data[index].children.push(newLabel);
// }
// }
},
deleteLabel
()
{
let
currentLabelId
=
0
;
let
currentImageId
=
this
.
pictureId
;
this
.
data
[
currentImageId
].
children
.
splice
(
currentLabelId
,
1
);
}
}
}
</
script
>
...
...
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