From b6ecd2233f935f620ef50fb39a8bf5b1edf8553f Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Wed, 12 Mar 2025 15:47:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E8=B0=B1=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dish/menu/index.vue | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/views/dish/menu/index.vue b/src/views/dish/menu/index.vue index 267b626f..0efb032e 100644 --- a/src/views/dish/menu/index.vue +++ b/src/views/dish/menu/index.vue @@ -188,6 +188,7 @@ this.getMealTypeList(); this.daysList = this.getRecentWeekDates(); this.queryParams.applyDate = this.daysList[0].data; + this.getAreaTreeData() this.getCurrentList()//获取当前菜谱 }, methods: { @@ -269,15 +270,7 @@ /** 搜索按钮操作 */ handleQuery() { 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() { @@ -285,8 +278,15 @@ this.handleQuery(); }, /** 查询当前菜谱列表 */ - getCurrentList() { - // this.loading = true; + getList() { + 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 = { // "page":{"current":this.queryParams.pageNum,"size":this.queryParams.pageSize}, // "object":{ @@ -295,8 +295,9 @@ // getMenuDishesSuitListApi({"content":JSON.stringify(param)}).then(response => { // this.tableListData = response.data.records; // this.total = Number(response.data.total); - this.loading = false; + // this.loading = false; // }); + }, /** 新增按钮操作 */ handleAdd() {