| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 | 
							- // 会员日志弹窗
 
- import React, { Component } from "react";
 
- import { Button, message, Modal, Spin, Table } from "antd";
 
- import { ShowModal } from "../../tools";
 
- import $ from "jquery/src/ajax";
 
- class VipLogs extends Component {
 
-   constructor(props) {
 
-     super(props);
 
-     this.state = {
 
-       loading: false,
 
-       visible: false,
 
-       columnsDate: [
 
-         {
 
-           title: "操作人",
 
-           dataIndex: "aname",
 
-           key: "aname",
 
-           width: 150,
 
-         },
 
-         {
 
-           title: "操作",
 
-           dataIndex: "status",
 
-           key: "status",
 
-           width: 110,
 
-           render: (text, record) => {
 
-             return (
 
-               <div>
 
-                 {["发起", "通过", "拒绝", "完成",][text]}
 
-               </div>
 
-             );
 
-           },
 
-         },
 
-         {
 
-           title: "操作时间",
 
-           dataIndex: "createTimes",
 
-           key: "createTimes",
 
-           width: 150,
 
-         },
 
-         {
 
-           title: "备注",
 
-           dataIndex: "remarks",
 
-           key: "remarks",
 
-         },
 
-       ],
 
-       recordData: [],
 
-     };
 
-   }
 
-   componentDidMount() { }
 
-   getData() {
 
-     this.setState({
 
-       loading: true,
 
-     });
 
-     $.ajax({
 
-       method: "get",
 
-       dataType: "json",
 
-       crossDomain: false,
 
-       url: globalConfig.context + "/api/admin/orderProject/memberLog",
 
-       data: {
 
-         id: this.props.id,
 
-       },
 
-       success: function (data) {
 
-         ShowModal(this);
 
-         let theArr = [];
 
-         if (!data.data) {
 
-           if (data.error && data.error.length) {
 
-             message.warning(data.error[0].message);
 
-           }
 
-         } else {
 
-           this.setState({
 
-             recordData: data.data,
 
-           });
 
-         }
 
-       }.bind(this),
 
-     }).always(
 
-       function () {
 
-         this.setState({
 
-           loading: false,
 
-         });
 
-       }.bind(this)
 
-     );
 
-   }
 
-   render() {
 
-     return (
 
-       <span>
 
-         <Button
 
-           type="primary"
 
-           onClick={(e) => {
 
-             e.stopPropagation();
 
-             this.getData();
 
-             this.setState({
 
-               visible: true,
 
-             })
 
-           }}
 
-           style={{ margin: 5 }}
 
-         >
 
-           日志
 
-         </Button>
 
-         <Modal
 
-           maskClosable={false}
 
-           visible={this.state.visible}
 
-           footer=""
 
-           title="会员审批日志"
 
-           className="admin-desc-content"
 
-           width="800px"
 
-           onCancel={(e) => {
 
-             this.setState({
 
-               visible: false,
 
-             });
 
-           }}
 
-           style={{ zIndex: 10 }}
 
-         >
 
-           <Spin spinning={this.state.loading}>
 
-             <div className="patent-table">
 
-               <Table
 
-                 columns={this.state.columnsDate}
 
-                 dataSource={this.state.recordData || []}
 
-                 pagination={false}
 
-               />
 
-             </div>
 
-           </Spin>
 
-         </Modal>
 
-       </span>
 
-     );
 
-   }
 
- }
 
- export default VipLogs;
 
 
  |