...
|
...
|
@@ -163,9 +163,9 @@ |
|
|
formatter: function (value, rowData) {
|
|
|
var str = "<a role='edit' dataId='" + rowData.id + "' style='margin-left:10px;background-color: #5bc0de'>编辑</a>";
|
|
|
if (1 == rowData.status) {
|
|
|
str += "<a role='closeBrandSeries' dataId='" + rowData.id + "' style='margin-left:10px;background-color: red'>关闭</a>";
|
|
|
str += "<a role='closeBrandSeries' dataId='" + rowData.id + "' style='margin-left:10px;background-color: red'>下架</a>";
|
|
|
} else {
|
|
|
str += "<a role='openBrandSeries' dataId='" + rowData.id + "' style='margin-left:10px;background-color: orange'>开启</a>";
|
|
|
str += "<a role='openBrandSeries' dataId='" + rowData.id + "' style='margin-left:10px;background-color: orange'>上架</a>";
|
|
|
}
|
|
|
return str;
|
|
|
}
|
...
|
...
|
@@ -186,7 +186,7 @@ |
|
|
editRow(id);
|
|
|
}
|
|
|
});
|
|
|
// 关闭品牌
|
|
|
// 下架商品
|
|
|
$(this).myDatagrid("getPanel").find("a[role='closeBrandSeries']").linkbutton({
|
|
|
iconCls: "icon-more",
|
|
|
onClick: function () {
|
...
|
...
|
@@ -194,7 +194,7 @@ |
|
|
}
|
|
|
});
|
|
|
|
|
|
// 开启品牌
|
|
|
// 上架
|
|
|
$(this).myDatagrid("getPanel").find("a[role='openBrandSeries']").linkbutton({
|
|
|
iconCls: "icon-more",
|
|
|
onClick: function () {
|
...
|
...
|
@@ -328,7 +328,7 @@ |
|
|
interval: 500,
|
|
|
text: ""
|
|
|
});
|
|
|
$.post(contextPath + "/brandSeries/updateBrandSeriesStatus", {
|
|
|
$.post(contextPath + "/product/changeProductShelfStatus", {
|
|
|
"id": id,
|
|
|
"status": status
|
|
|
}, function (data) {
|
...
|
...
|
|