Commit f9353fd1 by lixiaomin

修改商品查看规格状态

parent ef50aee3
...@@ -185,9 +185,9 @@ export function getSpecSku(shopId,goodsId) { ...@@ -185,9 +185,9 @@ export function getSpecSku(shopId,goodsId) {
} }
// 修改规格选项状态 // 修改规格选项状态
export function updateSpecState(ids,state) { export function updateSpecState(ids,state,shopId,goodsId) {
return request({ return request({
url: "/system/shop/updateShopGoodsSkuState?ids="+ids+"&state="+state, url: "/system/shop/updateShopGoodsSkuState?ids="+ids+"&state="+state+"&shopId=" + shopId+"&goodsId="+goodsId,
method: "get", method: "get",
}); });
} }
...@@ -210,7 +210,7 @@ export default { ...@@ -210,7 +210,7 @@ export default {
this.updateSpecState(this.ids,tag); this.updateSpecState(this.ids,tag);
}, },
updateSpecState(ids,tag){ updateSpecState(ids,tag){
updateSpecState(ids,tag).then((response) => { updateSpecState(ids,tag,this.shopId,this.goodsId).then((response) => {
if(response.code=="200"){ if(response.code=="200"){
let idsList=ids.split(","); let idsList=ids.split(",");
for(let i=0;i<idsList.length;i++){ for(let i=0;i<idsList.length;i++){
......
...@@ -64,6 +64,7 @@ export default { ...@@ -64,6 +64,7 @@ export default {
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
openModal(shopId) { openModal(shopId) {
console.log("dianpu",shopId);
this.activeName='first'; this.activeName='first';
this.setShopId(shopId); this.setShopId(shopId);
this.open = true; this.open = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment