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([ -->