2022-03-07 19:33:56 +08:00
|
|
|
|
import React from "react"
|
|
|
|
|
|
import successImg from "./success.svg"
|
2022-03-10 16:28:49 +08:00
|
|
|
|
import { Button, Table } from "antd"
|
2022-04-25 16:17:03 +08:00
|
|
|
|
import { WeaTable } from 'ecCom'
|
2022-03-07 19:33:56 +08:00
|
|
|
|
|
|
|
|
|
|
export default class ModalStep3 extends React.Component {
|
2022-03-10 16:28:49 +08:00
|
|
|
|
|
|
|
|
|
|
componentWillMount() {
|
|
|
|
|
|
this.columns = [
|
|
|
|
|
|
{
|
|
|
|
|
|
title: "错误信息",
|
|
|
|
|
|
dataIndex: 'message',
|
|
|
|
|
|
key: 'message',
|
|
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2022-03-07 19:33:56 +08:00
|
|
|
|
render() {
|
2022-03-10 16:28:49 +08:00
|
|
|
|
const { importResult } = this.props;
|
2022-03-07 19:33:56 +08:00
|
|
|
|
return (
|
|
|
|
|
|
<div style={{textAlign: "center", marginTop: "10px", overflow: "hidden", height: "550px", display:"flex", flexFlow: "column" }}>
|
2022-03-10 16:28:49 +08:00
|
|
|
|
<div style={{flex: "1",display: "flex", flexFlow: "column"}}>
|
|
|
|
|
|
<div style={{marginTop: "20px"}}>
|
2022-03-07 19:33:56 +08:00
|
|
|
|
<img src={successImg} style={{marginBottom: "10px"}} />
|
|
|
|
|
|
<div style={{fontSize: "20px", marginBottom: "10px"}}>数据导入完成</div>
|
2022-03-10 16:28:49 +08:00
|
|
|
|
<div>已导入 <span style={{color: "red"}}> {importResult.successCount} </span> 条数据,失败<span style={{color: "green"}}> {importResult.errorCount} </span>条数据</div>
|
|
|
|
|
|
</div>
|
2022-04-25 16:17:03 +08:00
|
|
|
|
<div style={{marginTop: "20px", maxHeight: "300px", overflowY: "scroll"}} >
|
2022-03-10 16:28:49 +08:00
|
|
|
|
{
|
2022-04-25 16:17:03 +08:00
|
|
|
|
<WeaTable columns={this.columns} dataSource={importResult.errorData} pagination={false}/>
|
2022-03-10 16:28:49 +08:00
|
|
|
|
}
|
2022-03-07 19:33:56 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div className="footerBtnWrapper" style={{height: "30px"}}>
|
|
|
|
|
|
<Button type="primary" style={{float: "right"}} onClick={this.props.onFinish}>完成</Button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
)
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|