feat: 优化物模型单个拷贝、新增编辑逻辑
This commit is contained in:
parent
a6b82b8f46
commit
176f1dc211
|
@ -281,7 +281,7 @@ const handleAddClick = (_data: any, index?: number) => {
|
|||
const copyItem = (record: any, index: number) => {
|
||||
const copyData = omit(record, ['_uuid'])
|
||||
copyData.id = `copy_${copyData.id}`
|
||||
handleAddClick(omit(record, ['_uuid']), index)
|
||||
handleAddClick(copyData, index)
|
||||
}
|
||||
|
||||
const removeItem = (index: number) => {
|
||||
|
|
|
@ -30,13 +30,12 @@ const BaseColumns: DataTableColumnProps[] = [
|
|||
{
|
||||
title: '标识',
|
||||
dataIndex: 'id',
|
||||
width: 150,
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
title: '名称',
|
||||
dataIndex: 'name',
|
||||
width: 200,
|
||||
width: 300,
|
||||
type: 'text'
|
||||
},
|
||||
];
|
||||
|
@ -132,7 +131,8 @@ const PropertyColumns: DataTableColumnProps[] = BaseColumns.concat([
|
|||
type: 'components',
|
||||
components: {
|
||||
name: DataType
|
||||
}
|
||||
},
|
||||
width: 200
|
||||
},
|
||||
{
|
||||
title: '属性来源',
|
||||
|
@ -165,7 +165,8 @@ const PropertyColumns: DataTableColumnProps[] = BaseColumns.concat([
|
|||
}
|
||||
},
|
||||
]
|
||||
}
|
||||
},
|
||||
width: 150
|
||||
},
|
||||
{
|
||||
title: '其它配置',
|
||||
|
|
Loading…
Reference in New Issue