|
|
@ -1,5 +1,5 @@ |
|
|
|
import React from "react"; |
|
|
|
import React from "react"; |
|
|
|
import {Button, Col, Form, Image, Row, Tab, Table, Tabs} from "react-bootstrap"; |
|
|
|
import {Button, Col, Container, Form, Image, Row, Tab, Table, Tabs} from "react-bootstrap"; |
|
|
|
import {PageProps, UserEntity, UserType} from "./entity"; |
|
|
|
import {PageProps, UserEntity, UserType} from "./entity"; |
|
|
|
import {Input} from "./ui/InputGroup"; |
|
|
|
import {Input} from "./ui/InputGroup"; |
|
|
|
import {JSONResponse, Method, request} from "./interface"; |
|
|
|
import {JSONResponse, Method, request} from "./interface"; |
|
|
@ -244,6 +244,7 @@ export class User extends React.Component< |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<Tabs defaultActiveKey="info" id="uncontrolled-tab-example"> |
|
|
|
<Tabs defaultActiveKey="info" id="uncontrolled-tab-example"> |
|
|
|
<Tab eventKey="info" title="用户信息"> |
|
|
|
<Tab eventKey="info" title="用户信息"> |
|
|
|
|
|
|
|
{/*<div className="overflow-auto custom-table-height">*/} |
|
|
|
<Table striped bordered hover className="mt-3"> |
|
|
|
<Table striped bordered hover className="mt-3"> |
|
|
|
<thead> |
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
@ -263,7 +264,7 @@ export class User extends React.Component< |
|
|
|
<th>操作</th> |
|
|
|
<th>操作</th> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
<tbody className="custom-table-height"> |
|
|
|
{this.state.userList?this.state.userList.length>0?this.state.userList.map((user:UserEntity, index:number)=> |
|
|
|
{this.state.userList?this.state.userList.length>0?this.state.userList.map((user:UserEntity, index:number)=> |
|
|
|
<tr key={"tr"+index}> |
|
|
|
<tr key={"tr"+index}> |
|
|
|
<td className="align-middle">{index+1}</td> |
|
|
|
<td className="align-middle">{index+1}</td> |
|
|
@ -298,6 +299,7 @@ export class User extends React.Component< |
|
|
|
</tr>):<h3 className="text-center text-danger">没有用户信息</h3>:null} |
|
|
|
</tr>):<h3 className="text-center text-danger">没有用户信息</h3>:null} |
|
|
|
</tbody> |
|
|
|
</tbody> |
|
|
|
</Table> |
|
|
|
</Table> |
|
|
|
|
|
|
|
{/*</div>*/} |
|
|
|
|
|
|
|
|
|
|
|
{this.state.page?<Page onClick={(page:number)=>this.loadUser(page)} currentPage={this.state.page.currentPage} |
|
|
|
{this.state.page?<Page onClick={(page:number)=>this.loadUser(page)} currentPage={this.state.page.currentPage} |
|
|
|
totalPage={this.state.page.totalPage} pageSize={this.state.page.pageSize}/> |
|
|
|
totalPage={this.state.page.totalPage} pageSize={this.state.page.pageSize}/> |
|
|
|