|
@@ -25,18 +25,18 @@ class UserLibrary extends Component {
|
|
|
columns: [
|
|
|
{
|
|
|
title: '客户名称',
|
|
|
- dataIndex: 'name',
|
|
|
- key: 'name'
|
|
|
+ dataIndex: 'username',
|
|
|
+ key: 'username'
|
|
|
},
|
|
|
{
|
|
|
title: '手机号码',
|
|
|
- dataIndex: 'photo',
|
|
|
- key: 'photo'
|
|
|
+ dataIndex: 'mobile',
|
|
|
+ key: 'mobile'
|
|
|
},
|
|
|
{
|
|
|
title: '用户类型',
|
|
|
- dataIndex: 'userType',
|
|
|
- key: 'userType',
|
|
|
+ dataIndex: 'type',
|
|
|
+ key: 'type',
|
|
|
render: (text) => {
|
|
|
return text == '1' ? '企业用户' : '个人用户';
|
|
|
}
|
|
@@ -59,13 +59,13 @@ class UserLibrary extends Component {
|
|
|
method: "get",
|
|
|
dataType: "json",
|
|
|
crossDomain: false,
|
|
|
- url: globalConfig.context + "/api/user/achievement/lis",
|
|
|
+ url: globalConfig.context + "api/admin/user/info",
|
|
|
data: {
|
|
|
pageNo: pageNo || 1,
|
|
|
pageSize: this.state.pagination.pageSize,
|
|
|
- userType: this.state.userType, //需求名称
|
|
|
- userName: this.state.userName,
|
|
|
- photo:this.state.photo
|
|
|
+ type: this.state.type, //需求名称
|
|
|
+ username: this.state.username,
|
|
|
+ mobile:this.state.mobile
|
|
|
},
|
|
|
success: function (data) {
|
|
|
let theArr = [];
|
|
@@ -79,9 +79,11 @@ class UserLibrary extends Component {
|
|
|
theArr.push({
|
|
|
key: i,
|
|
|
id: thisdata.id,
|
|
|
- name: thisdata.name, //编号
|
|
|
- photo: thisdata.photo,
|
|
|
- userType: thisdata.userType,
|
|
|
+ type: thisdata.type, //编号
|
|
|
+ nickname: thisdata.nickname,
|
|
|
+ username:thisdata.username,
|
|
|
+ mobile: thisdata.mobile,
|
|
|
+ email:thisdata.email,
|
|
|
createTime:thisdata.createTime?(new Date(thisdata.createTime)).toLocaleString():''
|
|
|
});
|
|
|
};
|
|
@@ -108,9 +110,9 @@ class UserLibrary extends Component {
|
|
|
this.loadData();
|
|
|
}
|
|
|
reset() {
|
|
|
- this.state.userName = '';
|
|
|
- this.state.userType = undefined;
|
|
|
- this.state.photo = '';
|
|
|
+ this.state.username = '';
|
|
|
+ this.state.type = undefined;
|
|
|
+ this.state.mobile = '';
|
|
|
this.loadData();
|
|
|
}
|
|
|
componentWillMount() {
|
|
@@ -135,26 +137,26 @@ class UserLibrary extends Component {
|
|
|
<div className="user-search">
|
|
|
<Input
|
|
|
style={{ marginRight: 10 }}
|
|
|
- value={this.state.userName}
|
|
|
+ value={this.state.username}
|
|
|
placeholder="用户名称"
|
|
|
onChange={(e) => {
|
|
|
- this.setState({ userName: e.target.value });
|
|
|
+ this.setState({ username: e.target.value });
|
|
|
}}
|
|
|
/>
|
|
|
<Input
|
|
|
style={{ marginRight: 10 }}
|
|
|
- value={this.state.photo}
|
|
|
+ value={this.state.mobile}
|
|
|
placeholder="手机号码"
|
|
|
onChange={(e) => {
|
|
|
- this.setState({ photo: e.target.value });
|
|
|
+ this.setState({ mobile: e.target.value });
|
|
|
}}
|
|
|
/>
|
|
|
<Select
|
|
|
- value={this.state.userType}
|
|
|
+ value={this.state.type}
|
|
|
style={{ width: 150 }}
|
|
|
placeholder="用户类型"
|
|
|
onChange={(e) => {
|
|
|
- this.setState({ userType: e });
|
|
|
+ this.setState({ type: e });
|
|
|
}}
|
|
|
>
|
|
|
<Select.Option value="0">个人用户</Select.Option>
|