diff --git a/src/apis/workFlow/workFlowService.ts b/src/apis/workFlow/workFlowService.ts index 3f094d9ab2ad15d94c5f30d2fe2e196d24abc8aa..a206facacc2da24a7d1b40792513c8c475646709 100644 --- a/src/apis/workFlow/workFlowService.ts +++ b/src/apis/workFlow/workFlowService.ts @@ -64,10 +64,36 @@ export const delFlowTopology = (params: { return del(`/api/flow?appId=${params.appId}&flowId=${params.flowId}`); }; +/** + * 获取Choice节点内参数 + * @param params + * @returns + */ +export const queryParameter = (params: { + appId: string; + flowId: string; + stepId: string; +}): Promise<[any, FcResponse | undefined]> => { + return get('/api/parameter', params); +}; + +/** + * 获取Choice节点内参数的操作内容 + * @param params + * @returns + */ +export const queryParameterOperate = (params: { + ParamType: string; +}): Promise<[any, FcResponse | undefined]> => { + return get('/api/parameter/operate', params); +}; + export const workFlowApi = { queryAllFlowService, querySingleFlowServiceNode, querySingleFlowTopology, delFlowTopology, createOrUpdateFlowTopology, + queryParameter, + queryParameterOperate, }; diff --git a/src/assets/svgs/file_download.svg b/src/assets/svgs/file_download.svg index 283d57e696c0cc738161a593fe5a5af61eb8b81f..1f6be3a0246bb02e909a822390992d01d334597f 100644 --- a/src/assets/svgs/file_download.svg +++ b/src/assets/svgs/file_download.svg @@ -3,11 +3,11 @@ Created with Pixso. - - + + - - + + diff --git a/src/assets/svgs/file_download_active.svg b/src/assets/svgs/file_download_active.svg index c072db44196d37edee48be9499d18f0e67744582..eb0a6b00f4407e3212aabcdde210e0b581ee808e 100644 --- a/src/assets/svgs/file_download_active.svg +++ b/src/assets/svgs/file_download_active.svg @@ -3,11 +3,11 @@ Created with Pixso. - - + + - - + + diff --git a/src/assets/svgs/file_download_hover.svg b/src/assets/svgs/file_download_hover.svg index 09d8b74fef906ba4786dc0809cf4e1bdf238b54b..855772f215645ea1aad92617fa4f30ba2478bf47 100644 --- a/src/assets/svgs/file_download_hover.svg +++ b/src/assets/svgs/file_download_hover.svg @@ -3,11 +3,11 @@ Created with Pixso. - - + + - - + + diff --git a/src/assets/svgs/taskChoice.svg b/src/assets/svgs/taskChoice.svg index ebace828de164ed949e86d75dfc9aeed628d5b75..381b2ddd065951c1cee2b004cf82b1d44ef3cee3 100644 --- a/src/assets/svgs/taskChoice.svg +++ b/src/assets/svgs/taskChoice.svg @@ -11,7 +11,7 @@ - + diff --git a/src/views/createapp/components/types.ts b/src/views/createapp/components/types.ts index 8633df27cbc22404495a41cd0411d713364249c3..ab038d34617c75d5665193049859dcc483945724 100644 --- a/src/views/createapp/components/types.ts +++ b/src/views/createapp/components/types.ts @@ -145,3 +145,50 @@ export interface ListItem { id: string; value: string | null; } + +const opertionList = [ + // Number operations + {value: 'number_equal', label: '等于', str: '='}, + {value: 'number_not_equal', label: '不等于', str: '≠'}, + {value: 'number_greater_than', label: '大于', str: '>'}, + {value: 'number_less_than', label: '小于', str: '<'}, + {value: 'number_greater_than_or_equal', label: '大于等于', str: '≥'}, + {value: 'number_less_than_or_equal', label: '小于等于', str: '≤'}, + + // String operations + {value: 'string_equal', label: '等于', str: '='}, + {value: 'string_not_equal', label: '不等于', str: '≠'}, + {value: 'string_contains', label: '包含', str: ''}, + {value: 'string_not_contains', label: '不包含', str: ''}, + {value: 'string_starts_with', label: '起始等于', str: '='}, + {value: 'string_ends_with', label: '结束等于', str: '='}, + {value: 'string_length_equal', label: '长度等于', str: '|...|='}, + {value: 'string_length_greater_than', label: '长度大于', str: '|...|>'}, + {value: 'string_length_greater_than_or_equal', label: '长度大于等于', str: '|...|≥'}, + {value: 'string_length_less_than', label: '长度小于', str: '|...|<'}, + {value: 'string_length_less_than_or_equal', label: '长度小于等于', str: '|...|≤'}, + {value: 'string_regex_match', label: '正则匹配', str: '\\+'}, + + // List operations + {value: 'list_equal', label: '等于', str: '='}, + {value: 'list_not_equal', label: '不等于', str: '≠'}, + {value: 'list_contains', label: '包含', str: ''}, + {value: 'list_not_contains', label: '不包含', str: ''}, + {value: 'list_length_equal', label: '长度等于', str: '|...|='}, + {value: 'list_length_greater_than', label: '长度大于', str: '|...|>'}, + {value: 'list_length_greater_than_or_equal', label: '长度大于等于', str: '|...|≥'}, + {value: 'list_length_less_than', label: '长度小于', str: '|...|<'}, + {value: 'list_length_less_than_or_equal', label: '长度小于等于', str: '|...|≤'}, + + // Boolean operations + {value: 'bool_equal', label: '等于', str: '='}, + {value: 'bool_not_equal', label: '不等于', str: '≠'}, + + // Dictionary operations + {value: 'dict_equal', label: '等于', str: '='}, + {value: 'dict_not_equal', label: '不等于', str: '≠'}, + {value: 'dict_contains_key', label: '包含键', str: ''}, + {value: 'dict_not_contains_key', label: '不包含键', str: ''} +] + + export const opertionListMap = new Map(opertionList.map(item => [item.value, item])); diff --git a/src/views/createapp/components/workFlow.vue b/src/views/createapp/components/workFlow.vue index dff72018c11bdd82cd6563af454b1d19c1332f72..c3e510e215382d4f5cc4590d6fc31435750dd057 100644 --- a/src/views/createapp/components/workFlow.vue +++ b/src/views/createapp/components/workFlow.vue @@ -1,10 +1,9 @@