|
|
@@ -15,22 +15,10 @@ export enum Assembly {
|
|
|
DATAPROFILE = 'dataProfile' // 资料清单
|
|
|
}
|
|
|
|
|
|
-export const assemblyToNameMap = {
|
|
|
- [Assembly.FORM]: '表单',
|
|
|
- [Assembly.COSTPROFILE]: '送审资料',
|
|
|
- [Assembly.DATAPROFILE]: '造价文件'
|
|
|
-}
|
|
|
-
|
|
|
-export const assemblyToTypeMap = {
|
|
|
- [Assembly.FORM]: '通用型',
|
|
|
- [Assembly.COSTPROFILE]: '唯一型',
|
|
|
- [Assembly.DATAPROFILE]: '唯一型'
|
|
|
-}
|
|
|
-
|
|
|
-export const assemblyToTitleMap = {
|
|
|
- [Assembly.FORM]: '项目信息',
|
|
|
- [Assembly.COSTPROFILE]: '送审资料',
|
|
|
- [Assembly.DATAPROFILE]: '造价文件'
|
|
|
+export const assemblyToMap = {
|
|
|
+ [Assembly.FORM]: { name: '表单', type: '通用型', title: '项目信息' },
|
|
|
+ [Assembly.COSTPROFILE]: { name: '送审资料', type: '唯一型', title: '送审资料' },
|
|
|
+ [Assembly.DATAPROFILE]: { name: '造价文件', type: '唯一型', title: '造价文件' }
|
|
|
}
|
|
|
|
|
|
type AssemblyDetailProps = {
|
|
|
@@ -46,19 +34,19 @@ const AssemblyDetail: React.FC<AssemblyDetailProps> = ({ refresh, matterDetail }
|
|
|
title: '组件名称',
|
|
|
dataIndex: 'name',
|
|
|
onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
- renderText: name => <span>{assemblyToNameMap[name]}</span>
|
|
|
+ renderText: name => <span>{assemblyToMap[name]?.name}</span>
|
|
|
},
|
|
|
{
|
|
|
title: '组件类型',
|
|
|
dataIndex: 'type',
|
|
|
align: 'center',
|
|
|
- renderText: type => <Tag color="blue">{assemblyToTypeMap[type]}</Tag>
|
|
|
+ renderText: type => <Tag color="blue">{assemblyToMap[type]?.type}</Tag>
|
|
|
},
|
|
|
{
|
|
|
title: '组件标题',
|
|
|
dataIndex: 'title',
|
|
|
onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
- renderText: title => <span>{assemblyToTitleMap[title]}</span>
|
|
|
+ renderText: title => <span>{assemblyToMap[title]?.title}</span>
|
|
|
},
|
|
|
{
|
|
|
title: '操作',
|