From b59a321435b48626ab268d48df841923f86f1451 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 19 八月 2022 17:51:40 +0800 Subject: [PATCH] 2022-08-19 --- src/tabviews/zshare/actionList/exceloutbutton/index.jsx | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/tabviews/zshare/actionList/exceloutbutton/index.jsx b/src/tabviews/zshare/actionList/exceloutbutton/index.jsx index c2f7668..72c81d2 100644 --- a/src/tabviews/zshare/actionList/exceloutbutton/index.jsx +++ b/src/tabviews/zshare/actionList/exceloutbutton/index.jsx @@ -61,7 +61,6 @@ componentDidMount () { MKEmitter.addListener('triggerBtnId', this.actionTrigger) - MKEmitter.addListener('returnModuleParam', this.triggerExcelout) } UNSAFE_componentWillReceiveProps (nextProps) { @@ -92,7 +91,6 @@ return } MKEmitter.removeListener('triggerBtnId', this.actionTrigger) - MKEmitter.removeListener('returnModuleParam', this.triggerExcelout) } /** @@ -148,7 +146,7 @@ return } - MKEmitter.emit('queryModuleParam', btn.$menuId, btn.uuid) + MKEmitter.emit('queryModuleParam', btn.$menuId, this.triggerExcelout) if (window.GLOB.systemType === 'production') { MKEmitter.emit('queryTrigger', {menuId: btn.uuid, name: '瀵煎嚭Excel'}) } @@ -157,10 +155,8 @@ /** * @description Excel 瀵煎嚭 */ - triggerExcelout = (menuId, btnId, viewParam) => { + triggerExcelout = (viewParam) => { const { btn } = this.props - - if (btn.$menuId !== menuId || btn.uuid !== btnId || !viewParam) return let name = `${viewParam.menuName}${moment().format('YYYYMMDDHHmmss')}.xlsx` let pageSize = 1000 -- Gitblit v1.8.0