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

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