ソースを参照

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


読み込み中…
キャンセル
保存