doway-coms 1.4.33 → 1.4.34
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 +6 -3
package/package.json
CHANGED
package/packages/utils/common.js
CHANGED
|
@@ -564,18 +564,21 @@ export function setFormButtons(toolBtns,statusBtns,permissionBtns){
|
|
|
564
564
|
}
|
|
565
565
|
})
|
|
566
566
|
}
|
|
567
|
-
export function
|
|
567
|
+
export function getGridPagerButton(datas,dataCode){
|
|
568
|
+
let returnButtons = []
|
|
568
569
|
let tempData = XEUtils.find(datas,p=>p.code===dataCode)
|
|
569
570
|
if(!tempData){
|
|
570
|
-
return
|
|
571
|
+
return returnButtons
|
|
571
572
|
}
|
|
573
|
+
|
|
572
574
|
XEUtils.arrayEach(tempData.fields,loopField=>{
|
|
573
575
|
if(loopField.controlType==='pager_button'){
|
|
574
|
-
|
|
576
|
+
returnButtons.push({
|
|
575
577
|
field:loopField.boundField,
|
|
576
578
|
title:loopField.name,
|
|
577
579
|
visible:true
|
|
578
580
|
})
|
|
579
581
|
}
|
|
580
582
|
})
|
|
583
|
+
return returnButtons
|
|
581
584
|
}
|