From 8230dbf2578f1d949c40ee6ab4f0b79cab793305 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Mon, 4 Mar 2024 17:58:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=AF=E6=93=8D=E4=BD=9C=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E7=BD=91=E5=85=83=E7=8A=B6=E6=80=81=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/neinfo.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/store/modules/neinfo.ts b/src/store/modules/neinfo.ts index 5b7f8314..30db2a74 100644 --- a/src/store/modules/neinfo.ts +++ b/src/store/modules/neinfo.ts @@ -65,13 +65,13 @@ const useNeInfoStore = defineStore('neinfo', { // 原始列表 this.neList = JSON.parse(JSON.stringify(res.data)); - // 转级联数据 - const options = parseDataToOptions( - res.data, - 'neType', - 'neName', - 'neId' + // 可操作使用网元状态过滤 + const neOkArr = res.data.filter(item => + ['0', '3'].includes(item.status) ); + + // 转级联数据 + const options = parseDataToOptions(neOkArr, 'neType', 'neName', 'neId'); this.neCascaderOptions = options; // 转选择器单级父类型