From 56f2cdd60fa0c25bebc2abb5f8c9ecae26721ba6 Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Mon, 8 Sep 2025 13:04:30 +0800 Subject: [PATCH] 1.去除console --- src/components/Common/CommonListTreeEvent.js | 2 +- src/mes/common/buttonComponent/index.js | 10 +++++----- src/mes/common/commonModelComponent/index.js | 2 -- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/components/Common/CommonListTreeEvent.js b/src/components/Common/CommonListTreeEvent.js index 620b8d6..3f8d685 100644 --- a/src/components/Common/CommonListTreeEvent.js +++ b/src/components/Common/CommonListTreeEvent.js @@ -2124,7 +2124,7 @@ export default (ChildComponent) => { // masterData, // employeeConfig, } = this.props; - console.log('myConfigArr',myConfigArr) + let picArr = []; if(commonUtils.isNotEmptyArr(myConfigArr)) { picArr = myConfigArr; diff --git a/src/mes/common/buttonComponent/index.js b/src/mes/common/buttonComponent/index.js index 8f6c6c1..474caf9 100644 --- a/src/mes/common/buttonComponent/index.js +++ b/src/mes/common/buttonComponent/index.js @@ -15,7 +15,7 @@ const getNavIcon = (bActive, iconName = 2) => { const ButtonComponent = props => { const { app, sModelsId, currentContent, menuMap } = props; const { managementData, userinfo = {} } = app; - console.log('3managementData3', managementData); + const { iTeamType, sWorkshopId } = userinfo; if ([3, 4, 5, 6].includes(iTeamType)) { @@ -54,7 +54,7 @@ const ButtonComponent = props => { const productionExecMain = managementData.find( item => (item.sMenuName === "生产执行" || item.sMenuName === "Production Execution") ); - console.log('productionExecMain', productionExecMain); + if ( productionExecMain && productionExecMain.children) { const forLength = productionExecMain.children.length; for (let i = 0; i < forLength; i++) { @@ -269,7 +269,7 @@ const ButtonComponent = props => { } menuList.push(result); }); - console.log('menuList:', menuList); + dataList.forEach(item => { if (!menuList.some(item1 => item1.name === item.name)) { const iIndex = menuList.findIndex(item1 => !item1); @@ -277,7 +277,7 @@ const ButtonComponent = props => { } }); - console.log('dataList:', dataList); + // 点击 const itemClick = e => { @@ -397,7 +397,7 @@ const ButtonComponent = props => { ); }; - console.log(menuList, '1menuLis111t '); + return (
{ width = "100%", height = "100%" } = item; - console.log('ssconfigLists', configList, sEntireTabName, item); const sEntireTabNameNew = sLanguage === 'sEnglish' ? sEnglishEntireTabName : sLanguage === 'sBig5EntireTabName' ? sBig5EntireTabName : sEntireTabName; - console.log('sEntireTabNameNew', sEntireTabNameNew); const advancedStyle = mode === "advanced" ? { -- libgit2 0.22.2