diff --git a/src/api/app.js b/src/api/app.js index bb9b085..4a90ad0 100644 --- a/src/api/app.js +++ b/src/api/app.js @@ -46,6 +46,45 @@ export const deleteCompany = (params) => { return postRequest('/app/company/delByIds', params) } +// 新增分类接口 +export const addType = (params) => { + return postBodyRequest('/app/productCategory/batchSaveCategoryAndAttribute', params) +} + +//编辑分类 +export const editType = (params) => { + return postRequest('/app/productCategory/edit', params) +} + +//子分类列表 +export const categoryList = (params) => { + return postRequest('/app/productAttribute/selectByCategoryId', params) +} + +//子分类规格值列表 +export const categorySonList = (params) => { + return getRequest('/app/productAttributeValue/selectByAttributeId', params) +} + +//新增商品 +export const productSave = (params) => { + return postBodyRequest('/app/product/save', params) +} +//编辑商品 +export const productEdit = (params) => { + return postBodyRequest('/app/product/edit', params) +} + +//商品列表 +export const getShareList = (params) => { + return postBodyRequest('/app/product/getShareList', params) +} + +//删除分类 +export const deleteType = (params) => { + return postRequest('/app/productCategory/delById', params) +} + export const getCompanyData = (params) => { return getRequest('/app/company/getByCondition', params) } @@ -150,7 +189,7 @@ export const addLogisticsRoute = (params) => { //获取商品分类 export const goodsType = (params) => { - return postBodyRequest('/app/productCategory/list', params) + return getRequest('/app/productCategory/list', params) } //编辑线路 diff --git a/src/views/app/shop/addType.vue b/src/views/app/shop/addType.vue index a7dbc31..f87099f 100644 --- a/src/views/app/shop/addType.vue +++ b/src/views/app/shop/addType.vue @@ -1,142 +1,109 @@ - + @import "@/styles/drawer-common.less"; + \ No newline at end of file diff --git a/src/views/app/shop/dictManage.vue b/src/views/app/shop/dictManage.vue index e2f4913..a1d44e5 100644 --- a/src/views/app/shop/dictManage.vue +++ b/src/views/app/shop/dictManage.vue @@ -1,6 +1,56 @@ - + @import "@/styles/drawer-common.less"; + \ No newline at end of file diff --git a/src/views/app/shop/shop.vue b/src/views/app/shop/shop.vue index 5d2b9cc..34b4177 100644 --- a/src/views/app/shop/shop.vue +++ b/src/views/app/shop/shop.vue @@ -675,9 +675,9 @@ }, goodsList(v){ this.Visiable = true; - // this.$nextTick(() => { - // this.$refs.dialog.initRecharge(v); - // }); + this.$nextTick(() => { + this.$refs.goodsPage.init(v); + }); }, edit(v) { // 转换null为"" diff --git a/src/views/sys/oss-manage/ossManage.vue b/src/views/sys/oss-manage/ossManage.vue index c011e6b..c4c1732 100644 --- a/src/views/sys/oss-manage/ossManage.vue +++ b/src/views/sys/oss-manage/ossManage.vue @@ -1,1108 +1,1020 @@ \ No newline at end of file