diff --git a/src/api/marketIng.js b/src/api/marketIng.js new file mode 100644 index 0000000..e69de29 diff --git a/src/api/product/info.js b/src/api/product/info.js index c668d71..0f1cf09 100644 --- a/src/api/product/info.js +++ b/src/api/product/info.js @@ -38,7 +38,7 @@ export function updateInfo(data) { return request({ url: '/product/info/'+data.projectAddModel.id, method: 'put', - data: data.projectAddModel + data: data }) } diff --git a/src/views/marketIng/index.vue b/src/views/marketIng/index.vue new file mode 100644 index 0000000..9cce60d --- /dev/null +++ b/src/views/marketIng/index.vue @@ -0,0 +1,265 @@ + + + + + diff --git a/src/views/product/attribute/index.vue b/src/views/product/attribute/index.vue index d1b259f..453ec91 100644 --- a/src/views/product/attribute/index.vue +++ b/src/views/product/attribute/index.vue @@ -181,12 +181,17 @@ export default { // 表单重置 reset() { this.form = { - id: null, - code: null, - name: null, - createBy: null, - createTime: null, - remark: null + projectImage: null, + activityName: null, + activities: null, + projectUnit: null, + carouselImages: null, + endTime: null, + strategyId: null, + strategyType: null, + projectSkuList: null, + weight: null, + goodsDetails: null }; this.resetForm("form"); }, diff --git a/src/views/product/category/index.vue b/src/views/product/category/index.vue index 1108899..cba2583 100644 --- a/src/views/product/category/index.vue +++ b/src/views/product/category/index.vue @@ -246,7 +246,7 @@ export default { watch: { 'form.parentId': { handler(val){ - if (val !== undefined && val !== 0 && val != null){ + if (val !== undefined && val !== null && val !== 0 && val != null && this.id ===null ){ parentCommonElement(val).then(response => { this.attributeInfoList = response.data.attributeInfoList; this.attributeGroupList = response.data.attributeGroupList; @@ -358,11 +358,17 @@ export default { handleUpdate(row) { this.reset(); this.getTreeselect(); - if (row != null) { - this.form.parentId = row.parentId; - } + getCategory(row.id).then(response => { this.form = response.data; + if (row != null) { + this.form.parentId = row.parentId; + } + parentCommonElement(row.id).then(response => { + this.attributeInfoList = response.data.attributeInfoList; + this.attributeGroupList = response.data.attributeGroupList; + this.brandInfoList = response.data.brandInfoList; + }) this.open = true; this.title = "修改品类信息"; }); diff --git a/src/views/product/info/index.vue b/src/views/product/info/index.vue index 370b6eb..cd97b4e 100644 --- a/src/views/product/info/index.vue +++ b/src/views/product/info/index.vue @@ -312,7 +312,7 @@
- +