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("是否确认删除?")