diff --git a/src/mes/common/buttonComponent/index.js b/src/mes/common/buttonComponent/index.js index 86a9acc..a6373a2 100644 --- a/src/mes/common/buttonComponent/index.js +++ b/src/mes/common/buttonComponent/index.js @@ -278,7 +278,7 @@ const ButtonComponent = props => { } }); - console.log(',enulist', menuList); + diff --git a/src/mes/productionExec/quickSwitchTabComponent/index.js b/src/mes/productionExec/quickSwitchTabComponent/index.js index 8f79b6c..64cf822 100644 --- a/src/mes/productionExec/quickSwitchTabComponent/index.js +++ b/src/mes/productionExec/quickSwitchTabComponent/index.js @@ -101,21 +101,54 @@ const QuickSwitchTabComponent = baseProps => { // 默认返回原始列表 return list; } + + function translateTipList(language) { + // 原始中文列表 + const list = ["生产执行", "质量巡检", "拼版图", "产品图", "报工任务"]; + + // 定义多语言映射 + const translations = { + sEnglish: { + "生产执行": "Production Execution-生产执行", + "质量巡检": "Quality Inspection-质量巡检", + "拼版图": "Assembly Drawing-拼版图", + "产品图": "Product Drawing-产品图", + "报工任务": "Work Reporting Task-报工任务" + }, + sBig5: { + "生产执行": "生產執行", + "质量巡检": "質量巡檢", + "拼版图": "拼版圖", + "产品图": "產品圖", + "报工任务": "報工任務" + } + }; + + // 根据语言设置进行转换 + if (translations[language]) { + return list.map(item => translations[language][item] || item); + } + // 默认返回原始列表 + return list; + } const sLanguage = props.app.userinfo.sLanguage || 'sChinese'; - list = translateList(sLanguage); + list = translateList(sLanguage); + const tipList = translateTipList(sLanguage); const no = commonFunc.showLocalMessage(props, 'No', '暂无'); return ( -