Authored by chenchao

fix req 2 server

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