Commit 0753a98b by ethanlamzs

数据变动后的联动更新问题

1 parent 2d65cc00
...@@ -49,12 +49,13 @@ export default{ ...@@ -49,12 +49,13 @@ export default{
}, },
*sysOperation({payload},{call,put}){ *sysOperation({payload,callback},{call,put}){
const response = yield call(sysOperationCmd,payload); const response = yield call(sysOperationCmd,payload);
yield put({ yield put({
type:'sync_operation', type:'sync_operation',
payload:response payload:response
}); });
if (callback) callback();
}, },
*schDetail({payload},{call,put}){ *schDetail({payload},{call,put}){
...@@ -101,7 +102,8 @@ export default{ ...@@ -101,7 +102,8 @@ export default{
sync_operation(state,action){ sync_operation(state,action){
return { return {
...state, ...state,
operationSync:action.payload operationSync:action.payload,
linkmanMap:{}
} }
}, },
......
...@@ -17,7 +17,8 @@ import { ...@@ -17,7 +17,8 @@ import {
Dropdown, Dropdown,
Tree, Tree,
Button, Button,
Input Input,
message
} from 'antd'; } from 'antd';
import { import {
...@@ -174,7 +175,15 @@ export default class schoolmgr extends Component{ ...@@ -174,7 +175,15 @@ export default class schoolmgr extends Component{
CMD:'lk_del', CMD:'lk_del',
content:manids.slice(1) content:manids.slice(1)
}, },
callback: () => {
message.success('已选中的联系人删除成功了');
this.setState({
checkedKeys:[],
linkmanMap:{ }
}); });
},
});
} }
//end 联系人删除操作 //end 联系人删除操作
}else if(action==2){ }else if(action==2){
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!