Authored by mali

商品列表

@@ -163,9 +163,9 @@ @@ -163,9 +163,9 @@
163 formatter: function (value, rowData) { 163 formatter: function (value, rowData) {
164 var str = "<a role='edit' dataId='" + rowData.id + "' style='margin-left:10px;background-color: #5bc0de'>编辑</a>"; 164 var str = "<a role='edit' dataId='" + rowData.id + "' style='margin-left:10px;background-color: #5bc0de'>编辑</a>";
165 if (1 == rowData.status) { 165 if (1 == rowData.status) {
166 - str += "<a role='closeBrandSeries' dataId='" + rowData.id + "' style='margin-left:10px;background-color: red'>关闭</a>"; 166 + str += "<a role='closeBrandSeries' dataId='" + rowData.id + "' style='margin-left:10px;background-color: red'>下架</a>";
167 } else { 167 } else {
168 - str += "<a role='openBrandSeries' dataId='" + rowData.id + "' style='margin-left:10px;background-color: orange'>开启</a>"; 168 + str += "<a role='openBrandSeries' dataId='" + rowData.id + "' style='margin-left:10px;background-color: orange'>上架</a>";
169 } 169 }
170 return str; 170 return str;
171 } 171 }
@@ -186,7 +186,7 @@ @@ -186,7 +186,7 @@
186 editRow(id); 186 editRow(id);
187 } 187 }
188 }); 188 });
189 - // 关闭品牌 189 + // 下架商品
190 $(this).myDatagrid("getPanel").find("a[role='closeBrandSeries']").linkbutton({ 190 $(this).myDatagrid("getPanel").find("a[role='closeBrandSeries']").linkbutton({
191 iconCls: "icon-more", 191 iconCls: "icon-more",
192 onClick: function () { 192 onClick: function () {
@@ -194,7 +194,7 @@ @@ -194,7 +194,7 @@
194 } 194 }
195 }); 195 });
196 196
197 - // 开启品牌 197 + // 上架
198 $(this).myDatagrid("getPanel").find("a[role='openBrandSeries']").linkbutton({ 198 $(this).myDatagrid("getPanel").find("a[role='openBrandSeries']").linkbutton({
199 iconCls: "icon-more", 199 iconCls: "icon-more",
200 onClick: function () { 200 onClick: function () {
@@ -328,7 +328,7 @@ @@ -328,7 +328,7 @@
328 interval: 500, 328 interval: 500,
329 text: "" 329 text: ""
330 }); 330 });
331 - $.post(contextPath + "/brandSeries/updateBrandSeriesStatus", { 331 + $.post(contextPath + "/product/changeProductShelfStatus", {
332 "id": id, 332 "id": id,
333 "status": status 333 "status": status
334 }, function (data) { 334 }, function (data) {