import React from 'react';
import { Icon, Button, Input, Select, Spin, message, Col, Row } from 'antd';
import ajax from 'jquery/src/ajax/xhr.js';
import $ from 'jquery/src/ajax';
import './userList.less';
const CustomerSearch = React.createClass({
loadData(pageNo) {
this.setState({
loading: true
});
$.ajax({
method: "get",
dataType: "json",
crossDomain: false,
url: globalConfig.context + "/api/admin/supervise/findUser",
data: {
"name": this.state.searchName || undefined,
"mobile": this.state.searchMobile || undefined,
"type": Number(this.state.searchType)
},
success: function (data) {
if (data.error && data.error.length) {
message.warning(data.error[0].message);
}
this.setState({
searchResult: data.data ?