From 7034b0af1bdce9a89e64cd562c1bb8706ead71a4 Mon Sep 17 00:00:00 2001 From: zhanghao <774378400@qq.com> Date: Tue, 3 Feb 2026 17:36:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E8=8A=82=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/evaluate/indicator.js | 17 +++++++++++++++++ src/views/flow/config.js | 16 ++++++++++++++++ src/views/is/project/index.vue | 25 +++++++++++++++++++++++-- src/views/vi/testProject/index.vue | 26 ++++++++++++++++++++++++-- vite.config.js | 2 +- 5 files changed, 81 insertions(+), 5 deletions(-) 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(); });