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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
imageAnnotiation.vue
...front/src/components/imageAnnotation/imageAnnotiation.vue
+3
-2
main.js
DAPlatform-front/src/main.js
+3
-0
No files found.
DAPlatform-front/src/components/imageAnnotation/imageAnnotiation.vue
View file @
3821a229
...
...
@@ -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
}
...
...
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