Browse Source

修改条件介于两数之间手动把小于和小于等于改成大于和大于等于

Renxy 2 years ago
parent
commit
df769dbefc
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/components/Flow/components/judgeComponent/index.tsx

+ 2 - 1
src/components/Flow/components/judgeComponent/index.tsx

@@ -162,7 +162,8 @@ const RenderJudge = (props: any) => {
                 <Select
                 <Select
                   defaultValue={judge?.condition?.smallSign}
                   defaultValue={judge?.condition?.smallSign}
                   onChange={(value: number) => {
                   onChange={(value: number) => {
-                    handleChange([], item, { ...judge?.condition, smallSign: Number(value) });
+                    const newValue = Number(value) == 1 ? 2 : 5;
+                    handleChange([], item, { ...judge?.condition, smallSign: newValue });
                   }}
                   }}
                 >
                 >
                   {SiginOptions.map(item => (
                   {SiginOptions.map(item => (