dashboard
repositories
filestore
activity
search
login
main
/
zhny-dsjdp
智慧农业大数据平台
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
农场地块添加秧苗
guoshilong
2022-08-31
7d8e4eccb1ada1eea39ea34c68481179fa5b3d42
[zhny-dsjdp.git]
/
src
/
utils
/
public.js
1
2
3
4
5
6
7
8
9
10
11
12
/**
* 单位转换,如果大于10000 按1.0W显示
* @param num 需要转化的值
* @returns {*} 转化过的值
*/
function numUnitConversion (num) {
return (num > 9999) ? (num / 10000).toFixed(2) + 'w' : num.toFixed(0)
}
export default {
numUnitConversion
}