树选择的删除

_Del = ()=> {
        const {dispatch} = this.props;
        const {comboList} = this.props.signModel;
        const { selectedKeys } = this.state;
        const _this = this;
        console.log(comboList,'张明珠张明珠张明珠')
        confirm({
            title: '无法删除',
            content: '当前组织架构下还有项目,请清空后再尝试',
            okText: '确认',
            okType: 'primary',
            cancelText: '取消',
            onOk(){
                dispatch({
                    type:'signModel/getSysDeptDelete',
                    payload:{
                        id:selectedKeys[0]!=='1000' ? selectedKeys[0]: ''
                    }
                }).then(()=>{
                    _this.getlistpage()
                })
            }
            
        })
        
    }

 

posted on 2019-11-11 19:52  张花花  阅读(180)  评论(0编辑  收藏  举报