temp
This commit is contained in:
@@ -30,18 +30,13 @@ class AddUser extends React.Component<AddUserProps, AddUserState> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
switchShow = () => {
|
switchShow = () => {
|
||||||
this.setState(
|
this.setState((state) => ({
|
||||||
(state) => ({
|
isShow: !state.isShow,
|
||||||
isShow: !state.isShow,
|
}));
|
||||||
}),
|
|
||||||
() => {
|
|
||||||
this.props.showAddUser && this.props.showAddUser();
|
|
||||||
}
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
handleFinish = (values: any) => {
|
handleFinish = (values: any) => {
|
||||||
return trailwayAddUser(values).then((resp: any) => {
|
trailwayAddUser(values).then((resp: any) => {
|
||||||
if (resp.code == 200) {
|
if (resp.code == 200) {
|
||||||
this.switchShow();
|
this.switchShow();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,11 +3,14 @@
|
|||||||
*/
|
*/
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Table, Input, Button } from 'antd';
|
import { Table, Input, Button } from 'antd';
|
||||||
import { SmileOutlined } from '@ant-design/icons';
|
|
||||||
import { trailwayDelUser, trailwayListUsers } from '../../service';
|
import { trailwayDelUser, trailwayListUsers } from '../../service';
|
||||||
import AddUser from './AddUser';
|
import AddUser from './AddUser';
|
||||||
|
|
||||||
class UserManage extends React.Component {
|
class UserManage extends React.Component {
|
||||||
|
constructor(props: {}) {
|
||||||
|
super(props);
|
||||||
|
}
|
||||||
|
|
||||||
state = {
|
state = {
|
||||||
filterDropdownVisible: false,
|
filterDropdownVisible: false,
|
||||||
data: [],
|
data: [],
|
||||||
|
|||||||
Reference in New Issue
Block a user