fix(user-select-modal): 专区白名单手机号改为不脱敏显示
- UserSelectModal.vue 中候选行手机号由 u.mobile 改为 u.phone || u.mobile || '-' - 表格列手机号由 dataIndex: 'mobile' 改为 dataIndex: 'phone' - 表格列 customRender 实现回退到 record.mobile 显示真实号码 - 无需后端改动,只需重新构建 admin 前端进行部署
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
style="display: flex; align-items: center; padding: 4px 0; gap: 8px; border-bottom: 1px solid #f0f0f0;"
|
||||
>
|
||||
<span style="flex: 1; font-size: 13px;">{{ u.realName || '-' }}</span>
|
||||
<span style="color: #999; font-size: 12px;">{{ u.mobile || '-' }}</span>
|
||||
<span style="color: #999; font-size: 12px;">{{ u.phone || u.mobile || '-' }}</span>
|
||||
<span style="color: #999; font-size: 12px;">{{ u.nickname || '' }}</span>
|
||||
<a-button type="link" size="small" style="padding: 0;" @click="addOne(u)">+ 添加</a-button>
|
||||
</div>
|
||||
@@ -99,7 +99,7 @@
|
||||
const columns = [
|
||||
{ title: 'ID', dataIndex: 'userId', key: 'userId', align: 'center', width: 80 },
|
||||
{ title: '姓名', dataIndex: 'realName', key: 'realName', align: 'center' },
|
||||
{ title: '手机号码', dataIndex: 'mobile', key: 'mobile', align: 'center' },
|
||||
{ title: '手机号码', dataIndex: 'phone', key: 'phone', align: 'center', customRender: ({ text, record }: any) => text || record.mobile || '-' },
|
||||
{ title: '昵称', dataIndex: 'nickname', key: 'nickname', align: 'center' },
|
||||
{ title: '所属部门', dataIndex: 'organizationName', key: 'organizationName', align: 'center' },
|
||||
{ title: '操作', key: 'action', align: 'center', width: 90 }
|
||||
|
||||
Reference in New Issue
Block a user