mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-07 20:06:08 +08:00
修复任务管理创建视图
This commit is contained in:
parent
d7e0531935
commit
22eedebf14
|
@ -112,10 +112,14 @@ const ViewCreateModal = ({
|
|||
);
|
||||
}, [view, visible]);
|
||||
|
||||
const OperationElement = ({ name }: { name: number }) => {
|
||||
const OperationElement = ({ name, ...others }: { name: number }) => {
|
||||
const property = form.getFieldValue(['filters', name, 'property']);
|
||||
return (
|
||||
<Select style={{ width: 120 }} placeholder={intl.get('请选择操作符')}>
|
||||
<Select
|
||||
style={{ width: 120 }}
|
||||
placeholder={intl.get('请选择操作符')}
|
||||
{...others}
|
||||
>
|
||||
{OPERATIONS.filter((x) =>
|
||||
STATUS_MAP[property as 'status' | 'sub_id'] ? x.type === 'select' : x,
|
||||
).map((x) => (
|
||||
|
|
Loading…
Reference in New Issue
Block a user