From 3e6738de6e4616f3146537eaa758416cbfaa7aa3 Mon Sep 17 00:00:00 2001 From: jjLv <1981429112@qq.com> Date: Tue, 10 Dec 2024 17:13:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/user/goodsManagement/index.vue | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/views/user/goodsManagement/index.vue b/src/views/user/goodsManagement/index.vue index fc8cc77..4a2c4a4 100644 --- a/src/views/user/goodsManagement/index.vue +++ b/src/views/user/goodsManagement/index.vue @@ -404,8 +404,11 @@ const dialogTypeChange = () => { console.log('deviceTypeList',deviceTypeList[0].data.propertyNames) if(deviceTypeList[0].data.propertyNames==null){ propertyNames.value=[] + propertyNamesTwo.value=[] }else{ propertyNames.value=[] + propertyNamesTwo.value=[] + propertyNamesTwo.value.push({'maType':null,'value':null}) deviceTypeList[0].data.propertyNames.forEach((item:any) =>{ propertyNames.value.push({'maType':item,'value':null}) options.value.push({'label':item,'value':item}) @@ -988,6 +991,8 @@ const propertyNames = ref([ // value: 4, // }, ]) +const propertyNamesTwo = ref([ +]) const options = ref([ // { // label:'重量', @@ -1005,12 +1010,12 @@ const options = ref([ //新增属性 const addPartItem = () => { - propertyNames.value.push({'maType':null,'value':null}); + propertyNamesTwo.value.push({'maType':null,'value':null}); } const removePartItem = (index:any)=> { - if (propertyNames.value.length > 1) { - propertyNames.value.splice(index, 1); + if (propertyNamesTwo.value.length > 1) { + propertyNamesTwo.value.splice(index, 1); } } @@ -1429,7 +1434,7 @@ const options = ref([ -->