Browse Source

fix:user, show nothing when data error

dev
powersir 11 months ago
parent
commit
8f9f95e3ad
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      src/pages/system/user/index.tsx

+ 5
- 5
src/pages/system/user/index.tsx View File

@@ -27,22 +27,22 @@ const renderUserCard = (user: UserVO) => {
<div style={{ flex: 1, }}>
<div>
<div className=' text-gray-900 text-lg font-semibold leading-relaxed'>{user.username}</div>
<div className='text-zinc-400 text-xs font-normal leading-relaxed'>{user.remark}</div>
<div className='text-zinc-400 text-xs font-normal leading-relaxed'>{user.remark??"-"}</div>
</div>
<div className='grid grid-cols-2 gap-4 mt-5' >
<div>
<div className='text-zinc-400 text-xs font-normal leading-relaxed'>用户账号</div>
<div className='text-gray-900 text-xs font-medium leading-relaxed'>{user.username}</div>
<div className='text-gray-900 text-xs font-medium leading-relaxed'>{user.username??"-"}</div>
</div>

<div>
<div className='text-zinc-400 text-xs font-normal leading-relaxed'>手机号码</div>
<div className='text-gray-900 text-xs font-medium leading-relaxed'>{user.mobile}</div>
<div className='text-gray-900 text-xs font-medium leading-relaxed'>{user.mobile??"-"}</div>
</div>

<div>
<div className='text-zinc-400 text-xs font-normal leading-relaxed'>用户邮箱</div>
<div className='text-gray-900 text-xs font-medium leading-relaxed'>{user.email}</div>
<div className='text-gray-900 text-xs font-medium leading-relaxed'>{user.email??"-"}</div>
</div>

<div>
@@ -101,7 +101,7 @@ export default () => {
if (!error) {
setDataSource(data.list.map((item) => {
return ({
subTitle: <Tag color="#5BD8A6">{item.dept.name}</Tag>,
subTitle: <Tag color="#5BD8A6">{item.dept?.name??""}</Tag>,
actions: [
<EditOutlined className='my-1' onClick={() => {
seEditData(item);


Loading…
Cancel
Save