|
@@ -177,6 +177,7 @@ const videos: React.FC<RouteComponentProps> = ({ history }) => {
|
|
|
loading={VideoListState.loading}
|
|
|
></Table>
|
|
|
<Modal
|
|
|
+ maskClosable={false}
|
|
|
title="添加设备"
|
|
|
visible={state.visibleModal}
|
|
|
okText="确认"
|
|
@@ -196,14 +197,21 @@ const videos: React.FC<RouteComponentProps> = ({ history }) => {
|
|
|
</Form.Item>
|
|
|
<Form.Item
|
|
|
name="projectId"
|
|
|
- label="工程名"
|
|
|
+ label="项目"
|
|
|
required
|
|
|
rules={[{ required: true, message: '请选择工程项目' }]}
|
|
|
>
|
|
|
- <Select placeholder="请选择工程项目">
|
|
|
+ <Select
|
|
|
+ showSearch
|
|
|
+ filterOption={(inputValue, option) => {
|
|
|
+ return option?.title.indexOf(inputValue) !== -1
|
|
|
+ }}
|
|
|
+ placeholder="请选择工程项目"
|
|
|
+ >
|
|
|
{projectListState.dataSouce.map((project) => {
|
|
|
return (
|
|
|
<Select.Option
|
|
|
+ title={project.name}
|
|
|
key={project.id}
|
|
|
value={project.id}
|
|
|
>
|