1,修改用户管理展示岗位信息
2,修复提成比例数据格式为浮点型 3,修复修改提成比例时业务员展示 4,金额数字逢三位加逗号
This commit is contained in:
		| @@ -153,3 +153,14 @@ export function handleTree(data, id, parentId, children, rootId) { | ||||
|   }); | ||||
|   return treeData != '' ? treeData : data; | ||||
| } | ||||
|  | ||||
| /** 数字逢三位加逗号 */ | ||||
| export function toThousands(num) { | ||||
|   var num = (num || 0).toString(), result = ''; | ||||
|   while (num.length > 3) { | ||||
|     result = ',' + num.slice(-3) + result; | ||||
|     num = num.slice(0, num.length - 3); | ||||
|   } | ||||
|   if (num) { result = num + result; } | ||||
|   return result; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user