Commit f71a784d authored by agping's avatar agping

后台优化

parent b375ac55
......@@ -1431,8 +1431,10 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
alert("跟进时间搜索控制在30天以内");
return;
}
$.ajax({
//客户跟进列表 搜索时 防重复提交
if(!user.isAjaxSaving){
user.isAjaxSaving = true;
$.ajax({
type: 'GET',
url: '/index/RemarkFollowList',
data: params,
......@@ -1447,18 +1449,11 @@ 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));
// var doTtmpl = doT.template(document.getElementById('remark_follow_tpl').innerHTML);
// $("#follow_list").html(doTtmpl(data.data.data.list));
user.isAjaxSaving = false;//请求结束,再改为初始状态
/*分页代码*/
add_page(data.data.data.total,pageNo,user.pageSize,user.getList);
/* $("#pagediv").pagination({
length: data.data.data.total,
current: pageNo,
every: follow.pageSize,
onClick: function(el) {
follow.getList(el.num.current);
}
});*/
}else {
alert(data['msg']);
};
......@@ -1475,6 +1470,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
};
}
});
}
//防重复
},
//城市 区域 筛选
getCityAreaList: function(id, fn) {
......
......@@ -149,7 +149,7 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
e.stopPropagation();
var imgname = [];
for(var i = 0; i < $('.result').length; i++) {
imgname[i] = $('.result>img').attr('data-imgname');
imgname[i] = $('.result>img').eq(i).attr('data-imgname');
};
console.log(imgname.join(','));
var id_pic = follow.house_fatherid > 0?follow.house_fatherid:follow.house_id;
......
......@@ -1686,8 +1686,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
// 客户编号 客户姓名 客户手机号 搜索 创建时间不受限制
if($.trim($("input[name='user']").val())||$.trim($("input[name='phone']").val())||$.trim($("input[name='userID']").val())){
}else{
if(cha_time > 5270400000){
alert("创建时间筛选区间不能超过2个月");
if(cha_time > 5270400000*3){
alert("创建时间筛选区间不能超过6个月");
return;
}
}
......
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