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