Commit 34ab149d8773e0d4cc8d1e6e6d538cd5d75ac49d

Authored by Min
1 parent abad99e1

1.第一条,最后一条 翻译成英文

src/mes/productionExec/productionExecMain/index.js
... ... @@ -242,6 +242,8 @@ const useProductionExecMainEvent = props => {
242 242 [`${tableName}Data`]: data = [],
243 243 [`${tableName}SelectedRowKeys`]: selectedRowKeys = []
244 244 } = props;
  245 + const tipLast = commonFunc.showLocalMessage(props, 'tipLast', '已经是最后一条了!');
  246 + const tipFirst = commonFunc.showLocalMessage(props, 'tipFirst', '已经是第一条!');
245 247 let index = props[`${tableName}Data`].findIndex(
246 248 item => item.sId === selectedRowKeys[0]
247 249 );
... ... @@ -252,7 +254,7 @@ const useProductionExecMainEvent = props => {
252 254 next: () => {
253 255 if (!data.length) return;
254 256 if (data.length - 1 == index) {
255   - message.info("已经是最后一条了");
  257 + message.info(tipLast);
256 258 return;
257 259 }
258 260 checkedRows(data[index + 1].sId);
... ... @@ -261,7 +263,7 @@ const useProductionExecMainEvent = props => {
261 263 up: () => {
262 264 if (!data.length) return;
263 265 if (index == 0) {
264   - message.info("已经是第一条了");
  266 + message.info(tipFirst);
265 267 return;
266 268 }
267 269 checkedRows(data[index - 1].sId);
... ...