fix:编辑单规格多规格占比初始化处理

This commit is contained in:
faiz 2024-11-20 09:36:29 +08:00
parent 56dbecb21f
commit ae878d99a1
1 changed files with 8 additions and 3 deletions

View File

@ -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