mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-15 07:25:52 +08:00
### What problem does this PR solve? Fix: Translate the operator options of the Switch operator #1739 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
03d7a51d49
commit
69984554a5
@ -956,17 +956,17 @@ This procedure will improve precision of retrieval by adding more information to
|
|||||||
switch: 'Switch',
|
switch: 'Switch',
|
||||||
logicalOperator: 'Logical operator',
|
logicalOperator: 'Logical operator',
|
||||||
switchOperatorOptions: {
|
switchOperatorOptions: {
|
||||||
equal: 'equal',
|
equal: 'Equals',
|
||||||
notEqual: 'notEqual',
|
notEqual: 'Not equal',
|
||||||
gt: 'Greater than',
|
gt: 'Greater than',
|
||||||
ge: 'Greater equal',
|
ge: 'Greater equal',
|
||||||
lt: 'Less than',
|
lt: 'Less than',
|
||||||
le: 'Less equal',
|
le: 'Less equal',
|
||||||
contains: 'Contains',
|
contains: 'Contains',
|
||||||
notContains: 'Not contains',
|
notContains: 'Not contains',
|
||||||
startWith: 'Start with',
|
startWith: 'Starts with',
|
||||||
endWith: 'End with',
|
endWith: 'Ends with',
|
||||||
empty: 'Empty',
|
empty: 'Is empty',
|
||||||
notEmpty: 'Not empty',
|
notEmpty: 'Not empty',
|
||||||
},
|
},
|
||||||
switchLogicOperatorOptions: {
|
switchLogicOperatorOptions: {
|
||||||
|
@ -10,9 +10,10 @@ import {
|
|||||||
} from '../../constant';
|
} from '../../constant';
|
||||||
import { useBuildFormSelectOptions } from '../../form-hooks';
|
import { useBuildFormSelectOptions } from '../../form-hooks';
|
||||||
import { useBuildComponentIdSelectOptions } from '../../hooks/use-get-begin-query';
|
import { useBuildComponentIdSelectOptions } from '../../hooks/use-get-begin-query';
|
||||||
import { IOperatorForm, ISwitchForm } from '../../interface';
|
import { IOperatorForm } from '../../interface';
|
||||||
import { getOtherFieldValues } from '../../utils';
|
import { getOtherFieldValues } from '../../utils';
|
||||||
|
|
||||||
|
import { ISwitchForm } from '@/interfaces/database/flow';
|
||||||
import styles from './index.less';
|
import styles from './index.less';
|
||||||
|
|
||||||
const SwitchForm = ({ onValuesChange, node, form }: IOperatorForm) => {
|
const SwitchForm = ({ onValuesChange, node, form }: IOperatorForm) => {
|
||||||
@ -88,7 +89,10 @@ const SwitchForm = ({ onValuesChange, node, form }: IOperatorForm) => {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label={t('flow.to')} name={[field.name, 'to']}>
|
<Form.Item
|
||||||
|
label={t('flow.nextStep')}
|
||||||
|
name={[field.name, 'to']}
|
||||||
|
>
|
||||||
<Select
|
<Select
|
||||||
allowClear
|
allowClear
|
||||||
options={buildCategorizeToOptions([
|
options={buildCategorizeToOptions([
|
||||||
|
Loading…
x
Reference in New Issue
Block a user