Authored by weiqingting

提交

... ... @@ -80,17 +80,9 @@ var util={
result = result.replace(reg, args[1][key]);
}
}
//clear {xxx}
var reg = new RegExp("({.*})", "g");
result = result.replace(reg, '');
} else {
for (var i = 1; i < args.length; i++) {
if (args[i] != undefined) {
var reg = new RegExp("({[" + (i - 1) + "]})", "g");
result = result.replace(reg, args[i]);
}
}
}
}
var reg = new RegExp("({.*})", "g");
result = result.replace(reg, '');
}
}
return result;
... ...
... ... @@ -77,10 +77,9 @@ var dropDown = require('../common/dropDown');
$.ajax({
type: 'POST',
dataType: 'json',
url: '/product/sort/update',
url: status?"/erpproduct/sorter/open":"/erpproduct/sorter/close",
data: {
id: $target.closest('td').attr('data-id'),
status: status
param: $target.closest('td').attr('data-id')
}
}).then(function (data) {
... ...
... ... @@ -118,6 +118,24 @@ exports.res = [
}
]
},{
route:"/erpproduct/sorter/open",
method: 'POST',
url: '/product/publishProductSort',
isJsonRaw:true,
params: [{
name: 'param',
type: 'Number'
}]
},{
route:"/erpproduct/sorter/close",
method: 'POST',
url: '/product/closeProductSort',
isJsonRaw:true,
params: [{
name: 'param',
type: 'Number'
}]
},{
//商品管理>【产品属性】页面渲染
route: '/erpproduct/attribute/index',
method: 'GET',
... ...