Commit 357d07a8 authored by agping's avatar agping

客户列表 客户跟进列表 防重复提交修改

parent a12a11cf
......@@ -1502,7 +1502,6 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
var temp = document.getElementById('remark_follow_tpl').innerHTML;
var doTtmpl = doT.template(temp);
$("#follow_list").html(doTtmpl(data.data.data.list));
user.isAjaxSaving = false;//请求结束,再改为初始状态
/*分页代码*/
add_page(data.data.data.total,pageNo,user.pageSize,user.getList);
......@@ -1519,6 +1518,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
},
complete: function(){
$('#main_loading_pic').hide();
user.isAjaxSaving = false;//请求结束,再改为初始状态
}
});
}
......
......@@ -1174,7 +1174,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$('#note_look').val('');
$('.look-shop').val('');
$('.look-shop').removeAttr('data-id');
user.isAjaxSaving = false;//请求结束,再改为初始状态
$("#modal-takeLook").modal('hide');//提交成功后 关闭弹窗
} else {
alert(data.msg);
......@@ -1182,6 +1182,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
},
complete: function(xhr, textStatus){
user.isAjaxSaving = false;//请求结束,再改为初始状态
if(textStatus === 'timeout'){
layerTipsX('请求超时');
};
......@@ -1474,7 +1475,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
success: function(data) {
if(data.code == 200) {
alert('修改成功');
user.isAjaxSaving = false;//请求结束,再改为初始状态
user.getGenjincon();
$('#genj_text').val('');
// $("#modal-record").modal('hide');
......@@ -1483,6 +1483,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
}
},
complete: function(xhr, textStatus){
user.isAjaxSaving = false;//请求结束,再改为初始状态
if(textStatus === 'timeout'){
layerTipsX('请求超时');
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment