doway-coms 2.5.9 → 2.6.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.
- package/package.json +1 -1
- package/packages/utils/common.js +7 -2
package/package.json
CHANGED
package/packages/utils/common.js
CHANGED
|
@@ -620,12 +620,17 @@ export function getGridPagerButton(datas,dataCode){
|
|
|
620
620
|
*/
|
|
621
621
|
export function getStepMaxValue(datas,fieldCode,step){
|
|
622
622
|
let tempSortStep = step
|
|
623
|
-
let
|
|
623
|
+
let tempMaxObj = XEUtils.max(
|
|
624
624
|
datas,
|
|
625
625
|
fieldCode
|
|
626
|
-
)
|
|
626
|
+
)
|
|
627
|
+
let tempDtlMaxSort = 0
|
|
628
|
+
if(tempMaxObj){
|
|
629
|
+
tempDtlMaxSort = tempMaxObj.sort
|
|
630
|
+
}
|
|
627
631
|
tempDtlMaxSort = XEUtils.divide(tempDtlMaxSort, tempSortStep)
|
|
628
632
|
tempDtlMaxSort = XEUtils.floor(tempDtlMaxSort, 0)
|
|
629
633
|
tempDtlMaxSort = XEUtils.add(tempDtlMaxSort, 1)
|
|
630
634
|
tempDtlMaxSort = XEUtils.multiply(tempDtlMaxSort, tempSortStep)
|
|
635
|
+
return tempDtlMaxSort
|
|
631
636
|
}
|