树选择的删除

_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()
                })
            }
            
        })
        
    }
相关文章
相关标签/搜索