From ae878d99a136e0b5c464a448a064969470eb655c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=8F?= <1978476055@qq.com> Date: Wed, 20 Nov 2024 09:36:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=BC=96=E8=BE=91=E5=8D=95=E8=A7=84?= =?UTF-8?q?=E6=A0=BC=E5=A4=9A=E8=A7=84=E6=A0=BC=E5=8D=A0=E6=AF=94=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/product/addProduct/index.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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