Commit 0753a98b by ethanlamzs

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

1 parent 2d65cc00
......@@ -49,12 +49,13 @@ export default{
},
*sysOperation({payload},{call,put}){
*sysOperation({payload,callback},{call,put}){
const response = yield call(sysOperationCmd,payload);
yield put({
type:'sync_operation',
payload:response
});
if (callback) callback();
},
*schDetail({payload},{call,put}){
......@@ -101,7 +102,8 @@ export default{
sync_operation(state,action){
return {
...state,
operationSync:action.payload
operationSync:action.payload,
linkmanMap:{}
}
},
......
......@@ -17,7 +17,8 @@ import {
Dropdown,
Tree,
Button,
Input
Input,
message
} from 'antd';
import {
......@@ -174,7 +175,15 @@ export default class schoolmgr extends Component{
CMD:'lk_del',
content:manids.slice(1)
},
callback: () => {
message.success('已选中的联系人删除成功了');
this.setState({
checkedKeys:[],
linkmanMap:{ }
});
},
});
}
//end 联系人删除操作
}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!