feat(系统设置): 定义所有的表格column
This commit is contained in:
parent
2177679f92
commit
973f27babf
|
@ -11,7 +11,6 @@ export enum TableKeyEnum {
|
||||||
SYSTEM_USER = 'systemUser',
|
SYSTEM_USER = 'systemUser',
|
||||||
SYSTEM_RESOURCEPOOL = 'systemResourcePool',
|
SYSTEM_RESOURCEPOOL = 'systemResourcePool',
|
||||||
SYSTEM_AUTH = 'systemAuth',
|
SYSTEM_AUTH = 'systemAuth',
|
||||||
ORGANNATIONMEMBER = 'member',
|
|
||||||
SYSTEM_ORGANIZATION = 'systemOrganization',
|
SYSTEM_ORGANIZATION = 'systemOrganization',
|
||||||
SYSTEM_PROJECT = 'systemProject',
|
SYSTEM_PROJECT = 'systemProject',
|
||||||
SYSTEM_LOG = 'systemLog',
|
SYSTEM_LOG = 'systemLog',
|
||||||
|
|
|
@ -220,6 +220,7 @@
|
||||||
{
|
{
|
||||||
title: 'system.config.auth.action',
|
title: 'system.config.auth.action',
|
||||||
slotName: 'action',
|
slotName: 'action',
|
||||||
|
dataIndex: 'operation',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
width: 120,
|
width: 120,
|
||||||
showInTable: true,
|
showInTable: true,
|
||||||
|
|
|
@ -145,6 +145,7 @@
|
||||||
showInTable: true,
|
showInTable: true,
|
||||||
showTooltip: true,
|
showTooltip: true,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
|
sortIndex: 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'organization.member.tableColunmName',
|
title: 'organization.member.tableColunmName',
|
||||||
|
@ -185,12 +186,13 @@
|
||||||
{
|
{
|
||||||
title: 'organization.member.tableColunmActions',
|
title: 'organization.member.tableColunmActions',
|
||||||
slotName: 'action',
|
slotName: 'action',
|
||||||
|
dataIndex: 'operation',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
width: 140,
|
width: 140,
|
||||||
showInTable: true,
|
showInTable: true,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
tableStore.initColumn(TableKeyEnum.ORGANNATIONMEMBER, columns, 'drawer');
|
tableStore.initColumn(TableKeyEnum.ORGANIZATION_MEMBER, columns, 'drawer');
|
||||||
|
|
||||||
const tableBatchActions = {
|
const tableBatchActions = {
|
||||||
baseAction: [
|
baseAction: [
|
||||||
|
@ -205,7 +207,7 @@
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const { propsRes, propsEvent, loadList, setLoadListParams } = useTable(getMemberList, {
|
const { propsRes, propsEvent, loadList, setLoadListParams } = useTable(getMemberList, {
|
||||||
tableKey: TableKeyEnum.ORGANNATIONMEMBER,
|
tableKey: TableKeyEnum.ORGANIZATION_MEMBER,
|
||||||
scroll: { x: 2000 },
|
scroll: { x: 2000 },
|
||||||
selectable: true,
|
selectable: true,
|
||||||
showSetting: true,
|
showSetting: true,
|
||||||
|
|
|
@ -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(
|
const { propsRes, propsEvent, loadList, setKeyword, setLoadListParams } = useTable(
|
||||||
postProjectTableByOrg,
|
postProjectTableByOrg,
|
||||||
{
|
{
|
||||||
tableKey: TableKeyEnum.SYSTEM_PROJECT,
|
tableKey: TableKeyEnum.ORGANIZATION_PROJECT,
|
||||||
selectable: false,
|
selectable: false,
|
||||||
noDisable: false,
|
noDisable: false,
|
||||||
size: 'default',
|
size: 'default',
|
||||||
|
|
|
@ -600,6 +600,7 @@
|
||||||
slotName: 'action',
|
slotName: 'action',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
width: 120,
|
width: 120,
|
||||||
|
dataIndex: 'operation',
|
||||||
showInTable: true,
|
showInTable: true,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
@ -109,10 +109,12 @@
|
||||||
{
|
{
|
||||||
title: 'system.organization.member',
|
title: 'system.organization.member',
|
||||||
slotName: 'memberCount',
|
slotName: 'memberCount',
|
||||||
|
dataIndex: 'memberCount',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'system.organization.project',
|
title: 'system.organization.project',
|
||||||
slotName: 'projectCount',
|
slotName: 'projectCount',
|
||||||
|
dataIndex: 'projectCount',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'system.organization.status',
|
title: 'system.organization.status',
|
||||||
|
@ -137,6 +139,7 @@
|
||||||
{
|
{
|
||||||
title: 'system.organization.operation',
|
title: 'system.organization.operation',
|
||||||
slotName: 'operation',
|
slotName: 'operation',
|
||||||
|
dataIndex: 'operation',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
width: 230,
|
width: 230,
|
||||||
},
|
},
|
||||||
|
|
|
@ -113,6 +113,7 @@
|
||||||
{
|
{
|
||||||
title: 'system.resourcePool.tableColumnActions',
|
title: 'system.resourcePool.tableColumnActions',
|
||||||
slotName: 'action',
|
slotName: 'action',
|
||||||
|
dataIndex: 'operation',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
width: 140,
|
width: 140,
|
||||||
},
|
},
|
||||||
|
|
|
@ -223,11 +223,13 @@
|
||||||
title: 'system.user.tableColumnEmail',
|
title: 'system.user.tableColumnEmail',
|
||||||
dataIndex: 'email',
|
dataIndex: 'email',
|
||||||
showTooltip: true,
|
showTooltip: true,
|
||||||
|
sortIndex: 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'system.user.tableColumnName',
|
title: 'system.user.tableColumnName',
|
||||||
dataIndex: 'name',
|
dataIndex: 'name',
|
||||||
showTooltip: true,
|
showTooltip: true,
|
||||||
|
sortIndex: 1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'system.user.tableColumnPhone',
|
title: 'system.user.tableColumnPhone',
|
||||||
|
@ -236,12 +238,14 @@
|
||||||
{
|
{
|
||||||
title: 'system.user.tableColumnOrg',
|
title: 'system.user.tableColumnOrg',
|
||||||
slotName: 'organization',
|
slotName: 'organization',
|
||||||
|
dataIndex: 'organization',
|
||||||
isTag: true,
|
isTag: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'system.user.tableColumnUserGroup',
|
title: 'system.user.tableColumnUserGroup',
|
||||||
slotName: 'userRole',
|
slotName: 'userRole',
|
||||||
isTag: true,
|
isTag: true,
|
||||||
|
dataIndex: 'userRole',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'system.user.tableColumnStatus',
|
title: 'system.user.tableColumnStatus',
|
||||||
|
@ -251,6 +255,7 @@
|
||||||
{
|
{
|
||||||
title: 'system.user.tableColumnActions',
|
title: 'system.user.tableColumnActions',
|
||||||
slotName: 'action',
|
slotName: 'action',
|
||||||
|
dataIndex: 'operation',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
width: 90,
|
width: 90,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue