wujingjing
2024-12-13 d2da078b40578cf72901442c7a2b878dfc34cae5
src/components/vue-flow/VueFlowHelper.ts
@@ -40,7 +40,7 @@
                        key: 'condition',
                        label: '',
                        type: 'condition',
                        value: [ConditionHelper.getDefaultConditionGroup(),ConditionHelper.getDefaultConditionGroup(true)],
                        value: [ConditionHelper.getDefaultConditionGroup(), ConditionHelper.getDefaultConditionGroup(true)],
                     },
                  ],
               },
@@ -82,6 +82,24 @@
                        // value_label:'',
                        required: true,
                        placeholder: '代理',
                     },
                  ],
               },
            ];
            break;
         case NodeType.Func:
            data[VueFlowConstant.GROUP_PARAMS_KEY] = [
               {
                  [VueFlowConstant.PARAMS_KEY]: [
                     {
                        key: 'func_name',
                        label: '函数名称',
                        type: 'func_name_select',
                        value: '',
                        // value_label:'',
                        required: true,
                        placeholder: '函数名称',
                     },
                  ],
               },
@@ -195,7 +213,10 @@
         left_label: left?.label ?? '',
         left_value: left?.var ?? '',
         comparison_operation: operation ?? '',
         right_value_type: right?.type ?? VarType.Input,
         // right_value_type: right?.type ?? VarType.Input,
         // 固定选择 input
         right_value_type: VarType.Input,
         right_value: right?.value ?? '',
         right_label: right?.label ?? '',
      };
@@ -209,11 +230,7 @@
         : {
               id: VueFlowHelper.genId(),
               operator: ConditionOperator.And,
               conditions: [
                  {
                     id: VueFlowHelper.genId(),
                  },
               ],
               conditions: [ConditionHelper.getConditionItem()],
           };
   };
}