修复未生成食谱逻辑错误
This commit is contained in:
@ -43,11 +43,11 @@
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="proteinRatio"
|
||||
label="蛋白质/100g"
|
||||
label="P/100g"
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column prop="fatRatio" label="脂肪/100g" align="center" />
|
||||
<el-table-column prop="carbonRatio" label="碳水/100g" align="center" />
|
||||
<el-table-column prop="fatRatio" label="F/100g" align="center" />
|
||||
<el-table-column prop="carbonRatio" label="C/100g" align="center" />
|
||||
</el-table>
|
||||
</el-form-item>
|
||||
<el-form-item label="推荐人群">
|
||||
|
@ -92,7 +92,7 @@ export default {
|
||||
if (!data) {
|
||||
return;
|
||||
}
|
||||
console.log(data);
|
||||
// console.log(data);
|
||||
this.selDishes = data;
|
||||
this.active = 1;
|
||||
this.typeOptions = data.type.split(",").reduce((arr, cur, idx) => {
|
||||
@ -143,7 +143,7 @@ export default {
|
||||
type,
|
||||
igdList,
|
||||
});
|
||||
console.log(this.selDishes);
|
||||
// console.log(this.selDishes);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
@ -296,13 +296,14 @@ export default {
|
||||
});
|
||||
},
|
||||
handleOnDishesConfirm(data) {
|
||||
// console.log(data);
|
||||
this.addDishes({
|
||||
num: this.num - 1,
|
||||
data,
|
||||
});
|
||||
},
|
||||
...mapActions(["updateDishes", "addDishes", "deleteDishes"]),
|
||||
...mapMutations(["setCurrentDay",]),
|
||||
...mapMutations(["setCurrentDay"]),
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user