修复通俗重量

This commit is contained in:
huangdeliang
2021-02-09 10:25:34 +08:00
parent f8f40dc91c
commit afb7465281
26 changed files with 580 additions and 333 deletions

View File

@ -198,7 +198,7 @@
type="text"
icon="el-icon-edit"
@click="handleBuild(scope.row)"
>制作食谱</el-button
>{{ `${scope.row.recipes_id ? "编辑" : "制作"}食谱` }}</el-button
>
</template>
</el-table-column>
@ -604,10 +604,20 @@ export default {
}
},
handleBuild(data) {
this.$router.push({
name: "RecipiesBuild",
params: { id: data.id, cusId: data.orderId },
});
// const params = { id: data.id, cusId: data.orderId };
let path = `/recipes/build/${data.orderId}/${data.id}`;
if (data.recipes_id) {
// params.recipesId = data.recipes_id;
path += `/${data.recipes_id}`;
}
// test
// params.recipesId = "61";
path += '/61';
// this.$router.push({
// name: "build",
// params,
// });
this.$router.push(path);
},
},
};