From 37a134bd23ec4b227a0e010b08a1a89c2bbaaa0d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 03 十一月 2020 17:10:14 +0800 Subject: [PATCH] 2020-11-03 --- src/tabviews/zshare/actionList/exceloutbutton/index.jsx | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/tabviews/zshare/actionList/exceloutbutton/index.jsx b/src/tabviews/zshare/actionList/exceloutbutton/index.jsx index fc82316..030e799 100644 --- a/src/tabviews/zshare/actionList/exceloutbutton/index.jsx +++ b/src/tabviews/zshare/actionList/exceloutbutton/index.jsx @@ -18,6 +18,7 @@ static propTpyes = { BID: PropTypes.string, // 涓昏〃ID show: PropTypes.any, // 鏄剧ず鏍峰紡 + MenuName: PropTypes.any, // 鑿滃崟鍚嶇О Tab: PropTypes.any, // 濡傛灉褰撳墠鍏冪礌涓烘爣绛炬椂锛宼ab涓烘爣绛句俊鎭� btn: PropTypes.object, // 鎸夐挳 setting: PropTypes.any, // 椤甸潰閫氱敤璁剧疆 @@ -440,7 +441,7 @@ * @description 鎵ц鑷畾涔夎剼鏈� */ execCustomScript = () => { - const { btn } = this.props + const { btn, MenuName } = this.props const { search } = this.state let script = btn.verify.script @@ -464,7 +465,8 @@ }) let param = { - func: 'sPC_TableData_InUpDe' + func: 'sPC_TableData_InUpDe', + menuname: `${MenuName ? MenuName + '-' : ''}${btn.label}` } if (this.props.BID) { @@ -527,7 +529,7 @@ * @description 鑾峰彇榛樿瀛樺偍杩囩▼璇锋眰鍙傛暟 */ getExcelDefaultParam = (arr_field, orderBy, search, pagination = false, pageIndex = 1, pageSize = 100) => { - const { setting } = this.props + const { setting, MenuName, btn } = this.props let _search = Utils.joinMainSearchkey(search) @@ -538,7 +540,8 @@ obj_name: 'data', arr_field: arr_field, custom_script: setting.customScript, - default_sql: setting.default || 'true' + default_sql: setting.default || 'true', + menuname: `${MenuName ? MenuName + '-' : ''}${btn.label}` } // 鏁版嵁绠$悊鏉冮檺 -- Gitblit v1.8.0