zmdms-webui 1.8.9 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,7 @@ import { __assign } from '../_virtual/_tslib.js';
|
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useCallback } from 'react';
|
|
4
4
|
import { Table } from 'antd';
|
|
5
|
-
import { plus } from 'zmdms-utils';
|
|
5
|
+
import { plus, addThousedSeparator } from 'zmdms-utils';
|
|
6
6
|
import { IS_SUMMARY } from './constant.js';
|
|
7
7
|
|
|
8
8
|
function useSummary(summaryConfig, columns, options) {
|
|
@@ -239,6 +239,11 @@ function getSubtotalObj(fields, dataSource) {
|
|
|
239
239
|
}
|
|
240
240
|
});
|
|
241
241
|
});
|
|
242
|
+
Object.keys(summaryTotalObj).forEach(function (key) {
|
|
243
|
+
if (summaryTotalObj[key] !== undefined) {
|
|
244
|
+
summaryTotalObj[key] = addThousedSeparator(summaryTotalObj[key]);
|
|
245
|
+
}
|
|
246
|
+
});
|
|
242
247
|
return {
|
|
243
248
|
summaryTotalObj: summaryTotalObj,
|
|
244
249
|
summaryTotalConfigObj: summaryTotalConfigObj,
|