fix(staff)
This commit is contained in:
parent
bf8ae54585
commit
22a93667b1
2
git.sh
2
git.sh
|
@ -16,7 +16,6 @@ git push
|
||||||
|
|
||||||
# ps
|
# ps
|
||||||
|
|
||||||
# 编辑用户 是否党员 没回显
|
|
||||||
|
|
||||||
# app 政治面貌没有展示
|
# app 政治面貌没有展示
|
||||||
|
|
||||||
|
@ -25,7 +24,6 @@ git push
|
||||||
|
|
||||||
# 签到 个人中心 展示今日签到信息
|
# 签到 个人中心 展示今日签到信息
|
||||||
|
|
||||||
# 通讯录,实时搜索
|
|
||||||
|
|
||||||
# pc
|
# pc
|
||||||
# 力量汇总,加一个新兴领域 网格员
|
# 力量汇总,加一个新兴领域 网格员
|
||||||
|
|
|
@ -1,14 +1,9 @@
|
||||||
import { FormType } from "@/components/form/interface";
|
import { FormType } from "@/components/form/interface";
|
||||||
import { UserDataType } from "@/model/userModel";
|
import { UserDataType } from "@/model/userModel";
|
||||||
|
import { getBirthDateAndGender } from "@/util/util";
|
||||||
import { ColumnsType } from "antd/lib/table";
|
import { ColumnsType } from "antd/lib/table";
|
||||||
export const defaultConfig = () => [
|
export const defaultConfig = () => [
|
||||||
// {
|
|
||||||
// type: FormType.fetchList,
|
|
||||||
// label: "用户名",
|
|
||||||
// name: "user_identity",
|
|
||||||
// value: [],
|
|
||||||
// rules: [{ required: true, message: "请输入用户名称!" }],
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
type: FormType.input,
|
type: FormType.input,
|
||||||
label: "身份类别",
|
label: "身份类别",
|
||||||
|
@ -40,8 +35,10 @@ export const columns: ColumnsType<UserDataType> = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "性别",
|
title: "性别",
|
||||||
dataIndex: "sex",
|
width: 100,
|
||||||
render: (sex) => <span>{sex === 1 ? "男" : "女"}</span>,
|
render: (render) => (
|
||||||
|
<span>{getBirthDateAndGender(render.id_card)?.gender}</span>
|
||||||
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "身份证",
|
title: "身份证",
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
border-bottom-right-radius: 40px;
|
border-bottom-right-radius: 40px;
|
||||||
border-top-right-radius: 0px;
|
border-top-right-radius: 0px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
|
cursor: pointer;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
> div {
|
> div {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
|
|
Loading…
Reference in New Issue