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