From 01850eaadcd6253410158dda411918de0ce1f7f7 Mon Sep 17 00:00:00 2001 From: jjLv <1981429112@qq.com> Date: Tue, 10 Dec 2024 18:47:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=9E=E6=80=A7=E9=87=8D=E5=A4=8Dbug?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/user/goodsManagement/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/user/goodsManagement/index.vue b/src/views/user/goodsManagement/index.vue index cb290a8..27b4b7e 100644 --- a/src/views/user/goodsManagement/index.vue +++ b/src/views/user/goodsManagement/index.vue @@ -72,9 +72,11 @@ const getSelectId = (list: any, id: any) => { if (list[i].id == id) { //查询到就返回该数组对象的value console.log('21',list[i].propertyNames) - list[i].propertyNames.forEach((item:any) =>{ + if( list[i].propertyNames!=null){ + list[i].propertyNames.forEach((item:any) =>{ options.value.push({'label':item,'value':item}) }) + } return [list[i].id] } if (list[i].children) { @@ -408,6 +410,7 @@ const countDisabled = ref(false) const dialogTypeCascader = ref() //装备类目-change const dialogTypeChange = async () => { + options.value=[] const deviceTypeList = dialogTypeCascader.value.getCheckedNodes() // console.log(deviceTypeList) // equipmentDeploymentParams.value.unitName = deviceTypeList[0].data.unitName