From 3ab7196ca9a07b293ed2e65b94b39acd17655837 Mon Sep 17 00:00:00 2001
From: pengm <674192343@qq.com>
Date: Tue, 17 Jun 2025 18:37:15 +0800
Subject: [PATCH] 1.完善系统多语言翻译
---
src/components/Common/CommonComponent/index.js | 13 +++++++++++--
src/components/Common/CommonListSelectTree/index.js | 7 ++++---
src/components/Common/CommonListTreeSelect/index.js | 11 +++++++----
src/components/Common/CommonView/index.js | 5 ++++-
src/components/Common/PersonCenter/PersonCenter.js | 63 +++++++++++++++++++++++++++++++--------------------------------
src/components/Common/commonBusiness.js | 4 +++-
src/components/Manufacture/ProcessCardPackTableTreeNew/index.js | 2 +-
src/components/Manufacture/WorkOrderPackTableTreeNew/index.js | 2 +-
src/utils/common/message.js | 21 +++++++++++++++++----
9 files changed, 79 insertions(+), 49 deletions(-)
diff --git a/src/components/Common/CommonComponent/index.js b/src/components/Common/CommonComponent/index.js
index 1302953..eb97465 100644
--- a/src/components/Common/CommonComponent/index.js
+++ b/src/components/Common/CommonComponent/index.js
@@ -1,6 +1,7 @@
import moment from 'moment';
import React, { Component, createRef } from 'react';
import reactComponentDebounce from '@/components/Common/ReactDebounce';
+import * as commonFunc from '@/components/Common//commonFunc';/* 通用单据方法 */ /* 通用单据方法 */
// import '@ant-design/compatible/assets/index.css';
import {
InputNumber,
@@ -1010,10 +1011,14 @@ export default class CommonComponent extends Component {
};
getSearchProps = () => {
+ let chooseTitle = '选择';
+ if(commonUtils.isNotEmptyObject(this.props.app) && commonUtils.isNotEmptyObject(this.props.app.commonConst)) {
+ chooseTitle = commonFunc.showMessage(this.props.app.commonConst, 'choose') ;
+ }
const obj = {
onKeyDown: this.onKeyDown,
onChange: e => this.handleSelectOptionEvent(e.target.value), /* 数据改变回带到父组件 */
- value: commonUtils.isUndefined(this.state.dataValue) ? '选择' : commonUtils.strUndefinedToEmpty(this.state.dataValue), /* 数据值 */
+ value: commonUtils.isUndefined(this.state.dataValue) ? chooseTitle : commonUtils.strUndefinedToEmpty(this.state.dataValue), /* 数据值 */
};
return obj;
}
@@ -1113,6 +1118,10 @@ export default class CommonComponent extends Component {
const {
sTableTitleSql, iVisCount, sName, sDateFormat,
} = this.props.showConfig;
+ let chooseTitle = '选择';
+ if(commonUtils.isNotEmptyObject(this.props.app) && commonUtils.isNotEmptyObject(this.props.app.commonConst)) {
+ chooseTitle = commonFunc.showMessage(this.props.app.commonConst, 'choose') ;
+ }
if (commonUtils.isNotEmptyStr(sTableTitleSql) && iVisCount > 1) {
return ;
}
@@ -1251,7 +1260,7 @@ export default class CommonComponent extends Component {
return ;
}
} else if (this.state.enabled && commonUtils.isNotEmptyObject(this.props.showConfig.sName) && this.props.showConfig.sDropDownType === 'popup') { /* 通用弹窗 */
- return (