From 9cf5fc474d2159aad973e3208fbef670f325307f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 25 十一月 2020 17:57:41 +0800 Subject: [PATCH] 2020-11-25 --- src/tabviews/subtabtable/index.jsx | 31 ++++++++++++++++++++++++++----- 1 files changed, 26 insertions(+), 5 deletions(-) diff --git a/src/tabviews/subtabtable/index.jsx b/src/tabviews/subtabtable/index.jsx index 9d8409f..7c85792 100644 --- a/src/tabviews/subtabtable/index.jsx +++ b/src/tabviews/subtabtable/index.jsx @@ -114,11 +114,34 @@ config = UtilsUpdate.updateSubTable(config) // 浠呮敮鎸乪xec銆乸rompt銆乸op 涓夌绫诲瀷鎸夐挳 + let labels = [] if (type === 'calendar') { - config.action = config.action.filter(item => ['exec', 'prompt', 'pop', 'tab', 'excelIn', 'excelOut'].includes(item.OpenType)) + config.action = config.action.filter(item => { + if (['exec', 'prompt', 'pop', 'tab', 'excelIn', 'excelOut'].includes(item.OpenType)) return true + + labels.push(item.label) + + return false + }) + } else { - config.action = config.action.filter(item => ['exec', 'prompt', 'pop'].includes(item.OpenType)) + config.action = config.action.filter(item => { + if (['exec', 'prompt', 'pop'].includes(item.OpenType)) return true + + labels.push(item.label) + + return false + }) } + + if (window.GLOB.systemType !== 'production' && labels.length > 0) { + notification.warning({ + top: 92, + message: `涓嶆敮鎸佹寜閽紙${labels.join('銆�')}锛夌殑鎵撳紑鏂瑰紡锛乣, + duration: 5 + }) + } + // 鏉冮檺杩囨护 if (this.props.menuType !== 'HS') { @@ -200,9 +223,7 @@ config.columns.forEach(col => { if (_hideCol.includes(col.uuid)) return - if (col.linkThdMenu) { - col.linkThdMenu = '' - } + col.linkThdMenu = '' // 寮圭獥涓笉鍙娇鐢ㄥ瓧娈甸�忚 if (col.type === 'colspan' && col.sublist) { let _col = JSON.parse(JSON.stringify(col)) -- Gitblit v1.8.0