This commit is contained in:
曹辉 2023-01-29 17:06:55 +08:00
parent 6394c0f4bd
commit c5a4275067

View File

@ -389,6 +389,7 @@ export default {
this.form.parentId = data.id; this.form.parentId = data.id;
this.form.parentName = data.goodsCategoryName; this.form.parentName = data.goodsCategoryName;
// this.categoryLevel = data.categoryLevel; // this.categoryLevel = data.categoryLevel;
this.queryParams.pageNum = 1;
this.getList(); this.getList();
getStationCategoryList(data.id).then((res) => { getStationCategoryList(data.id).then((res) => {
res.data.forEach((e) => { res.data.forEach((e) => {
@ -426,7 +427,6 @@ export default {
}, },
getList() { getList() {
this.loading = true; this.loading = true;
this.queryParams.pageNum = 1;
listGoodsCategory(this.queryParams).then((response) => { listGoodsCategory(this.queryParams).then((response) => {
this.goodsCategoryList = response.rows; this.goodsCategoryList = response.rows;
this.total = response.total; this.total = response.total;
@ -511,7 +511,6 @@ export default {
this.imgone = this.form.goodsCategoryPicture; this.imgone = this.form.goodsCategoryPicture;
this.open = true; this.open = true;
this.title = "修改商品分类信息"; this.title = "修改商品分类信息";
console.log(this.form);
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */
@ -530,6 +529,7 @@ export default {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
++this.isResouceShow; ++this.isResouceShow;
this.open = false; this.open = false;
this.queryParams.pageNum = 1;
this.getList(); this.getList();
this.info(); this.info();
}); });
@ -538,6 +538,7 @@ export default {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
++this.isResouceShow; ++this.isResouceShow;
this.open = false; this.open = false;
this.queryParams.pageNum = 1;
this.getList(); this.getList();
this.info(); this.info();
}); });
@ -547,7 +548,6 @@ export default {
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
console.log(row);
const ids = row.id || this.ids; const ids = row.id || this.ids;
this.$modal this.$modal
.confirm("是否确认删除?") .confirm("是否确认删除?")