Authored by chenchao

fix req 2 server

... ... @@ -126,12 +126,15 @@ $(document).on('click', '.edit-class-btn', function () {
url: '/erpproduct/standardSort/update',
data: (function () {
var input = $('#standardSortName').val();
if (input === '' || $.trim(input) === ''){ return "参数名称不能为空";}
if (input === '' || $.trim(input) === ''){
common.util.__tip("参数名称不能为空", "warning");
return false;
}
var orderBy = $('#orderBy').val();
if (orderBy < 0)
{
common.util.__tip("排序不能为负数", "warning");
return;
return false;
}
return {
id: item.id,
... ...