修复食谱生成bug

This commit is contained in:
huangdeliang
2021-03-08 11:32:27 +08:00
parent c9a8264f1e
commit ff89b9bf5e
6 changed files with 10 additions and 6 deletions

View File

@ -415,9 +415,6 @@ export default {
handleParentClick(e) {
// 校验某天
this.setCurrentDay({ currentDay: this.num });
VueScrollTo.scrollTo(`#recipes${this.num}`, 500, {
container: "#recipes_content",
});
},
spanMethod({ row, column, rowIndex, columnIndex }) {
if (columnIndex === 0) {
@ -440,6 +437,9 @@ export default {
e.stopPropagation();
// 取消高亮
this.resetCurrentDay({ currentDay: this.num });
VueScrollTo.scrollTo(`#recipes${this.num}`, 500, {
container: "#recipes_content",
});
},
handleOnAdd() {
// console.log(this.num);

View File

@ -42,6 +42,7 @@ export default {
mounted() {
this.init({
planId: this.planId,
name: this.name,
temId: this.temId,
}).catch((err) => {
this.$message.error(err.message);