diff --git a/src/api/product/info.js b/src/api/product/info.js
index e15e6f7..0f1cf09 100644
--- a/src/api/product/info.js
+++ b/src/api/product/info.js
@@ -36,7 +36,7 @@ export function addInfo(data) {
// 修改商品信息
export function updateInfo(data) {
return request({
- url: '/product/info/'+data.id,
+ url: '/product/info/'+data.projectAddModel.id,
method: 'put',
data: data
})
diff --git a/src/views/product/category/index.vue b/src/views/product/category/index.vue
index 2c40048..a717531 100644
--- a/src/views/product/category/index.vue
+++ b/src/views/product/category/index.vue
@@ -263,6 +263,7 @@ export default {
getList() {
this.loading = true;
listCategory(this.queryParams).then(response => {
+
const idToName = response.data.reduce((acc, node) => {
acc[node.id] = node.name;
return acc;
@@ -277,6 +278,7 @@ export default {
parentIds: parentName
};
});
+
this.categoryList = this.handleTree(updatedTreeData, "id", "parentId");
this.loading = false;
});
diff --git a/src/views/product/rule/index.vue b/src/views/product/rule/index.vue
index aaecc34..9138770 100644
--- a/src/views/product/rule/index.vue
+++ b/src/views/product/rule/index.vue
@@ -129,6 +129,21 @@
+
+
+
+
+
+
@@ -167,6 +182,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
添加