diff --git a/src/mes/productionExec/productionExecMain/index.js b/src/mes/productionExec/productionExecMain/index.js index fdd1b1a..912447a 100644 --- a/src/mes/productionExec/productionExecMain/index.js +++ b/src/mes/productionExec/productionExecMain/index.js @@ -242,6 +242,8 @@ const useProductionExecMainEvent = props => { [`${tableName}Data`]: data = [], [`${tableName}SelectedRowKeys`]: selectedRowKeys = [] } = props; + const tipLast = commonFunc.showLocalMessage(props, 'tipLast', '已经是最后一条了!'); + const tipFirst = commonFunc.showLocalMessage(props, 'tipFirst', '已经是第一条!'); let index = props[`${tableName}Data`].findIndex( item => item.sId === selectedRowKeys[0] ); @@ -252,7 +254,7 @@ const useProductionExecMainEvent = props => { next: () => { if (!data.length) return; if (data.length - 1 == index) { - message.info("已经是最后一条了"); + message.info(tipLast); return; } checkedRows(data[index + 1].sId); @@ -261,7 +263,7 @@ const useProductionExecMainEvent = props => { up: () => { if (!data.length) return; if (index == 0) { - message.info("已经是第一条了"); + message.info(tipFirst); return; } checkedRows(data[index - 1].sId);