From b1725ffebe2166c2997d4943046307e5f87eaeb9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 03 九月 2021 11:13:35 +0800 Subject: [PATCH] 2021-09-03 --- src/views/mobdesign/index.jsx | 23 ++++------------------- 1 files changed, 4 insertions(+), 19 deletions(-) diff --git a/src/views/mobdesign/index.jsx b/src/views/mobdesign/index.jsx index b981866..99729f1 100644 --- a/src/views/mobdesign/index.jsx +++ b/src/views/mobdesign/index.jsx @@ -830,23 +830,6 @@ } } - filterConfig = (components) => { - return components.map(item => { - if (item.type === 'tabs') { - item.subtabs.forEach(tab => { - tab.components = this.filterConfig(tab.components) - }) - } else if (item.type === 'group') { - item.components = this.filterConfig(item.components) - } else if (item.type === 'table' && item.subtype === 'normaltable') { - item.search = item.search.filter(a => !a.origin) - item.action = item.action.filter(a => !a.origin) - item.cols = item.cols.filter(a => !a.origin) - } - return item - }) - } - submitConfig = () => { let config = fromJS(this.state.config).toJS() @@ -868,8 +851,6 @@ }) setTimeout(() => { - config.components = this.filterConfig(config.components) - if (config.enabled && this.verifyConfig()) { config.enabled = false } @@ -877,6 +858,10 @@ let roleParam = {type: 'view', key: config.uuid, title: config.MenuName, children: []} roleParam.children = this.getMenuMessage() + if (config.components.findIndex(item => item.type === 'login') > -1) { + roleParam.login = true + } + let param = { func: 'sPC_TrdMenu_AddUpt', FstID: 'mk_app', -- Gitblit v1.8.0