...
|
...
|
@@ -26,6 +26,9 @@ var g1 = new common.grid({ |
|
|
{display: "商品名称", name: "productName"},
|
|
|
{display: "销售价(元)", name: "salePrice"},
|
|
|
{display: "分类", name: "productSort"},
|
|
|
{display: "销售类目", render: function (item) {
|
|
|
return ''
|
|
|
}},
|
|
|
{display: "操作", render: function (item) {
|
|
|
if(item.checked){
|
|
|
return '<a href="javascript:" class="btn btn-warning btn-xs cancelProduct" data-index="'+item.__index+'">取消选择</a>'
|
...
|
...
|
@@ -59,6 +62,9 @@ var g2 = new common.grid({ |
|
|
{display: "商品名称", name: "productName"},
|
|
|
{display: "销售价(元)", name: "salePrice"},
|
|
|
{display: "分类", name: "productSort"},
|
|
|
{display: "销售类目", render: function (item) {
|
|
|
return ''
|
|
|
}},
|
|
|
{display: "操作", render: function (item) {
|
|
|
return '<a href="javascript:" class="btn btn-warning btn-xs cancelProduct" data-index="'+item.__index+'">取消选择</a>'
|
|
|
}}
|
...
|
...
|
@@ -154,6 +160,25 @@ $(document).on("click", ".cancelProduct", function () { |
|
|
}, true);
|
|
|
});
|
|
|
|
|
|
//全部取消选择
|
|
|
$(document).on("click", ".cancelAll", function () {
|
|
|
common.dialog.confirm(
|
|
|
"温馨提示", "你确定全部取消选择所有商品么?",
|
|
|
function(){
|
|
|
common.util.__ajax({
|
|
|
url:'/shops/shopCategory/unlinkAll',
|
|
|
data:{
|
|
|
categoryId: curCategoryId
|
|
|
}
|
|
|
},function(){
|
|
|
g2.reload();
|
|
|
}, true);
|
|
|
},
|
|
|
function(){}
|
|
|
);
|
|
|
});
|
|
|
|
|
|
|
|
|
//筛选
|
|
|
$(document).on("click", ".filter-btn", function () {
|
|
|
if(curTab == 0){
|
...
|
...
|
|