outaozhen 5 yıl önce
ebeveyn
işleme
fa63b92412

+ 8 - 4
src/pages/Product/Lock/Lockstore/components/LocksDetail/LockModal.jsx

@@ -168,11 +168,11 @@ const LockModal = props => {
     })
     if (code === consts.RET_CODE.SUCCESS) {
       onCancel()
+      dispatch({
+        type: 'refresh/commitAction',
+        payload: 'longle'
+      })
     }
-    dispatch({
-      type: 'refresh/commitAction',
-      payload: 'longle'
-    })
   }
 
   // 更换软件锁
@@ -184,6 +184,10 @@ const LockModal = props => {
     })
     if (code === consts.RET_CODE.SUCCESS) {
       onCancel()
+      dispatch({
+        type: 'refresh/commitAction',
+        payload: 'longle'
+      })
     }
   }
 

+ 0 - 1
src/pages/Product/Lock/Lockstore/components/LocksDetail/index.jsx

@@ -87,7 +87,6 @@ const Index = props => {
               clientId={state.longle.clientId}
               keyNum={state.longle.keyNum}
               logStatus={state.longle.status}
-              dataSource={changeCopInputData}
             />
             <LockLowerList log={state.log} />
           </Col>