From 2cb65d99c9aebf8293cb2838fcfe3e09fb2739ce Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 06 十二月 2019 00:15:12 +0800 Subject: [PATCH] 2019-12-06 --- src/components/sidemenu/editthdmenu/index.jsx | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/components/sidemenu/editthdmenu/index.jsx b/src/components/sidemenu/editthdmenu/index.jsx index 8981993..387cd83 100644 --- a/src/components/sidemenu/editthdmenu/index.jsx +++ b/src/components/sidemenu/editthdmenu/index.jsx @@ -197,11 +197,13 @@ let _this = this let param = {} param.func = 'sPC_Menu_SortUpt' - param.LText = [] + let _text = [] previewList.forEach((item, index) => { - param.LText.push('selectmspace\'' + item.MenuID + '\'mspaceasmspaceMenuid,' + (index + 1) * 10 + 'mspaceasmspacesort') + _text.push('select \'' + item.MenuID + '\' as Menuid,' + (index + 1) * 10 + ' as sort') }) - param.LText = param.LText.join('mspaceunionmspace') + _text = _text.join(' union ') + param.LText = Utils.formatOptions(_text) + confirm({ title: this.state.dict['header.menu.resetorder'], content: '', @@ -366,14 +368,17 @@ handleSubConfig = (item, originMenu, config) => { if (item.OpenType === 'pop') { + item.pageParam = '' + if (config && config.type === 'modal') { + item.pageParam = config + } + this.setState({ editMenu: originMenu, editAction: item, tabview: 'Modal' }) } - console.log(item) - console.log(originMenu) } UNSAFE_componentWillMount () { -- Gitblit v1.8.0