修复任务管理创建视图

This commit is contained in:
whyour 2023-09-24 00:47:56 +08:00
parent d7e0531935
commit 22eedebf14

View File

@ -112,10 +112,14 @@ const ViewCreateModal = ({
); );
}, [view, visible]); }, [view, visible]);
const OperationElement = ({ name }: { name: number }) => { const OperationElement = ({ name, ...others }: { name: number }) => {
const property = form.getFieldValue(['filters', name, 'property']); const property = form.getFieldValue(['filters', name, 'property']);
return ( return (
<Select style={{ width: 120 }} placeholder={intl.get('请选择操作符')}> <Select
style={{ width: 120 }}
placeholder={intl.get('请选择操作符')}
{...others}
>
{OPERATIONS.filter((x) => {OPERATIONS.filter((x) =>
STATUS_MAP[property as 'status' | 'sub_id'] ? x.type === 'select' : x, STATUS_MAP[property as 'status' | 'sub_id'] ? x.type === 'select' : x,
).map((x) => ( ).map((x) => (