import React, { Component } from 'react';
import { connect } from 'dva';
import { Alert, Steps, Upload, message, Button } from 'antd';
import './less/batch.less';
import { host } from '../../../services/api';
import axios from 'axios';
import store from 'store';
const { Step } = Steps;
@connect(state => ({
global: state.global
}))
// 批量导入-导出/修改组织机构
export default class ExportChanges extends Component {
constructor(props, context) {
super(props, context);
this.state = {
//
};
}
handleClickLink = () => {
return (
//
);
};
handleClickUpload = () => {
const props = {
name: 'xfile',
action: `${host}/system/com-depart/get-import-depart-json`,
headers: {
authorization: 'Basic c2Fhc3dlYjp3ZWI='
},
onChange(info) {
console.log(info, 'onChange-info');
if (info.file.status !== 'uploading') {
console.log(info.file, info.fileList);
}
if (info.file.status === 'done') {
message.success(`${info.file.name} 成功上传!`);
} else if (info.file.status === 'error') {
message.error(`${info.file.name} 上传失败!`);
}
}
};
console.log(props, 'props');
return (