|
@@ -72,7 +72,8 @@ const List: React.FC<ListProps> = ({ schema, dispatch, pTypeList }) => {
|
|
dataID: record.ID
|
|
dataID: record.ID
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- }}>
|
|
|
|
|
|
+ }}
|
|
|
|
+ >
|
|
{text}
|
|
{text}
|
|
</span>
|
|
</span>
|
|
)
|
|
)
|
|
@@ -130,14 +131,16 @@ 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>
|
|
@@ -178,7 +181,8 @@ 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>
|
|
]
|
|
]
|
|
@@ -195,13 +199,15 @@ 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}
|
|
pTypeList={pTypeList}
|
|
pTypeList={pTypeList}
|
|
reload={() => tRef.current?.reload()}
|
|
reload={() => tRef.current?.reload()}
|
|
onVisibleChange={onAnimateChange}
|
|
onVisibleChange={onAnimateChange}
|
|
|
|
+ type={state.currentModalType}
|
|
/>
|
|
/>
|
|
) : (
|
|
) : (
|
|
<ProjectModal
|
|
<ProjectModal
|