Преглед на файлове

fix:user, show nothing when data error

dev
powersir преди 11 месеца
родител
ревизия
8f9f95e3ad
променени са 1 файла, в които са добавени 5 реда и са изтрити 5 реда
  1. +5
    -5
      src/pages/system/user/index.tsx

+ 5
- 5
src/pages/system/user/index.tsx Целия файл

@@ -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…
Отказ
Запис