|
@@ -1,5 +1,5 @@
|
|
import React, { useState, useEffect, useRef } from 'react';
|
|
import React, { useState, useEffect, useRef } from 'react';
|
|
-import { Form, Input, Button, Table, Select, Pagination, Space, Menu, Dropdown, Modal, Breadcrumb, message } from 'antd';
|
|
|
|
|
|
+import { Form, Input, Button, Table, Select, Pagination, Space, Menu, Dropdown, Modal, Row, Col, message } from 'antd';
|
|
import { DownOutlined, PlusOutlined, ExclamationCircleOutlined } from '@ant-design/icons';
|
|
import { DownOutlined, PlusOutlined, ExclamationCircleOutlined } from '@ant-design/icons';
|
|
import NormalPlayer from './addUser'
|
|
import NormalPlayer from './addUser'
|
|
import '@common/common.less';
|
|
import '@common/common.less';
|
|
@@ -216,50 +216,55 @@ function UserManager() {
|
|
}
|
|
}
|
|
return (
|
|
return (
|
|
<div className="wrapper">
|
|
<div className="wrapper">
|
|
- <Form
|
|
|
|
- form={form}
|
|
|
|
- name="normal_login"
|
|
|
|
- className="basic"
|
|
|
|
- layout="inline"
|
|
|
|
- onFinish={onFinish}
|
|
|
|
- initialValues={{ status: '' }}
|
|
|
|
- >
|
|
|
|
- <div className="basic-left">
|
|
|
|
- <Form.Item label="用户名" name="username">
|
|
|
|
- <Input placeholder="用户名" />
|
|
|
|
- </Form.Item>
|
|
|
|
- <Form.Item label="姓名" name="name">
|
|
|
|
- <Input placeholder="姓名" />
|
|
|
|
- </Form.Item>
|
|
|
|
- <Form.Item label="当前状态" name="status">
|
|
|
|
- <Select
|
|
|
|
- style={{ width: 200 }}
|
|
|
|
- placeholder="Select a person"
|
|
|
|
- >
|
|
|
|
- <Option value="">全部</Option>
|
|
|
|
- <Option value="1">启用</Option>
|
|
|
|
- <Option value="0" >禁用</Option>
|
|
|
|
- </Select>
|
|
|
|
- </Form.Item>
|
|
|
|
-
|
|
|
|
- </div>
|
|
|
|
- <Form.Item>
|
|
|
|
- <Space size="middle">
|
|
|
|
- <Button onClick={onReset}>
|
|
|
|
- 重置
|
|
|
|
- </Button>
|
|
|
|
- <Button type="primary" htmlType="submit">
|
|
|
|
- 查询
|
|
|
|
- </Button>
|
|
|
|
- </Space>
|
|
|
|
- </Form.Item>
|
|
|
|
- </Form>
|
|
|
|
-
|
|
|
|
|
|
+ <div className="filter-box">
|
|
|
|
+ <Form
|
|
|
|
+ form={form}
|
|
|
|
+ name="normal_login"
|
|
|
|
+ className="basic"
|
|
|
|
+ onFinish={onFinish}
|
|
|
|
+ initialValues={{ status: '' }}
|
|
|
|
+ >
|
|
|
|
+ <Row gutter={24}>
|
|
|
|
+ <Col span={6} key={0}>
|
|
|
|
+ <Form.Item label="用户名" name="username">
|
|
|
|
+ <Input placeholder="用户名" />
|
|
|
|
+ </Form.Item>
|
|
|
|
+ </Col>
|
|
|
|
+ <Col span={6} key={1}>
|
|
|
|
+ <Form.Item label="姓名" name="name">
|
|
|
|
+ <Input placeholder="姓名" />
|
|
|
|
+ </Form.Item>
|
|
|
|
+ </Col>
|
|
|
|
+ <Col span={8} key={2}>
|
|
|
|
+ <Form.Item label="当前状态" name="status">
|
|
|
|
+ <Select
|
|
|
|
+ style={{ width: 200 }}
|
|
|
|
+ placeholder="Select a person"
|
|
|
|
+ >
|
|
|
|
+ <Option value="">全部</Option>
|
|
|
|
+ <Option value="1">启用</Option>
|
|
|
|
+ <Option value="0" >禁用</Option>
|
|
|
|
+ </Select>
|
|
|
|
+ </Form.Item>
|
|
|
|
+ </Col>
|
|
|
|
+ <Col span={4} key={3}>
|
|
|
|
+ <Form.Item>
|
|
|
|
+ <Space size="middle">
|
|
|
|
+ <Button type="primary" htmlType="submit">
|
|
|
|
+ 查询
|
|
|
|
+ </Button>
|
|
|
|
+ <Button onClick={onReset}>
|
|
|
|
+ 重置
|
|
|
|
+ </Button>
|
|
|
|
+ </Space>
|
|
|
|
+ </Form.Item>
|
|
|
|
+ </Col>
|
|
|
|
+ </Row>
|
|
|
|
+ </Form>
|
|
|
|
+ </div>
|
|
<div className="table">
|
|
<div className="table">
|
|
<div className="table-header">
|
|
<div className="table-header">
|
|
- <Breadcrumb>
|
|
|
|
- <Breadcrumb.Item>用户管理</Breadcrumb.Item>
|
|
|
|
- </Breadcrumb>
|
|
|
|
|
|
+ <h2 className="table-title">组织管理</h2>
|
|
<Button type="primary" icon={<PlusOutlined />} onClick={e => showModal('新增用户', true, 1)}>新增用户</Button>
|
|
<Button type="primary" icon={<PlusOutlined />} onClick={e => showModal('新增用户', true, 1)}>新增用户</Button>
|
|
</div>
|
|
</div>
|
|
|
|
|