Commit 92808bd6e674ff0998fb6a61bb38d15ef380cf3d

Authored by chenxt
1 parent 25b2b5cc

mes分页

src/mes/common/commonModelComponent/index.js
... ... @@ -264,7 +264,6 @@ const useCommonModelEvent = props => {
264 264 // 初始化事件
265 265 useEffect(
266 266 async () => {
267   - console.log(props?.mesPageChange, 'props?.mesPageChange');
268 267  
269 268 if (commonUtils.isNotEmptyArr(formData)) {
270 269 let pageLayout = [];
... ... @@ -912,9 +911,8 @@ const useCommonModelEvent = props => {
912 911 // 2026 新增如果是indexPage/commonList那么需要真分页
913 912 const { sName, bPagination = false } = config || {};
914 913 let isPagination = false
915   - if (sName.includes('/indexPage/commonList') && bPagination) {
  914 + if (sName?.includes('/indexPage/commonList') && bPagination) {
916 915 isPagination = true
917   - console.log(props, 'isPagination');
918 916  
919 917 }
920 918 const result =
... ... @@ -2581,7 +2579,7 @@ const CommonTableComponent = props => {
2581 2579 onTableBtnClick,
2582 2580 tableProps: {
2583 2581 onChange: () => { },
2584   - rowKey: baseProps?.config?.sId === "17091154460006421964039036672000" ? 'sSlaveId' : 'sId',
  2582 + rowKey: baseProps?.config?.sId === "17091154460006421964039036672000" || baseProps?.config?.sName?.includes('/indexPage/commonList') ? 'sSlaveId' : 'sId',
2585 2583 mesTotalCount,
2586 2584 mesPageSize,
2587 2585 mesPageNum,
... ...