菜谱管理

This commit is contained in:
zzyuan 2025-03-12 15:47:11 +08:00
parent f03b5a026e
commit b6ecd2233f
1 changed files with 13 additions and 12 deletions

View File

@ -188,6 +188,7 @@
this.getMealTypeList(); this.getMealTypeList();
this.daysList = this.getRecentWeekDates(); this.daysList = this.getRecentWeekDates();
this.queryParams.applyDate = this.daysList[0].data; this.queryParams.applyDate = this.daysList[0].data;
this.getAreaTreeData()
this.getCurrentList()// this.getCurrentList()//
}, },
methods: { methods: {
@ -269,15 +270,7 @@
/** 搜索按钮操作 */ /** 搜索按钮操作 */
handleQuery() { handleQuery() {
this.queryParams.pageNum = 1; this.queryParams.pageNum = 1;
if(this.activeName=='currentRecipe'){
this.queryParams.key="2"
this.queryParams.applyDate = this.daysList[0].data;
this.getCurrentList();
}else if(this.activeName=='pageRecipe'){
this.queryParams.key=undefined
this.queryParams.applyDate=undefined
this.getPageList();
}
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
resetQuery() { resetQuery() {
@ -285,8 +278,15 @@
this.handleQuery(); this.handleQuery();
}, },
/** 查询当前菜谱列表 */ /** 查询当前菜谱列表 */
getCurrentList() { getList() {
// this.loading = true; this.loading = true;
if(this.activeName=='currentRecipe'){
this.queryParams.key="2"
this.queryParams.applyDate = this.daysList[0].data;
}else if(this.activeName=='pageRecipe'){
this.queryParams.key=undefined
this.queryParams.applyDate=undefined
}
// let param = { // let param = {
// "page":{"current":this.queryParams.pageNum,"size":this.queryParams.pageSize}, // "page":{"current":this.queryParams.pageNum,"size":this.queryParams.pageSize},
// "object":{ // "object":{
@ -295,8 +295,9 @@
// getMenuDishesSuitListApi({"content":JSON.stringify(param)}).then(response => { // getMenuDishesSuitListApi({"content":JSON.stringify(param)}).then(response => {
// this.tableListData = response.data.records; // this.tableListData = response.data.records;
// this.total = Number(response.data.total); // this.total = Number(response.data.total);
this.loading = false; // this.loading = false;
// }); // });
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {