修改
This commit is contained in:
2
dist/index.html
vendored
2
dist/index.html
vendored
@@ -8,6 +8,6 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
<script src="/umi.978e06ed.js"></script>
|
<script src="/umi.90249585.js"></script>
|
||||||
|
|
||||||
</body></html>
|
</body></html>
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dist/src__pages__system__user__index.33917a06.async.js
vendored
Normal file
1
dist/src__pages__system__user__index.33917a06.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
dist/umi.978e06ed.js → dist/umi.90249585.js
vendored
2
dist/umi.978e06ed.js → dist/umi.90249585.js
vendored
File diff suppressed because one or more lines are too long
@@ -159,6 +159,7 @@ export default () => {
|
|||||||
placeholder="请输入"
|
placeholder="请输入"
|
||||||
/>
|
/>
|
||||||
<ProFormText
|
<ProFormText
|
||||||
|
rules={[{ required: true, message: '请输入!' }]}
|
||||||
width={300}
|
width={300}
|
||||||
name="itemType"
|
name="itemType"
|
||||||
label="功率"
|
label="功率"
|
||||||
|
|||||||
@@ -173,6 +173,7 @@ export default () => {
|
|||||||
placeholder="请输入"
|
placeholder="请输入"
|
||||||
/>
|
/>
|
||||||
<ProFormText
|
<ProFormText
|
||||||
|
rules={[{ required: true, message: '请输入!' }]}
|
||||||
width={300}
|
width={300}
|
||||||
name="itemType"
|
name="itemType"
|
||||||
label="功率"
|
label="功率"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { userPage, userUpPwd, userInfo, userUpdate, userAdd, userDelete } from '
|
|||||||
|
|
||||||
import React, { useState, useRef, useEffect } from 'react';
|
import React, { useState, useRef, useEffect } from 'react';
|
||||||
import { useIntl, FormattedMessage, useAccess } from '@umijs/max';
|
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 { ActionType, PageContainer, ProColumns, ProTable } from '@ant-design/pro-components';
|
||||||
import { PlusOutlined } from '@ant-design/icons';
|
import { PlusOutlined } from '@ant-design/icons';
|
||||||
import UpdateForm from './edit';
|
import UpdateForm from './edit';
|
||||||
@@ -96,20 +96,26 @@ const UserTableList: React.FC = () => {
|
|||||||
search: false,
|
search: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '头像',
|
title: '用户信息',
|
||||||
dataIndex: 'avatar',
|
|
||||||
valueType: 'image',
|
|
||||||
search: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '用户名',
|
|
||||||
dataIndex: 'username',
|
dataIndex: 'username',
|
||||||
valueType: 'text',
|
valueType: 'text',
|
||||||
},
|
search: false,
|
||||||
{
|
render: (_: any, record: any) => {
|
||||||
title: '昵称',
|
return <div className='flex'>
|
||||||
dataIndex: 'nickName',
|
<Image src={record.avatar} width={45}></Image>
|
||||||
valueType: 'text',
|
<div>
|
||||||
|
<div>
|
||||||
|
昵称:{record.nickName}
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
用户名:{record.username}
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
手机号:{record.phoneNumber}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '角色',
|
title: '角色',
|
||||||
@@ -127,12 +133,6 @@ const UserTableList: React.FC = () => {
|
|||||||
valueType: 'text',
|
valueType: 'text',
|
||||||
search: false,
|
search: false,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: '手机号',
|
|
||||||
dataIndex: 'phoneNumber',
|
|
||||||
valueType: 'text',
|
|
||||||
search: false,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: '性别',
|
title: '性别',
|
||||||
dataIndex: 'sex',
|
dataIndex: 'sex',
|
||||||
|
|||||||
Reference in New Issue
Block a user