|
@@ -72,8 +72,7 @@ const List: React.FC<ListProps> = ({ schema, dispatch, pTypeList }) => {
|
|
dataID: record.ID
|
|
dataID: record.ID
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- }}
|
|
|
|
- >
|
|
|
|
|
|
+ }}>
|
|
{text}
|
|
{text}
|
|
</span>
|
|
</span>
|
|
)
|
|
)
|
|
@@ -138,16 +137,14 @@ const List: React.FC<ListProps> = ({ schema, dispatch, pTypeList }) => {
|
|
dataID: record.ID
|
|
dataID: record.ID
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- }}
|
|
|
|
- >
|
|
|
|
|
|
+ }}>
|
|
编辑
|
|
编辑
|
|
</div>
|
|
</div>
|
|
<Popconfirm
|
|
<Popconfirm
|
|
title="确认删除吗?"
|
|
title="确认删除吗?"
|
|
okText="确认"
|
|
okText="确认"
|
|
cancelText="取消"
|
|
cancelText="取消"
|
|
- onConfirm={() => tryDelProject({ ID: record.ID })}
|
|
|
|
- >
|
|
|
|
|
|
+ onConfirm={() => tryDelProject({ ID: record.ID })}>
|
|
<div className="pl-2 text-hex-fd3995 cursor-pointer hover:text-hex-e7026e">
|
|
<div className="pl-2 text-hex-fd3995 cursor-pointer hover:text-hex-e7026e">
|
|
<DeleteOutlined />
|
|
<DeleteOutlined />
|
|
</div>
|
|
</div>
|
|
@@ -188,8 +185,7 @@ const List: React.FC<ListProps> = ({ schema, dispatch, pTypeList }) => {
|
|
type="primary"
|
|
type="primary"
|
|
onClick={() =>
|
|
onClick={() =>
|
|
setState({ ...state, visible: true, currentModalType: ModalType.ADD, title: '' })
|
|
setState({ ...state, visible: true, currentModalType: ModalType.ADD, title: '' })
|
|
- }
|
|
|
|
- >
|
|
|
|
|
|
+ }>
|
|
新建项目
|
|
新建项目
|
|
</Button>
|
|
</Button>
|
|
]
|
|
]
|
|
@@ -206,8 +202,7 @@ const List: React.FC<ListProps> = ({ schema, dispatch, pTypeList }) => {
|
|
</>
|
|
</>
|
|
}
|
|
}
|
|
visible={state.visible}
|
|
visible={state.visible}
|
|
- onVisibleChange={onAnimateChange}
|
|
|
|
- >
|
|
|
|
|
|
+ onVisibleChange={onAnimateChange}>
|
|
{state.currentModalType === ModalType.PREVIEW ? (
|
|
{state.currentModalType === ModalType.PREVIEW ? (
|
|
<Detail
|
|
<Detail
|
|
defaultFormData={state.defaultFormData}
|
|
defaultFormData={state.defaultFormData}
|
|
@@ -234,6 +229,6 @@ const List: React.FC<ListProps> = ({ schema, dispatch, pTypeList }) => {
|
|
export default connect(
|
|
export default connect(
|
|
({ project, schemaBase }: { project: ProjectModelState; schemaBase: SchemaBaseModelState }) => ({
|
|
({ project, schemaBase }: { project: ProjectModelState; schemaBase: SchemaBaseModelState }) => ({
|
|
pTypeList: project.projectTypeList.map(item => ({ label: item.name, value: item.ID })),
|
|
pTypeList: project.projectTypeList.map(item => ({ label: item.name, value: item.ID })),
|
|
- schema: schemaBase.base[BaseMenuEnum.PROJECT]?.schema
|
|
|
|
|
|
+ schema: schemaBase.base[BaseMenuEnum.PROJECT]
|
|
})
|
|
})
|
|
)(List)
|
|
)(List)
|