12982ab9 by yangjianbin

Merge branch 'develop' of http://g.28ms.com:8000/yangjianbin/page into develop

2 parents 235e2894 30e942f2
...@@ -118,7 +118,6 @@ ...@@ -118,7 +118,6 @@
118 {data: "remark"},//备注 118 {data: "remark"},//备注
119 ] 119 ]
120 }); 120 });
121
122 $.fn.dataTableExt.afnFiltering.push( 121 $.fn.dataTableExt.afnFiltering.push(
123 function (oSettings, aData, iDataIndex) { 122 function (oSettings, aData, iDataIndex) {
124 var min = document.getElementById('min').value; 123 var min = document.getElementById('min').value;
...@@ -181,7 +180,7 @@ ...@@ -181,7 +180,7 @@
181 layer.alert('操作失败'); 180 layer.alert('操作失败');
182 } else { 181 } else {
183 layer.msg('重置成功'); 182 layer.msg('重置成功');
184 } 183 }
185 }, 184 },
186 error: function () { 185 error: function () {
187 layer.alert("操作失败") 186 layer.alert("操作失败")
...@@ -209,6 +208,7 @@ ...@@ -209,6 +208,7 @@
209 layer.alert('操作失败'); 208 layer.alert('操作失败');
210 } else { 209 } else {
211 layer.msg('冻结成功'); 210 layer.msg('冻结成功');
211 reload();
212 } 212 }
213 }, 213 },
214 error: function () { 214 error: function () {
...@@ -218,8 +218,6 @@ ...@@ -218,8 +218,6 @@
218 }); 218 });
219 } 219 }
220 220
221
222 //
223 function unfreeze(id) { 221 function unfreeze(id) {
224 layer.confirm('您确定要解冻这个员工账号吗?', { 222 layer.confirm('您确定要解冻这个员工账号吗?', {
225 btn: ['确认','取消'], 223 btn: ['确认','取消'],
...@@ -228,7 +226,8 @@ ...@@ -228,7 +226,8 @@
228 }, function(){ 226 }, function(){
229 $.ajax({ 227 $.ajax({
230 type: 'put', 228 type: 'put',
231 url: apiBaseUrl + 'manage/financial/confirm/' + id + '?realRepaymentDate=' + Date.now(), 229 // url: apiBaseUrl + 'manage/financial/confirm/' + id + '?realRepaymentDate=' + Date.now(),
230 url: apiBaseUrl + '/system/user/unfreeze/' + id,
232 cache: false, 231 cache: false,
233 dataType: 'json', 232 dataType: 'json',
234 contentType: "application/json; charset=UTF-8", 233 contentType: "application/json; charset=UTF-8",
...@@ -239,6 +238,7 @@ ...@@ -239,6 +238,7 @@
239 layer.alert('操作失败'); 238 layer.alert('操作失败');
240 } else { 239 } else {
241 layer.msg('解冻成功'); 240 layer.msg('解冻成功');
241 reload();
242 } 242 }
243 }, 243 },
244 error: function () { 244 error: function () {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!