dashboard
repositories
filestore
activity
search
login
main
/
zhny-dsjdp
智慧农业大数据平台
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
遥感监测修改、遥感监测新增基地跳转地图
xiebin
2022-09-02
54de656fb5f41a0ad982bdf896a1ea1691c0dede
[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
}