This commit is contained in:
2024-01-15 20:24:52 +08:00
parent 5f5268d3ec
commit e5b2a51cec
2 changed files with 8 additions and 10 deletions

View File

@@ -30,18 +30,13 @@ class AddUser extends React.Component<AddUserProps, AddUserState> {
};
switchShow = () => {
this.setState(
(state) => ({
isShow: !state.isShow,
}),
() => {
this.props.showAddUser && this.props.showAddUser();
}
);
this.setState((state) => ({
isShow: !state.isShow,
}));
};
handleFinish = (values: any) => {
return trailwayAddUser(values).then((resp: any) => {
trailwayAddUser(values).then((resp: any) => {
if (resp.code == 200) {
this.switchShow();
}

View File

@@ -3,11 +3,14 @@
*/
import React from 'react';
import { Table, Input, Button } from 'antd';
import { SmileOutlined } from '@ant-design/icons';
import { trailwayDelUser, trailwayListUsers } from '../../service';
import AddUser from './AddUser';
class UserManage extends React.Component {
constructor(props: {}) {
super(props);
}
state = {
filterDropdownVisible: false,
data: [],