feat(系统设置): 定义所有的表格column

This commit is contained in:
RubyLiu 2023-09-12 19:26:27 +08:00 committed by 刘瑞斌
parent 2177679f92
commit 973f27babf
8 changed files with 17 additions and 5 deletions

View File

@ -11,7 +11,6 @@ export enum TableKeyEnum {
SYSTEM_USER = 'systemUser',
SYSTEM_RESOURCEPOOL = 'systemResourcePool',
SYSTEM_AUTH = 'systemAuth',
ORGANNATIONMEMBER = 'member',
SYSTEM_ORGANIZATION = 'systemOrganization',
SYSTEM_PROJECT = 'systemProject',
SYSTEM_LOG = 'systemLog',

View File

@ -220,6 +220,7 @@
{
title: 'system.config.auth.action',
slotName: 'action',
dataIndex: 'operation',
fixed: 'right',
width: 120,
showInTable: true,

View File

@ -145,6 +145,7 @@
showInTable: true,
showTooltip: true,
ellipsis: true,
sortIndex: 0,
},
{
title: 'organization.member.tableColunmName',
@ -185,12 +186,13 @@
{
title: 'organization.member.tableColunmActions',
slotName: 'action',
dataIndex: 'operation',
fixed: 'right',
width: 140,
showInTable: true,
},
];
tableStore.initColumn(TableKeyEnum.ORGANNATIONMEMBER, columns, 'drawer');
tableStore.initColumn(TableKeyEnum.ORGANIZATION_MEMBER, columns, 'drawer');
const tableBatchActions = {
baseAction: [
@ -205,7 +207,7 @@
],
};
const { propsRes, propsEvent, loadList, setLoadListParams } = useTable(getMemberList, {
tableKey: TableKeyEnum.ORGANNATIONMEMBER,
tableKey: TableKeyEnum.ORGANIZATION_MEMBER,
scroll: { x: 2000 },
selectable: true,
showSetting: true,

View File

@ -162,12 +162,12 @@
}
};
tableStore.initColumn(TableKeyEnum.SYSTEM_PROJECT, organizationColumns, 'drawer');
tableStore.initColumn(TableKeyEnum.ORGANIZATION_PROJECT, organizationColumns, 'drawer');
const { propsRes, propsEvent, loadList, setKeyword, setLoadListParams } = useTable(
postProjectTableByOrg,
{
tableKey: TableKeyEnum.SYSTEM_PROJECT,
tableKey: TableKeyEnum.ORGANIZATION_PROJECT,
selectable: false,
noDisable: false,
size: 'default',

View File

@ -600,6 +600,7 @@
slotName: 'action',
fixed: 'right',
width: 120,
dataIndex: 'operation',
showInTable: true,
},
];

View File

@ -109,10 +109,12 @@
{
title: 'system.organization.member',
slotName: 'memberCount',
dataIndex: 'memberCount',
},
{
title: 'system.organization.project',
slotName: 'projectCount',
dataIndex: 'projectCount',
},
{
title: 'system.organization.status',
@ -137,6 +139,7 @@
{
title: 'system.organization.operation',
slotName: 'operation',
dataIndex: 'operation',
fixed: 'right',
width: 230,
},

View File

@ -113,6 +113,7 @@
{
title: 'system.resourcePool.tableColumnActions',
slotName: 'action',
dataIndex: 'operation',
fixed: 'right',
width: 140,
},

View File

@ -223,11 +223,13 @@
title: 'system.user.tableColumnEmail',
dataIndex: 'email',
showTooltip: true,
sortIndex: 0,
},
{
title: 'system.user.tableColumnName',
dataIndex: 'name',
showTooltip: true,
sortIndex: 1,
},
{
title: 'system.user.tableColumnPhone',
@ -236,12 +238,14 @@
{
title: 'system.user.tableColumnOrg',
slotName: 'organization',
dataIndex: 'organization',
isTag: true,
},
{
title: 'system.user.tableColumnUserGroup',
slotName: 'userRole',
isTag: true,
dataIndex: 'userRole',
},
{
title: 'system.user.tableColumnStatus',
@ -251,6 +255,7 @@
{
title: 'system.user.tableColumnActions',
slotName: 'action',
dataIndex: 'operation',
fixed: 'right',
width: 90,
},