From 0f75cd54d62aa6d623ff024ca787c85a578a5f38 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 15 九月 2020 11:09:40 +0800 Subject: [PATCH] 2020-09-15 --- src/tabviews/custom/index.jsx | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx index ea43555..0f4623d 100644 --- a/src/tabviews/custom/index.jsx +++ b/src/tabviews/custom/index.jsx @@ -67,7 +67,7 @@ console.warn('Parse Failure') config = '' } - + // HS涓嶄娇鐢ㄨ嚜瀹氫箟璁剧疆 if (result.LongParamUser && this.props.menuType !== 'HS') { try { // 閰嶇疆淇℃伅瑙f瀽 @@ -86,7 +86,7 @@ }) return } - + // 椤甸潰鏈惎鐢ㄦ椂锛屾樉绀烘湭鍚敤椤甸潰 if (!config.enabled) { this.setState({ @@ -112,17 +112,17 @@ item.initval = param.data[item.field] } } - + if (!item.blacklist || item.blacklist.length === 0) return item - + let _black = item.blacklist.filter(v => { return this.props.permRoles.indexOf(v) !== -1 }) - + if (_black.length > 0) { item.Hide = 'true' } - + return item }) @@ -141,6 +141,8 @@ let params = [] config.components.forEach(component => { + if (!component.format) return // 娌℃湁鍔ㄦ�佹暟鎹� + let _customScript = '' component.scripts && component.scripts.forEach(script => { if (script.status !== 'false') { -- Gitblit v1.8.0