Procházet zdrojové kódy

fix:user, show nothing when data error

dev
powersir před 11 měsíci
rodič
revize
8f9f95e3ad
1 změnil soubory, kde provedl 5 přidání a 5 odebrání
  1. +5
    -5
      src/pages/system/user/index.tsx

+ 5
- 5
src/pages/system/user/index.tsx Zobrazit soubor

@@ -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);


Načítá se…
Zrušit
Uložit