From 1637a24e160f87e171fc4978a8c9cb8875cdcabb Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 20 五月 2022 01:12:51 +0800 Subject: [PATCH] 2022-05-20 --- src/tabviews/zshare/actionList/funcMegvii/index.jsx | 16 +++++----------- 1 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/tabviews/zshare/actionList/funcMegvii/index.jsx b/src/tabviews/zshare/actionList/funcMegvii/index.jsx index 0c80f56..a5ba61a 100644 --- a/src/tabviews/zshare/actionList/funcMegvii/index.jsx +++ b/src/tabviews/zshare/actionList/funcMegvii/index.jsx @@ -20,6 +20,7 @@ static propTpyes = { btn: PropTypes.object, // 鎸夐挳 disabled: PropTypes.any, // 琛屾寜閽鐢� + lineBtn: PropTypes.any, // 鏄惁涓鸿绾ф寜閽� } state = { @@ -94,16 +95,11 @@ * @description 瑙﹀彂鎸夐挳鎿嶄綔 */ actionTrigger = (triggerId, record, type) => { - const { Tab, BID, btn, selectedData, setting } = this.props + const { Tab, BID, btn, selectedData, setting, lineBtn } = this.props const { loading, disabled } = this.state if (loading || disabled) return - if (triggerId) { - if (btn.uuid !== triggerId) return - if (this.props.lineId && record && record[0] && this.props.lineId !== record[0].$$key) { - return - } - } + if (triggerId && btn.uuid !== triggerId) return if (((Tab && Tab.supMenu) || setting.supModule) && !BID) { notification.warning({ @@ -112,10 +108,8 @@ duration: 5 }) return - } else if (type === 'linkbtn' && selectedData && selectedData.length === 1) { - if (record[0].$Index !== selectedData[0].$Index) { - return - } + } else if (type === 'linkbtn' && lineBtn && !is(fromJS(selectedData || []), fromJS(record))) { + return } let data = record || selectedData || [] -- Gitblit v1.8.0