diff --git a/src/views/product/addProduct/index.vue b/src/views/product/addProduct/index.vue index e5d63be..f670c5e 100644 --- a/src/views/product/addProduct/index.vue +++ b/src/views/product/addProduct/index.vue @@ -4503,7 +4503,11 @@ export default { this.oneFormBatch[0].image || this.formValidate.slider_image[0]; } this.ManyAttrValue.map(item => { - let proportion = this.formValidate.is_benefit ? "0.45" : "0.60"; + let proportion = this.formValidate.is_benefit + ? "0.45" + : this.$route.params.id + ? item.proportion + : "0.60"; let obj = this.proportionList.find( items => items.value == proportion ); @@ -4708,7 +4712,6 @@ export default { if (info.is_copy) { this.formValidate.value = info.value; } - console.log(this.ManyAttrValue); this.generate(); } // if (this.formValidate.spec_type === 0) { @@ -4725,7 +4728,9 @@ export default { this.checkboxGroup.push("is_good"); } this.OneattrValue.map(item => { - let proportion = this.formValidate.is_benefit ? "0.45" : "0.60"; + let proportion = this.formValidate.is_benefit + ? "0.45" + : item.proportion; let obj = this.proportionList.find(items => items.value == proportion); let growth = this.formValidate.is_benefit