|
@@ -6,6 +6,7 @@ import {
|
|
|
} from "../../../tools"
|
|
|
import ImgList from "../../../common/imgList";
|
|
|
import ReactToPrint from "react-to-print";
|
|
|
+import Print from 'react-print-html';
|
|
|
import moment from "moment";
|
|
|
import $ from "jquery/src/ajax";
|
|
|
import './accountReview.less';
|
|
@@ -701,8 +702,8 @@ class AccountDetails extends Component {
|
|
|
>
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
<div className="m_body"
|
|
|
- ref={(e) => {
|
|
|
- this.refs.all = e;
|
|
|
+ ref={ref => {
|
|
|
+ this.printTemp = ref;
|
|
|
}}
|
|
|
>
|
|
|
{this.state.isTable
|
|
@@ -1202,7 +1203,23 @@ class AccountDetails extends Component {
|
|
|
</div>
|
|
|
</Spin>
|
|
|
|
|
|
- <ReactToPrint
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ style={{
|
|
|
+ float: "right",
|
|
|
+ marginTop: 10,
|
|
|
+ position: "absolute",
|
|
|
+ top: 0,
|
|
|
+ right: 50,
|
|
|
+ }}
|
|
|
+ onClick={() => {
|
|
|
+ Print(this.printTemp)
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 打印
|
|
|
+ </Button>
|
|
|
+
|
|
|
+ {/* <ReactToPrint
|
|
|
trigger={() => (
|
|
|
<Button
|
|
|
type="primary"
|
|
@@ -1219,7 +1236,7 @@ class AccountDetails extends Component {
|
|
|
)}
|
|
|
content={() => this.refs.all}
|
|
|
bodyClass="print-body"
|
|
|
- />
|
|
|
+ /> */}
|
|
|
|
|
|
{
|
|
|
//审核弹窗
|