This commit is contained in:
PC-202306242200\Administrator
2024-09-11 15:32:36 +08:00
parent fe72625bce
commit 54f7b5868e
9 changed files with 26 additions and 24 deletions

View File

@@ -159,6 +159,7 @@ export default () => {
placeholder="请输入"
/>
<ProFormText
rules={[{ required: true, message: '请输入!' }]}
width={300}
name="itemType"
label="功率"

View File

@@ -173,6 +173,7 @@ export default () => {
placeholder="请输入"
/>
<ProFormText
rules={[{ required: true, message: '请输入!' }]}
width={300}
name="itemType"
label="功率"

View File

@@ -3,7 +3,7 @@ import { userPage, userUpPwd, userInfo, userUpdate, userAdd, userDelete } from '
import React, { useState, useRef, useEffect } from 'react';
import { useIntl, FormattedMessage, useAccess } from '@umijs/max';
import { Button, message, Modal, Tag } from 'antd';
import { Button, message, Modal, Tag,Image } from 'antd';
import { ActionType, PageContainer, ProColumns, ProTable } from '@ant-design/pro-components';
import { PlusOutlined } from '@ant-design/icons';
import UpdateForm from './edit';
@@ -96,20 +96,26 @@ const UserTableList: React.FC = () => {
search: false,
},
{
title: '头像',
dataIndex: 'avatar',
valueType: 'image',
search: false,
},
{
title: '用户名',
title: '用户信息',
dataIndex: 'username',
valueType: 'text',
},
{
title: '昵称',
dataIndex: 'nickName',
valueType: 'text',
search: false,
render: (_: any, record: any) => {
return <div className='flex'>
<Image src={record.avatar} width={45}></Image>
<div>
<div>
{record.nickName}
</div>
<div>
{record.username}
</div>
<div>
{record.phoneNumber}
</div>
</div>
</div>
}
},
{
title: '角色',
@@ -127,12 +133,6 @@ const UserTableList: React.FC = () => {
valueType: 'text',
search: false,
},
{
title: '手机号',
dataIndex: 'phoneNumber',
valueType: 'text',
search: false,
},
{
title: '性别',
dataIndex: 'sex',