樹選擇的刪除

_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()
                })
            }
            
        })
        
    }
相關文章
相關標籤/搜索