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
024bcdbc
Commit
024bcdbc
authored
Aug 28, 2020
by
李梓桢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
图片审核
parent
f8709f05
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
8 deletions
+14
-8
env.js
DAPlatform-front/src/assets/js/env.js
+1
-1
imageAnnotiation.vue
...front/src/components/imageAnnotation/imageAnnotiation.vue
+8
-5
imageCheck.vue
...tform-front/src/components/imageAnnotation/imageCheck.vue
+5
-2
1598603254.jpg
DAPlatform/upload/1598603254.jpg
+0
-0
No files found.
DAPlatform-front/src/assets/js/env.js
View file @
024bcdbc
var
baseURL
=
'http://
47.92.1.107
/api'
var
baseURL
=
'http://
localhost:9100
/api'
export
{
baseURL
...
...
DAPlatform-front/src/components/imageAnnotation/imageAnnotiation.vue
View file @
024bcdbc
...
...
@@ -71,11 +71,11 @@
<button
style=
"float: right"
v-show =
"canvasAllCheck[index] == 2"
@
click=
"isRightFn2(index)"
>
取消
错误
</button>
@
click=
"isRightFn2(index)"
>
取消
正确
</button>
<button
style=
"float: right"
v-show =
"canvasAllCheck[index] == 0"
@
click=
"isRightFn(index)"
>
标记
错误
</button>
@
click=
"isRightFn(index)"
>
标记
正确
</button>
</div>
<div
style=
"position: absolute;bottom: 0;"
>
...
...
@@ -1080,7 +1080,7 @@ export default {
isRightFn
(
index
)
{
var
tmp
=
this
.
canvasAllCheck
// alert(tmp
[id]
)
// alert(tmp)
tmp
[
index
]
=
2
this
.
$forceUpdate
()
},
...
...
@@ -1093,11 +1093,11 @@ export default {
},
computeFn
()
{
// alert("start!")
//
0=>标注者标对的,1=>审查者后加的,2
=>标错的
//
2=>标注者标对的,1=>审查者后加的,0
=>标错的
var
yesAll
=
0
var
yesTmp
=
0
this
.
canvasAllCheck
.
forEach
(
e
=>
{
if
(
e
===
0
)
{
if
(
e
===
2
)
{
yesAll
++
;
yesTmp
++
;
}
...
...
@@ -1105,7 +1105,10 @@ export default {
yesAll
++
;
}
})
if
(
yesAll
!=
0
)
var
score
=
yesTmp
/
yesAll
;
else
var
score
=
0
this
.
computeScore
=
score
*
100
},
...
...
DAPlatform-front/src/components/imageAnnotation/imageCheck.vue
View file @
024bcdbc
...
...
@@ -1081,10 +1081,13 @@ export default {
},
isRightFn
(
index
)
{
var
id
=
this
.
pictureId
var
tmp
=
this
.
canvasAllCheck
[
id
]
//
var id = this.pictureId
//
var tmp = this.canvasAllCheck[id]
console
.
log
(
index
)
console
.
log
(
this
.
data
[
0
].
children
[
index
])
//isRight标志位为true时表示该标注区域正确
this
.
data
[
0
].
children
[
index
].
isRight
=
true
//alert(tmp[index])
},
save
()
{
...
...
DAPlatform/upload/1598603254.jpg
0 → 100644
View file @
024bcdbc
20.9 KB
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