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() {