|
@@ -28,7 +28,9 @@ export function queryTableList<T>(ishandleFloatErr = false) {
|
|
|
if (ishandleFloatErr) { // 折中方案:处理浮点失真,如果页面卡顿,则需要服务处理
|
|
if (ishandleFloatErr) { // 折中方案:处理浮点失真,如果页面卡顿,则需要服务处理
|
|
|
result?.forEach((e: T, i: number) => {
|
|
result?.forEach((e: T, i: number) => {
|
|
|
for (const item in e) {
|
|
for (const item in e) {
|
|
|
- e[item] = getDecimalsNum(e[item], 6, (e as any).decimalplace)
|
|
|
|
|
|
|
+ const decimal = (e as any).decimalplace
|
|
|
|
|
+ const count = decimal ? decimal : 4
|
|
|
|
|
+ e[item] = getDecimalsNum(e[item], count, decimal)
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|