From 95c3001f35ed0d20290bf6ccedd108817c2b6daa Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 17 Oct 2025 10:18:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0getAllNeConfig?= =?UTF-8?q?=E5=87=BD=E6=95=B0=EF=BC=8C=E6=94=AF=E6=8C=81=E4=BC=A0=E5=85=A5?= =?UTF-8?q?neId=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ne/neConfig.ts | 3 ++- src/views/ne/neConfig/index.vue | 12 ++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/api/ne/neConfig.ts b/src/api/ne/neConfig.ts index dcd1e8dd..6a711988 100644 --- a/src/api/ne/neConfig.ts +++ b/src/api/ne/neConfig.ts @@ -5,10 +5,11 @@ import { request } from '@/plugins/http-fetch'; * @param query 查询参数 * @returns object */ -export function getAllNeConfig(neType: string) { +export function getAllNeConfig(neType: string, neId: string) { return request({ url: `/ne/config/list/${neType}`, method: 'get', + params: { neId }, timeout: 60_000, }); } diff --git a/src/views/ne/neConfig/index.vue b/src/views/ne/neConfig/index.vue index 430ebac2..db194454 100644 --- a/src/views/ne/neConfig/index.vue +++ b/src/views/ne/neConfig/index.vue @@ -209,7 +209,7 @@ function fnActiveConfigNode(key: string | number) { /**查询配置可选属性值列表 */ function fnGetNeConfig() { - const neType = neTypeSelect.value[0]; + const [neType, neId] = neTypeSelect.value; if (!neType) { message.warning({ content: t('views.ne.neConfig.neTypePleace'), @@ -220,7 +220,7 @@ function fnGetNeConfig() { treeState.loading = true; // 获取数据 - getAllNeConfig(neType).then(res => { + getAllNeConfig(neType, neId).then(res => { if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) { const arr = []; for (const item of res.data) { @@ -438,7 +438,11 @@ onMounted(() => { @@ -1068,7 +1072,7 @@ onMounted(() => { - +