diff --git a/src/api/evaluate/indicator.js b/src/api/evaluate/indicator.js index d2e9e64..ed9541a 100644 --- a/src/api/evaluate/indicator.js +++ b/src/api/evaluate/indicator.js @@ -48,4 +48,21 @@ export function updateIndicator(data) { method: "put", data }); +} + +/** + * 获取指定层级的指标 + * @param {*} id + * @returns + */ +export function getChildrenByParentIdWithLevelLimitApi(parentId, maxLevel, type) { + return request({ + url: `/evaluate/indicator/getChildrenByParentIdWithLevelLimit`, + method: "get", + params: { + parentId, + maxLevel, + type + } + }); } \ No newline at end of file diff --git a/src/views/flow/config.js b/src/views/flow/config.js index cf2e441..7eb5c6d 100644 --- a/src/views/flow/config.js +++ b/src/views/flow/config.js @@ -506,6 +506,22 @@ export const collapseList = [ ], outputType: 'json', }, + { + icon: touchSvg, + name: "路径搜索", + type: "serviceNode", + desc: "路径搜索", + action: 'TI_PATH_SEARCH', + nodeType: "AE", + nodeParams: [ + { name: "currentLocation", type: "input", input: "", disabled: true } + ], + outputType: 'json', + outputParams: [ + { name: 'nextLocation', type: 'string', desc: '下一路径位置', disabled: true}, + { name: 'isEnd', type: 'string', desc: '是否结束', disabled: true} + ] + } ], }, { diff --git a/src/views/is/project/index.vue b/src/views/is/project/index.vue index 427186a..7d84774 100644 --- a/src/views/is/project/index.vue +++ b/src/views/is/project/index.vue @@ -211,7 +211,17 @@ - + + + + + + { }); }; +const indicatorData = ref([]); +const getIndicatorData = () => { + getChildrenByParentIdWithLevelLimitApi(0,2, 1).then((res) => { + if (res.code === 200) { + indicatorData.value = res.data || [] + } + }) +} + onMounted(() => { getList(); - getTreeData() + getTreeData(); + getIndicatorData(); });