搜索弄成全局
This commit is contained in:
21
src/components/CommonSelect/AccessStatusSelect.tsx
Normal file
21
src/components/CommonSelect/AccessStatusSelect.tsx
Normal file
@ -0,0 +1,21 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { Select } from 'antd';
|
||||
|
||||
interface options {
|
||||
label: string;
|
||||
value: string;
|
||||
}
|
||||
|
||||
const AdmissionTypeSelect = () => {
|
||||
const [options, setOptions] = useState<options[]>([]);
|
||||
useEffect(() => {
|
||||
setOptions([
|
||||
{ label: '未准入', value: '0' },
|
||||
{ label: '已准入', value: '1' },
|
||||
{ label: '退出', value: '2' },
|
||||
])
|
||||
}, []);
|
||||
return <Select style={{ width: 150 }} placeholder="请选择准入状态" options={options} allowClear />;
|
||||
};
|
||||
|
||||
export default AdmissionTypeSelect;
|
23
src/components/CommonSelect/ApprovalStatusSelect.tsx
Normal file
23
src/components/CommonSelect/ApprovalStatusSelect.tsx
Normal file
@ -0,0 +1,23 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { Select } from 'antd';
|
||||
|
||||
interface options {
|
||||
label: string;
|
||||
value: string;
|
||||
}
|
||||
|
||||
const AdmissionTypeSelect = () => {
|
||||
const [options, setOptions] = useState<options[]>([]);
|
||||
useEffect(() => {
|
||||
setOptions([
|
||||
{ label: '未开始', value: '0' },
|
||||
{ label: '进行中', value: '1' },
|
||||
{ label: '结果汇总中', value: '2' },
|
||||
{ label: '已完成', value: '3' },
|
||||
])
|
||||
}, []);
|
||||
|
||||
return <Select style={{ width: 150 }} placeholder="请选择审批状态" options={options} allowClear />;
|
||||
};
|
||||
|
||||
export default AdmissionTypeSelect;
|
21
src/components/CommonSelect/RegionTypeSelect.tsx
Normal file
21
src/components/CommonSelect/RegionTypeSelect.tsx
Normal file
@ -0,0 +1,21 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { Select } from 'antd';
|
||||
|
||||
interface options {
|
||||
label: string;
|
||||
value: string;
|
||||
}
|
||||
|
||||
const AdmissionTypeSelect = () => {
|
||||
const [options, setOptions] = useState<options[]>([]);
|
||||
useEffect(() => {
|
||||
setOptions([
|
||||
{ label: '境内企业', value: 'dvs' },
|
||||
{ label: '境外企业', value: 'ovs' },
|
||||
{ label: '个人', value: 'pe' },
|
||||
])
|
||||
}, []);
|
||||
return <Select style={{ width: 150 }} placeholder="请选择企业类型" options={options} allowClear />;
|
||||
};
|
||||
|
||||
export default AdmissionTypeSelect;
|
Reference in New Issue
Block a user