diff --git a/src/api/system/shop.js b/src/api/system/shop.js index 664ce5f..491a0c5 100644 --- a/src/api/system/shop.js +++ b/src/api/system/shop.js @@ -185,9 +185,9 @@ export function getSpecSku(shopId,goodsId) { } // 修改规格选项状态 -export function updateSpecState(ids,state) { +export function updateSpecState(ids,state,shopId,goodsId) { return request({ - url: "/system/shop/updateShopGoodsSkuState?ids="+ids+"&state="+state, + url: "/system/shop/updateShopGoodsSkuState?ids="+ids+"&state="+state+"&shopId=" + shopId+"&goodsId="+goodsId, method: "get", }); } diff --git a/src/views/shop/shop/components/commodity.vue b/src/views/shop/shop/components/commodity.vue index 44d1530..340e69e 100644 --- a/src/views/shop/shop/components/commodity.vue +++ b/src/views/shop/shop/components/commodity.vue @@ -210,7 +210,7 @@ export default { this.updateSpecState(this.ids,tag); }, updateSpecState(ids,tag){ - updateSpecState(ids,tag).then((response) => { + updateSpecState(ids,tag,this.shopId,this.goodsId).then((response) => { if(response.code=="200"){ let idsList=ids.split(","); for(let i=0;i<idsList.length;i++){ diff --git a/src/views/shop/shop/setShop.vue b/src/views/shop/shop/setShop.vue index 27669db..9d549ac 100644 --- a/src/views/shop/shop/setShop.vue +++ b/src/views/shop/shop/setShop.vue @@ -64,6 +64,7 @@ export default { }, /** 新增按钮操作 */ openModal(shopId) { + console.log("dianpu",shopId); this.activeName='first'; this.setShopId(shopId); this.open = true;