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
3821a229
Commit
3821a229
authored
Jul 05, 2020
by
张欣玥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
引入math.js改
parent
00ae4d4c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
imageAnnotiation.vue
...front/src/components/imageAnnotation/imageAnnotiation.vue
+9
-8
main.js
DAPlatform-front/src/main.js
+3
-0
No files found.
DAPlatform-front/src/components/imageAnnotation/imageAnnotiation.vue
View file @
3821a229
...
...
@@ -232,7 +232,7 @@ export default {
// console.log(this.$store.state.imageData)
this
.
getLabelList
()
console
.
log
(
'input'
)
console
.
log
(
this
.
$store
.
state
.
imageData
)
this
.
formExchange
(
this
.
$store
.
state
.
imageData
)
...
...
@@ -404,7 +404,8 @@ export default {
goBigger
()
{
var
scale
=
this
.
scaleSize
if
(
scale
<
2
)
{
this
.
scaleSize
=
scale
+
0.1
// this.scaleSize = scale + 0.1
this
.
scaleSize
=
this
.
$math
.
add
(
this
.
$math
.
bignumber
(
scale
),
this
.
$math
.
bignumber
(
0.1
))
}
else
{
this
.
scaleSize
=
2
}
...
...
@@ -418,7 +419,7 @@ export default {
goSmaller
()
{
var
scale
=
this
.
scaleSize
if
(
scale
>
0.5
)
{
this
.
scaleSize
=
scale
-
0.1
this
.
scaleSize
=
this
.
$math
.
subtract
(
this
.
$math
.
bignumber
(
scale
),
this
.
$math
.
bignumber
(
0.1
))
}
else
{
this
.
scaleSize
=
0.5
}
...
...
@@ -799,18 +800,18 @@ export default {
}
},
async
getLabelList
()
{
/**
* 这是一个大致的格式转换
*/
try
{
this
.
data
=
[]
let
params
=
{
"relationList"
:
[
123
,
11
]
]
}
var
self
=
this
let
res
=
await
this
.
axios
({
...
...
@@ -825,7 +826,7 @@ export default {
self
.
$store
.
commit
(
'setImageData'
,
imageList
.
imageList
)
console
.
log
(
"!!!!!!!!!!!!!!!!"
)
console
.
log
(
this
.
$store
.
state
.
imageData
)
}
}
}
catch
(
err
)
{
self
.
$store
.
commit
(
'clearImageData'
)
console
.
log
(
err
)
...
...
@@ -1031,7 +1032,7 @@ export default {
}
outputData
.
push
(
newData
)
})
console
.
log
(
"outputdata"
)
console
.
log
(
outputData
)
this
.
imageNum
=
this
.
data
.
len
...
...
DAPlatform-front/src/main.js
View file @
3821a229
...
...
@@ -8,6 +8,9 @@ import ElementUI from 'element-ui'
import
'element-ui/lib/theme-chalk/index.css'
import
axios
from
'axios'
import
VueAxios
from
'vue-axios'
import
*
as
math
from
'mathjs'
;
Vue
.
prototype
.
$math
=
math
axios
.
defaults
.
baseURL
=
'http://localhost:9100/api'
axios
.
defaults
.
timeout
=
8000
...
...
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