Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsk-data-view-pd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit afec6c31
authored
Aug 14, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
百分比保留位数调整回来
1 parent
fbf76f8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/utils/util.js
src/utils/util.js
View file @
afec6c3
...
@@ -136,7 +136,7 @@ const deepClone = obj => {
...
@@ -136,7 +136,7 @@ const deepClone = obj => {
}
}
// 数字转百分数
// 数字转百分数
const
toPercent
=
num
=>
{
const
toPercent
=
num
=>
{
let
str
=
Number
(
num
).
toFixed
(
1
)
let
str
=
Number
(
num
).
toFixed
(
0
)
str
+=
'%'
str
+=
'%'
return
str
return
str
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment