From 9d2d1b65aa4a19a2a35ea96769dd2abf3a55c3b5 Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Tue, 17 Jun 2025 10:43:10 +0800 Subject: [PATCH] 1.搜索条件 根据系统语言展示对应的语言格式 --- src/components/Common/SearchComponent/index.js | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 72 insertions(+), 3 deletions(-) diff --git a/src/components/Common/SearchComponent/index.js b/src/components/Common/SearchComponent/index.js index 79dd911..5e4eaf8 100644 --- a/src/components/Common/SearchComponent/index.js +++ b/src/components/Common/SearchComponent/index.js @@ -716,7 +716,7 @@ export default class SearchComponent extends Component { handleFields = (searchColumns) => { /* 默认快捷过滤 */ if (commonUtils.isEmptyArr(searchColumns)) { return; } - const { masterData, searchRowKeys } = this.props; + const { masterData, searchRowKeys, app } = this.props; const children = searchRowKeys.map((key) => { const { [`sFirst-${key}`]: sFirstValue, [`sSecond-${key}`]: sSecondValue, [`${key}disabled`]: disabled } = masterData; const firstDataIndex = commonUtils.isEmpty(sFirstValue) ? 's' : @@ -750,8 +750,11 @@ export default class SearchComponent extends Component { sDropDownType: 'sql', bNotEmpty: true, iVisCount: 1, - dropDownData: sSecondConditionPro && DropDownType === 'sql' ? commonConfig.seaJudge.s_proDropDown : sSecondConditionPro ? commonConfig.seaJudge.s_pro : commonConfig.seaJudge[firstDataIndex], - bCanInput: false, + dropDownData: this.getTranslatedSeaJudge( + sSecondConditionPro && DropDownType === 'sql' ? 's_proDropDown' : + sSecondConditionPro ? 's_pro' : firstDataIndex, + app?.userinfo?.sLanguage + ), bCanInput: false, }; const showThirdConfig = { sId, @@ -797,6 +800,7 @@ export default class SearchComponent extends Component { showThirdConfig.sDateFormat = 'YYYY'; } } + console.log('23showTypeSecondProps3', showTypeSecondProps); return (