From 34ab149d8773e0d4cc8d1e6e6d538cd5d75ac49d Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Thu, 13 Nov 2025 16:19:15 +0800 Subject: [PATCH] 1.第一条,最后一条 翻译成英文 --- src/mes/productionExec/productionExecMain/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); -- libgit2 0.22.2