唐简:完成岗位管理页面开发
This commit is contained in:
@@ -34,6 +34,7 @@ import {
|
||||
} from "../../../api/system/users";
|
||||
|
||||
import FormatData from "../../../utils/formatData";
|
||||
import locale from "antd/es/date-picker/locale/zh_CN";
|
||||
import React, { useEffect, useState, useMemo, useRef } from "react";
|
||||
import { SearchOutlined, RedoOutlined, PlusOutlined } from "@ant-design/icons";
|
||||
|
||||
@@ -557,6 +558,7 @@ export default function User() {
|
||||
<div>创建时间</div>
|
||||
<DatePicker.RangePicker
|
||||
showTime
|
||||
locale={locale}
|
||||
className="time-picker"
|
||||
placeholder={["开始时间", "结束时间"]}
|
||||
onChange={(dates) => {
|
||||
@@ -596,6 +598,10 @@ export default function User() {
|
||||
className="article-table"
|
||||
pagination={{
|
||||
onChange: handlePageChange,
|
||||
locale: {
|
||||
jump_to: "跳至",
|
||||
page: "页",
|
||||
},
|
||||
showQuickJumper: true,
|
||||
showTotal: (total, range) =>
|
||||
`第 ${range[0]}-${range[1]} 条,共 ${total} 条`,
|
||||
@@ -608,6 +614,8 @@ export default function User() {
|
||||
<Modal
|
||||
title={modalTitle}
|
||||
width={700}
|
||||
okText="确认"
|
||||
cancelText="取消"
|
||||
open={isShowModal}
|
||||
onOk={handleConfirm}
|
||||
onCancel={handleCancel}
|
||||
@@ -647,13 +655,12 @@ export default function User() {
|
||||
rules={[{ required: false }]}
|
||||
>
|
||||
<Select
|
||||
defaultValue={""}
|
||||
placeholder="请选择用户性别"
|
||||
options={[
|
||||
{ value: "0", label: "男" },
|
||||
{ value: "1", label: "女" },
|
||||
{ value: "2", label: "未知" },
|
||||
]}
|
||||
placeholder="请选择用户性别"
|
||||
/>
|
||||
</Form.Item>
|
||||
</Col>
|
||||
@@ -677,7 +684,6 @@ export default function User() {
|
||||
>
|
||||
<TreeSelect
|
||||
showSearch
|
||||
defaultValue={""}
|
||||
style={{ width: "100%" }}
|
||||
value={treeValue}
|
||||
dropdownStyle={{ maxHeight: 400, overflow: "auto" }}
|
||||
|
||||
Reference in New Issue
Block a user