From f9697383bc9097be8a444558e09ae21b27f1e831 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 31 十二月 2019 09:27:21 +0800 Subject: [PATCH] 2019-12-31 --- src/tabviews/tableshare/actionList/index.jsx | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/src/tabviews/tableshare/actionList/index.jsx b/src/tabviews/tableshare/actionList/index.jsx index ab371ec..44e0356 100644 --- a/src/tabviews/tableshare/actionList/index.jsx +++ b/src/tabviews/tableshare/actionList/index.jsx @@ -16,7 +16,8 @@ MenuID: PropTypes.string, actions: PropTypes.array, // 鎼滅储鏉′欢鍒楄〃 dict: PropTypes.object, // 瀛楀吀椤� - setting: PropTypes.any + setting: PropTypes.any, + triggerPopview: PropTypes.func } state = { @@ -99,6 +100,14 @@ } else if (item.OpenType === 'excelOut') { this.setState({loadingUuid: item.uuid}) this.refreshdata(item, 'excelOut') + } else if (item.OpenType === 'popview' && this.props.type !== 'subtab') { + this.props.triggerPopview(item, data) + } else if (item.OpenType === 'popview' && this.props.type === 'subtab') { + notification.warning({ + top: 92, + message: '寮圭獥椤甸潰涓嶆敮鎸佹璁剧疆锛�', + duration: 10 + }) } else { notification.warning({ top: 92, @@ -784,6 +793,10 @@ } } + if (this.props.type === 'subtab') { + container = document.body + } + return ( <Modal title={title} -- Gitblit v1.8.0