优化用户数据表列配置,移除不必要的可调整属性

This commit is contained in:
geht
2026-06-30 17:52:44 +08:00
parent ec04a7e1ad
commit e79698c19f

View File

@@ -11,15 +11,11 @@ export const columns: BasicColumn[] = [
{ {
title: '用户账号', title: '用户账号',
dataIndex: 'username', dataIndex: 'username',
width: 120, width: 120, },
resizable: true,
},
{ {
title: '用户姓名', title: '用户姓名',
dataIndex: 'realname', dataIndex: 'realname',
width: 100, width: 100, },
resizable: true,
},
/* { /* {
title: '头像', title: '头像',
dataIndex: 'avatar', dataIndex: 'avatar',
@@ -29,9 +25,7 @@ export const columns: BasicColumn[] = [
{ {
title: '性别', title: '性别',
dataIndex: 'sex', dataIndex: 'sex',
width: 80, width: 80, sorter: true,
resizable: true,
sorter: true,
customRender: ({ text }) => { customRender: ({ text }) => {
return render.renderDict(text, 'sex'); return render.renderDict(text, 'sex');
}, },
@@ -44,9 +38,7 @@ export const columns: BasicColumn[] = [
{ {
title: '手机号', title: '手机号',
dataIndex: 'phone', dataIndex: 'phone',
width: 100, width: 100, customRender:( { record, text })=>{
resizable: true,
customRender:( { record, text })=>{
if(record.izHideContact && record.izHideContact === '1'){ if(record.izHideContact && record.izHideContact === '1'){
return '/'; return '/';
} }
@@ -55,9 +47,7 @@ export const columns: BasicColumn[] = [
}, },
{ {
title: '部门', title: '部门',
width: 150, width: 150, dataIndex: 'belongDepIds',
resizable: true,
dataIndex: 'belongDepIds',
customRender:( { record, text })=>{ customRender:( { record, text })=>{
if(!text){ if(!text){
return ''; return '';
@@ -67,9 +57,7 @@ export const columns: BasicColumn[] = [
}, },
{ {
title: '负责部门', title: '负责部门',
width: 150, width: 150, dataIndex: 'departIds',
resizable: true,
dataIndex: 'departIds',
customRender:( { record, text })=>{ customRender:( { record, text })=>{
if(!text){ if(!text){
return ''; return '';
@@ -79,18 +67,14 @@ export const columns: BasicColumn[] = [
}, },
{ {
title: '主岗位', title: '主岗位',
width: 150, width: 150, dataIndex: 'mainDepPostId',
resizable: true,
dataIndex: 'mainDepPostId',
customRender: ({ record, text })=>{ customRender: ({ record, text })=>{
return getDepartName(getDepartPathName(record.mainDepPostId_dictText,text,false)); return getDepartName(getDepartPathName(record.mainDepPostId_dictText,text,false));
} }
}, },
{ {
title: '兼职岗位', title: '兼职岗位',
width: 150, width: 150, dataIndex: 'otherDepPostId',
resizable: true,
dataIndex: 'otherDepPostId',
customRender:({ record, text })=>{ customRender:({ record, text })=>{
if(!text){ if(!text){
return ''; return '';
@@ -101,16 +85,12 @@ export const columns: BasicColumn[] = [
{ {
title: '状态', title: '状态',
dataIndex: 'status_dictText', dataIndex: 'status_dictText',
width: 80, width: 80, },
resizable: true,
},
//update-begin---author:GHT ---date:2026-06-08 for【XSLMES-20260608】新增钉钉ID列----------- //update-begin---author:GHT ---date:2026-06-08 for【XSLMES-20260608】新增钉钉ID列-----------
{ {
title: '钉钉ID', title: '钉钉ID',
dataIndex: 'dingUserId', dataIndex: 'dingUserId',
width: 120, width: 120, },
resizable: true,
},
//update-end---author:GHT ---date:2026-06-08 for【XSLMES-20260608】新增钉钉ID列----------- //update-end---author:GHT ---date:2026-06-08 for【XSLMES-20260608】新增钉钉ID列-----------
]; ];