!307 添加食谱导出列选项

Merge pull request !307 from 德仔/develop
This commit is contained in:
德仔
2021-07-06 03:26:10 +00:00
committed by Gitee
5 changed files with 211 additions and 38 deletions

View File

@ -33,6 +33,7 @@ import TextInfo from "@/components/TextInfo";
import ACFCom from "@/components/HealthyView/ACFCom";
import RemarkCom from "@/components/HealthyView/RemarkCom";
import { editPhysicalSigns } from "@/api/custom/healthy";
import { updateRecipesPlan } from "@/api/custom/recipesPlan";
export default {
name: "BodySignView",
@ -124,6 +125,18 @@ export default {
}
});
},
handleOnRemarkConfirm(data) {
const { pathname } = window.location;
const recipesId = pathname.substring(pathname.lastIndexOf("/") + 1);
updateRecipesPlan({
id: recipesId,
...data,
}).then((res) => {
if (res.code === 200) {
this.$message.success("修改成功");
}
});
},
},
watch: {
data(val, oldVal) {