唐简:完成岗位管理页面开发

This commit is contained in:
Jim__TT
2023-10-31 19:56:34 +08:00
parent 41807b7937
commit 6f9a8906eb
4 changed files with 636 additions and 3 deletions

View File

@@ -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" }}