系统内部跳转和数值百分比转换
/*系统内部跳转*/
function routeTo(pathName, query = {}) {
this.$router.push({
name: pathName,
query
})
}
/* 数值百分比转换*/
function percent(value, fmt) {
return `${((value ||0) *100).toFixed(fmt ||2)}%`;
}
/*系统内部跳转*/
function routeTo(pathName, query = {}) {
this.$router.push({
name: pathName,
query
})
}
/* 数值百分比转换*/
function percent(value, fmt) {
return `${((value ||0) *100).toFixed(fmt ||2)}%`;
}