|
|
@ -1,7 +1,7 @@ |
|
|
|
import React from "react"; |
|
|
|
import React from "react"; |
|
|
|
import {Button, Table} from "react-bootstrap"; |
|
|
|
import {Button, Table} from "react-bootstrap"; |
|
|
|
import {Input} from "../ui/InputGroup"; |
|
|
|
import {Input} from "../ui/InputGroup"; |
|
|
|
import {PageProps, User, UserType} from "../entity"; |
|
|
|
import {PageProps, Sex, User, UserType} from "../entity"; |
|
|
|
import {Page} from "../ui/Page"; |
|
|
|
import {Page} from "../ui/Page"; |
|
|
|
import {Address} from "../ui/Address"; |
|
|
|
import {Address} from "../ui/Address"; |
|
|
|
import {Method, request} from "../interface" |
|
|
|
import {Method, request} from "../interface" |
|
|
@ -56,7 +56,7 @@ export class Volunteer extends React.Component<{ undefined?:undefined }, |
|
|
|
case PageDataMessage.ok: |
|
|
|
case PageDataMessage.ok: |
|
|
|
|
|
|
|
|
|
|
|
that.setState({ |
|
|
|
that.setState({ |
|
|
|
volunteerList: page===1?res.dataList||[]:(that.state.volunteerList||[]).concat(res.dataList||[]), |
|
|
|
volunteerList: res.dataList, |
|
|
|
page: res.page, |
|
|
|
page: res.page, |
|
|
|
form:{ |
|
|
|
form:{ |
|
|
|
keyword:that.state.form.keyword, |
|
|
|
keyword:that.state.form.keyword, |
|
|
@ -118,7 +118,7 @@ export class Volunteer extends React.Component<{ undefined?:undefined }, |
|
|
|
<div > |
|
|
|
<div > |
|
|
|
<Table> |
|
|
|
<Table> |
|
|
|
<tbody> |
|
|
|
<tbody> |
|
|
|
{[[volunteer.name,volunteer.sex,volunteer.age],[volunteer.mobile,volunteer.email,volunteer.serviceAddress]].map((tr, index)=> |
|
|
|
{[[volunteer.name,volunteer.sex===Sex.man?'男':'女',volunteer.age],[volunteer.mobile,volunteer.email,volunteer.serviceAddress]].map((tr, index)=> |
|
|
|
<tr key={"tr"+index}> |
|
|
|
<tr key={"tr"+index}> |
|
|
|
{tr.map((td,index)=><td key={"td"+index} className="border border-info">{td}</td>)} |
|
|
|
{tr.map((td,index)=><td key={"td"+index} className="border border-info">{td}</td>)} |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|