|
@@ -222,29 +222,6 @@ export default {
|
|
|
})
|
|
|
newArr.push(vObj)
|
|
|
})
|
|
|
-
|
|
|
-
|
|
|
- // let itemArr = [...val]
|
|
|
- // let productData = [...this.productData]
|
|
|
- // let newArr = []
|
|
|
- // productData.forEach((one, o) => {
|
|
|
- // itemArr.forEach((two, t) => {
|
|
|
- // if (String(one.product_type_val) === String(two.val)) {
|
|
|
- // itemArr[t].edIndex = String(o)
|
|
|
- // }
|
|
|
- // })
|
|
|
- // })
|
|
|
- // itemArr.forEach(cItem => {
|
|
|
- // if (cItem.edIndex) {
|
|
|
- // newArr.push(productData[Number(cItem.edIndex)])
|
|
|
- // } else {
|
|
|
- // newArr.push({
|
|
|
- // product_type_name: cItem.key,
|
|
|
- // product_type_val: cItem.val,
|
|
|
- // })
|
|
|
- // }
|
|
|
- // })
|
|
|
- console.log(newArr)
|
|
|
this.productData = [...newArr]
|
|
|
},
|
|
|
getDef (str, strKey, strParams) {
|