From da7068bd48791cdee966c786ce0dfd46f6e03df9 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 08 一月 2021 19:02:24 +0800
Subject: [PATCH] 2021-01-08

---
 src/tabviews/zshare/actionList/newpagebutton/index.jsx |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/tabviews/zshare/actionList/newpagebutton/index.jsx b/src/tabviews/zshare/actionList/newpagebutton/index.jsx
index ee65494..f4e8d64 100644
--- a/src/tabviews/zshare/actionList/newpagebutton/index.jsx
+++ b/src/tabviews/zshare/actionList/newpagebutton/index.jsx
@@ -17,7 +17,6 @@
     btn: PropTypes.object,            // 鎸夐挳
     selectedData: PropTypes.any,      // 瀛愯〃涓�夋嫨鏁版嵁
     setting: PropTypes.any,           // 椤甸潰閫氱敤璁剧疆
-    updateStatus: PropTypes.func,     // 鎸夐挳鐘舵�佹洿鏂�
   }
 
   state = {
@@ -49,7 +48,6 @@
    */
   actionTrigger = (triggerId, record) => {
     const { setting, btn, selectedData } = this.props
-    const _this = this
 
     if (triggerId && btn.uuid !== triggerId) return
 
@@ -128,10 +126,11 @@
         okText: '鏀粯鎴愬姛',
         cancelText: '鏀粯閬囧埌闂',
         onOk() {
-          _this.props.updateStatus('refresh', 'grid')
+          // 鏀粯鍚庡埛鏂扮晫闈�
+          MKEmitter.emit('refreshByButtonResult', btn.$menuId, 'grid', btn)
         },
         onCancel() {
-          _this.props.updateStatus('refresh', 'grid')
+          MKEmitter.emit('refreshByButtonResult', btn.$menuId, 'grid', btn)
         },
       })
       window.open(url)
@@ -170,6 +169,7 @@
       return (
         <Button
           type="link"
+          title={show === 'icon' ? btn.label : ''}
           style={btn.btnstyle}
           icon={show === 'text' ? '' : (btn.icon || '')}
           onClick={(e) => {e.stopPropagation(); this.actionTrigger()}}

--
Gitblit v1.8.0