From c5a42750678130687755769bfe8fe122f390886b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Sun, 29 Jan 2023 17:06:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/goodsCategory/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/system/goodsCategory/index.vue b/src/views/system/goodsCategory/index.vue index 0e8739b..364a37e 100644 --- a/src/views/system/goodsCategory/index.vue +++ b/src/views/system/goodsCategory/index.vue @@ -389,6 +389,7 @@ export default { this.form.parentId = data.id; this.form.parentName = data.goodsCategoryName; // this.categoryLevel = data.categoryLevel; + this.queryParams.pageNum = 1; this.getList(); getStationCategoryList(data.id).then((res) => { res.data.forEach((e) => { @@ -426,7 +427,6 @@ export default { }, getList() { this.loading = true; - this.queryParams.pageNum = 1; listGoodsCategory(this.queryParams).then((response) => { this.goodsCategoryList = response.rows; this.total = response.total; @@ -511,7 +511,6 @@ export default { this.imgone = this.form.goodsCategoryPicture; this.open = true; this.title = "修改商品分类信息"; - console.log(this.form); }); }, /** 提交按钮 */ @@ -530,6 +529,7 @@ export default { this.$modal.msgSuccess("修改成功"); ++this.isResouceShow; this.open = false; + this.queryParams.pageNum = 1; this.getList(); this.info(); }); @@ -538,6 +538,7 @@ export default { this.$modal.msgSuccess("新增成功"); ++this.isResouceShow; this.open = false; + this.queryParams.pageNum = 1; this.getList(); this.info(); }); @@ -547,7 +548,6 @@ export default { }, /** 删除按钮操作 */ handleDelete(row) { - console.log(row); const ids = row.id || this.ids; this.$modal .confirm("是否确认删除?")