Commit faff2ae5 authored by zhangwenshuai's avatar zhangwenshuai

修改百分比上送格式化

parent c57c7061
......@@ -92,11 +92,11 @@ export const SetFormatter = {
val = Number(val).toFixed(precision);
return [{ value: val, text: val }];
},
PERCENTAGE: (val) => {
PERCENTAGE: (val, config) => {
val = `${val}`.replace('%', '');
if (!isNumber(val)) return emptyModel;
val = accDiv(val, 100);
return SetFormatter.NUMBER(val);
return SetFormatter.NUMBER(val, config);
},
DATE: (val, config) => {
if (!val) return emptyModel;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment