From 46052874517275b33d8608a6dc455f6b4fd7ee89 Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Thu, 19 Jun 2025 15:57:14 +0800 Subject: [PATCH] 完善按钮的英文翻译 --- src/components/Common/CommonListSelect/index.js | 14 +++++++------- src/components/Common/CommonListSelectMulti/index.js | 6 ++++-- src/components/Manufacture/ProcessCardPack/ProcessCardPackTableTree.js | 3 ++- src/components/Manufacture/WorkOrderPackTableTreeNew/index.js | 4 +++- 4 files changed, 16 insertions(+), 11 deletions(-) diff --git a/src/components/Common/CommonListSelect/index.js b/src/components/Common/CommonListSelect/index.js index 79ec03f..b9e1e60 100644 --- a/src/components/Common/CommonListSelect/index.js +++ b/src/components/Common/CommonListSelect/index.js @@ -349,6 +349,9 @@ class CommonList extends Component { token, sModelsId, slaveFilterCondition, slaveConfig, slavePagination, slaveOrderBy, app, } = this.props; const { userinfo } = app; + const BtnSure = commonFunc.showLocalMessage(this.props, 'BtnSure', '确定'); + const FriendlyReminder = commonFunc.showLocalMessage(this.props, 'FriendlyReminder', '温馨提示'); + const onSendSocketMessage = this.props.handleSendSocketMessage; const returnData = await commonBusiness.saveData({ token, value: params, sModelsId }); this.props.onSaveState({ @@ -360,7 +363,7 @@ class CommonList extends Component { // eslint-disable-next-line no-underscore-dangle const _this = this; confirm({ - title: '单据校验', /* 防呆校验 */ + title: FriendlyReminder, /* 防呆校验 */ content: returnData.msg, onOk() { params.iFlag = 1; @@ -368,8 +371,6 @@ class CommonList extends Component { }, onCancel() { }, - okText: '保存', - cancelText: '不保存', }); this.props.onSaveState({ loading: false, @@ -377,13 +378,12 @@ class CommonList extends Component { return true; } else if (returnData.code === 2 || returnData.code === -8) { Modal.info({ - title: '温馨提示:', + title: FriendlyReminder, content: (