Commit 8fa4a17df0d1e1d24503403f0df29a36e835b398
1 parent
99676ef3
1.处理提示的多语言 翻译
Showing
1 changed file
with
4 additions
and
2 deletions
src/components/Common/CommonJurisdictionNewEvent.js
| ... | ... | @@ -638,6 +638,8 @@ export default (ChildComponent) => { |
| 638 | 638 | } |
| 639 | 639 | /** 按钮操作事件 */ |
| 640 | 640 | handleButtonClick = (name, isFresh) => { |
| 641 | + const selectUserPermission = commonFunc.showLocalMessage(this.props, 'selectUserPermission', '选择用户权限'); | |
| 642 | + const selectGroupPerssion = commonFunc.showLocalMessage(this.props, 'selectGroupPerssion', '选择组权限'); | |
| 641 | 643 | if (name.includes('BtnRepairGroup')) { |
| 642 | 644 | const { sJurisdictionClassifyId } = this.props; |
| 643 | 645 | if (commonUtils.isNotEmptyArr(sJurisdictionClassifyId)) { |
| ... | ... | @@ -653,7 +655,7 @@ export default (ChildComponent) => { |
| 653 | 655 | } |
| 654 | 656 | } |
| 655 | 657 | } else { |
| 656 | - message.error('请选择组权限'); | |
| 658 | + message.error(selectGroupPerssion); | |
| 657 | 659 | } |
| 658 | 660 | } else if (name.includes('BtnRepairUser')) { |
| 659 | 661 | const { userViewSelectedRowKeys } = this.props; |
| ... | ... | @@ -670,7 +672,7 @@ export default (ChildComponent) => { |
| 670 | 672 | } |
| 671 | 673 | } |
| 672 | 674 | } else { |
| 673 | - message.error('请选择用户权限'); | |
| 675 | + message.error(selectUserPermission); | |
| 674 | 676 | } |
| 675 | 677 | } else if (name === 'BtnOut') { |
| 676 | 678 | this.handleOut(); | ... | ... |